TS-7250-V3 XBEE Header: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
## For 4V modules: | ## For 4V modules: | ||
#gpioset 6 11=1 | #gpioset 6 11=1 | ||
# Reset to the modem is controlled with: | |||
gpioset | |||
# If your modem supports USB, this must be enabled, | |||
# disabling the lower external USB port and enabling | |||
# the modem's. | |||
gpioset 0 11=1 | |||
# Some modems require NIM_PWR_ON to be "pressed" before they | |||
# turn on. WARNING: If the modem is already on, this same | |||
# sequence may turn it off. | |||
#gpioset 0 31=1 | |||
#sleep 1 | |||
#gpioset 0 31=0 | |||
</source> | |||
For example, this initialization is known to work for these modules: | |||
* NL_SW_LTE_S7588-T-C | |||
* NL_SW_LTE_SVZM20-B | |||
<source lang=bash> | |||
gpioset 0 11=1 # Route USB to nimbelink | |||
gpioset 6 11=1 # Turn on 4V | |||
gpioset 0 31=1 # assert NIM_PWR_ON | |||
sleep 1 | |||
gpioset 0 31=0 # deassert NIM_PWR_ON | |||
</source> | </source> | ||
Revision as of 18:45, 22 September 2023
The CN20 header is a 2mm pitch 2x10 header which supports XBEE form factor modules. These include Nimbelink and Digi cell modems, Zigbee, Digi mesh, and other third party radios.
For Cell radios that use USB this must be enabled. This turns off USB to the bottom port on the dual high type A connector. Only enable if this is compatible with your module:
# Turn on the USB
gpioset 0 11=1
This header can provide 3.3V or 4V as some cell radios require higher voltage. Only enable one power supply to match your radio:
## For 3.3V modules:
#gpioset 6 4=1
## For 4V modules:
#gpioset 6 11=1
# Reset to the modem is controlled with:
gpioset
# If your modem supports USB, this must be enabled,
# disabling the lower external USB port and enabling
# the modem's.
gpioset 0 11=1
# Some modems require NIM_PWR_ON to be "pressed" before they
# turn on. WARNING: If the modem is already on, this same
# sequence may turn it off.
#gpioset 0 31=1
#sleep 1
#gpioset 0 31=0
For example, this initialization is known to work for these modules:
- NL_SW_LTE_S7588-T-C
- NL_SW_LTE_SVZM20-B
gpioset 0 11=1 # Route USB to nimbelink
gpioset 6 11=1 # Turn on 4V
gpioset 0 31=1 # assert NIM_PWR_ON
sleep 1
gpioset 0 31=0 # deassert NIM_PWR_ON
For serial modules refer to these related links:
- Technologic Systems: A friendly introduction to XBEE
- Digi's C library for XBEE API mode
- Digi's Python XBEE library
- Digi's C# Library
- Digi's Java Library
- libxbee3 (community XBEE library)
This sample code can be used to verify connectivity to the serial based modules:
wget http://ftp.embeddedTS.com/ftp/ts-arm-sbc/ts-7840-linux/samples/xbeetest.c
gcc xbeetest.c -o xbeetest
gpioset 6 4=1 # Turn on only 3.3V
./xbeetest /dev/ttymxc3
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
Signals | Pin Layout | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|