Skip to content

ser2net Docker Container role

This role is to set up ser2net Docker container and udev rules.

If the host requires connection with a serial device, a dictionary with the devices listed should be provided in the following format:

ser2net_devices:
- name: "FT232R_USB_UART"
  desc: "This is a FT232 device"
  serial:
    vid: "0403"
    pid: "6001"
    serialno: "AB0MLY92"

The dictionary requires the following fields:

  • name - Required. The name of the device to register to the host.
  • desc - Optional. A description for the device added to the host.
  • serial - A dictionary containing information about the serial device.
    • vid - The vendorId of the serial. To find this information you can plug in the serial device and run usb-devices.
    • pid - The productId of the serial. To find this information you can plug in the serial device and run usb-devices.
    • baud_rate - An optional baud rate field to set the baud rate of this serial device in ser2net. Defaults to 9600.
    • serialno - The serial number of the serial device. To find this information you can plug in the serial device and run usb-devices. If your device does not have a serial number then you should used devpath instead, see below.
    • devpath: The DEVPATH of this device. To find this information you can plug in the serial device, use sudo dmesg to find where in /dev it appeared (e.g. /dev/ttyUSB0) and run udevadm info /dev/ttyUSB0.