Zigbee内核驱动程序 [英] Zigbee kernel driver

查看:479
本文介绍了Zigbee内核驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解如何在Linux中实现Zigbee模块(TI CC2530).该模块将通过SPI连接到开发卡(Merrii的A80 Pro).

I'm trying to understand how to implement a Zigbee module(TI CC2530) into Linux. This module will be connected through SPI to a development card (A80 Pro from Merrii).

在这一点上,我不确定到底要做什么.我是否必须为CC2530编写内核驱动程序?还是只是一个简单的SPI控制器驱动程序?

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

此外,如果您有任何网站可供我查询更多信息,那就太好了.

Also if you have any website that I can look for more informations, it will be great.

推荐答案

您在这里有很多选择:

  1. ZigBee Linux HA网关参考设计(HW/SW):

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

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

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

开箱即用,它通过CDC USB连接到CC2531.但是,通过修改NPI_Gateway.cfg和zigbeeHAgw脚本文件,您可以将其重新配置为使用UART或SPI. CC2530将需要使用 http://www.ti.com/中提供的ZNP FW进行预制图.工具/z-stack -Z-Stack Home 1.2.2.42930 \ Projects \ zstack \ ZNP \ CC253x下的Z-STACK-HOME SDK,预构建的二进制文件位于Z-Stack Home 1.2.2.42930 \ Projects \ zstack \ ZAP中\ ZNP-HexFiles \ CC2530.

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

此选项专用于Linux,它使用4个应用程序空间服务器来管理数据平面,控制计划和现场升级,并通过在本地套接字上的协议来提供高级的家庭自动化API.它使用现有的CDC,UART或SPI内核驱动程序.它不会将其自身提供给内核空间驱动程序.

This option is specifically for Linux, it uses 4 application space servers to manage the Data Plane, Control Plan and Field Upgrade, offering a high level Home Automation API through protobuf over local sockets. It uses the existing CDC, UART or SPI kernel drivers. It would not lend its self to a kernel space driver.

  1. 开源ZNP Host框架参考设计.这是跨平台框架,可以移植到内核空间驱动程序,但是它不仅支持SPI和UART. CC2530 FW与上面的相同,并且确实支持SPI,因此您需要移植ZNP框架才能使用SPI.

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

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

关于, TC.

这篇关于Zigbee内核驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆