Skip to content

Commit

Permalink
resource: udev: also suggest ID_USB_INTERFACE_NUM - docu update
Browse files Browse the repository at this point in the history
Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
  • Loading branch information
joergho committed Mar 14, 2024
1 parent ea1812b commit c7b634b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doc/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,15 @@ This allows identification through hot-plugging or rebooting.
USBSerialPort:
match:
ID_SERIAL_SHORT: 'P-00-00682'
ID_USB_INTERFACE_NUM: '00'
speed: 115200
The example would search for a USB serial converter with the key
``ID_SERIAL_SHORT`` and the value ``P-00-00682`` and use it with a baud rate
of ``115200``.
The ``ID_SERIAL_SHORT`` property is set by the ``usb_id`` builtin helper program.
The example would search for a USB serial converter with a given serial number
(``ID_SERIAL_SHORT`` = ``P-00-00682``) and use first interface
(``ID_USB_INTERFACE_NUM`` = ``00``) with a baud rate of 115200.

The ``ID_SERIAL_SHORT`` and ``ID_USB_INTERFACE_NUM`` properties are set by the
``usb_id`` builtin helper program.

Arguments:
- match (dict): key and value pairs for a udev match, see `udev Matching`_
Expand Down

0 comments on commit c7b634b

Please sign in to comment.