Help me To read Last recieved sms from hyper terminal


Results 1 to 14 of 14

Threaded View

  1. #7
    Join Date
    Aug 2008
    Posts
    66

    Question

    I can send and receive SMS in "text mode" using a Siemens GSM module connected to PIC.

    I'm sending 2 chars AB from a remote mobile phone. In the PIC, it can receive AB.

    I have declared

    data var byte [4]
    message var byte [4]

    Code:
    ws:
    HSEROUT["AT+CMGL=",34,"REC UNREAD",34,13,10] 
    
    HSERIN 5000,ws,[WAIT("REC UNREAD"),skip 3,str telbr\12,skip 12,str TIME\6,skip 8,STR message\3\13]
    
    data[1] ="A"
    data[2]="B"
    
    if I compare message[1] with data[1], message[2] with data[2] both are equal.





    However, if I were to sent ABC SMS to PIC, the following comparison give an error. Why?
    Code:
    ws:
    HSEROUT["AT+CMGL=",34,"REC UNREAD",34,13,10] 
    
    HSERIN 5000,ws,[WAIT("REC UNREAD"),skip 3,str telbr\12,skip 12,str TIME\6,skip 8,STR message\4\13]
    
    data[1] ="A"
    data[2]="B"
    data[3]="C"
    
    if I compare message[1] with data[1], message[2] with data[2],  message[3] with data[3], error in the comparison
    Last edited by Pic2008; - 30th April 2009 at 18:10.

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  3. Hyper Terminal Setting for TTL putput
    By ClayE in forum Serial
    Replies: 6
    Last Post: - 7th June 2008, 06:50
  4. Write and Read from eeprom
    By savnik in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 9th June 2007, 14:56
  5. what is hyper terminal?
    By moud_man in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th September 2005, 19:33

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