raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.17k stars 1.68k forks source link

It is no longer possible to reduce the transmission power #1736

Open kosmosgit opened 2 years ago

kosmosgit commented 2 years ago

Hello, so far I have reduced the transmission power of my RPi's using

sudo iw wlan0 set txpower limit 1800 # = 18dB

Since the standard setting of 31 dB (1 watt transmission power) is mercilessly too high, it is probably also not legally permissible. In addition, it does not help the RPi in terms of reception and only disturbs other participants

lategoodbye commented 2 years ago

Please provide more information about the setup (which Raspberry PI?, which wifi device?, which kernel version?, ...)

kosmosgit commented 2 years ago

Raspberry Pi4, 4GB, First Board Edition, Kernel 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022, included WLAN0

after change with

sudo iw wlan0 set txpower limit 1800

iw dev, shows the change, because the router interface shows every time the same signal quality. Earlier, a change has always had an effect.

RX-Signal

all my 3 Raspberry Pi 4 shows the same error.

It looks to me that no more changes are allowed, but that's completely wrong to work with the highest possible transmission power. I have about 30 WLAN clients and none has such a high transmission performance as the Raspberrys.

seamusdemora commented 2 years ago

Just my 2 pence worth, but I wonder:

  1. mBm was a brain fart - nobody uses it, and there was an action to change it to dBm. Maybe that's happened?
  2. At the conclusion of iw help:

    Do NOT screenscrape this tool, we don't consider its output stable.

  3. 31 dBm is 1 watt - not 31 dB
  4. 1 Watt of conducted power (power delivered to the antenna) is allowed under most regulatory regimes. I'm not quite sure how operating at that limit gets to be "completely wrong", but I think you should be able to reduce power.
  5. Other than defining hard power limits, iw also provides the power_save option. This setting may be verified with:
    $ sudo iw dev wlan0 get power_save
    Power save: on

    I don't know exactly how power_save is implemented, but perhaps there is some sort of feedback loop that influences the Tx power level? Have you tried this?

kosmosgit commented 2 years ago

Of course I meant dBm, powersave on used to cause problems for me that the Raspberry could only be reached via the network after repeated attempts or sometimes not at all.

rubienr commented 9 months ago

My two cents:

[...]

3. 31 dB_**m**_ is 1 watt - not 31 dB

Simplified explained (excluding EIRP and antenna gain): given a TX power of 31 dB m, the mW power is 10^(31/10)*mW = 1258,9mW.

4. 1 Watt of _conducted_ power (power delivered to the antenna) is allowed under most regulatory regimes. I'm not quite sure how operating at that limit gets to be "completely wrong", but I think you should be able to reduce power.

This is absolutely not very accurate!

"Equivalent isotropically radiated power (EIRP) in the European Union is limited to 20 dBm (100 mW)." [1]

[1] https://en.wikipedia.org/wiki/Wi-Fi#Transmitter_power

Apart of this, i did not see many WiFi final stages that dissipate 1W on the 2,4GHz band. Even many of the high end MiKroTik AP wireless cards do not dissipate more than about 23dBm per output stage.

More examples of wrongly reported power:

Example with reasonable result:

So far i have seen wrong iw reports and troubles setting the TX power only on ARM devices.

kosmosgit commented 9 months ago

For me it wasn't/isn't the deciding factor here whether it was DBm, 31 or 22....it was simply extremely noticeable that my Raspberry had the strongest signal to the router despite the worst antennas and the worst location in the house.

See the picture

seamusdemora commented 9 months ago

My two cents:

[...]

  1. 1 Watt of conducted power (power delivered to the antenna) is allowed under most regulatory regimes. I'm not quite sure how operating at that limit gets to be "completely wrong", but I think you should be able to reduce power.

This is absolutely not very accurate!

For the technically challenged, I'll just quote this:

One Watt (1000mw) is the FCC limit on WiFi devices

_"Equivalent isotropically radiated power (EIRP) in the European Union is limited to 20 dBm (100 mW)."_ [1]

Whatever you say... perhaps you can explain this - or not; I really don't care. But you should stop running off at the mouth on things you're apparently not very knowledgeable about.

Have a good day.

rubienr commented 9 months ago

Whatever you say... perhaps you can explain this - or not; I really don't care. But you should stop running off at the mouth on things you're apparently not very knowledgeable about.

Hi,

First of all that is a private page, it could state anything. However this section seems reasonable:

Short overview of the ETSI standard:
– 2.4 GHz: 100 mW (20 dBm)
– 5 GHz channel 36 to 64: 200 mW (23 dBm)
– 5 GHz channel 100 to 140: 1000 mW (30 dBm)
– 5 GHz channel 155 to 171: 4000 mW (36 dBm)

As you see, on the 2.4GHz band 20dBm are allowed (there might be exceptions w.r.t. regulatory domains).

Notes: