Skip to content

PTT configuration doesn't support long /dev names #104

@dranch

Description

@dranch

I'm using a US Interface Navigator here and I'm trying to use the serial by-id naming convention. The Navigator's six serial ports identify themselves with long names:

root@rpi3:/etc/ax25# ls -la /dev/serial/by-id/
total 0
drwxr-xr-x 2 root root 160 Jul 4 10:42 .
drwxr-xr-x 4 root root 80 Jul 4 10:42 ..
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if00-port0 -> ../../ttyUSB0
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if01-port0 -> ../../ttyUSB1
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__RS232___Config__00000002-if00-port0 -> ../../ttyUSB4
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__RS232___Config__00000002-if01-port0 -> ../../ttyUSB5
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__WKey___FSK__00000001-if00-port0 -> ../../ttyUSB2
lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__WKey___FSK__00000001-if01-port0 -> ../../ttyUSB3

The port I'm trying to use is:

lrwxrwxrwx 1 root root 13 Jul 4 10:42 usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if01-port0 -> ../../ttyUSB1

and thus in the direwolf.conf file for Direwolf v1.4, I'm using:

PTT /dev/serial/by-id/usb-FTDI_Navigator__CAT___2nd_PTT__00000000-if01-port0 RTS -DTR

Unfortunately, that doesn't work but the short direct interface name DOES work:

PTT /dev/ttyUSB1 RTS -DTR

Can Direwolf be enhanced to deal with longer device names?

--David
KI6ZHD

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions