简体   繁体   中英

Zigbee stack on Linux (mainline kernel)?

I'm planning to use Zigbee on a Linux embedded computer.

Is there such thing as a Zigbee Linux stack ? (similar to a TCP/IP stack) Is it included in mainline kernel ?

Ideally, I would like to have a minimalist USB Zigbee RF (802.15.4) transceiver connected to an embedded computer and most of the work would be done in this Zigbee software stack.

Does such a thing exist ?

Yes, this is described at Documentation/networking/ieee802154.txt . What you are looking for is most likely this excerpt:

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 device xmit function. YMMV.

See also this question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM