You are here: Digi Embedded Yocto > System development > Linux v3.14 Board Support Package > Devices and interfaces > XBee socket

XBee socket

The ConnectCore 6 SBC assembles an XBee socket that allows you to connect any XBee module.

Note See the ConnectCore for i.MX6 SBC Hardware Reference Manual for the XBee socket pin-out description.

Device tree bindings and customization

XBee modules are interfaced through UART5 of the i.MX6 CPU. This UART is enabled on the SBC device tree by default, but you must enable it on the Device tree for your platform before you can use it.

See Universal Asynchronous Receiver/Transmitter (UART).

Some GPIOs of the i.MX6 CPU are used to control the following XBee lines:

There is no specific XBee driver, so the IOMUX for these GPIOs must be configured in the hog section of your device tree.

ConnectCore 6 SBC device tree
hog {
        pinctrl_hog: hog {
            fsl,pins = <
 
                [...]
 
                /* XBEE_ON / SLEEP_N  */
                MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x80000000
                /* XBEE_RESET_N  */
                MX6QDL_PAD_EIM_D28__GPIO3_IO28 0x80000000
                /* XBEE_SLEEP_RQ  */
                MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x80000000
            >;
        };
    };

User space

Basic validation

You can use the serial port to check that the XBee module is connected correctly.

Note If your XBee is configured with specific parity and flow control settings, you may have to configure those settings on your serial port.

  1. On one terminal console, read from the serial port:
cat /dev/ttymxc4
  1. On a different terminal console, write +++ to the serial port:
echo -n +++ > /dev/ttymxc4

When the connection is successful, the console displays an OK response on the terminal that is reading the port.

XBee libraries

For more advanced use of XBee modules, see the following libraries:

 

© 2017 Digi International Inc. All rights reserved.
XBee socket updated on 13 April 2017 10:31:16 PM