
Yes it can.mahjongg wrote:the PI (B+) has NO hardware in place to disconnect power to the USB ports!
it can detect a short, (USB power Fault) and then the USB power controller (P2553W6) will automatically block the USB power, but the PI cannot turn off the USB power using software. What it can do is bring the LAN9514 into sleep mode, but that does NOT turn the power off!
PS.: does anybody know, why there is no full schematic on the github.com/raspberrypi/documentation/hardware/raspberrypi/schematicsjdb wrote:Yes it can...
Because no one has had the time to generate the full schematics in a generally usable format yet.beta-tester wrote:PS.: does anybody know, why there is no full schematic on the github.com/raspberrypi/documentation/hardware/raspberrypi/schematics
section available for RPi Model B+ and A+ ?
Thanks for the information! This will be usefull to reset my 3G modem if it stops respondingjdb wrote:Yes it can.mahjongg wrote:the PI (B+) has NO hardware in place to disconnect power to the USB ports!
it can detect a short, (USB power Fault) and then the USB power controller (P2553W6) will automatically block the USB power, but the PI cannot turn off the USB power using software. What it can do is bring the LAN9514 into sleep mode, but that does NOT turn the power off!
Issuing a USB Hub class request (CLEAR_FEATURE PORT_POWER) to port 2 on the LAN9514 will deactivate the USB output power switch.
There's an app for that:
https://github.com/codazoda/hub-ctrl.c
The Ethernet going off too does not surprise me at all, since it is actually a USB device being driven by the USB hub chip.cancunia wrote:I came across this thread yesterday and can confirm that hub-ctrl with '-h 0 -P 2 -p 0' will turn off ALL of the USB ports and by the looks of things the Ethernet port off too. If there's any finer granularity than all or nothing possible, please let me know. Thx

Code: Select all
echo 0 > /sys/devices/platform/bcm2708_usb/buspower;
echo 1 > /sys/devices/platform/bcm2708_usb/buspower;Code: Select all
while (true) do hub-ctrl -h 0 -P 2 -p 0 ; sleep 3; hub-ctrl -h 0 -P 2 -p 1; sleep 57; doneCode: Select all
sudo ./hub-ctrl -h 0 -P 1 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 1 -p 1Code: Select all
sudo ./hub-ctrl -h 0 -P 2 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 2 -p 1Code: Select all
sudo ./hub-ctrl -h 0 -P 3 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 3 -p 1Code: Select all
sudo ./hub-ctrl -h 0 -P 4 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 4 -p 1Code: Select all
sudo ./hub-ctrl -h 0 -P 4 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 4 -p 1Code: Select all
max_usb_current=1Code: Select all
sudo ./hub-ctrl -h 0 -P 2 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 2 -p 1