CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

UART receive collecting 0x0A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
lokeshbhatt



Joined: 16 Mar 2010
Posts: 11

View user's profile Send private message Send e-mail

UART receive collecting 0x0A
PostPosted: Mon Mar 29, 2010 12:47 am     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Mar 29, 2010 4:23 am     Reply with quote

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

View user's profile Send private message MSN Messenger

PostPosted: Mon Mar 29, 2010 8:19 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group