The ConnectCore 8M Mini Development Kit contains two different XBee sockets for connecting through-hole XBee modules:
-
XBEE CELLULAR (J39, J40): to connect an XBee Cellular module
-
XBEE USER (J41, J42): to connect an XBee RF module (non-cellular)
On the ConnectCore 8M Mini Development Kit:
-
XBee Cellular socket:
-
The XBee socket for cellular devices is connected through two interfaces:
-
MCA_UART0 of the MCA. MCA_UART0 is configured (4-wires) and enabled on the default ConnectCore 8M Mini Development Kit device tree.
-
USB_OTG1 bus (multiplexed with USB Hub).
-
-
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.
-
XBee User socket:
-
The XBee socket for RF modules is connected through UART4 of the {cpu-family} CPU. UART4 is configured (4-wires) and enabled on the default ConnectCore 8M Mini Development Kit device tree.
-
The following XBee lines are connected to {cpu-family} CPU GPIOs:
-
XBEE_RESET: Connected to GPIO1_IO08
-
XBEE_SLEEP_RQ: Connected to GPIO1_IO07
-
XBEE_ON/SLEEP_N: Connected to GPIO1_IO09
-
-
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 User socket.
Using the XBee interface
The XBee Manager Sample Application demonstrates the usage of the XBee Java API in Android by giving an example of all the available options using a local XBee device attached to the SBC board. This example uses the Serial APIX to communicate with the attached XBee.
See Serial API for more information about the Serial APIx.
Go to GitHub to see the application instructions and source code.
See also
See Cellular for additional information on the use of XBee Cellular devices.