-
Notifications
You must be signed in to change notification settings - Fork 22
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
115200 verses 57600 bit rate speed for Silicon Labs EZSP on EFR32MG1 and EFR32MG2? #5
Comments
Note! This is cross-posted at zha-ng/EZSP-Firmware#6 |
The EM35X was having 115200 with hardware flow control and 57600 with software flow control as standard (probably hardware limitations) and its inharaged to the EFR32 thats looks woking OK with 115200 SW (alos ZHA is having 57600 as standard for EZSP NCPs) and most host systems is having it for compatibility reasons. And M35X with on chip USB serial is software derived and dont need hard or software flow control on the "cable" its being handled by the software bufferts as the speed is don (automatic). |
Update README.md with more info about flow control speeds as discussed in grobasoz/zigbee-firmware#5 Paraphrased from https://www.openhab.org/addons/bindings/zigbee/#ember-ezsp-ncp-coordinator
FYI, submitted PR to update bellows README.md for zigpy with more info about flow control speeds in zigpy/bellows#391 Note that there are generally two image versions of the Silabs EmberZNet NCP firmware in use. One version operates at a baud rate of 115200 with RTS/CTS flow control (i.e. hardware flow control), the other operates at a lower baud rate of 57600 with XON/XOFF flow control (i.e. software flow control). If you are flashing firmware image to your own EM35x or EFR32 adapter then it is advisable to use a version with hardware flow control, Many available commercial dongles (e.g. Nortek HUSBZB-1) seem to ship pre-flashed with a firmware that uses the lower speed and software flow control. Paraphrased from https://www.openhab.org/addons/bindings/zigbee/#ember-ezsp-ncp-coordinator |
I think (= not knowing) that the comports on EFR32 chips is using real hardware UART with DMA transfer so its having no problems with timing of the communication if its lagging and the CPU only need reading / writing to the software buffers as long not killing the main thread its running. |
I did not base that on empirical tests, instead I just stole the recommendation from https://www.openhab.org/addons/bindings/zigbee/#ember-ezsp-ncp-coordinator I believe that @cdjackson from @zsmartsystems wrote that original recommendation for EM358, (and he is also the author of https://github.com/zsmartsystems/com.zsmartsystems.zigbee and https://github.com/zsmartsystems/com.zsmartsystems.zigbee.sniffer plus maintainer of OpenHAB Zigbee Binding). And I assumed that if EM358 has no issues with 115200 hardware flow control then EFR32 should have no issues either?
But is your setup common (e.g. the norm) or the extreme exception? I would think most other people more common setups consist of a bought USB dongle/stick or a Shield such as for example Elelabs Zigbee USB Adapter or Elelabs Zigbee Raspberry Pi Shield? Also, you really need to use shorter wires/cables once the project goes into production! ;) |
I dont knowing how the hardware part of the EM35X is working and the EM368X have multi protocol versions (with Z-Wave) that can making it difficult getting the communication working stabile and need the hardware flow control then the NCP(s) is not have time "talking to the host" all the time. ZHA have dropped the HW flow control so its not possible using their firmware. I think its more interesting if EM35X family is stable with 115200 SW than converting all new firmware (i think gary have make 95% of all adapter working with new ones if they is working OK on all hardware but waiting for verification on that) to it and make 115200 sw default in ZHA. Then testing and working with longer cables its OK but doing one PCB its being much shorter and more away from other signals sources that can making interference. |
I think the owner of this git and @walthowd can awsering if Em35X devices is working satbile with 115200 sw or need 57600 with sw (then HW is not working with ZHA) and the rest is speculation without experience. |
What are the pros and cons with 115200 verses 57600 bit rate speed for Silabs EZSP serial protocol on EFR32MG1/EFR32MG2?
kirovilya brought up the question in Koenkk/zigbee-herdsman#168 for EByte-E180-Z120B and SM-011 V1.0 modules.
PS: The upcoming Sonoff Zigbee 3.0 dongle from ITead will ship with firmware config for 115200 -> https://fb.watch/386X5ET50f/
The text was updated successfully, but these errors were encountered: