99-hth-controller.rules.template 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # 99-hth-controller.rules.template
  2. #
  3. # Do NOT invent USB idVendor / idProduct / serial.
  4. # This repository has no captured hardware IDs.
  5. #
  6. # On a machine with the real USB-UART adapter plugged in:
  7. #
  8. # udevadm info -a -n /dev/ttyUSB0
  9. # udevadm info -q property -n /dev/ttyUSB0
  10. #
  11. # Copy ATTRS{idVendor}, ATTRS{idProduct}, and ATTRS{serial} (if present)
  12. # into the rule below. Prefer serial + VID/PID over "the first ttyUSB".
  13. # Optionally match ATTRS{devpath} / kernel USB port path for stable seating.
  14. #
  15. # Install the filled file as:
  16. # /etc/udev/rules.d/99-hth-controller.rules
  17. # Then:
  18. # sudo udevadm control --reload-rules
  19. # sudo udevadm trigger
  20. #
  21. # Expected symlink: /dev/hth/controller0
  22. # Production hthd.serial.yaml should use that path, not /dev/ttyUSB0.
  23. # ACTION=="add", SUBSYSTEM=="tty", \
  24. # ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", ATTRS{serial}=="ZZZZ", \
  25. # SYMLINK+="hth/controller0", GROUP="hth", MODE="0660", TAG+="uaccess"
  26. # Placeholder line kept commented so an unfinished copy cannot match every tty:
  27. # KERNEL=="ttyUSB*", ATTRS{idVendor}=="REPLACE_VID", ATTRS{idProduct}=="REPLACE_PID", SYMLINK+="hth/controller0"