User avatar
HermannSW
Posts: 2709
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Pi Zero USB OTG without cable reconnect?

Wed Nov 29, 2017 7:30 pm

I have successfully enabled USB OTG for one of my Pi Zeros (by these simple instructions).

I can boot the other Pi Zeros via switches of 7 port USB hub.

I have connected the Pi Zero via USB, logged in via ssh and did "sudo shutdown 0".
Is it possible to boot this Pi now without disconnecting and reconnecting USB cable?
Is there some command I can use to simulate powering on?
(from Linux laptop where the Pi Zero is connected to)
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

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

Re: Pi Zero USB OTG without cable reconnect?

Wed Nov 29, 2017 7:43 pm

Once shut down there are only three ways to restart a Pi (Zero or any other model).

1. Pull the power and reconnect it.

2. Briefly short together the two pins (holes on the Zero) marked "RUN".

3. Briefly short together pins 5 and 6 on the GPIO connector (GPIO 3 and GND).

User avatar
HermannSW
Posts: 2709
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Pi Zero USB OTG without cable reconnect?

Thu Nov 30, 2017 1:30 am

> 2. Briefly short together the two pins (holes on the Zero) marked "RUN".
>
Thank you, I forgot about the Run pins, just tested and the (still connected) Pi Zero immediately began to boot.
https://stamm-wilbrandt.de/en/Raspberry_camera.html
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/raspiraw
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/github_repo_i420toh264

fanoush
Posts: 549
Joined: Mon Feb 27, 2012 2:37 pm

Re: Pi Zero USB OTG without cable reconnect?

Thu Nov 30, 2017 6:55 am

Also there is often a way to turn off USB power programatically for single port or for some subset. On Pi3 you can turn off power to usb ethernet or to all other four ports together.

Return to “General discussion”