Koenkk / Z-Stack-firmware

Compilation instructions and hex files for Z-Stack firmwares
MIT License
2.33k stars 643 forks source link

TX power for CC1352P2 CC2652P router firmware #273

Closed bkupidura closed 3 years ago

bkupidura commented 3 years ago

Hey, Can you please share what tx power is set in CC1352P2_CC2652P_other_router_20210128.hex?

Currently im tessting CC2652P as a router, it works stable but i think that it has lower radio tx power than my old CC2530+CC2591 - which is surprising ;)

ptvoinfo commented 2 years ago

Yes, the firmware for cc2652r works. Sorry, but I don't have info about sonoff s26R2ZB.

nickwild-999 commented 2 years ago

Thanks @ptvoinfo

Hedda commented 2 years ago

Sorry, but I don't have info about sonoff s26R2ZB.

FYI, ITead Sonoff S26R2ZB ZigBee Smart Plugs (S26R2ZBTPG/S26R2ZBTPF/S26R2ZBTPE) is also based on a new radio module with CC2652P (CC2652 P1F) but it has ceramic chip antenna so it does not look to have the same exact radio module design, or does it?

https://github.com/Koenkk/zigbee2mqtt/discussions/10909

https://github.com/Koenkk/zigbee2mqtt/issues/10282

https://itead.cc/product/sonoff-s26r2zb-zigbee-smart-plug-uk-de-fr/

https://sonoff.tech/product/smart-plug/s26r2zb/

image

image

image

image

bojanpotocnik commented 2 years ago

@Hedda, note that the module on your pictures has exactly the same design flaw/optimization as described in https://github.com/ptvoinfo/zigbee-configurable-firmware/issues/96#issuecomment-1056704722 (ptvo blog post), therefore enabling the power amplifier will result in working chip/FW, but no transmitted packets.

Hedda commented 2 years ago

@Hedda, note that the module on your pictures has exactly the same design flaw/optimization as described in ptvoinfo/zigbee-configurable-firmware#96 (comment) (ptvo blog post), therefore enabling the power amplifier will result in working chip/FW, but no transmitted packets.

So to resolve https://github.com/Koenkk/zigbee2mqtt/issues/10282 it then probably very likely that selecting CC2652R chip type in the PTVO firmware configurator will result in a working firmware image on the ITead Sonoff S26R2ZB ZigBee Smart Plug similar to the new Sonoff ZBMINI (01MINIZB) as both use CC2652P (CC2652 P1F) chip model and their radio modules have same design "optimizations"?

Manually configuring the transmit power to 5 dBm or less in the firmware should probably also work?

ruimarinho commented 2 years ago

@ptvoinfo there have been a few commits on https://github.com/ptvoinfo/zigbee-configurable-firmware but it seems like the changelog on the blog hasn't been updated in a while.

Are any of the most recent commits relevant for the router firmware (in my case, originally Dec 2021)? Thanks.

ptvoinfo commented 2 years ago

@ruimarinho All these changes are relevant to my firmware, where you can build a router too.

Hedda commented 2 years ago

5dbm, currently this is not configurable, to change you have recompile: https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/Z-Stack_3.x.0/COMPILE.md

See https://github.com/Koenkk/Z-Stack-firmware/issues/341 for request + discussion about having a similar configurable feature in Koenkk's Z-Stack Zigbee Router firmware -> https://github.com/Koenkk/Z-Stack-firmware/issues/341