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.
- 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
- Testing the serial port:
- 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.