You are on page 1of 10

Manual AMBZ420

Version 1.0

AMBER wireless GmbH


Albin-Koebis-Strasse 18
51147 Cologne, Germany
Tel. +49 2203 98019 0
Fax +49 2203 98019 255
E-Mail info@amber-wireless.de
Internet http://www.amber-wireless.de

Table of Contents
1 Functional description .......................................................................................................... 3
2 Hardware ................................................................................................................................ 3
2.1 Pin out .............................................................................................................................. 3
2.2 Module configuration......................................................................................................... 4
2.3 Serial Interface ................................................................................................................. 4
2.3.1 UART ......................................................................................................................... 4
3 API commands ...................................................................................................................... 5
3.1 SYS-Interface ................................................................................................................... 5
3.2 CONF-Interface ................................................................................................................ 5
3.3 Simple API ........................................................................................................................ 5
3.4 AF/ZDO-Interface ............................................................................................................. 5
4 Sample application serial data transfer ............................................................................... 5
4.1 Configuring the coordinator............................................................................................... 6
4.1.1 Reset the module to default configuration .................................................................. 6
4.1.2 Implementing the coordinator ..................................................................................... 6
4.2 Configuring the router ....................................................................................................... 6
4.2.1 Reset the module to default configuration .................................................................. 6
4.2.2 Implementing the router ............................................................................................. 6
4.3 Getting the IEEE address of the router ............................................................................. 6
4.3.1 Getting the short address of the router ....................................................................... 6
4.4 Sending data .................................................................................................................... 7
4.4.1 Sending data to the router .......................................................................................... 7
4.4.2 Sending data to the coordinator ................................................................................. 7
5 Accessories ........................................................................................................................... 8
5.1 Demonstration board AMB-DB2 ........................................................................................ 8
5.2 AMBER Commander ........................................................................................................ 8
5.3 Packet sniffer .................................................................................................................... 9
6 Product status ....................................................................................................................... 9
7 References ............................................................................................................................. 9
8 Important notes ................................................................................................................... 10
8.1 Disclaimer of Liability ...................................................................................................... 10
8.2 Trademarks .................................................................................................................... 10
8.3 Limitation of Use ............................................................................................................. 10

AMBZ420 MA EN V1.0

Page 2 of 10

Released: 17/10/2011

1 Functional description
The AMBZ420 is a compact, powerful 2.4 GHz transceiver module. Together with the TI ZNP
stack, it allows simple integration of ZigBee connections into existing systems via a serial
interface. The module takes on all of the tasks of the ZigBee protocol and keeps the resources
of the host system free for other applications. The module is either controlled via a limited set of
commands (simple API for simple ZigBee data transfer) or a full set of commands (AF or ZDO
for the complete ZigBee-functionality).
The integrated 2.4 GHz transceiver offers full IEEE 802.15.4 compatibility as well as excellent
receiver sensitivity and robustness, thus building a reliable interface to the antenna. The prequalified module enables its user to create a ZigBee product within the shortest possible time to
market.

2 Hardware
2.1 Pin out
No.: Pad Name
1

ANTENNA

External antenna connection

GND

Ground

VCC

Positive supply voltage

P1.6

TX

P1.7

RX

P1.5

Reserved (do not connect)

GND

Ground

P2.2

Debug Clock

P2.1

Debug Data

10

P2.0

CFG1

11

P1.4

Reserved (do not connect)

12

P1.3

13

P1.2

CFG0

14

RSVD

Reserved (do not connect)

15

RSVD

Reserved (do not connect)

16

RSVD

Reserved (do not connect)

17

RSVD

Reserved (do not connect)

18

P1.1

Reserved (do not connect)

19

P1.0

GPIO3

20

P0.7

Reserved (do not connect)

21

P0.6

GPIO2

22

P0.5

23

P0.4

24

P0.3

25

P0.2

26

GND

Ground

27

/RST

Reset input

28

P0.1

GPIO1/AIN1

29

P0.0

GPIO0/AIN0

30

GND

Ground

U.FL ANTENNA

AMBZ420 MA EN V1.0

Function

U.FL antenna connection

Page 3 of 10

Released: 17/10/2011

Figure 1 AMBZ420 Pin out

2.2 Module configuration


The hardware configuration of the module is done by pulling up or down the configuration pin
CFG0:
This pin controls the use of the watch crystal
CFG0 = low 32 kHz watch crystal
CFG0 = high 32 kHz RC oscillator

2.3 Serial Interface


2.3.1 UART
Settings:
Baud rate: 115200 Baud
Flow control off
8-N-1 byte format
The UART interface requires the following pins to be connected to the host controller:
TX (Pin 4)

RX (host processor)
RX (Pin 5)

TX (host processor)

AMBZ420 MA EN V1.0

Page 4 of 10

Released: 17/10/2011

3 API commands
The module can be controlled with four different types of commands.
For a description of the command set, please refer to [1].

3.1 SYS-Interface
The SYS interface can be used to access the hardware of the CC2530 including the ADC
(analog-to-digital converter), NV memory, GPIO pins and the hardware random number
generator. Also a software reset is possible.

3.2 CONF-Interface
With the Configuration interface various parameters of the CC2530 device can be configured
by the host processor.

3.3 Simple API


The Simple API interface is a reduced instruction set to easily create a ZigBee compliant
networked application.
The Simple API interfaces should be used in applications with only one registered endpoint. For
applications that support multiple endpoints use the AF interface.

3.4 AF/ZDO-Interface
The AF (Application Framework) interface offers the complete set of ZigBee commands to
create full functional ZigBee compliant applications.
The ZDO (ZigBee Device Object) interface offers ZigBee management functions.

4 Sample application serial data transfer


The following commands can be used to implement a serial data transfer between a
coordinator and a router. Please use the commands in the order they appear in the next
sections.
So for this example you need two modules connected to a PC (possibly mounted on an AMBDB2) and for each module one running Amber Commander (ACM, see 5.2) program on a PC.
You can run two ACM on one PC for testing or transfer data between two PCs.

or

AMBZ420 MA EN V1.0

Page 5 of 10

Released: 17/10/2011

Data send from the host system to the AMBZ420 is displayed in green, received data from
AMBZ420 is displayed in red.

4.1 Configuring the coordinator


4.1.1 Reset the module to default configuration
SYS_RESET_REQ
0xFE 0x01 0x41 0x00 0x00 0x40
0xFE 0x06 0x41 0x80 0x01 0x02 0x00 0x02 0x05 0x00 0xC3

ZB_WRITE_CONFIGURATION

0xFE 0x03 0x26 0x05 0x03 0x01 0x03 0x21


0xFE 0x01 0x66 0x05 0x00 0x62

SYS_RESET_REQ

0xFE 0x01 0x41 0x00 0x00 0x40


0xFE 0x06 0x41 0x80 0x01 0x02 0x00 0x02 0x05 0x00 0xC3

4.1.2 Implementing the coordinator


ZB_WRITE_CONFIGURATION 0xFE 0x03 0x26 0x05 0x87 0x01 0x00 0xA6

Coordinator

0xFE 0x01 0x66 0x05 0x00 0x62

ZB_APP_REGISTER

0xFE 0x15 0x26 0x0A 0x01 0xFF 0x1F 0x01 0x00 0x01 0x00 0x04
0x01 0x00 0x02 0x00 0x05 0x00 0x06 0x00 0x02 0x03 0x00 0x04 0x00 0xD9
0xFE 0x01 0x66 0x0A 0x00 0x6D

ZB_START_REQUEST

0xFE 0x00 0x26 0x00 0x26


0xFE 0x00 0x66 0x00 0x66
ZB_START_REQUEST_RESPONSE
0xFE 0x01 0x45 0xC0 0x08 0x8C starting as Zigbee Coordinator
0xFE 0x01 0x45 0xC0 0x09 0x8D started as Zigbee Coordinator
0xFE 0x01 0x46 0x80 0x00 0xC7 ZB_START_CONFIRM

4.2 Configuring the router


4.2.1 Reset the module to default configuration
SYS_RESET_REQ
0xFE 0x01 0x41 0x00 0x00 0x40
0xFE 0x06 0x41 0x80 0x01 0x02 0x00 0x02 0x05 0x00 0xC3

ZB_WRITE_CONFIGURATION

0xFE 0x03 0x26 0x05 0x03 0x01 0x03 0x21


0xFE 0x01 0x66 0x05 0x00 0x62

SYS_RESET_REQ

0xFE 0x01 0x41 0x00 0x00 0x40


0xFE 0x06 0x41 0x80 0x01 0x02 0x00 0x02 0x05 0x00 0xC3

4.2.2 Implementing the router


ZB_WRITE_CONFIGURATION

0xFE 0x03 0x26 0x05 0x87 0x01 0x01 0xA7


0xFE 0x01 0x66 0x05 0x00 0x62

Router

ZB_APP_REGISTER

0xFE 0x15 0x26 0x0A 0x01 0xFF 0x1F 0x01 0x00 0x01 0x00 0x04
0x01 0x00 0x02 0x00 0x05 0x00 0x06 0x00 0x02 0x03 0x00 0x04 0x00 0xD9
0xFE 0x01 0x66 0x0A 0x00 0x6D

ZB_START_REQUEST

0xFE 0x00 0x26 0x00 0x26


0xFE 0x00 0x66 0x00 0x66
0xFE 0x01 0x45 0xC0 0x07 0x83

ZB_START_REQUEST_RESPONSE
Device joined, authenticated
and is a router
0xFE 0x01 0x46 0x80 0x00 0xC7 ZB_START_CONFIRM

4.3 Getting the IEEE address of the router


ZB_GET_DEVICE_INFOIEEE ADDRESS
0xFE 0x01 0x26 0x06 0x01 0x20
0xFE 0x09 0x66 0x06 0x01 0x15 0x43 0x7F 0x01 0x00 0x4B 0x12
0x00 0x19

4.3.1 Getting the short address of the router


If the coordinator knows the IEEE address of the router it can ask the router for the short
address for further communication.
AMBZ420 MA EN V1.0

Page 6 of 10

Released: 17/10/2011

ZB_FIND_DEVICE

0xFE 0x08 0x26 0x07 0x15 0x43 0x7F 0x01 0x00 0x4B 0x12 0x00
0x58
0xFE 0x00 0x66 0x07 0x61
0xFE 0x0B 0x46 0x85 0x01 0xCF 0xE1 0x15 0x43 0x7F 0x01 0x00 0x4B 0x12 0x00
0x96

4.4 Sending data


4.4.1 Sending data to the router
Coordinator:
ZB_SEND_DATA_REQUEST
0xFE 0x0B 0x26 0x03 0xCF 0xE1 0x01 0x00 0x01 0x01 0x04
0x0C 0x48 0x65 0x6C 0x6F 0x20 0x57 0x6F 0x72 0x6C 0x64 0x7C
Send Hello World! to short address 0xCF 0xE1
0xFE 0x00 0x66 0x03 0x65
0xFE 0x02 0x46 0x83 0x01 0x00 0xC6

Router:
ZB_RECEIVE_DATA_INDICATION
0xFE 0x12 0x46 0x87 0x00 0x00 0x01 0x00 0x0C 0x00 0x48 0x65 0x6C 0x6F 0x20
0x57 0x6F 0x72 0x6C 0x64 0x21 0x48 0xFB
Received Hello World! from 0x00 0x00 (coordinator)

4.4.2 Sending data to the coordinator


Router:
ZB_SEND_DATA_REQUEST
0xFE 0x0B 0x26 0x03 0x00 0x00 0x01 0x00 0x01 0x01 0x04
0x0C 0x48 0x65 0x6C 0x6F 0x20 0x57 0x6F 0x72 0x6C 0x64 0x21
Send Hello World! to short address 0x00 0x00 (coordinator)
0xFE 0x00 0x66 0x03 0x65
0xFE 0x02 0x46 0x83 0x01 0x00 0xCB

Coordinator:
ZB_RECEIVE_DATA_INDICATION
FE 12 46 87 CF E1 01 00 0C 00 48 65 6C 6F 20 57 6F 72 6C 64 48 80 74
0xFE 0x12 0x46 0x87 0xCF 0xE1 0x01 0x00 0x0C 0x00 0x48 0x65 0x6C 0x6F 0x20
0x57 0x6F 0x72 0x6C 0x64 0x48 0x80 0x74
Received Hello World! from 0xCF 0xE1 (router)

AMBZ420 MA EN V1.0

Page 7 of 10

Released: 17/10/2011

5 Accessories
5.1 Demonstration board AMB-DB2
For faster development theres a Development-Board available with access to all pins of the
AMBZ420. The board is powered either over USB or over DC jack with 5VDC. To communicate
with the module you can use the UART interface via the FTDI-USB to UART Bridge. Direct
access to USB-interface is also possible if USB is supported by the module mounted on the
board.

Figure 2 AMB-DB2

5.2 AMBER Commander


This PC application is a special terminal program including a command set
(AMBZ4x0_Quickstart.acs) for the Sample application serial data transfer. The commands can
easily be modified due to the automatic checksum calculation after clicking on the button
Save. The software can be downloaded using the link given in [3].

Figure 3 AMBER Commander

AMBZ420 MA EN V1.0

Page 8 of 10

Released: 17/10/2011

5.3 Packet sniffer


In combination with the PC software SmartRF Packet Sniffer [4] and CC-Debugger from
Texas Instruments you can use the AMB-DB2 as a ZigBee packet sniffer to visualize the
ZigBee over the air data transfer.

Figure 4 SmartRF Packet Sniffer

6 Product status
ENGINEERING SAMPLE
This product is considered to be an evaluation module / development tool and is
designed for engineering prototyping only!

7 References
[1] CC2530ZNP Interface Specification.pdf, SWRA312, Texas Instruments, included in
SWRC126.zip, http://focus.ti.com/docs/toolsw/folders/print/z-stack.html
[2] Tutorial on how to implement the SPI/UART interface on a host controller:
http://processors.wiki.ti.com/index.php/Tutorial_on_the_Examples
[3] Amber Commander download: http://www.amber-wireless.de/files/acm.zip
[4] SmartRF Packet Sniffer download: www.ti.com/packetsniffer

AMBZ420 MA EN V1.0

Page 9 of 10

Released: 17/10/2011

8 Important notes
8.1 Disclaimer of Liability
AMBER wireless GmbH believes the information contained herein is correct and accurate at the
time of this printing. However, AMBER wireless GmbH reserves the right to change the
technical specifications or functions of its products, or to discontinue the manufacture of any of
its products or to discontinue the support of any of its products, without any written
announcement and urges its customers to ensure, that the information at their disposal is valid.
AMBER wireless GmbH does not assume any responsibility for the use of the described
products, neither does it convey any license under its patent rights, or its other intellectual
property rights, or any third party rights. It is the customer's responsibility to ensure that his
system or his device, in which AMBER wireless products are integrated, complies with all
applicable regulations.

8.2 Trademarks

AMBER wireless is a registered trademark owned by AMBER wireless GmbH

Windows is a registered trademark of the Microsoft Corporation

All other trademarks, registered trademarks and product names are the sole property of their
respective owners.

8.3 Limitation of Use


AMBER wireless products are not authorised for use in life support appliances, devices, or
other systems where malfunction can reasonably be expected to result in significant personal
injury to the user, or as a critical component in any life support device or system whose failure
to perform can be reasonably expected to cause the failure of the life support device or system,
or to affect its safety or effectiveness. AMBER wireless GmbH customers using or selling these
products for use in such applications do so at their own risk and agree to fully indemnify
AMBER wireless GmbH for any damages resulting from any improper use or sale.
Use of AMBER wireless products commits the user to the terms and conditions set out herein.
Copyright 2011, AMBER wireless GmbH. All rights reserved.

AMBER wireless GmbH


Albin-Koebis-Strasse 18
51147 Cologne, Germany
Tel. +49 2203 98019 0
Fax +49 2203 98019 255
E-Mail info@amber-wireless.de
Internet http://www.amber-wireless.de
AMBZ420 MA EN V1.0

Page 10 of 10

Released: 17/10/2011

You might also like