Go to Post If only every team had a Wildstang programmer! - Jeremiah Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 04-08-2006, 05:37
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Distinguish Serial Data?

How can you distinguish a group of bytes(data) form another?
Other than using a unique byte in front a group of bytes.

I just can't figure out how to do it.

For example, I am writing a program that sends a group of bytes periodically. I need to write a program that can distinguish between this data and data that I would type into the terminal window(not periodical). These are different programs so there is no way to syncronize them.

Now I know that only one program can access the serial port at any given time. The program I am writing allows you to turn the serial port on and off. This allows the terminal window to access the serial port without exiting my program.(Might need to restart the IFI loader again)

The only thing I could think of was to send a unique byte in front of the group of byte that I am about to send to the RC, so it can distinguish it from another group. What if I coincidentally typed that same unique starter byte in to the termial port-> ? What do I do now?

Thanks.

Last edited by 6600gt : 04-08-2006 at 05:40.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial Number? Drok00 LabView and Data Acquisition 2 09-01-2006 20:39
serial edomus Technical Discussion 4 12-02-2004 15:09
EDU Demo Code: Serial Data Transmitter Using a State-Machine Kevin Watson Programming 3 28-12-2003 22:56


All times are GMT -5. The time now is 03:19.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi