NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: comms/py-serial in NetBSD vs Linux differences




El 11/1/25 a las 23:22, Valery Ushakov escribió:
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


Many thanks Uwe for the explanation.

Ramiro.




Home | Main Index | Thread Index | Old Index