Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/14/08 10:39
Read: times


 
#149425 - Learning to debug
Responding to: ???'s previous message
Sriram Sridharan said:
I've successfully sent a sms from the 8051 through the GSM module. But, when I try receiving the response code and display it on a LCD, I get some garbage...

Like Sherlock Holmes, you need to examine the evidence, and try to think how to explain what you see.

eg,

  • Did the modem actually send "garbage"? ie, the LCD is faithfully displaying what was received.

  • Did the modem send good stuff, but it got corrupted before reaching the 8051? ie, the LCD is faithfully displaying what was received, but that isn't what the modem sent.

  • Did the modem send OK, and the 8051 receive good stuff, but some other bug in your code caused it to display incorrectly on the LCD?


    In your case, the fact that you could send an SMS OK suggests that the serial comms betwenn the 8051 and modem is probably OK - so the corruption is likely to be in your code somewhere.
    The test that Jan suggested would help to confirm this...

    See also:
    http://www.8052.com/forum/read.phtml?id=136470
    http://www.8052.com/forum/read.phtml?id=118587
    http://www.8052.com/forum/read.phtml?id=120313


  • List of 6 messages in thread
    TopicAuthorDate
    8051 and GSM module: Garbage characters in reply            01/01/70 00:00      
       try to capture it            01/01/70 00:00      
       Re: try to capture it            01/01/70 00:00      
          And what was the cause of the funny characters?            01/01/70 00:00      
       Learning to debug            01/01/70 00:00      
       Re: 8051 and GSM module: Garbage characters in rep            01/01/70 00:00      

    Back to Subject List