Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
How to automatically connect 2 Xbee devices using mbed?
I know that to connect two Xbee devices in ATmode, I need to use XCTU and press the connect button before sending anything from one device to the other. However, what I want to do is let xbee communicate with each other while they are not connected to the laptop, but are in two different m3pi robots (including mbed). How can I do that? Are there any setting before hand to make the two xbee automatically connected?
2 Answers
5 years ago.
Consider Xbee's as wireless serial communication devices.
You can send data between two Xbee's via the serial port on each Mbed and you don't need a complex library.
However here is something that may help that has a library;
https://os.mbed.com/components/Xbee-Pro/
5 years ago.
Hi Nghia,
Connect Xbee to you mbed robot (power (3.3 V), ground, data in and data out (UART), with other recommended lines being Reset and Sleep). Depending MbedOS device select proper pins for UART. Look MbedOS instruction for the UART and study Xbee's AT commands and give proper commands from MbedOS device to Xbee.
the MbedOS boards: https://os.mbed.com/platforms/
MbedOS UART: https://os.mbed.com/docs/mbed-os/v5.14/apis/serial.html
We have something for ATParsing: https://os.mbed.com/docs/mbed-os/v5.14/apis/atcmdparser.html
Regards, Pekka