The ConnectCore 8X SBC Pro assembles an XBee socket that allows you to connect a through-hole XBee module.
| See the ConnectCore 8X SBC Pro Hardware Reference Manual for the XBee socket pin-out description. |
On the ConnectCore 8X SBC Pro:
-
The XBee module is connected through two interfaces:
-
MCA_UART2 of the MCA. MCA_UART2 is configured (4-wires) and enabled on the default ConnectCore 8X SBC Pro device tree.
-
USB_OTG1 bus.
-
The following XBee lines are connected to MCA GPIOs:
-
XBEE_RESET: Connected to MCA_IO15
-
XBEE_SLEEP_RQ: Connected to MCA_IO11
-
XBEE_ON/SLEEP_N: Connected to MCA_IO16
See MCA UART serial port, Universal Serial Bus (USB), and MCA General Purpose Input/Output (GPIO) for more information about these interfaces.
Kernel driver
The XBee does not require a specific driver.
Device tree bindings and customization
The XBee does not have specific device tree bindings. If using GPIOs of the CPU to control some XBee lines (such as RESET_N and SLEEP_RQ), you can configure the pinctrl for these as part of the UART node that is connected to the XBee socket.
XBee configuration in meta-digi
Digi Embedded Yocto provides a script that initializes the GPIOs connected to the RESET_N and SLEEP_RQ lines:
-
sets SLEEP_RQ line low (to prevent the XBee device from entering sleep mode).
-
toggles RESET_N line on boot (to reset the XBee device).
The meta-digi layer contains the following variables to configure the XBee at the platform configuration file meta-digi-arm/conf/machine/ccimx8x-sbc-pro.conf:
| Variable | Description | Default value for DVK |
|---|---|---|
XBEE_TTY |
UART node routed to the XBee connector (symlink |
|
XBEE_RESET_N_GPIO |
GPIO connected to the XBee reset line |
|
XBEE_SLEEP_RQ_GPIO |
GPIO connected to the XBee SLEEP_REQUEST line |
|
Configure your own values by setting these variables on your project’s conf/local.conf.
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.