Page 1 of 1

Can SerialTools send and receive binary data?

Posted: Fri Aug 06, 2004 12:04 am
by johan
Can SerialTools send and receive binary data?

Yes!

Binary data, sometimes also referred to as "hex data" or "byte arrays" can be send and received by SerialTools.

You need to convert the byte array to a string using SerialNET.Port.ByteArrayToString() before writing using Port.Write() to write the data to the serial port.

And you need to convert a received string to a byte array using SerialNET.Port.StringToByteArray() after receiving it from Port.Read or Port.OnRead.

For more detailed information take a look in the SerialTools reference manual for the above listed methods.