TS-7840 XBEE

From embeddedTS Manuals

This board supports DIGI modules compatible with the XBEE pinout. This typically includes their 802.15.4, Digimesh, or even the Digi cellular modems.

USB must be enabled for the Digi Cellular modems:

# Set en_xbee_usb_padn low
gpioset 3 24=0

On non-USB modules, this pin is listed as reserved and has been observed to prevent normal functionality. For serial based modules such as Digimesh/802.15.4, this is the recommended procedure to set up the module on startup:

# According to XBEE S1 Docs, RESET# is open drain, never drive high
# Needs 200ns of reset=
gpioset 3 24=1 # Turn off USB
gpioset 4 5=0 # assert reset
sleep .1
gpioget 4 5

The serial port on this header is accessible as /dev/ttyS9.

Related Links:

This sample code can be used to verify connectivity to the module:

wget http://ftp.embeddedTS.com/ftp/ts-arm-sbc/ts-7840-linux/samples/xbeetest.c
gcc xbeetest.c -o xbeetest

gpioset 3 24=1 # Turn off USB
gpioset 4 5=0 # assert reset
sleep .1
gpioget 4 5
./xbeetest /dev/ttyS9

This will print out the module information such as:

XBee3 Zigbee TH RELE: 100A
Build: Apr 16 2020 19:00:33
HV: 424E
Bootloader: 181 Compiler: 8030001
Stack: 6710
OK

The XBEE header follows the pinout from Digi:

Pin Description
1 3.3V
2 XBEE_RXD (/dev/ttyS9)
3 XBEE_TXD (/dev/ttyS9)
4 GND
5 RESET# gpio bank 4 io 5
6 3.3V
7 USB_XBEE_P
8 USB_XBEE_M
9 GND
10 GND
Pin Description
11 GND
12 CTS (/dev/ttyS9)
13 NC
14 NC
15 NC
16 RTS (/dev/ttyS9)
17 NC
18 NC
19 NC
20 NC