BalenaOS and Homeassisant - Can't get usb Zigbee radio pen to show

Hi there,

I’ve build a project with balenaSound and Home Assistant.
Last week I got a Zigbee CC2351 USB Pen to work as a hub for zigbee devices.

When I try to use the ZHA addon i cant get to find the USB where the Zigbee pen is.

I changed the docker file to the following:

homeassistant:
    container_name: home-assistant
    image: homeassistant/home-assistant:stable
    network_mode: host
    ports:
      - 8123:8123
      - 51827:51827
    privileged: true
    volumes:
      - 'config:/config'
    restart: always
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/ttyUSB1:/dev/ttyUSB1
      - /dev/ttyACM0:/dev/ttyACM0

Can please someone point me in the right directions, how can I map the USB ports in a correct way.
My BalenaOS is 2.50.1+rev1

Thank you

Hi there,

Can you SSH into the HostOS and run some lsusb commands to see if the USB device loaded correctly?

Also, could you let us know what device type this is please?

Hi Phil,

After I do lsusb i get:

Bus 001 Device 001: ID 1d6b:0002

lsusb -v

Bus 001 Device 001: ID 1d6b:0002  
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  idVendor           0x1d6b 
  idProduct          0x0002 
  bcdDevice            4.19
  iManufacturer           3 Linux 4.19.75 dwc_otg_hcd
  iProduct                2 DWC OTG Controller
  iSerial                 1 fe980000.usb
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0008
    Ganged power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0000
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

lsusb -t

: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M

My device is a Raspberry Pi 4

I am new to this, so I really dont know what to do with this info.
Thank you

Can you add ENV UDEV=on to your container’s Dockerfile, and try again?

This will propagate UDEV rules to your container

Also, are you hotplugging the device? How are you using it exactly?

Hi anujdeshpande, I have that set on the homeassistant docker file but it does not work.

The device is a CC2531 USB Stick, im just puggling it on the top left usb port of the RPi4

Hello! Did you try this USB stick with your computer to ensure that it works properly?

Hi mpous,

If I connect the USB to a laptop it is identified.
I cant make it work because i dont have home assistant on my laptop. I will try to initialize homeassistant locally to check that, but i really think is an issue with the ports permission. Is there other device i could try plugging in to the raspberry?

Hi there, looks like indeed the device is not recognising your Zigbee stick or at least the lsusb command is not listing it. Just to be clear, when you ran the lsusb commands did you ran them on the homeassistant container or on the hostOS? Make sure you run it on the hostOS.

Also FYI, setting ENV UDEV=on won’t have any effect here as it’s a balenalib based images feature, in this case you are using a homeassistant based image so it will be completely ignored.

Hi there tmigone,

I ran the lsub commands on the hostOS.

What if you run ls -l /dev on the hostOS, do you see any /dev/ttyACM* or similar?

When i run ls -l /dev the only “/dev” i get is:

/dev/pts/ptmx

then I found:

ttyAMA0
ttySO
ttyprintk
tty from 0 to 63

the config that is showed on the homeassistant software is “ttyAMA0”, but it cant connect to this one.

Hey @mistformultimus, thanks for all the troubleshooting so far! Could you try capturing the following logs while connecting the Zigbee CC2531?

  1. disconnect Zigbee CC2531 from the pi4
  2. reconnect Zigbee CC2531 to the pi4
  3. run dmesg in HostOS terminal and provide the logs here

What we are hoping to see is how the device is detected by the kernel and whether the driver is correctly loaded.

Hi klutchell

My logs are theese:

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 4.19.75 (oe-user@oe-host) (gcc version 8.3.0 (GCC)) #1 SMP PREEMPT Tue May 26 11:06:42 UTC 2020
[    0.000000] Machine model: Raspberry Pi 4 Model B Rev 1.4
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 256 MiB at 0x000000001ec00000
[    0.000000] On node 0 totalpages: 2074112
[    0.000000]   DMA32 zone: 4096 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 255488 pages, LIFO batch:63
[    0.000000]   Normal zone: 28672 pages used for memmap
[    0.000000]   Normal zone: 1818624 pages, LIFO batch:63
[    0.000000] random: get_random_bytes called from start_kernel+0xa0/0x464 with crng_init=0
[    0.000000] percpu: Embedded 24 pages/cpu s57880 r8192 d32232 u98304
[    0.000000] pcpu-alloc: s57880 r8192 d32232 u98304 alloc=24*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 2041344
[    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 cma=64M cma=256M  smsc95xx.macaddr=DC:A6:32:B4:CE:AA vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000  dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=UUID=ba1eadef-d225-4e15-be2f-66aa14785412 rootwait
[    0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
[    0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
[    0.000000] software IO TLB: mapped [mem 0x3a5ff000-0x3e5ff000] (64MB)
[    0.000000] Memory: 7799376K/8296448K available (9020K kernel code, 1064K rwdata, 2928K rodata, 10496K init, 1127K bss, 234928K reserved, 262144K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 32052 entries in 126 pages
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[    0.000006] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[    0.000213] Console: colour dummy device 80x25
[    0.000556] console [tty1] enabled
[    0.000609] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[    0.000647] pid_max: default: 32768 minimum: 301
[    0.000968] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.001057] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes)
[    0.024038] ASID allocator initialised with 32768 entries
[    0.032039] rcu: Hierarchical SRCU implementation.
[    0.040541] EFI services will not be available.
[    0.048098] smp: Bringing up secondary CPUs ...
[    0.080290] Detected PIPT I-cache on CPU1
[    0.080350] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[    0.112386] Detected PIPT I-cache on CPU2
[    0.112430] CPU2: Booted secondary processor 0x0000000002 [0x410fd083]
[    0.144506] Detected PIPT I-cache on CPU3
[    0.144548] CPU3: Booted secondary processor 0x0000000003 [0x410fd083]
[    0.144689] smp: Brought up 1 node, 4 CPUs
[    0.144776] SMP: Total of 4 processors activated.
[    0.144798] CPU features: detected: 32-bit EL0 Support
[    0.145451] CPU: All CPU(s) started at EL2
[    0.145502] alternatives: patching kernel code
[    0.146647] devtmpfs: initialized
[    0.154679] Enabled cp15_barrier support
[    0.154725] Enabled setend support
[    0.155091] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.155133] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.161574] pinctrl core: initialized pinctrl subsystem
[    0.162188] DMI not present or invalid.
[    0.162593] NET: Registered protocol family 16
[    0.163820] cpuidle: using governor menu
[    0.164142] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.164171] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.166524] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.166629] Serial: AMBA PL011 UART driver
[    0.169946] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[    0.202002] bcm2835-dma fe007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1
[    0.204258] vgaarb: loaded
[    0.204587] SCSI subsystem initialized
[    0.204970] usbcore: registered new interface driver usbfs
[    0.205034] usbcore: registered new interface driver hub
[    0.205146] usbcore: registered new device driver usb
[    0.205241] pps_core: LinuxPPS API ver. 1 registered
[    0.205262] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.205298] PTP clock support registered
[    0.213009] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-02-20 16:41, variant start_cd
[    0.216780] raspberrypi-firmware soc:firmware: Firmware hash is 00f355997ccdacfaac70e6e07803eccc0a6f1d6e
[    0.222071] clocksource: Switched to clocksource arch_sys_counter
[    0.297408] VFS: Disk quotas dquot_6.6.0
[    0.297516] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.297716] FS-Cache: Loaded
[    0.297902] CacheFiles: Loaded
[    0.298510] simple-framebuffer: probe of 0.framebuffer failed with error -12
[    0.306246] NET: Registered protocol family 2
[    0.306923] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes)
[    0.307005] TCP established hash table entries: 65536 (order: 7, 524288 bytes)
[    0.307394] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.308426] TCP: Hash tables configured (established 65536 bind 65536)
[    0.308653] UDP hash table entries: 4096 (order: 5, 131072 bytes)
[    0.308757] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes)
[    0.309099] NET: Registered protocol family 1
[    0.313804] RPC: Registered named UNIX socket transport module.
[    0.313829] RPC: Registered udp transport module.
[    0.313848] RPC: Registered tcp transport module.
[    0.313866] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.313893] PCI: CLS 0 bytes, default 64
[    0.380810] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[    0.382761] Initialise system trusted keyrings
[    0.383017] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[    0.390279] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.390501] FS-Cache: Netfs 'nfs' registered for caching
[    0.391192] NFS: Registering the id_resolver key type
[    0.391239] Key type id_resolver registered
[    0.391258] Key type id_legacy registered
[    0.391285] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.393984] Key type asymmetric registered
[    0.394011] Asymmetric key parser 'x509' registered
[    0.394110] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.394304] io scheduler noop registered
[    0.394327] io scheduler deadline registered
[    0.394484] io scheduler cfq registered (default)
[    0.394507] io scheduler mq-deadline registered
[    0.394526] io scheduler kyber registered
[    0.419515] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000
[    0.419567] brcm-pcie fd500000.pcie: could not get clock
[    0.419651] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    0.419707] brcm-pcie fd500000.pcie:   MEM 0x600000000..0x603ffffff -> 0xf8000000
[    0.494111] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
[    0.494432] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    0.494463] pci_bus 0000:00: root bus resource [bus 00-01]
[    0.494489] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[    0.494555] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    0.494709] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.497792] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[    0.497919] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.498316] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.501209] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    0.501245] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[    0.501330] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.501358] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    0.501465] pci 0000:00:00.0: enabling device (0000 -> 0002)
[    0.501528] pci 0000:01:00.0: enabling device (0000 -> 0002)
[   20.977010] pci 0000:01:00.0: xHCI HW not ready after 5 sec (HC bug?) status = 0x801
[   20.977092] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x888 took 19995752 usecs
[   20.978991] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[   20.981010] iproc-rng200 fe104000.rng: hwrng registered
[   20.981322] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB)
[   20.982025] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[   20.982424] cacheinfo: Unable to detect cache hierarchy for CPU 0
[   20.991868] brd: module loaded
[   21.001645] loop: module loaded
[   21.002551] Loading iSCSI transport class v2.0-870.
[   21.004313] libphy: Fixed MDIO Bus: probed
[   21.004361] tun: Universal TUN/TAP device driver, 1.6
[   21.004963] bcmgenet fd580000.genet: failed to get enet clock
[   21.004994] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
[   21.005021] bcmgenet fd580000.genet: failed to get enet-wol clock
[   21.005048] bcmgenet fd580000.genet: failed to get enet-eee clock
[   21.005081] bcmgenet: Skipping UMAC reset
[   21.005329] unimac-mdio unimac-mdio.-19: DMA mask not set
[   21.014105] libphy: bcmgenet MII bus: probed
[   21.046705] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(____ptrval____)
[   21.047978] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   21.048021] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[   21.548112] xhci_hcd 0000:01:00.0: can't setup: -110
[   21.548142] xhci_hcd 0000:01:00.0: USB bus 1 deregistered
[   21.548216] xhci_hcd 0000:01:00.0: init 0000:01:00.0 fail, -110
[   21.548260] xhci_hcd: probe of 0000:01:00.0 failed with error -110
[   21.548651] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[   21.548896] dwc_otg fe980000.usb: base=(____ptrval____)
[   21.751238] Core Release: 2.80a
[   21.751260] Setting default values for core params
[   21.751295] Finished setting default values for core params
[   21.953797] Using Buffer DMA mode
[   21.953819] Periodic Transfer Interrupt Enhancement - disabled
[   21.953838] Multiprocessor Interrupt Enhancement - disabled
[   21.953858] OTG VER PARAM: 0, OTG VER FLAG: 0
[   21.953878] Dedicated Tx FIFOs mode
[   21.954387] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = ffffff800bbcc000 dma = 0x00000000ded04000 len=9024
[   21.954436] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[   21.954485] dwc_otg: Microframe scheduler enabled
[   21.954614] WARN::hcd_init_fiq:497: MPHI regs_base at ffffff800989d200
[   21.954703] dwc_otg fe980000.usb: DWC OTG Controller
[   21.954738] dwc_otg fe980000.usb: new USB bus registered, assigned bus number 1
[   21.954790] dwc_otg fe980000.usb: irq 25, io mem 0x00000000
[   21.954851] Init: Port Power? op_state=1
[   21.954868] Init: Power Port (0)
[   21.955149] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[   21.955179] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   21.955204] usb usb1: Product: DWC OTG Controller
[   21.955225] usb usb1: Manufacturer: Linux 4.19.75 dwc_otg_hcd
[   21.955246] usb usb1: SerialNumber: fe980000.usb
[   21.955798] hub 1-0:1.0: USB hub found
[   21.955862] hub 1-0:1.0: 1 port detected
[   21.956477] dwc_otg: FIQ enabled
[   21.956486] dwc_otg: NAK holdoff enabled
[   21.956494] dwc_otg: FIQ split-transaction FSM enabled
[   21.956506] Module dwc_common_port init
[   21.956746] usbcore: registered new interface driver uas
[   21.956831] usbcore: registered new interface driver usb-storage
[   21.957011] mousedev: PS/2 mouse device common for all mice
[   21.958709] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[   21.958896] bcm2835-cpufreq: min=600000 max=1500000
[   21.959511] sdhci: Secure Digital Host Controller Interface driver
[   21.959534] sdhci: Copyright(c) Pierre Ossman
[   21.959934] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[   21.960339] sdhci-pltfm: SDHCI platform and OF driver helper
[   21.964475] ledtrig-cpu: registered to indicate activity on CPUs
[   21.964546] hidraw: raw HID events driver (C) Jiri Kosina
[   21.964609] usbcore: registered new interface driver usbhid
[   21.964618] usbhid: USB HID core driver
[   21.965032] vchiq: vchiq_init_state: slot_zero = (____ptrval____), is_master = 0
[   21.967507] Initializing XFRM netlink socket
[   21.967794] NET: Registered protocol family 10
[   21.968377] Segment Routing with IPv6
[   21.968433] NET: Registered protocol family 17
[   21.968461] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   21.968517] Key type dns_resolver registered
[   21.968917] registered taskstats version 1
[   21.968934] Loading compiled-in X.509 certificates
[   21.972183] uart-pl011 fe201000.serial: cts_event_workaround enabled
[   21.972241] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 19, base_baud = 0) is a PL011 rev2
[   21.974520] console [ttyS0] disabled
[   21.974544] fe215040.serial: ttyS0 at MMIO 0x0 (irq = 22, base_baud = 62500000) is a 16550
[   23.175662] console [ttyS0] enabled
[   23.179437] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[   23.187363] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
[   23.195334] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[   23.201441] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[   23.231255] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.1
[   23.256454] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   23.263702] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   23.270805] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   23.276389] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[   23.284890] of_cfs_init
[   23.287436] of_cfs_init: OK
[   23.300731] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   23.306394] Freeing unused kernel memory: 10496K
[   23.307973] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   23.311147] Run /init as init process
[   23.363916] random: fast init done
[   23.386421] mmc1: new high speed SDIO card at address 0001
[   23.417788] mmc0: new ultra high speed DDR50 SDXC card at address e624
[   23.425527] mmcblk0: mmc0:e624 AFGCE 59.5 GiB
[   23.437874]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[   24.707594] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   24.740929] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[   25.009301] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   25.229263] systemd[1]: System time before build time, advancing clock.
[   25.337335] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[   25.355308] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[   25.453414] systemd[1]: /lib/systemd/system/chronyd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/chrony/chronyd.pid \xe2\x86\x92 /run/chrony/chronyd.pid; please update the unit file accordingly.
[   25.536617] random: systemd: uninitialized urandom read (16 bytes read)
[   25.562280] random: systemd: uninitialized urandom read (16 bytes read)
[   25.586170] random: systemd: uninitialized urandom read (16 bytes read)
[   26.945714] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
[   28.059668] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
[   28.071286] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
[   28.087666] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
[   28.102363] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
[   28.123265] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[   28.135154] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[   28.148785] media: Linux media interface: v0.10
[   28.155202] [vc_sm_connected_init]: start
[   28.192138] videodev: Linux video capture interface: v2.00
[   28.197868] vc_sm_cma_vchi_init: failed to open VCHI service (-1)
[   28.197876] [vc_sm_connected_init]: failed to initialize shared memory service
[   28.232715] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[   28.250566] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 0
[   28.260295] bcm2835_audio soc:audio: card created with 8 channels
[   28.299306] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   28.306284] [drm] No displays found. Consider forcing hotplug if HDMI is attached
[   28.309792] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[   28.332735] vc4-drm soc:gpu: bound fe600000.firmwarekms (ops vc4_fkms_ops [vc4])
[   28.342679] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 1
[   28.350659] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   28.359155] [drm] No driver support for vblank timestamp query.
[   28.365959] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL
[   28.377585] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[   28.396084] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[   28.409973] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[   28.430705] bcm2835_mmal_vchiq: Failed to open VCHI service connection (status=-1)
[   28.447850] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   28.494803] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   28.581161] brcmfmac: F1 signature read @0x18000000=0x15264345
[   28.587022] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   28.598286] usbcore: registered new interface driver brcmfmac
[   28.819954] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[   28.840982] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: May  2 2019 02:46:17 version 7.45.189 (r714228 CY) FWID 01-e1db26e2
[   29.240759] uart-pl011 fe201000.serial: no DMA platform data
[   30.554330] random: crng init done
[   30.557802] random: 7 urandom warning(s) missed due to ratelimiting
[   31.178941] i2c /dev entries driver
[   31.246023] brcmfmac: power management disabled
[   31.618316] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.630267] bcmgenet: Skipping UMAC reset
[   31.710367] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[   31.723613] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   31.767857] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   31.807674] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   31.813867] brcmfmac: power management disabled
[   32.357053] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   32.363151] brcmfmac: power management disabled
[   32.540036] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   32.734215] bcmgenet fd580000.genet eth0: Link is Down
[   34.187785] Bridge firewalling registered
[   34.552486] IPv6: ADDRCONF(NETDEV_UP): supervisor0: link is not ready
[   34.700238] IPv6: ADDRCONF(NETDEV_UP): balena0: link is not ready
[   34.866063] IPv6: ADDRCONF(NETDEV_UP): br-e27a6943e73a: link is not ready
[   35.734056] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   35.740133] brcmfmac: power management disabled
[   35.887956] Bluetooth: Core ver 2.22
[   35.891657] NET: Registered protocol family 31
[   35.896203] Bluetooth: HCI device and connection manager initialized
[   35.902704] Bluetooth: HCI socket layer initialized
[   35.907673] Bluetooth: L2CAP socket layer initialized
[   35.913064] Bluetooth: SCO socket layer initialized
[   35.964607] Bluetooth: HCI UART driver ver 2.3
[   35.969232] Bluetooth: HCI UART protocol H4 registered
[   35.974702] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   35.981660] Bluetooth: HCI UART protocol Broadcom registered
[   36.128384] br-e27a6943e73a: port 1(veth2d0b18b) entered blocking state
[   36.135385] br-e27a6943e73a: port 1(veth2d0b18b) entered disabled state
[   36.144459] device veth2d0b18b entered promiscuous mode
[   36.151685] IPv6: ADDRCONF(NETDEV_UP): veth2d0b18b: link is not ready
[   36.158422] br-e27a6943e73a: port 1(veth2d0b18b) entered blocking state
[   36.165177] br-e27a6943e73a: port 1(veth2d0b18b) entered forwarding state
[   36.183037] br-e27a6943e73a: port 1(veth2d0b18b) entered disabled state
[   36.344244] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   36.349882] Bluetooth: BNEP filters: protocol multicast
[   36.355432] Bluetooth: BNEP socket layer initialized
[   36.629284] br-e27a6943e73a: port 2(veth2d5601c) entered blocking state
[   36.636099] br-e27a6943e73a: port 2(veth2d5601c) entered disabled state
[   36.643769] device veth2d5601c entered promiscuous mode
[   36.649696] IPv6: ADDRCONF(NETDEV_UP): veth2d5601c: link is not ready
[   36.656482] br-e27a6943e73a: port 2(veth2d5601c) entered blocking state
[   36.663246] br-e27a6943e73a: port 2(veth2d5601c) entered forwarding state
[   36.670522] IPv6: ADDRCONF(NETDEV_CHANGE): br-e27a6943e73a: link becomes ready
[   36.678297] br-e27a6943e73a: port 2(veth2d5601c) entered disabled state
[   36.778971] br-e27a6943e73a: port 3(veth6fe1e03) entered blocking state
[   36.787052] br-e27a6943e73a: port 3(veth6fe1e03) entered disabled state
[   36.794038] device veth6fe1e03 entered promiscuous mode
[   36.801497] IPv6: ADDRCONF(NETDEV_UP): veth6fe1e03: link is not ready
[   36.810113] br-e27a6943e73a: port 3(veth6fe1e03) entered blocking state
[   36.816896] br-e27a6943e73a: port 3(veth6fe1e03) entered forwarding state
[   36.826406] br-e27a6943e73a: port 3(veth6fe1e03) entered disabled state
[   39.376593] systemd-udevd[28]: Starting version 241
[   39.491278] eth0: renamed from veth6545f0d
[   39.532508] IPv6: ADDRCONF(NETDEV_CHANGE): veth2d0b18b: link becomes ready
[   39.540794] br-e27a6943e73a: port 1(veth2d0b18b) entered blocking state
[   39.547565] br-e27a6943e73a: port 1(veth2d0b18b) entered forwarding state
[   39.662347] systemd-udevd[29]: Starting version 241
[   40.200788] eth0: renamed from vethe689aae
[   40.291550] eth0: renamed from veth76ac246
[   40.368229] IPv6: ADDRCONF(NETDEV_CHANGE): veth6fe1e03: link becomes ready
[   40.375419] br-e27a6943e73a: port 3(veth6fe1e03) entered blocking state
[   40.382234] br-e27a6943e73a: port 3(veth6fe1e03) entered forwarding state
[   40.386794] IPv6: ADDRCONF(NETDEV_CHANGE): veth2d5601c: link becomes ready
[   40.400681] br-e27a6943e73a: port 2(veth2d5601c) entered blocking state
[   40.407458] br-e27a6943e73a: port 2(veth2d5601c) entered forwarding state
[   41.043159] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   43.820487] udevd[193]: starting version 3.2.9
[   43.966043] systemd-udevd[30]: Starting version 245.6-2
[   44.066561] udevd[194]: starting eudev-3.2.9
[   45.606186] systemd-udevd[42]: console: Failed to process device, ignoring: File exists
[   45.613447] systemd-udevd[52]: ptmx: Failed to process device, ignoring: File exists
[   46.882923] systemd-udevd[46]: ptmx: Failed to process device, ignoring: File exists
[   46.883605] systemd-udevd[39]: console: Failed to process device, ignoring: File exists
[   51.541091] br-e27a6943e73a: port 4(vethdf21c80) entered blocking state
[   51.549338] br-e27a6943e73a: port 4(vethdf21c80) entered disabled state
[   51.556368] device vethdf21c80 entered promiscuous mode
[   51.571660] IPv6: ADDRCONF(NETDEV_UP): vethdf21c80: link is not ready
[   51.717847] br-e27a6943e73a: port 5(veth410d48d) entered blocking state
[   51.737589] br-e27a6943e73a: port 5(veth410d48d) entered disabled state
[   51.745313] device veth410d48d entered promiscuous mode
[   51.755869] IPv6: ADDRCONF(NETDEV_UP): veth410d48d: link is not ready
[   51.762547] br-e27a6943e73a: port 5(veth410d48d) entered blocking state
[   51.769318] br-e27a6943e73a: port 5(veth410d48d) entered forwarding state
[   52.234029] br-e27a6943e73a: port 6(vethf9230da) entered blocking state
[   52.241592] br-e27a6943e73a: port 6(vethf9230da) entered disabled state
[   52.248559] device vethf9230da entered promiscuous mode
[   52.256412] IPv6: ADDRCONF(NETDEV_UP): vethf9230da: link is not ready
[   52.270890] br-e27a6943e73a: port 6(vethf9230da) entered blocking state
[   52.277651] br-e27a6943e73a: port 6(vethf9230da) entered forwarding state
[   52.543228] br-e27a6943e73a: port 5(veth410d48d) entered disabled state
[   52.550371] br-e27a6943e73a: port 6(vethf9230da) entered disabled state
[   55.418253] eth0: renamed from veth5eff244
[   55.467223] IPv6: ADDRCONF(NETDEV_CHANGE): vethdf21c80: link becomes ready
[   55.474576] br-e27a6943e73a: port 4(vethdf21c80) entered blocking state
[   55.481359] br-e27a6943e73a: port 4(vethdf21c80) entered forwarding state
[   55.582067] br-e27a6943e73a: port 2(veth2d5601c) entered disabled state
[   55.594953] veth76ac246: renamed from eth0
[   55.694619] br-e27a6943e73a: port 2(veth2d5601c) entered disabled state
[   55.787604] device veth2d5601c left promiscuous mode
[   55.795288] br-e27a6943e73a: port 2(veth2d5601c) entered disabled state
[   55.860924] eth0: renamed from veth87da0d8
[   55.886730] IPv6: ADDRCONF(NETDEV_CHANGE): veth410d48d: link becomes ready
[   55.894042] br-e27a6943e73a: port 5(veth410d48d) entered blocking state
[   55.900797] br-e27a6943e73a: port 5(veth410d48d) entered forwarding state
[   56.429504] br-e27a6943e73a: port 2(veth783616b) entered blocking state
[   56.455711] br-e27a6943e73a: port 2(veth783616b) entered disabled state
[   56.464401] device veth783616b entered promiscuous mode
[   56.471354] IPv6: ADDRCONF(NETDEV_UP): veth783616b: link is not ready
[   57.295726] eth0: renamed from vethf6548b3
[   57.341620] IPv6: ADDRCONF(NETDEV_CHANGE): vethf9230da: link becomes ready
[   57.348888] br-e27a6943e73a: port 6(vethf9230da) entered blocking state
[   57.355667] br-e27a6943e73a: port 6(vethf9230da) entered forwarding state
[   59.852213] Bluetooth: RFCOMM TTY layer initialized
[   59.857326] Bluetooth: RFCOMM socket layer initialized
[   59.863898] Bluetooth: RFCOMM ver 1.11
[   60.078598] eth0: renamed from vethc646b57
[   60.119320] IPv6: ADDRCONF(NETDEV_CHANGE): veth783616b: link becomes ready
[   60.126583] br-e27a6943e73a: port 2(veth783616b) entered blocking state
[   60.133330] br-e27a6943e73a: port 2(veth783616b) entered forwarding state

thank you for your help

Thanks for the logs, we’ll review them. In the meantime, it looks like this particular dongle first needs to have firmware flashed to it before being recognized by Home Assistant. See this page: Zigbee Home Automation - Home Assistant which has a link to the flashing tool zigbee2mqtt. Apparently some are sold pre-flashed. Can you confirm if yours is pre-flashed?

Hi Alanb128,

The cc2351 is pre flashed. Thank you for your help

Hi - me again. :slight_smile:

Could you tell me which USB port the device is plugged into on your Pi4? Is it one of the blue USB3 ports, or the black USB2? Does it make a difference if you try either?

I have noticed some things in the logging that you’ve pasted here, which I’m wondering if they point to the USB3 ports not working on your device. I will chat to some of our devices experts and see if I’m right - and in the meantime could you try a USB2 port?

Phil

Hi, this device seems to be having trouble to detect one of the downstream USB ports in the host controller - it appears to only see the USB 2.0 port and not the 3.0. This could indicate a fault in the USB host controller hardware.

  • Could you please let us know what version of BalenaOS you are running? You can find this out by login into the hostOS shell and doing cat /etc/os-release.
  • Could you please test the USB ports (both the 2.0 and 3.0) with a standard USB pen drive and check that you can read and write from it on both ports?
  • Do you have a different RaspberryPi4 device to test with?

Hi there,
I am only using the usb 2.0, never tried the 3.0.

was not working on this:
VERSION="2.50.1+rev1"
changed to :
VERSION="2.67.3+rev4"

still not working

EDIT:
I have another pi4 in the same “fleet”. I tried and I get the same error.
EDIT 2:

I pluged a USB with a picture inside.
I cant find the usb in any of the PI’s


Hi, thanks for that information. Let’s focus on why the standard USB pendrive does not work first.

  • What filesystem are you using on the USB drive?
  • What are the messages in the kernel log (dmesg) when you plug the USB drive in?
    I would expect something like:
root@balena:~# [12901.888654] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[12901.917764] usb 2-1: New USB device found, idVendor=0781, idProduct=5581, bcdDevice= 1.00
[12901.926160] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[12901.933444] usb 2-1: Product: Ultra
[12901.937054] usb 2-1: Manufacturer: SanDisk
[12901.941252] usb 2-1: SerialNumber: 4C530000160524100544
[12901.949570] usb-storage 2-1:1.0: USB Mass Storage device detected
[12901.956101] scsi host0: usb-storage 2-1:1.0
[12902.969549] scsi 0:0:0:0: Direct-Access     SanDisk  Ultra            1.00 PQ: 0 ANSI: 6
[12902.979155] sd 0:0:0:0: [sda] 120127488 512-byte logical blocks: (61.5 GB/57.3 GiB)
[12902.988246] sd 0:0:0:0: [sda] Write Protect is off
[12902.993767] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support A
[12903.035780]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[12903.045148] sd 0:0:0:0: [sda] Attached SCSI removable disk
  • What is the output of lsusb -t with the USB drive inserted?

Please try in both devices, and both USB port types (USB 2.0/USB 3.0)