Skip to content

Latest commit

History

155 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

zigbee-shepherd

An open source ZigBee gateway solution with node.js

NPM

Travis branchnpmnpm


Documentation

Please visit the Wiki.


Overview

zigbee-shepherd is an open source ZigBee gateway solution with node.js. It uses TI's CC253X wireless SoC as a zigbee network processor (ZNP), and takes the ZNP approach with cc-znp to run the CC253X as a coordinator and to run zigbee-shepherd as the host.

ZigBee Network


Installation

  • Install zigbee-shepherd

$ npm install zigbee-shepherd --save

  • Hardware

  • Firmware

    • To use CC2530/31 as the coordinator, please download the pre-built ZNP image to your chip first. The pre-built image has been compiled as a ZNP with ZDO callback, ZCL supports, and functions we need.

Usage

varZShepherd=require('zigbee-shepherd');varshepherd=newZShepherd('/dev/ttyUSB0');// create a ZigBee servershepherd.on('ready',function(){console.log('Server is ready.');// allow devices to join the network within 60 secsshepherd.permitJoin(60,function(err){if(err)console.log(err);});});shepherd.start(function(err){// start the serverif(err)console.log(err);});

License

Licensed under MIT.

About

An open source ZigBee gateway solution with node.js.

Topics

Resources

Stars

251 stars

Watchers

38 watching

Forks

Releases

Packages

Used by

Contributors

Languages