Add support to disable USB ports to save energy for complex devices #212
Comments
|
Using this statement, it is possible to disable or enable the usb from EV3:
|
|
The same effect:
|
|
Discovered! When you have 4 devices, Debian list all devices in the following way:
In order to shutdown a specific device, you will have 4 scenarios:
This simulation goes fine if you have the following hub: In this way, if the robot has few energy, it is possible to disable:
Once the robot has recharged, it could be possible to enable again. |
|
Note: |
|
Scenario complex: Chained 2 USB Hubs
Using this technique, it is possible to disable all elements connected on a chained USB hub:
|
|
Note: |
|
Now, it is the moment to develop the Java support for this specific feature. |
|
At the moment, the library which operates with USB devices is: But the features to interact with SO is located here: So, it is better to create a new class on sensors and actuators uses the class Port from The class should have the following methods:
|
Added support to enable/disable USB ports

It is necessary to find some way to disable USB devices connected for scenarios where the robot doesn´t have enough energy.
Related links:
http://stackoverflow.com/questions/18765725/turning-off-a-single-usb-device-again
https://www.cyberciti.biz/faq/linux-how-do-i-list-all-usb-devices/
https://wiki.debian.org/HowToIdentifyADevice/USB
https://askubuntu.com/questions/166420/how-to-detect-an-usb-device
https://www.linuxnix.com/find-usb-device-details-in-linuxunix-using-lsusb-command/
The text was updated successfully, but these errors were encountered: