10 years ago.

how to interface xbee with mbed

hey ppl, i need connect one xbee and 1 mbed as a receiver and other xbee+mbed as a tx. i surfed a lot on net but i dint get anything relevant. i have xbee s2

also if i m doing this experiment how can i see this output..(i dont have any external device like lcd ).. i wish to see the output on the scree on my PC.. i have seen a lot of code for xbees+mbed but they all needed to have external keyboard n lcd CAn anyone help me with this?? plz reply asap

1 Answer

10 years ago.

Hello Ritika,

For xbee check out this page. The XBee can be communicated with by using the Serial library, wich is also the library used to communicate with a PC. It would be wise to read this carefully: Serial Library.

Regards,

Koen

Additionally, as far as seeing output goes, you don't need an LCD display. Since this operates under the Serial library, you can open a Serial port on the built-in USB connector, as such:

Serial pc(USBTX, USBRX); // tx, rx

And view the results on your PC via a terminal emulator, like PuTTY. I found this page useful, as well:

https://mbed.org/cookbook/Xbee-Pro

You may also want to look up X-CTU for Xbee configuration tools. There are mbed modules to do this, but I found the X-CTU tool more useful.

posted by Aaron Minner 28 Mar 2014