Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 2:17 am

Hello everybody !!

I have a big problem using Raspberry Pi 4, in relation to the USBs. I have a TPLINK USB connected to the RPI and an USB camera too. I want to send camera images over WIFI. I tested using mi PC and all works fine, but when i use the RPI, it's like the camera doesn't have enough power, because the images are sending very slow. I have a power adapter 5.25V 3A.

Whats happen ? How can i send more power to my USB devices? I have already added the max_usb_current=1 into my config.txt.

Thank you so much.

User avatar
Imperf3kt
Posts: 2873
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 2:34 am

The USB current limit config setting does nothing on any Pi released after the 2b

A slow transfer sounds more like a a cheap micro sd card issue rather than a power problem.
55:55:44:44:4C
52:4C:52:42:41

RossDv8
Posts: 148
Joined: Thu Jan 21, 2016 12:35 pm

Re: Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 3:00 am

I solved my USB hard drive problems by using USB splitter cables. These cables are fairy cheap on ebay or amazon or maybe at your computer store. They have two male USB plugs and a female USB socket. One male USB plug has a RED marking (on mine is it like RED shrink wrap). This end goes into a 5V USB POWER adapter and gets power for the USB device . The male USB plug WITHOUT the RED marking is for Data and it goes into the Pi USB port.

Then the USB device is plugged into the FEMALE USB socket of the splitter cable. If all works well, the camera will get extra power through the splitter cable.

I use these regularly with power hungry external USB drives, but have not tried with anything else. However it 'should' work with a camera..
Pi 4B 4GB - system on WD 240G SSD ( but /boot on Sandisk microSD)

drgeoff
Posts: 9892
Joined: Wed Jan 25, 2012 6:39 pm

Re: Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 9:03 am

Manulobo22 wrote:
Mon Nov 11, 2019 2:17 am
but when i use the RPI, it's like the camera doesn't have enough power, because the images are sending very slow. I have a power adapter 5.25V 3A.

Whats happen ? How can i send more power to my USB devices? I have already added the max_usb_current=1 into my config.txt.
1. I cannot tell you why it is slow but I can say it isn't caused by lack of power to USB devices.

2. Even if it were due to lack of power, that max_usb_current config does nothing on a RPi4B.

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 10:49 pm

Hello, thanks for the replies. I have tried putting an USB-Y cable, so i connect another power supply to my USB camera, but it worked as before. I don't know what is happening... If i connect the USB camera on my PC, works perfect, if i connect the USB on the RPI, it works VERYYYY slow.

User avatar
Imperf3kt
Posts: 2873
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Raspberry Pi 4 USB power problems

Mon Nov 11, 2019 11:41 pm

By process of elimination you've ruled out the camera and usb being at fault.
Have you tried a different micro sd card yet?
A slow or fake card will result in terrible performance of everything on the Pi, including the Pi itself.
55:55:44:44:4C
52:4C:52:42:41

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 2:44 am

Sir, i didn't try with another SD card, tomorrow i'm going to buy one, but i can tell you that i'm using a SONY MICRO SD 32GB 95MB/S (Made in Taiwan). Which Micro sd should i buy ?

User avatar
Imperf3kt
Posts: 2873
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 2:48 am

The specs are good, before buying a new one I'd just consider running a fake storage test such as H2testW
55:55:44:44:4C
52:4C:52:42:41

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 2:56 am

Well sir, i'm using Linux, so i tested on my PC with F3. Writing speed is ~15MB/s and reading speed is ~21.22 MB/s. What do you say about that ? It is ok?

EDIT: in my PI i have the same results\

EDIT2: What i want to do is send the images of my camera via WIFI, so I made a WIFI hostpot using two TPLINK AC1300 and hostapd. When i test with iperf3, the speed is ~60MB/s, that's is great for me; but when I start sending the images, it runs well for about 1/2 seconds, and then it doesn't send anything or the speed reduces to ~1MB/s. It's like something brings down and became the connection poor
Last edited by Manulobo22 on Tue Nov 12, 2019 3:31 am, edited 1 time in total.

User avatar
Imperf3kt
Posts: 2873
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 3:29 am

Seems alright. I'm actually not overly familiar with how a card should perform.
A proper test would tell you more than just the speed though.
55:55:44:44:4C
52:4C:52:42:41

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 7:13 pm

Sir, i bought an original SANDISK Ultra, made in CHINA. But it worked as before, i don't know what i can try now

drgeoff
Posts: 9892
Joined: Wed Jan 25, 2012 6:39 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 8:00 pm

A PC and a RPi have different software. You have not said anything about what you are using on the RPi.

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 8:39 pm

Yes, sorry. In my PC i'm using Ubuntu 16.04 and in my PI, Raspbian Buster last version.

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Tue Nov 12, 2019 10:07 pm

Also, recently i tried with DietPI, and happen the same

Manulobo22
Posts: 17
Joined: Sat Oct 05, 2019 9:28 pm

Re: Raspberry Pi 4 USB power problems

Wed Nov 13, 2019 12:52 am

UPDATE: I tried to run the camera in my RPI, without using wifi, and i don't know why, the camera is slow.. I only get 15mb/s in USB2.0, without anything connected

Return to “General discussion”