About PortController
Introduction
Purchasing PortController
Redistributing PortController
License Agreement
Support
Getting Started
How to Use PortController
PortController Sample Projects
Handling PortController Errors
Reference
Properties
AvailableSystemPorts
BaudRate Property
Break Property
BytesUsedRQ Property
BytesUsedTQ Property
Cd Property
Cts Property
DataBits Property
Dsr Property
Dtr Property
DtrDsr Property
EnableReadOnEventChar Property
EventChar Property
ForceBeginInvokeEventFiring Property
IsOpen Property
IsFileTransferInProgress Property
Parity Property
PortHandle Property
PortName Property
ReceiveBufferSize Property
Ring Property
Rts Property
RtsCts Property
StopBits Property
SystemPorts Property
TraceOutput Property
TransmitBufferSize
XoffByte Property
XonByte Property
XonXoff Property
Methods
CancelFileTransfer Method
ClearRQ Method
ClearTQ Method
Close Method
GetErrorStatus Method
Open Method
Read Method
ReadBinary Method
ReceiveFileXModem Method
ReceiveFileXModemCRC Method
ReceiveFileYModem Method
ReceiveFileZModem Method
SendFileXModem Method
SendFileXModem1k Method
SendFileYModem Method
SendFileZModem Method
SimulateReceivedXoff Method
SimulateReceivedXon Method
Write Method
WriteBinary Method
Events
OnBreakSignal Event
OnCdToggle Event
OnCtsToggle Event
OnDataReceived Event
OnDsrToggle Event
OnError Event
OnEventCharReceived Event
OnFileTransferComplete Event
OnFileTransferStatusUpdate Event
OnRing Event
OnTQEmpty Event

PortController.NET Sample Projects

Hello, World!

The Hello, World project demonstrates how to open the serial port and write data. This example writes the string "Hello, World!" to the COM1 port. If you wish to run this application using a different COM port or settings you may simply edit the appropriate line in the code.

The Hello, World Visual Basic.NET sample project can be found in the Examples\VB\Hello World folder.
The Hello, World C# sample project can be found in the Examples\C#\Hello World folder.
The Hello, World C++ sample project can be found in the Examples\C++\Hello World folder.

File Transfer

The File Transfer project demonstrates how to send and receive files using the XMODEM, XMODEM-CRC, XMODEM-1K, YMODEM, and ZMODEM protocols, as well as keeping track of a transfer's progress using the OnFileTransferStatusUpdate and OnFileTransferComplete events.

The File Transfer Visual Basic.NET sample project can be found in the Examples\VB\File Transfer folder.
The File Transfer C# sample project can be found in the Examples\C#\File Transfer folder.
The File Transfer C++ sample project can be found in the Examples\C++\File Transfer folder.

GPS

In the GPS project, Global Positioning System data delimited by a newline character is read and parsed using PortController's EventChar property and EventCharReceived event. This technique can be easily adapted to read any data that is delimited by a special character.

The GPS Visual Basic.NET sample project can be found in the Examples\VB\GPS folder.
The GPS C# sample project can be found in the Examples\C#\GPS folder.
The GPS C++ sample project can be found in the Examples\C++\GPS folder.

SimpleTerm

The SimpleTerm project is a serial port communications terminal that provides basic read and write functionality. This project demonstrates how to use the DataReceived event to respond to incoming data.

The SimpleTerm Visual Basic.NET sample project can be found in the Examples\VB\SimpleTerm folder.
The SimpleTerm C# sample project can be found in the Examples\C#\SimpleTerm folder.
The SimpleTerm C++ sample project can be found in the Examples\C++\SimpleTerm folder.

Test Panel

The PortController Test Panel project demonstrates much of the functionality available with the Scientific Component PortController. You can use this project to test communications between devices, or add to it to perform custom diagnostic tasks. You may also jump start your own project by using the code provided with the Test Panel.

The PortController Test Panel Visual Basic.NET sample project can be found in the Examples\VB\Test Panel folder.
The PortController Test Panel C# sample project can be found in the Examples\C#\Test Panel folder.
The PortController Test Panel C++ sample project can be found in the Examples\C++\Test Panel folder.