i_build_stuff
New Member
You seem to have about the right idea. For the voltage / current above, it could be as simple as sending 0x1B, 0x03 (these are the two bytes for 27 and 3). Let the PC do the conversion into ascii codes to actually display the text (since all high level languages give you this anyway). If you need it to be fault tolerant, or have more features, then I'd take it one step further and go with packets:
The above is just an example of what you could do; your encoding will vary based on the application (ie, some fields might not be there).
Code:
<packet start code><packet type code><data length><data><error correction code>
The above is just an example of what you could do; your encoding will vary based on the application (ie, some fields might not be there).