KioRawSerialDevice Class
This class is intended to provide a scripting interface for establishing and communicating with serial comm based devices. This communiction includes reading and writing to devices via serial ports via byte arrays or HEX-encoded strings.
Functions
Type | Signature |
bool |
IsOpen(string)
Checks to see if the specified device has an open connection to a serial port. |
bool |
Open(string, string, int, HandShake, bool, Parity, int, StopBits)
Opens a serial port for the specified device. |
void |
Close(string)
Close a serial port for the specified device. |
void |
SetReadBufSize(string, int)
Sets the length of the array used to read from the specified device. |
void |
SetReadDebounceCnt(string, int)
Sets the number of attempts for the specified device. |
void |
SetTimeouts(string, int, int)
Sets the number of milliseconds that KioWare will wait to attempt the next read or write operation. |
Array |
ReadBytes(string)
Reads bytes from the specified device. |
string |
ReadHex(string)
Reads hex-encoded data from the specified device. |
int |
WriteBytes(string, Array)
Writes an array of bytes to the specified device. |
int |
WriteHex(string, string)
Writes a hex-encoded string to the specified device. |
int |
WriteStringAsUtf8(string, string)
Writes a UTF-8 encoded string to the specified device. |
Related Types
Type | Signature |
Enum |
HandShakeEnum
Specifies the control protocol used in establishing a serial port communication for a System.IO.Ports.SerialPort object. |
Enum |
ParityEnum
Specifies the parity bit for a System.IO.Ports.SerialPort object. |
Enum |
StopBitsEnum
Specifies the control protocol used in establishing a serial port communication for a System.IO.Ports.SerialPort object. |