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:
Address | Description | Data Type |
---|---|---|
Stream::Available | Returns the available flag. true if the data stream is open. | System.Boolean |
Stream::SignOfLife | Sign of life. Toggles in 1Hz if the data stream is open. | System.Boolean |