1

I am using USB 3G modem with my RPi 3 modem B+. Modem gets freeze sometimes so i need to reset it. I was using https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line but it can't reset my modem. As i know Rpi3 uses AP2552 for USB power. AP2552 has a enable pin, which pin of BCM controls that enable? How i control that pin?

  • AFAIK you cannot do this through GPIO. But IIRC it still may be possible through other means. Have never tried it myself but raspberrypi.org/forums/viewtopic.php?t=196827 or raspberrypi.org/forums/viewtopic.php?t=203261 could be a start – Dirk Sep 13 '18 at 10:53
  • I found "echo '1-1' |sudo tee /sys/bus/usb/drivers/usb/unbind" but it power down all USBs and ethernet also. I tried "echo '1-1.1.3' |sudo tee /sys/bus/usb/drivers/usb/unbind" for my specific USB port but it didn't work. – Hakan Ulusoy Sep 13 '18 at 11:37
  • I don't think you can manipulate individual ports. And it would probably the same if you could manipulate the AP2552 since onboard ethernet uses USB – Dirk Sep 13 '18 at 11:40
  • Yes, it is like that. I have tested it, it is impossible to power off either USB ports individually or just all USB ports without ethernet. – Hakan Ulusoy Sep 13 '18 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.