[solved] Is it possible to disable/enable the USB OTG port via the OS on the UP Squared?

Using Ubuntu 16.04 LTS
By disable/enable I am trying to simulate physically disconnecting and re-connecting a USB cable.
Answers
-
Hi @Nevets ,
You could follow the Wiki instructions to enable the USB OTG as serial and mass storage device:
https://wiki.up-community.org/Serial_console#UP_SquaredAs the modules are loaded manually by OS, you could unload the modules again to disable them. Also, for each reboot you will get the modules disable as well.
-
Thanks for your answer @ccalde. Just want to clarify a few things...
I'm assuming the OTG port on the UP Squared is in device mode out-of-the-box on the UP Squared - is that correct?
Also, am I able to use a 'normal' USB micro B to Type C cable or must I use an OTG cable to connect to another host device? -
Hi @Nevets ,
Yes, you don't need to modify any setting in the BIOS.
About the USB cable, something like that would be enough:
https://up-shop.org/up-peripherals/22-usb30-otg-cable.html -
Thanks again @ccalde, that helps!
Categories
- All Categories
- 105 Announcements & News
- 55 Product News - New Product/Product Change Notice/ End-of-life
- 186 Welcome Developers!
- 55 Unboxing & Project Sharing
- 50 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral