diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2023-11-29 22:24:20 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2023-11-29 22:24:20 +0100 |
| commit | 03d116150a55c5694e255adccb09ac8af388f977 (patch) | |
| tree | 84be86c4fb3b1162190e7275ef45778d8e2d5da3 | |
| parent | d97d49d593b230f6f3e1266bde14bfa8d04f3c24 (diff) | |
| download | usb-wde1-tools-master.tar.gz usb-wde1-tools-master.zip | |
| -rw-r--r-- | README.rst | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -128,3 +128,32 @@ Install PHP and the PHP rrd extension (``pear install pecl/rrd``) to make it work. Run ``gen-html.php`` every 5 minutes. + + +Static USB device name +====================== +When you have multiple serial USB devices attached to the computer, +rebooting may lead to switched ttyUSB* numbers. + +A solution is to define a udev rule in ``/etc/udev/rules.d/99-usb-wde1.rules``:: + + SUBSYSTEM=="tty", ATTRS{serial}=="XQJ2EJEMADDFYBD3", SYMLINK+="usbwde1" + +You can find the serial number in ``dmesg`` output:: + + usb 1-3: new full-speed USB device number 2 using xhci_hcd + usb 1-3: New USB device found, idVendor=10c4, idProduct=ea60, bcdDevice= 1.00 + usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 + usb 1-3: Product: ELV USB-WDE1 Wetterdatenempfänger + usb 1-3: Manufacturer: Silicon Labs + usb 1-3: SerialNumber: XQJ2EJEMADDFYBD3 + +After creating the file, activate it:: + + $ udevadm control --reload + $ udevadm trigger + +Now a file ``/dev/usbwde1`` exists. + +Modify ``munin/usb-wde1-log-last.sh`` to use the new device file instead +of ``ttyUSB0``. |
