Skip to content

A daemon which communicates with serial port, also provides the OpenWrt ubus interface for IPC.

License

Notifications You must be signed in to change notification settings

mrjohannchang/seriald

Repository files navigation

seriald

seriald is a high performance deamon which manages a serial port as well as provides the OpenWrt ubus interface for IPC. The binary size is only 21 kB.

Usage

Run daemon

seriald /dev/ttyS0

Can run multiple daemons on different device nodes.

Options

See

seriald -h

Read from serial port

Command:

ubus listen serial.ttyS0

Result:

{ "serial.ttyS0": {"data":"<incoming message>"} }

<incoming message> is a line read from the serial port. All the CR (\r) and LF (\n) characters will be eliminated from it.

Write to serial port

ubus call serial.ttyS0 send '{"data": "<outgoing message>"}'

data is a fixed attribute. To send a message to the serial port, replace <outgoing message> with the message you want to send. An <outgoing message> will be appended an LF (\n) character at the end before seriald passes it to the serial port.

License

Except where otherwise noted, all parts of this software is licensed under GPLv3. This work is based on picocom, which is licensed under GPLv2.

About

A daemon which communicates with serial port, also provides the OpenWrt ubus interface for IPC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages