Weird USB behaviour on RazPi 4
This seems strictly a hardware problem on my 4G RazPi 4.
AFAIK, the (blue) USB3 sockets have a 500mA current Limit, and the (black) USB-2 sockets have a 250mA limit. Please correct if you know better. I'd been running on sdcards, but it was SSD time. My setup had been
The RazPi is behind a tv on a small table. I have another larger table with keyboard & mouse, so wired is not an option. The switch that brought this about was pulling the sdcard usb converter, and inserting the ssd with it's little case. I did have a faulty ssd case before, which stopped play for a while. So the case is a component in the chain, with it's own pcb & ICs. What's even more irritating is that I'd class myself as a hardware guru, and know enough to know this doesn't make much sense. I'd already done an rsync successfully on my pc. Why?:banghead: |
As far as I know there is no current limit per port but the max total current for all ports is 1.2 amps. It seems unrealistic that all three devices are drawing 1.2 amps but there could be a peak start up current on the SSD. There are some known issues with USB 3 hubs so it could be a problem with the drive case and why it only works in a USB 2 port.
BYI, the suggested power supply for a Pi 4 is 3 amps. |
1.2amps between them? That makes no sense, as usual, but it means we can eliminate power as a cause.
The separation makes no sense. Going by the chips on the board, there's one usb chip with usb-2 & usb-3 hubs. So that probably provides the 1.2A. I have the recommended 3A power supply. I've a hunch it's in the signal pins, not the power line at all. But I'm way beyond verifying it. My left hand arm went in a stroke, so I can't use a multimeter or solder:(. I got a case for this ssd previously. and couldn't boot. I found solder bridges in it, and returned it. I'm just wondering if I should get myself a different case. |
Here you go
https://www.raspberrypi.org/document...md#powerlimits Does sound like a USB 3 problem with the case. |
Quote:
|
A lot of electrics in external cases wouldn't work to boot from, unfortunately.
I've been quite lucky in that most of my cases & cable adapters work, but one consistently refuses to work on my RPi4, so now resides on my RPi3B+ & works perfectly on it, so it is down to the chips used in the adapter cable or case. Edit: I boot from an external HDD, not SSD, on my RPi4, plugged into a USB3 port, so it isn't down to the current or voltage. |
Well, it's just a straight through as far as possible. But SATA ≠ USB. It boots OK.
|
Quote:
In days gone by, I would have tacked on a 220µF capacitor right at the usb ports, to smooth any pulses. But, post stroke I can't even solder! I tried swapping usb cases - maybe 1% improvement. The one trick up my sleeve is to swap in the SSD from my pc to the RazPi. I resurrected an old 450G hd, and backed them both up, but haven't bothered yet. |
I used to have the keyboard/mouse problem on my RPi3A+, it just didn't have enough power for both at the same time, my solution is to use one of those micro keyboard/mouse pad wireless units on it. The combined milliamps were just too much for the USB port.
(Maybe a powered USB hub would sort it, at the cost of another piece of hardware.) |
A wireless unit is what I have… I reckon ~100 mA is all it uses. The range isn't great. But I doubt if a wired kb/mouse would use that. It's sensitivity is lacking. A new battery in the mouse restored that for 10 minutes. I'm not as smart as I was, but I still have a good techie's brain. It seems to me that if the voltage dropped by 0.5V, things could go wrong. But I don't see how. It's a 3A supply.
|
I have had power supplies go bad. They still produced the volts, but not the current. Most of my power problems with laptops and other devices over the years have been caused by faulty power supplies.
|
Quote:
EDIT: Mind you, I can't complain I'm getting 35MB/S on hdparm, which is dangerously fast for usb-2.0 |
I'm marking this solved. The other night I had mouse, but no keyboard. I picked up the keyboard (always messy with one hand, and brought it forward onto my knees, and bingo, it was back. Poor reception. Subsequent tests showed even a box of tissues tilled the signal on occasion.
Conclusion: The SSD is dropping the voltage a few percent, causing the wifi receiver issues. It's a borderline install. I'm following Rule#1 of Electronic maintenance: "If it ain't broke, don't fix it." I've repositioned the RazPi & SSD to get a better wifi signal. I've repositioned things on my work area also to work around the issue. |
Although marked as solved, I’m going to post this as another weird USB event on RPi4, in case it can help someone, although I can’t explain the behaviour.
I installed OpenBSD 6.8 (64 bit ARM) on RPi 4 4GB with recommended 3A power supply. In doing that, when I got to the text installer’s install/update/autoinstall step, it wouldn’t accept keyboard inputs. The problem went away when I moved things around usb ports. I started with - USB wireless mouse in lower USB 2 port (the one closer to the board) - USB wired keyboard in upper USB 2 port - uSD card with OpenBSD 6.8 ARM installer in sd-usb adaptor in lower USB 3 port (UEFI firmware uSD card in the Pi’s uSD slot) After some messing around - yes, I tried unplugging and replugging the usb wired keyboard, and turning the Pi off and on again - the problem went away when I removed the mouse and moved the keyboard to the lower USB 2 port. No mouse is needed for OpenBSD’s text installer, which then recognized the keyboard. During rebooting after installation, and before adding xenodm and Xfce, I put the wireless mouse usb adaptor back in, but into the upper USB 2. So in the end, I switched the things in the two USB 2 ports (although in a particular sequence), and now both keyboard and mouse work. I would like to understand why one arrangement worked and the other didn’t, so if anybody knows or can guess, please post here. If not, I’ll be happy that I found a path to installation with my specific collection of uSD cards, USB things and RPi4, and hopefully it helps someone else in a similar situation. TKS |
I got the impression the usb & keyboard are teetotally underpowered for wifi comms. I reckon if you left them as were and just moved closer, things would eventually work. That was my experience.
|
All times are GMT -5. The time now is 02:08 PM. |