Good Day,
Would it be a problem to keep the Pi Zero W powered using a Power Supply to the PWR port and at the same time connect the USB port to a PC to function in OTG mode as a Mass Storage for example.
Kind Regards,
For context sake, would someone be able to share a link to the mentioned "spec" as I have looked at the schematic which only illustrates one of the USB ports (J1) and does not explicitly state the two are directly connected.Rule 1 for Pi Zero's -- Either power it from the USB Data port OR from the power port NEVER BOTH.
Read the specs for the zero, the 5v GPIO pins, the 5V USB data pin and the 5v USB power pin are all connected directly together.
I suggest you devote your energies to finding out what Apple's idea of USB is this week.
A simple measurement would quell any doubt you have. Otherwise find some real evidence to disprove what has been said many times and never refuted.UF_DoC wrote: ↑Tue Oct 02, 2018 12:48 pmThanks for the link: I guess the relavent post is by @rotwang
For context sake, would someone be able to share a link to the mentioned "spec" as I have looked at the schematic which only illustrates one of the USB ports (J1) and does not explicitly state the two are directly connected.Rule 1 for Pi Zero's -- Either power it from the USB Data port OR from the power port NEVER BOTH.
Read the specs for the zero, the 5v GPIO pins, the 5V USB data pin and the 5v USB power pin are all connected directly together.
I suggest you devote your energies to finding out what Apple's idea of USB is this week.
Because you may want to remove Zero-as-usb-device from the PC and keep it working?
I can't imagine a scenario where I would want that (but perhaps I just lack imagination).
Zero can act as usb device. Zero is booted into raspbian linux from sd card mounted read/write. You are configuring zero to be mass storage device or usb serial or usb network. You want to test it with computer. Do you want to develop it in a way that you insert it into pc usb port, wait for Zero to boot and set your preferred usb device configuration (probably in /etc/rc.local), then after testing you need somehow login to the zero to shut it off properly so the sd card is not corrupted and only then remove it from PC usb port? Imagine doing this repeatedly. Also unless you set it up properly first time as networking device with ssh or usb serial device with getty running you actually need another usb serial adapter to zero serial pins 14,15 to shut it down as you have no keyboard.HawaiianPi wrote: ↑Wed Oct 03, 2018 4:17 amI can't imagine a scenario where I would want that (but perhaps I just lack imagination).
....
for me it's not worth the risk simply to avoid the slight inconvenience of shutting down and rebooting a Pi0.
Yes, that is the very simple solution that was suggested. Also one could just cover power pin with tape in usb male to female adapter/extender and use it with unmodified cable if this is not permanent solution.HawaiianPi wrote: ↑Wed Oct 03, 2018 4:17 amOr you could modify a USB cable for data only (cut the +5V power wire).
To boot the Pi in Gadget mode, you don't insert the microSD card. There is no Linux running on the Pi.fanoush wrote: ↑Wed Oct 03, 2018 7:28 amZero can act as usb device. Zero is booted into raspbian linux from sd card mounted read/write. You are configuring zero to be mass storage device or usb serial or usb network. You want to test it with computer. Do you want to develop it in a way that you insert it into pc usb port, wait for Zero to boot and set your preferred usb device configuration (probably in /etc/rc.local), then after testing you need somehow login to the zero to shut it off properly so the sd card is not corrupted and only then remove it from PC usb port? Imagine doing this repeatedly. Also unless you set it up properly first time as networking device with ssh or usb serial device with getty running you actually need another usb serial adapter to zero serial pins 14,15 to shut it down as you have no keyboard.HawaiianPi wrote: ↑Wed Oct 03, 2018 4:17 amI can't imagine a scenario where I would want that (but perhaps I just lack imagination).
....
for me it's not worth the risk simply to avoid the slight inconvenience of shutting down and rebooting a Pi0.Yes, that is the very simple solution that was suggested. Also one could just cover power pin with tape in usb male to female adapter/extender and use it with unmodified cable if this is not permanent solution.HawaiianPi wrote: ↑Wed Oct 03, 2018 4:17 amOr you could modify a USB cable for data only (cut the +5V power wire).
Check this https://randomnerdtutorials.com/raspber ... board-hid/ guide that started the topic discussing this 'powering zero while being usb device' issue previously.
That's news to me? I've always used a specially configured Raspbian image for USB Gadget mode. Got a link to no-SD Gadget mode?
The way I interpreted the OP was that it would be a separate PSU on the power port, with a PC USB port connected to the data port. So 2 different power sources (not 2 USB cables from the same source).
https://bennuttall.com/raspberry-pi-zero-gpio-expander/HawaiianPi wrote: ↑Wed Oct 03, 2018 8:44 amThat's news to me? I've always used a specially configured Raspbian image for USB Gadget mode. Got a link to no-SD Gadget mode?
I'm planning on doing that. It's the main reason I got back into looking at booting a diskless Zero from Windows.HawaiianPi wrote: ↑Wed Oct 03, 2018 4:17 amI can't imagine a scenario where I would want that (but perhaps I just lack imagination).