-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Zigpy-Integration] - Set TX Power #1045
Comments
Can also be passed in the config object to Can it be changed at runtime on the ZiGate? Or only on startup? |
@puddly, how should I interpreted that ? I want to reduce by 9db . The fact that I get a StatusOrPower = 0 means successfull ?
|
It's different between different firmware versions. The response is checked by ZNP so if it doesn't throw an error, it worked. |
Zigate was only able to reduce the Tx Power, not increase. |
@puddly, this still looks ok ? +50dbm on a SonOff key .. hum ..
And here if I use a negative value below -22 then I got an error , but I was expecting something differennt
|
Anything greater than +22 will be limited by firmware to +22, but the same doesn't seem to apply when you go below the lower limit. The incorrect parsing of the error code is a bug, the fix will be merged shortly. |
thanks ! |
fixed with PR #1048 (integrate also fix on zigpy-znp zigpy/zigpy-znp#136) |
So firmware developers config a default in Texas Instruments Z-Stack and then TX power can either be increased or lowered via ZNP and long as the maximum or minimum is exceeded as then the firmware will override and set maximum or minimum respectively?
I did not find a minimum with a negative value for any of Texas Instruments Zigbee chips, or rather I did not find a minimum value at all in any of the specifications, only the maximum output power, so should will you assume that minimum is "0 dBm" or? FYI, here is a reference of Texas Instruments chips hardware capabilities with maximum limits (unknown minimum) for reference:
I think bellows should be able to do the same for Silicon Labs EZSP radios but look to be hardcoded now? -> zigpy/bellows#446 Silabs EFR32MG21 (EFR32 Mighty Gecko Series 2) and EFR32MG13 (EFR32 Mighty Gecko Series 1) chips and modules reference:
|
It's added to the ToDo List. (sorry for the French, I use the Wiki's issues just for a quick notes as a reminder of all the things we have to do) |
On a side note, I understand that in most countries illegal to use higher than +10dBM on some Zigbee channels like Zigbee channel 25 and Zigbee channel 26 because they are on the edge of the allowed frequency range of the worldwide 2.4 GHz ISM radio band, while you are legally allowed to use higher power in the middle of the 2.4 GHz ISM radio band in most countries. Some countries have however made it simple and set one power limit for the whole 2.4 GHz ISM radio band in their country. As such I understand that most manufacturers of Zigbee Coordinator adapter that allow Zigbee channels 25 and 26 (i.e. all modern Zigbee Coordinators adapters based old relatively new chips) will still only set the default in firmware to +9dBm or +10dBM (even if the chip hardware support higher power) to allow it to pass FCC and CE certifications for international worldwide sale. Some manufacturers like Digi XBee play it even safer and hardcode SDK so can not exceed +10 dBm in ERP (Effective Radiated Power). Others put the responsibility on the Zigbee implementation if they want to allow higher power configuration on all or just some Zigbee channels/frequencies. |
@Hedda that is good point, however from my side, I do not see any benefit to increase the power Tx, as at the end you will be able to reach the devices, but they won't be able reach you. So Power Tx as an interest from a decrease standpoint |
To loosly quote puddly; increasing TX-power only makes the Zigbee coordinator is only "shouting louder", not "listening better". While that is true you also have to remember that CC2652P/CC1352P with an external antenna can also be a very good listener ;-) So let us agree to disagree on this point, as while I agree that it might not always be a good idea to set +20dBm in TX-power if got CC2652P or CC1352P as a Zigbee Coordinator and many Zigbee end-devices without many Zigbee routers, it can still certainly be a good idea to set a CC2652P or CC1352P Zigbee Coordinator with external antenna (and a long USB extension cable to avoid interference from the computer and other USB peripherals) to around +10dBm in TX-power to find a balance if got a healthy Zigbee network mesh in an environment that is not noisy with a lot of interference on the same frequencies. In the end it will of course matter a lot exactly which Zigbee Coordinator as well as exact chip and firmware in a users devices. |
It's exactly that but a well designed external antenna also increase TX (and also noise/interference but it's another subject). |
On Zigate V1, we have the possibility to lower the TX power. On the CC2652R and CC2652P data sheet I see that there are several Power level.
Do we have on zigpy-znp API to control such power ? If so we should them implementing using the existing plugin setup.
Question could be extended to the Compliance to FCC , CE ... regultation
CC: @puddly
The text was updated successfully, but these errors were encountered: