Template:ARPI600 User Manual/How to perform wireless transmission with XBee

From Diustou Wiki

How to perform wireless transmission with XBee

Before performing the wireless transmission with XBee, please make sure the wireless network built by two XBee modules is work properly.

  1. Set the jumpers on ARPI600:
    Here, we should use two Raspberry Pi boards: Raspberry Pi-A and Raspberry Pi-B, of which Raspberry Pi-A is used for transmitting data and Raspberry Pi-B is used for receiving data.
    Connect Raspberry Pi-A to the serial port of XBee-A and Raspberry Pi-B toXBee-B, respectively. And then, set the jumpers on ARPI600, as the shows.
    • Connect XB_RX to P_TX
    • Connect XB_TX to P_RX
    Setting jumpers on ARPI600
    ARPI600-UserManual-14.jpg
  2. Testing the serial port:
    Copy the file program/Xbee/getdata to the Raspberry Pi-B, and enter the folder getdata.
    Then, execute the code:sudo makesudo ./serialTest
    The relative data will be displayed as followed.
    Displaying the message getdata
    ARPI600-UserManual-15.jpg
  3. Run the code for transmitting data on Raspberry Pi-A. Then, copy program/Xbee/send into the Raspbian, and enter the folder send to execute the following code:sudo makesudo ./serialTest
    You will see the following message displayed in the PuTTY of Raspberry Pi-B.