Digi XBee Application Note

Transcription

Digi XBee Application NoteMigration from XBee/XBee-PRO ZB (S2/S2B) to XBee/XBee-PRO ZB (S2C)This guide will assist you with migrating from the XBee/XBee-PRO ZB (S2/S2B) to the XBee/XBee-PRO ZB(S2C) Through-Hole modules. Even though these XBee modules are similar in function, there are somedifferences that you need to keep in mind. The S2/S2B used the Ember EM250 microprocessor tocontrol the ZigBee Protocol. The XBee/XBee-PRO ZB (S2C) module uses the Ember EM357; this newmicroprocessor contains much more memory allowing for more flexibility. The footprint of theXBee/XBee-PRO ZB (S2C) Though-Hole is identical to the XBee/XBee-PRO ZB (S2/S2B) and is fully overthe-air (OTA) compatible. A key change with the XBee/XBee-PRO ZB (S2C) is that six firmware images(Coordinator AT, Coordinator API, Router AT, Router API, End Device AT, and End Device API) arecombined into a single firmware load.Migration ConsiderationsXBee ZigBee (S2) to XBee ZigBee (S2C) Through-Hole ConsiderationsConsiderationsXBee ZB (S2)XBee ZB (S2C) THCommentsIndoor/Urban RangeOutdoor RF line-of-sightRangeup to 133 ft. (40 m)Up to 200 ft. (60 m)Improvedup to 400 ft. (120 m)Up to 4000 ft. (1200 m)ImprovedTransmit Power OutputReceiver Sensitivity2mW ( 3dBm), Boostmode1.25mW ( 1dBm),Normal mode-96 dBm, Boost mode-95 dBm, Normal mode6.3mW ( 8dBm), Boostmode3.1mW ( 5dBm), NormalmodeChannel 26 max power is 3dBm-102 dBm, Boost mode-100 dBm, Normal modeImprovedNote: An International variantof the XBee ZB (S2C) TH is notavailable; the 8dBm non-PROvariant should be used.Improved45mA ( 8 dBm, Boostmode)33mA ( 5 dBm, Normalmode)Slightly higher on boost modeto due to increased outputpower.Improved on normal mode.31mA (Boost mode)28mA (Normal mode)ImprovedSPI40mA (@ 3.3 V, Boostmode)35mA (@ 3.3 V, Normalmode)40mA (@ 3.3 V, Boostmode)38mA (@ 3.3 V, Normalmode)Not SupportedFCC IDOUR-XBEE2MCQ-S2CTHIndustry Canada (IC) ID4214A-XBEE21846A-S2CTHOperating Current(Transmit)Operating Current(Receive)5 Mbps maximum (burst)1Added SPI interfaceCustomer will need to changethe label on their end productto show the appropriate FCC IDfor the S2C.Customer will need to changethe label on their end productto show the appropriate IC IDfor the S2C.

XBee-PRO ZigBee (S2) to XBee-PRO ZigBee (S2C) Through-Hole ConsiderationsConsiderationsXBee-PRO ZB (S2)XBee-PRO ZB (S2C) TH CommentsTransmit Power OutputReceiver SensitivitySupply VoltageOperating Current(Transmit)Operating Current(Receive)Power-down CurrentChannelsSPI50mW ( 17 dBm)-102 dBm3.0 - 3.4 V295mA (@3.3 V)63mW ( 18 dBm)-101 dBm2.7 - 3.6 VImprovedComparableLarger voltage range120mA @ 3.3 V, 18 dBmImproved45 mA (@3.3 V)31 mAImproved3.5 A @ 25 C11 to 24Not Supported 1 A @ 25 C11 to 255 Mbps maximum (burst)FCC IDMCQ-XBEEPRO2MCQ-PS2CTHIndustry Canada (IC) ID1846A-XBEEPRO21846A-PS2CTHooImprovedOne additional channelAdded SPI interfaceCustomer will need tochange the label on theirend product to show theappropriate FCC ID for theS2C.Customer will need tochange the label on theirend product to show theappropriate IC ID for theS2C.XBee-PRO ZigBee (S2B) to XBee-PRO ZigBee (S2C) Through-Hole ConsiderationsConsiderationsXBee-PRO ZB (S2B)XBee-PRO ZB (S2C) TH CommentsReceiver SensitivityOperating Current(Transmit)-101 dBmComparable120mA @ 3.3 V, 18 dBmImproved31mAImprovedPower-down CurrentSPI-102 dBm205mA, up to 220 mAwith programmablevariant (@3.3 V)47 mA, up to 62 mA withprogrammablevariant (@3.3 V)o3.5 A @ 25 CNot SupportedFCC IDMCQ-PROS2BMCQ-PS2CTHIndustry Canada (IC) ID1846A-PROS2B1846A-PS2CTHOperating Current(Receive)o 1 A @ 25 C5 Mbps maximum (burst)2ImprovedAdded SPI interfaceCustomer will need tochange the label on theirend product to show theappropriate FCC ID for theS2C.Customer will need tochange the label on theirend product to show theappropriate IC ID for theS2C.

Pin CompatibilityThe XBee/XBee-PRO ZB (S2C) introduces the SPI serial interface to Digi’s through-hole ZigBee radio. Thetable below shows which pins are used for the SPI interface. Please refer to the XBee/XBee-PRO ZB (S2C)product manual for more information.Pin #XBee/XBee-PRO ZB (S2/S2B)XBee/XBee-PRO ZB (S2C) TH1234567891011121314151617181920VCCDOUTDIN / CONFIGDIO12RESETRSSI PWM / DIO10DIO11[RESERVED]DTR / SLEEP RQ/ DIO8GNDDIO4CTS / DIO7ON / SLEEPVREFASSOCIATE / DIO5RTS / DIO6AD3 / DIO3AD2 / DIO2AD1 / DIO1AD0 / DIO0 / COMMISIONING BUTTONVCCDOUT / DIO13DIN / CONFIG / DIO14DIO12 / SPI MISORESETRSSI PWM / PWMO DIO10PWM1 / DIO11[RESERVED]DTR / SLEEP RQ / DIO8GNDSPI MOSI / DIO4CTS / DIO7ON SLEEP / DIO9VREFASSOCIATE / DIO5RTS / DIO6AD3 / DIO3 / SPI SSELAD2 / DIO2 / SPI CLKAD1 / DIO1 / SPI ATTNAD0 / DIO0 / COMMISIONING BUTTON3

Part Number Migration GuideThe following table shows which XBee/XBee-PRO ZB (S2C) module to migrate to depending on whichXBee/XBee-PRO ZB (S2/S2B) module you are currently using.Legacy BP24-Z7WIT-***DescriptionXBee ZB (ZNet 2.5) low powerZigBee module w/ PCB antennaXBee ZB (ZNet 2.5) low powerZigBee module w/ RPSMAconnectorXBee ZB (ZNet 2.5) low powerZigBee module w/ U.FLconnectorXBee ZB (ZNet 2.5) low powerZigBee module w/ integratedwire antennaXBee-PRO ZB (ZNet 2.5) modulew/ PCB antennaXBee-PRO ZB (ZNet 2.5) modulewith RPSMA connectorXBee-PRO ZB (ZNet 2.5) modulew/ U.FL antenna connectorXBee-PRO ZB (ZNet 2.5) modulew/ wire antennaXBee-PRO ZB (ZNet 2.5) modulew/ PCB antenna (International)XBee-PRO ZB (ZNet 2.5) modulewith RPSMA connector(International)XBee-PRO ZB (ZNet 2.5) modulew/ U.FL antenna connector(International)XBee-PRO ZB (ZNet 2.5) modulew/ wire antenna (International)XBee ZB (S2) low power ZigBeemodule w/ PCB antennaXBee ZB (S2) low power ZigBeemodule w/ integrated wireantennaXBee ZB (S2) low power ZigBeemodule w/ U.FL connectorXBee ZB (S2) low power ZigBeemodule w/ RPSMA connectorXBee-PRO ZB (S2) module w/PCB antennaXBee-PRO ZB (S2) module w/wire antennaMigrate ToDescriptionXB24CZ7PIT-004XBee ZB (S2C) low power ZigBeemodule w/ PCB antennaXB24CZ7SIT-004XBee ZB (S2C) low power ZigBeemodule w/ RPSMA connectorXB24CZ7UIT-004XBee ZB (S2C) low power ZigBeemodule w/ U.FL e ZB (S2C) low power ZigBeemodule w/ integrated wireantennaXBee-PRO ZB (S2C) module w/ PCBantennaXBee-PRO ZB (S2C) module withRPSMA connectorXBee-PRO ZB (S2C) module w/U.FL antenna connectorXBee-PRO ZB (S2C) module w/wire antennaXBee ZB (S2C) low power ZigBeemodule w/ PCB antennaXB24CZ7SIT-004XBee ZB (S2C) low power ZigBeemodule w/ RPSMA connectorXB24CZ7UIT-004XBee ZB (S2C) low power ZigBeemodule w/ U.FL Z7WIT-0044XBee ZB (S2C) low power ZigBeemodule w/ integrated wireantennaXBee ZB (S2C) low power ZigBeemodule w/ PCB antennaXBee ZB (S2C) low power ZigBeemodule w/ integrated wireantennaXBee ZB (S2C) low power ZigBeemodule w/ U.FL connectorXBee ZB (S2C) low power ZigBeemodule w/ RPSMA connectorXBee-PRO ZB (S2C) module w/ PCBantennaXBee-PRO ZB (S2C) module w/wire antenna

RO ZB (S2) module w/U.FL antenna connectorXBee-PRO ZB (S2) module withRPSMA connectorXBee-PRO ZB (S2) module w/PCB antenna (International)XBee-PRO ZB (S2) module w/wire antenna (International)XBee-PRO ZB (S2) module w/U.FL antenna connector(International)XBee-PRO ZB (S2) module withRPSMA connector(International)XBee-PRO ZB (S2B) module w/PCB antennaXBee-PRO ZB (S2B) module withRPSMA connectorXBee-PRO ZB (S2B) module w/U.FL antenna connectorXBee-PRO ZB (S2B) module w/wire antennaXBee-PRO ZB (S2B) module w/PCB antenna(International)XBee-PRO ZB (S2B) module withRPSMA connector(International)XBee-PRO ZB (S2B) module w/U.FL antenna connector(International)XBee-PRO ZB (S2B) module w/wire antenna (International)Programmable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ RPSMA connectorProgrammable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ integrated wireantennaProgrammable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ PCB antennaProgrammable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ U.FL connectorProgrammable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ RPSMA -004XB24CZ7PIT-004XB24CZ7WIT-004XBee-PRO ZB (S2C) module w/U.FL antenna connectorXBee-PRO ZB (S2C) module withRPSMA connectorXBee ZB (S2C) low power ZigBeemodule w/ PCB antennaXBee ZB (S2C) low power ZigBeemodule w/ integrated wireantennaXB24CZ7UIT-004XBee ZB (S2C) low power ZigBeemodule w/ U.FL connectorXB24CZ7SIT-004XBee ZB (S2C) low power ZigBeemodule w/ RPSMA -004XBP24CZ7WIT-004XBee-PRO ZB (S2C) module w/ PCBantennaXBee-PRO ZB (S2C) module withRPSMA connectorXBee-PRO ZB (S2C) module w/U.FL antenna connectorXBee-PRO ZB (S2C) module w/wire antennaXB24CZ7PIT-004XBee ZB (S2C) low power ZigBeemodule w/ PCB antennaXB24CZ7SIT-004XBee ZB (S2C) low power ZigBeemodule w/ RPSMA connectorXB24CZ7UIT-004XBee ZB (S2C) low power ZigBeemodule w/ U.FL ee ZB (S2C) low power ZigBeemodule w/ integrated wireantennaProgrammable XBee-PRO ZB (S2C)extended range ZigBee module w/RPSMA connectorProgrammable XBee-PRO ZB (S2C)extended range ZigBee module w/integrated wire antennaProgrammable XBee-PRO ZB (S2C)extended range ZigBee module w/PCB antennaProgrammable XBee-PRO ZB (S2C)extended range ZigBee module w/U.FL connectorProgrammable XBee ZB (S2C) lowpower ZigBee module w/ RPSMAconnector

ogrammable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ integrated wireantenna (International)Programmable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ PCB antenna(International)Programmable XBee-PRO ZB(S2B) extended range ZigBeemodule w/ U.FL connector(International)XB24CZ7WITB003Programmable XBee ZB (S2C) lowpower ZigBee module w/integrated wire antennaXB24CZ7PITB003Programmable XBee ZB (S2C) lowpower ZigBee module w/ PCBantennaXB24CZ7UITB003Programmable XBee ZB (S2C) lowpower ZigBee module w/ U.FLconnectorConfigurationThe XBee/XBee-PRO ZB (S2/S2B) modules had six different firmware images (Coordinator AT,Coordinator API, Router AT, Router API, End Device AT, and End Device API). The XBee/XBee-PRO ZB(S2C) modules combine these six function sets into a single firmware image. The table below shows youwhich settings to enable on the XBee/XBee-PRO ZB (S2C) modules to match the function set you wereusing on the XBee/XBee-PRO ZB (S2/S2B) modules.XBee/XBee-PRO ZB (S2/S2B) Function SetXBee/XBee-PRO ZB (S2C) Firmware SettingsZigBee Router ATDefault SettingsZigBee Router APISet AP (API Enable) API enabled [1]ZigBee Coordinator ATSet CE (Coordinator Enable) Enabled [1]ZigBee Coordinator APISet CE (Coordinator Enable) Enabled [1]Set AP (API Enable) API enabled [1]ZigBee End Device ATSet SM (Sleep Mode) Cyclic Sleep [4]ZigBee End Device APISet SM (Sleep Mode) Cyclic Sleep [4]Set AP (API Enable) API enabled [1]6

What’s NewThe XBee/XBee-PRO ZB (S2C) introduces some new features and commands such as: An alternative serial port is available using SPI slave mode operationSix firmware images (Coordinator AT, Coordinator API, Router AT, Router API, End Device AT,and End Device API) are combined into a single firmwareo ATCE command (1-enables/0-disables) Coordinator modeo ATSM command (0 is Router/Coordinator, nonzero is sleeping End Device)o Note that Coordinator mode cannot be enabled is SM is nonzero and you can’t set anonzero SM if CE is nonzeroFragmentation is now available in both API mode and transparent modeP3 (DOUT), P4 (DIN), D8 (SleepRq), and D9 (On-Sleep) are now available for I/O samplingBoth pull-up and pull-down resistors can now be applied to pins configured for inputsATVL command added for long version informationATDO command added for configuring device optionsATAS command added for Active ScanSelf-addressed Tx Status messages return a status code of 0x23ATDO has HIGH RAM CONCENTRATOR and NO ACK IO SAMPLING options addedBinding and Multicasting transmissions are supportedAT&X command added to clear binding and group tablesAdded Tx options 0x04 (indirect addressing) and 0x08 (multicast addressing)A 5 second break will reset the XBee. Then it will boot with default baud settings into commandmode.BD range increased from 0-7 to 0-0x0A, and nonstandard baud rates are permitted, but notguaranteedNI, DN, ND string parameters support upper and lower caseTxOption 0x01 disables retries and route repair. RxOption 0x01 indicates the transmitterdisabled retries.FR returns 0x00 modem status code instead of 0x01DC10 - verbose joining mode optionSelf-addressed fragmentable messages now return the self-addressed Tx Status code (0x23)instead of simply success (0x00)Three command characters (" ") typed rapidly will shift the device from API mode to ATcommand modeATCN will shift the device from AT command mode to API mode7

Migration from XBee/XBee-PRO ZB (S2/S2B) to XBee/XBee-PRO ZB (S2C) This guide will assist you with migrating from the XBee/XBee-PRO ZB (S2/S2B) to the XBee/XBee-PRO ZB (S2C) Through-Hole modules. Even though these XBee modules are similar in function, there are some differences that you need to keep in mind. The S2/S2B used the Ember EM250 microprocessor to