View previous topic :: View next topic |
Author |
Message |
lokeshbhatt
Joined: 16 Mar 2010 Posts: 11
|
UART receive collecting 0x0A |
Posted: Mon Mar 29, 2010 12:47 am |
|
|
Hi,
I have interfaced sim300 gsm modem and pic16f690 via uart.
I am receiving only 0x0a even if sim300 sending so many string like
"OK"
"READY"
What could be the reason?
Thanx in anticipation.
Lokesh _________________ Thanks & Regards
Lokesh Bhatt |
|
|
Rohit de Sa
Joined: 09 Nov 2007 Posts: 282 Location: India
|
|
Posted: Mon Mar 29, 2010 4:23 am |
|
|
Without more information its very difficult to identify what the error is. Post more information - your PIC, the way your have configured the UART, additional hardware connected to the modem and the PIC, etc.
What is the UART speed on the modem? Have you configured the PIC for the same speed?
Rohit |
|
|
mbge5amw
Joined: 13 Dec 2004 Posts: 15 Location: Yorkshire, UK
|
|
Posted: Mon Mar 29, 2010 8:19 am |
|
|
I agree, more info would be needed to accurately identify the problem, but I can offer you a theory for you to try out.
0x0A is the new line character, which certain protocols use to identify the end of a command.
This makes me think that maybe each time a new character is received it overwrites the previous one in the buffer, then when you come to read it all you see is the final character.
Andy |
|
|
|