Printable versions
This Page
All Pages
PDF

Index

Class
Port

Properties
List
Enabled
BaudRate
ComPort

Methods
Read
Write
Purge
Dispose

ByteArrayToString
StringToByteArray

Events
OnRead
OnWritten
OnDSR
OnCTS
OnRI
OnDCD
OnForceClose

More Properties
Parity
StopBits
ByteSize
StartTrigger
EndTrigger
BufferSize
Timeout

DSR
CTS
RI
DCD

Handshake
RTS
DTR
Break
InfraRed

MultiThreading
Parent
NoEvents

Port SerialTools v1.00 and later

The Port class contains the core functionallity to access the serial port.

Set a baudrate using Port.BaudRate and the port number using Port.ComPort. Port.Enabled opens the specified serial port for reading and writing.

Data is read from the port with the Port.OnRead event or the Port.Read method and you write data using Port.Write.

By using Port.StartTrigger and Port.EndTrigger SerialTools can help you with simple parsing of the data.

Port.Timeout can be used for timeout handling.

If you want to read and write binary data take a closer look at Port.ByteArrayToString and Port.StringToByteArray.

For more advanced control of the serial port and handshaking options see methods and properties to the left.



100% managed code
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login