11384 questions

13563 answers

21250 comments

31888 members

0 votes
105 views 4 comments
by

Hello,

Driving the external USB port power doesn't seem to work:

root@lgrrutx:~# hub-ctrl -h 0 -P 1 -p 1
root@lgrrutx:~# hub-ctrl -v 
Hub #0 at 001:002
 INFO: individual power switching.
 Hub Port Status:
   Port 1: 0000.0103 power enable connect
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
root@lgrrutx:~# hub-ctrl -h 0 -P 1 -p 0
root@lgrrutx:~# hub-ctrl -v 
Hub #0 at 001:002
 INFO: individual power switching.
 Hub Port Status:
   Port 1: 0000.0000
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power

After setting it off via hub-ctrl -h 0 -P 1 -p 0 the status says that the port isn't powered anymore but a connected device stays on.

Is there something I may have missed ?

Regards,

1 Answer

0 votes
by

Hi Flebourse,

I am unfamiliar with the reported feature as it is not in the feature documentation for Teltonika devices. So far, I have collected as much information from other sources as possible and tested this feature on a RUT955, essentially getting the same described issue scenario. I connected my mobile device to the external USB port, and even though I powered off the port, the device stilled charging. However, it does it at a lower charging rate.

Standard output:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=14819898186850033600

Mobile connected:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=7762346298353732251

Output after sending the power off command:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=11195130166759090629

Mobile message after unplugging and plugging again to the USB port:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=15160293317497751166

Reading the package GitHub documentation, I found a warning indicating this feature only works on USB hubs with the hardware necessary to allow software-controlled power switching because most hubs do not have such hardware. The documentation also shows a list of the Hubs known to work for verification purposes. Below is the Github link documentation:

https://github.com/codazoda/hub-ctrl.c/blob/master/README.md

So, please check your device Hub vendor by executing the following command in the Command-Line Interface:  cat /sys/kernel/debug/usb/device:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=17127032818094613268

Search for the USB2.0 Hub product and copy the vendor code and introduce it on this website:

https://devicehunt.com/

Select USB as type and introduce your vendor code. In my case, the vendor is Genesys Logic, INC. Then manually search for the Hub listed product on the website and look for any product match. For my part, I did find a manufacturer name match, but it is not the same listed device name:

https://community.teltonika-networks.com/?qa=blob&qa_blobid=5536109276244976513

https://community.teltonika-networks.com/?qa=blob&qa_blobid=12259854703746693759

Also, I found this other source for product and driver searching purposes:

https://linux-hardware.org/?view=search

Based on the information above, it seems the feature could be not working as expected due to hardware incompatibility. Please comment on this asked verification , and I will consult our internal staff for more related information about your query.

I hope this information has been helpful for you.

by
The usb hub is the same (05e3:0610), the power management doesn't seem to work as expected. This is most likely an hardware issue.
by
Hi Flebourse,

Yes, the most likely cause is due hardware incompatibility with the feature.

Regards
by
Can I expect a fixed hardware in a future product ?
by
There's no near-future plan to implement this feature on our devices yet. However, we will keep an eye on more requests to collect them and send them as new feature development suggestions to our RnD department.

Regards.