View Single Post
Old Jul 19th, 2006, 6:47 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
The data has a form and protocol determined by agreement between the parties at each end. For instance, it could be pure ASCII text, such as might be sent to a Model 33 TTY or a glass teletype. On the other hand, it might be wrapped in a protcol containing a header followed by a message followed by a checksum or CRC. Special codes might be used to indicate the beginning and end of these sections. It depends on how serious error-free transmission and reception is. The output from a temperature-measuring device is probably relatively simple. Just get the manual for the device and read it. Sellers of these things don't require you to guess and iterate to find an answer.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote