extra USB ports on Rpi - using USB hub

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
renerene
Posts: 350
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

extra USB ports on Rpi - using USB hub

Post by renerene »

I have more then 4 devices so I've added a simple USB hub (Action) to my pi. In different Domoticz sessions all devices have worked, so I guess the hub is Ok. Problem is that after reboot some devices don't show up.

Can somebody give me a hand on how to use this tutorial in conjuction with a hub?
https://www.domoticz.com/wiki/Assign_fi ... o_USB_port

Before using the hub:
command: sudo nano /etc/udev/rules.d/99-usb-serial.rules

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A198D23", SYMLINK+="ttyUSB-RFXCOM"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-OPENZWAVE"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="ttyUSB-RFLINK" 
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="P117QJ2I", SYMLINK+="ttyUSB-Pkabel"
After using the hub:
command: lsusb

Code: Select all

Bus 001 Device 006: ID 1058:0704 Western Digital Technologies, Inc. My Passport Essential (WDME)
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 005: ID 0658:0200 Sigma Designs, Inc. Aeotec Z-Stick Gen5 (ZW090) - UZB
Bus 001 Device 007: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
command: dmesg | grep ttyUSB

Code: Select all

[   11.786335] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
command: udevadm info --name=/dev/ttyUSB0 --attribute-walk

Code: Select all


Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0/tty/ttyUSB0':
    KERNEL=="ttyUSB0"
    SUBSYSTEM=="tty"
    DRIVER==""

  looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/ttyUSB0':
    KERNELS=="ttyUSB0"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="ftdi_sio"
    ATTRS{latency_timer}=="16"
    ATTRS{port_number}=="0"

  looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0':
    KERNELS=="1-1.2:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="ftdi_sio"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{supports_autosuspend}=="1"
    ATTRS{bInterfaceSubClass}=="ff"
    ATTRS{bInterfaceProtocol}=="ff"
    ATTRS{authorized}=="1"
    ATTRS{interface}=="RFXtrx433"
    ATTRS{bInterfaceClass}=="ff"
    ATTRS{bInterfaceNumber}=="00"

  looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2':
    KERNELS=="1-1.2"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{bMaxPower}=="90mA"
    ATTRS{tx_lanes}=="1"
    ATTRS{maxchild}=="0"
    ATTRS{speed}=="12"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bmAttributes}=="a0"
    ATTRS{devnum}=="4"
    ATTRS{authorized}=="1"
    ATTRS{idProduct}=="6001"
    ATTRS{bcdDevice}=="0600"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{devspec}=="  (null)"
    ATTRS{serial}=="A198D23"
    ATTRS{version}==" 2.00"
    ATTRS{devpath}=="1.2"
    ATTRS{manufacturer}=="RFXCOM"
    ATTRS{product}=="RFXtrx433"
    ATTRS{idVendor}=="0403"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{removable}=="removable"
    ATTRS{bDeviceClass}=="00"
    ATTRS{busnum}=="1"
    ATTRS{quirks}=="0x0"
    ATTRS{urbnum}=="88445"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{ltm_capable}=="no"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{rx_lanes}=="1"
    ATTRS{configuration}==""

  looking at parent device '/devices/platform/soc/3f980000.usb/usb1/1-1':
    KERNELS=="1-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{ltm_capable}=="no"
    ATTRS{idVendor}=="0424"
    ATTRS{idProduct}=="2514"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bcdDevice}=="0bb3"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{rx_lanes}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{speed}=="480"
    ATTRS{bMaxPower}=="2mA"
    ATTRS{devpath}=="1"
    ATTRS{busnum}=="1"
    ATTRS{quirks}=="0x0"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{version}==" 2.00"
    ATTRS{urbnum}=="45"
    ATTRS{removable}=="unknown"
    ATTRS{authorized}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{maxchild}=="4"
    ATTRS{devnum}=="2"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{bDeviceProtocol}=="02"
    ATTRS{configuration}==""
    ATTRS{tx_lanes}=="1"

  looking at parent device '/devices/platform/soc/3f980000.usb/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{rx_lanes}=="1"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{idVendor}=="1d6b"
    ATTRS{maxchild}=="1"
    ATTRS{manufacturer}=="Linux 4.19.97-v7+ dwc_otg_hcd"
    ATTRS{interface_authorized_default}=="1"
    ATTRS{product}=="DWC OTG Controller"
    ATTRS{devpath}=="0"
    ATTRS{busnum}=="1"
    ATTRS{speed}=="480"
    ATTRS{devnum}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{version}==" 2.00"
    ATTRS{urbnum}=="25"
    ATTRS{configuration}==""
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{ltm_capable}=="no"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{tx_lanes}=="1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{authorized}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{serial}=="3f980000.usb"
    ATTRS{quirks}=="0x0"
    ATTRS{bMaxPower}=="0mA"
    ATTRS{bcdDevice}=="0419"
    ATTRS{authorized_default}=="1"
    ATTRS{removable}=="unknown"
    ATTRS{bDeviceClass}=="09"
    ATTRS{idProduct}=="0002"

  looking at parent device '/devices/platform/soc/3f980000.usb':
    KERNELS=="3f980000.usb"
    SUBSYSTEMS=="platform"
    DRIVERS=="dwc_otg"
    ATTRS{spramdump}=="SPRAM Dump"
    ATTRS{gotgctl}=="GOTGCTL = 0x001c0001"
    ATTRS{mode}=="Mode = 0x1"
    ATTRS{hcddump}=="HCD Dump"
    ATTRS{regvalue}=="invalid offset"
    ATTRS{hcd_frrem}=="HCD Dump Frame Remaining"
    ATTRS{hptxfsiz}=="HPTXFSIZ = 0x02000406"
    ATTRS{enumspeed}=="Device Enumeration Speed = 0x1"
    ATTRS{grxfsiz}=="GRXFSIZ = 0x00000306"
    ATTRS{bussuspend}=="Bus Suspend = 0x0"
    ATTRS{buspower}=="Bus Power = 0x1"
    ATTRS{mode_ch_tim_en}=="Mode Change Ready Timer Enable = 0x0"
    ATTRS{srpcapable}=="SRPCapable = 0x1"
    ATTRS{driver_override}=="(null)"
    ATTRS{srp}=="SesReqScs = 0x1"
    ATTRS{hnp}=="HstNegScs = 0x0"
    ATTRS{hsic_connect}=="HSIC Connect = 0x1"
    ATTRS{hprt0}=="HPRT0 = 0x00001005"
    ATTRS{guid}=="GUID = 0x2708a000"
    ATTRS{gsnpsid}=="GSNPSID = 0x4f54280a"
    ATTRS{rem_wakeup_pwrdn}==""
    ATTRS{remote_wakeup}=="Remote Wakeup Sig = 0 Enabled = 0 LPM Remote Wakeup = 0"
    ATTRS{rd_reg_test}=="Time to read GNPTXFSIZ reg 10000000 times: 1140 msecs (114 jiffies)"
    ATTRS{fr_interval}=="Frame Interval = 0x1d4b"
    ATTRS{ggpio}=="GGPIO = 0x00000000"
    ATTRS{gusbcfg}=="GUSBCFG = 0x20001700"
    ATTRS{wr_reg_test}=="Time to write GNPTXFSIZ reg 10000000 times: 450 msecs (45 jiffies)"
    ATTRS{gpvndctl}=="GPVNDCTL = 0x00000000"
    ATTRS{gnptxfsiz}=="GNPTXFSIZ = 0x01000306"
    ATTRS{inv_sel_hsic}=="Invert Select HSIC = 0x0"
    ATTRS{devspeed}=="Device Speed = 0x0"
    ATTRS{busconnected}=="Bus Connected = 0x1"
    ATTRS{regdump}=="Register Dump"
    ATTRS{hnpcapable}=="HNPCapable = 0x1"
    ATTRS{regoffset}=="0xffffffff"

  looking at parent device '/devices/platform/soc':
    KERNELS=="soc"
    SUBSYSTEMS=="platform"
    DRIVERS==""
    ATTRS{driver_override}=="(null)"

  looking at parent device '/devices/platform':
    KERNELS=="platform"
    SUBSYSTEMS==""
    DRIVERS==""
User avatar
sancla
Posts: 105
Joined: Wednesday 01 January 2020 23:01
Target OS: -
Domoticz version:
Contact:

Re: extra USB ports on Rpi - using USB hub

Post by sancla »

It's probably a power issue.
Try an externally powered hub
Check these howto's: https://sancla.com
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest