-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
2652P Coordinators ignore 'transmit_power' settings #12232
Comments
Increasing the transmit power won't increasing the linkquality of devices aka you can shout harder but it won't make your ears better. |
Hi Koen,
That is certainly correct; but YOU can hear me better when I shout louder. And the PIR devices don't report about the ear capabilities of the coordinator gateway, but rather about it's own loudness perception. The louder I shout the longer the distances at which YOU to hear me! Logical, isn't it? But let's go away from the Zigbee PIR sensors. Now follow the facts. I have split an USB cable to measure the supply current of the sticks. Namely Texas Instruments states for the CC2652P that the supply current will increase from 9.6 mA for 5 dBm up to 85 mA for +20 dBm. This large difference can be measured easily by current measurement - and we are away from the auxiliary measuremnt of the PIR devices! Here are my test results:
As you can see, the results are identical for each stick, respectively. The setting of transmit_power has no influence on the RF radiation power, as I stated in this thread. This corresponds to my earlier observations with my PIR sensors. I tested it out on: I am desperate; no idea what the reason could be... I want to try again on my laptop (Thinkpad x220); honestly, i don't expect any changes. |
The transmit power setting has been verified by ITEAD using the official launchpad and a spectrum analyzer. Doc: @mercenaruss could it be something with the zigstar hardware? |
Thanks for reopening, and thanks for the link:
|
|
...
I have done it: Windows 7x64, node v12.22.4, ZigbeeMQTT v1.25.0, zigbee-herdsman 0.14.20. Clean installation without any problems; Connecting to the Sonoff coordinator without any problems... at the first go.
May already be, but I am pretty sure that my sticks will only fire with 5 db, independent on the setting - default or not. This can be derived from a comparison with my Conbee II results (10 dBm).
I will try... |
Might be that I have found the reason for this issue? See my doc: I riffled through the TI documentation 'Technical Reference Manual SWCU185E': (1) Then I read the content of my Sonoff stick, and found PA = 0 => No support of 20 dBm!!! (2) In next step I tried to set the PA bit, but had no success because of error "Erasing info page not supported via serial bootloader". Could it be that (1) is the reason why my sticks ignore the setting 'transmit_power: 20' in Z2M? How to overcome problem (2)? |
Interesting finding, I'm not sure if this field can be controlled by the FW. Here is the FW tested by Sonoff (default 9dbm), could you check it? |
I searched a bit in the fw code but couldn't find where I can set this. Isn't this something readonly of the chip? Just to be sure, can you provide me the herdsman debug logging when starting z2m so that I can verify that the transmit power is set? See https://www.zigbee2mqtt.io/guide/usage/debug.html on how to enable the herdsman debug logging. Note that this is only logged to STDOUT and not to log files. |
...
In the normal log I could find entries like
How can I enable this logging in Windows??? |
OK, I reactivated my Virtual Machine with Ubuntu again: The question remains: |
Is there anyone out there who has a Sonoff Zigbee 3.0 USB stick? And is sure that it will fire with high RF power of 20 dBm? If yes, could you please read out the USER_ID byte 0x294 with SmartRF flasher from the info page (see screen shot above)? |
...
I've searched all the docs, but didn't find anything about an "appropriate environment variable". I only found information for Linux and for HomeAssistant settings. Can you please give me the name of that variable? |
In set DEBUG=zigbee-herdsman* in $env:DEBUG='zigbee-herdsman*' before running |
...
I did it, started on 23th of April. Again: |
You read PA the wrong way. 0x294 = 00 isn't the PA bit. The PA bit is set to 1. |
Did you find any indication anywhere in the document that the bit arrangement is inverted? |
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 |
I am still in contact with Sonoff/ITEAD; because of the vacation season it takes all the longer... |
I said earlier:
I contacted the TI E2E design support forum with that issue and got the hint that all instruction and data memory accesses are little endian (Section 2.4.4 of the TRM: https://www.ti.com/lit/swcu185). @GizmoBT: So, you are right and I was wrong! Furthermore, i learned in the forum from a TI expert: "The CC2652P supports PA so the bit would read as one, the CC2652R does not support PA so the bit would be zero. It cannot be changed which is why the bit is read-only." @Koenkk: So, we don't need to research in this direction anymore; the PA bit cannot be written, the PA bit is always set In CP2652P memory! |
No reaction from Sonoff, and Radu from ZigStar says: "firmware". In the mean time I tried Z-Tool (from TI) and send "level = 20" via SYS_SET_TX_POWER" command to the Sonoff USB stick, but the result remains the same: The stick will not send with high RF power amplitude. It's output power is far below that of my Conbee II stick. @Koenkk: |
@mercenaruss does the output power work correctly with your own firmware? |
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 |
What will be correct procedure to test it? You can test this 2 firmwares and let us know @OlsiIgitt This firmware have Default TX power: 20dBm. . |
My opinion for the easiest test is:
Ok, I will test it in the next days... |
This package contains the file "firmware_20220524.patch". |
I have tested both - and the newest version No change!!! The ZigStar USB stick will always send with the same RF amplitude - independently on the setting "transmit_power" in "advanced" section. I have tested 2 settings "transmit_power: 0" and "transmit_power: 20" and compared the received "link quality" signals of my PIR sensors. |
What will be correct procedure to test it?
Of course from your point of view
My opinion for the easiest is:
1) Use a Zigbee sensor, e.g. a PIR, which reports the link quality (= signal amplitude/intensity). Place it several meters away from the coordinator.
2) Set RF transmit power to +10 dBm; note the reading of sensor link quality.
3) Set RF transmit power to +20 dBm; note the reading of sensor link quality.
4) Compare the readings of steps #2 and #3; is reading of #3 much higher than that of step #2? => All ok!
Are readings of #2 and #3 the same? Then there is the problem I described.
Am 10.08.22 um 10:39 schrieb Radu:
…> @mercenaruss does the output power work correctly with your own firmware?
What will be correct procedure to test it?
Of course from your point of view
You can test this firmware @OlsiIgitt
[CC1352P2_CC2652P_launchpad_coordinator_20220524.zip](https://github.com/Koenkk/zigbee2mqtt/files/9298316/CC1352P2_CC2652P_launchpad_coordinator_20220524.zip)
..
|
What happened?
I tested two different Zigbee Gateways (see below) with the newest coordinator firmware.
I wanted to increase the RF power to 20 dBm, but all my PIR sensors reported a low link quality correspondig to the setting 'transmit_power: 5', probably.
For experiments I tried several settings of transmit_power: -20 ... +20. The results were always identical! Z2M debug log reports my settings as stated, but the coordinators seem to ignore these settings.
When I compare link quality results with my Conbee II stick, the the signals are lower by a factor of 3 or so for my Sonoff & Zigstar sticks. So my conclusion is: Operation power is 5 dBm for my ZStack devices (Conbee manufactures states 10 dBm).
What did you expect to happen?
Different settings of 'transmit_power' should result in different gateway signal strengths.
Following the discussions related to this issue from September to December last year, I thaught that this problem should no longer exist, right?
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.25.0
Adapter firmware version
CC1352P2_CC2652P_launchpad_coordinator_20220219
Adapter
Zigbee 3.0 USB Dongle Plus & ZigStar LAN Gateway
Debug log
No response
The text was updated successfully, but these errors were encountered: