mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
591 B
591 B
Use a container to implement a serial to net bridge
This uses ncat
from nmap to bridge a serial port to a network port. The serial port is passed to the Podman command (eg. /dev/ttyACM0
) and the network port is 2560
.
Important
Other variants of
nc
orncat
may not work as expected.
Build and run the container
$ podman buil -t dcc/bridge .
$ podman run -d --group-add keep-groups --device=/dev/ttyACM0:/dev/arduino -p 2560:2560 --name dcc-bridge dcc/bridge
It can be tested with telnet
:
$ telnet localhost 2560