1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tx power adjustments with v1.23

Discussion in 'Tomato Firmware' started by nvtweak, Mar 15, 2009.

  1. peyton

    peyton LI Guru Member

    Maybe it's the case on your (WHR 125) mine has BCM5352 not BCM5354.
     
  2. Toastman

    Toastman Super Moderator Staff Member Member

    T/B - does this country selection in release 23 also set pa0maxpwr?
     
  3. teddy_bear

    teddy_bear Network Guru Member

    Yes, v23 sets pa0maxpwr to 251 for all routers except Buffalos. The exclusion is because I don't have a Buffalo router to test myself, nvtweak reported it did not affect his Buffalo noticeably if at all, and trying to mimic DD-WRT behaviour... But if needed it can be set manually on Buffalo, and will not be overriden.
     
  4. Toastman

    Toastman Super Moderator Staff Member Member

    That's a great mod! Armed with this info, I've just quickly tried it on one of my WRT54GL AP's. I erased NVRAM and re-configured. pa0maxpwr was 251. Power control seems to mimic DD-WRT now. I tried to test on ch 12-14, but it seems probable that the laptop I am using doesn't work on those channels :frown:

    Nice work!
     
  5. bripab007

    bripab007 Network Guru Member

    Wait, what did you do to get the pa0maxpwr = 251 in NVRAM, Toastman? Did you install the non-ND version of the firmware?
     
  6. Toastman

    Toastman Super Moderator Staff Member Member

    I just installed T/B's new release 23, erased NVRAM, reconfigured, saved, and the 251 was there by default - I checked immediately after rebooting. The GUI then changed the country codes.
     
  7. QSxx

    QSxx LI Guru Member

    So, just to be clear, fix for TX power on WRT54GLs (at least) with RAF 1.23ND is slapping this into init

    rebooting, and then what?

    It's set to max tx power and cant be changed or we can choose lower setting in wireless and it will finally have some effect?
     
  8. Victek

    Victek Network Guru Member

    QSxx, update your firmware to Tomato RAF 1.23.8515.4 ND, the issue is fixed and you don't need to take care about it.
    Not necessary for Tomato RAF 1.23.8025 as it's using the regular wireless driver.
     
  9. Toastman

    Toastman Super Moderator Staff Member Member

    QSxx - pa0maxpwr is a limit used internally. It means that you can select any power up to that level, if the driver allows it. Previously it was set rather low, and that is why this has been changed. But with Teddy Bear and Victek recent issues, as Victek says, it's already part of the firmware.
     
  10. darthboy

    darthboy LI Guru Member

    For Buffalo WHR-HP-G54, pa0maxpwr is not set at 251 for the latest mods. It's 50+ or 60+, can't remember exact figure. I changed it to 251, though I'm not sure whether it made a difference.
     
  11. Victek

    Victek Network Guru Member

    darthboy, Tomato RAF 1.23.8514.4 ND have been fixed at 251.
     
  12. peyton

    peyton LI Guru Member

    For whr hp 54 i guess it's useless except if you disable the preamp or you'll burst it. :eek:
     
  13. darthboy

    darthboy LI Guru Member

    Victek: not for the WHR-HP-G54, in 8515.4.

    peyton: I used 70mw txpower, just like in ddwrt v24 default value. Never tried 251 txpower, merely set pa0maxpwr=251.
     
  14. Victek

    Victek Network Guru Member

    I think you're looking in the GUI, I fixed internally, list nvram show and look.. nothing to do with your thoughts
     
  15. darthboy

    darthboy LI Guru Member

    I did look at pa0maxpwr thru the telnet session. That was after a full nvram erase using the GUI.

    nvram get <var_name>, right? Shows 53.
     
  16. teddy_bear

    teddy_bear Network Guru Member

    darthboy & peyton,
    The mod doesn't modify pa0maxpwr on Buffalo routers (unless Victek changed the way it works). See this post for a brief explanation.
     
  17. Victek

    Victek Network Guru Member

    Yes, was changed.. but I don't know why Buffalo overrides the value.
     
  18. teddy_bear

    teddy_bear Network Guru Member

    Are you sure you changed it ;)?
    The latest 8515.5 sources on your web site still have the original code:
    Code:
    if (strcmp(mfr, "Buffalo") != 0)
    	nvram_set("pa0maxpwr", "251");	// allow Tx power up tp 251 mW, needed for ND only
    
     
  19. Victek

    Victek Network Guru Member

    if (strcmp(mfr, "Buffalo") != 0) is out in init.c for the RAF 1.23.8515.4 .. the source you got is due to some corruption in the previous file ;), anyway, is strange...
     
  20. peyton

    peyton LI Guru Member

    I never set mine over 28mw with amp on just like redhawk0 said as a ddwrt hardware tester. He didn't recommend to overclock our routers either. :)
     
  21. TVTV

    TVTV LI Guru Member

    Why no overclocking? Could you please post a link to that article/post or to a decent explanation?

    Thanks in advance.
     
  22. bandyta

    bandyta Addicted to LI Member

  23. peyton

    peyton LI Guru Member

  24. FattysGoneWild

    FattysGoneWild LI Guru Member

    Hey it seems that the adjustment bug for tx power has been fixed in the ND release of Tomato 1.25. I set it for 28mW to test it out and it seems to have taken the number fine. Take a look!

    Tomato v1.25.1719


    BusyBox v1.14.0 (2009-05-25 16:02:43 PDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    # wl txpwr
    pwr in mw 58
    pwr in mw after override adj 58
    28
    #

    Unless I am reading it completely wrong? :confused:
     
  25. nvtweak

    nvtweak LI Guru Member

    That command is a bit outdated.

    Try using wl txpwr1

    wl txpwr1 -m 28
     
  26. FattysGoneWild

    FattysGoneWild LI Guru Member

    I tried that top command. This is what came up.


    Tomato v1.25.1719


    BusyBox v1.14.0 (2009-05-25 16:02:43 PDT) built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    # wl txpwr1
    TxPower is 58 qdbm, 14.50 dbm, 28 mW Override is Off
    #

    So is it actually at 28mW? What does that bottom command do that you posted? I should have asked you before blindly putting it in like a fool after running the first command in telnet.

     
  27. nvtweak

    nvtweak LI Guru Member

    The bottom command sets Tx power to 28 mW, if it wasn't already.

    So,

    wl txpwr1 -m 42

    would set Tx power to 42 mW (so long as everything works as it should).
     
  28. jovev007

    jovev007 Addicted to LI Member

    TX power problem

    hi.

    I have upgrade my WRT54GL from 1.19 to version 1.25 non ND (with NVRAM erase) and now TX power regulation not work (42mw,150mw,200mw no change in signal).
    Then i downgrade to version 1.19 (with NVRAM erase) but the problem still persist.

    :|

    *sorry for my bad english
     
  29. Toastman

    Toastman Super Moderator Staff Member Member

    I believe the default value has not been changed in standard Tomato v. 1.25. For info read through this thread. It was not updated to use the newer wireless or ethernet drivers either.

    Use "nvram set pa0maxpwr=251"
     
  30. spicoli

    spicoli LI Guru Member

    Wasn't there a script of some kind that would work with the 1.23 version...
     
  31. luckman212

    luckman212 LI Guru Member

    I'm sorry but I read this thread carefully 2 times and am still confused and scratching my head. I have a Buffalo WHR-HP-G54 running Tomato (stock) ND version v1.25.1719.

    I am having issues with Tx power and trying to figure out the optimal settings. I experimented with the various CLI commands such as "wl txpwr" and "wl txpwr1" etc. After several reboots and nvram commits, I noticed no matter what I did, I could not really boost my signal above -50dbm (measured with inSSIDer from a separate laptop). I tried everything.

    Am I to understand that Buffalo units are somehow "hard coded" to not allow overboosting the Tx power? If that is the case I will probably swap it for a Linksys WRT54GL. Very confused here.
     
  32. azak

    azak Addicted to LI Member

    I can't help with your issue but wanted to p0int out that, in the latest version of inSSIDer, -50 dBm is the highest reading you can possibly get.
     
  33. luckman212

    luckman212 LI Guru Member

    hmmmmmmm .. didnt know that, why is that actually?
    is there something better for windows besides inSSIDer?
    i tried netstumbler but it wouldn't recognize any of my wi-fi cards or usb devices.
     
  34. Noxolos

    Noxolos Addicted to LI Member

    I am using the official Tomato 1.25-ND on a WRT54GL.

    Do I have to put these lines in the Init-Script to adjust Tx power?

    Code:
    nvram set wl0_country=US
    nvram set wl0_country_code=US
    nvram set wl_country=US
    nvram set wl_country_code=US
    nvram set pa0maxpwr=251
    wl country US 
    I have read through the whole thread but the solution is not clear stated.

    regards
    Noxolos
     
  35. Toastman

    Toastman Super Moderator Staff Member Member

    I think so. I don't think standard Tomato added the pa0maxpwr statement. Or you could instead use Victek's 8515.2 firmware which also has later drivers and some very useful extra features.

    Singapore gives channels 12-13 - two extra channels BTW
     
  36. Noxolos

    Noxolos Addicted to LI Member

    hmmm, when I change the tx power the signal strength still remains the same.
    So for me these lines don't work. Maybe it doesn't work with the driver version of the official Tomato ND Release?

    What would be the syntax for Singapore?
     
  37. Toastman

    Toastman Super Moderator Staff Member Member

    I tested those lines with all ND drivers, and they worked. Sorry, I cannot find the short code for Singapore - I set it using the GUI in Victek RAF tomato.

    EDIT: it's SG
     
  38. Noxolos

    Noxolos Addicted to LI Member

    I think I will try this mod when I'll be back at home.

    a little bit OT:
    Do you know the syntax for overclocking the official Tomato Firmware?

    Do I only have to put these lines in the Init Script:
    Code:
    nvram set debug_clkfix=0
    nvram set clkfreq=250,125
    Or is it better to use the following lines via telnet:
    Code:
    nvram set debug_clkfix=0
    nvram set clkfreq=250,125
    nvram commit
    reboot
    best regards
    Noxolos
     
  39. Toastman

    Toastman Super Moderator Staff Member Member

    I think just this works. Issue by telnet and then reboot, it'll save the setting in NVRAM. The fsb setting is ignored anyway, you don't need it.

    nvram set clkfreq=250
    nvram commit
    reboot

    Then check your log to see if the bogomips have gone up.
     
  40. jochen

    jochen LI Guru Member

    I've read this thread carefully, but I'm still confused.
    Is there any special script needed for Victeks 1.25?
     
  41. Toastman

    Toastman Super Moderator Staff Member Member

    No, it's all included.
     
  42. jersully

    jersully LI Guru Member

    I ran across this blog entry detailing one guy's experience with signal strength. He uses 4 Tomato routers to service some apartments, and kept increasing the signal strength when his users complained of dropped connections. He found that by increasing the Tx strength, he was also increasing the noise floor. So he lowered the signal strength to a level below where he started and all was well.

    So, I dropped my Tx power back down to the default to see if it would keep the microwave from knocking the kitchen laptop off the network. It still does sometimes, but it is much improved from before.
     
  43. Toastman

    Toastman Super Moderator Staff Member Member

    Most of what you read has simple explanations which comply with the laws of physics. He quotes this sentence from the wiki (which I wrote) but he obviously did not really understand the meaning behind it.
    Usually, when reducing the power improves things, it is simply because the client is too close to the router and it is overloading the receiver. In the case of the post you refer to, remember the guy increased the power output of ALL 4 of his routers, which even if on adjacent channels, could of course increase the noise floor for the other routers. As his article doesn't actually explain what he did, it is very misleading. And you can see from the replies in his article that some people found the opposite to be true. Just be aware that this is a complex subject and most of the posts in the forums are by people with no knowledge of the subject. Sorry to be blunt about this, but you wouldn't expect the local vicar to be an expert in nuclear physics, would you?

    http://www.linksysinfo.org/forums/showthread.php?t=62430


    But ... whatever works for you !
     
  44. jochen

    jochen LI Guru Member

    Hmm... then I'm wondering why I cannot raise transmit power above some level.
    I'm using iStumbler on my Macbook for monitoring the signal. WRT54GL 1.1 is in the same room, 2 meters away. iStumbler shows signal strength in percent (don't know what 100% is). With power set to 1mw it shows me around 60%. I can rise it to around 74% with tx power set to 82 mW. But that seems to be the maximum possible. When doubling tx power (164 mW) there is no change.
    Country is set to "US".
     
  45. jochen

    jochen LI Guru Member

    I now compared Tomato RAF 1.25 std with RAF 1.25 ND.
    With the std version signal level constantly increases up to the max of 251mW. With ND version there is some limit around 70mW. Higher values make no changes in signal level. I did this test with country Singapore, my WRT is a 54GL v1.1
     
  46. Toastman

    Toastman Super Moderator Staff Member Member

    The ND settings are weird. Technically, when a country is set, a router should be limited to the maximum power set for that country in the wireless driver. The NON-ND version had an override flag, but it apparently no longer worked in the ND drivers. Not sure why your Singapore setting limits at 70, for me it didn't. Try changing channels. FYI the very recent ND drivers which are being used in new firmwares have even less control, it seems.

    To check the mod is in place for yourself - download the NVRAM dump from the ADMIN/DEBUGGING page and look for these: wl0_reg_mode=off wl_reg_mode=off

    Because the drivers are proprietary to Broadcom, and we have no access to source code, we don't have any way to change their behavior or even to know definitively how they are supposed to work :)
     
  47. POQbum

    POQbum Networkin' Nut Member

    Old thread, but for those wondering.. to increase the power way beyond its limits you have to enable shell, connect through putty (or some other client) and put this in:

    wl txpwr1 -m -o 2000

    I only did it to experiment. What I got was a noticeably stronger signal and wider coverage area (pretty sure it's past legal limits), but speed literally cut in half.

    84mW *is* the standard best setting for this router unless you absolutely need more range- in this case you will be slowing down your entire wireless network when increasing much more above this.

    Wanted to add in my experience in case it helps anyone out.
     
  48. Dent

    Dent LI Guru Member

    Why would you be slowing down your entire wireless network by increasing the transmit power above 84mW?
     
  49. Toastman

    Toastman Super Moderator Staff Member Member

    Evil spirits ...

    The extra radiated energy is causing severe itching to the local spirits. So they get their revenge by invoking daemons in the router :smile:
     
  50. RonWessels

    RonWessels Network Guru Member

    I've come up with at least two possibilities, and I do hope the "slowdown" is due to this sort of issue.

    If your client is very close to the router and you increase router power, there's a good chance that you'll overload the input stage of your client's radio, causing a "noisy" signal and forcing a lowered rate.

    If your client is very far away and requires the higher power to hear the router, it is quite possible that the client's own transmitter is not powerful enough to get a good signal back to the router, causing the link speed to be lowered until a reliable connection can be made.

    If simply increasing the transmit power somehow locks out the higher data rates in the driver, my head may explode!
     
  51. Mr.CTT

    Mr.CTT Serious Server Member

    Is the command for this still current when you ssh?
    would i need to use something different if i have a router like the R7000 that has 2.4ghz & 5ghz?

    I attempted to do wl0 and wl1 but that doesn't work... i was thinking -i 0 or -a 0 would work but they also fail
     
  52. Mr.CTT

    Mr.CTT Serious Server Member

    I really want to bump this....

    Does anyone know how to adjust wl1's TX power in tomato? I would really like to customize it. I have a significant signal drop switching a R6300 to tomato from stock and setting it to default. It just doesn't have near the signal it had. I believe it to be TX power related.

    Please anything would help.
     
  53. Mr.CTT

    Mr.CTT Serious Server Member

    Found My answer
    Link
    http://www.linksysinfo.org/index.php?threads/asus-rt-n16-transmit-power.33078/#post-163118

    You should check your regulations for your area
    http://en.wikipedia.org/wiki/List_of_WLAN_channels

    (begin quote)
    Update 22 July 2013: (tested & working 1/28 on shibby 121 & 124)

    This is just for those who are INTERESTED to test out 500mw transmit power on their RT-N66U(any?), you may enter commands via GUI at 192.168.1.1 > Tools > CMD or via telnet:

    ### To CHECK your current region, each line entered will result in the answer.
    nvram get pci/1/1/ccode
    nvram get pci/2/1/ccode
    nvram get wl0_country_code
    nvram get wl1_country_code
    nvram get regulation_domain
    nvram get regulation_domain_5G

    ### To ALTER to a new region such as US(500mw), or GB(200mw), enter or change the last 2 letters accordingly to each line. Its a good idea to CHECK your current region after each command entered.
    nvram set pci/1/1/ccode=US
    nvram set pci/2/1/ccode=US
    nvram set wl0_country_code=US
    nvram set wl1_country_code=US
    nvram set regulation_domain=US
    nvram set regulation_domain_5G=US

    ### To CHECK your current transmit power, each line entered will result in answer.
    nvram get wl_TxPower
    nvram get wl0_TxPower
    nvram get wl1_TxPower

    ### To ALTER to a new transmit power such as 500mw(US) or 200mw(GB), enter or change the last 3 digits accordingly to each line. Its a good idea to CHECK your current transmit power after each command entered.
    nvram set wl_TxPower=500
    nvram set wl0_TxPower=500
    nvram set wl1_TxPower=500
    nvram commit


    After nvram commit command is entered, you may additionally VERIFY values at the GUI > Wireless > Professional > Tx power adjustment. Take note your router temperature MAY rise by about 2 to 3°C and maintain. I have experienced only a 5% average strength increase from 200mw to 500mw. FYI, firmware using is by Merlin 3.0.0.4.372.30_3. Signal strength check using WiFi Explorer 1.5.1.
    (end quote)



    p.s. I wouldn't go over 100 on the 2.4

    I use AI instead of US to unlock all channels. this greatly helped my 5ghz problems using 500. the web GUI will not update to represent any changes via telnet
     
    Last edited: Jan 29, 2015

Share This Page