Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:user-guide:hardware:usb.overview [2018/02/17 20:31] – ↷ Links adapted because of a move operation bobafetthotmaildocs:guide-user:hardware:usb.overview [2021/08/31 16:05] – ↷ Links adapted because of a move operation tmomas
Line 1: Line 1:
-====== The USB Port: An Overview ====== +====== Turning USB power on and off ======
-You already adjusted the configuration to meet your basic needs with the help of [[doc:howto:basic.config|basic config]]? Good. If your device has USB ports, here you see how to put them to good use.+
  
-  * To obtain a very basic USB support under OpenWrt, see [[doc:howto:usb.essentials|USB Basic Support]] +On some routers, it is possible to turn USB power on and off using [[docs:techref:hardware:port.gpio|GPIO]], like this:
-  * To obtain support for USB storage and mount a local filesystem please see [[doc:howto:usb.storage|USB Storage]] +
-    * To do basic storage operations, see [[doc:howto:storage|Partitioning, Formatting and Mounting]] +
-    * To provide access to file system(s) on a storage device via network see the services [[docs:user-guide:services:cifs.server|Samba]], [[docs:user-guide:services:nfs.server|NFS]] or [[docs:user-guide:services:sshfs.server|SSH]] +
-    * To mount another / instead of the one located on the Flash, please see [[doc:howto:extroot]] +
-    * To execute a Kernel on external storage after booting a Kernel from flash, please see [[docs:user-guide:advanced:kexec]] +
-    * To install packages to a different location other then JFFS2, see [[doc:techref:opkg#Installation.destinations|opkg]] +
-  * To install a printer and grant access to it from the net, see [[doc:howto:printer.overview|Printservers overview]]. +
-  * To connect your OpenWrt-Router over your Smartphone with the Internet, see [[doc:howto:usb.tethering|USB Tethering..]] +
-  * To connect your Smartphone over your OpenWrt-Router with the Internet, see [[doc:howto:usb.reverse.tethering|USB reverse tethering..]] +
-  * To obtain audio support (for an USB sound card), and run audio daemon, see [[docs:user-guide:hardware:usb.audio|USB Audio Support]] (WIP) +
-    * [[docs:user-guide:services:pulseaudio|PulseAudio]] Since trunk 2011-01 we can install PulseAudio +
-    * For [[oldwiki:alarmclock.with.remote|turn your router into an alarm clock]] (oldwiki) +
-  * To obtain support for USB video streaming devices, [[doc:howto:usb.video|USB Video Support]] +
-    * For a webcam, see [[doc:howto:webcam]] (WIP) +
-  * To use a 3g/4g/UMTS/LTE USB Modem (UMTS Dongle) for WAN connection, please see [[doc:recipes:3gdongle]] +
-  * To use your Bluetooth enabled phone in a PAN see [[http://forum.openwrt.org/viewtopic.php?id=1650|Forum]] +
-  * To connect a USB device to your OpenWrt router, but utilize drivers installed somewhere else (sic!), see [[docs:user-guide:services:usb.iptunnel|USB over IP tunnel]] +
-  * To connect various devices (sensors, GPIO-expanders, ADCs, RTCs etc), see [[docs:user-guide:hardware:usb.i2c-tiny-usb|How to use I²C over USB]] +
- +
-:!: Some routers might have difficulties providing full USB power output.  +
- +
-===== Turning USB power on and off ===== +
- +
-On some routers, it is possible to turn USB power on and off using [[doc:hardware:port.gpio|GPIO]], like this:+
  
 On: On:
Line 39: Line 14:
 Here, ''N'' should be replaced with pin number, which depends on router model. Here are some known pin numbers: Here, ''N'' should be replaced with pin number, which depends on router model. Here are some known pin numbers:
  
-^ Model                                          ^ Pin number(s)  +^ Model                                                               ^ Pin number(s)       
-| [[toh:tp-link:tl-wr703n|TP-Link TL-WR703N]]      | 8                   | +| [[toh:tp-link:tl-wr703n|TP-Link TL-WR703N]]                         | 8                   | 
-| [[toh:tp-link:tl-wr842nd|TP-Link TL-WR842ND]]    | 6 (v1), 4 (v2)      | +| [[toh:tp-link:tl-wr842nd|TP-Link TL-WR842ND]]                       | 6 (v1), 4 (v2)      | 
-| [[toh:tp-link:tl-wdr3600|TP-Link TL-WDR3600]]    | 21, 22              | +| [[toh:tp-link:tl-wdr3600_v1|TP-Link TL-WDR3600]]                       | 21, 22              | 
-| [[toh:tp-link:tl-wdr4300|TP-Link TL-WDR4300]]    | 21, 22              | +| [[toh:tp-link:tl-wdr4300_v1|TP-Link TL-WDR4300]]                       | 21, 22              | 
-| [[toh:tp-link:tl-wr1043nd|TP-Link TL-WR1043ND]]  | 21 (v2), 8 (v3, v4) |+| [[toh:tp-link:tl-wr1043nd|TP-Link TL-WR1043ND]]                     | 21 (v2), 8 (v3, v4) | 
 +| [[toh:tp-link:archer_c2600_v1|TP-Link Archer C2600]] V1.1   | 23, 25              | 
 +| [[toh:astoria:arv7510pw22|Astoria networks ARV7510PW22]]            | 8                   | 
  
 If your model is not listed, you may try to find ''N'' by trial and error. For some ''N'', the directory ''/sys/class/gpio/gpioN'' might not exist, in this case it can be created like this: If your model is not listed, you may try to find ''N'' by trial and error. For some ''N'', the directory ''/sys/class/gpio/gpioN'' might not exist, in this case it can be created like this:
Line 50: Line 28:
  
 You may also look at [[https://forum.openwrt.org/viewtopic.php?id=44909|this forum thread]]. You may also look at [[https://forum.openwrt.org/viewtopic.php?id=44909|this forum thread]].
 +
 +:!: Some routers might have difficulties providing full USB power output. 
 +
 +:!: On a TP-Link Archer A7 v5 running OpenWRT 19.07, the USB power can be switched by echoing 1 or 0 to ''/sys/class/gpio/tp-link\:power\:usb/value''. This may be true of other models as well. Run ''ls -al  /sys/class/gpio/'' to check for the existence of a similar predefined symbolic link on your router.
  • Last modified: 2023/01/09 04:47
  • by alexandrlastfm