XBee

From Geeetech Wiki
Revision as of 07:04, 28 October 2014 by Admin (talk | contribs) (Introduction)

Jump to: navigation, search

Introduction

XBee

XBee is the brand name from Digi International for a family of form factor compatible radio modules. The first XBee radios were introduced under the MaxStream brand in 2005 and were based on the 802.15.4-2003 standard designed for point-to-point and star communications at over-the-air baud rates of 250 kbit/s. Two models were initially introduced—a lower cost 1 mW XBee and the higher power 100 mW XBee-PRO.[4] Since the initial introduction, a number of new XBee radios have been introduced and all XBees are now marketed and sold under the Digi brand.

The XBee radios can all be used with the minimum number of connections – power (3.3 V), ground, data in and data out (UART), with other recommended lines being Reset and Sleep.[5] Additionally, most XBee families have some other flow control, I/O, A/D and indicator lines built in. A version of the XBees called the programmable XBee has an additional onboard processor for user’s code. The programmable XBee and a new surface mount (SMT) version of the XBee radios were both introduced in 2010.

As of February 2013, the XBee radio family consists of

XBee 802.15.4 – The initial point-to-point topology or star topology module running the IEEE 802.15.4 protocol XBee-PRO 802.15.4 – A higher power, longer range version of the XBee 802.15.4 XBee DigiMesh 2.4 – A 2.4 GHz XBee module which uses DigiMesh, a sleeping mesh networking protocol developed by Digi International XBee-PRO DigiMesh 2.4 – A higher power, longer range version of the XBee DigiMesh 2.4 XBee ZB – An XBee module that incorporates the ZigBee PRO mesh networking protocol XBee-PRO ZB – A higher power, longer range version of the XBee ZB XBee ZB SMT – A surface mount XBee running the ZigBee protocol XBee-PRO ZB SMT – A higher power, longer range version of the XBee ZB SMT XBee SE – An XBee ZB module that incorporates the security cluster for the ZigBee Smart Energy public profile XBee-PRO SE – A higher power, longer range version of the XBee SE XBee-PRO 900HP - A 900 MHz XBee-PRO module with up to 28 mile range with high-gain antenna, which supports DigiMesh networking protocol XBee-PRO 900 (Legacy) – A 900 MHz proprietary point-to-point and star topology module, not recommended for new design XBee-PRO XSC (S3B) – A 900 MHz module compatible over the air with the Digi 9XStream radios XBee-PRO DigiMesh 900 (Legacy) – A 900 MHz module which uses DigiMesh, not recommended for new design (see XBee-PRO 900HP for new designs) XBee-PRO 868 – An 868 MHz 500 mW long-range module which supports proprietary point-to-point and star, for use in Europe XBee 865/868LP - An 868 MHz XBee module which uses DigiMesh, available in Surface Mount form-factor (also configurable to 865 MHz for use in India)

Series of XBees

XBee Series 1 (also called XBee 802.15.4) - These are the easiest to work with, they don’t need to be configured, although they can benefit from it. Because they are easy to work with we recommend these especially if you are just starting out. For point to point communication these modules work as well as the Series 2 but without all the work. A Series 1 module won’t say Series 1 on it, but it also won’t say Series 2. If it doesn’t say then your module is a Series 1. Series 1 and Series 2/2.5/ZB hardware are NOT compatible. Don’t try to mix and match, don’t even think about it, it won’t work, not even close. Nope, stop thinking about it…! Datasheet

XBee Znet 2.5 (Formerly Series 2) Retired - These are the fun ones. Series 2 modules must be configured before they can be used. They can run in a transparent mode or work with API commands, but this all depends on what firmware you configure these with. These also can run in a mesh network making them highly configurable and awesome modules. It also makes them harder to use modules. These modules are in no way compatible with the Series 1 modules so stop thinking about trying! These modules are no longer sold but are being replaced with the mostly compatible ZB modules. Datasheet

ZB (the current Series2ish module) - Basically the Znet2.5 hardware with new firmware. Meaning they can also run in a transparent mode or work with API commands. They can also run in a mesh network making them highly configurable and awesome modules. You can grab the new firmware and upgrade them yourself. The firmware between the two is not compatible (but is easily interchangeable) so you will have to pick which firmware you want to use on your network and stick with it. Download the conversion kit here. These are often call Series 2 modules, so if you hear someone talking about Series 2, they might be talking about these. It may not be the correct term, but it does distinguish these from the Series 1 modules which is usually all people want to know. These modules will not work in any way shape or form with the Series 1 so stop thinking about it. Stop it! Datasheet

2B(the even more current Series2ish module) - These new modules improve on the hardware of the Series 2 modules improving things like power usage. They run the ZB firmware but because the hardware has been changed they can no longer run the Znet2.5 firmware. So if you are looking to add this to an existing 2.5Znet network beware. Currently some of our boards are 2B and others are ZB

900MHz - Technically not a series but it is a family just like the others. The 900s can run 2 different types of firmware, the DigiMesh firmware and the Point to Multipoint firmware. Digi actually sells both modules, the hardware is the same just with different firmware. Sparkfun only sells the point to multipoint version, but hey, you can change the firmware yourself. These modules should be more or less plug and play but of course can benefit from all the cool features you can configure.

XSC - Basically these are 900 modules that sacrifice data rate for range. The regular 900 modules have a data rate of 156KBps (the others are all around 250Kbps) but the XSC module is only about 10Kbps. On the other hand if you attach a high gain antenna you can get a range of about 15 miles and 6 miles with a regular antenna. These modules do not require configuration out of the box and have some other differences including a different command set so make sure you check out the datasheet.

XSC S3B - This is an upgraded version of the XSC modules which is less power-hungry than the previous generation despite having a higher selectable transmitting power of 250mW. This higher Tx power allows for line-of-sight range up to 28 miles with the right antenna. The S3B modules also feature higher-throughput than the previous generation XSC modules.


Form-factors, antennas, and data modes

XBee Modules are available in two form-factors; Through-Hole and Surface Mount. All XBees (with the exception of the XBee 868LP) are available in the popular 20-pin Through-Hole form-factor. Certain XBee modules are also available in a 37-pad Surface Mount design, which is popular for higher volume applications due to the reduced manufacturing costs of SMT technology.

The XBees can operate either in a transparent data mode or in a packet-based application programming interface (API) mode.In the transparent mode, data coming into the Data IN (DIN) pin is directly transmitted over-the-air to the intended receiving radios without any modification. Incoming packets can either be directly addressed to one target (point-to-point) or broadcast to multiple targets (star). This mode is primarily used in instances where an existing protocol cannot tolerate changes to the data format. AT commands are used to control the radio’s settings. In API mode the data is wrapped in a packet structure that allows for addressing, parameter setting and packet delivery feedback, including remote sensing and control of digital I/O and analog input pins.

Antennas

XBee Modules typically come with several antenna options, includingChip ,Wire, U.FL, RPSMA and PCB Embedded.

Chip Antenna – Basically a small chip that acts as an antenna. Quick, easy, cheap, not in the way. These are being phased out in favor of trace antennas, which are essentially the same but printed directly to the circuit board.

Wire Antenna – Well its a small wire sticking up, a little more of what you think of when you think of antenna.

u.FL Antenna – A tiny connector to connect your own antenna, this is great if your object is in a box and you want your antenna outside the box.

RPSMA Antenna – A bigger connector to connect your own antenna, once again great if your object is in a box and you want your antenna outside the box.

Trace Antenna – Also called a PCB antenna, these are formed directly on the module with conductive traces. They perform about the same as wire antennas.


Regular, Pro and other things Regular vs Pro - There are a few difference between the regular XBees and the XBee Pros. The Pros are a bit longer, use more power and cost more money. That’s pretty much it. The greater power means longer range (1 mile instead of 300ft) so if you need the range or like to spend more money, then use the Pros, otherwise stick with the regular models. You can mix and match these on the same network.

900 vs 2.4 - Most of the Xbee modules operate at 2.4GHz, but there are a few that operate at 900MHz. Basically 900MHz can go a lot farther with a high gain antenna (up to 15miles for the Pro modules and a high gain antenna). Also the lower the frequency the greater penetration the signal has. 900MHz is also not allowed in many countries (although there are 868MHz versions available from Digi that are allowed in many other countries). You can NOT mix and match these on the same network.