Skip to main content
Version: 2.8

Serial Device Data Access

A task processor with payload handling is needed to access data over a native serial connection (COM).

Task Processor

The payload processing must be declared in a processor information within the device info file.

The payload script is typically placed in the folder:

$(ConfigPath)\HumanOS.UHAL.SerialDeviceDriver

Example

  "TaskProcessors": [
{
"Id": "9bd3ec86-f5fe-4679-8621-751540d602a2",
"Name": "MainTaskProcessor",
"ScriptFile": "TTestPayload.cs",
"Properties": []
}
]

Further information about DataStream Scripting.

A detailed example for native COM connections.

Builtin Addresses

Following data node addresses are provided by the plugin. The Stream namespace is used:

AddressDescriptionData Type
Stream::AvailableReturns the available flag. true if the data stream is open.System.Boolean
Stream::SignOfLifeSign of life. Toggles in 1Hz if the data stream is open.System.Boolean