1

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 ?

asked Jun 11, 2016 at 14:57

1 Answer 1

3

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.

answered Jun 11, 2016 at 20:19
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.