8000 GitHub - jcrona/usb-power: TP-Link TL-WR703N USB power switch (GPIO) driver for OpenWrt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jcrona/usb-power

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TP-Link TL-WR703N USB power switch (GPIO) driver for OpenWrt

Synopsis

The TP-Link TL-WR703N router is great for hacking, but its USB port is not 100% reliable. From time to time, the router loses the USB connection, and cannot enumerate the connected device(s) anymore. In such a state, the only way to get the USB back is to physically disconnect the USB device(s), which could be an issue if you have no easy access to the router.

This driver adds a SYSFS entry allowing to control the USB power switch GPIO. This gives the ability to either reset the USB port remotely, or to let the router do it by itself if it detects that something goes wrong.

Build instruction

In order to build this driver as an OpenWrt package and/or add it to an OpenWrt firmware build:

  • checkout an OpenWrt build tree (only tested on Barrier Breaker 14.07 so far)
  • move this folder to openwrt/package/kernel/usb-power

Now, if you run $ make menuconfig from the openwrt root folder, you should see an usb-power entry in the Kernel modules/Other modules sub-menu. Just select it as built-in or package, and launch a build.

Usage

Once registered, this driver adds the following sysfs entry:

  • /sys/devices/platform/usb-power.0/value

Write 0 in it to disable the USB power switch, and write 1 to re-enable it.

License

This driver is distributed under the GPLv2 license. See the LICENSE file for more information.

Miscellaneous

This driver has been successfully tested on a TP-Link TL-WR703N router running OpenWrt.

Fell free to visit my blog, and/or send me a mail !

__
Copyright (C) 2016 Jean-Christophe Rona

About

TP-Link TL-WR703N USB power switch (GPIO) driver for OpenWrt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0