我打算在 Linux 嵌入式计算机上使用 Zigbee。
是否有 Zigbee Linux 堆栈之类的东西? (类似于 TCP/IP 堆栈) 它是否包含在主线内核中?
理想情况下,我希望将一个极简主义的 USB Zigbee RF (802.15.4) 收发器连接到嵌入式计算机,并且大部分工作将在此 Zigbee 软件堆栈中完成。
这样的东西存在吗?
最佳答案
是的,这在 Documentation/networking/ieee802154.txt 中有描述.您要找的很可能是这段摘录:
Socket API
int sd = socket(PF_IEEE802154, SOCK_DGRAM, 0);
.....
The address family, socket addresses etc. are defined in the
include/net/af_ieee802154.h
header or in the special header in the userspace package (see either http://wpan.cakelab.org/ or the git tree at https://github.com/linux-wpan/wpan-tools).One can use
SOCK_RAW
for passing raw data towards devicexmit
function. YMMV.
另见 this问题。
关于linux - Linux 上的 Zigbee 堆栈(主线内核)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37765122/