element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum RT3070 wireless adapter adjust tx power??
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 27 replies
  • Subscribers 669 subscribers
  • Views 6482 views
  • Users 0 members are here
Related

RT3070 wireless adapter adjust tx power??

wallarug
wallarug over 12 years ago

I seem to be unable to adjust the tx power above 20dbm.  I have tried: 'iwconfig wlan0 txpower 22' but this does not change the txpower.

 

I have also disabled the power-management.

 

The adapter claims that it can hit 5800mW of power which aquates to about 37dBm.

 

Does anyone know how I can get the txpower up? (I can put it down, just not up)

 

root@raspberrypi:~# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter

root@raspberrypi:~# iwconfig wlan0 txpower 30

Error for wireless request "Set Tx Power" (8B26) :

    SET failed on device wlan0 ; Invalid argument.

root@raspberrypi:~#

  • Sign in to reply
  • Cancel
  • wallarug
    wallarug over 12 years ago

    adding to this, how can I tell if my card supports AP mode?  I tried iw list but this is what I got:

     

    root@CMDoverwatch:~# iw list

    Wiphy phy0

            Band 1:

                    Capabilities: 0x172

                            HT20/HT40

                            Static SM Power Save

                            RX Greenfield

                            RX HT20 SGI

                            RX HT40 SGI

                            RX STBC 1-stream

                            Max AMSDU length: 3839 bytes

                            No DSSS/CCK HT40

                    Maximum RX AMPDU length 65535 bytes (exponent: 0x003)

                    Minimum RX AMPDU time spacing: 2 usec (0x04)

                    HT RX MCS rate indexes supported: 0-7, 32

                    TX unequal modulation not supported

                    HT TX Max spatial streams: 1

                    HT TX MCS rate indexes supported may differ

                    Frequencies:

                            * 2412 MHz [1] (20.0 dBm)

                            * 2417 MHz [2] (20.0 dBm)

                            * 2422 MHz [3] (20.0 dBm)

                            * 2427 MHz [4] (20.0 dBm)

                            * 2432 MHz [5] (20.0 dBm)

                            * 2437 MHz [6] (20.0 dBm)

                            * 2442 MHz [7] (20.0 dBm)

                            * 2447 MHz [8] (20.0 dBm)

                            * 2452 MHz [9] (20.0 dBm)

                            * 2457 MHz [10] (20.0 dBm)

                            * 2462 MHz [11] (20.0 dBm)

                            * 2467 MHz [12] (20.0 dBm) (passive scanning, no IBSS)

                            * 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)

                            * 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)

                    Bitrates (non-HT):

                            * 1.0 Mbps

                            * 2.0 Mbps (short preamble supported)

                            * 5.5 Mbps (short preamble supported)

                            * 11.0 Mbps (short preamble supported)

                            * 6.0 Mbps

                            * 9.0 Mbps

                            * 12.0 Mbps

                            * 18.0 Mbps

                            * 24.0 Mbps

                            * 36.0 Mbps

                            * 48.0 Mbps

                            * 54.0 Mbps

            max # scan SSIDs: 4

            max scan IEs length: 2257 bytes

            Coverage class: 0 (up to 0m)

            Supported Ciphers:

                    * WEP40 (00-0f-ac:1)

                    * WEP104 (00-0f-ac:5)

                    * TKIP (00-0f-ac:2)

                    * CCMP (00-0f-ac:4)

            Available Antennas: TX 0 RX 0

            Supported interface modes:

                     * IBSS

                     * managed

                     * AP

                     * AP/VLAN

                     * WDS

                     * monitor

                     * mesh point

            software interface modes (can always be added):

                     * AP/VLAN

                     * monitor

            interface combinations are not supported

            Supported commands:

                     * new_interface

                     * set_interface

                     * new_key

                     * new_beacon

                     * new_station

                     * new_mpath

                     * set_mesh_params

                     * set_bss

                     * authenticate

                     * associate

                     * deauthenticate

                     * disassociate

                     * join_ibss

                     * join_mesh

                     * remain_on_channel

                     * set_tx_bitrate_mask

                     * action

                     * frame_wait_cancel

                     * set_wiphy_netns

                     * set_channel

                     * set_wds_peer

                     * connect

                     * disconnect

            Supported TX frame types:

                     * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

                     * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0

            Supported RX frame types:

                     * IBSS: 0xd0

                     * managed: 0x40 0xd0

                     * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0

                     * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0

                     * mesh point: 0xb0 0xc0 0xd0

                     * P2P-client: 0x40 0xd0

                     * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0

     

    Any ideas?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago

    In practice the wifi adapter is unlikely to support such a high output (5800mW would require more than 1A at

    5V USB supply) (is this a normal USB stick type of wifi adapter?). 20dBm is more likely though. A a bit odd why it claims 5800mW specifically. Maybe they meant 580mW (which is still really huge for wifi).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to shabaz

    Here is the link to the product:

    http://www.ebay.com/itm/KINAMAX-High-Power-5800mW-802-11b-g-n-150Mbps-Wi-Fi-Wireless-Network-Adapter-/150904547616?ssPageName=ADME:X:RTQ:US:1123

     

    I know that this is on ebay but I did my background research and every website said 5800mW with 58dBm antenna.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to wallarug

    It sounds like they are relying on a directional antenna which makes sense (no need to radiate a huge power everywhere). So, they are possibly implementing 20dBm output with a 17dBi antenna (this would be extremely directional). It looks like there are antenna topologies for 17dBi for such frequencies, e.g. this one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to shabaz

    Going on what you said before:

    In practice the wifi adapter is unlikely to support such a high output (5800mW would require more than 1A at

    5V USB supply) (is this a normal USB stick type of wifi adapter?). 20dBm is more likely though.

    I think you are somewhat right.

     

    Maybe Linux limits the amount of Watts (current in this case) that you can pull out of the USB port.

     

    I did a quick google search:

    http://en.wikipedia.org/wiki/DBm

     

    Have a look at the table halfway down the page:

    dBm levelPowerNotes
    80 dBm100 kWTypical transmission power of FM radio station with 50-kilometre (31 mi) range
    62 dBm1.5 kW = 1,500 WMaximum legal power output of a U.S. ham radio station.[3]
    60 dBm1 kW = 1,000 WTypical combined radiated RF power of microwave oven elements
    50 dBm100 WTypical thermal radiation emitted by a human body

    Typical maximum output RF power from a ham radio HF transceiver

    40 dBm10 WTypical PLC (Power Line Carrier) transmit power
    37 dBm5 WTypical maximum output RF power from a handheld ham radio VHF/UHF transceiver
    36 dBm4 WTypical maximum output power for a Citizens' band radio station (27 MHz) in many countries
    33 dBm2 WMaximum output from a UMTS/3G mobile phone (Power class 1 mobiles)

    Maximum output from a GSM850/900 mobile phone

    30 dBm1 W = 1,000 mWTypical RF leakage from a microwave oven

    DCS or GSM 1,800/1,900 MHz mobile phone. EIRP IEEE 802.11a (20 MHz-wide channels) in either 5 GHz Subband 2 (5,470–5,725 MHz) provided that transmitters are also IEEE 802.11h-compliant, or U-NII-3 (5,725–5,825 MHz). The former is EU only, the latter is US only.

    29 dBm794 mW
    28 dBm631 mW
    27 dBm500 mWTypical cellular phone transmission power

    Maximum output from a UMTS/3G mobile phone (Power class 2 mobiles)

    26 dBm400 mW
    25 dBm316 mW
    24 dBm251 mWMaximum output from a UMTS/3G mobile phone (Power class 3 mobiles)

    1,880–1,900 MHz DECT (250 mW per 1,728 kHz channel). EIRP for Wireless LAN IEEE 802.11a (20 MHz-wide channels) in either the 5 GHz Subband 1 (5,180–5,320 MHz) or U-NII-2 & -W ranges (5,250–5,350 MHz & 5,470–5,725 MHz respectively). The former is EU only, the latter is US only.

    23 dBm200 mWEIRP for IEEE 802.11n Wireless LAN 40 MHz-wide (5 mW/MHz) channels in 5 GHz subband 4 (5,735–5,835 MHz, US only) or 5 GHz subband 2 (5,470–5,725 MHz, EU only). Also applies to 20 MHz-wide (10 mW/MHz) IEEE 802.11a Wireless LAN in 5 GHz Subband 1 (5,180–5,320 MHz) if also IEEE 802.11h compliant (otherwise only 3 mW/MHz → 60 mW when unable to dynamically adjust transmission power, and only 1.5 mW/MHz → 30 mW when a transmitter also cannot dynamically select frequency).
    22 dBm158 mW
    21 dBm125 mWMaximum output from a UMTS/3G mobile phone (Power class 4 mobiles)
    20 dBm100 mWEIRP for IEEE 802.11b/g Wireless LAN 20 MHz-wide channels in the 2.4 GHz ISM band (5 mW/MHz).

    Bluetooth Class 1 radio. Maximum output power from unlicensed AM transmitter per U.S. Federal Communications Commission (FCC) rules 15.219.[4]

    19 dBm79 mW

     

    This would give three reasons as to why I can't put more than 20dBm into the device:

    1) It is sort of illegal

    2) The maximum normal output of wireless devices is normally only 100mW (20dBm)

    3) You cannot draw 5.8Watts out of a USB port on the raspberry pi (I think 5volt * 500mW = 2.5W would be the maximum before you need a powered hub or blow it up)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • shabaz
    shabaz over 12 years ago in reply to wallarug

    Agree : )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago

    1. You are probably right about this. Even some channels are blocked, depending upon the country settings.

    2. There do exist high power devices. I have an alpha wifi stick that claims to be high power.

    It will drain more than the allowed 500mA from your usb port.

    Most pc's only care about the total current used on all usb ports, so on a pc this can work.

    Wifi communication is bidirectional. It's useless to have a high power stick if the access point is unable to transmit in high power as well.

    For some cheap adapters without external antenne, sending more power could extend the usable range a little. High power devices usually will have a good antenna as you don't want the RF radiation to interfer with the surrounding chips.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to Former Member

    NEW QUESTION:

     

    Where can I find the db.txt file?

     

    This will allow me to change the allowed txpowers for each country.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • msilveus
    msilveus over 12 years ago in reply to wallarug

    Hi Fergus,

     

    The easiest why to find files is to install locate using 'sudo apt-get install locate' Once you have it installed run 'sudo updatedb' afterwards run 'locate db.txt' to get a list of every file named db.txt. You can then add updatedb as a cron job and have it automatically update the file list db and then locate we stay up to date.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to msilveus

    Couldn't find it.  Any one know where the information about wireless power is stored?  I read about a file called db.txt but I could not find it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube