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 support@ccsinfo.com

Having problems receiveing strings over RS232
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
refa



Joined: 12 Dec 2003
Posts: 15

View user's profile Send private message MSN Messenger ICQ Number

PostPosted: Mon Jan 12, 2004 3:59 pm     Reply with quote

Yeah, I should ask them or solve the problem myself. Thank you a lot for your time PCM Programmer Smile
Ttelmah
Guest







PostPosted: Mon Jan 12, 2004 4:00 pm     Reply with quote

refa wrote:
their website is: http://www.stecom.com/
module is: BK17 A5, transceiver

You obviously note the comment in the data sheet, that the "data must be preceeded by a 'preamble' 1 to 3mSec long to stabilise the AGC".
For radio comms, you will need to add a 'header' to the packet, with an identifier at the end, that the receive processor looks for.
So you send something like:

for (n=0;n<3;n++) putc(0xAA);
putc(0);

then the actual data.

At the receive, your code ignores characters, till the '0' if seen, and then receives the following data as the 'real' packet.
A technique like this is necessary with communications of this sort.

Best Wishes
refa



Joined: 12 Dec 2003
Posts: 15

View user's profile Send private message MSN Messenger ICQ Number

PostPosted: Mon Jan 12, 2004 4:07 pm     Reply with quote

Ttelmah thank you a lot for sharing this. It 'll save me a lot of time Very Happy ... Thank you pal
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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