yaq/traits/uses-uart


Device which communicates over a serial bus with a given baud rate (e.g. /dev/ttyACM0 on unix and COM3 on windows at 9600 baud)

requires

uses-serial

configuration

Daemons with the uses-uart trait expect the following configuration:

baud_rate (int)

serial_port (string)

messages

Daemons with the uses-uart trait expose the following public messages:

direct_serial_write
Expose direct access to the serial port to clients. This should not be encouraged for normal use, but may be very important for debugging. If a device is expected to return data, it should be logged at the INFO level, not returned to the client. This is done to allow long tasks to be run asynchronously, and to explicitly discourage use of this method except when debugging. Setting `busy` to true is encouraged, but individual daemon writers should consider their own use case.
from uses-serial
parameters:

message (bytes)

daemons

The following daemons implement the uses-uart trait:

acton-2150i
newport-connex-agp
newport-smc100
thorlabs-bsc201
thorlabs-k10cr1
thorlabs-kdc101
thorlabs-kst101
thorlabs-lts150
thorlabs-lts300
wright-filter-wheel
wright-ingaas
zaber-binary


built 2020-10-27 13:47:08                                      CC0: no copyright