Zigbee Kernel Driver

I am trying to figure out how to implement a Zigbee module (TI CC2530) in Linux. This module will be connected via SPI to a development card (A80 Pro from Merrii).

At this point, I'm not sure what I need to do. Should I write a kernel driver for the CC2530? Or just a simple SPI controller driver?

Also if you have a website where I can find more information that would be great.

+3


source to share


1 answer


You have several options here:

  • ZigBee Linux HA Gateway Reference Design (HW / SW):

http://www.ti.com/tool/CC2531EM-IOT-HOME-GATEWAY-RD

http://www.ti.com/tool/z-stack - Z-STACK-LINUX-GATEWAY

Out of the box connects to CC2531 via USB CDC. However, by modifying the NPI_Gateway.cfg and zigbeeHAgw script files, you can reconfigure it to use UART or SPI. CC2530 will need to be preinstalled with ZNP FW available at http://www.ti.com/tool/z-stack - Z-STACK-HOME SDK in Z-Stack Home 1.2.2.42930 \ Projects \ zstack \ ZNP \ CC253x. prebuilt binaries are located at Z-Stack Home 1.2.2.42930 \ Projects \ zstack \ ZAP \ ZNP-HexFiles \ CC2530.



This variant is specifically designed for Linux, it uses 4 application space servers to manage data plane, control plan and field updates, offering a high-level internal automation API via protobuf over local sockets. It uses existing CDC, UART or SPI kernel drivers. It would not provide itself as a kernel space driver.

  1. The original design of the open source ZNP database. It is a cross platform platform and can be ported to a kernel space driver, however it does not support SPI, only UART. The CC2530 FW will be the same as above and support SPI, so you will need to port your ZNP framework to use SPI.

http://www.ti.com/tool/TIDC-ZNP-HOST-SW3

https://git.ti.com/znp-host-framework/znp-host-framework

Best regards, TS.

+5


source







All Articles