Davadoo
Posts: 3
Joined: Mon Sep 08, 2014 6:36 pm

max current limit for USB port

Mon Sep 08, 2014 6:55 pm

Hi there!

I'm trying to connect to an USB device (it is a RFID reader) that needs to receive up to 500 mA of current. I am using a Raspberry B+ model with (up-to-date) Raspbian. When the USB device is idle, it is happy with just 100mA and I can interact with it, but when it has to do some RF operation it requires more current and it simply disconnects. I think the problem is that the device, when attaching to the USB port, "negotiates" a maximum current of 100 mA. I've checked this with "lsusb -v" command. I have also tried connecting the device through an externally powered USB Hub and it simply works, but I need to connect the device directly to the raspberry and get rid of the external hub. Considering the B+ model can provide that current without problems (am I correct?), how can I override the max current limit for the device and provide up to 500 mA? Any ideas?

Just in case it is relevant, when attached, the device uses ACMx ports (as if it were a modem).

Thanks!

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: max current limit for USB port

Mon Sep 08, 2014 8:40 pm

Davadoo wrote:Hi there!

I'm trying to connect to an USB device (it is a RFID reader) that needs to receive up to 500 mA of current. I am using a Raspberry B+ model with (up-to-date) Raspbian. When the USB device is idle, it is happy with just 100mA and I can interact with it, but when it has to do some RF operation it requires more current and it simply disconnects. I think the problem is that the device, when attaching to the USB port, "negotiates" a maximum current of 100 mA. I've checked this with "lsusb -v" command. I have also tried connecting the device through an externally powered USB Hub and it simply works, but I need to connect the device directly to the raspberry and get rid of the external hub. Considering the B+ model can provide that current without problems (am I correct?), how can I override the max current limit for the device and provide up to 500 mA? Any ideas?

Just in case it is relevant, when attached, the device uses ACMx ports (as if it were a modem).

Thanks!
https://projects.drogon.net/testing-set ... berry-pi-b
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: max current limit for USB port

Mon Sep 08, 2014 8:46 pm

The B+ doesn't (AFAIAA) negotiate current limits. It just supplies up to 600mA (1200mA with the high-current mode) to the four ports regardless of what the devices ask for. If your device isn't getting the current it needs then you may have a power supply issue. Try measuring the voltage on the 5V pin of the GPIO with the device disconnected and connected. See if you get a large drop.

Davadoo
Posts: 3
Joined: Mon Sep 08, 2014 6:36 pm

Re: max current limit for USB port

Sat Sep 13, 2014 9:26 am

Thanks! I just followed the link and it worked.

Return to “Troubleshooting”