2013年4月24日 星期三

Xbee Module

Xbee Module Wireless Input
           The Xbee receiver will automatically connect with the transmitter and begin receiving data. All data will be receiving and output via the Dout pin on the Xbee module. The Dout pin is conneceted directly to the PIC's Rx pin so that the PIC can catch the data.
The Theory
           The role of the Xbee module is to be as transparent as possible. It should be as if a wire was connecting the input to the output and connectivity is never lost. While this sounds simple, it's actually a very hard task to accomplish and error correction is a must, which the Xbee's role in offering sound and reliable wireless communication.

The Xbee Pinout

           Looking at the Xbee pinout we can see right away the different types of input that can be translated and transmitted wirelessly:
  • Digital I/O
  • Analog I/O (10 bit resolution)
  • Pulse with Modulation
  • Serial Communication (SPI/RS232/I2C
  • CTS/DTR Control Signals

These are some the most common types of signals that are used in electronics and the Xbee offers them all as inputs and outputs.

Standard Xbee Usage

           The way we will be using the Xbee in this tutorial is far easier. Striaght out of the box, the Xbee is configured for 9600bps serial communication and so to make things easier, we won't change any of the configuration options. This means we will only be using the Vcc, GND, Din and Dout pins. I will leave it up to you to explore using the other I/O pins available. The picture below illustrates how the Xbee module should act like it is transparent and as if a standard jumper wire connected the microcontroller's Tx and Rx Pins directly to the opposite microcontroller.


Another very important thing to mention about the Xbee modules is that they do have an interactice command interface. This interface allows you to change many options such as the current transmission channel being used, along with many other transmitter/receiver options. See the Xbee module datasheet for more information on the AT command set.



沒有留言:

張貼留言

MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構

MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構 這張圖片展示了一個 結合 MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構 (主要透過 Node-RED 進行資料整合)。 系統包含三個核心部分,其運作功能說明如下: 1. ESP32 終端設備(硬體控制層...