Z-Stack-firmware icon indicating copy to clipboard operation
Z-Stack-firmware copied to clipboard

Z-Stack router firmware for CC2652P/CC1352 that support control of RF transmit power output dBm level remotely

Open Hedda opened this issue 4 years ago • 59 comments

Feature request for a Z-Stack router firmware for CC2652P/CC1352P that can support controlling of RF transmit power output dBm levels remotely.

If router firmware supported that feature then could somehow expose the power output configuration attributes in applications like Zigbee2MQTT and ioBroker, etc. when the CC2652P and CC1352 based device is joined to Zigbee network and there allow the user to set the power output in dBm on those routers without reflashing, (maybe by presenting the transmission power output option on the Z-Stack router as via switches or dimmer?).

I guess that future router firmware for CC2652P/CC1352P will be set to +9 dBm by default to stay compliant with international regulations, and having a feature like this would allow users to bump applications up to +20 dBm without having to maintain a separate firmware. Better yet could allow users to change and exactly tweak RF transmit power output dBm level settings for each individual CC2652P/CC1352P based router to achieve optimally range and coverage.

If 20 steps of TX power output levels is too many then suggest offering these five (5) dBm settings levels; 5, 9, 14, 19, and 20.

PS: Worth knowing difference between dB and dBm https://www.wilsonpro.com/blog/whats-the-difference-between-db-and-dbm

Hedda avatar Dec 20 '21 08:12 Hedda

For reference, some experimental firmware versions have been posted on https://github.com/Koenkk/Z-Stack-firmware/issues/273. The difference between the stable firmware and the one provided by @bkupidura (with +20dBm) is staggering: from LQI 7 to 80 in exactly the same spot.

ruimarinho avatar Dec 21 '21 19:12 ruimarinho

For reference, some experimental firmware versions have been posted on #273.

Should be noted that the router firmware in #273 is not configurable to differed TX power output levels, it is instead hardcoded into the firmware image to always use +20dBm TX power output amplification and can not be changed without flashing a other firmware image with a different configuration, which again is might be too strong/high for some scenarios and as such not always optimal for all individual users situations.

The initial request from the original post above remains as it would be great to have a Zigbee router firmware for CC2652P/CC1352P where the TX power output could be reconfigured remotely.

Hedda avatar Dec 22 '21 08:12 Hedda

As a simpler solution for now, a normal / low power build and a high power build would already make a lot of difference.

wolph avatar Jan 02 '22 04:01 wolph

I'd definitely drop some decent donations to @Koenkk to make a CC2652 router firmware that had a Z2M converter with a slider of output power, restart button (probably needed to change power?), and LED state (on/off/status) picker. Game changer indeed.

digiblur avatar Jan 08 '22 20:01 digiblur

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Feb 08 '22 01:02 github-actions[bot]

@Koenkk would you accept a pull request with an extra high-power build in addition to the regular ones?

wolph avatar Feb 08 '22 04:02 wolph

would you accept a pull request with an extra high-power build in addition to the regular ones?

No, this creates extra maintenance overhead for me. Instead this should be done by adding a manufacturer specific attribute on the genBasic cluster, from there it can be controlled from z2m by sending a write command.

Koenkk avatar Feb 08 '22 15:02 Koenkk

I can see there is already coordinator with 5.40 SDK in development branch, is there a plan for a router with 5.40? Thank you

wojciechczyz avatar Feb 25 '22 13:02 wojciechczyz

I can see there is already coordinator with 5.40 SDK in development branch, is there a plan for a router with 5.40? Thank you

Please start a new issue for that version request as that is off-topic for this specific subject or at least not directly related to topic.

Hedda avatar Feb 25 '22 13:02 Hedda

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 28 '22 01:03 github-actions[bot]

This if very much still relevant. Bumping

wolph avatar Mar 28 '22 02:03 wolph

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Apr 28 '22 02:04 github-actions[bot]

Still a relevant request I think, if even technically possible?

Hedda avatar Apr 28 '22 06:04 Hedda

@Hedda Maybe, this is off-topic. I've implemented this feature in the premium version https://ptvo.info/zigbee-configurable-firmware-features/rf-signal-level-control/

ptvoinfo avatar Apr 28 '22 07:04 ptvoinfo

Maybe, this is off-topic. I've implemented this feature in the premium version

https://ptvo.info/zigbee-configurable-firmware-features/rf-signal-level-control/

Nice to know that it can technically be done at least. I guess chances are low that you code a patch and do a PR for it to this repo?

https://github.com/Koenkk/Z-Stack-firmware/blob/master/router/Z-Stack_3.x.0/firmware.patch

Hedda avatar Apr 28 '22 09:04 Hedda

I guess chances are low that you code a patch and do a PR for it to this repo?

My changes are incompatible with this repo.

ptvoinfo avatar Apr 28 '22 09:04 ptvoinfo

@ptvoinfo off-topic but if Z2M needs a converter then maybe you need to create a "quirk" for ZHA Device Handlers for that too(?) -> https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling -> https://github.com/zigpy/zha-device-handlers/blob/dev/README.md and might also need ZHA code as well to expose config in its UI(?) -> https://github.com/zigpy/zigpy/discussions/934

Hedda avatar Apr 28 '22 10:04 Hedda

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar May 29 '22 02:05 github-actions[bot]

This would still be very useful. Bump

wolph avatar May 29 '22 02:05 wolph

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Jun 29 '22 02:06 github-actions[bot]