Home
XBee™ Series 2 OEM RF Modules
Contents
1. MaxStream 2007 Digi International Inc 72 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide Adapters The development kit includes several adapters that support the following functions Performing Range Tests Testing Cables Connecting to other RS 232 DCE and DTE nodes Connecting to terminal blocks or RJ 45 for RS 485 422 nodes NULL Modem Adapter male to male Part Number JD2D2 CDN A Black DB 9 M M The male to male NULL modem adapter is used to connect two DCE nodes A DCE node connects with a straight through cable to the male serial port of a computer DTE Figure B 07 Male NULL modem adapter and pinouts Top View P1 Pinouts P2 P1 P2 pin 1 6 pin 1 6 pin 4 pin 4 male pin 2 pin 2 pin 3 pin 3 pin 9 pin 6 pin 5 pin 5 pin 5 pin 1 pin 7 pin 7 pin 8 pin 8 Figure B 08 Example of a MaxStream Radio Modem DCE node connecting to another DCE node male to male 3 RS 232 cable EL NULL modem adapter Computer DTE 2 Module Assemblies DCE Target Device DCE NULL Modem Adapter female to female Part Number JD3D3 CDN A Gray DB 9 F F The female to female NULL modem adapter is used to verify serial cabling is functioning properly To test cables insert the female to female NULL modem adapter in place of a pair of module assemblies RS 232 interface board XTend Module and test the connection without the modules in the connection Figure B 09 Female NULL modem adap
2. 866 765 9885 toll free U S A amp Canada 801 765 9885 Worldwide Live Chat www maxstream net E Mail rf xperts maxstream net MaxStream office hours are 8 00 am 5 00 pm U S Mountain Standard Time 2007 Digi International Inc 78
3. 1200 A V reading of Ox8FE CRE 2302 decimal represents 2700mV or 2 70V 1 Node types that support the command C Coordinator Router E End Device AT Command Options 6 08 AT Command Options Commands Name and Description Ea Parameter Range Default Command Mode Timeout Set R ead the period of inactivity no valid commands received after which the RF module automatically exits AT Command Mode and returns CRE 2 0x028F x 100 ms 0x64 100d to Idle Mode la CN Exit Command Mode Explicitly exit the module from AT Command Mode CRE Guard Times Set required period of silence before and after the Command Sequence GT Characters ofthe AT Command Mode Sequence GT 4 CC GT The period of silence CRE is used to prevent inadvertent entrance into AT Command Mode Command Sequence Character S et R ead the ASCII character value to be used between Guard Times of the AT Command Mode Sequence GT 4 CC GT The AT 0x28 Command Mode Sequence enters the RF module into AT Command Mode CRE 0 OxFF ASCII CC command is only applicable when using modules that contain the following AT Command firmware versions 8 0xx Coordinator 8 2xx Router 8 4xx End Device 1 Node types that support the command C Coordinator R Router E End Device 2 Command supported by modules using AT Command firmware only Sleep Commands Table 6 09 Sleep Commands AT Em rode Command
4. 2007 07 019 Chapter 4 RF Module Configuration by setting the BI command to a valid index in AT firmware or by using the Binding Table API Command frame in the API firmware The binding table entries are organized as follows Table 4 04 Binding Table Index Name Access 0 Coordinator Binding Read Only 1 Tx Aggregation Binding Read Only 2 Tx Explicit Binding Read Write 34 Reserved Read Only 5 6 Command Binding Read Only 7 10 Received Data Bindings Read Only 11 12 User Bindings Read Write Coordinator Binding The coordinator binding contains the 64 bit address of the coordinator This table entry is populated when the device joins the network Tx Aggregation Binding This binding table entry contains the 64 bit address of the aggregate sink node if one exists Data can be sent to the aggregate node by addressing this index in the binding table Tx Explicit Binding The Tx Explicit binding table entry contains the destination address and endpoint information from the last explicit transmission that was issued This entry is modified whenever explicit addressing is used in either the AT or API firmware as described in the XBee Series 2 Addressing section Command Binding If a remote command request is received the command binding entry stores information from the device that initiated the command For example if the ND or DN command is issued this binding table entry would contain
5. 6 AT Command Frames Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x08 cmdData Frame ID Byte 5 AT Command Bytes 6 7 Parameter Value Byte s 8 n Identifies the UART data frame for the host to correlate with a subsequent ACK acknowledgement If set to 0 no response is sent Command Name Two ASCII characters that identify the AT Command If present indicates the requested parameter value to set the given register If no characters present register is queried Figure 7 7 Example API frames when reading the NJ parameter value of the module Byte 1 Bytes 2 3 Byte 4 Byte 5 Bytes 6 7 Byte 8 Ox7E 0x00 0x04 0x08 0x52 R Ox4E N Ox4A J 0x0D Start Delimiter Length API Identifier Frame ID AT Command Checksum Length Bytes API Identifier Frame ID AT Command R value was arbitrarily selected Figure 7 8 Example API frames when modifying the NJ parameter value of the module Byte 1 Bytes 2 3 Byte 4 Byte 5 Bytes 6 7 Bytes 8 Byte 9 Ox7E 0x00 0x05 0x08 Ox4D M Ox4E Ox4A J 0x40 0 2 Start Delimiter Length API Identifier Frame ID AT Command Parameter Value Checksum Length Bytes API Identifier Frame ID AT Comma
6. B O1d RSSI LEDs RSSI LEDs indicate the amount of fade margin present in an active wireless link Fade margin is defined as the difference between the incoming signal strength and the module s receiver sensitivity 3LEDsON Very Strong Signal gt 30 dB fade margin 2LEDsON Strong Signal gt 20 dB fade margin 1 LED ON Moderate Signal gt 10 dB fade margin 0 LED ON Weak Signal 10 dB fade margin B O1e Power Connector 5 14 VDC power connector B 02a DIP Switch Figure B 02 Back View DIP Switch functions are not supported in this release Future down loadable firmware versions will support DIP Switch configurations B 02a DIP Switch 2007 Digi International Inc 69 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide RS 232 Pin Signals Figure B 03 Pins used on the female RS 232 DB 9 Serial Connector Pin3 TXD Pin4 Pin 5 DTR GND Pin 9 RI Pin 8 Pin2 RXD Pin1 DCD Pin 6 Table D 02 Pin Assignments and Implementations 2 RXD 3 TXD 4 DTR 5 GND 6 DSR 7 RTS CMD CTS 9 RI Data Carrier Detect Receive Data Transmit Data Data Terminal Ready Ground Signal Data Set Ready Request to Send Command Mode Clear to S end Ring Indicator Connected to DSR pin6 Serial data exiting the module assembly to host Serial data entering into the module assembly from host Can enable Pow
7. Data Checksum Byte 1 Bytes 2 3 Bytes 4 n Byte n 1 Ox7E MSB LSB API specific Structure 1 Byte Characters Escaped If Needed MSB Most Significant Byte LSB Least Significant Byte Escape characters When sending or receiving a UART data frame specific data values must be escaped flagged so they do not interfere with the data frame sequencing To escape an interfering data byte insert Ox7D and follow it with the byte to be escaped XOR d with 0x20 2007 Digi International Inc XBee Series 2 ZigBee RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Data bytes that need to be escaped Ox7E Frame Delimiter 0 7 Escape 0x11 XON 0x13 XOFF Example Raw UART Data Frame before escaping interfering bytes Ox7E 0x00 0x02 0x23 0x11 OxCB 0x11 needs to be escaped which results in the following frame Ox7E 0x00 0x02 0x23 0x7D 0x31 OxCB Note In the above example the length of the raw data excluding the checksum is 0x0002 and the checksum of the non escaped data excluding frame delimiter and length is calculated as OxFF 0x23 0x11 OxFF 0x34 OxCB Checksum To test data integrity a checksum is calculated and verified on non escaped data To calculate Not including frame delimiters and length add all bytes keeping only the lowest 8 bits of the result and subtract the result from OxFF To verify Add all byt
8. Description 1 Command Type Parameter Range Default Scan Channels Set Read the list of channels to scan Coordinator Bit field list of channels to choose from prior to starting network Device Bit field list of channels that will be scanned to find a Coordinator Router to join 5 Changes to SC should be written using WR command CRE 1 OxFFFF bitfield Ox1FFE Bit Channel 0 0x0B 4 0x0F 8 0x13 12 0x17 0x0C 5 0x10 9 0x14 13 0x18 0x0D 6 0x11 10 0x15 14 0x19 0x0E 7 0x12 11 0x16 15 0 1 Scan Duration Set Read the scan duration exponent Changes to SD should be written using WR command Coordinattor Duration of the Active and Energy Scans on each channel that are used to determine an acceptable channel and Pan ID for the Coordinator to startup on Router End Device Duration of Active Scan on each channel used to locate an available Coordinator Router to join during Association Ne Scan Time is measured Channels to Scan 2 SD 15 36ms The number of 50 channels to scan is determined by the SC parameter The can scan up to 16 CRE 0 7 exponent 3 channels SC 0xFFFF Sample Scan Duration times 13 channel scan If SD 0 time 0 200 sec SD 2 time 20 799 sec SD 4 time 73 190 sec SD 6 time 12 780 sec Node J oin Time S et Read the time that a Coordinator Router allows nodes to join NJ This value can be changed at run time without requiring a Coordinator
9. Name and Description Parameter Range 0 Sleep disabled 1 Pin sleep enabled 4 Cyclic sleep enabled Note When SM 0 the SM Sleep Mode Sets the sleep mode on the RF module RE i Mt i changes to a non zero value the router leaves the network and rejoins as an end device Only end devices can sleep Number of Sleep Periods S ets the number of sleep periods to not assert the On Sleep SN pin on wakeup if no RF data is waiting for the end device This command allows a host RE 1 OXFFFF 1 application to sleep for an extended time if no RF data is present Sleep Period This value determines how long the end device will sleep ata time up to 28 seconds The sleep time can effectively be extended past 28 seconds using the SN 0x20 OxAF0 x 10ms SP command On the parent this value determines how long the parent will buffer a CRE Quarter second 0x20 message for the sleeping end device It should be set at least equal to the longest SP resolution time of any child end device Time Before Sleep Sets the time before sleep timer on an end device The timer is reset 0x1388 5 ST each time serial or RF data is received Once the timer expires an end device may enter RE 1 OxFFFE x 1ms Seconds low power operation Applicable for cyclic sleep end devices only 2007 Digi International Inc 42 7 API Operation As an alternative to Transparent Operation API Application Programming Interface Operations are av
10. ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration To send a transmission to a Coordinator using its 16 bit network address Set the Destination Address of the transmitting module as shown below AT Firmware DL Destination Low Address 0 DH Destination High Address 0 API Firmware Set the 64 bit destination address field in the API transmit frame to 0x0000000000000000 Broadcast Addressing Broadcast transmissions are sent using a 64 bit address of OxOOOOFFFF Any RF module in the PAN will accept a packet that contains a broadcast address When configured to operate in Broadcast Mode receiving modules do not send ACKs Acknowledgements To send a broadcast packet to all modules Set the Destination Addresses of the transmitting module as shown below AT Firmware DL Destination Low Address OxOOOOFFFF DH Destination High Address 0x00000000 API Firmware Set the 64 bit destination address field in the API transmit frame to 0x000000000000FFFF NOTE When programming the module parameters are entered in hexadecimal notation without the Ox prefix Leading zeros may be omitted Refer to the Broadcast Transmissions for more information 4 2 2 Application layer Addressing Application layer addressing allows the application to specify endpoint and cluster ID values for each transmission Addressing multiple endpoints and cluster IDs can be accomplished by explicitly s
11. activity while in sleep To wake a module operating in pin sleep de assert Sleep RQ pin 9 The module will wake when Sleep RQ is de asserted and is ready to transmit or receive when the CTS line is low When the module wakes from pin sleep it sends a transmission to its parent router or coordinator called a poll request to see if it has buffered any data packets for the end device The module will continue to poll its parent for data while it remains awake If the parent receives an RF data packet destined for one or more of its end device children it will transmit the packet to the end device upon receipt of a poll request See section 4 3 Sleep Mode Operation for more information Cyclic Sleep Cyclic sleep allows modules to wake periodically to check for RF data and sleep when idle When the SM parameter is set to 4 the module is configured to sleep for the time specified by the SP parameter After the SP time expires the module will wake and check for RF or serial data To check for RF data the module sends a transmission to its parent router or coordinator called a poll request to see if its parent has any buffered data packets for the end device If the parent has data for the module the module will remain awake to receive the data Otherwise the module will return to sleep See section 4 3 Sleep Mode Operation for more information If serial or RF data is received the module will start the ST timer and remain awake until th
12. an RF packet is received The Command Mode Sequence GT CC GT is received Any character buffered in the serial receive buffer before the sequence is transmitted 2 1 5 API Operation API Application Programming Interface Operation is an alternative to the default Transparent Operation The frame based API extends the level to which a host application can interact with the networking capabilities of the module RF modules that contain the following firmware versions will support API operation 1 1xx coordinator and 1 3xx router end device When in API mode all data entering and leaving the module is contained in frames that define operations or events within the module Transmit Data Frames received through the DIN pin pin 3 include RF Transmit Data Frame Command Frame equivalent to AT commands Receive Data Frames sent out the DOUT pin pin 2 include RF received data frame Command response Event notifications such as reset associate disassociate etc The API provides alternative means of configuring modules and routing data at the host application layer A host application can send data frames to the module that contain address and payload information instead of using command mode to modify addresses The module will send data frames to the application containing status packets as well as source and payload information from received data packets The API operation option facilitates many opera
13. between the RF module and a PC refer to the Setup sec tion above select the Terminal tab of the Software and enter the following command lines CR stands for carriage return Method 1 One line per command Send AT Command System Response OK CR Enter into Command Mode ATDL Enter current value CR Read Destination Address Low ATDL1AOD lt Enter gt OK CR Modify Destination Address Low ATWR Enter OK CR Write to non volatile memory ATCN Enter OK CR Exit Command Mode Method 2 Multiple commands on one line Send AT Command System Response OK CR Enter into Command Mode ATDL Enter current value CR Read Destination Address Low ATDL1AOD WR CN lt Enter gt OK lt CR gt OK lt CR gt OK lt CR gt Sample Configuration Restore RF Module Defaults Example Utilize the X CTU Modem Configuration tab to restore default parameter values After establishing a connection between the module and a PC refer to the Setup section above select the Modem Configuration tab of the X CTU Software 1 Select the Read button 2 Select the Restore button 8 0 3 API Programming Examples API Configuration Using the X CTU The programming examples in this section require the installation of MaxStream s X CTU soware and a serial connection to a PC See Setup example in the AT Command Programming Exam ples in Section 8 0 2 1 Launch the X CTU Sof
14. no data is transmitted or received for the time defined by the ST Time before Sleep parameter Table 2 01 Sleep Mode Configurations Router End Device Firmware Only Sleep Mode Transition out of n Related Power into Sleep Characteristics 3 Setting Mode Sleep Mode wake Commands Consumption Assert high De assert 0V Sleep RQ SM 1 Sleep RQ pin 9 pin 9 Pin Host controlled SM lt 1uA Transition occurs after the Automatic ima RF module wakes cyclic sleep time interval transition to elapses The time interval after a pre SM 4 sleep mode as d f d by the SP determined time SM ST SP SN lt 1uA defined by the velie Seen m gj interval to detectif RF data is present ST parameter parameter The SM command is central to setting Sleep Mode configurations By default sleep modes are disabled SM 0 and the module remains in Idle Receive Mode When in this state the module is constantly ready to respond to serial or RF activity Zigbee Protocol Sleep Modes In the ZigBee protocol sleep modes are only supported on end devices See section 4 3 Sleep Mode Operation for more information Pin Host Controlled Sleep Pin sleep puts the module to sleep and wakes it from sleep according to the state of Sleep RQ pin 9 When Sleep RQ is asserted high the module will finish any transmit or receive operations and then enter a low power state The module will not respond to either serial or RF
15. of their data radio systems The following sections illustrate how to use the interface boards for development purposes The MaxStream Interface board provides means for connecting the module to any node that has an available RS 232 or USB connector Since the module requires signals to enter at TTL voltages one of the main functions of the interface board is to convert signals between TTL levels and RS 232 and USB levels 2007 Digi International Inc 68 XBee Series 2 ZigBee RF Modules v1 x2x 2007 07 019 Development Guide Note In the following sections an OEM RF Module mounted to an interface board will be referred to as a Module Assembly RS 232 Development Board External Interface B 01a Reset Switch Figure B 01 Front View The Reset Switch is used to reset re boot the RF module This switch only applies when using the configuration tabs of MaxStream s O X CTU Software e 509 2 B 01b 1 amp Power LEDs LEDs indicate RF module activity as follows Yellow top LED Serial Data Out to host B 01c Green middle Serial Data In from host DB 9 Serial Port Red bottom Power Association Indicator Refer to the D5 DIO5 Configuration parameter B 01d RSSI LEDs B 01b I O amp Power LEDs 01 host Module Assemblies host Power Connector B 01a 01 Serial Port Config Switch Standard female DB 9 RS 232 connector
16. or Router to CR 0 0x40 OxFF OxFF restart The time starts once the Coordinator or Router has started The timer is reset x 1 sec always allows joining on power cycle or when NJ changes Aggregate Routing Notification Set read time between consecutive aggregate route AR broadcast messages If used AR should be set on only one device to enable many to CR 0 OXFF OxFF one routing to the device Setting AR to 0 only sends one broadcast Association Indication Read information regarding last node join request 0x00 Successful completion Coordinator started or Router End Device found and joined with a parent 0x21 Scan found no PANs 0 OxFF Al 0x22 Scan found no valid PANs based on current SC and ID settings CRE read only 0x23 Valid Coordinator or Routers found but they are not allowing joining NJ expired 0x27 Node J oining attempt failed 0x2A Coordinator Start attempt failed OxFF Scanning for a Parent RF I nterfacing Table 6 04 Interfacing Commands AT Node Name and Description Parameter Range Default Command Type 0 4 XBee 0 10 10dBm PL Power Level 5 elect R ead the power level at which the RF module transmits conducted CRE l 6 12dBm 4 power 2 4 14dBm 3 2 16dBm 4 0 18 dBm 0 1 PM Power Mode Set read the power mode of the device Enabling boost mode will improve cpg 0 Boostmode disabled 1 the receive sensitivity by 1dB and increase the transmit power by 2dB 1 Boost m
17. port such as most PCs USB Cable 6 1 Cable for connecting USB interface board to USB nodes J U1U2 CSB 6F Serial Loopback Red Adapter for configuring the module assembly module RS 232 J D2D3 CDL A Adapter interface board to function as a repeater for range testing NULL Modem Adapter Black Adapter for connecting the module assembly module RS 232 J D2D2 CDN A male to male interface board to other DCE female DB 9 nodes NULL Modem Adapter Gray Adapter for connecting serial nodes It allows users to bypass J D3D3 CDN A female to female the radios to verify serial cabling is functioning properly PowerAdapter 9VDC 1 1 Adapter for powering the RS 232 development board J P5P2 9V11 6F Battery Clip 9V 1 Clip for remotely powering the RS 232 board w a 9V battery J P2P3 C2C 4l 5 2 RPSMA half wave dipole antenna 2 4 GHz 2 1 dB A24 HASM 450 RF Cable Assembly 2 Adapter for connecting RPSMA antenna to U FL connector J F1R6 CR 3 41 1 Documentation and S oftware MD0030 Quick Start Guide 1 Step by step instruction on how to create wireless links MD0026 amp test range capabilities of the modules The development kit includes RS 232 and USB interface boards The boards provide a connection to PC ports and therefore give access to the RF module registries Parameters stored in the registry allow OEMs and integrators to customize the modules to suite the needs
18. request packet Route Discovery The process of establishing a route to a destination node when one does not exist in the Routing Table It is based on the AODV Ad hoc On demand Distance Vector routing protocol ZigBee Stack ZigBee is a published specification set of high level communication protocols for use with small low power modules The ZigBee stack provides a layer of network functionality on top of the 802 15 4 specification For example the mesh and routing capabilities available to ZigBee solutions are absent in the 802 15 4 protocol 2007 Digi International Inc Appendix B Agency Certifications United States FCC The XBee Series 2 RF Module complies with Part 15 of the FCC rules and regulations Compliance with the labeling requirements FCC notices and antenna usage guidelines is required To fufill FCC Certification the OEM must comply with the following regulations 1 The system integrator must ensure that the text on the external label provided with this device is placed on the outside of the final product Figure A 01 2 XBee Series 2 RF Module may only be used with antennas that have been tested and approved for use with this module refer to the antenna tables in this section OEM Labeling Requirements requirements are met This includes a clearly visible label on the outside of the final WARNING The Original Equipment Manufacturer OEM must ensure that FCC label
19. set factory set OxE8 OxE8 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 6 XBee Series 2 Command Reference Tables Table 6 02 Addressing Commands AT Node Command Name and Description Parameter Range Default Cluster Identifier Set read Zigbee application layer cluster ID value If ZigBee application layer addressing is enabled ZA command this value will be used as the CRE 0 0xFF 0x11 cluster ID for all data transmissions CI is only supported in AT firmware The default value0x11 Transparent data cluster ID Binding Table Index Set read the binding table index value If this value is setto a cP BI valid binding table index the addressing information at that index in the binding table CRE 0 OXFF OXF F will be used for all data transmissions BI is only supported in AT firmware 1 Node types that support the command C Coordinator R Router E End Device 2 Command supported by modules using AT Command firmware only Networking amp Security Table 6 03 Networking Commands Node Name and Description 1 Parameter Range Command Type Operating Channel Read the channel number used for transmitting and receiving CH between RF modules Uses 802 15 4 channel numbers A value of 0 means the device CRE 0 0x0B 0x1A XBee 0 has not joined a PAN and is not operating on any channel PAN ID Set Getthe PAN Personal Area Network ID Coordinalpr
20. than 1 2V Information for each enabled analog channel is returned in order starting with AINO and finishing with AIN4 Only enabled analog input channels will return data Oo Go 2007 Digi International Inc XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration The AT firmware returns a carriage return delimited list containing the above listed fields The API firmware returns an AT command response API frame with the IO data included in the command data portion of the packet Example Sample AT Response 0 01 1 sample set 0x0C0C r Digital Inputs DIO 2 3 10 11 low 0x03 r Analog Inputs A D 0 1 0x0408 r Digital input states DIO 3 10 high DIO 2 11 low 0x03D0 r Analog input ADIO 0 0x3D0 0x0124 r Analog input ADIO 1 0x120 To convert the A D reading to mV do the following AD mV ADIO reading Ox3FF 1200mV The reading in the sample frame represent voltage inputs of 1144 9 and 342 5mV for ADIOO and ADIOI respectively 2007 Digi International Inc 34 5 Advanced Features The XBee Series 2 modules come with several features to assist with discovering configuring and testing ZigBee networks These features include Device Discovery Remote Configuration Loopback Testing Join Indicators Manual Device Identification Battery Life Monitoring 5 1 Device Discovery The Node Discover
21. the UART If the JN command is enabled the router will send a node identification packet to the coordinator The AI Association Indication command can be used at any point during the router join routine to know the status of the startup operation 4 1 4 Network Reset Once a coordinator has started or a router or end device has joined the network the device will continue operating on that channel and PAN ID unless one of the following occurs 1 The ID parameter changes 2 The SC parameter changes such that the current operating channel is not included in the new SC parameter 3 The NR command is issued with either or 1 as a parameter If any of the above occurs on a coordinator the coordinator will attempt to restart on a channel and PAN ID based on the new saved ID and SC commands On a router or end device the above conditions will cause the device to leave the network if previously joined and attempt to join a new PAN using the saved ID and SC parameters 2007 Digi International Inc 26 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration 4 2 XBee Series 2 Addressing XBee modules support both ZigBee device addressing and application layer addressing Device addressing provides a simple means of sending data from one device to another by hiding the application layer addressing information ZigBee endpoints and cluster IDs If a device will support multiple endpoi
22. the module 5 If successful the module will send the Ember boot loader menu out the DOUT pin at 115200bps 6 Commands can be sent to the boot loader at 115200bps 9 4 Programming XBee Series 2 Modules Firmware on the XBee Series 2 modules can be upgraded using the MaxStream x CTU program to interface with the DIN and DOUT serial lines or with an InSight programmer device via InSight header 9 5 XBee EM250 Pin Mappings The following table shows how the GPIO pins on the EM250 map to pins on the XBee Series 2 module Table 9 011 XBee Series 2 Module Pin Number EM250 GPIO XBee Series 2 Module Pin Number EM250 GPIO 1 11 B 2 9 12 3 10 13 3 2007 Digi International Inc 59 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 9 Manufacturing Support Table 9 011 XBee Series 2 Module Pin Number EM250 GPIO XBee Series 2 Module Pin Number EM250 GPIO 5 15 0 15 16 6 7 16 17 8 18 MaxStreaim 2007 Digi International Inc 60 Appendix A Definitions Definitions Table A 01 Terms and Definitions ZigBee Node Types Coordinator A node that has the unique function of forming a network The coordinator is responsible for establishing the operating channel and PAN ID for an entire network Once established the coordinator can form a network by allowing routers and end devices to join to it Once the network is form
23. 0 dBi ixed 5 3 dB A24 F9NF Omni directiona Fiberglass base stati 9 5 dBi 6 8 dB A24 F10NF Fiberglass base stati 10 0 dBi 7 3 dB A24 F12NF Omni directiona Fiberglass base stati 12 0 dBi ixed 9 3dB A24 F15NF Omni directiona Fiberglass base stati 15 0 dBi ixed 12 3dB A24 W7NF d d d d Omni directiona d d d Omni directiona ase station 7 2 dBi ixed 4 5 dB A24 M7NF Omni directiona B M ag mount base station 7 2 dBi F F F F F Fixed F F F F F ixed 4 5 dB PANEL CLASS ANTENNAS Part Number Type Description Gain Application ET Cable loss A24 P8SF Flat Panel 8 5 dBi Fixed 2m 8 2 dB A24 P 8NF Flat Panel 8 5 dBi Fixed 2m 82 dB A24 P13NF Flat Panel 13 0 dBi Fixed 2m 12 7 dB A24 P 14NF Flat Panel 14 0 dBi Fixed 2m 13 7 dB A24 P15NF Flat Panel 15 0 dBi Fixed 2m 14 7 dB A24 P16NF Flat Panel 16 0 dBi Fixed 2m 15 7 dB A24 P 19NF Flat Panel 19 0 dBi Fixed 2m 18 7 dB If using the RF module in a portable application For example If the module is used in a handheld device and the antenna is less than 20cm from the human body when the device is in operation The integrator is responsible for passing additional SAR Specific Absorption Rate testing based on FCC rules 2 1091 and FCC Guidelines for Human Exposure to Radio
24. 02 XBee Series 2 Module Mounting to an RS 232 Interface Board The receptacles used on MaxStream development boards are manufactured by Century Interconnect Several other manufacturers provide comparable mounting solutions however MaxStream currently uses the following receptacles Through hole single row receptacles Samtec P N MMS 110 01 L SV or equivalent Surface mount double row receptacles Century Interconnect P N CPRMSL20 D 0 1 or equivalent Surface mount single row receptacles Samtec P N SMM 110 02 SM S MaxStream also recommends printing an outline of the module on the board to indicate the orientation the module should be mounted MaxStreaim 2007 Digi International Inc XBee Series 2 RF Modules ZigBee v1 x2x 2007 07 019 Chapter 1 XBee Series 2 OEM RF Modules 1 5 Pin Signals Figure 1 03 XBee Series 2 RF Module Pin Number XBee top sides shown shields on bottom top view 0 299 7 59mm PIN 1 PIN 10 0 866 22 00mm 0 960 24 38mm Table 1 02 Pin Assignments for the XBee Series 2 Modules Low asserted signals are distinguished with a horizontal line above signal name Name Direction Description m VCC Power supply DOUT Output UART Data Out DIN CONFIG Input UART Data In 01012 Digital I O 12 RESET Module Reset reset pulse must be at least 200 ns PWMO RSSI DIO10 PWM Output 0 RX Signal Str
25. 11 Configuration Configure options for the DIO 11 line of the RF module CRE 2007 Digi International Inc 40 XBee Series 2 ZigBee RF Modules v1 x2x 2007 07 019 Chapter 6 XBee Series 2 Command Reference Tables Table 6 06 I O Commands AT Node Name and Description Parameter Range Default Command Type 0 Unmonitored digital input 3 Digital input monitored P2 DIO12 Configuration Configure options for the DIO12 line of the RF module CRE 4 Digital output default 0 low 5 Digital output default high RSSI PWM Timer Time RSSI signal will be output after last transmission When RP RP OxFF output will always be on CRE 0 OxFF x 100 ms 0x28 40d IS Force Sample Forces a read of all enabled digital and analog input lines CRE 0 5 0 Disabled 1 Node identification button enabled DO ADO DIOO Configuration Select Read function for AD0 DIO0 CRE 2 Analog input single 1 RE 0 C ended 3 Digital input 4 Digital output low 5 Digital output high 0 2 5 0 Disabled 2 Analog input single D1 AD1 DI01 Configuration Select Read function for AD1 D101 CRE ended 0 3 Digital input 4 Digital output low 5 Digital output high 0 2 5 0 Disabled 2 Analog input single D2 AD2 DIO2 Configuration Select R ead function for AD2 DIO2 CRE ended 0 3 Digital input 4 Digital output low 5 Digital output high 0 2 5 0 Disabled 2 Analog i
26. 35 5 3 2 API Firmware 35 5 4 Join Indicators 35 5 5 Manual Device Identification 35 5 6 Battery Life Monitoring 36 6 XBee Series 2 Command Reference Tables37 7 API Operation 43 7 0 1 API Frame Specifications 43 7 0 2 API Frames 44 8 Examples 56 8 0 1 Starting an XBee Network 56 8 0 2 AT Command Programming Examples 57 8 0 3 API Programming Examples 57 9 Manufacturing Support 59 9 1 Interoperability with other EM250 Devic es 59 9 2 Customizing XBee Default Parameters 59 9 3 XBee Series 2 Custom Bootloader 59 9 4 Programming XBee Series 2 Modules 59 9 5 XBee EM250 Pin Mappings 59 Definitions 61 Agency Certifications 63 Migrating from the 802 15 4 Protocol 67 Development Guide 68 Additional Information 78 2007 Digi Internaitonal Inc iii 1 XBee Series 2 RF Modules The XBee Series 2 OEM RF Modules were engineered to operate within the ZigBee protocol and support the unique needs of low cost low power wireless sensor networks The modules require minimal power and provide reliable delivery of data between remote devices The modules operate within the ISM 2 4 GHz frequency band 1 1 Key Features Marg Madaxs High Performance Low Cost Low Power Indoor Urban up to 133 40 m Outdoor line of sight up to 400 120 m Transmit Power 2 mW 43 dBm Receiver Sensitivity 96 dBm RF Data Rate 250 000 bps Advanced Networking amp Security XB
27. Bee OEM RF Modules v1 x2x 2007 07 019 Agency Certifications XBee Series 2 RF Modules XBee Series 2 RF Modules have been tested and approved for use with all the antennas listed in the tables below Cable loss IS required when using gain antennas as shown below Table A 01 antennas approved for use with the XBee Series 2 RF Modules YAGI CLASS ANTENNAS Part Number Type Description Gain Application Cable loss A24 Y6NF Yagi 6 element 8 8 dBi ixed 7 8dB A24 Y 7NF Yagi 7 element 9 0 dBi ixed 8 dB A24 Y9NF Yagi 9 element 10 0 dBi ixed 9 dB A24 Y 10NF Yagi 10 element 110 dBi ixed 10 dB A24 Y12NF A24 Y13NF Yagi 12 element i 13 element A24 Y15NF i 15 element A24 Y16NF i 16 element A24 Y16RM i 16 element RPSMA connector A24 Y18NF Part Number i 18 element Type Description F F F F Fixed F F F F F in Required eparation Cable loss A24 C1 Surface Mount integral chip 15 dBi ixed M obile 20 cm A24 F2NF Omni directiona Fiberglass base stati 2 1 dBi ixed Mobile 20 cm A24 F3NF Omni directiona Fiberglass base stati 3 0 dBi ixed Mobile 20cm 3 dB A24 F5NF Omni directiona Fiberglass base stati 5 0 dBi ixed Mobile 2 3 dB A24 F 8NF Omni directiona Fiberglass base stati 8
28. Device addressing specifies the destination address of the device a packet is destined to Application layer addressing indicates a particular application recipient known as a Zigbee endpoint along with a message type field called a Cluster ID 3 2 1 ZigBee Device Addressing The 802 15 4 protocol upon which the ZigBee protocol is built specifies two address types 16 bit network addresses 64 bit Addresses 16 bit Network Addresses A 16 bit network address is assigned to a node when the node joins a network The network address is unique to each node in the network However network addresses are not static it can change The following two conditions will cause a node to receive a new network address 1 Ifan end device cannot communicate with its parent it may need to leave the network and rejoin to find a new parent 2 If the device type changes from router to end device or vice versa the device will leave the network and rejoin as the new device type ZigBee requires that data be sent to the 16 bit network address of the destination device This requires that the 16 bit address be discovered before transmitting data See 3 2 3 Network Address Discovery for more information 64 bit Addresses Each node contains a unique 64 bit address The 64 bit address uniquely identifies a node and is permanent 3 2 2 ZigBee Application layer Addressing The ZigBee application layers define endpoints and cluster identifiers
29. Frame ID set to non zero value 0x0013A200400A0127 64 bit Destination Address OxFFFE 16 bit Destination Address 0x00 Broadcast radius 0x00 Options 0x5478446174613041 Data payload TxData0A 0x64 Checksum If escaping is enabled AP 2 the frame should look like Ox7E 0x00 0x16 0x10 0x01 0x00 Ox7D 0x33 OxA2 0x00 0x40 OxOA 0x01 0x27 OxFF OxFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 Ox7D 0x33 The checksum is calculated on all non escaped bytes as OxFF sum of all bytes from frame type through data payload Example Send a transmission to the coordinator without specifying the coordinator s 64 bit address The API transmit request frame should look like Ox7E 0x00 0x16 0x10 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 OxFF OxFE 0x00 0x00 0x54 0x78 032 0x43 Ox6F Ox6F 0x72 0x64 OxFC Where 0x16 length 22 bytes excluding checksum 0x10 ZigBee Transmit Request API frame type 0x01 Frame ID set to non zero value 0x0000000000000000 Coordinator s address can be replaced with coordinator s actual 64 bit address if known OxFFFE 16 bit Destination Address 0x00 Broadcast radius 0x00 Options 0x547832436F6F7264 Data payload Tx2Coord OxFC Checksum 2007 Digi International Inc 58 9 Manufacturing Support 9 1 Interoperability with other EM250 Devices The XBee module can interoperate with other EM250 based devices The following should be considered when communicating
30. Frequency Electromagnetic Fields OET Bulletin and Supplement C The testing results will be submitted to the FCC for approval prior to selling the integrated unit The required SAR testing measures emissions from the module and how they affect the person RF Exposure WARNING To satisfy RF exposure requirements for mobile transmitting devices a separation distance of 20 cm or more should be maintained between the antenna of this device and persons during device operation To ensure compliance operations at closer than this distance are not recommended The antenna used for this transmitter must not be co located in conjunction with any other antenna or transmitter The preceding statement must be included as a CAUTION statement in OEM product manuals in order to alert users of FCC RF Exposure compliance Europe ETSI The XBee Series 2 RF Module has been certified for use in several European countries For a complete list refer to www maxstream net If the XBee Series 2 RF Modules are incorporated into a product the manufacturer must ensure compliance of the final product to the European harmonized EMC and low voltage safety 2007 MaxStream Inc 64 Xbee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Agency Certifications standards A Declaration of Conformity must be issued for each of these standards and kept on file as described in Annex 11 of the R amp TTE Directive Furthermore the man
31. I specific Structure 1 Byte API Identifier Identifier specific Data 0 8 cmdData aa pu Frame ID Byte 5 Remote Network Address Bytes 6 7 Transmit Retry Count Byte 8 Delivery Status Byte 9 Discovery Status Byte 10 Identifies UART data frame being reported 16 bit Network Address the packet was delivered to if success If not success this address matches the Destination Network Address The number of application transmission retries that took place that was provided in the Transmit Request Frame 0x00 Success 0x02 CCA Failure 0x15 Invalid destination endpoint 0x21 Network ACK Failure 0x22 Not Joined to Network 0x23 Self addressed 0x24 Address Not Found 0x25 Route Not Found 0x00 No Discovery Overhead 0x01 Address Discovery 0x02 Route Discovery 0x03 Address and Route Discovery ZigBee Receive Packet API Identifier Value 0x90 When the module receives an RF packet it is sent out the UART using this message type Figure 7 16 RX Packet Frames Start Delimiter Length Fram e Data Checksum 0x7E MSB LSB API specifi ic Structure 1 Byte API Identifier Identifier specific Data cmdData 64 bit Address Bytes 5 12 0x90 16 bit Network Address Bytes 13 14 Options Byte 15 RF Data Byte s 16 n MSB most s
32. Low parameters of the destination node If the 16 bit address of the destination node is not known set 16 bit destination network address to OxFFFE refer to the API Addressing section below To send an API transmission to a Coordinator using its 16 bit network address Set the 64 bit Destination Address field to all O s API Mode provides the ability to store and maintain 16 bit network address tables on an external processor The 16 bit network address information is provided to the application through the following The ZigBee Transmit Status Frame contains the current 16 bit network address of the remote The ND and DN commands return 64 bit and 16 bit network addresses of remote nodes With this information a table can be built in an application that maps a 64 bit Address to the corresponding 16 bit network address The ZigBee Transmit Request API frame specifies the 64 bit Address and the network address if known that the packet should be sent to By supplying both addresses the module will forego network address Discovery and immediately attempt to route the data packet to the remote If the network address of a particular remote changes network address and route discovery will take place to establish a new route to the correct node Upon successful packet delivery the TX Status Frame will indicate the correct network address of the remote Table 4 02 Sample table mapping 64 bit Addresses to 16 bit Network Ad
33. Min Typical Max Input Low Voltage All Digital Inputs 0 2 VCC Input High Voltage All Digital Inputs 0 8 VCC 0 18 VCC Output Low Voltage lop 2 mA VCC 22 V 0 18 VCC Output High Voltage 2 mA VCC 22 7 V 0 82N CC Input Leakage Current Vin VCC or GND all inputs per pin MaxStream 2007 Digi International Inc 8 2 RF Module Operation 2 1 Serial Communications The XBee Series 2 OEM RF Modules interface to a host device through a logic level asynchronous serial port Through its serial port the module can communicate with any logic and voltage compatible UART or through a level translator to any serial device For example Through a MaxStream proprietary RS 232 or USB interface board 2 1 1 UART Data Flow Devices that have a UART interface can connect directly to the pins of the RF module as shown in the figure below Figure 2 01 System Data Flow Diagram in a UART interfaced environment Low asserted signals distinguished with horizontal line over signal name CMOS Logic 2 8 3 4V ae f CMOS Logic 2 8 3 4V DIN data in XBee pen DIN data in TS XBee Mod Serial Data Data enters the module UART through the DIN pin 3 as an asynchronous serial signal The signal should idle high when no data is being transmitted Each data byte consists of a start bit low 8 data bits least significant bit first and a sto
34. N it receives a 16 bit network address and can transmit data to or receive data from other devices in the PAN Routers and the coordinator can allow other devices to join the PAN and can assist in sending data through the network to ensure data is routed correctly to the intended recipient device When a router or coordinator allows an end device to join the PAN the end device that joined becomes a child of the router or coordinator that allowed the join End devices however can transmit or receive data but cannot route data from one node to another nor can they allow devices to join the PAN End devices must always communicate directly to the parent they joined to The parent router or coordinator can route data on behalf of an end device child to ensure it reaches the correct destination End devices are intended to be battery powered and can support low power modes Figure 3 01 Node Types Sample of a Basic ZigBee Network Topology Coordinator One per PAN Establishes Organizes a PAN Mains powered Router Optional Several can be in a PAN Mains powered End Device Several can be in a PAN Low power The network address of the PAN coordinator is always 0 When a router joins a PAN it can also allow other routers and end devices to join to it Joining establishes a parent child relationship between two nodes The node that allowed the join is the parent and the node that joined is the child The parent child relationship is no
35. RTS is de asserted set high The host device should not de assert RTS for long periods of time to avoid filling the serial transmit buffer If an RF data packet is received and the serial transmit buffer does not have enough space for all of the data bytes the entire RF data packet will be discarded 5 2007 Digi International Inc 11 Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation 2 1 4 Transparent Operation RF modules that contain the following firmware versions will support Transparent Mode 1 0xx coordinator and 1 2xx router end device When operating in Transparent Mode the modules act as a serial line replacement UART data received through the DIN pin is queued up for RF transmission When RF data is received the data is sent out the DOUT pin The module configuration parameters are configured using the AT command mode interface See RF Module Operation gt Command Mode When RF data is received by a module the data is sent out the DOUT pin Serial to RF Packetization Data is buffered in the serial receive buffer until one of the following causes the data to be packetized and transmitted 1 No serial characters are received for the amount of time determined by the RO Packetiza tion Timeout parameter If RO 0 packetization begins when a character is received 2 Maximum number of characters that will fit 72 in
36. STREAM SPECIFICALLY DISCLAIMS ALL WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE IN NO EVENT SHALL MAXSTREAM ITS SUPPLIERS OR LICENSORS BE LIABLE FOR DAMAGES IN EXCESS OF THE PURCHASE PRICE OF THE PRODUCT FOR ANY LOSS OF USE LOSS OF TIME INCONVENIENCE COMMERCIAL LOSS LOST PROFITS OR SAVINGS OR OTHER INCIDENTAL SPECIAL OR CONSE QUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PRODUCT TO THE FULL EXTENT SUCH MAY BE DISCLAIMED BY LAW SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES THEREFORE THE FOREGOING EXCLUSIONS MAY NOT APPLY IN ALL CASES This warranty provides specific legal rights Other rights which vary from state to state may also apply Ordering Information Figure E 01 Divisions of the XBee Series 2 RF Module Part Numbers X B 2 4 T 0 0 Antenna Types Pimware versions S RPSMA 1 Coordinator API Operation W Wire Antenna 2 Coordinator Transparent Operation C Chip Antenna 3 Router End Device Operation U U FL Connector 4 Router End Device Transparent Operation Contact MaxStream Free and unlimited technical support is included with every MaxStream Radio Modem sold For the best in wireless data solutions and support please use the following resources Documentation www maxstream net support downloads php Technical Support Phone
37. Set the preferred Pan ID SetID OxFFFF to auto select Router End Device Set the desired Pan ID When the device searches for a 0x0234 transmission after joining a PAN identifying itself to the coordinator PAN ID Coordinator it attempts to only join to a parent that has a matching Pan ID Set ID CRE 0 OGFFF OXFFFF 291d OxFFFF to join a parent operating on any Pan ID Changes to ID should be written to non volatile memory using the WR command BH Broadcast Hops Set Read the maximum number of hops for each broadcast data CRE 0 OXOF transmission Setting this to 0 will use the maximum number of hops Node Discover Timeout Set R ead the amount of time a node will spend discoverin 0 NT other nodes when ND or DN is issued P 3 CRE x 100 msec Ox3C 600 Node Discover Discovers and reports all RF modules found The following information is reported for each module discovered MY lt CR gt SH lt CR gt SL CR NI lt CR gt Variable length PARENT NETWORK ADDRESS 2 Bytes CR DEVICE TYPE CR 1Byte 0 Coord 1 R outer 2 nd Device STATUS CR 1 Byte Reserved ND PROFILE ID CR 2 Bytes CRE optional 20 Byte MANUFACTURER ID CR 2 Bytes NI or MY value CR After NT 100 milliseconds the command ends by returning a CR ND also accepts a Node Identifier NI as a parameter optional In this case only a module that matches the supplied identifier will respond If ND i
38. X Transmitter VV Buffer I uet RF Switch Processor u Bon at e Serial Transmit RF RX R A L Butfer Buffer Seniye e Serial Receive Buffer When serial data enters the RF module through the DIN Pin pin 3 the data is stored in the serial receive buffer until it can be processed Under certain conditions the module may not be able to process data in the serial receive buffer immediately If large amounts of serial data are sent to the module CTS flow control may be required to avoid overflowing the serial receive buffer Cases in which the serial receive buffer may become full and possibly overflow 1 Ifthe module is receiving a continuous stream of RF data the data in the serial receive buffer will not be transmitted until the module is no longer receiving RF data 2 Ifthe module is transmitting an RF data packet the module may need to discover the des tination address or establish a route to the destination After transmitting the data the module may need to retransmit the data if an acknowledgment is not received or if the transmission is a broadcast These issues could delay the processing of data in the serial receive buffer Serial Transmit Buffer When RF data is received the data is moved into the serial transmit buffer and is sent out the serial port If the serial transmit buffer becomes full enough such that all data in a received RF packet won t
39. XBee Series 2 OEM RF Modules XBee Series 2 Series 2 OEM RF Modules ZigBee Networks RF Module Operation RF Module Configuration Appendices Product Manual v1 x 2x ZigBee Protocol For OEM RF Module Part Numbers XB24 BxIT 00x ZigBee OEM RF Modules by MaxStream Inc a Digi International brand Firmware Versions 1 0xx Coordinator Transparent Operation 1 1xx Coordinator API Operation 1 2xx Router End Device Transparent Operation 1 3xx Router End Device API Operation 355 South 520 West Suite 180 Lindon UT 84042 Phone 801 765 9885 Fax 801 765 9895 rf xperts maxstream net 90000866 B www MaxStream net live chat support 2007 07 019 XBee Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 2007 Digi I nternational I nc All rights reserved No part of the contents of this manual may be transmitted or reproduced in any form or by any means without the written permission of Digi International Inc ZigBee is a registered trademark of the ZigBee Alliance XBee Series 2 is a trademark of Digi International Inc Technical Support Phone 801 765 9885 Live Chat www maxstream net E mail rf xperts maxstream net 2007 Digi International Inc XBee Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Contents 1 XBee Series 2 OEM RF Modules 4 1 1 Key Features 4 1 1 1 Worldwide Acceptance 4 1 2 Specifications 5 1 3 Mechanical Dra
40. ZigBee RF Modules v1 x2x 2007 07 019 Chapter 8 Examples 8 0 2 AT Command Programming Examples Refer to the X CTU sec tion of the Develop ment Guide Appendix B for more information regarding the X CTU configuration software Setup The programming examples in this section require the installation of MaxStream s X CTU Soft ware and a serial connection to a PC MaxStream stocks RS 232 and USB boards to facilitate interfacing with a PC 1 Install MaxStream s X CTU Software to a PC by double clicking the setup X CTU exe file The file is located on the MaxStream CD and under the Software section of the following web page www maxstream net support downloads php 2 Mount the RF module to an interface board then connect the module assembly to a PC Launch the X CTU Software and select the PC Settings tab Verify the baud and parity set tings of the Com Port match those of the RF module NOTE Failure to enter AT Command Mode is most commonly due to baud rate mismatch Ensure the Baud setting on the PC Settings tab matches the interface data rate of the RF mod ule By default the BD parameter 3 which corresponds to 9600 bps Sample Configuration Modify RF Module Destination Address Example Utilize the X CTU Terminal tab to change the RF module s DL Destination Address Low parameter and save the new address to non volatile memory After establishing a serial connection
41. ailable API operation requires that communication with the module be done through a structured interface data is communicated in frames in a defined order The API specifies how commands command responses and module status messages are sent and received from the module using a UART Data Frame 7 0 1 API Frame Specifications Two API modes are supported and both can be enabled using the AP API Enable command Use the following AP parameter values to configure the module to operate in a particular mode AP 1 Operation AP 2 API Operation with escaped characters API Operation AP parameter 1 When this API mode is enabled AP 1 the UART data frame structure is defined as follows Figure 7 01 UART Data Frame Structure Start Delimiter Length Frame Data Checksum Byte 1 Bytes 2 3 Bytes 4 n Byte n 1 Ox7E MSB LSB API specific Structure 1 Byte MSB Most Significant Byte LSB Least Significant Byte Any data received prior to the start delimiter is silently discarded If the frame is not received correctly or if the checksum fails the module will reply with a module status frame indicating the nature of the failure API Operation with Escape Characters AP parameter 2 When this API mode is enabled AP 2 the UART data frame structure is defined as follows Figure 7 02 UART Data Frame Structure with escape control characters Start Delimiter Length Frame
42. and The route request command contains the source network address the destination network address and a path cost field a metric for measuring route quality As the route request command is propagated through the network refer to the Broadcast Transmission each node that re broadcasts the message updates the path cost field and creates a temporary entry in its route discovery table 2007 Digi International Inc 22 Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks Figure 3 06 Sample Route Request Broadcast Transmission Where R3 is Trying to Discover a Route to R6t When the destination node receives a route request it compares the path cost field against previously received route request commands If the path cost stored in the route request is better than any previously received the destination node will transmit a route reply packet to the node that originated the route request Intermediate nodes receive and forward the route reply packet to the source node the node that originated route request Figure 3 07 Route Reply Sample Route Reply Unicast Where R6 Sends a Route Reply to R3 Legend First Route Reply gt Second Route Reply Note R6 could send multiple replies if it identifies a better route Retries and Acknowledgments ZigBee includes acknowledgment packets at both the Mac and Application Support APS layers When data is t
43. ata packets are addressed using both device and application layer addressing fields Data can be sent as a broadcast multicast or unicast transmission Broadcast Transmissions Broadcast transmissions within the ZigBee protocol are intended to be propagated throughout the entire network such that all nodes receive the transmission To accomplish this all devices that receive a broadcast transmission will retransmit the packet 3 times Figure 3 04 Broadcast Data Transmission E E E C E Legend CzCoordinator RzRouter E E E End Device Each node that transmits the broadcast will also create an entry in a local broadcast transmission table This entry is used to keep track of each received broadcast packet to ensure the packets are 2007 Digi International Inc 20 Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks not endlessly transmitted Each entry persists for 8 seconds The broadcast transmission table holds 8 entries For each broadcast transmission the ZigBee stack must reserve buffer space for a copy of the data packet This copy is used to retransmit the packet as needed Large broadcast packets will require more buffer space Since broadcast transmissions are retransmitted by each device in the network broadcast messages should be used sparingly Multicast Transmissions Multicast transmissions operate similar to broadcast tran
44. be echoed back to the sender 5 4 Join Indicators The JN command can be used to send a message to the coordinator when a router or end device joins the network If JN is set to enable join notifications an ND response packet will be sent to the coordinator when the device joins the PAN Only API coordinators will display the join notification The format of this packet on the coordinator depends on the AO setting 5 5 Manual Device Identification The DO command can be set to send a node identification packet to the coordinator when a low to high edge is detected on module pin 20 The node identification packet includes the XBee module s W MaxStream 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 5 Advanced Features 64 bit and 16 bit addresses and its NI string Only API coordinators will display the node identification packet Connecting a push button to module pin 20 provides a simple mechanism for manually identifying a module to the coordinator during deployment 5 6 Battery Life Monitoring The 96 V command can be used to determine the supply voltage on a device This command can also be sent in API firmware to remote devices in the PAN to monitor their supply voltage level MaxStreaim 2007 Digi International Inc 36 6 Series 2 Command Reference Tables Special Table 6 01 Special Commands AT au 1 Command Name an
45. between a MaxStream XBee module and another EM250 based device The XBee firmware inserts 8 bytes at the beginning of the data payload that represent the 64 bit address of the source module Custom devices that transmit to an XBee or receive data from an XBee should make provisions to manage these 8 address bytes in the payload Data packets destined for an XBee module should include the source address of the sending device with the most significant byte copied first 9 2 Customizing XBee Default Parameters Once module parameters are determined MaxStream can manufacture modules with specific customer defined configurations These custom configurations can lock in a firmware version or set command values when the modules are manufactured eliminating the need for customers to adjust module parameters on arrival Contact MaxStream to create a custom configuration 9 3 XBee Series 2 Custom Bootloader XBee Series 2 modules use a modified version of Ember s boot loader This bootloader version supports a custom entry mechanism that uses module pins DIN pin 3 DTR SLEEP RQ pin 9 and RTS pin 16 To invoke the boot loader do the following 1 Set DTR SLEEP RQ low TTL OV and RTS high 2 Send a serial break to the DIN pin and power cycle or reset the module 3 When the module powers up DTR SLEEP and DIN should be low TTL OV and RTS should be high 4 Terminate the serial break and send a carriage return at 115200bps to
46. bit Network Address bytes 6 13 14 15 bytes Identifies the UART data frame being reported Matches the Frame ID of the Remote Command Request the remote is responding to Indicates the 64 bit address Set to the 16 bit network of the remote module that is address of the remote responding to the Remote Set to OxFFFE if AT Command request unknown Name of the command Two ASCII characters that identify the AT command Status byte 18 0 OK 1 Error 2 Invalid Command 3 Invalid Parameter Command Data byte 19 n The value of the requested register ZigBee Transmit Request API Identifier Value 0x10 A TX Request message will cause the module to send RF Data as an RF Packet TX Packet Frames 2007 Digi International Inc 49 Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Figure 7 13 ZigBee Transmit Request Start delimiter Length ae Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific data 0x10 cmdData CENE TES Pd UU 7 11604 Destinati N EC Frame ID byte 5 ven Address Options byte 17 lt FFData Bytes s 18n Identifies the UART data frame for the host to MSB first LSB last correlate with a subsequent ACK Set to OXFFFE for 0x08 Send
47. ble lists the pin functions supported on the modules Table 4 08 Module Pin Names Module Pin Numbers Configuration Command CD DIO12 4 P2 PWMO RSSI DIO 10 6 P0 PWM DIO11 7 Pl SLEEP_RQ DIO8 9 IO Configuration not supported DIO4 1 D4 CTS DIO7 12 D7 ON SLEEP DIO9 13 10 Configuration not supported ASSOC DIO5 15 D5 2007 Digi International Inc Qo N XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration Table 4 08 Module Pin Names Module Pin Numbers Configuration Command RTS DIO6 16 D6 AD3 DIO3 17 D3 AD2 DIO2 18 D2 AD1 DIO1 19 DI ADO DIOO 20 DO Setting the configuration command that corresponds to a particular pin will configure the pin Parameters for the pin configuration commands typically include the following Table 4 09 Pin Command Parameter Description 0 Unmonitored digital input 1 Reserved for pin specific alternate functionalities 2 Analog input single ended A D pins only 3 Digital input monitored 4 Digital output default low 5 Digital output default high 6 9 Alternate functionalities where applicable See the command table for more information Pullup resistors for each digital input can be enabled using the PR command Sampling A D and Digital Input Lines The IS command can be used to sample the current value of all enabled A D and digita
48. ces can support up to 8 end device children each Network formation is governed by the SC Scan Channels ID PAN ID SD Scan Duration and NJ Node Join Time commands The SC and ID settings should be written using the WR command to preserve network formation or joining information 4 1 1 Starting an XBee Series 2 Coordinator In order to form a network a coordinator must select an unused operating channel and PAN ID on behalf of its network To do this the coordinator first performs an energy scan on all channels specified by its SC Scan Channels parameter The scan time on each channel is determined by the SD Scan Duration parameter Once the energy scan is completed the coordinator sends a beacon request on each of the SC channels and listens for any beacons The information from the energy scan and the beacon scan active scan is used to select an unused channel and PAN ID If the ID PAN ID parameter is set to OxFFFF the coordinator will select a random PAN ID Otherwise the coordinator will start on the PAN ID specified by its ID parameter After the coordinator has started it will allow nodes to join to it for a time based on its NJ Node Join Time parameter If the Associated LED function is enabled D5 DIO5 Configuration command the Associate pin pin 15 will toggle its output state 1x per second after the coordinator started At this point the operating channel and PAN ID can be read using the CH Operating Channel a
49. cified User Binding index Remove Binding Removes a binding from a specified User Binding index BV View Binding Views one or more bindings in the binding table WB Write Binding Writes the binding table to non volatile memory 4 2 4 XBee Series 2 Endpoint Table The XBee Series 2 modules maintain a table of supported endpoints If an endpoint will be used as the source endpoint in a data transmission the endpoint must first be defined in the endpoint table The XBee Series 2 endpoint table operates similar to the binding table Entries may be added removed or viewed using the E E and EV commands respectively Some table entries are reserved for special purposes Table 4 06 Endpoint Table Index Name Access 0 Command Endpoint Read Only 1 Data Endpoint Read Only 2 Tx Explicit Endpoint Read Write 3 4 User Endpoints Read Write Command Endpoint The command endpoint is used to send or reply to various commands This endpoint must exist in the application Data Endpoint This endpoint is used to send serial data to other XBee Series 2 modules It must always exist in the application Tx Explicit Endpoint This entry is used as needed to define the source endpoint that must be defined for a data transmission If a transmit request is made and the specified source endpoint does not exist it will be created temporarily at this endpoint table index User Endpoints User endpoints are controlled ent
50. cluster IDs that are used to address individual services or applications on a device An endpoint is a distinct task or application that runs on a ZigBee device similar to a TCP port Each ZigBee device may support one or more endpoints Cluster IDs define a particular function or action on a device Cluster IDs in the ZigBee home controls lighting profile for example would include actions such as TurnLightOn TurnLightOff DimLight etc Suppose a single radio controls a light dimmer and one or more light switches The dimmer and switches could be assigned to different endpoint values To send a message to the dimmer a remote radio would transmit a message to the dimmer endpoint on the radio In this example the radio might support cluster IDs to TurnLightOn TurnLightOff or DimLight Thus for radio A to turn off a light on radio B radio A would send a transmission to the light switch endpoint on radio B using cluster ID TurnLightOff This is shown in the figure below 2007 Digi International Inc 19 Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks Figure 3 03 ZigBee Layer Addressing Example ZigBee Device A ZigBee Device B Endpoint 1 Endpoint 40 Endpoint 41 Endpoint 2 radio B Endpoint 3 1 radio A Endpoint 42 Cluster ID 2 TurnLightOff 3 2 3 Data Transmission and Routing All d
51. ctional RF module was tested and approved with 15 dBi antenna gain with 1 dB cable loss EI RP Maimum of 14 dBm Any Omni Directional type antenna with 14 dBi gain or less can be used with no cable loss Antenna Type Flat Panel RF module was tested and approved with 19 dBi antenna gain with 4 8 dB cable loss EIRP Maimum of 14 2 dBm Any Flat Panel type antenna with 14 2 dBi gain or less can be used with no cable loss XBee Series 2 RF Module The following antennas have been tested and approved for use with the embedded XBee Series 2 RF Module Dipole 2 1 dBi Omni directional Articulated RPSMA MaxStream part number A24 HABSM Chip Antenna 1 5 dBi Attached Monopole Whip 1 5 dBi Canada 1C Labeling Requirements Labeling requirements for Industry Canada are similar to those of the FCC A clearly visible label on the outside of the final product enclosure must display the following text Contains Model XBee Series 2 Radio 1 4214A XBEE2 The integrator is responsible for its product to comply with IC ICES 003 amp FCC Part 15 Sub B Unintentional Radiators ICES 003 is the same as FCC Part 15 Sub B and Industry Canada accepts FCC test report or CISPR 22 test report for compliance with I CES 003 2007 MaxStream Inc 66 Appendix C Migrating from the 802 15 4 Protocol This following are some of the differences in the ZigBee firmware assuming familiarity with the 802 15 4 application Zi
52. d Description Node Type Parameter Range Default Write Write parameter values to non volatile memory so that parameter modifications WR persist through subsequent resets CRE Note Once WR is issued no additional characters should be sentto the module until after the OKW response is received WB Write Binding Table Writes the current binding table to non volative memory CRE RE Restore Defaults Restore module parameters to factory defaults RE command does CRE not reset the ID parameter Software Reset Reset module Responds immediately with an OK then performs a FR reset 2 seconds later Use of the FR command will cause a network layer restarton the CRE node if SC or ID were modified since the last reset Network Reset R eset network layer parameters on one or more modules within a PAN Responds immediately with an OK then causes a network restart All network NR configuration and routing information is consequently lost C 0 1 If NR O Resets network layer parameters on the node issuing the command RE IF NR 1 Sends broadcast transmission to reset network layer parameters on all nodes in the PAN Node types that support the command C Coordinator Router E End Device Addressing Table 6 02 Addressing Commands AT Command DH2 DL t x r NI ZA SE DE Name and Description Destination Address High Set G et the upper 32 bits of the 64 bit destination addres
53. dentifies the UART data frame being Saro match Md 17 18 reported If Frame ID 0 no AT command d response will be given first LSB last Set to OxFFFE for Name of the broadcast TX or if the network command address is unknown 64 bit Destination Address Command Data byte 19 bytes 6 13 Command Options byte 16 byt 0x02 Apply changes on remote If indi Set to match the 64 bit address not set must be En iain a of the destination MSB first p u g before changes will take effect register If no characters present LSB last Broadcast k d All oth must be set to 0 0x000000000000FFFF other bits must the register is queried MaxStream 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Remote Command Response API Identifier Value 0x97 If a module receives a remote command response RF data frame in response to a Remote AT Command Request the module will send a Remote AT Command Response message out the UART Some commands may send back multiple frames for example Node Discover ND command Figure 7 12 Remote AT Command Response Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x97 cm Data ES Frame ID Byte 5 64 bit Responder i 16
54. dresses Index 64 bit Address 16 bit Network Address 0 0013 4000 4000 0001 1234 1 0013 4000 4000 0002 5678 2 0013 4000 4000 01A0 A479 3 0013 4000 4000 0220 1F70 NI String Addressing The NI string can alternatively be used to address a remote module To send a packet to an RF module using its NI string Transparent Mode Issue the DN Destination Node command using the NI Node Identifier string of the destina tion node as the parameter To send a packet to an RF module using its NI string API Mode Issue the DN command as stated above using the AT Command API frame When the DN command is issued a broadcast transmission is sent across the network to discover the module that has a matching NI Node Identifier parameter If a module is discovered with a matching NI string the DH and DL parameters will be configured to address the destination node and the command will return both the 64 bit Address and the 16 bit network address of the discovered node Data can be transmitted after the DN Destination Node command finishes the AO command See API Frames section for details Coordinator Addressing A Coordinator can be addressed using its 64 bit address or NI string as described in the NI String Addressing section Alternatively since the ZigBee Coordinator has a network address of 0 it can be addressed by its 16 bit network address 2007 Digi International Inc 28 XBee Series 2
55. e is received the initiator can then transmit data Route Discovery ZigBee employs mesh routing to establish a route between the source device and the destination Mesh routing allows data packets to traverse multiple nodes hops in a network to route data from a source to a destination Routers and coordinators can participate in establishing routes between source and destination devices using a process called route discovery The Route discovery process is based on the AODV Ad hoc On demand Distance Vector routing protocol 2007 Digi International Inc 21 Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks Figure 3 05 Sample Transmission Through a Mesh Network AODV Ad hoc On demand Distance Vector Routing Algorithm Routing under the AODV protocol is accomplished using tables in each node that store the next hop intermediary node between source and destination nodes for a destination node If a next hop is not known route discovery must take place in order to find a path Since only a limited number of routes can be stored on a Router route discovery will take place more often on a large network with communication between many different nodes Table 3 01 Node Destination Address Next Hop Address R3 Router 6 Coordinator C Router 6 Router 5 R5 Router 6 Router 6 When a source node must discover a route to a destination node it sends a broadcast route request comm
56. e its output state 2x per second after the router has joined At this point the operating channel and PAN ID can be read using the CH Operating Channel and ID PAN ID commands The 16 bit network address of the router can be read using the MY 16 bit Source Address command If API is enabled AP parameter gt 0 The API modem status Joined is sent out the UART If the JN command is enabled the router will send a node identification packet to the coordinator The Association Indication command can be used at any point during the router join routine to know the status of the startup operation 4 1 3 Joining an XBee Series 2 End Device to an Existing PAN Joining an end device to a PAN is similar to joining a router Once the end device joins a PAN however the end device cannot allow other devices to join to it If the Associate LED function is enabled D5 DIO5 Configuration command the Associate pin pin 15 will toggle its output 2007 Digi International Inc bo XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration state 2x per second after the end device has joined At this point the operating channel and PAN ID can be read using the CH Operating Channel and ID PAN ID commands The 16 bit network address of the end device can be read using the MY 16 bit Source Address command If API is enabled AP parameter gt 0 the modem status Joined is sent out
57. e multiple XBee based products ZigBee Application Layer Addressing Set read the Zigbee application layer addressing enabled attribute If enabled data packets will use the SE DE and CI commands to address Zigbee application layer source and destination endpoints and the cluster ID fields in all data transmissions ZA is only supported in the AT firmware Source Endpoint Set read the ZigBee application layer source endpoint value If ZigBee application layer addressing is enabled ZA command this value will be used as the source endpoint for all data transmissions SE is only supported in AT firmware The default value OxE8 Data endpoint is the MaxS tream data endpoint Destination Endpoint Set read Zigbee application layer destination ID value If ZigBee application layer addressing is enabled ZA command this value will be used as the destination endpoint all data transmissions DE is only supported in AT firmware The default value OxE8 is the MaxStream data endpoint 2007 Digi International Inc Node CRE CRE CRE CRE CRE CRE CRE CRE CRE CRE Parameter Range 0 OXF FFF FFFF 0 OXFFFFFFFF 0 OXFFFE read only 0 read only 0 OXFFFFFFFF read only 0 OxFFFFFFFF read only 20 B yte printable ASCII string 0 OXFFFF read only 1 OXEF 0 OXEF Default OxF FFF Coordinator 0 Router End Device OXF FFE OXF FFE factory
58. e of sight Range up to 400 ft 120 m Transmit P ower O utput 2mW 43dBm boost mode enabled software selectable 1 25mW 1dBm boost mode disabled RF Data Rate 250 000 bps Serial Interface Data Rate 1200 230400 bps software selectable non standard baud rates also supported 96 dBm boost mode enabled Receiver Sensitivity 95 dBm boost mode disabled Power Requirements Supply Voltage 2 1 3 6V output power 35mA 3 3 V boost mode disabled Operating Current Transmit max 40mA 3 3 V boost mode enabled Operating Current Receive 40mA 3 3 V boost mode enabled 38mA 3 3 V boost mode disabled Idle Current Receiver off 15mA Power down Current 1uA 25 C ISM 2 4 GHz Operating Frequency Band Dimensions 0 960 x 1 087 2 438cm x 2 761cm Operating Temperature 40 to 859 C industrial Antenna Options Integrated Whip Chip RPSMA or U FL Connector Networking amp S ecurity Supported Network Topologies Point to point Point to multipoint Peer to peer amp Mesh Number of Channels software selectable 16 Direct Sequence Channels Addressing Options PAN ID and Addresses Cluster IDs and Endpoints optional Agency Approvals United States FCC Part 15 247 OUR XBEE2 Chapter 1 XBee Series 2 OEM RF Modules Industry Canada IC 4214A XBEE2 Europe CE ETSI The ranges specified ar
59. e timer expires While the module is awake it will continue to send poll request messages to its parent to check for additional data The ST timer will be restarted anytime serial or RF activity occurs The module will resume sleep when the ST timer expires When the module wakes from sleep it asserts On Sleep pin 13 to provide a wake indicator to a host device If a host device wishes to sleep longer than SP time or to wake only when RF data arrives the SN command can be used to prevent On Sleep from asserting for a multiple of SP time For example if SP 20 seconds and SN 5 the On Sleep pin will remain de asserted low for up to 100 seconds 2007 Digi International Inc 15 XBee Series 2 RF Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation If CTS flow control is enabled CTS pin 12 is asserted OV when the module wakes and de asserted high when the module sleeps allowing for communication initiated by the host if desired MaxStreaim 2007 Digi International Inc 16 3 ZigBee Networks 3 1 ZigBee Network Formation A ZigBee Personal Area Network PAN consists of one coordinator and one or more routers and or end devices A ZigBee Personal Area Network PAN is created when a coordinator selects a channel and PAN ID to start on Once the coordinator has started a PAN it can allow router and end device nodes to join the PAN When a router or end device joins a PA
60. e typical when using the integrated Whip 1 5 dBi and Dipole 2 1 dBi antennas The Chip antenna option provides advantages in its form factor however it typically yields shorter range than the Whip and Dipole antenna options when transmitting outdoors For more information refer to the XBee Series 2 Antenna application note located on MaxStream s web site http www maxstream net support knowledgebase article php kb 153 2007 Digi International Inc Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 1 XBee Series 2 OEM RF Modules 1 3 Mechanical Drawings Figure 1 01 Mechanical drawings of the XBee Series 2 OEM RF Modules antenna options not shown XBee top view 0 299 Y 7 59mm i 0 257 6 53mm PIN 1 XBee side views o PIN 20 o 1 087 vase 0 020 o 27 61mm 0 51mm e 0 031 _ 0 110 PIN 10 11 Bhield to PCB 0 79mm 2 79mm a 0 866 2 03mm 40 51 0 050 22 00mm 1 27 0 960 r3 1 24 38mm i 1 i 0 160 1 4 06mm 0 079 2 00mm 1 4 Mounting Considerations The XBee Series 2 RF Module through hole was designed to mount into a receptacle socket and therefore does not require any soldering when mounting it to a board The XBee Series 2 Development Kits contain RS 232 and USB interface boards which use two 20 pin receptacles to receive modules Figure 1
61. ed the coordinator functions like a router it can participate in routing packets and be a source or destination for data packets One coordinator per PAN Establishes Organizes PAN Can route data packets to from other nodes Can be a data packet source and destination Mains powered Refer to the XBee Series 2 coordinator section for more information Router A node that creates maintains network information and uses this information to determine the best route for a data packet A router must join a network before it can allow other routers and end devices to join to it A router can participate in routing packets and is intended to be a mains powered node Several routers can operate in one PAN Can route data packets to from other nodes Can be a data packet source and destination Mains powered Refer to the XBee Series 2 router section for more information End device End devices must always interact with their parent to receive or transmit data See joining definition They are intended to sleep periodically and therefore have no routing capacity An end device can be a source or destination for data packets but cannot route packets End devices can be battery powered and offer low power operation Several end devices can operate in one PAN Can be a data packet source and destination All messages are relayed through a coordinator or router Lower power modes ZigBee Protoco
62. ed as commands Refer to the API Mode section for an alternate means of configuring modules AT Command Mode To Enter AT Command Mode Send the 3 character command sequence and observe guard times before and after the command characters Refer to the Default AT Command Mode Sequence below Default AT Command Mode Sequence for transition to Command Mode No characters sent for one second GT Guard Times parameter Ox3E8 Input three plus characters within one second CC Command Sequence Character parameter Ox2B No characters sent for one second GT Guard Times parameter Ox3E8 All of the parameter values in the sequence can be modified to reflect user preferences NOTE Failure to enter AT Command Mode is most commonly due to baud rate mismatch Ensure the Baud setting on the PC Settings tab matches the interface data rate of the RF module By default the BD parameter 3 9600 bps To Send AT Commands Send AT commands and parameters using the syntax shown below Figure 2 05 Syntax for sending AT Commands AT ASCII Space Parameter Carriage Prefix T Command Optional 7 Optional HEX Return CEST Example ATDL 1F CR To read a parameter value stored in the RF module s register omit the parameter field The preceding example would change the RF module Destination Address Low to Ox1F To store the new value to non volatile long term m
63. ee Series 2 TX Current 40 mA 93 3 V RX Current 40 mA 93 3 V Power down Current lt 1 pA 25 Easy to Use Retries and Acknowledgements DSSS Direct Sequence Spread Spectrum Each direct sequence channel has over 65 000 unique network addresses available Point to point point to multipoint and peer to peer topologies supported Self routing self healing and fault tolerant mesh networking No configuration necessary for out of box RF communications AT and API Command Modes for configuring module parameters Small form factor Extensive command set Free X CTU Software Testing and configuration software Free amp Unlimited Technical Support 1 1 1 Worldwide Acceptance FCC Approval USA Refer to Appendix A p50 for FCC Requirements Systems that contain XBee Series 2 RF Modules inherit MaxStream Certifications ISM Industrial Scientific amp Medical 2 4 GHz frequency band Manufactured under I SO 9001 2000 registered standards XBee Series 2 RF Modules are optimized for use in US Canada Australia srael FE and Europe contact MaxStream for complete list of agency approvals 2007 Digi International Inc Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 1 2 Specifications Table 1 01 Specifications of the XBee Series 2 OEM RF Module Specification XBee Series 2 Performance Indoor Urban Range up to 133 ft 40 m Outdoor RF lin
64. ee of the remotes parent or OxFFFE if the remote has no parent Device Type 1 byte 3 8 0 Coordinator 1 0 01 Packet Acknowledged 2 5 End Devise 0x02 Packet was a broadcast packet Source Action 1 byte 16 bit Network Address bytes 16 17 ytes 4 1 Frame sent by node identification pushbutton event see DO command 9 2 Frame sent after joining Set to the 16 bit event occurred see JN network address of command the remote Set to OxFFFE if unknown Profile ID 2 bytes 64 bit Address bytes 5 10 Set to bytes 18 25 MaxStream s Profile ID ilndicates the 64 bit address of the remote module that transmitted the node identification frame Manufacturer ID 2 bytes 11 Set to MaxStream s Manufacturer ID 2007 Digi International Inc 55 8 Examples 8 0 1 Starting an XBee Network Start the coordinator 1 Determine the operating channels list using the SC Scan Channels command and the PAN ID to operate using the ID PAN ID command The default SD Scan Duration parameter value should suffice If these values are changed from the defaults they should be written to non volatile memory using the WR Write command 2 The Associate LED if enabled using the D5 DIO5 Configuration parameter will start blink ing 1x per second once the coordinator has started If is enabled AP parameter gt 0 T
65. emory subsequently send the WR Write command For modified parameter values to persist in the module s registry after a reset changes must be saved to non volatile memory using the WR Write Command Otherwise parameters are restored to previously saved values after the module is reset System Response When a command is sent to the module the module will parse and execute the command Upon successful execution of a command the module returns an OK message If execution of a command results in an error the module returns an ERROR message To Exit AT Command Mode 1 Send the ATCN Exit Command Mode command followed by a carriage return OR 2 If no valid AT Commands are received within the time specified by CT Command Mode Timeout Command the RF module automatically returns to Idle Mode For an example of programming the RF module using AT Commands and descriptions of each configurable parameter refer to the Examples and XBee Series 2 Command Reference Tables chapters 2007 Digi International Inc 14 Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation 2 2 5 Sleep Mode Sleep modes allow the RF module to enter states of low power consumption when not in use To enter Sleep Mode one of the following conditions must be met in addition to the module having a non zero SM parameter value Sleep RQ pin 9 is asserted The module is idle
66. ength Indicator Digital 10 PWM DIO11 Digital 1 0 11 reserved Do not connect o sD wm wj DTR SLEEP_RQ DIO8 Pin Sleep Control Line or Digital 10 8 GND Ground DIO4 ither Digital 1 0 4 CTS 0107 ither Clear to Send Flow Control or Digital I O 7 ON SLEEP DIO9 Output Module Status Indicator or Digital I O 9 reserved Do not connect Associate DIO5 Either Associated Indicator Digital 1 0 5 RTS DIO6 Either Request to Send Flow Control Digital 1 0 6 AD3 0103 Either Analog Input 3 or Digital 1 0 3 AD2 DIO2 Either Analog Input 2 or Digital 1 0 2 AD1 DIO1 Either Analog Input 1 or Digital I O 1 ADO 0100 ID Button Either Analog Input 0 Digital 1 0 0 or Node Identification Design Notes Minimum connections VCC GND DOUT amp DIN Minimum connections to support serial firmware upgrades VCC GND DIN DOUT RTS amp Signal Direction is specified with respect to the module Module includes a 30k Ohm resistor attached to RESET Several of the input pull ups can be configured using the PR command Unused pins should be left disconnected MaxStreaim 2007 Digi International Inc 7 XBee Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 1 XBee Series 2 OEM RF Modules 1 6 Electrical Characteristics Table 1 03 DC Characteristics of the XBee Series 2 VCC 2 8 3 4 VDC Parameter Condition
67. er Down on the module assembly Ground Connected to DCD pin1 Provides RTS flow control or enables Command Mode Provides CTS flow control Optional power input that is connected internally to the positive lead of the front power connector Functions listed in the implementation column may not be available at the time of release 2007 Digi International Inc 70 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide Wiring Diagrams Figure B 04 DTE node RS 232 male DB 9 connector wired to a DCE Module Assembly female DB 9 MaxStream RS 232 RS 232 Device DTE Module Assembly DCE Transmi Receive 3 MaxStreaim 2007 Digi International Inc 71 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide Figure B 05 DCE Module Assembly female DB 9 connector wired to a DCE node RS 232 male DB 9 MaxStream RS 232 Module Assembly DCE RS 232 Device DCE male to male NULL Modem Adapter fac long CTS gt CTS 8 m 78 gt RXD 4 amp TXD DCD 1 1 DTR DTR 4 4 R S DS Transmit Sample Wireless Connection DTE lt gt DCE lt gt DCE lt gt DCE Receive AA AN Figure B 06 Typical wireless link between DTE and DCE nodes cable ELM NULL modem adapter AVAN ia e 3 o N N TI Computer DTE 2 Module Assemblies DCE Target Device DCE
68. es include checksum but not the delimiter and length If the checksum is correct the sum will equal OxFF 7 0 2 API Frames Frame data of the UART data frame forms an API specific structure as follows Figure 7 03 UART Data Frame amp API specific Structure Start Delimiter Length Frame Data Checksum Byte 1 Bytes 2 3 Bytes 4 n Byte n 1 Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data cmdiD cmdData The cmdlD frame API identifier indicates which API messages will be contained in the cmdData frame Identifier specific data Note that multi byte values are sent big endian The XBee Series 2 modules support the following API frames Table 7 010 API Frame Names and Values API Frame Names Values Modem Status 0x8A Advanced Modem Status 0x8C 0 08 AT Command Queue Parameter Value 0x09 AT Command Response 0x88 Remote Command Request 0x17 Remote Command Response 0x97 ZigBee Transmit Request 0x10 Explicit Addressing ZigBee Command 0x11 Frame ZigBee Transmit Status 0x88 2007 Digi International Inc 44 XBee Series 2 ZigBee RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Table 7 010 API Frame Names and Values API Frame Names Values poro iN ul E Wurm Modem Status API Identifier Value 0x8A RF module status messa
69. etting these values as needed In AT firmware application layer addressing must be enabled using the ZA command When application layer addressing is enabled the DE and SE commands specify the source and destination endpoints and the CI command sets the cluster ID that will be used in the transmission In API firmware the Explicit Addressing ZigBee Command frame 0x11 can be used to configure the endpoint and cluster ID addressing parameters as needed The destination device can indicate application layer addressing information depending on the AO parameter Some endpoint values are reserved for use by the XBee Series 2 modules and should not be used Please refer to the following tables for these values Table 4 03 XBee Series 2 Endpoint allocation Endpoint Description 0 ZigBee Device Objects endpoint Reserved for ZigBee stack 0x01 OxDB 219 Available endpoints Reserved for MaxStream Use OxE6 230 Command Endpoint OxE8 232 Data Endpoint 239 0xF 0 240 Reserved for Ember Use 4 2 3 XBee Series 2 Binding Table The XBee Series 2 modules maintain a binding table that contains addressing information for all non broadcast RF transmissions and receptions The binding table contains a destination 64 bit address a type field and endpoints for each transmission Binding table entries can be accessed 2007 Digi International Inc 29 XBee Series 2 ZigBee OEM RF Modules v1 x2x
70. fit in the serial transmit buffer the entire RF data packet is dropped Cases in which the serial transmit buffer may become full resulting in dropped RF packets 1 Ifthe RF data rate is set higher than the interface data rate of the module the module could receive data faster than it can send the data to the host 2 Ifthe host does not allow the module to transmit data out from the serial transmit buffer because of being held off by hardware flow control 2 1 3 Serial Flow Control The RTS and CTS module pins can be used to provide RTS and or CTS flow control CTS flow control provides an indication to the host to stop sending serial data to the module RTS flow control allows the host to signal the module to not send data in the serial transmit buffer out the uart RTS and CTS flow control are enabled using the D6 and D7 commands CTS Flow Control If CTS flow control is enabled D7 command when the serial receive buffer is 17 bytes away from being full the module de asserts CTS sets it high to signal to the host device to stop sending serial data CTS is re asserted after the serial receive buffer has 34 bytes of space 2007 Digi International Inc 10 XBee Series 2 RF Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation RTS Flow Control If flow RTS control is enabled D6 command data in the serial transmit buffer will not be sent out the DOUT pin as long as
71. gBee Command Set Address Assignment API AT Firmware Versions Also refer to the Getting Started section for more information ZigBee Command Set Modified Commands CH Read Only command that displays the operating channel that was selected from SC MY Read Only command that displays the assigned 16 bit network address of the device Al ZigBee definitions added to this command See documentation A1 A2 and CE commands are not supported New Commands NJ Node Join Time This value determines how long a Coordinator or Router will allow other devices to join to it This command is supported on Coordinators amp Routers only MP 16 bit Parent Network Address This value represents the 16 bit parent network address of the module BH Broadcast Hops This value sets the maximum number of hops for each broadcast data transmission Setting this to O will use the maximum number of hops API AT Firmware Versions The 802 15 4 firmware supports the AP command for setting the module into No API AP 0 without escaping AP 1 or API with escaping AP 2 modes The first digit in the 802 15 4 firmware versions is a 1 The ZigBee firmware comes in different versions to support the API interface AP 1 2 modes or the AT command set AP 0 mode The first digit in the ZigBee firmware versions is an 8 The following is a list of firmware versions 1 0xx Coordinator AT Command suppo
72. ges are sent from the module in response to specific conditions Figure 7 04 Modem Status Frames Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x8A cmdData Status Byte 5 Hardware reset Watchdog timer reset Associated Disassociated Synchronization Lost Beacon enabled only Coordinator realignment Coordinator started RONM O ou m m ou Advanced Modem Status Frame Identifier Value Ox8C Note This API Frame may change or become obsolete in future versions Do not use 2007 Digi International Inc 45 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Figure 7 05 Advanced Modem Status Frames Do Not Use Start deliminator Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific data 0x8C cmdData Bind Table Index Bind Type Status ID Bind Type 1 Unicast Binding 1 Bind Type 2 Aggregation Binding Bind Type 3 Multicast Binding MaxStreaim 2007 Digi International Inc 46 Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation AT Command API Identifier Value 0x08 Allows for module parameter registers to be queried or set Figure 7
73. h a terminal program interface use the following syntax Figure D 05 Syntax for sending AT Commands AT ASCII Space Parameter Carriage Prefix Command Optional Optional HEX Return Example ATDL 1F CR 2007 Digi International Inc 76 Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide MaxStream NOTE To read a parameter value stored in a register leave the parameter field blank The example above issues the DL Destination Address Low command to change destination address of the module to Ox1F To save the new value to the module s non volatile memory issue WR Write command after modifying parameters 2007 Digi International Inc 77 Appendix E Additional Information 1 Year Warranty XBee Series 2 RF Modules from MaxStream Inc the Product are warranted against defects in materials and workmanship under normal use for a period of 1 year from the date of purchase In the event of a product failure due to materials or workmanship MaxStream will repair or replace the defective product For warranty service return the defective product to MaxStream shipping prepaid for prompt repair or replacement The foregoing sets forth the full extent of MaxStream s warranties regarding the Product Repair or replacement at MaxStream s option is the exclusive remedy THIS WARRANTY IS GIVEN IN LIEU OF ALL OTHER WARRANTIES EXPRESS OR IMPLIED AND MAX
74. hapter 7 API Operation AT Command Response API Identifier Value 0x88 Response to previous command In response to an AT Command message the module will send an AT Command Response message Some commands will send back multiple frames for example the ND Node Discover command Figure 7 10 AT Command Response Frames Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte Identifier Identifier specific Data 0x88 cmdData Brame ID Byte 5 AT Command Bytes 6 7 Status Byte 8 Value Byte s 9 n Identifies the UART data frame being reported Command Name Two 0 OK Note If Frame ID 0 in AT Command Mode ASCII characters that 1 ERROR AT Command Response will be given identify the AT Command 2 Invalid Command of the requested register 3 Invalid Parameter Remote AT Command Request API Identifier Value 0x17 Allows for module parameter registers on a remote device to be queried or set Figure 7 11 Remote AT Command Request Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x017 cmdData 16 bit Destination Network Frame ID Byte 5 bytes 14 15 Command Name bytes I
75. he Modem Status Coordinator Started is sen out the UART The AI Association Indication parameter will be 0 signifying a successful startup 4 The MY 16 bit Source address attribute is 0 the 16 bit network address of a ZigBee coordinator After startup the coordinator will allow joining based on its NJ Node Join Time value o e Bx String identifier should be written to non volatile memory using the WR Write command to be preserved through power loss Adding a Child router t It is recommended that the coordinator be configured with an NI String identifier This NI 1 Determine the operating channel list SC and the desired PAN ID to join 1D OxFFFF join any Pan The default SD parameter should suffice If these values are changed from the defaults they should be written to non volatile memory using the WR Write command 2 The router on power up will attempt to locate a parent to join according to its SC and ID parameters 3 Once the router has joined a parent the Associate LED if enabled D5 will start blinking 2x per second The ID and CH parameters will reflect the operating PAN ID and Channel The MY parameter will reflect the 16 bit network address of the router If API is enabled AP parameter gt 0 The API Modem Status Joined is sent out the UART 4 Ifthe router is not joining as expected the Al Association Indication parameter can be read to determine the cause of fai
76. he end device is awake with the ST timer running 5 4 or if Sleep is de asserted SM 1 the end device will send poll requests every 100ms to ensure it receives any new RF data from its parent 4 3 2 Parent Operation When an end device joins a ZigBee PAN it becomes a child of the coordinator or router device it joined to and the device that allowed the join becomes the end device s parent Thereafter the parent will manage RF data packets for the end device If the parent receives an RF packet destined for the end device it will store the data packet until one of the following occurs The parent runs out of storage space and cannot store a new packet A packet has been stored for a period of time The destination end device child sends a poll request transmission to request the data packet When the parent stores a packet destined for an end device child it stores the packet for a maximum time set by SP The actual storage time is computed as SP 2 5 not exceeding 30 seconds If end devices implement cyclic sleep SP should be set the same on a parent as it is on their sleeping end device children In the case of pin sleep where RF data could be received the end device should wake within SP time to ensure data is not lost 4 4 1 O Line Configuration The XBee Series 2 modules support both analog input and digital IO line modes on several configurable pins Configuring A D and Digital Lines The following ta
77. ignificant byte first LSB least significant last MSB most significant byte first LSB least significant last 0x01 Packet Acknowledged 0x02 Packet was a broadcast packet Up to 72 Bytes per packet MaxStream 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation ZigBee Explicit Rx Indicator Identifier Value 0x91 When the modem receives a ZigBee RF packet it is sent out the UART using this message type when AO 1 Figure 7 17 ZigBee Explicit Rx Indicators Start delimiter Length Frame Data Checksum Ox7E MSB LSB Structure 1 Byte AP Identifier Identifier specific data 0x91 cmdData BN Cluster ID byte 17 18 d 64 bit Source address bytes 5 12 5 Cluster ID the packet was addressed 1 el aS to Destination 64 bit extended address Set _ pee i to OxFFFF for broadcast Profile ID byte 19 20 Profile ID the packet was addressed to Multiple profile IDs 16 bit Source network address 13 14 cM 599 natyeteugpersd Destination network address if known Set to Oxi FFE for broadcast transmissions or if the destination network address is not known Options byte 21 di m 7 0x01 Packet Acknowledged 0x02 Packet was a broadcast packe
78. ing product enclosure that displays the contents shown in the figure below Required FCC Label for OEM products containing the XBee Series 2 RF Module Contains FCC ID OUR XBEE2 The enclosed device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions i this device may not cause harmful interference and ii this device must accept any interference received including interference that may cause undesired operation FCC Notices I MPORTANT The XBee Series 2 OEM RF Module has been certified by the FCC for use with other products without any further certification as per FCC section 2 1091 Modifications not expressly approved by MaxStream could void the user s authority to operate the equipment I MPORTANT OEMs must test final product to comply with unintentional radiators FCC section 15 107 amp 15 109 before declaring compliance of their final product to Part 15 of the FCC Rules IMPORTANT The RF module has been certified for remote and base radio applications If the module will be used for portable applications the device must undergo SAR testing This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation This equipment generates uses and can radiate radio frequency energy and if
79. irely by the application These endpoints may be added removed or viewed in the API firmware using the following commands See the command descriptions for command formatting details At present changes to the endpoint table are saved to non volatile memory when WR is issued Table 4 07 ZigBee Data Transmissions Addressing Fields Command Name Description Add Endpoint Creates an aii specified user endpoint E Remove E ndpoint Removes an SE ee a specified user endpoint EV View Endpoint Views one or more endpoints in the endpoint table 2007 Digi International Inc 31 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration 4 3 Sleep Mode Operation XBee Series 2 modules support sleep mode operation in the Router End Device firmware Sleep modes allow a ZigBee end device to enter a low power mode when idle and wake as needed to transmit or receive data See Chapter 2 RF Module Operation for more information about different sleep modes 4 3 1 End Device Operation ZigBee end devices rely on a parent router or coordinator to remain awake and receive any data packets destined for the end device When the end device wakes from sleep it sends a transmission poll request to its parent asking if the parent has received any RF data destined for the end device The parent upon receipt of the poll request will send an RF response and the buffered data if present If t
80. it Destination Address bytes 6 13 Destination 64 bit extended address Set Profile ID bytes 20 21 to OxFFFF for broadcast L8 Multiple profile IDs not supported Set to 0xC105 16 bit Destination Network Address byted 14 15 9 Broadcast Radius byte 22 Destination network address if known Set to 3 Sets the maximum number of hops a broadcast transmission can traverse If setto 0 the transmission radius will be setto OxFFFE for broadcast transmissions or if the destination network address is not known the network maximum hops value D 10 Options byte 23 Source endpoint byte 16 4 a 0x08 Send multicast transmission unicast sent if not set All other bits must be setto 0 Source endpoint for the transmission 11 Destination endpoint byte 17 5 RF Data byte 24 n Up to 72 bytes Destination endpoint for the transmission MaxStream 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation ZigBee Transmit Status API Identifier Value Ox8B When a TX Request is completed the module sends a TX Status message This message will indicate if the packet was transmitted successfully or if there was a failure Figure 7 15 TX Status Frames Start Delimiter Length Frame Data Checksum Ox7E MSB LSB AP
81. l PAN Personal Area Network A data communication network that includes a coordinator and one or more routers end devices 2007 Digi International Inc 61 Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter A Definitions Table A 01 Terms and Definitions Joining Network Address The process of a node becoming part of a ZigBee PAN A node becomes part of a network by joining to a coordinator or a router that has previously joined to the network During the process of joining the node that allowed joining the parent assigns a 16 bit address to the joining node the child The 16 bit address assigned to a node after it has joined to another Operating Channel node The coordinator always has a network address of 0 The frequency selected for data communications between nodes The operating channel is selected by the coordinator on power up Energy Scan A scan of RF channels that detects the amount of energy present on the selected channels The coordinator uses the energy scan to determine the operating channel Route Request Broadcast transmission sent by a coordinator or router throughout the network in attempt to establish a route to a destination node Route Reply Unicast transmission sent back to the originator of the route request Itis initiated by a node when it receives a route request packet and its address matches the Destination Address in the route
82. l Ge eee ee ee 0x01 A D Sensor read thermometer if present Set to OXFFFF if not found Set to OxFFFE if unknown 0x02 Temperature Sensor read 0x80 Water present module CD pin low MaxStreaim 2007 Digi International Inc 54 Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Node Identification I ndicator API Identifier Value 0x95 This frame is received on the coordinator when a module transmits a node identification message to identify itself to the coordinator when AO 0 The data portion of this frame is similar to a Node Discovery response frame see ND command Figure 7 19 Node Identification Indicator Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x95 cmdData bit Ad bytes 5 12 64 bit Address bytes NI String bytes 26 n Indicates the 64 bit address of Node identifier string on the remote module that the remote device The transmitted the node NI String is terminated identification frame with a NULL byte 0x00 Parent Address 2 bytes 16 bit Network Address bytes 13 14 L 7 Indicates the 16 bit address x Set to the 16 bit network address of the remote Set to OxFFFE if unknown Receive Options byte 15
83. l input lines Bytes Name Description 1 Sample sets in packet Number of sample sets in the packet Each bit in the digital channel mask corresponds to one digital IO line The bits from LSB to MSB correspond to DOIO DOI5 on the module 2 Digital Channel Mask For example a digital channel mask of 0x002F means DIO0 1 2 3 and 5 are enabled as digital input lines Each bit in the analog channel mask corresponds to one analog channel The bits from LSB to MSB correspond to AINO AIN7 on the module 1 Analog Channel Mask For example if the analog channel mask is 0x06 AINI and AIN3 are enabled as analog input lines A sample set consisting of 1 sample for each enabled ADC and or DIO channel If any digital input lines are enabled the first two bytes indicate the state of all enabled digital input lines Each bit in these two bytes corresponds to one digital IO line similar to the way each bit in the diglossia channel mask corresponds Note only the digital input line that are enabled in the detail channel mask have valid readings Channels that are not enabled as digital input lines will return a 0 in the sampled data set If no pins are configured as Var Sampled Data Set digital inputs these 2 bytes will be omitted Following the digital input data if any each enabled analog channel will return 2 bytes 10bits The analog data is scaled such that 0 represents OV and Ox3F F 1 2V The analog input lines cannot measure more
84. lure Verify the PAN contains a coordinator or nearby joined router that has matching Channel SC CH and PAN ID ID settings and is allowing nodes to join to it NJ parameter Oo String identifier should be written to non volatile memory using the WR Write command to be preserved through power loss Once the router has joined a PAN the router will allow joining based on the NJ parameter It is recommended that the router be configured with a unique NI String identifier This NI Transmit Data AT Firmware 1 Start a coordinator refer to instructions above 2 Add one or more Child router s to the coordinator refer to instructions above 3 Once the coordinator has started all routers and End Devices should join to a parent and their Associate LED should blink 2x per second 4 lf any nodes have not joined read the Al command to determine why Issue the ATND command on the coordinator to get a list of all nodes on the network 6 Usethe Terminal tab of the X CTU Software to send serial data between nodes The data Ui should be transmitted from the source to the destination node as specified by the DH amp DL parameters 7 Optional Change the Destination address on any node to one of the 64 bit addresses dis covered using the ND command in step 5 DH DL Commands or in the ZigBee Transmit Request API Frame Then repeat step 6 to transmit data 2007 Digi International Inc 56 XBee Series 2
85. multicast transmission Unicast Upto 72 Bytes acknow Broadcast TX or if Network sent if not set salads Setting Frame ID to 0 will disable response Address is not known All other bits must be set to 0 frame 64 bit Address bytes 6 13 MSB first LSB last Broadcast 0x000000000000FFFF Broadcast Radius byte 16 Sets maximum number of hops a broadcast transmission can traverse If set to 0 the TX radius will be set to the network maximum hops value 10 MaxStreaim 2007 Digi International Inc 50 Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Explicit Addressing ZigBee Command Frame API Identifier Value 0x11 Allows ZigBee application layer fields endpoint and cluster ID to be specified for a data transmission Figure 7 14 Explicit Addressing ZigBee Command Frame Start delimiter Length Frame Data Checksum Ox7E MSB LSB APF specific Structure 1 Byte AP identifier Identifier specific data 0x12 cmdData Frame ID byte 5 1 Identifies the UART data frame for the host 6 correlate with a subsequent ACK Reserved byte 18 acknowledgement Setting Frame ID to 0 Setto 0 will disable response frame 7 Cluster ID byte 19 Cluster ID used in the transmission 64 b
86. national Inc 17 XBee Series 2 RF Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks Once the router joins the PAN it can communicate with other devices on the PAN and allow new devices to join to it 3 1 3 Joining an End Device When an end device first comes up it must also locate and join a PAN End devices follow the same process as a router to join a PAN Once the end device has successfully joined a PAN it can communicate with other devices on the PAN However since end devices cannot route data they must always communicate directly with their parent and allow the parent to route data in its behalf Figure 3 02 Demonstration of Beacon Request and Beacon transmissions that take place during joining Router PAN ID 15 Channel 2 42 GHz Router PAN ID 301 Channel 2 46 GHz Coordinator PAN ID 12 Channel 2 45 GHz Beacon request command sent out Joining Device Router PAN 10 15 Channel 2 42 GHz Coordinator Router PAN ID 12 PAN ID 301 Channel 2 45 GHz Channel 2 46 GHz Beacons returned with PAN IDs and Channels they are operating on Joining Device MaxStreaimm 2007 Digi International Inc 18 Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks 3 2 ZigBee Network Communications Zigbee supports device addressing and application layer addressing
87. nd Parameter Value M value was arbitrarily selected A string parameter used with the NI Node Identifier ND Node Discover and DH Destination Address High command is terminated with a 0x00 character AT Command Queue Parameter Value API Identifier Value 0x09 This API type allows module parameters to be queried or set In contrast to the AT Command API type new parameter values are queued and not applied until either the AT Command 0x08 API type or the AC Apply Changes command is issued Register queries reading parameter values are returned immediately Figure 7 9 AT Command Frames Note that frames are identical to the AT Command API type except for the API identifier Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte API Identifier Identifier specific Data 0x09 cmdData Frame ID Byte 5 ee AT Command Bytes 6 7 Parameter Value Byte s 8 n ps Identifies the UART data frame for the host to correlate with a subsequent ACK acknowledgement If set to 0 no response is sent Command Name Two ASCII characters that identify the AT Command If present indicates the requested parameter value to set the given register If no characters present register is queried 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 C
88. nd ID PAN ID commands The 16 bit address of the coordinator is always If API is enabled AP parameter gt 0 The modem status coordinator Started frame is sent out the UART The AI Association Indication command can be used at any point during the coordinator startup routine to determine the status of the startup operation 4 1 2 Joining an XBee Series 2 Router to an existing PAN Before a router can participate in a ZigBee network the router must locate a coordinator or another router that has already joined a PAN and attempt to join to it To do this it sends a beacon request frame on each of the SC channels and listens for beacon frames The scan duration on each channel is determined by the SD parameter The joining router will evaluate the received beacons to find a coordinator or router that is allowing joins on a valid PAN ID and attempt to join to that device If ID OxFFFF the router will attempt to join to a device on any PAN ID Otherwise the router will only attempt joining with a device that operates on the PAN ID specified by the ID parameter If a valid router coordinator is found the router will attempt to join to that node If the join succeeds the Router has successfully started After the Router has started it will allow nodes to join to it for a time based on the NJ Node Join Time parameter If the Associated LED function is enabled D5 DIO5 Configuration command the Associate pin pin 15 will toggl
89. not installed and used in accordance with the instructions may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one or more of the following measures Re orient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect equipment and receiver to outlets on different circuits or Consult the dealer or an experienced radio TV technician for help FCC Approved Antennas 2 4 GHz The XBee Series 2 RF Module can be installed utilizing antennas and cables constructed with standard connectors Type N SMA TNC etc if the installation is performed professionally and according to FCC guidelines For installations not performed by a professional non standard connectors RPSMA RPTNC etc must be used The modules are FCC approved for fixed base station and mobile applications on channels OxOB Ox1A If the antenna is mounted at least 20cm 8 in from nearby persons the application is considered a mobile application Antennas not listed in the table must be tested to comply with FCC Section 15 203 Unique Antenna Connectors and Section 15 247 Emissions 2007 MaxStream Inc 63 Xbee Series 2 Zig
90. nown route discovery will take place for the purpose of establishing a route to the destination node If a module with a matching network address is not discovered the packet is discarded The data will be transmitted once a route is established If route discovery fails to establish a route the packet will be discarded Figure 2 04 Transmit Mode Sequence Successful Transmission 16 bit Network Address Known Transmit Data New Transmission 16 bit Network Address Discovery Route Discovery 16 bit Network Address Discovered Route Discovered Data Discarded When data is transmitted from one node to another a network level acknowledgement is transmitted back across the established route to the source node This acknowledgement packet indicates to the source node that the data packet was received by the destination node If a network acknowledgement is not received the source node will re transmit the data See Data Transmission and Routing in chapter 3 for more information 2007 Digi International Inc 13 Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation 2 2 3 Receive Mode If a valid RF packet is received the data is transferred to the serial transmit buffer 2 2 4 Command Mode To modify or read RF Module parameters the module must first enter into Command Mode a state in which incoming serial characters are interpret
91. nput single D3 AD3 DIO3 Configuration Select R ead function for AD3 DIO 3 CRE ended 0 3 Digital input 4 Digital output low 5 Digital output high 0 3 5 0 Disabled 3 Digital input D4 DIO4 Configuration Select R ead function for DIO4 CRE 4 Digital output low 0 5 Digital output high Set read the bit field that configures the internal pull up resistor status for the 1 0 lines 1 specifies the pull up resistor is enabled 0 specifies no pullup Bits 0 DIO4 Pin 11 1 AD3 DIO3 Pin 17 2 AD2 DIO2 Pin 18 3 AD1 DIO1 Pin 19 4 ADO DIOO Pin 20 PR 5 RTS DIO6 Pin 16 CRE 0 OXIFFF 0 OX1FFF 6 DTR Sleep Request 0108 Pin 9 7 DIN Config Pin 3 8 Associate DIO5 Pin 15 9 On Sleep DIO9 Pin 13 10 DIO12 Pin 4 11 PWM0 RSSI DIO10 Pin 6 12 PWM1 DIO11 Pin 7 2007 Digi International Inc 41 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 6 XBee Series 2 Command Reference Tables Diagnostics Table 6 07 Diagnostics Commands AT bcc Parameter Range Default Command Name and Description Type VR Firmware Version Read firmware version of the module CRE 0 OxFFFF read only Factory set HV Hardware Version Read hardware version of the module CRE 0 read only Factory set Supply Voltage Reads the voltage on the Vcc pin To convertthe reading to a mV 90V reading divide the read value by 1023 and multiply by
92. nts or cluster IDs application addressing can be used to include endpoint and cluster ID information in the transmission Device addressing supports transmissions to a destination 64 bit address a destination NI string the ZigBee PAN coordinator all devices on the PAN broadcast all devices on a multicast group Application layer addressing supports transmissions to all of the above device addressing destinations specific endpoints on a destination device specific cluster IDs on a destination device 4 2 1 Device Addressing XBee Series 2 modules can be identified by their unique 64 bit addresses or a user configurable ASCII string identifier The 64 bit address of a module can be read using the SH and SL commands The ASCII string identifier is configured using the NI command To transmit using device addressing only the destination address must be configured The destination address can be specified using either the destination device s 64 bit address or its NI string The XBee modules also support coordinator and broadcast addressing modes Device addressing in the AT firmware is configured using the DL DH or DN commands In the API firmware the ZigBee Transmit Request API frame 0x10 can be used to specify destination addresses 64 Bit Addressing Transparent To address a node by its 64 bit address the destination address must be set to match the 64 bit address of the remote In the AT firmwa
93. ode enabled 1 Node types that support the command C Coordinator R Router E End Device Serial I nterfacing 1 O Table 6 05 Serial Interfacing Commands AT inti Node Name and Description Parameter Range Default 1 2 API Enable Enable API Mode 1 APl enabled AP The AP parameter is only applicable when using modules that contain the following CRE 2 APl enabled 1 firmware versions 1 1xx coordinator 1 3xx router end device Em characters 2007 Digi International Inc Qo XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 6 XBee Series 2 Command Reference Tables Table 6 05 Serial Interfacing Commands AT Node Command Name and Description Parameter Range 0 Default receive Options Configure options for AP I Current options select the type of receive indicators enabled frame to send out the Uart for received RF data packets CRE 1 Explicit Rx data 0 indicator API frame enabled 0x91 0 7 standard baud rates 0 1200 bps Interface Data Rate S et R ead the serial interface data rate for communication between me the module serial port and host 3 9600 BD Any value above 0x07 will be interpreted as an actual baud rate When a value above CRE m 3 4 19200 0x07 is sent the closest interface data rate represented by the number is stored in the 5 238400 BD register 6 257600 7 2115200 0x80 0x38400 non standard rate
94. oming signal strength and the module s receiver sensitivity 3 LEDs ON Very Strong Signal gt 30 dB fade margin 2 LEDs Strong Signal gt 20 dB fade margin 1 LED ON Moderate Signal gt 10 dB fade margin 0 LED ON Weak Signal 10 dB fade margin B 11c USB Port Standard Type B OEM connector is used to communicate with OEM host and power the RF module B 12a DI P Switch MaxStreaim 2007 Digi International Inc 74 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide Figure D 03 Back View DIP Switch functions are not supported in this release Future down loadable firmware versions will support the DIP Switch configurations 01 2 is B 12b Reset Switch The Reset Switch is used to reset re boot the RF module B 12a Reset Switch B 12a DIP Switch MaxStream 2007 Digi International Inc 75 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide USB Pin Signals Table D 03 USB signals and their implantations on the XBee Series 2 RF Module Description Implementation Power Powerthe RF module Transmitted amp Received Data Transmit data to and from the RF module Transmitted amp Received Data Transmit data to and from the RF module Ground Signal Ground X CTU Software X CTU is a MaxStream provided software program used to interface with and configure MaxStream RF Modules The software application i
95. p bit high The following figure illustrates the serial bit pattern of data passing through the module Figure 2 02 UART data packet Ox1F decimal number 31 as transmitted through the RF module Example Data Format is 8 N 1 bits parity of stop bits Least Significant Bit first Idle high 1 1 2 0 0 0 x UART Signal Signal 0 voc Voltage Start Bit low Stop Bit high Tine The module UART performs tasks such as timing and parity checking that are needed for data communications Serial communications depend on the two UARTS to be configured with compatible settings baud rate parity start bits stop bits data bits 2 1 2 Serial Buffers The XBee Series 2 modules maintain small buffers to collect received serial and RF data which is illustrated in the figure below The serial receive buffer collects incoming serial characters and holds them until they can be processed The serial transmit buffer collects data that is received via the RF link that will be transmitted out the UART 2007 Digi International Inc 9 Series 2 OEM RF Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation Figure 2 03 Internal Data Flow Diagram Antenna Serial C Receiver RF T
96. ransmitted to remote device it may traverse multiple hops to reach the destination As data is transmitted from one node to its neighbor an acknowledgment packet Ack is transmitted in the opposite direction to indicate that the transmission was successfully received If the Ack is not received the transmitting device will retransmit the data up to 4 times This Ack is called the Mac layer acknowledgment In addition the device that originated the transmission expects to receive an acknowledgment packet Ack from the destination device This Ack will traverse the same path that the data traversed but in the opposite direction If the originator fails to receive this Ack it will retransmit bo Go 2007 Digi International Inc Series 2 OEM Modules ZigBee v1 x2x 2007 07 019 Chapter 3 ZigBee Networks the data up to 2 times until an Ack is received This Ack is called the ZigBee APS layer acknowledgment Refer to the ZigBee specification for more details Figure 3 08 Unicast Data Transmission Legend Data Transmission gt One Network ACK Destination to Source PETTE gt Mac ACK 2007 Digi International Inc 24 4 XBee Series 2 Networks 4 1 XBee Series 2 Network Formation To create a ZigBee network a coordinator must be started on a channel and PAN ID Once the coordinator has started routers and end device can join the network Routers and coordinator devi
97. re the DH and DL commands set the destination 64 bit address In the API firmware the destination 64 bit address is set in the ZigBee Transmit Request frame To send a packet to an RF module using its 64 bit Address Transparent Mode Set the DH Destination Address High and DL Destination Address Low parameters of the Source node to match the 64 bit Address SH Serial Number High and SL Serial Number Low parameters of the destination node Since the ZigBee protocol relies on the 16 bit network address for routing the 64 bit address must be converted into a 16 bit network address prior to transmitting data If a module does not know the 16 bit network address for a given 64 bit address it will transmit a broadcast network address Discovery command The module with a matching 64 bit address will transmit its 16 bit network address back Once the network address is discovered the data will be transmitted The modules maintain a table that can store up to seven 64 bit addresses and their corresponding 16 bit network addresses 2007 Digi International Inc 27 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration 64 bit Addressing API To send a packet to an RF module using its 64 bit Address API Mode Use the ZigBee Transmit Request API frame to set 64 bit destination address of the source node to match the 64 bit Address SH Serial Number High and SL Serial Number
98. rt Transparent Mode 1 1xx Coordinator API support AP 1 2 1 2xx Router End Device AT Command support Transparent Mode 1 3xx Router End Device API support AP 1 2 2007 MaxStream Inc 67 Appendix D Development Guide XBee Series 2 Development Kits I nterfacing Options The XBee Series 2 Professional Development Kit includes the hardware and software needed to rapidly create long range wireless data links between nodes XBee Series 2 Starter Kits that contain fewer modules and accessories are also available Table D 01 Items Included in the Development Kit Item Qty Description Part 1 OEM RF Module AT Coordinator with wire antenna XB24 BWIt 002 1 OEM RF Module AT Router End Device with wire antenna XB24 BWIT 004 XBee Series 2 Module 5 1 OEM RF Module AT Router End Device with U FL antenna XB24 BUIT 004 1 OEM RF Module AT Router End Device with chip antenna XB24 BCIT 004 1 OEM RF Module AT Router End Device with SMA antenna XB24 BSIT 004 Board for interfacing between modules and RS 232 nodes Converts signal levels displays diagnostic info amp ABIBER USB Development Board 1 Board for interfacing between modules amp USB nodes XBIB U Converts signal levels displays diagnostic info amp more RS 232 Cable Cable for connecting RS 232 interface board with DTE nodes J D2D3 CDS 6F 6 straight through E nodes that have a male serial DB 9
99. s Packetization Timeout S et R ead number of character times of inter character silence 0 OxFF RO required before packetization Set RO 0 to transmit characters as they arrive instead of CRE x character times buffering them into one RF packet w 0 Disabled 1 5 Flow Control 3 Digital input 4 Digital output low D7 DIO7 Configuration Select R ead options for DIO7 line of the RF module CRE 5 Digital output high 1 6 RS 485 transmit enable low enable 7 RS 485 transmit enable high enable 0 Disabled 1 RTS Flow Control D6 DIO6 Configuration Configure options for the DIO6 line of the RF module CRE 0 Disabled 1 Associated indication LED 05 DIO5 Configuration Configure options for the DIO5 line of the RF module CRE 3 Digital input 4 Digital output default low 5 Digital output default high 1 1 Node types that support the command C Coordinator R Router E End Device 2 Command supported by modules using API firmware only I O Commands Table 6 06 I O Commands AT oa Node Command Name and Description Parameter Range Default 0 Disabled 1 551 PWM 3 Digital input monitored 4 Digital output default low 5 Digital output default high 0 Unmonitored digital input 3 Digital input monitored 4 Digital output default low 5 Digital output default high P0 PWMO Configuration Select Read function for PWMO CRE P1 DIO
100. s When combined with DL it defines the destination address used for transmission 0x000000000000F FFF is the broadcast address for the PAN DH is not supported in Mode 0x0000000000000000 is the Coordinator s 16 bit network address Destination Address Low Set Get the lower 32 bits of the 64 bit destination address When combined with DH DL defines the destination address used for transmission 0x000000000000F FFF is the broadcast address for the PAN DL is not supported in API Mode 0x0000000000000000 is the Coordinator s 16 bit network address 16 bit Network Address Get the 16 bit network address of the module 16 bit Parent Network Address Get the 16 bit parent network address of the module Serial Number High Read high 32 bits of the RF module s unique IEEE 64 bit address 64 bit source address is always enabled Serial Number Low Read low 32 bits of the RF module s unique IEEE 64 bit address 64 bit source address is always enabled Node Identifier Stores a string identifier The register only accepts printable ASCII data In AT Command Mode a string can not start with a space A carriage return ends the command Command will automatically end when maximum bytes for the string have been entered This string is returned as part of the ND Node Discover command This identifier is also used with the DN Destination Node command Device Type Identifier Stores a device type value This value can be used to differentiat
101. s organized into the following four tabs PC Settings tab Setup PC serial ports for interfacing with an RF module Range Test tab Test the RF module s range and monitor packets sent and received Terminal tab Set and read RF module parameters using AT Commands Modem Configuration tab Set and read RF module parameters Figure D 04 X CTU User Interface PC Settings Range Test Terminal and Modem Configuration tabs FC ete argu Toc Tons Cope NOTE PC Setting values are visible at the bottom of the Range Test Terminal and Modem Configura tion tabs A shortcut for editing PC Setting values is available by clicking on any of the values Install Double click the setup X CTU exe file and follow prompts of the installation screens This file is located in the software folder of the MaxStream CD and also under the Downloads section of the following web www maxstream net support downloads php Setup To use the X CTU software a module assembly An RF module mounted to an interface Board must be connected to a serial port of a PC The interface data rate and parity settings of the serial port PC Settings tab must match those of the module BD Baud Rate and NB Parity parameters Serial Communications Software A terminal program is built into the X CTU Software Other terminal programs such as HyperTerminal can also be used When issuing AT Commands throug
102. s sent through the API each response is returned as a separate AT Response packet The data consists of the above listed bytes without the carriage return delimiters The NI string will end in a 0x00 null character The radius of the ND command is set by the BH command Destination Node Resolves an NI Node Identifier string to a physical address case sensitive The following events occur after the destination node is discovered AT Firmware 1 DL amp DH are setto the extended 64 bit address of the module with the matching NI Node Identifier string 2 OK or ERROR V is returned DN 3 Command Mode is exited to allow immediate communication CRE up to 20 B yte printable API Firmware ASCII string 1 The 16 bit network and 64 bit extended addresses are returned in an API Command Response frame If there is no response from a module within NT 100 milliseconds or a parameter is not specified left blank the command is terminated and an ERROR message is returned In the case of an ERROR Command Mode is not exited The radius of the DN command is set by the BH command 0 J oin notification disabled JN J oin Notification Set read the join notification value If enabled the device will send a RE 1 2007 Digi International Inc 38 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 6 XBee Series 2 Command Reference Tables Table 6 03 Networking Commands Node Name and
103. smissions Data packets are broadcast throughout the network in a similar fashion However only devices that are part of the multicast group will receive the data packets Unicast Transmissions Unicast ZigBee transmissions are always addressed to the 16 bit address of the destination device However only the 64 bit address of a device is permanent the 16 bit address can change Therefore ZigBee devices may employ network address discovery to identify the current 16 bit address that corresponds to a known 64 bit address and route discovery to establish a route Network Address Discovery Data transmissions are always sent to the 16 bit network address of the destination device However since the 64 bit address is unique to each device and is generally known ZigBee devices must discover the network address that was assigned to a particular device when it joined the PAN before they can transmit data To do this the device initiating a transmission sends a broadcast network address discovery transmission throughout the network This packet contains the 64 bit address of the device the initiator needs to send data to Devices that receive this broadcast transmission check to see if their 64 bit address matches the 64 bit address contained in the broadcast transmission If the addresses match the device sends a response packet back to the initiator providing the network address of the device with the matching 64 bit address When this respons
104. t Source endpoint byte 15 Endpoint of the source that initiated the transmission RF data byte 22 n Destination endpoint byte 16 4 ET Up to 72 bytes Endpoint of the destination the message is addressed to XBee Sensor Read I ndicator Identifier Value 0x94 When the module receives a sensor sample it is sent out the UART using this message type when AO 0 MaxStream 2007 Digi International Inc 53 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 7 API Operation Figure 7 18 XBee Sensor Read Indicator 0x94 Start Delimiter Length Frame Data Checksum Ox7E MSB LSB API specific Structure 1 Byte Identifier Identifier specific Da ia o cmdData uM Let p 1 64 bit Address bytes 5 12 Receive Options byte 15 A D Read Values bytes 17 24 0x01 Packet Acknowledged Indicates a2 byte value for each Indicates the64 bit address of the remote module that 0x02 Packet was a broadcast of 4 A D sensors A B C D transmitted the Watchport sensor sample packet Set to OXFFFFFFFFFFFFFFFF if no A Ds found ER Temperature Value bytes l ER XBee Sensors byte 16 25 26 Bitfield of Watchport sensors that were read fae ka TFA of the remote Values include Indicates the 2 byte value read from a digita
105. t necessary for routing data 3 1 1 Starting a ZigBee Coordinator When a coordinator first comes up it performs an energy scan on multiple channels frequencies to select an unused channel to start the PAN After removing channels with high detected energy levels the coordinator issues an 802 15 4 beacon request command on the remaining low energy level channels Nearby routers or coordinators that have already joined a PAN respond to the beacon request frame with a small beacon transmission indicating the PAN identifier PAN ID that they are operating on and whether or not they are allowing joining The coordinator will attempt to start on an unused PAN ID and channel After starting the coordinator may allow other devices to join its PAN 3 1 2 Joining a Router When a router first comes up it must locate and join a ZigBee PAN To do this it issues an 802 15 4 beacon request command on multiple channels to locate nearby PANs Nearby routers and coordinators that have already joined a PAN respond to the beacon request frame with a small beacon transmission indicating which channel and PAN ID they are operating on The router listens on each channel for these beacon frames If a valid PAN is found from one of the received beacons the router issues a join request to the device that sent the beacon If joining succeeds the router will then receive a join confirmation from the device indicating the join was successful 2007 Digi Inter
106. ter and pinouts Top View pi Pinouts 2 P2 pin 1 6 pin 1 6 pin 4 pin 4 pin 2 pin 2 pin 3 pin 3 pin 9 pin 5 pin 5 pin 5 pin 7 pin 7 pin 8 pin 8 M Go 2007 Digi International Inc Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Development Guide Serial Loopback Adapter Part Number JD2D3 CDL A Red DB 9 M F The serial loopback adapter is used for range testing During a range test the serial loopback adapter configures the module to function as a repeater by looping serial data back into the radio for retransmission Figure D 01 Serial loopback adapter and pinouts Pinouts P1 P2 in 1 in 1 Top View gn pin 2 pin 2 P1 P2 pin 3 pin 3 pin 4 pin 4 female male pin 5 pin 5 pin 6 pin 6 pin 6 pin 6 pin 7 pin 7 pin 1 pin 1 pin 8 pin 8 pin 9 pin 9 NC No Connection USB Development Board External Interface 11 1 amp Power LEDs Figure D 02 Front View LEDs indicate RF module activity as follows oo Yellow top LED Serial Data Out to host Green middle Serial Data In from host Red bottom Power Association Indicator Refer to the D5 OO DIO5 Configuration parameter B 11c USB Port host Module Assemblies host B 11b RSSI LEDs B 11b RSSI LEDs B 11a RSSI LEDs indicate the amount of fade margin present in an active VO amp Power LEDS wireless link Fade margin is defined as the difference between the inc
107. the source address of the device that sent the ND command Received Data Bindings The received data bindings contain addressing information for the last three received data packets The fourth entry is marked invalid When a data packet is received the address and endpoint information is stored into the invalid entry Then the oldest entry is made invalid Thus once an entry is created in the Received Data binding indexes it will remain valid until three more RF data packets are received Figure 4 09 Demonstration of how entries in the received data bindings are replaced when an RF data packet is received Oldest entry 39 is marked Invalid 3rd INV INV 2 newest entry becomes oldest data entry ene 2nd 2nd 3rd 151 1 entry becomes second n 1st 2nd newest entry dd DATA 1st Newest or 1st 3 Data entries 1 invalid entry DATA Data is inserted into Invalid entry 2007 Digi International Inc 30 XBee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Chapter 4 RF Module Configuration User Bindings These entries can be created and maintained by the application if needed The following commands can be used to modify the user bindings See the command descriptions for formatting details Table 4 05 Command Name Description B4 Add Binding Creates a binding table entry at a spe
108. tions such as the examples cited below gt Transmitting data to multiple destinations without entering Command Mode gt Receive success failure status of each transmitted RF packet gt Identify the source address of each received packet To implement API operations refer to the API Operation chapter 6 2007 Digi International Inc 12 XBee Series 2 RF Modules ZigBee v1 x2x 2007 07 019 Chapter 2 RF Module Operation 2 2 Modes of Operation 2 2 1 Idle Mode When not receiving or transmitting data the RF module is in Idle Mode During Idle Mode the RF module is also checking for valid RF data The module shifts into the other modes of operation under the following conditions Transmit Mode Serial data in the serial receive buffer is ready to be packetized Receive Mode Valid RF data is received through the antenna Sleep Mode End Devices only Command Mode Command Mode Sequence is issued 2 2 2 Transmit Mode MaxStream Idle Mode When serial data is received and is ready for packetization the RF module will exit Idle Mode and attempt to transmit the data The destination address determines which node s will receive the data Prior to transmitting the data the module ensures that a 16 bit network address and route to the destination node have been established If the 16 bit network address is not known network address discovery will take place If a route is not k
109. tware and select the PC Settings tab Verify the baud and parity set tings of the Com Port match those of the RF module 2 To communicate with a module that has API firmware check the Enable API box If escaping is enabled AP 2 non default setting select the Use escape characters box to enable escaping Select the Modem Configuration tab 5 Read Write and Restore buttons can be used to read module parameters write new settings or restore defaults 2007 Digi International Inc 57 XBee Series 2 ZigBee RF Modules v1 x2x 2007 07 019 Chapter 8 Examples Constructing API Frames Example Create an API AT command frame to configure an XBee to allow joining set NJ to OxFF The frame should look like Ox7E 0x00 0x05 0x08 0x01 Ox4E Ox4A OxFF 5F Where 0x0005 z length 0x08 AT Command frame type 0x01 Frame ID set to non zero value Ox4E4A AT Command NJ OxFF value to set command to Ox5F Checksum The checksum is calculated as OxFF 0x08 0x01 Ox4E Ox4A OxFF Example Send a transmission to a module with destination address 0x0013A200 40014011 payload TxData1B If escaping is disabled AP 1 the frame should look like Ox7E 0x00 0x16 0x10 0x01 0x00 0x13 OxA2 0x00 0x40 OxOA 0x01 0x27 OxFF OxFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x13 Where 0x16 length 22 bytes excluding checksum 0x10 ZigBee Transmit Request API frame type 0x01
110. ued Declarations of Conformity for the XBee Series 2 RF Modules concerning emissions EMC and safety Files are located in the documentation folder of the MaxStream CD Important Note MaxStream does not list the entire set of standards that must be met for each country MaxStream customers assume full responsibility for learning and meeting the required guidelines for each country in their distribution market For more information relating to European compliance of an OEM product incorporating the XBee Series 2 RF Module contact MaxStream or refer to the following web sites CEPT ERC 70 03E Technical Requirements European restrictions and general requirements Available at www ero dk R amp TTE Directive Equipment requirements placement on market Available at www ero dk Approved Antennas When integrating high gain antennas European regulations stipulate EIRP power maximums Use the following guidelines to determine which antennas to design into an application XBee Series 2 OEM Module The following antennas types have been tested and approved for use with the XBee Series 2 Module 2007 MaxStream Inc 65 Xbee Series 2 ZigBee OEM RF Modules v1 x2x 2007 07 019 Agency Certifications Antenna Type Yagi RF module was tested and approved with 15 dBi antenna gain with 1 dB cable loss EIRP Maimum of 14 dBm Any Yagi type antenna with 14 dBi gain or less can be used with no cable loss Antenna Type Omni Dire
111. ufacturer must maintain a copy of the XBee Series 2 user manual documentation and ensure the final product does not exceed the specified power ratings antenna specifications and or installation requirements as specified in the user manual If any of these specifications are exceeded in the final product a submission must be made to a notified body for compliance testing to all required standards OEM Labeling Requirements The CE marking must be affixed to a visible location on the OEM product Figure B 01 CE Labeling Requirements The CE mark shall consist of the initials CE taking the following form f the CE marking is reduced or enlarged the proportions given in the above graduated draw ing must be respected The CE marking must have a height of at least 5mm except where this is not possible on account of the nature of the apparatus The CE marking must be affixed visibly legibly and indelibly Restrictions Power Output The power output of the XBee Series 2 RF Module must not exceed 10 dBm The power level is set using the PL command and the PL parameter must equal 0 10 dBm France France imposes restrictions on the 2 4 GHz band Go to www art telecom Fr or contact MaxStream for more information Norway Norway prohibits operation near Ny Alesund in Svalbard More information can be found at the Norway Posts and Telecommunications site www npt no Declarations of Conformity MaxStream has iss
112. wings 6 1 4 Mounting Considerations 6 1 5 Pin Signals 7 1 6 Electrical Characteristics 8 2 RF Module Operation 9 2 1 Serial Communications 9 2 1 1 UART Data Flow 9 2 1 2 Serial Buffers 9 2 1 3 Serial Flow Control 10 2 1 4 Transparent Operation 12 2 1 5 API Operation 12 2 2 Modes of Operation 13 2 2 1 Idle Mode 13 2 2 2 Transmit Mode 13 2 2 3 Receive Mode 14 2 2 4 Command Mode 14 2 2 5 Sleep Mode 15 3 ZigBee Networks 17 3 1 ZigBee Network Formation 17 3 1 1 Starting a ZigBee Coordinator 17 3 1 2 Joining a Router 17 3 1 3 Joining an End Device 18 3 2 ZigBee Network Communications 19 3 2 1 ZigBee Device Addressing 19 3 2 2 ZigBee Application layer Addressing 19 3 2 3 Data Transmission and Routing 20 4 XBee Series 2 Networks 25 4 1 XBee Series 2 Network Formation 25 4 1 1 Starting an XBee Series 2 Coordinator 25 4 1 2 Joining an XBee Series 2 Router to an ex isting PAN 25 4 1 3 Joining an XBee Series 2 End Device to an Existing 25 4 1 4 Network Reset 26 4 2 XBee Series 2 Addressing 27 4 2 1 Device Addressing 27 4 2 2 4 2 3 4 2 4 Application layer Addressing 29 XBee Series 2 Binding Table 29 XBee Series 2 Endpoint Table 31 4 3 Sleep Mode Operation 32 4 3 1 End Device Operation 32 4 3 2 Parent Operation 32 4 4 O Line Configuration 32 5 Advanced Features 35 5 1 Device Discovery 35 5 2 Remote Configuration 35 5 3 Loopback Testing 35 5 3 1 AT Firmware
113. y command can be used to discover all modules that have joined a ZigBee PAN Issuing ND sends a broadcast node discovery command throughout the PAN II devices that receive the command will send a response that includes the device s 64 bit address 16 bit address and NI string see NI command This command is useful for generating a list of all module addresses in a PAN 5 2 Remote Configuration The API firmware has provisions to configure the command registers of remote devices using the Remote Command Request API frame see Chapter 7 API Operation Commands can be sent to a remote module to read or set different command parameters 5 3 Loopback Testing Range and link quality can be tested easily using a software loopback data mode To send a message to a remote device and have the data be returned to the sender the data should be addressed to the loopback cluster ID 0x12 on the data endpoint OxE6 of the remote device 5 3 1 AT Firmware Set the ZA command to 1 and set the CI command value to 0x12 The SE and DE commands should be set to OxE8 default value The DH and DL commands should be set to the 64 bit address of the remote After exiting command mode serial data should be transmitted to the remote device and returned to the sender 5 3 2 API Firmware Send an Explicit Addressing ZigBee Command frame using 0x12 as the cluster ID and OxE8 as the source and destination endpoint Data packets received by the remote should
Download Pdf Manuals
Related Search
Related Contents
USC-500 Metro 130XT RCH Metro 130XT Tunnel RCH Comfort Contego User Manual 「Image Mate」 取扱説明書 Windows95 Ver.1.0 取扱説明書 - クロダニューマティクス Wire Harness for LED Bar Lamps 取扱説明書 - ELECOM Operating Instructions Betriebsanleitung Mode d'emploi GB D F Jocel JACV-09HRN1/QC2 air conditioner Copyright © All rights reserved.
Failed to retrieve file