#19195: Can not turn off USB power by hand on TP-Link TL-MR3420 v2.3
--------------------------------------+-----------------------------------
 Reporter:  tischd                    |      Owner:  developers
     Type:  defect                    |     Status:  new
 Priority:  normal                    |  Milestone:
Component:  kernel                    |    Version:  Barrier Breaker 14.07
 Keywords:  mr3420, gpio, usb, power  |
--------------------------------------+-----------------------------------
 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!

--
Ticket URL: <https://dev.openwrt.org/ticket/19195>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to