On Sat, Jan 11, 2025 at 17:46:59 +0100, Ramiro Aceves wrote:
Under Linux, device is /dev/ttyAMC0, in NetBSD device is /dev/ttyU0 and
/dev/dtyU0 (never understood which to use).
As explained in tty(4) - perhaps a bit too tersely:
The /dev/dtyXX special file is a SunOS-compatible dial-out device.
Unlike the dial-in device, opening the dial-out device never blocks.
Think old dial-up modems. If you open "tty", the open is blocked
until the modem gets a call from a remote user and establishes the
connection ("(data) carrier detect"). If you open the same
device as "dty", the open succeeds immediately and you can send
AT-commands to the modem to eventually send ATD... to dial out to
another system - hence the name.
On the other hand, in NetBSD py-serial detects 121 of devices but no
useful information on /dev/ttyU0 and /dev/dtyU0
pyserial knows how to use sysfs on Linux to fetch the device details.
-uwe