User avatar
Posts: 15344
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

Can SerialTools send and receive binary data?

Fri Aug 06, 2004 12:04 am

Can SerialTools send and receive binary data?


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.

Return to “Knowledge base SerialTools”