The ConnectCore MP15 Development Kit assembles an XBee socket that allows you to connect a through-hole XBee module.
|See the ConnectCore MP15 Hardware Reference Manual for the XBee socket pin-out description.
Device tree bindings and customization
The XBee module is interfaced through two interfaces:
USART3 of the STM32MP15 CPU. UART3 is configured (4-wires) on the ConnectCore MP15 Development Kit device tree include file and enabled by default on the ConnectCore MP15 Development Kit device tree file.
This bus is also routed to the USB expansion connector. If using the XBee via USB, make sure you don’t connect another device via the expansion connector.
See Universal Asynchronous Receiver/Transmitter (UART) and Universal Serial Bus (USB) for more information about these interfaces.
You can use the serial port to check that the XBee module is connected correctly.
Configure the serial port to match the configured speed of the XBee. For example:
# stty -F /dev/ttyXBee speed 9600 raw
If your XBee is configured with specific parity and flow control settings, you may have to configure those settings on your serial port.
On one terminal console, read from the serial port:
# cat /dev/ttyXBee
On a different terminal console, write
+++to the serial port:
# echo -n +++ > /dev/ttyXBee
When the connection is successful, the console displays an OK response on the terminal that is reading the port.
|See XBee libraries for additional information on advanced use of XBee modules.
See Cellular for additional information on the use of XBee cellular devices.