Difference between revisions of "Linker Zigbee Gateway Module"

From LinkSprite Playgound
Jump to: navigation, search
(Steps)
(Steps)
Line 43: Line 43:
 
== Steps ==  
 
== Steps ==  
  
1. Register and login [http://www.linksprite.com/ www.linksprite.com]   
+
'''1. Register and login''' [http://www.linksprite.com/ '''www.linksprite.com''']   
  
Go to www.linksprite.io, create an account if you don’t have one, and login, create a DIY device. The type is 00(Custom device type). The device name and device group can be arbitrary. The following summarizes:
+
Go to www.linksprite.io, create an account if you don’t have one, and login, create a DIY device. The type is '''00(Custom device type)'''. The device name and device group can be arbitrary. The following summarizes:
  
*Go to [http://www.linksprite.io/ www.linksprite.io]  
+
*Go to [http://www.linksprite.io/ '''www.linksprite.io''']
 
*Create an account and login
 
*Create an account and login
 
*Create a device with type 00, and arbitrary device name and group name.
 
*Create a device with type 00, and arbitrary device name and group name.
Line 63: Line 63:
  
  
2. Hardware connection
+
'''2. Hardware connection'''
  
 
According to the following diagram to connect pcDuino3B, ZigBee gateway and other equipment.
 
According to the following diagram to connect pcDuino3B, ZigBee gateway and other equipment.
Line 70: Line 70:
  
  
3. Download the ZigBee gateway demo code
+
'''3. Download the ZigBee gateway demo code'''
  
Turn on pcDuino3B, open a terminal and download the zigBee gateway code from the github. We also need to modify the deviceID and apikey with yours, run the code and add a ZigBee device.
+
Turn on pcDuino3B, open a terminal and download the zigBee gateway code from the github. We also need to modify the '''deviceID''' and '''apikey''' with yours, run the code and add a ZigBee device.
  
Download source files
+
*Download source files
git clone https://github.com/YaoQ/zigbee.git
+
  git clone https://github.com/YaoQ/zigbee.git
  
Modify apikey and deviceID using the ones obtained above.
+
*Modify apikey and deviceID using the ones obtained above.
  
 
     cd zigbee           
 
     cd zigbee           

Revision as of 03:06, 29 June 2016

Introduction

118101035-new-1.jpg

118101035-new-2.jpg


Linker ZigBee gateway module is one kind of Linker modules which can communicate with up to 32 ZigBee node devices. It is powered by Marvell 88MZ100 ZigBee microcontroller SoC chip. This ZigBee offers advantages for many application scenarios, including lighting control, smart metering, home/building automation, remote controls and health care applications.


Features

  • Marvell MZ100 ZigBee SoC chip
    • A ZigBee compliant platform and IEEE802.15.4-2003/2006 transceiver
    • 32 bit ARM Cortex M3 microcontroller running at 32 or 64 MHz with Marvell’s proven peripheral IPs
    • On-chip DC-DC converter that can directly take input range from 2 volt to 3.6 volt
  • UART serial communication protocol
  • Linker port with 4 pins
  • 3.3V


Tutorial

we will show how to interface Deepcam ZigBee sensors to LinkSpriteIO using the Linker ZigBee gateway, and serves as a basic framework for home automation sensors application.


Prerequisites

pcDuino3B or pcDuino8 Uno X1

ZigBee Gateway module X1

Linker Button X1

Linker Base shield X1

ZigBee water leaking detector X1


For simplicity, this tutorial uses only one ZigBee sensor: ZigBee water leak detector.

Steps

1. Register and login www.linksprite.com

Go to www.linksprite.io, create an account if you don’t have one, and login, create a DIY device. The type is 00(Custom device type). The device name and device group can be arbitrary. The following summarizes:

  • Go to www.linksprite.io
  • Create an account and login
  • Create a device with type 00, and arbitrary device name and group name.

118101035-instruction-1.png


  • Obtain deviceID

118101035-instruction-2.png

  • Obtain apikey

118101035-instruction-3.png


2. Hardware connection

According to the following diagram to connect pcDuino3B, ZigBee gateway and other equipment.

118101035-instruction-4.png


3. Download the ZigBee gateway demo code

Turn on pcDuino3B, open a terminal and download the zigBee gateway code from the github. We also need to modify the deviceID and apikey with yours, run the code and add a ZigBee device.

  • Download source files
  git clone https://github.com/YaoQ/zigbee.git
  • Modify apikey and deviceID using the ones obtained above.
   cd zigbee           
   vim zigbee.py  

118101035-instruction-5.png