Linksys WRT1900AC

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:02, 30 August 2017 (edit)
Kleinbottle (Talk | contribs)
(LEDs and GPIO pins)
← Previous diff
Revision as of 11:05, 30 August 2017 (edit) (undo)
Kleinbottle (Talk | contribs)
(LEDs and GPIO pins)
Next diff →
Line 80: Line 80:
The command ''/sbin/gpio'' allows one to examine and manipulate the GPIO pin status. The command ''/sbin/gpio'' allows one to examine and manipulate the GPIO pin status.
-* /sbin/gpio poll n (this tells if pin n is 00 = off or 01 = on)+* /sbin/gpio poll 9 (this tells if pin 9 is 00 = off or 01 = on)
-* /sbin/gpio enable 0 (this enables pin 0, ie. sets it to 1)+* /sbin/gpio enable 9 (this enables pin 9, ie. sets it to 1)
-* /sbin/gpio disable 0 (this disables pin 0, ie, sets it to 0)+* /sbin/gpio disable 9 (this disables pin 9, ie, sets it to 0)
'''Notes:''' '''Notes:'''
Line 89: Line 89:
# Even doing a poll will often mess up the router so much that it just freezes. You'll have to reboot it after experimenting with the /sbin/gpio commands. # Even doing a poll will often mess up the router so much that it just freezes. You'll have to reboot it after experimenting with the /sbin/gpio commands.
 +The LEDs that have GPIO pins that can be accessed are the following:
 +
 + [pin # = LED name]
 + 0=power
 + 4=USB2
 + 5=USB1
 + 6=white internet
 + 7=amber internet
 + 8=USB2 dot
 + 9= WPS (white) This is the far right LED that has an UP/Down arrow.
 + 10= WPS (amber)
 +
 +I have not been able to find out what pins 1,2,3 do, although it seems logical that they would be Wlan2G, Wlan5G and eSata.
''more to come'' ''more to come''
== Scripting == == Scripting ==
''to be completed later'' ''to be completed later''

Revision as of 11:05, 30 August 2017

NOTE: I am still working on these instructions and will have them finished by the middle of September, 2017. /u/Kleinbottle


Contents

Intro, Versions

These instructions have only been tested on the Linksys WRT1900AC v1.

The other models: WRT1200AC, WRT1900ACS, and WRT3200ACM are so similar that these instructions will probably also apply to the other versions, but it's not guaranteed. See this page for differences.

How to Flash

  1. Follow the standard procedure described for Linksys routers.
  2. There are two firmware files to download and install. Do them both; in order.
    1. Firmware: factory to dd-wrt, initial installation image factory-to-ddwrt.img
    2. Firmware: webflash image ddwrt-linksys-wrt1900ac-webflash.bin

There is also a newer Kong build, but I haven't tried that. The DD-WRT firmware from the router database page, v3.0-r28628 std (12/29/15), is perfectly stable for me so far. Note that the only build version is the Standard sized one.

Setup

- write instructions here -

Since the WRT1900 family uses Marvell chips, the "wl radio on" command does not work for turning the wifi on and off. Instead use the command "ifconfig ath0 up".

Wireless setup

The WRT1900AC is a dual band router. The two bands correspond to two physical interfaces in the Wireless/Basic Settings webpage.

  • ath0 is the 2.4 GHz band (also listed as TurboQAM)
  • ath1 is the 5GHz band (described as 802.11ac)


more instructions to come

5 GHz wifi setup

In order to get the 5 GHz band working, all of the following must be set

  • SSID: the two interfaces (ath0, ath1) must have different SSIDs
  • Channel: even though there are a number of channels that can be used for the 5GHz band, many do not work, as this DFS page explains. Basically, the only usable ones are channels 36-48 and 149-165.
  • Wireless Network Mode: the webpage GUI lists various possibilities, but some do not work, notably "N-only". This is probably because the interface is called 802.11ac, thus one should use AC-only or AC/N-mixed. A chart showing the difference between AC and N is here.
  • Channel Width: The smallest width is 20MHz. Increasing this can increase the speed, but may also increase noise. The DFS page linked above explains channel width well. You'll have to see how many other 5 GHz routers are nearby and experiment. The "Extension Channel" of Upper/Lower is also important based on where the DFS/radar channels are with respect to the channel that you have selected.


Guest WiFi setup

- instructions need to be typed in -

Hardware

LED brightness

The LEDs seem to lose brightness over time according to this. My router is second-hand and it's quite evident that the frequently used LEDs are dimmer than the others.

changing LED brightness

To see the list of LEDs, type in the command: ls -l /sys/class/leds

The results are

 mamba:white:power
 mamba:amber:wan
 mamba:white:wan
 mamba:white:wlan_2g
 mamba:white:wlan_5g
 mamba:white:esata
 mamba:white:usb2
 mamba:white:usb3_1
 mamba:white:usb3_2    
 mamba:white:wps
 mamba:amber:wps

NOTE: (1) mamba is the codename for the 1900AC v1. cobra is the codename for v2. (2) The 4 ethernet ports have two LEDs each, but they do not show up here.

The brightness of the LEDs can be adjusted by using this command

 echo 255 > /sys/class/leds/mamba\:white\:wan/brightness 

Where the brightness value can be from 0 to 255 (and as mentioned above, even at 255 they are not that bright).

LEDs and GPIO pins

Most of the LEDs above are connected to / controlled by GPIO pins. The command /sbin/gpio allows one to examine and manipulate the GPIO pin status.

  • /sbin/gpio poll 9 (this tells if pin 9 is 00 = off or 01 = on)
  • /sbin/gpio enable 9 (this enables pin 9, ie. sets it to 1)
  • /sbin/gpio disable 9 (this disables pin 9, ie, sets it to 0)

Notes:

  1. The /sbin/gpio command works better over wifi than from a computer connected via ethernet cable. I don't know why. In the latter case, CTRL-C does not work to end the poll command.
  2. Even doing a poll will often mess up the router so much that it just freezes. You'll have to reboot it after experimenting with the /sbin/gpio commands.

The LEDs that have GPIO pins that can be accessed are the following:

 [pin # = LED name]
 0=power
 4=USB2
 5=USB1
 6=white internet
 7=amber internet
 8=USB2 dot
 9= WPS (white)  This is the far right LED that has an UP/Down arrow.
 10= WPS (amber)

I have not been able to find out what pins 1,2,3 do, although it seems logical that they would be Wlan2G, Wlan5G and eSata. more to come

Scripting

to be completed later