Seeed Technology MeshBee Series User manual

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
1
!
MeshBee®
Open Source ZigBee RF Module
CookBook
©2014&Seeed&Technology&Inc.&
www.seeedstudio.com!

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
2
!
!
&
&
&
&
&
&
&
&
&
&
Doc Version
Date
Author
Remark
v0.1!
2014/05/07!
Oliver!
Created!
v0.2!
2014/06/18!
Oliver!
!
v0.3!
2016/1/21!
Jack!
Modified!the!example!according!to!the!
firmware!v1004!

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
3
Table of contents
!
!
&
&
&
&
&
Table&of&contents!
Chapter 1: Getting Started ..............................................................................................4
1.1 Introduction......................................................................................................4
1.2 Installing IDE....................................................................................................5
1.3 Setting up the MeshBee ....................................................................................8
1.4 Upgrade firmware ...........................................................................................10
1.5 Setting up the network ....................................................................................11
Chapter 2: Example of Mode Operation.......................................................................13
2.1 AT mode ..........................................................................................................13
Additional Documentation............................................................................14
2.2 API Mode........................................................................................................15
Remote led blink example ............................................................................15
Sending Data packets example .....................................................................18
2.3 MCU Mode .....................................................................................................21
Mechanism....................................................................................................21
Additional documentation.............................................................................23
Blink example in AUPS................................................................................23
2.4 Data Mode.......................................................................................................24
Chat example ................................................................................................24
Chapter 3: Handle a sleep node ....................................................................................26
3.1 Typical application scenario............................................................................26
3.2 implementation ...............................................................................................26
3.3 Configuring Sleep ...........................................................................................28
Sleep example in AUPS................................................................................28
Chapter 4: Make an RPC ..............................................................................................32
4.1 What's a micro-RPC?......................................................................................32
4.2 What kind of system can make an RPC?........................................................32
4.3 Why micro-RPC?............................................................................................32
4.2 How to deploy your own PRC method? .........................................................32

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
4
Introduction
!
!
Chapter&1:&Getting&Started!
&
&
&
1.1 Introduction!
&
MeshBee® is a 2.4 GHz wireless zigbee RF module. It use microchip JN516x from NXP that
enables several different flvors of standards-based zigbee mesh networking. Our released firmware
fully supports Zigbee Pro stack. You can use MeshBee® in three different ways:
Master Mode: the factory firmware warps the complicated Zigbee stack operation into a few
easy to use serial commands(AT commands).
Slave Mode: for a complex mesh network, a host application can send API frames to the
MeshBee® that contain short address and payload information instead of using AT command.
Transparent Mode: MeshBee® can also work as a transparent serial communication node that
can be part of a simple point-to-point connection. When operating in this mode, the modules act as a
serial line replacement - all UART data received through UART1 is directly send to a specified
remote node.

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
5
Installing IDE
!
!
1.2 Installing&IDE!
&
NXP provides full-scale development environment, tools and documents. The development
environment consists of the SDK toolchain and the ZigBee stack SDK. Please visit NXP's website to
get some detailed description: http://www.nxp.com/techzones/wireless-connectivity/smart-energy.html
To create the development environment, perform these steps:
1) Install JN-SW-4041 SDK Toolchain to default disk: C:/
2) Install JN-SW-4064 ZigBee Smart Energy SDK to default disk: C:/
3) Install JN-SW-4067-JN516x ZigBee Home Automation SDK to default disk C:/
Note: MeshBee’s factory firmware is developed on top of the
smart energy profile.

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
6
Installing IDE
!
!
When finished the installing, you can test the tool chain if you are not sure whether it is
successful or not. Perform these steps:
1) Clone the latest firmware source code from github.
2) Copy the source code folder to C:/Jennic/Application/.
3) Open Jennic Bash Shell.
4) Type these shell commands:
cd MeshBeeMasterBranch
cd build
./build.sh
Note: The developing toolchain supports windows only. For
Linux and Mac users, a windows VM is recommended.
Note: execute ./build.sh or ./build_xxx_clean.sh
+ ./build_xxx.sh. Make sure the “clean” step was taken.

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
7
Installing IDE
!
!
If three binary files are generated successfully, congratulations, you have finished allthe
preparation work.
Open eclipse IDE and import the project, you can catch a glimpse of the firmware:
To edit the .oscfgdiag file and .zpscfg file, you should install the eclipse plugins according to the guide in
section 6.2.2 in <SDK Installation and User Guide.pdf>.

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
8
Setting up the MeshBee
!
!
1.3 Setting&up&the&MeshBee!
&
&
&
&
To assemble your experimental environment, perform the following steps:
1) Step1: Insert MeshBee into the socket of UartBeeV5;
2) Step2: Connecting UartBeeV5 with PC by USB port;

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
9
Setting up the MeshBee
!
!
Note: Switch the SW to “3V3” and SW3 to “Prog” position at
first.

©2014&Seeed&Technology&Inc.!
MB_2014_D02!
10
Upgrade firmware
!
!
1.4 Upgrade&firmware!
&
A wireless network comprises a set of nodes that can communicate with each other
by means of radio transmissions according to a set of routing rules (for passing messages between
nodes). ZigBee network includes three types of node:
1) Coordinator: This is the first node to be started and is responsible for forming the network by
allowing other node to join the network through it.
2) Router: This is the node with routing capability, and is also able to send/receive data.
3) End device: Only capability to send/receive data.
Different device role should burn different image. Burn the latest firmware using JN51xx Flash
Programmer. Four steps are required as below:
Table of contents
Popular Control Unit manuals by other brands

Festo
Festo Compact Performance CP-FB6-E Brief description

Elo TouchSystems
Elo TouchSystems DMS-SA19P-EXTME Quick installation guide

JS Automation
JS Automation MPC3034A user manual

JAUDT
JAUDT SW GII 6406 Series Translation of the original operating instructions

Spektrum
Spektrum Air Module System manual

BOC Edwards
BOC Edwards Q Series instruction manual

KHADAS
KHADAS BT Magic quick start

Etherma
Etherma eNEXHO-IL Assembly and operating instructions

PMFoundations
PMFoundations Attenuverter Assembly guide

GEA
GEA VARIVENT Operating instruction

Walther Systemtechnik
Walther Systemtechnik VMS-05 Assembly instructions

Altronix
Altronix LINQ8PD Installation and programming manual





