How to decode an SMS which looks like this ...


Results 1 to 13 of 13

Threaded View

  1. #10
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default


    Include "MODEDEFS.BAS"
    num var byte[13]
    sum var byte[22]
    c var byte

    baud con 188

    sum[0] = "A"
    sum[1] = "T"
    sum[2] = "+"
    sum[3] = "C"
    sum[4] = "M"
    sum[5] = "G"
    sum[6] = "S"
    sum[7] = "="
    sum[21]= 13

    Serin2 rx,baud,5000,main,[WAIT("REC UNREAD"),SKIP 3, STR num\13, skip 28, STR sms\8]
    checkms:
    If sms[0]="d" and sms[1]="e" and sms[2]="a" and sms[3]="c" and sms[4]="t" then
    For c=0 to 12
    sum[c+8]=num[c]
    next c
    For c=0 to 21
    serout tx,T2400,[sum[c]]
    next c
    Serin2 rx,baud,5000,checkms,[WAIT(">")]
    The above (marked in red) are the correction needed.

    Al.
    Last edited by aratti; - 7th October 2009 at 23:40.
    All progress began with an idea

Similar Threads

  1. Replies: 11
    Last Post: - 19th August 2009, 15:23
  2. Replies: 0
    Last Post: - 21st May 2009, 00:58
  3. Replies: 13
    Last Post: - 12th May 2009, 17:26
  4. Siemens c55 sms control help please
    By camolas in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 20th August 2008, 01:13
  5. Reading a SMS to an array
    By KA5MAL in forum GSM
    Replies: 3
    Last Post: - 17th June 2008, 17:24

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts