Skip to content
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

[BUG] Missed to tune and set HFXO Capacitor Bank calibration value (CTune) in firmware fo ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware version 1.3 #4

Closed
Hedda opened this issue Apr 12, 2021 · 9 comments

Comments

@Hedda
Copy link
Contributor

Hedda commented Apr 12, 2021

Looks like have missed tuning/calebrated and set HFXO Capacitor Bank calibration value (CTune) in the firmware for ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware version 1.3 or?

@xsp1989 Not sure if you have already heard or not but it seems that a lot of people who bought the new ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware version 1.3 are having problems when trying to pair their Zigbee end devices to the dongle/stick adapter as a Zigbee coordinator.

See many bug reporting a problem of not being able to pair any devices -> home-assistant/core#48592

The problem doesn't sound to be isolated to ZHA in Home Assistant but also to OpenHAB as well as Zigbee2MQTT dev users too.

@MattWestb in zigpy/zigpy#692 believe that the root cause might be that "CTune value" not being tuned properly in firmware(?).

Latest news is that the firmware maker is:

If you compile the firmware yourself, please set the HFXO CTUNE value to 128.

So my theory is confirmed !!!!
The SM-011 and the USB stick is not calibrated or they have changing components that is miss tuning the RF radio !!!

@xsp1989 If so then the solution might be to create a new firmware with HFXO CTUNE value set to 128 or what do you think?

some one that have on SM-011 module and and Simplicity Studio can reading the CTune value in the chip and /or in the manufacturing token ?

One KB how is being done in SS4: https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2019/01/22/saving_ctune_valuea-qCPl

I suspecting that the SM-011 module and the new Sonoff USB Zigbee 3 stick is not calibrated and have problems with staying on the correct frequency and reading CTune can saying if they have storing somthing or not in the chip. And the manufacture is trying patching the config in the EZSP firmware for compensating the bad done work.

The procedure for doing on real calibrating if some is interested:
https://www.silabs.com/community/wireless/proprietary/knowledge-base.entry.html/2019/03/18/hfxo_capacitor_bank-7uRt

If my thinking its true it can resulting in that devices (sleeping end device mostly) is heaving problem communicating with the coordinator then its frequency is miss tuned or need re tuning its radio all the time for keeping the radio channel open.

If its possible with one factors firmware that is signed and the chip is not erased and not with EZSP 6.7.9.0 that have some "fixed configuration" but all reading / info is more then welcome !!

The Silabs modules IKEA and Tube is using shall being OK from the factory if i have understanding all OK but i dont now its with tuya having doing it OK or not on there EF32MG2X modules.

Edit: One more interesting thing it can being bad using high power setting then it can doing the the RF drifting of the heating in the AP and getting problems with come devices that is tuned in the other direction ( on + x and the other - y) and getting problems.

@xsp1989
Copy link
Owner

xsp1989 commented Apr 12, 2021

In version 6.7.9, the CTUNE value has been set to 128

@Hedda
Copy link
Contributor Author

Hedda commented Apr 15, 2021

Is HFXO CTUNE value 128 permanent setting for ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware version 1.3?

@Hedda Hedda changed the title [BUG] Missed to set HFXO CTUNE value to 128 in firmware for ITead Zigbee 3.0 USB Dongle? [BUG] Missed to tune and set HFXO Capacitor Bank calibration value (CTune) in firmware fo ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware version 1.3 Apr 15, 2021
@Hedda
Copy link
Contributor Author

Hedda commented Apr 15, 2021

@xsp1989
Copy link
Owner

xsp1989 commented Apr 16, 2021

HFXO CTUNE is set to 128 to have better RF performance, and the default value can also work normally

@Hedda
Copy link
Contributor Author

Hedda commented May 6, 2021

@xsp1989 Sounds as if the root cause for the problem with pairing due to Electromagnetic interference (EMI) / radio-frequency interference (RFI) home-assistant/core#48592 issues is still related to a hardware design flaw as I now read that EFR32 with a properly designed circuit board design for a PCB trace antenna hardware should not need to change the HFXO CTUNE from the default parameter.

It sounds more and more like ITead engineers needs to take this board back to the drawing board and redesign the antenna circuits. As noted before, the ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware revision version 1.3 currently do not follow Silabs reference antenna design.

I guess until hardware is redesigned with a better antenna design the recommendation to users should simply be to warn just not buy this ITead Zigbee 3.0 USB Dongle Model 9888010100045 with hardware revision version 1.3 if want a stable Zigbee network?

Again. the tip to ITead engineers is that they should follow the design used by Silabs MGM210 (MGM210L and MGM210P)

https://www.silabs.com/wireless/zigbee/efr32mg21-series-2-modules

https://fccid.io/QOQMGM210L/Internal-Photos/Internal-Photos-4211021

https://fcc.report/FCC-ID/QOQGM210P/4460964

image

image

image

image

@Hedda
Copy link
Contributor Author

Hedda commented May 6, 2021

Nice blog post about the benefits of ceramic antennas compared to PCB trace antennas:

https://resources.pcb.cadence.com/blog/2020-understanding-ceramic-chip-antenna-vs-pcb-trace-antenna

Technical description:

https://www.mouser.co.id/pdfDocs/ceramicchipantennasvspcbtraceantennasacomparison.pdf

Ceramic chip antenna is probably worth the ~ $1 that it would add to total BOM cost, even if raising retail price of the product.

https://eu.mouser.com/Passive-Components/Antennas/_/N-8w0fa?P=1y9hq54Z1yu8mv5

@MattWestb
Copy link
Contributor

I agree but some extra capacitors and shield for the for the HFXO / receiver path is higher on the list for getting it working more stable.

Also possible potting the output power down can helping if the interference is coming from the RF part that is blocking the device.

I was suggesting putting some isolating tape and then aluminium / copper tape that is not covering the antenna and grounding it at the USB but no one have trying it what i knowing but its one well proven method in SDR dongles community.

1$ in BOM is in the end more § in the bill to the customer so i think one plastic tube / film with metal / shielding coating is one more cost efficient solution in on low cost device like this.

@Hedda
Copy link
Contributor Author

Hedda commented May 6, 2021

Also possible potting the output power down can helping if the interference is coming from the RF part that is blocking the device.

FYI, such workarounds are very unpopular at least and can have an impact on a company's reputation.

It is not ethical and maybe not even legal to first release a product with "20dBm" listed in its specification and then later say that due to a hardware design flaw you can now only use the product you bought with example only a "12dBm" configuration.

While not as costly you can compare such a solution to Apple's iPhone battery operating "fix" where they just sent out a software patch that lowered the processor frequency so that it would draw less power.

That would also be like Tesla releasing a new "Long Range" model car that they market to have a 400 miles range but then they discover that it has problems so they later release an over-the-air update that limits the car to 300 miles range.

@MattWestb
Copy link
Contributor

And shipping devices that not working at all under "normal conditions" is . . . ?
By the way is one DIY device and its your responsibility doing the casing and connection of it by the recommendations of the manufacture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants