I have a sound meter that has a usb driver for python here: https://github.com/gdsports/bafx3608/bl ... afx3608.py
In the readme there is a prerequisite of installing python3-libusb1, which I did.
Now this whole setup works fine on my Pi4. On the Pi5, when I run the script it only lasts a few seconds (the most I've seen was 10 seconds) before it errors out with USBErrorOverflow and eventually USBErrorNoDevice.
Here's what the script is outputting before it crashes:
I tailed `dmesg` and noticed this:
Now on the Pi4, I do get the occasional USBErrorOverflow or USBErrorTimeout, but just once in a while, and the script never stops.
At first I thought maybe this is a hardware power issue, but the Pi5 is running on a massive 45watt power brick, so I highly doubt it. Also the Pi5 has `usb_max_current_enable=1` in `/boot/config.txt`
Both the Pi4 and Pi4 are running bookworm 64bit, althought the pi4 one is slightly higher rpi version
pi4:pi5:
Does anyone have any idea of what I could try to fix this? Thanks.
In the readme there is a prerequisite of installing python3-libusb1, which I did.
Now this whole setup works fine on my Pi4. On the Pi5, when I run the script it only lasts a few seconds (the most I've seen was 10 seconds) before it errors out with USBErrorOverflow and eventually USBErrorNoDevice.
Here's what the script is outputting before it crashes:
Code:
python bafx3608.py USBErrorTimeout 52.1 dBA 30-130 52.1 dBA 30-130 51.4 dBA 30-130 51.4 dBA 30-130 51.9 dBA 30-130USBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorOverflowUSBErrorNoDevice
Code:
[21351.442444] usb usb1-port1: disabled by hub (EMI?), re-enabling...[21351.442467] usb 1-1: USB disconnect, device number 19[21351.729079] usb 1-1: new low-speed USB device number 20 using xhci-hcd[21351.922441] usb 1-1: config 1 interface 0 altsetting 0 endpoint 0x2 has an invalid bInterval 0, changing to 10[21351.922459] usb 1-1: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 10[21351.924028] usb 1-1: New USB device found, idVendor=64bd, idProduct=74e3, bcdDevice= 0.00[21351.924032] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0[21351.924034] usb 1-1: Product: SM[21351.924037] usb 1-1: Manufacturer: SM[21352.225587] hid-generic 0003:64BD:74E3.000F: hiddev96,hidraw0: USB HID v1.10 Device [SM SM] on usb-xhci-hcd.0-1/input0
Now on the Pi4, I do get the occasional USBErrorOverflow or USBErrorTimeout, but just once in a while, and the script never stops.
At first I thought maybe this is a hardware power issue, but the Pi5 is running on a massive 45watt power brick, so I highly doubt it. Also the Pi5 has `usb_max_current_enable=1` in `/boot/config.txt`
Both the Pi4 and Pi4 are running bookworm 64bit, althought the pi4 one is slightly higher rpi version
pi4:
Code:
Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-rpi8-rpi-v8 Architecture: arm64
Code:
Operating System: Debian GNU/Linux 12 (bookworm) Kernel: Linux 6.1.0-rpi7-rpi-2712 Architecture: arm64
Does anyone have any idea of what I could try to fix this? Thanks.
Statistics: Posted by darnitdiy — Thu Mar 14, 2024 5:22 am