Posts Tagged ‘ZigBee’

Send Remote AT Command in API Mode with ZigBee Operator

Thursday, October 17th, 2013

ZigBee Operator is a professional tool to learn, research, develop and test Digi’s ZigBee/XBee module. It implements both API encoder and decoder for Digi’s XBee & ZigBee Mesh and 802.15.4. Both AT and API commands are supported.

It’s so easy to send AT commands in API mode with ZigBee Operator comparing with X-CTU software. You don’t need input the long command packet and calculate the checksum. You only input the short command text and parameter according to the XBee Command Reference Tables. ZigBee Operator makes it so easy to configure, develop or test for XBee, ZigBee, 802.15.4 modules.

Download ZigBee Operator

Here are the sample steps for how to send Remote AT command for DIO4 Configuration:

1. Download and install ZigBee Operator.

2. Connect two XBee 802.15.4 modules with your computer by ZigBee to Serial Port adapters.

XBee 802.15.4 module 1     XBee 802.15.4 module 2

3. Run two ZigBee Operator applications, open the COM Port connected with above two XBee modules separately, and select the right baud rate for them. Here Module 1 is connected with COM 7, and Module 2 is connected with COM 8.

ZigBee Operator -XBee Module 1   ZigBee Operator -XBee Module 2

4. On both of ZigBee Operator (M1 and M2), click “AT Terminal” button to show Terminal Window. Type the AT Commands to make sure it’s in API mode.

ZigBee Operator - AT Ternimal - AT Command

5.  Click “Device Properties” icon on ZigBee Operator-M2 to show Device Properties dialog. You can read the address of Module 2 directly. The address of Module 1 can also be read like this on ZigBee Operator (M1). Here, we will use Module 2 to remote control Module 1, the destination address already be selected from the Device Data Base form on Device Properties dialog below.

ZigBee Operator - Device Protperties

Module 1 address: Module 2 address:
SH = 0013A200 SH = 0013A200
SL = 4033DD15 SL = 4092F15C

6.  On ZigBee Operator – M1, click “802.15.4” button  to show Quick Send – XBee & XBee –PRO 802.15.4 panel, and select AT Command for command type.

ZigBee Operator - 802.15.4 - AT Command

7. On ZigBee Operator – M2, click “802.15.4” button  to show Quick Send – XBee & XBee –PRO 802.15.4 panel, and select  Remote AT Command for command type. Click Edit button to input or select address of remote XBee module (M1).

ZigBee Operator - 802.15.4 - Remote AT Command

8. “D4” is the AT Command for DIO4 Configuration.  On ZigBee Operator – M1, input D4 for the command and click Send button. You will see all Send and Receive information in Log Data panel.  Here, the current DIO4 parameter of Module 1 is 5, that means DIO 4 digital output is high. At this moment, the LED5 on the adapter of Module 1 is off.

ZigBee Operator - 802.15.4 - I/O AT Command

LED5 off

9. On ZigBee Operator – M2,  input D4 command with parameter 4 to set DIO4 digital output of Module 1 to low remotely.

ZigBee Operator - 802.15.4 - Remote  I/O AT Command

The Remote AT Command is sent successfully. However, the LED5 on adapter of Module 1 has no any change.  After sending AC command you will see the LED5 is on now.

ZigBee Operator - 802.15.4 - Remote  AC AT Command

LED5 on

10. On ZigBee Operator – M1, send the D4 command again to make sure the current parameter of DIO4 has been changed to 4 remotely.

ZigBee Operator - 802.15.4 - D4 AT Command

Following above steps, you can send other remote AT commands in API mode with ZigBee Operator.

Back to ZigBee Operator homepage

Send I/O AT Command in API Mode with ZigBee Operator

Thursday, October 17th, 2013

ZigBee Operator is a professional tool to learn, research, develop and test Digi’s ZigBee/XBee module. It implements both API encoder and decoder for Digi’s XBee & ZigBee Mesh and 802.15.4. Both AT and API commands are supported.

Download ZigBee Operator

Here are the sample steps for how to send I/O AT command for DIO4 Configuration:

1. Download and install ZigBee Operator.

2. Connect ZigBee/XBee module with computer by ZigBee to Serial Port adapter.

XBee Module

3. Run ZigBee Operator, open the COM Port connected with ZigBee/XBee module, and select the right baud rate.

ZigBee Operator - Open Connection

4. Click “AT Terminal” button to show Terminal Window. Type the AT Commands to make sure it’s in API mode.

ZigBee Operator - AT Ternimal

5. Click “802.15.4” button  to show Quick Send – XBee & XBee –PRO 802.15.4 panel, and select AT Command for command type.

ZigBee Operator - 802.15.4 panel

6. “D4” is the AT Command for DIO4 Configuration. Just input D4 for the command and click Send button. You will see all Send and Receive information in Log Data panel.  Here, the current parameter for DIO4 is 5, that means digital output is high. At this moment, the LED5 of the adapter is off.

ZigBee Operator - 802.15.4 - AT Command

DIO4 High - LED5 off

7. DIO4 digital output can be set to low by sending D4 command with parameter 4. Now, the LED5 is on.

ZigBee Operator - 802.15.4 - I/O AT Command

DIO4 Low - LED5 on

8. Empty the parameter, send the D4 command again to make sure the current parameter of DIO4 has been changed to 4.

ZigBee Operator - 802.15.4 - I/O Command

Following above steps, you can send other AT commands.

It’s so easy to send AT commands in API mode with ZigBee Operator comparing with X-CTU software. You don’t need input the long command packet and calculate the checksum. You only input the short command text and parameter according to the XBee Command Reference Tables. ZigBee Operator makes it so easy to configure, develop or test for XBee, ZigBee, 802.15.4 modules.

Back to ZigBee Operator homepage

About ZigBee

Thursday, July 25th, 2013

What is ZigBee

  • ZigBee is a specification for a suite of high level communication protocols using small, low-power digital radios based on an IEEE 802 standard for personal area networks (PAN).
  • ZigBee is a cost- and energy-efficient wireless network standard.  It is targeted at radio-frequency (RF) applications It employs mesh network topology, allowing it provide high reliability and a reasonable range.
  • ZigBee is the global wireless language connecting dramatically different devices to work together and enhance everyday life.

ZigBee Use Areas

  • Home & Building: air-conditioning temperature control system, automatic control of lighting, curtains, automatic control, gas measurement control, remote control of appliances, etc.;
  • Energy: industrial Control and agricultural control, various monitoring, sensor automatic control;
  • Health: patient monitoring, fitness monitoring, medical sensors, and other emergency pager.
  • Telecom: PC and peripherals;

Basic Concept

Wireless Serial Port: ZigBee can be thought as wireless serial port. At least two ZigBee modules are needed to make them communicate with each other. ZigBee modules are connected with computer through serial port. Although most used adapters have USB interface, computer still treats them as serial port.

Send data to specific address: Each ZigBee module has an address. It also talks to a specific destination address. The destination address can be the broadcast address. That is all modules in same network can receive the data.

Grouped by PAN ID: ZigBee network can be simple as just include two modules. It is also possible that the network contains a coordinator and many routers and end devices. The most important thing is that they must share the same PAN ID.

AT and API: AT mode is transparent. Raw data is sent and received. In API mode, data will be wrapped in packages with API header and followed by a checksum. AT mode is easy to use, while API mode has more control for transfer.

Back to ZigBee Operator homepage

AO Command

Sunday, December 5th, 2010

AO Command  is for “API Options”. It query/configures options for API.

0 – Default receive API indicators enabled
1 – Explicit Rx data indicator API frame enabled (0×91)
3 – enable ZDO passthrough of ZDO requests to the UART which are not supported by the stack, as well as Simple_Desc_req, Active_EP_req, and Match_Desc_req.

To send AO command in ZigBee Operator, switch to XBee/XBee Pro ZB ZiBee Profile.

image

Input “AO” in command field and click “Send” button. It will query the value of AO.

Here are message in Log window.

Send:(21:59:47) 7E 00 04 08 01 41 4F 66

Data Parsed: 7E 00 04 08 01 41 4F 66
AT Command
Frame ID: 0×01
Command: AO
Para(Hex):
Para(Text):

Rec:(21:59:47)7E 00 06 88 01 41 4F 00 00 E6
Data Parsed: 7E 00 06 88 01 41 4F 00 00 E6
AT Command Response
Frame ID: 1
Command: AO
Status: 0 = OK
Para: 00 

To change the value of “AO”, input the value in “Parameters” field. The value are in hex.

image

Send:(22:00:55) 7E 00 05 08 01 41 4F 03 63

Data Parsed: 7E 00 05 08 01 41 4F 03 63
AT Command
Frame ID: 0×01
Command: AO
Para(Hex):03
Para(Text):

Rec:(22:00:55)7E 00 05 88 01 41 4F 00 E6
Data Parsed: 7E 00 05 88 01 41 4F 00 E6
AT Command Response
Frame ID: 1
Command: AO
Status: 0 = OK
Para: 

Tip

You can send a “WR” command to write the value to flash memory.

How to Run AT command in API mode

Sunday, December 5th, 2010

In ZigBee Operator, it is very easy to run AT command in API mode.

Here are the examples for run get firmware AT command “VR”.

In XBee/XBee-Pro ZB profile.

Steps:

Switch to XBee/XBee Pro ZB Profile.

Input ASCII characters “VR” in command field and click button “Send” will send the command.

Here is screenshot of the quick send panel.

image

Here is the message in log window.

Send:(21:25:54) 7E 00 04 08 01 56 52 4E

Data Parsed: 7E 00 04 08 01 56 52 4E
AT Command
Frame ID: 0×01
Command: VR
Para(Hex):
Para(Text):

Rec:(21:25:54)7E 00 07 88 01 56 52 00 21 70 3D
Data Parsed: 7E 00 07 88 01 56 52 00 21 70 3D
AT Command Response
Frame ID: 1
Command: VR
Status: 0 = OK
Para: 21 70

ZigBee Operator will send a data frame to module. It starts with “7E” and “08” is the flag for AT command. The “0×56 0×52” are ASCII code for character “VR”. The command are not case sensitive. Both “VR” and “vr” works.

The module will send a “AT Command Response” data frame to ZigBee Operator. The last line “Para” is the command result. In this sample, it is “21 70”, means the firmware is 2170, the firmware for API Zigbee coordinator.

To run a command with a parameters, like “SN”command, which  sets the number of sleep periods to not assert the On/Sleep pin on wakeup if no RF data is waiting for the end device. The default value for this command is 1. Send “SN” command without any parameter like example above will return the value.

Here are the message in Log window.

Send:(21:39:51) 7E 00 04 08 01 53 4E 55

Data Parsed: 7E 00 04 08 01 53 4E 55
AT Command
Frame ID: 0×01
Command: SN
Para(Hex):
Para(Text):

Rec:(21:39:51)7E 00 07 88 01 53 4E 00 00 01 D4
Data Parsed: 7E 00 07 88 01 53 4E 00 00 01 D4
AT Command Response
Frame ID: 1
Command: SN
Status: 0 = OK
Para: 00 01 

The value of SN is 1.

To set a value for SN, input the value in Parameters field. The value are in hex. Input “20” in parameters will set the value to 20.

image

Here are the message in Log window.

Send:(21:46:06) 7E 00 05 08 01 53 4E 20 35

Data Parsed: 7E 00 05 08 01 53 4E 20 35
AT Command
Frame ID: 0×01
Command: SN
Para(Hex):20
Para(Text):

Rec:(21:46:06)7E 00 05 88 01 53 4E 00 D5
Data Parsed: 7E 00 05 88 01 53 4E 00 D5
AT Command Response
Frame ID: 1
Command: SN
Status: 0 = OK
Para: 

It showed that command are run success.

Run “SN” command and leave parameters field blank will query the value of SN again.

Here are the message in Log window.

Send:(21:48:34) 7E 00 04 08 01 53 4E 55

Data Parsed: 7E 00 04 08 01 53 4E 55
AT Command
Frame ID: 0×01
Command: SN
Para(Hex):
Para(Text):

Rec:(21:48:34)7E 00 07 88 01 53 4E 00 00 20 B5
Data Parsed: 7E 00 07 88 01 53 4E 00 00 20 B5
AT Command Response
Frame ID: 1
Command: SN
Status: 0 = OK
Para: 00 20 

The value of SN is 20 now.

It is same for 802.15.4 devices, just switch to 802.15.4 profile and send command there.

image

Bee Explorer is released

Thursday, December 2nd, 2010

Bee Explorer is a FREE tool to explorer all available ZigBee nodes in search range.

Features:

  • Support both AT and API model
  • Support both S1 and S2 series
  • List the node in list mode, tree mode and diagram mode

Bee Explorer Screenshot                           Bee Explorer Screenshot  

Product Page: http://www.zigbeeoperator.com
Download Link: http://www.zigbeeoperator.com/download/BeeExplorer.zip