No /dev/serial (Zigbee not working anymore)

I had to change some network related settings (including detaching everything from my Rpi4). Now, all of a sudden, Zigbee integration does not work anymore, I get

[Errno 2] could not open port /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_aee6a434021aec119f4174e5f01c6278-if00-port0

I am not sure if I plugged the Sonoff Zigbee dongle into the same USB plug again. It shouldn’t matter I guess abut I see “…if00-port0” in the device name which sounds like enumerating the USB plug?

Anyways, the whole “/dev/serial” directory is gone. Googling gave some hits about missing udev rules, but I did no changes here. All HA defaults on a Rpi4. Also no major updates lately.

When I run lsusb in a terminal, I get

  ➜  ~ lsusb           
  Bus 001 Device 001: ID 1d6b:0002
  Bus 001 Device 002: ID 2109:3431
  Bus 002 Device 001: ID 1d6b:0003

Where is my 4th plug??

When I run

➜  ~ dmesg | grep USB                               
[    1.409509] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[    1.411789] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    1.411818] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[    1.412040] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    1.412070] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.412641] hub 1-0:1.0: USB hub found
[    1.413225] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
[    1.413255] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.413763] hub 2-0:1.0: USB hub found
[    1.415663] usbserial: USB Serial support registered for generic
[    1.423505] usbhid: USB HID core driver
[    1.666313] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[    1.816959] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[    1.817003] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    1.817022] usb 1-1: Product: USB2.0 Hub
[    1.818667] hub 1-1:1.0: USB hub found

Does this sound right? Could somebody else on a Rpi4 please run these two commands?

Did I break my Rpi4 while removing the device from the system? Any idea how I get my /dev/serial folder back?

nevermind, after a few hours of debugging I figured out the USB cable to the Sonoff Zigbee dongle lost contact and was just plugged in halfways. Not obvious in my case since I taped the Zigbee dongle behind a sideboard, cable hanging down. Gravity did it’s job on the cable, I guess. At least I learnt something how not to attach a cable.

The 4th port now came back, along with /dev/serial and HA fully working

2 Likes

You just save me a lot of trouble. I had already check the USB connection to the RPi but not the one on the dongle. It was half inserted…

So, Thank you :slight_smile: