Announcement

Collapse
No announcement yet.

Linux Static USB port configuration for Homeseer 3

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Linux Static USB port configuration for Homeseer 3

    Suggested fix is:

    Write a simple udev-rule which will assign symlink /dev/whatever to right device by its VID & PID.

    1 - Find out what is on ttyUSB

    dmesg | grep ttyUSB

    2 - list all attributes of the device and pick out a unique identifier set, eg idVendor + idProduct (and if necessary SerialNumber if you have more than one device with the same idVendor and idProduct).

    udevadm info --name=/dev/ttyUSB1 --attribute-walk

    3 - Create a file /etc/udev/rules.d/99-usb-serial.rules with something like this line in it:

    SUBSYSTEM=="tty", ATTRS{idVendor}=="1234", ATTRS{idProduct}=="5678", SYMLINK+="your_device_name"

    4 - Load the new rule:

    sudo udevadm trigger

    5 - Verify what happened:

    ls -l /dev/your_device_name

    will show what ttyUSB number the symlink went to. If it's /dev/ttyUSB1, then verify who owns that and to which group it belongs:

    ls -l /dev/ttyUSB1

    Then just for the fun of it:

    udevadm test -a -p $(udevadm info -q path -n /dev/your_device_name)
    Last edited by Pete; May 22, 2016, 03:48 PM.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant
Working...
X