The ConnectCore 95 Development Kit assembles an XBee socket that allows you to connect a through-hole XBee module.
| See the ConnectCore 95 Hardware Reference Manual for the XBee socket pin-out description. |
Device tree bindings and customization
The XBee module is interfaced through two interfaces:
-
LPUART7 of the i.MX95 CPU (4-wires)
-
USB2 (SMARC_USB0) bus through the USB hub on the board
Both interfaces are enabled by default on the ConnectCore 95 Development Kit device tree file.
See Universal Asynchronous Receiver/Transmitter (UART) and Universal Serial Bus (USB) for more information about these interfaces.
User space
Basic validation
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 rawIf 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 also
See Cellular for additional information on the use of XBee cellular devices.