Sunday, August 9, 2009

Communicate between two XBee

XBee can communicate to each other using computer. There are several procedure to communicate the XBee. But, first of all, we need to check the functionality of the XBee module.This are the procedure to check the XBee module:


  1. Simply connect USB cable (B type) to SKXBee USB socket, another end (A type) to PC.

  2. Please refer to document named “USB Driver Installation Guide” for driver installation.
  3. Setup X-CTU with double-clicking the “setup_x-ctu.exe” file that can get from the SKXBee page.

  4. Launch the X-CTU Software and select the “PC Settings” tab. Verify the baud and parity settings of the COM port match those XBee Module. The virtual COM Port is normally located at the last port, USB serial Port.



  5. Choose the COM Port and click ‘Test/Query’ tab. Then, click ‘OK’.



  6. To modify or read XBee Module parameters, the module must first enter into Command Mode.

  7. First, select the ‘Terminal’ tab on X-CTU Software. To enter AT Command Mode, send the 3-character command sequence ‘+++” and XBee module will response ‘OK’ which means that it has already enter Command Mode.

  8. When a command is send to a module, the module will parse and execute the command. Upon successful execution of a command, the module returns an “OK” message. If execution of a command results in an error, module will return “ERROR” message.

  9. To exit AT Command Mode, send ATCN Command or if no valid AT Command are received within the time specified by CT (Command Mode Timeout) Command, the XBee Module automatically returns to Idle Mode. So, if another command need to send, ‘+++’ should be enter so that module will enter into Command Mode again.


To communicate between two SKXBee:

  1. Connect two SKXBee with two different computer.

  2. Then, do the procedure above at both computer to check the functionality of both SKXBee.

  3. Let name one SKXBee with SKXBee1 and onother one with SKXBee2.

  4. Source Address (MY) of SKXBee1 must be match to Destination Address (DL) of SKXBee2 and Destination Address (DL) of SKXBee1 must be match to Source Address (MY) of SKXBee2.
  5. After built connection between these two SKXBee, they can communicate among each other. Data sent by SKXBee1 will received by SKXBee2 and data sent by SKXBee2 will
    received by SKXBee1.

  6. Data which is sent is in blue color and data which is received is in red color. Below is example of data sent and received of SKXBee1 and SKXBee2 in X-CTU terminal.

No comments:

Post a Comment