GLUser2
November 26, 2023, 5:56am
1
Hey, is it possible to share details about zigbee connection configuration for the b2200?
Is it connected over UART or SPI?
Do you have are recommendations about how to expose this chip to Home Assistant ?
Also, while trying to use zbtool
from gl-zigbee-sdk
in vanilla OpenWrt , I am getting
silicon_labs_init
Assertion failed: 0 (daemon/zbdriver/silicon_labs/Simplicity-Studio-v4/developer/sdks/gecko_sdk_suite/v2.7/platform/base/hal/micro/unix/host/spi-protocol-linux.c: directionGpioDevice: 420)
Aborted
while my uci
configuration looks like that
zigbee.spi=interface
zigbee.spi.spi_device='/dev/spidev1.0'
zigbee.spi.spi_cs_io='45'
zigbee.spi.spi_int_io='2'
zigbee.spi.spi_reset_io='43'
zigbee.spi.spi_wake_io='48'
zigbee.uart=interface
Any assistance would be appreciated
Thanks
cc: @kelly
kelly
November 27, 2023, 7:08am
2
We use SPI and the spi IOs are show as the configuration file. But the IO num of the QSDK’s openwrt is different from the offcal openwrt. You can refer to this: https://github.com/gl-inet/gl-zigbee-sdk/blob/master/files/etc/uci-defaults/30-zigbee-hal-config#L47C4-L47C4
About the HA, we tried porting the zigbee2mqtt, but the JS requires a lot of resources to run, and we finally gave up on it.
kelly
November 27, 2023, 7:13am
3
If I remember correctly, the official openwrt version requires 412 per IO plus, e.g.: io45 is io457
You can try modifying the uci file directly and start zbtool again to see if it works properly.
GLUser2
November 29, 2023, 6:54am
4
Adjusting the IO pin numbers did the trick.
Thanks a lot!
Hey @kelly , hope you are doing well!
I'm wondering if you can share the pinout for zigbee module based on the following
And does pref-lashed firmware implement ncp-spi or similar project from Simplicity studio?
Thank you!
kelly
July 29, 2024, 2:20am
6
PA01 - SWCLK
PA02 - SWDIO
PC00 - SPI-CLK
PC01 - SPI-CS
PC02 - SPI-MOSI
PC03 - SPI-MISO
PD00 - LFXTAK_O
PD01 - LFXTAK_I
The pre-flashed firmware is ncp-spi.
1 Like