background image

XBee/XBee-PRO S2C 802.15.4

Radio Frequency (RF) Module

User Guide

Summary of Contents for XBee S2C 802.15.4

Page 1: ...XBee XBee PRO S2C 802 15 4 Radio Frequency RF Module User Guide ...

Page 2: ...nge without notice and does not represent a commitment on the part of Digi International Digi provides this document as is without warranty of any kind expressed or implied including but not limited to the implied warranties of fitness or merchantability for a particular purpose Digi may make improvements and or changes in this manual or in the product s and or the program s described in this manu...

Page 3: ... 912 3444 or visit us at www digi com support Feedback To provide feedback on this document email your comments to techcomm digi com Include the document title and part number XBee XBee PRO S2C 802 15 4 RF Module User Guide 90001500 E in the subject line of your email XBee XBee PRO S2C 802 15 4 RF Module User Guide 3 ...

Page 4: ...nts 15 GPIO specifications 15 Hardware Antenna options 18 Mechanical drawings 18 Mounting considerations 19 Pin signals 20 Notes 23 Design notes 23 Power supply design 23 Board layout 23 Antenna performance 23 Keepout area 24 RF pad version 26 Configure the XBee XBee PRO S2C 802 15 4 RF Module Software libraries 30 Configure the device using XCTU 30 Over the air OTA firmware update 30 XBee Network...

Page 5: ...3 Peer to peer networks 44 Master slave networks 44 Clear Channel Assessment CCA 48 CCA operations 48 Serial interface 49 Select a serial port 49 UART data flow 50 Flow control 51 SPI operation 52 SPI signals 52 SPI parameters 53 SPI and API mode 53 Full duplex operation 53 Slave mode characteristics 54 I O support 54 Digital I O line support 55 Analog input 55 On demand I O sampling 55 Periodic I...

Page 6: ...l Number Low 70 MM MAC Mode 71 RR XBee Retries 71 RN Random Delay Slots 72 ND Network Discovery 72 NT Node Discover Timeout 73 NO Node Discovery Options 73 DN Discover Node 74 CE Coordinator Enable 74 SC Scan Channels 75 SD Scan Duration 75 A1 End Device Association 76 A2 Coordinator Association 77 AI Association Indication 78 DA Force Disassociation 78 FP Force Poll 78 AS Active Scan 79 ED Energy...

Page 7: ...esistor Enable 96 PD Pull Up Down Direction 97 IU I O Output Enable 97 IT Samples before TX 97 IS Force Sample 98 IO Digital Output Level 98 IC DIO Change Detect 98 IR Sample Rate 99 RP RSSI PWM Timer 99 I O line passing commands 99 IA I O Input Address 99 T0 D0 Timeout 100 T1 D1 Output Timeout 100 T2 D2 Output Timeout 100 T3 D3 Output Timeout 100 T4 D4 Output Timeout 101 T5 D5 Output Timeout 101 ...

Page 8: ...ption 122 Format 122 Examples 123 16 bit Receive Packet 0x81 124 64 bit I O Sample Indicator 0x82 126 16 bit I O Sample Indicator 0x83 128 Description 130 Examples 131 Transmit Status 0x89 132 Modem Status 0x8A 135 Modem status codes 136 Remote AT Command Response 0x97 138 Regulatory information United States FCC 142 OEM labeling requirements 142 FCC notices 142 FCC approved antennas 2 4 GHz 144 R...

Page 9: ...160 Australia RCM 160 South Korea 160 Load 802 15 4 firmware on ZB devices Background 166 Load 802 15 4 firmware 166 Migrate from XBee through hole to surface mount devices Pin mapping 169 Mount the devices 170 PCB design and manufacturing Recommended solder reflow cycle 173 Recommended footprint and keepout 173 Flux and cleaning 175 Rework 175 ...

Page 10: ...ounting The TH version may be useful for prototyping and production but we recommend SMT for high volume applications as the component can be placed automatically by a pick and place machine and you save the cost of a socket on each board The XBee XBee PRO S2C 802 15 4 RF Module supports the needs of low cost low power wireless sensor networks The devices require minimal power and provide reliable...

Page 11: ...e firmware and hardware XBee XBee PRO S2C 802 15 4 RF Module User Guide 11 Applicable firmware and hardware This manual supports the following firmware n 802 15 4 version 20xx It supports the following hardware n XB24C TH n XB24C SMT n XBP24C TH n XBP24C SMT ...

Page 12: ...s Performance specifications 13 Power requirements 13 General specifications 14 Regulatory conformity summary 14 Serial communication specifications 15 GPIO specifications 15 XBee XBee PRO S2C 802 15 4 RF Module User Guide 12 ...

Page 13: ...t 1200 m Up to 2 miles 3200 m Transmit power output software selectable 6 3 mW 8 dBm Boost mode1 3 1 mW 5 dBm Normal mode Channel 26 max power is 0 3 mW 5 dBm 63 mW 18 dBm 2 RF data rate 250 000 b s 250 000 b s Maximum data throughput Up to 96 000 b s Up to 96 000 b s UART interface data rate 1200 b s to 250 000 b s 1200 b s to 250 000 b s SPI data rate Up to 5 Mb s burst Up to 5 Mb s burst Receiv...

Page 14: ...CB antenna U FL connector RPSMA connector or integrated wire SMT RF pad PCB antenna or U FL connector Regulatory conformity summary This table describes the agency approvals for the devices Country XBee surface mount XBee PRO surface mount XBee through hole XBee PRO through hole United States FCC Part 15 247 FCC ID MCQ XBS2C FCC ID MCQ PS2CSM FCC ID MCQ S2CTH FCC ID MCQ PS2CTH Innovation Science a...

Page 15: ... XBee through hole DOUT 3 2 DIN CONFIG 4 3 CTS DIO7 25 12 RTS DIO6 29 16 SPI pin assignments The SC2 Serial Communication Port 2 of the Ember 357 is connected to the SPI port Specifications Module pin number SPI pins XBee surface mount XBee through hole SPI_SCLK 14 18 SPI_SSEL 15 17 SPI_MOSI 16 11 SPI_MISO 17 4 SPI_ATTN 12 19 GPIO specifications XBee XBee PRO S2C 802 15 4 RF Modules have 15 Genera...

Page 16: ...CC maximum Output voltage for logic 1 0 82 x VCC minimum Output source sink current for pad numbers 3 4 5 10 12 14 15 16 17 25 26 28 29 30 and 32 on the SMT modules 4 mA Output source sink current for pin numbers 2 3 4 9 12 13 15 16 17 and 19 on the TH modules 4 mA Output source sink current for pad numbers 7 8 24 31 and 33 on the SMT modules 8 mA Output source sink current for pin numbers 6 7 11 ...

Page 17: ...Hardware Antenna options 18 Mechanical drawings 18 Mounting considerations 19 Pin signals 20 Design notes 23 XBee XBee PRO S2C 802 15 4 RF Module User Guide 17 ...

Page 18: ...ver it typically yields shorter range than the whip and dipole antenna options when transmitting outdoors For more information see XBee and XBee PRO OEM RF Module Antenna Considerations Application Note Mechanical drawings The following mechanical drawings of the XBee XBee PRO S2C 802 15 4 RF Module show all dimensions in inches The first drawing shows the surface mount device antenna options not ...

Page 19: ...ow the XBee PRO through hole device Mounting considerations We design the through hole module to mount into a receptacle so that you do not have to solder the module when you mount it to a board The development kits may contain RS 232 and USB interface boards that use two 20 pin receptacles to receive modules ...

Page 20: ...r MMS 110 01 L SV or equivalent n Surface mount double row receptacles Century Interconnect part number CPRMSL20 D 0 1 or equivalent n Surface mount single row receptacles Samtec part number SMM 110 02 SM S Note We recommend that you print an outline of the module on the board to indicate the correct orientation for mounting the module Pin signals The following image shows the pin numbers it shows...

Page 21: ...8 10 GND Ground 11 DIO4 SPI_MOSI Both Digital I O 4 SPI Data In 12 DIO7 CTS Both Digital I O 7 Clear to send flow control 13 ON SLEEP Output Device sleep status indicator 14 VREF Feature not supported on this device Used on other XBee devices for analog voltage reference 15 DIO5 ASSOC Both Digital I O 5 Associated indicator 16 DIO6 RTS Both Digital I O 6 Request to send flow control 17 DIO3 AD3 SP...

Page 22: ...digital input 8 11 GND Ground 12 SPI_ ATTN BOOTMODE Output SPI Attention Do not tie low on reset 13 GND Ground 14 SPI_CLK Input SPI clock 15 SPI_SSEL Input SPI select 16 SPI_MOSI Input SPI Data In 17 SPI_MISO Output SPI Data Out 18 Reserved Do not connect 19 Reserved Do not connect 20 Reserved Do not connect 21 Reserved Do not connect 22 GND Ground 23 Reserved Do not connect 24 DIO4 Both Digital I...

Page 23: ...ected Design notes The following guidelines help to ensure a robust design Power supply design A poor power supply can lead to poor device performance especially if you do not keep the supply voltage within tolerance or if it is excessively noisy To help reduce noise place a 1 0 μF and 8 2 pF capacitor as near as possible to pin 1 on the PCB If you are using a switching regulator for the power sup...

Page 24: ...hich is usually reinforced with metal rods If you place the device inside a metal enclosure use an external antenna Common objects that have metal enclosures include n vehicles n elevators n ventilation ducts n refrigerators n microwave ovens n batteries n tall electrolytic capacitors Do not place XBee devices with the chip or integrated PCB antenna inside a metal enclosure Do not place any ground...

Page 25: ...antenna 2 Keep metal chassis or mounting structures in the keepout area at least 2 54 cm 1 in from the antenna 3 Maximize the distance between the antenna and metal objects that might be mounted in the keepout area 4 These keepout area guidelines do not apply for wire whip antennas or external RF connectors Wire whip antennas radiate best over the center of a ground plane ...

Page 26: ...CB than coplanar waveguide We do not recommend using a stripline RF trace because that requires routing the RF trace to an inner PCB layer and via transitions can introduce matching and performance problems The following figure shows a layout example of a microstrip connecting an RF pad module to a through hole RPSMA RF connector n The top two layers of the PCB have a controlled thickness dielectr...

Page 27: ...width and using a very narrow trace can cause unwanted RF loss You can minimize the length of the trace by placing the RPSMA jack close to the module All of the grounds on the jack and the module are connected to the ground planes directly or through closely placed vias Space any ground fill on the top layer at least twice the distance d in this case at least 0 050 in from the microstrip to minimi...

Page 28: ...Hardware Design notes XBee XBee PRO S2C 802 15 4 RF Module User Guide 28 Implementing these design suggestions helps ensure that the RF pad device performs to specifications ...

Page 29: ...e PRO S2C 802 15 4 RF Module Software libraries 30 Configure the device using XCTU 30 Over the air OTA firmware update 30 XBee Network Assistant 30 XBee Multi Programmer 31 XBee XBee PRO S2C 802 15 4 RF Module User Guide 29 ...

Page 30: ...ld discover the connected XBee XBee PRO S2C 802 15 4 RF Modules using the provided settings Click Add selected devices The devices appear in the Radio Modules list You can click a module to view and configure its individual settings For more information on these items see AT commands Over the air OTA firmware update The XBee XBee PRO S2C 802 15 4 RF Module supports OTA firmware updates using XCTU ...

Page 31: ...ides a fast and easy way to prepare devices for distribution or large networks deployment The XBee Multi Programmer board is an enclosed hardware component that allows you to program up to six RF modules thanks to its six external XBee sockets The XBee Multi Programmer application communicates with the boards and allows you to set up and execute programming sessions Some of the features include n ...

Page 32: ...Modes Serial modes 33 Transceiver modes 36 XBee XBee PRO S2C 802 15 4 RF Module User Guide 32 ...

Page 33: ...ore the sequence is transmitted n The device receives the maximum number of characters that fits in an RF packet 100 bytes Serial to RF packetization Data is buffered in the DI 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 Packetization Timeout parameter If RO 0 packetization begins...

Page 34: ...ing the sequence Both the command character CC and the silence before and after the sequence GT are configurable When the entrance criteria are met the device responds with OK r on UART signifying that it has entered Command mode successfully and is ready to start processing AT commands If configured to operate in Transparent operating mode when entering Command mode the XBee XBee PRO S2C 802 15 4...

Page 35: ...by a comma in Command mode for example ATNIMy XBee AC cr The preceding example changes the NI Node Identifier to My XBee and makes the setting active through AC Apply Changes Parameter format Refer to the list of AT commands for the format of individual AT command parameters Valid formats for hexidecimal values include with or without a leading 0x for example FFFF or 0xFFFF Response to AT commands...

Page 36: ...The default Command mode timeout is 10 seconds For an example of programming the device using AT Commands and descriptions of each configurable parameter see AT commands Transceiver modes The following modes describe how the transceiver sends and receives over the air OTA data Idle mode When not receiving or transmitting data the device is in Idle mode During Idle mode the device listens for valid...

Page 37: ...8 Maximum payload 40 Networking 42 Clear Channel Assessment CCA 48 Serial interface 49 SPI operation 52 I O support 54 Sleep support 60 Node discovery 63 Remote configuration commands 65 XBee XBee PRO S2C 802 15 4 RF Module User Guide 37 ...

Page 38: ...d the destination address may be either a unicast or a broadcast The destination PAN ID is short and it may also be the broadcast PAN ID In Transparent mode the destination address is set by the DH and DL parameters but in API mode it is set by the TX Request 64 bit address 0x00 or TX Request 16 bit Address 0x01 frames In either Transparent mode or API mode the destination PAN ID is set with the I...

Page 39: ...hown in the following table Factor Effect on maximum payload Comment Compatibility mode Force to 95 If C8 bit 0 is set all packets are limited to 95 bytes regardless of other factors listed below This is how the Legacy 802 15 4 module S1 hardware functions Packet overhead Reduce by 5 This penalty for enabling encryption is unavoidable due to the 802 15 4 protocol Source address Reduce by 6 This pe...

Page 40: ...ou will be able to send up to NP 6 bytes in a single packet 1 If you enable transmit compatibility with the Legacy 802 15 4 module S1 hardware l There is a fixed maximum payload of 100 bytes if not using encryption l There is a fixed maximum payload of 95 bytes if using encryption l The rest of the rules do not apply They apply only when you disable transmit compatibility with the Legacy 802 15 4 ...

Page 41: ...B Work with Legacy devices The Legacy 802 15 4 module S1 hardware transmits packets one by one It does not transmit a packet until it receives all expected acknowledgments of the previous packet or the timeout expires The new XBee XBee PRO S2C 802 15 4 RF Modules enhance transmission by implementing a transmission queue that allows the device to transmit to several devices at the same time Broadca...

Page 42: ...ncludes one or more end devices and optionally a coordinator MAC Mode configuration Medium Access Control MAC Mode configures two functions 1 Enables or disables the use of a Digi header in the 802 15 4 RF packet When the Digi header is enabled MM 0 or 3 duplicate packet detection is enabled as well as certain AT commands Modes 1 and 2 do not include a Digi header which disables many features of t...

Page 43: ...ransmit status frame sent by the device if the frame ID is non zero The following tables report the expected transmit status for unicast transmissions and the maximum number of MAC and application retries the device attempts The tables also report the transmit status reported when the device detects energy above the CCA threshold when a CCA failure happens The following table applies in either of ...

Page 44: ...hares both roles of master and slave Our peer to peer architecture features fast synchronization times and fast cold start times This default configuration accommodates a wide range of RF data applications Master slave networks In a Master Slave network there is a coordinator and one or more end devices When end devices associate to the coordinator they become members of that Personal Area Network...

Page 45: ...acon with the best link quality is selected This applies whether A1 is 0x04 0x05 0x06 or 0x07 Before the End Device joins a network the Associate LED will be on solid After it joins a network the Associate LED will blink twice per second In the event that association parameters are changed after the end device is associated the end device will leave the network and re join in accordance with the n...

Page 46: ...on solid After it forms a network the Associate LED will blink once per second Indirect addressing The XBee XBee PRO S2C 802 15 4 RF Module may hold indirect messages until it runs out of buffers and the size of those messages does not matter A brief summary follows A coordinator CE 1 must have SP set to a non zero value to use indirect addressing Otherwise all frames will be sent directly assumin...

Page 47: ...ed End device successfully associated or operating in peer to peer mode where no association is needed 0x03 Active Scan found a PAN coordinator but it is not currently accepting associations 0x04 Active Scan found a PAN coordinator in a beacon enabled network which is not a supported feature 0x05 Active Scan found a PAN but the PAN ID does not match the configured PAN ID on the requesting end devi...

Page 48: ...in sleep mode 3 Data is waiting to be sent OTA Clear Channel Assessment CCA Prior to transmitting a packet the device performs a CCA Clear Channel Assessment on the channel to determine if the channel is available for transmission The detected energy on the channel is compared with the CA Clear Channel Assessment parameter value If the detected energy exceeds the CA parameter value the device does...

Page 49: ...back to 0 Serial interface The XBee XBee PRO S2C 802 15 4 RF Module interfaces to a host device through a serial port The device can communicate through its serial port with n Through logic and voltage compatible universal asynchronous receiver transmitter UART n Through a level translator to any serial device for example through an RS 232 or USB interface board n Through a SPI as described in SPI...

Page 50: ...f the XBee XBee PRO S2C 802 15 4 RF Module as shown in the following figure The figure shows system data flow in a UART interfaced environment Low asserted signals have a horizontal line over the signal name Serial data A device sends data to the XBee XBee PRO S2C 802 15 4 RF Module s UART through TH pin 3 SMT pin 4 DIN as an asynchronous serial signal When the device is not transmitting data the ...

Page 51: ...bytes of data to come in after CTS is de asserted before data is dropped The default value of FT is 109 leaving space for an external device that responds slowly to CTS being de asserted The minimum value of FT is 17 which is the minimal operational level RTS flow control If you send the D6 command to enable RTS flow control the device does not send data in the serial transmit buffer out the DOUT ...

Page 52: ...P2 SPI_SCLK Serial clock 14 P8 18 D2 SPI_SSEL Slave select 15 P7 17 D3 SPI_ATTN Attention 12 P9 19 D1 By default the inputs have pull up resistors enabled Use the PR command to disable the pull up resistors When the SPI pins are not connected but the pins are configured for SPI operation then the device requires the pull ups for proper UART operation Signal description SPI_MISO When SPI_CLK is act...

Page 53: ...pport Transparent mode or API mode 2 with escaped characters This means that the AP configuration only applies to the UART interface and is ignored while using the SPI Full duplex operation When using SPI on the XBee XBee PRO S2C 802 15 4 RF Module the device uses API operation without escaped characters to packetize data The device ignores the configuration of AP because SPI does not operate in a...

Page 54: ...irst n It uses Frame Format Mode 0 This means CPOL 0 idle clock is low and CPHA 0 data is sampled on the clock s leading edge The picture below diagrams Mode 0 n The SPI port is setup for API mode and is equivalent to AP 1 The following picture shows the frame format for SPI communications I O support The following topics describe analog and digital I O line support line passing and output control...

Page 55: ...7 25 12 D7 DIO7 CTS DIO8 10 9 D8 DIO8 SLEEP_REQUEST Analog input Analog input is available on D0 through D3 by configuring these parameters to 2 Analog input is not available on D4 and D5 On demand I O sampling You can use the IS Force Sample command to sample pins configured as digital I O and analog input If no pins are configured in this manner with the DO D8 commands set to 2 3 4 or 5 then the...

Page 56: ...address 00 00 indicates 16 bit source address 49 53 IS indicates command response to the IS command 00 indicates the status is OK 01 indicates the number of samples 03 3E mask to indicate which lines are sampled A0 D8 D5 D4 D3 D2 and D1 01 2A digital sample that indicates that D8 is high D5 is high D4 is low D3 is high D2 is low and D1 is high 02 10 indicates that A0 has input voltage about half o...

Page 57: ...16 bit I O Sample Indicator 0x83 RX data follows the format described in I O data format Periodic I O sampling Periodic I O sampling is done by periodically gathering samples on the source node and sending the samples to the destination node to output on its serial port Source node On the source node the IR parameter specifies how many milliseconds between samples The IT parameter specifies how ma...

Page 58: ...e mask is repeated IT times The mask is not repeated The sending node sends I O samples to the address specified by DH DL The receiving node displays the samples as described above providing API mode is enabled the node is not in Command mode and the IU parameter is 1 IU is 1 by default If any of these are false the I O sample is discarded without being displayed Change Detect I O sampling When yo...

Page 59: ...ccurs if the receiving device does not have the corresponding pins set for output For Analog Line Passing the XBee XBee PRO S2C 802 15 4 RF Module has two PWM output pins that simulate the voltage measured by the ADC lines AD0 and AD1 For example when configured as an ADC AD0 pin 33 updates PWM0 pin 7 AD1 pin 32 updates PWM1 pin 8 The default setup is for outputs to not be updated Instead a device...

Page 60: ...utput a duty cycle reflective of the analog input indefinitely and a smaller value indicates how many 10th second units before PWM output reverts to the duty cycle specified by M0 or M1 Output control The IO Digital Output Level command controls the output levels of D0 through D7 that are configured as output pins either 4 or 5 These values override the configured output levels of the pins until t...

Page 61: ...om a coordinator The Cyclic Sleep Remote sends a poll request to the coordinator at a specific interval set by the SP Cyclic Sleep Period parameter The coordinator transmits any queued data addressed to that specific remote upon receiving the poll request ON_SLEEP goes high and CTS goes low each time the remote wakes allowing for communication initiated by the remote host if desired Cyclic Sleep w...

Page 62: ...ined during the sleep time Sleep pins The following table describes the three external device pins associated with sleep For more details about the pins see Pin signals Pin name Pin number Description SLEEP_ RQ TH pin 9 SMT pin 10 For SM 1 high puts the device to sleep and low wakes it up For SM 5 a high to low transition wakes the device up for ST time The device ignores a low to high transition ...

Page 63: ...atch the longest sleep value of any End Device The sleep period value on the Coordinator determines how long time or number of beacons the Coordinator retains an indirect message before discarding it An End Device must poll the Coordinator once it wakes from Sleep to determine if the Coordinator has an indirect message for it For Cyclic Sleep Modes this is done automatically every time the device ...

Page 64: ...and In the event that the requested node does not exist or is too slow to respond the requesting node outputs an ERROR response after NT expires In API mode the response from the requesting node will be output in API mode and the command will terminate immediately If no response comes from the requested node the requesting node outputs an error response in API mode after NT expires Directed node d...

Page 65: ...n remote configuration commands can be sent to 16 bit short addresses by setting the short address in the API frame for Remote AT commands In that case the 64 bit address is unused and does not matter Apply changes on remote devices Any changes you make to the configuration command registers using AT commands do not take effect until you apply the changes For example if you send the BD command to ...

Page 66: ...ecurity commands 67 RF interfacing commands 82 Sleep commands 83 Serial interfacing commands 85 I O settings commands 89 I O line passing commands 99 Diagnostic commands 102 Command mode options 104 XBee XBee PRO S2C 802 15 4 RF Module User Guide 66 ...

Page 67: ...a WR command do not send any additional characters to the device until after you receive the OK response Parameter range N A Default N A RE Restore Defaults Restore device parameters to factory defaults Does not exit out of Command mode Parameter range N A Default N A FR Software Reset Resets the device The device responds immediately with an OK and performs a reset 100 ms later If you issue FR wh...

Page 68: ...he queue would go to a different destination address 1 Node Discovery compatibility 0 Node discovery operates like other XBee devices and not like the Legacy 802 15 4 module This means the following 1 A directed ND request terminates after the single response arrives This allows the device to process other commands without waiting for the NT to time out 2 The device outputs an error response to th...

Page 69: ... Default 0xC 12 decimal ID Network ID Set or read the user network identifier Devices must have the same network identifier to communicate with each other Devices can only communicate with other devices that have the same network identifier and channel configured Setting the ID parameter to 0xFFFF indicates a global transmission for all PANs It does not indicate a global receive Parameter range 0 ...

Page 70: ... Sets or displays the device s 16 bit source address Set MY 0xFFFF to disable reception of packets with 16 bit addresses Regardless of MY messages addressed to the 64 bit long address of the device are always delivered Parameter range 0 0xFFFF Default 0 SH Serial Number High Displays the upper 32 bits of the unique IEEE 64 bit extended address assigned to the product family in the factory The 64 b...

Page 71: ...ll be sent out of the UART and not filtered out Parameter range 0 3 Parameter Configuration 0 Digi Mode 802 15 4 Digi header 1 802 15 4 no ACKs 2 802 15 4 with ACKs 3 Digi Mode no ACKs Default 0 RR XBee Retries Set or reads the maximum number of retries the device executes in addition to the three retries provided by the 802 15 4 MAC For each device retry the 802 15 4 MAC can execute up to three r...

Page 72: ...o see if the channel is clear After a time the process ends and the data is lost Parameter range 0 3 exponent Default 0 ND Network Discovery Discovers and reports all devices found in the network For each discovered device the following information is returned after a jittered time delay Node discover response when issued in Command mode MY CR 2 bytes always 0xFFFE SH CR 4 bytes SL CR 4 bytes DB C...

Page 73: ...n about options that affect the behavior of the ND command Refer to the description of the NO command for options which affect the behavior of the ND command WARNING If the NT setting is small relative to the number of devices on the network responses may be lost due to channel congestion Regardless of the NT setting because the random offset only mitigates transmission collisions getting response...

Page 74: ... sent as a local AT Command API frame 1 The receiving device returns the 16 bit network and 64 bit extended addresses in an API Command Response frame 2 If there is no response from a module within NT 100 milliseconds or you do not specify a parameter by leaving it blank the receiving device returns an ERROR message In the case of an ERROR the device does not exit command mode Set the radius of th...

Page 75: ...tor startup Parameter range 0 0xFFFF bit field Bit field mask Bit Parameter 0 0x0B not available on XBee PRO 1 0x0C 2 0x0D 3 0x0E 4 0x0F 5 0x10 6 0x11 7 0x12 8 0x13 9 0x14 10 0x15 11 0x16 12 0x17 13 0x18 not available on XBee PRO 14 0x19 not available on XBee PRO 15 0x1A not available on XBee PRO Default 0x1FFE SD Scan Duration Sets or displays the scan duration exponent Coordinator If you set the...

Page 76: ... Scan Time is measured as of channels to scan 2 SD 15 36 ms 38 ms of channels to scan 20 ms Use the SC Scan Channels command to set the number of channels to scan The XBee can scan up to 16 channels SC 0xFFFF The XBee PRO can scan up to 13 channels SC 0x1FFE SD influences the time the MAC listens for beacons or runs an energy scan on a given channel Example The following table shows the results fo...

Page 77: ...equest to Coordinator to extract any pending data 4 7 Reserved Default 0 A2 Coordinator Association Sets or displays the Coordinator association options Parameter range 0 7 bit field Bit field Bit Meaning Setting Description 0 Allow Pan ID reassignment 0 Coordinator will not perform Active Scan to locate available PAN ID It operates on ID PAN ID 1 Coordinator performs an Active Scan to determine a...

Page 78: ...0x05 Active Scan found a PAN but the PAN ID doesn t match the configured PAN ID on the requesting end device and bit 0 of A1 is not set to allow reassignment of PAN ID 0x06 Active Scan found a PAN on a channel that does not match the configured channel on the requesting end device and bit 1 of A1 is not set to allow reassignment of the channel 0x0C Association request failed to get a response 0x13...

Page 79: ...ys report 0x00 SecurityFailure CR will always report 0x00 SuperFrameSpec CR 2 bytes bit 15 Association Permitted MSB depending on bit 3 of A2 Coordinator Association bit 14 PAN Coordinator bit 13 Reserved bit 12 Battery Life Extension bits 8 11 Final CAP Slot bits 4 7 Superframe Order bits 0 3 Beacon Order GtsPermit CR RSSI CR RSSI is returned as dBm TimeStamp CR 3 bytes CR A carriage return CR is...

Page 80: ... uses AES encryption with a 128 bit key AES encryption dictates that all devices in the network use the same key and that the maximum RF packet size is 95 bytes if Tx compatibility is enabled you set bit 0 of C8 If C8 bit 0 is not set see Maximum payload When encryption is enabled the device always uses its 64 bit long address as the source address for RF packets This does not affect how the MY So...

Page 81: ...ware on the device returns an error Use the ND Network Discovery command with this string as an argument to easily identify devices on the network The DN command also uses this identifier Parameter range A string of case sensitive ASCII printable characters from 1 to 20 bytes in length The string cannot start with the space character A carriage return or a comma automatically ends the command Defa...

Page 82: ...on settings and the current temperature For XBee PL 4 PM 1 is tested at the time of manufacturing Other power levels are approximate On channel 26 transmitter power will not exceed 5 dBm Parameter range 0 4 The following table shows the TX power versus the PL setting XBee modules PL setting PM setting Channel s TX power dBm 4 1 11 to 25 8 4 0 11 to 25 5 3 1 11 to 25 6 3 0 11 to 25 3 2 1 11 to 25 4...

Page 83: ...t mode disabled 1 Boost mode enabled Default 1 CA CCA Threshold Set or read the Clear Channel Assessment CCA threshold Prior to transmitting a packet the device performs a CCA to detect energy on the channel If the device detects energy above the CCA threshold it will not transmit the packet The CA parameter is measured in units of dBm Note If device is operating in Europe this value must be set t...

Page 84: ...p settings SM 4 5 and for coordinators Coordinator and End Device ST values must be equal Parameter range 1 0xFFFF x 1 ms Default 0x1388 5 seconds SP Cyclic Sleep Period Sets and reads the duration of time that a remote device sleeps After the cyclic sleep period is over the device wakes and checks for data If data is not present the device goes back to sleep The SP parameter is only valid if you ...

Page 85: ...ns bit field of a device This command is a bitmask You can set or clear any of the available sleep option bits Parameter range 0 0x3 Bit field Bit Setting Meaning Description 0x01 0 Normal operations A device configured for cyclic sleep will poll for data on waking 1 Disable wakeup poll A device configured for cyclic sleep will not poll for data on waking 0x02 0 Normal operations A device configur...

Page 86: ...example to set a rate of 57600 b s send the following command line ATBDE100 Then to find out the closest approximation send ATBD to the console window It sends back a response of 0xE0D1 which is the closest approximation to 57600 b s attainable by the hardware Note When using XCTU you can only set and read non standard interface data rates using the XCTU Terminal tab You cannot access non standard...

Page 87: ...0x00 0x04 Parameter Description 0x00 No parity 0x01 Even parity 0x02 Odd parity 0x03 Mark parity forced high Default 0x00 RO Packetization Timeout Set or read the number of character times of inter character silence required before transmission begins when operating in Transparent mode RF transmission will also commence when the maximum payload see Maximum payload is received in the DI buffer Set ...

Page 88: ...transmit 0 V when idle Default 0x1 D6 DIO6 RTS Sets or displays the DIO6 RTS configuration TH pin 16 SMT pin 29 Parameter range Parameter Description 0 Disabled 1 RTS flow control 2 N A 3 Digital input 4 Digital output low 5 Digital output high Default 0 AP API Enable Set or read the API mode setting The device can format the RF packets it receives into API frames and send them out the serial port...

Page 89: ... sequences to allow for control characters When XON 0x11 XOFF 0x13 Escape 0x7D and start delimiter 0x7E are data these bytes are escaped so that they never appear in the data and so that they can always be interpreted with their special meanings Default 0 I O settings commands The following AT commands are I O settings commands D0 DIO0 AD0 Sets or displays the DIO0 AD0 configuration TH pin 20 SMT ...

Page 90: ...ital input 4 Digital output low 5 Digital output high 6 PTI_EN Default 0 D2 DIO2 AD2 Sets or displays the DIO2 AD2 configuration TH pin 18 SMT pin 31 Parameter range 0 5 Parameter Description 0 Disabled 1 SPI_CLK for through hole devices 2 ADC 3 Digital input 4 Digital output low 5 Digital output high Default 0 D3 DIO3 AD3 Sets or displays the DIO3 AD3 configuration TH pin 17 SMT pin 30 Parameter ...

Page 91: ...ut low 5 Digital output high Default 0 D4 DIO4 Sets or displays the DIO4 configuration TH pin 11 SMT pin 24 Parameter range 0 1 3 5 Parameter Description 0 Disabled 0 Unmonitored digital input 1 SPI_MOSI for the through hole device 2 N A 3 Digital input 4 Digital output low 5 Digital output high Default 0 D5 DIO5 ASSOCIATED_INDICATOR Sets or displays the DIO5 ASSOCIATED_INDICATOR configuration TH ...

Page 92: ... D8 configuration It is always used to control pin sleep regardless of configuration of D8 Note When using Pin sleep the internal pull up down resistor is not used Parameter range 0 3 Parameter Description 0 Disabled 1 N A 2 N A 3 Digital input 4 N A 5 N A Default 0 P0 RSSI PWM0 Configuration Sets or displays the RSSI PWM0 configuration This command enables the option of translating incoming data ...

Page 93: ...nfiguration TH pin 7 SMT pin 8 If IA I O Input Address is correctly set and P1 is configured as PWM1 output incoming AD0 samples automatically modify the PWM1 value Parameter range 0 2 Parameter Description 0 Disabled 2 PWM1 output Default 0 P2 SPI_MISO Sets or displays the SPI_MISO configuration TH pin 4 SMT pin 17 This only applies to through hole devices Parameter range 0 1 Parameter Descriptio...

Page 94: ... use CN or AC To configure the duty cycle of PWM0 The PWM period is 64 µs and there are 0x03FF 1023 decimal steps within this period When M0 0 0 PWM 0x01FF 50 PWM 0x03FF 100 PWM and so forth Parameter range 0 0x3FF Default 0 M1 PWM1 Duty Cycle The duty cycle of the PWM1 line TH pin 7 SMT pin 8 Use the P1 command to configure the line as a PWM output Before setting the line as an output 1 Enable PW...

Page 95: ...rameter range 0 1 Parameter Description 0 Disabled 1 SPI_MOSI Default 1 P7 SPI_SSEL Sets or displays the SPI_SSEL configuration This only applies to surface mount devices Parameter range 1 2 Parameter Description 0 Disabled 1 SPI_SSEL Default 1 P8 SPI_SCLK Sets or displays the DIO18 SPI_CLK configuration This only applies to surface mount devices Parameter range 1 2 Parameter Description 0 Disable...

Page 96: ...to 1 it enables the pull up down resistor n If you set a PR bit to 0 it specifies no internal pull up down resistor The PD Pull Direction parameter determines the direction of the internal pull up down resistor Note When using Pin sleep the internal pull up down resistor is not used PR and PD only affect lines that are configured as digital inputs or disabled The following table defines the bit fi...

Page 97: ...egardless of the current AP parameter value Enable or disable the serial output of received I O sample data when I O line passing is enabled IU only affects the device s behavior when IA is set to a non default value When IU is enabled any received I O sample data is sent out the UART SPI interface using an API frame Sample data is only generated if the local device is operating in API mode AP 1 o...

Page 98: ...operating in API mode AP 1 the command immediately returns an OK response The data follows in the normal API format for DIO data Parameter range N A Default N A IO Digital Output Level Sets digital output levels This allows DIO lines setup as outputs to be changed through Command mode Parameter range 8 bit bit map each bit represents the level of an I O line set up as an output Default N A IC DIO ...

Page 99: ...res When RP 0xFF the output is always on Parameter range 0 0xFF x 100 ms Default 0x28 four seconds I O line passing commands The following AT commands are I O line passing commands I O Line Passing allows the digital and analog inputs of a remote device to affect the corresponding outputs of the local device You can perform Digital Line Passing on any of the Digital I O lines Digital Inputs direct...

Page 100: ...to configured value If set to 0 there is no timeout Parameter range 0 0xFF x 100 ms Default 0xFF T1 D1 Output Timeout Specifies how long pin D1 holds a given value before it reverts to configured value If set to 0 there is no timeout Parameter range 0 0xFF x 100 ms Default 0xFF T2 D2 Output Timeout Specifies how long pin D2 holds a given value before it reverts to configured value If set to 0 ther...

Page 101: ...t Parameter range 0 0xFF x 100 ms Default 0xFF T6 D6 Output Timeout Specifies how long pin D6 holds a given value before it reverts to configured value If set to 0 there is no timeout Parameter range 0 0xFF x 100 ms Default 0xFF T7 D7 Output Timeout Specifies how long pin D7 holds a given value before it reverts to configured value If set to 0 there is no timeout Parameter range 0 0xFF x 100 ms De...

Page 102: ...hexadecimal notation A version is reported as ABCD Digits ABC are the main release number and D is the revision number from the main release D is not required and if it is not present a zero is assumed for D B is a variant designator Parameter range 0x2000 0x20FF Default Set in the factory VL Version Long Shows detailed version information including the application build date and time Parameter ra...

Page 103: ...gy above the CCA threshold level set with CA command This count saturates at its maximum value Set the count to zero to reset the count Parameter range 0 0xFFFF Default N A EA ACK Failures Resets or displays the count of acknowledgment failures This register increments when the device expires the retries without receiving an ACK on a packet transmission This count saturates at its maximum value Se...

Page 104: ...e Applying changes means that the device is re initialized based on changes made to its parameter values Once changes are applied the device immediately operates according to the new parameter values This behavior is in contrast to issuing the WR Write command The WR command saves parameter values to non volatile memory but the device still operates according to previously saved values until the d...

Page 105: ...alue 0x2B is the ASCII code for the plus character You must enter it three times within the guard time to enter Command mode To enter Command mode there is also a required period of silence before and after the command sequence characters of the Command mode sequence GT CC GT The period of silence prevents inadvertently entering Command mode Parameter range 0 0xFF Default 0x2B the ASCII plus chara...

Page 106: ...Operate in API mode API mode overview 107 API frame specifications 107 Escaped characters in API frames 110 Frame descriptions 111 XBee XBee PRO S2C 802 15 4 RF Module User Guide 106 ...

Page 107: ...t the following AP parameter values AP command setting Description AP 0 Transparent operating mode UART serial line replacement with API modes disabled This is the default option AP 1 API operation AP 2 API operation with escaped characters only possible on UART The API data frame structure differs depending on what mode you choose The firmware silently discards any data it receives prior to the s...

Page 108: ...n interfering data byte insert 0x7D and follow it with the byte to be escaped XOR d with 0x20 If not escaped 0x11 and 0x13 are sent as is Data bytes that need to be escaped n 0x7E Frame delimiter n 0x7D Escape n 0x11 XON n 0x13 XOFF Example Raw UART data frame before escaping interfering bytes 0x7E 0x00 0x02 0x23 0x11 0xCB 0x11 needs to be escaped which results in the following frame 0x7E 0x00 0x0...

Page 109: ...xcept the first three bytes start delimiter and length The device does not process frames sent through the serial interface with incorrect checksums and ignores their data Calculate and verify checksums To calculate the checksum of an API frame 1 Add all bytes of the packet except the start delimiter 0x7E and the length the second and third bytes 2 Keep only the lowest 8 bits from the result 3 Sub...

Page 110: ...o verify the check sum of an API packet add all bytes including the checksum do not include the delimiter and length and if correct the last two far right digits of the sum will equal FF 01 01 50 01 00 48 65 6C 6C 6F B8 2FF Escaped characters in API frames If operating in API mode with escaped characters AP parameter 2 when sending or receiving a serial data frame specific data values must be esca...

Page 111: ...e Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type 64 bit Transmit Request 0x00 4 8 bit Frame ID Identifies the data frame for the host to correlate with a subsequent response If set to 0 the device will not emit a response frame 5 64 bit Destination address Set to the 64 bit IEEE ...

Page 112: ...rial data TxData The corresponding Transmit Status 0x89 response with a matching Frame ID will indicate whether the transmission succeeded 7E 00 11 00 52 00 13 A2 00 12 34 56 78 00 54 78 44 61 74 61 9E Frame type Frame ID 64 bit dest address Tx options RF data 0x00 0x52 0x0013A200 12345678 0x00 0x547844617461 Input Matches response TxData 64 bit broadcast Sending a broadcast transmission of the se...

Page 113: ...frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type 16 bit Transmit Request 0x01 4 8 bit Frame ID Identifies the data frame for the host to correlate with a subsequent response If set to 0 the device will not emit a response frame 5 16 bit Destination address Set to the 16 bit network address of the destination device If set to 0xFFFF the broadcast address is u...

Page 114: ...tus 0x89 response with a matching Frame ID will indicate whether the transmission succeeded 7E 00 0B 01 87 12 34 00 54 78 44 61 74 61 EB Frame type Frame ID 16 bit dest address Tx options RF data 0x01 0x87 0x1234 0x00 0x547844617461 Input Matches response TxData 16 bit broadcast Sending a broadcast transmission of the serial data Broadcast and suppressing the corresponding response by setting Fram...

Page 115: ...me structure see API frame format Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type Local AT Command Request 0x08 4 8 bit Frame ID Identifies the data frame for the host to correlate with a subsequent response If set to0 the device will not emit a response frame 5 16 bit...

Page 116: ...420446576696365 Request Matches response NI End Device Query local command parameter Query the temperature of the module TP command The corresponding Description with a matching Frame ID will return the temperature value 7E 00 04 08 17 54 50 3C Frame type Frame ID AT command Parameter value 0x08 0x17 0x5450 omitted Request Matches response TP Query the parameter ...

Page 117: ... table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type Queue Local AT Command Request 0x09 4 8 bit Frame ID Identifies the data frame for the host to correlate with a subsequ...

Page 118: ...r the parameter change succeeded 7E 00 05 09 53 42 44 07 16 Frame type Frame ID AT command Parameter value 0x09 0x53 0x4244 0x07 Request Matches response BD 7 115200 baud Query local command parameter Query the temperature of the module TP command The corresponding Description frame with a matching Frame ID will return the temperature value 7E 00 04 09 17 54 50 3B Frame type Frame ID AT command Pa...

Page 119: ... be issued as unicast transmissions to avoid potential network disruption Broadcasts are not acknowledged so there is no guarantee all devices will receive the request Responses are returned immediately by all receiving devices which can cause congestion on a large network Format The following table provides the contents of the frame For details on frame structure see API frame specifications Offs...

Page 120: ...cates the requested parameter value to set the given register If no characters are present it queries the current parameter value and returns the result in the response EOF 8 bit Checksum 0xFF minus the 8 bit sum of bytes from offset 3 to this byte between length and checksum Examples Each example is written without escapes AP 1 and all bytes are represented in hex format For brevity the start del...

Page 121: ... success 7E 00 11 17 68 00 13 A2 00 12 34 56 78 FF FE 00 49 44 04 51 D8 Frame type Frame ID 64 bit dest 16 bit dest Command options AT command Parameter value 0x17 0x68 0x0013A200 12345678 0xFFFE 0x00 0x4944 0x0451 Request Matches response Unknown Queue Change ID Query remote command parameter Query the temperature of a remote device TP command The corresponding Remote AT Command Response 0x97 wit...

Page 122: ...ers who require compatibility with legacy Digi RF products For new designs we encourage you to use Receive Packet frame 0x90 for reception of API transmissions Format The following table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number...

Page 123: ...it sum of bytes from offset 3 to this byte between length and checksum Examples Each example is written without escapes AP 1 and all bytes are represented in hex format For brevity the start delimiter length and checksum fields have been excluded 64 bit unicast A device with the 64 bit address of 0013A20087654321 sent a unicast transmission to a specific device with the payload of TxData The follo...

Page 124: ...me 0x90 for reception of API transmissions Format The following table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type 16 bit Receive Packet 0x81 4 16 bit 16 bit source addres...

Page 125: ...written without escapes AP 1 and all bytes are represented in hex format For brevity the start delimiter length and checksum fields have been excluded 64 bit unicast A device with the 16 bit address of 1234 sent a unicast transmission to a specific device with the payload of TxData The following frame is emitted if the destination is configured with AO 2 7E 00 0B 81 12 34 5E 01 54 78 44 61 74 61 9...

Page 126: ...table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type 64 bit I O Sample Indicator 0x82 4 64 bit 64 bit source address The sender s 64 bit IEEE address 12 8 bit RSSI Received ...

Page 127: ... samples if included If the sample set includes any digital I O lines Digital channel mask 0 this field contain samples for all enabled digital I O lines If no digital lines are configured as inputs or outputs this field will be omitted DIO lines that do not have sampling enabled return 0 Bits in this field are arranged the same as they are in the channel mask field 19 16 bit variable Analog sampl...

Page 128: ...table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type 16 bit I O Sample Indicator 0x83 4 16 bit 16 bit source address The sender s 16 bit network address 6 8 bit RSSI Receive...

Page 129: ... samples if included If the sample set includes any digital I O lines Digital channel mask 0 this field contain samples for all enabled digital I O lines If no digital lines are configured as inputs or outputs this field will be omitted DIO lines that do not have sampling enabled return 0 Bits in this field are arranged the same as they are in the channel mask field 13 16 bit variable Analog sampl...

Page 130: ...ns Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type Local AT Command Response 0x88 4 8 bit Frame ID Identifies the data frame for the host to correlate with a prior request 5 16 bit AT command The two ASCII characters that identify the AT Command 7 8 bit Command status ...

Page 131: ... a matching Frame ID is emitted as a response 7E 00 05 88 01 4E 49 00 DF Frame type Frame ID AT command Command Status Command data 0x88 0xA1 0x4E49 0x00 omitted Response Matches request NI Success Parameter changes return no data Query local command parameter Host queries the temperature of the local device TP command using a 0x08 request frame The corresponding Description with a matching Frame ...

Page 132: ...n This frame is only emitted if the Frame ID in the request is non zero Note Broadcast transmissions are not acknowledged and always return a status of 0x00 even if the delivery failed Format The following table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API fra...

Page 133: ...e 0x7C Invalid interface See User Data Relay Input 0x2D 0x7D Interface not accepting frames See User Data Relay Input 0x2D 0x7E A modem update is in progress Try again after the update is complete 0x80 Connection refused 0x81 Socket connection lost 0x82 No server 0x83 Socket closed 0x84 Unknown server 0x85 Unknown error 0x86 Invalid TLS configuration missing file and so forth 0x87 Socket not conne...

Page 134: ...bytes are represented in hex format For brevity the start delimiter length and checksum fields have been excluded Successful transmission Host sent a unicast transmission to a remote device using a TX Request 64 bit address frame 0x00 frame The corresponding 0x89 Transmit Status with a matching Frame ID is emitted as a response to the request 7E 00 03 89 52 00 24 Frame type Frame ID Delivery statu...

Page 135: ...ns The status field of this frame indicates the device behavior Format The following table provides the contents of the frame For details on frame structure see API frame specifications Offset Size Frame Field Description 0 8 bit Start Delimiter Indicates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type Modem Status 0x8A ...

Page 136: ...E Disconnect 0x34 Bandmask configuration failed 0x35 Cellular component update started 0x36 Cellular component update failed 0x37 Cellular component update completed 0x38 XBee firmware update started 0x39 XBee firmware update failed 0x3A XBee firmware update applying 0x40 Router PAN ID was changed by coordinator due to a conflict 0x42 Network Watchdog timeout expired 0x80 through 0xFF Stack error ...

Page 137: ...nect 0x33 XBee 3 BLE Disconnect 0x34 XBee 3 No Secure Session Connection Examples Each example is written without escapes AP 1 and all bytes are represented in hex format For brevity the start delimiter length and checksum fields have been excluded Boot status When a device powers up it returns the following API frame 7E 00 02 8A 00 75 Frame type Modem Status 0x8A 0x00 Status Hardware Reset ...

Page 138: ...icates the start of an API frame 1 16 bit Length Number of bytes between the length and checksum 3 8 bit Frame type Remote AT Command Response 0x97 4 8 bit Frame ID Identifies the data frame for the host to correlate with a prior request 5 64 bit 64 bit source address The sender s 64 bit address 13 16 bit 16 bit source address The sender s 16 bit network address 15 16 bit AT command The two ASCII ...

Page 139: ...mote AT Command Response with a matching Frame ID is emitted as a response 7E 00 0F 97 27 00 13 A2 00 12 34 56 78 12 7E 4E 49 00 51 Frame type Frame ID 64 bit source 16 bit source AT command Command Status Command data 0x97 0x27 0x0013A200 12345678 0x127E 0x4E49 0x00 omitted Response Matches request Network address NI Success Parameter changes return no data Transmission failure Host queued the th...

Page 140: ...e with a matching Frame ID is emitted with the temperature value as a response 7E 00 11 97 27 00 13 A2 00 12 34 56 78 FF FE 54 50 00 00 2F A8 Frame type Frame ID 64 bit source 16 bit source AT command Command Status Command data 0x97 0x27 0x0013A200 12345678 0x127E 0x4944 0x00 0x002F Response Matches request Network address TP Success 47 C ...

Page 141: ...egulatory information United States FCC 142 Europe CE 157 ISED Innovation Science and Economic Development Canada 159 Australia RCM 160 South Korea 160 XBee XBee PRO S2C 802 15 4 RF Module User Guide 141 ...

Page 142: ... S2C TH RF Module Contains FCC ID MCQ S2CTH This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 this device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation Required FCC Label for OEM products containing the XBee PRO S2C TH RF Module Contains FCC...

Page 143: ... 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...

Page 144: ...when using gain antennas as shown in the tables Digi does not carry all of these antenna variants Contact Digi Sales for available antennas All antenna part numbers followed by an asterisk are not available from Digi Consult with an antenna manufacturer for an equivalent option XBee S2C SMT RF module The following table shows the antennas approved for use with the XBee S2C SMT RF module Part numbe...

Page 145: ...berglass base station 8 0 Fixed 2 m N A N A 0 1 A24 F9NF Omni directional Fiberglass base station 9 5 Fixed 2 m N A N A 1 6 A24 F10NF Omni directional Fiberglass base station 10 0 Fixed 2 m N A N A 2 1 A24 F12NF Omni directional Fiberglass base station 12 0 Fixed 2 m N A N A 4 1 A24 W7NF Omni directional Fiberglass base station 7 2 Fixed 2 m N A N A N A A24 M7NF Omni directional Mag mount base sta...

Page 146: ...8 Fixed 2 m N A N A 3 9 A24 Y7NF Yagi 7 element 9 0 Fixed 2 m N A N A 4 1 A24 Y9NF Yagi 9 element 10 0 Fixed 2 m N A N A 5 1 A24 Y10NF Yagi 10 element 11 0 Fixed 2 m N A 0 6 6 1 A24 Y12NF Yagi 12 element 12 0 Fixed 2 m N A 1 6 7 1 A24 Y13NF Yagi 13 element 12 0 Fixed 2 m N A 1 6 7 1 A24 Y15NF Yagi 15 element 12 5 Fixed 2 m N A 2 1 7 6 A24 Y16NF Yagi 16 element 13 5 Fixed 2 m N A 3 1 8 6 A24 Y16RM ...

Page 147: ...ticulated RPSMA 4 5 2 1 Fixed 25 cm N A N A N A A24 HABSM Dipole Articulated RPSMA 2 1 Fixed 25 cm N A N A N A 29000095 Dipole Half wave articulated RPSMA 4 5 2 1 Fixed Mobile 25 cm N A N A N A A24 HABUF P5I Dipole Half wave articulated bulkhead mount U FL w 5 pigtail 2 1 Fixed Mobile 25 cm N A N A N A A24 HASM 525 Dipole Half wave articulated RPSMA 5 25 2 1 Fixed 25 cm N A N A N A Omni directiona...

Page 148: ... A N A A24 M7NF Omni directional Mag mount base station 7 2 Fixed 2 m N A N A N A A24 F15NF Omni directional Fiberglass base station 15 0 Fixed 2 m 0 4 0 4 6 4 Panel antennas A24 P8SF Flat Panel 8 5 Fixed 2 m N A N A 4 9 A24 P8NF Flat Panel 8 5 Fixed 2 m N A N A 4 9 A24 P13NF Flat Panel 13 0 Fixed 2 m N A 3 4 9 4 A24 P14NF Flat Panel 14 0 Fixed 2 m N A 4 4 10 4 A24 P15NF Flat Panel 15 0 Fixed 2 m ...

Page 149: ...e loss dB Channels 11 24 Channel 25 Channel 26 A24 Y12NF Yagi 12 element 12 0 Fixed 2 m N A 2 4 7 9 A24 Y13NF Yagi 13 element 12 0 Fixed 2 m N A 2 4 7 9 A24 Y15NF Yagi 15 element 12 5 Fixed 2 m N A 2 9 8 4 A24 Y16NF Yagi 16 element 13 5 Fixed 2 m N A 3 9 9 4 A24 Y16RM Yagi 16 element RPSMA connector 13 5 Fixed 2 m N A 3 9 9 4 A24 Y18NF Yagi 18 element 15 0 Fixed 2 m 0 4 5 4 10 9 ...

Page 150: ...e Half wave articulated RPSMA 4 5 2 1 Fixed 25 cm N A N A A24 HABSM Dipole Articulated RPSMA 2 1 Fixed 25 cm N A N A 29000095 Dipole Half wave articulated RPSMA 4 5 2 1 Fixed Mobile 25 cm N A N A A24 HABUF P5I Dipole Half wave articulated bulkhead mount U FL w 5 pigtail 2 1 Fixed Mobile 25 cm N A N A A24 HASM 525 Dipole Half wave articulated RPSMA 5 25 2 1 Fixed 25 cm N A N A Omni directional ante...

Page 151: ... Fixed 2 m N A N A A24 M7NF Omni directional Mag mount base station 7 2 Fixed 2 m N A N A A24 F15NF Omni directional Fiberglass base station 15 0 Fixed 2 m 1 1 4 6 Panel antennas A24 P8SF Flat Panel 8 5 Fixed 2 m N A 2 1 A24 P8NF Flat Panel 8 5 Fixed 2 m N A 2 1 A24 P13NF Flat Panel 13 0 Fixed 2 m 2 7 6 6 A24 P14NF Flat Panel 14 0 Fixed 2 m 3 7 7 6 A24 P15NF Flat Panel 15 0 Fixed 2 m 4 7 8 6 A24 P...

Page 152: ...uired antenna cable loss dB Channels 11 23 Channel 24 A24 Y12NF Yagi 12 element 12 0 Fixed 2 m 1 6 5 1 A24 Y13NF Yagi 13 element 12 0 Fixed 2 m 1 6 5 1 A24 Y15NF Yagi 15 element 12 5 Fixed 2 m 2 1 5 6 A24 Y16NF Yagi 16 element 13 5 Fixed 2 m 3 1 6 6 A24 Y16RM Yagi 16 element RPSMA connector 13 5 Fixed 2 m 3 1 6 6 A24 Y18NF Yagi 18 element 15 0 Fixed 2 m 4 6 8 1 ...

Page 153: ...f wave articulated RPSMA 4 5 2 1 Fixed Mobile 25 cm N A N A A24 HABSM Dipole Articulated RPSMA 2 1 Fixed 25 cm N A N A 29000095 Dipole Half wave articulated RPSMA 4 5 2 1 Fixed Mobile 25 cm N A N A A24 HABUF P5I Dipole Half wave articulated bulkhead mount U FL w 5 pigtail 2 1 Fixed 25 cm N A N A A24 HASM 525 Dipole Half wave articulated RPSMA 5 25 2 1 Fixed Mobile 25 cm N A N A Omni directional an...

Page 154: ...xed 2 m N A N A A24 M7NF Omni directional Mag mount base station 7 2 Fixed 2 m N A N A A24 F15NF Omni directional Fiberglass base station 15 0 Fixed 2 m 0 4 4 4 Panel antennas A24 P8SF Flat Panel 8 5 Fixed 2 m N A 0 4 A24 P8NF Flat Panel 8 5 Fixed 2 m N A 0 4 A24 P13NF Flat Panel 13 Fixed 2 m 2 4 4 9 A24 P14NF Flat Panel 14 Fixed 2 m 3 4 5 9 A24 P15NF Flat Panel 15 0 Fixed 2 m 4 4 6 9 A24 P16NF Fl...

Page 155: ...m 4 4 7 4 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 25 cm 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 Frequency Electromagnetic Fields OET...

Page 156: ... requirements are associated with this section 2 2 List of applicable FCC rules This module conforms to FCC Part 15 247 2 3 Summarize the specific operational use conditions Certain approved antennas require attenuation for operation For the XBee XBee PRO S2C 802 15 4 RF Module see FCC approved antennas 2 4 GHz Host product user guides should include the antenna table if end customers are permitte...

Page 157: ...everal European countries For a complete list refer to www digi com resources certifications If XBee XBee PRO S2C 802 15 4 RF Modules are incorporated into a product the manufacturer must ensure compliance of the final product with articles 3 1a and 3 1b of the Radio Equipment Directive A Declaration of Conformity must be issued for each of these standards and kept on file as described in the Radi...

Page 158: ...n the desired countries of operation for more information Listen Before Talk requirement The XBee XBee PRO S2C 802 15 4 RF Module must be configured to comply with the Listen Before Talk LBT requirements in the EN 300 328 standard This can be accomplished by one of the following options 1 Set the PL command to 3 6 dBm or lower which ensures that the maximum transmitter power is under the limit at ...

Page 159: ...ES 003 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 ICES 003 For XBee S2C through hole Contains Model S2CTH Radio IC 1846A S2CTH The integrator is responsible for its product to comply with IC ICES 003 FCC Part 15 Sub B Unintentional Radiators ICES 003 is the same as FCC P...

Page 160: ...oisir le type d antenne et son gain de sorte que la puissance isotrope rayonnée équivalente p i r e ne dépasse pas l intensité nécessaire àl établissement d une communication satisfaisante Australia RCM XBee S2C 802 15 4 and XBee PRO S2C 802 15 4 modules comply with requirements to be used in end products in Australia and New Zealand All products with EMC and radio communications must have registe...

Page 161: ... KCC logo must be at least 5 mm tall The text shown in the label is 1 모델명 XBee S2C TH 2 인증번호 MSIP CRM DIG XBee S2C TH 3 인증자상호 DIGI INTERNATIONAL INC 4 제조자 제조국가 DIGI INTERNATIONAL INC 미국 If the label size does not accommodate the required content you can use abbreviated information as follows ...

Page 162: ...S2C TH For the surface mount version the label will overlay the existing product label CAUTION By placing a label over the existing label the certifications for Europe CE Australia New Zealand RCM and Japan will no longer apply Recommended label material Abraham Technical TELT 000465 The label size is 15 9 mm x 20 3 mm 0 625 in x 0 8 in The complete label information is as follows ...

Page 163: ...e KCC logo must be at least 5 mm tall The text shown in the label is 1 모델명 XBee S2C 2 인증번호 MSIP CRM DIG XBee S2C 3 인증자상호 DIGI INTERNATIONAL INC 4 제조자 제조국가 DIGI INTERNATIONAL INC 미국 If the label size does not accommodate the required content you can use the abbreviated information as follows ...

Page 164: ...Regulatory information South Korea XBee XBee PRO S2C 802 15 4 RF Module User Guide 164 The KCC logo must be at least 5 mm tall The text shown in the label is 인증번호 MSIP CRM DIG XBee S2C ...

Page 165: ...Load 802 15 4 firmware on ZB devices Background 166 Load 802 15 4 firmware 166 XBee XBee PRO S2C 802 15 4 RF Module User Guide 165 ...

Page 166: ...SMT 0x22 XB24CZ7PIT 004 XB24CZ7SIT 004 XB24CZ7UIT 004 XB24CZ7WIT 004 All XBee TH 0x2E XBP24CZ7PIS 004 XBP24CZ7RIS 004 XBP24CZ7UIS 004 Rev L and later XBee SMT 0x30 XBP24CZ7PIT 004 XBP24CZ7SIT 004 XBP24CZ7UIT 004 XBP24CZ7WIT 004 All XBee TH 0x2D In addition to the differences between the 802 15 4 and Zigbee protocols some of the operational features are different between the two firmware versions F...

Page 167: ...dialog box in the Function set area click the 802 15 4 option and the newest firmware version 5 Click Update and follow the instructions 6 When the updating process successfully completes your device runs 802 15 4 firmware You can change back to Zigbee firmware at any time by following the same process and selecting the Zigbee firmware option instead ...

Page 168: ... offer the same basic feature set The surface mount form factor has more I O pins Because the XBee device was originally offered in only the through hole form factor we offer this section to help you migrate from the through hole to the surface mount form factor Pin mapping 169 Mount the devices 170 XBee XBee PRO S2C 802 15 4 RF Module User Guide 168 ...

Page 169: ...through hole TH pins The pin names are from the XBee S2C SMT device SMT Pin Name TH Pin 1 GND 2 VCC 1 3 DOUT 2 4 DIN CONFIG 3 5 Reserved 4 6 RESET 5 7 PWM0 RSSI PWM 6 8 PWM1 7 9 Reserved 8 10 DI8 SLEEP_RQ DTR 9 11 GND 10 12 SPI_ATTN BOOTMODE 13 GND 14 SPI_CLK 15 SPI_SSEL 16 SPI_MOSI 17 SPI_MISO 18 Reserved 19 Reserved 20 Reserved 21 Reserved 22 GND 23 Reserved 24 DIO4 11 25 DIO7 CTS 12 26 On SLEEP...

Page 170: ...O3 AD3 17 31 DIO2 AD2 18 32 DIO1 AD1 19 33 DIO0 AD0 20 34 Reserved 35 GND 36 RF 37 Reserved Mount the devices One important difference between the SMT and TH devices is the way they mount to a printed circuit board PCB Each footprint requires different mounting techniques We designed a footprint that allows you to attach either device to a PCB The following drawing shows the layout ...

Page 171: ... for the TH design and the semi oval pads are for the SMT design Pin 1 of the TH design is lined up with pad 1 of the SMT design but the pins are actually offset by one pad see Pin mapping By using diagonal traces to connect the appropriate pins the layout will work for both devices PCB design and manufacturing contains information on attaching the SMT device ...

Page 172: ...castellated pads to allow for easy solder attach inspection The pads are all located on the edge of the module so there are no hidden solder joints on these modules Recommended solder reflow cycle 173 Recommended footprint and keepout 173 Flux and cleaning 175 Rework 175 XBee XBee PRO S2C 802 15 4 RF Module User Guide 172 ...

Page 173: ...s The device has a Moisture Sensitivity Level MSL of 3 When using this product consider the relative requirements in accordance with standard IPC JEDEC J STD 020 In addition note the following conditions a Calculated shelf life in sealed bag 12 months at 40 C and 90 relative humidity RH b Environmental condition during the production 30 C 60 RH according to IPC JEDEC J STD 033C paragraphs 5 throug...

Page 174: ...sist we recommend that the copper layer directly below the module be left open to avoid unintended contacts Copper or vias must not interfere with the three exposed RF test points on the bottom of the module see below Furthermore these modules have a ground plane in the middle on the back side for shielding purposes which can be affected by copper traces directly below the module ...

Page 175: ...under the device or in the gap between the device and the host PCB This can lead to unintended connections between pads n The residual moisture and flux residue under the device are not easily seen during an inspection process Rework CAUTION Any modification to the device voids the warranty coverage and certifications Rework should never be performed on the module itself The module has been optimi...

Page 176: ...success during rework though the warranty is still voided The module may be removed from the OEM PCB by the use of a hot air rework station or hot plate Care should be taken not to overheat the module During rework the module temperature may rise above its internal solder melting point and care should be taken not to dislodge internal components from their intended positions ...

Reviews: