OrangePI Club
USB OTG connector? - Printable Version

+- OrangePI Club (http://orangepi.club)
+-- Forum: International (English) Forums (http://orangepi.club/forumdisplay.php?fid=3)
+--- Forum: Hardware (http://orangepi.club/forumdisplay.php?fid=14)
+--- Thread: USB OTG connector? (/showthread.php?tid=2249)



USB OTG connector? - Triangles - 11-23-2017

How do I use the OTG USB connector as a 3rd USB port?  Or maybe I should ask can I?  I bought a OTG adapter with the USB micro connector to plug into the pi and a standard female USB plug on the other end.  When I plug anything into it, it is as if there is no power to the USB port.   I can use this adapter with an android phone so I know the adapter works.  TIA for any help with this.


RE: USB OTG connector? - alexkidd - 11-23-2017

which board/system? i have no issues with RetrOrangePi 3 or 4 in an OPi One. I use a 4-port self powered hub and it works fine


RE: USB OTG connector? - Triangles - 11-23-2017

Oops I forgot to mention it's an OPi Lite.


RE: USB OTG connector? - alexkidd - 11-23-2017

please check contents of this file: /etc/systemd/system/serial-getty@ttyGS0.service.d/10-switch-role.conf
if you find an "echo 2", change to "echo 0"


RE: USB OTG connector? - Triangles - 11-28-2017

I found it and yes it's "echo 2" However it appears I need to be logged in as root to edit it. Unfortunately I have almost no knowledge of linux. I don't have any knowledge of the proper syntax or commands in terminal and I wouldn't know how to login as root. If there are some resources you could point me to to help me figure it out I would greatly appreciate it.


RE: USB OTG connector? - alexkidd - 11-28-2017

Code:
sudo nano /etc/systemd/system/serial-getty@ttyGS0.service.d/10-switch-role.conf

edit, press Ctrl X to quit, Y to save, then


Code:
sudo reboot



RE: USB OTG connector? - Triangles - 11-29-2017

Wow that was pretty easy. Thank you!