Modify

Opened 3 years ago

Last modified 3 years ago

#19195 new defect

Can not turn off USB power by hand on TP-Link TL-MR3420 v2.3

Reported by: tischd Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Barrier Breaker 14.07
Keywords: mr3420, gpio, usb, power Cc:

Description

Hi Devs,
I need to turn off and then back on USB power from script to overcome the freezing of some pure quality 3G dongles, however I can not accomplish that. I use TP-Link TL-MR3420 v2.3 router with BARRIER BREAKER (14.07, r42625).

root@OpenWrt:~# cat /sys/kernel/debug/gpio
GPIOs 0-22, ath79:
 gpio-4   (USB power           ) out hi
 gpio-11  (tp-link:green:3g    ) out hi
 gpio-12  (tp-link:green:lan4  ) out hi
 gpio-13  (tp-link:green:wlan  ) out hi
 gpio-14  (tp-link:green:system) out lo
 gpio-15  (tp-link:green:qss   ) out hi
 gpio-16  (WPS                 ) in  hi
 gpio-17  (Reset button        ) in  hi
 gpio-18  (tp-link:green:wan   ) out hi
 gpio-19  (tp-link:green:lan1  ) out hi
 gpio-20  (tp-link:green:lan2  ) out hi
 gpio-21  (tp-link:green:lan3  ) out hi
root@OpenWrt:~# ls -al /sys/class/gpio/
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   19 root     root             0 Jan  1  1970 ..
--w-------    1 root     root          4096 Jan  1  1970 export
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpio4 -> ../../devices/virtual/gpio/gpio4
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
--w-------    1 root     root          4096 Jan  1  1970 unexport
root@OpenWrt:~# ls -al /sys/class/gpio/gpio4/
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x    4 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          4096 Mar 16 15:16 active_low
lrwxrwxrwx    1 root     root             0 Mar 16 15:16 subsystem -> ../../../../class/gpio
-rw-r--r--    1 root     root          4096 Mar 16 15:16 uevent
-rw-r--r--    1 root     root          4096 Mar 16 15:16 value
root@OpenWrt:~# cat /sys/class/gpio/gpio4/active_low 
0
root@OpenWrt:~# cat /sys/class/gpio/gpio4/value 
1
root@OpenWrt:~# echo 0 > /sys/class/gpio/gpio4/value 
root@OpenWrt:~# cat /sys/class/gpio/gpio4/value 
1

The above is the same, whether I issue the commands before or after I connect the 3G dongle. Dongle otherwise works well, but I need to power that off sometimes.

Please help me out!

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by tischd

2 extra info:

  • all the same with CHAOS CALMER (Bleeding Edge, r44797)
  • interestingly enough after I issue "echo 0 > /sys/class/gpio/gpio4/value", the USB LED fades a bit, and if I enter "echo 1 > /sys/class/gpio/gpio4/value" it comes back to its full brillance. But "cat /sys/class/gpio/gpio4/value" always gives 1, and USB port is powered constantly.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.