Digi, Digi International, and the Digi logo are trademarks or registered trademarks in the United
States and other countries worldwide. All other trademarks mentioned in this document are the
property of their respective owners.
Information in this document is subject to change without notice and does not represent a
commitment on the part of Digi International. Digi provides this document “as is,” without warranty of
any kind, expressed or implied, including, but not limited to, the implied warranties of fitness or
merchantability for a particular purpose. Digi may make improvements and/or changes in this manual
or in the product(s) and/or the program(s) described in this manual at any time.
Warranty
To view product warranty information, go to the following website:
Digi XBee Cellular 3G Global Embedded Modem User Guide
2
www.digi.com/howtobuy/terms
Customer support
Gather support information: Before contacting Digi technical support for help, gather the following
information:
Product name and model
Product serial number (s)
Firmware version
Operating system/browser (if applicable)
Logs (from time of reported issue)
Trace (if possible)
Description of issue
Steps to reproduce
Contact Digi technical support: Digi offers multiple technical support plans and service packages.
Contact us at +1 952.912.3444 or visit us at www.digi.com/support.
Feedback
To provide feedback on this document, email your comments to
techcomm@digi.com
Include the document title and part number (Digi XBee Cellular 3G Global Embedded Modem User
Guide, 90001541 R) in the subject line of your email.
Digi XBee Cellular 3G Global Embedded Modem User Guide
3
Contents
Digi XBee Cellular 3G Global Embedded Modem User Guide
Applicable firmware and hardware15
SIM cards15
Cellular service16
Get started with the XBee Cellular Modem
Identify the kit contents18
Connect the hardware19
Install and upgrade XCTU20
Add a device to XCTU20
Update the device firmware using XCTU21
Check for cellular registration and connection21
XBee connection examples
Connect to the Echo server23
Connect to the ELIZA server24
Connect to the Daytime server25
Perform a (GET) HTTP request27
Connect to a TCP/IP address28
Debugging29
Software libraries29
Get started with Digi Remote Manager
Create a Remote Manager account and add devices30
Create a Remote Manager account31
Add an XBee Cellular Modem to Remote Manager31
Verify the connection between a device and Remote Manager32
Configure Remote Manager features by scheduling tasks32
Overview: Create a schedule for a set of tasks32
Examples33
Example: Read settings and state using Remote Manager33
Example: Configure a device from Remote Manager using XML34
Example: Schedule a task to update the device firmware using Remote Manager35
Example: Update MicroPython from Remote Manager using XML36
Manage data in Remote Manager40
Review device status information from Remote Manager40
Digi XBee Cellular 3G Global Embedded Modem User Guide
4
Manage secure files in Remote Manager41
Remote Manager reference42
Enable SM/UDP42
TCP connection42
Disconnect44
Configure XBee settings within Remote Manager44
Examples: IOT protocols with transparent mode
Get started with CoAP47
CoAP terms47
CoAP quick start example47
Configure the device48
Example: manually perform a CoAPrequest48
Example: use Python to generate a CoAP message49
Get started with MQTT51
Example: MQTT connect51
Send a connect packet53
Example: send messages (publish) with MQTT54
Example: receive messages (subscribe) with MQTT55
Use MQTT over the XBee Cellular Modem with a PC56
Get started with MicroPython
About MicroPython61
Why use MicroPython61
MicroPython on the XBee Cellular Modem61
Use XCTU to enter the MicroPython environment61
Use the MicroPython Terminal in XCTU62
Troubleshooting62
Example: hello world62
Example: turn on an LED62
Example: debug the secondary UART63
Exit MicroPython mode64
Other terminal programs64
Tera Term for Windows65
Use picocom in Linux66
Update the firmware
Create a plan for device component firmware updates69
Update the device firmware70
Update the device firmware using XCTU70
Update the firmware from the Devices page in Remote Manager71
Update the firmware using web services in Remote Manager71
Use a host processor to update the modem firmware for XBee devices over UART73
Technical specifications
Interface and hardware specifications77
RF characteristics77
Networking specifications77
Power requirements79
Digi XBee Cellular 3G Global Embedded Modem User Guide
5
Power consumption79
Electrical specifications80
Regulatory approvals81
Hardware
Mechanical drawings83
Pin signals83
Pin connection recommendations85
XBee header connector requirements85
RSSI PWM85
SIM card85
Associate LED functionality85
Development boards87
XBIB-U-DEV reference87
XBIB-CU-TH reference89
XBIB-C-GPS reference92
Interface with the XBIB-C-GPS module93
Antenna recommendations
Antenna placement95
Design recommendations
Power supply considerations97
Add a capacitor to the RESET line97
Heat considerations97
Add a fan to provide active cooling98
Custom configuration: Create a new factory default98
Set a custom configuration99
Clear all custom configurations on a device99
Clean shutdown99
SD (Shutdown) command99
Sleep feature100
Airplane mode100
SIMcards100
Cellular connection process
Connecting102
Cellular network102
Data network connection102
Data communication with remote servers (TCP/UDP)102
Disconnecting102
Modes
Select an operating mode105
Transparent operating mode106
API operating mode106
Bypass operating mode (DEPRECATED)106
Digi XBee Cellular 3G Global Embedded Modem User Guide
6
Enter Bypass operating mode107
Leave Bypass operating mode107
Restore cellular settings to default in Bypass operating mode107
Command mode107
Enter Command mode107
Troubleshooting108
Send AT commands108
Response to AT commands109
Apply command changes109
Make command changes permanent109
Exit Command mode109
MicroPython mode109
Sleep modes
About sleep modes112
Normal mode112
Pin sleep mode112
Cyclic sleep mode112
Cyclic sleep with pin wake up mode112
Airplane mode112
The sleep timer112
MicroPython sleep behavior113
Serial communication
Serial interface115
Serial data115
UART data flow115
Serial buffers116
CTS flow control116
RTS flow control116
SPI operation
SPI communications118
Full duplex operation119
Low power operation120
Select the SPI port120
Force UART operation121
Data format121
Digi XBee Cellular 3G Global Embedded Modem User Guide
7
SMS behaviors
SMS encoding125
Socket behavior
Supported sockets127
Best practices when using sockets127
Sockets and Remote Manager127
Sockets and API mode127
Socket timeouts127
Socket limits in API mode127
Enable incoming TCP sockets in API mode128
API mode behavior for outgoing TCP and TLS connections128
API mode behavior for outgoing UDP data128
API mode behavior for incoming TCP connections129
API mode behavior for incoming UDP data129
Transparent mode behavior for outgoing TCP and TLS connections130
Transparent mode behavior for outgoing UDP data130
Transparent mode behavior for incoming TCP connections130
Transparent mode behavior for incoming UDP connections131
Extended Socket frames
Examples132
Available Extended Socket frames133
Extended Socket example: Single HTTP Connection133
Send a Socket Create frame133
Receive a Socket Create response134
Send Socket Connect134
Receive a Socket Connect Response134
Receive a Socket Status135
Send HTTP Request using Socket Send frame135
Receive TX Status136
Receive one or more Receive Data frames136
Receive Socket Status indicating closed connection137
Extended Socket example: UDP137
Send a Socket Create frame137
Receive a Socket Create response138
Bind local source addres138
Receive Bind/Listen Response138
Send to Digi echo server139
Receive TX Status139
Receive echoed data139
Send to Digi time server140
Receive TX Status140
Receive daytime value140
Close the socket141
Receive close response141
Extended Socket example: TCPListener142
Send a Socket Create frame142
Receive a Socket Create response142
Designate the socket as a listener142
Receive a Socket Bind/Listen Response143
Digi XBee Cellular 3G Global Embedded Modem User Guide
8
Making a connection to the listener socket143
Receiving Data from the new socket144
Receive a Socket Status indicating closed connection144
Transport Layer Security (TLS)
Specifying TLS keys and certificates147
Transparent mode and TLS148
API mode and TLS148
Key formats148
Certificate formats148
Certificate limitations148
Cipher suites148
Server Name Indication (SNI)149
Secure the connection between an XBee and Remote Manager with server authentication149
Step 1: Get the certificate149
Step 2: Configure device149
Step 3: Verify that authentication is being performed150
AT commands
Special commands152
AC (Apply Changes)152
FR (Force Reset)152
RE (Restore Defaults)152
SD (Shutdown)153
WR (Write)153
Cellular commands154
PH (Phone Number)154
S# (ICCID)154
IM (IMEI)154
II (Subscriber identity)154
MN (Operator)154
MV (Modem Firmware Version)155
MU (Modem firmware revision number)155
DB (Cellular Signal Strength)155
DT (Cellular Network Time)155
AN (Access Point Name)156
AM (Airplane Mode)156
PN (SIMPIN)156
PK (SIMPUK)157
CU (Cellular user name)157
CW (Cellular password)157
Network commands158
IP (IP Protocol)158
TL (TLS Protocol Version)158
$0 (TLS Profile 0)158
$1 (TLS Profile 1)159
$2 (TLS Profile 2)159
TM (IP Client Connection Timeout)159
TS (IP Server Connection Timeout)160
DO (Device Options)160
PG (Ping)161
Addressing commands162
Digi XBee Cellular 3G Global Embedded Modem User Guide
9
SH (Serial Number High)162
SL (Serial Number Low)162
MY (Module IP Address)162
P# (Destination Phone Number)162
N1 (DNS Address)163
N2 (DNS Address)163
DL (Destination Address)163
OD (Operating Destination Address)164
DE (Destination port)164
C0 (Source Port)164
LA (Lookup IP Address of FQDN)165
Serial interfacing commands166
Volume Format - 0x4F254
Local File System Response - 0xBB255
Regulatory firmware
Install the regulatory firmware257
Install regulatory firmware using XCTU257
Install regulatory firmware using Remote Manager258
Configure regulatory firmware for testing the cellular component258
Regulatory testing commands259
%# (Enable/disable test mode)259
Digi XBee Cellular 3G Global Embedded Modem User Guide
12
%1 (Start test mode)260
%2 (Stop test mode)260
%5 (Start modulated transmit)260
%6 (Stop transmit)261
%7 (Set the EARFCN)261
%8 (Get the EARFCN)261
%9 (Set transmit power)261
%A (Get transmit power)262
%D (Start receive mode)262
%? (Query test state)262
Troubleshooting
Cannot find the serial port for the device265
Condition265
Solution265
Other possible issues266
Enable Virtual COM port (VCP) on the driver266
Correct a macOS Java error267
Condition267
Solution267
Unresponsive cellular component in Bypass mode268
Condition268
Solution268
Not on expected network after APN change269
Condition269
Solution269
Syntax error at line 1269
Solution269
Error Failed to send SMS269
Solution269
Regulatory information
Modification statement271
Interference statement271
FCC notices271
FCC Class B digital device notice271
FCC publication 996369 related information272
2.1 General272
2.2 List of applicable FCC rules272
2.3 Summarize the specific operational use conditions272
2.4 Limited module procedures272
2.5 Trace antenna designs272
2.6 RF exposure considerations272
2.7 Antennas272
2.8 Label and compliance information273
2.9 Information on test modes and additional testing requirements273
2.10 Additional testing, Part 15 Subpart B disclaimer273
Antennas273
FCC (USA) exposure notice273
ISED (Canada) exposure notice273
Labeling requirements for the host device274
Europe (CE)274
Digi XBee Cellular 3G Global Embedded Modem User Guide
13
Maximum power and frequency specifications275
Declarations of conformity275
ACMA (Australia)275
RSM (New Zealand)275
Digi XBee Cellular 3G Global Embedded Modem User Guide
14
Digi XBee Cellular 3G Global Embedded Modem User
Guide
The XBee Cellular Modem integrates an embedded Wideband Code Division Multiple Access (WCDMA)
cellular module and enables original equipment manufacturers (OEMs) to incorporate 3G cellular
technology into their devices and applications without painful, time-consuming, and expensive FCC
and carrier end-device certifications.
With the full suite of standard XBee API frames and AT commands, existing XBee customers can
seamlessly transition to this new device with only minor software adjustments. When OEMs add the
XBee Cellular Modem to their product, they create a future-proof design with flexibility to switch
between wireless protocols or frequencies as needed.
You can read some frequently asked questions here.
Applicable firmware and hardware
This manual supports the following firmware:
n 113xx and above
Note This manual uses the placeholder value "xx" in the firmware versions listed above, as the
manual documents the released features as of the time of its writing. Digi International periodically
releases new firmware containing bug fixes and new features. As new firmware is released and
distributor stock is refreshed, the new firmware will gradually become available without the need to
update. However, no guarantees can be made that a specific version of the firmware will be populated
on any given XBee as delivered. If a specific revision is desired, it is the user's responsibility to ensure
that version is loaded onto all XBees purchased.
Note You must upgrade your device to the latest firmware for all features to be available. See Update
the firmware.
It supports the following hardware:
n XBC-M5-UT-xxx
SIM cards
The XBee Cellular Modem requires a 4FF (Nano) size SIM card. The SIM interface supports both 1.8 V
and 3 V SIM types.
Digi XBee Cellular 3G Global Embedded Modem User Guide
15
Digi XBee Cellular 3G Global Embedded Modem User GuideCellular service
Cellular service
Digi now offers Cellular Bundled Service plans. This service includes pre-configured cellular data
options that are ideal for IoT applications, bundled together with Digi Remote Manager for customers
who want to remotely monitor and manage their devices.
To learn more, or obtain the plan that is right for your needs, contact us:
n By phone: 1-877-890-4014 (USA/toll free) or +1-952-912-3456 (International). Select the
Wireless Plan Support or Activation option in the menu.
n By email: Data.Plan.QuoteDesk@digi.com.
The XBee Cellular kit includes six months of free cellular service. Six months of free cellular service
assumes a rate of 5 MB/month. If you exceed a limit of 30 MB during the six month period your SIM will
be deactivated.
Digi XBee Cellular 3G Global Embedded Modem User Guide
16
Get started with the XBee Cellular Modem
This section describes how to connect the hardware in the XBee, and provides some examples you can
use to communicate with the device.
You should perform all of the steps below in the order shown.
1. Identify the kit contents
2. Connect the hardware
3. Install and upgrade XCTU
4. Use one of the following methods to verify your cellular connection:
n Connect to the Echo server
n Connect to the ELIZA server
n Connect to the Daytime server
Optional steps
You can review the information in these steps for more XBee connection examples and examples of
how to use MicroPython.
1. Review additional connection examples to help you learn how to use the device. See XBee
connection examples.
2. Review introductory MicroPython examples. You can use MicroPython to enhance the
intelligence of the XBee to enable you to do edge-computing by adding business logic in
MicroPython, rather than using external components.
n Example: hello world
n Example: turn on an LED
Digi XBee Cellular 3G Global Embedded Modem User Guide
17
Get started with the XBee Cellular ModemIdentify the kit contents
Identify the kit contents
The Developer's kit includes the following:
One XBIB-U-DEV board
One 12 V power supply
One cellular antenna with U.FL connector
One USB cable
One XBee Cellular Modem
Note The XBee Cellular Modem comes
attached to the board in ESDwrap.
One SIMcard
Digi XBee Cellular 3G Global Embedded Modem User Guide
18
Get started with the XBee Cellular ModemConnect the hardware
Connect the hardware
1. The XBee Cellular Modem should already be plugged into the XBIB-U-DEV board. For more
information about development boards, see Development boards.
2. The SIMcard should be already be inserted into the XBee Cellular Modem. If not, install the
SIMcard into the XBee Cellular Modem.
WARNING! Never insert or remove the SIM card while the device is powered!
WARNING! The development board power supply only supports 3G mode. It does not
support 2G mode.
3. Connect the antenna to the XBee Cellular Modem by aligning the U.FL connector carefully, then
firmly pressing straight down to seat the connector. You should hear a snap when the antenna
attaches correctly. U.FL is fragile and is not designed for multiple insertions, so exercise
caution when connecting or removing the antennas. We recommend using a U.FL removal tool.
4. Plug the 12 V power supply to the power jack on the development board.
5. Connect the USB cable from a PC to the USB port on the development board. The computer
searches for a driver, which can take a few minutes to install.
Digi XBee Cellular 3G Global Embedded Modem User Guide
19
Get started with the XBee Cellular ModemInstall and upgrade XCTU
Install and upgrade XCTU
XBee Configuration and Test Utility (XCTU) is a multi-platform program developed by Digi that enables
users to interact with Digi radio frequency (RF) devices through a graphical interface. The application
includes built-in tools that make it easy to set up, configure, and test Digi RF devices.
XCTU does not work directly over an SPI interface.
You can use XCTU to update the device firmware. Firmware is the program code stored in the device's
persistent memory that provides the control program for the device.
Note You cannot update the cellular component on a 3G device.
For instructions on downloading and using XCTU, see the XCTU User Guide.
Note If you are on a macOS computer and encounter problems installing XCTU, see Correct a macOS
Java error.
Step 1: Install and upgrade XCTU
You can use XCTU to update the device firmware.
1. To use XCTU, you may need to install FTDI Virtual COMport (VCP)drivers onto your computer.
Click here to download the drivers for your operating system.
2. Upgrade XCTU to the latest version. This step is required.
Step 2: Add a device to XCTU
You must add a device to XCTU before you can update the device's firmware or configure the device
from XCTU.
Add a device to XCTU
These instructions show you how to add the XBee to XCTU.
If XCTU does not find your serial port, see Cannot find the serial port for the device and Enable Virtual
COM port (VCP) on the driver.
1.
Launch XCTU.
Note XCTU's Update the radio module firmware dialog box may open and will not allow you
to continue until you click Update or Cancel on the dialog.
2. Click Help > Check for XCTUUpdates to ensure you are using the latest version of XCTU.
3.
Click the Discover radio modules buttonin the upper left side of the XCTU screen.
4. In the Discover radio devices dialog, select the serial ports where you want to look for XBee
modules, and click Next.
5. In the Set port parameters window, maintain the default values and click Finish.
6. As XCTU locates radio modules, they appear in the Discovering radio modules dialog box.
7. Select the device(s) you want to add and click Add selected devices.
If your module could not be found, XCTU displays the Could not find any radio module dialog
providing possible reasons why the module could not be added.
Digi XBee Cellular 3G Global Embedded Modem User Guide
20
Get started with the XBee Cellular ModemUpdate the device firmware using XCTU
Update the device firmware using XCTU
You should use XCTU to update the device firmware on your XBee to the most recent version. This
ensures that you can take advantage of all the latest fixes and features.
Update the device firmware using XCTU.
Check for cellular registration and connection
The cellular network registration and address assignment must occur successfully. To verify the
network connection, you can view the LED on the development board or check the status of the
relevant commands in XCTU.
Registration can take several minutes.
Before you begin
n Make sure you have added the device to XCTU. See Add a device to XCTU.
n Make sure you are in an area with adequate cellular network reception.
n Verify that the antennas are connected properly to the device.
View LED action
The LED on the development board blinks when the XBee is registered to the cellular network; see
Associate LED functionality. If the LEDremains solid, registration has not occurred properly.
View commands in SCTU
1.
Launch XCTU.
2.
Click the Configuration working modebutton.
3. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
4. Verify the status of your network connection using the following commands:
n AI (Association Indication) reads 0 when the device successfully registers to the
cellular network and the LED is blinking. If it reads 23 it is connecting to the Internet; 22
means it is registering to the cellular network.
n MY (Module IP Address) should display a valid IPaddress. If it reads 0.0.0.0, it has not
registered yet.
Hints
n
To search for an ATcommand in XCTU, use the search box.
n
To read a command's value, click the Read buttonnext to the command.
Digi XBee Cellular 3G Global Embedded Modem User Guide
21
XBee connection examples
The following examples provide some additional scenarios you can try to get familiar with the XBee.
These examples are focused on inter-operating with a host processor to drive the XBee.
If you are interested in using the intelligence built into the XBee, see Get started with MicroPython.
Note Some carriers restrict your internet access. If access is restricted, running some of these
examples may not be possible. Check with your carrier provider to determine whether internet access
is restricted.
Connect to the Echo server23
Connect to the ELIZA server24
Connect to the Daytime server25
Perform a (GET) HTTP request27
Connect to a TCP/IP address28
Debugging29
Software libraries29
Digi XBee Cellular 3G Global Embedded Modem User Guide
22
XBee connection examplesConnect to the Echo server
Connect to the Echo server
This server echoes back the messages you type.
Note For help with debugging, see Debugging.
The following table explains the AT commands that you use in this example.
At
commandValueDescription
IP (IP
Protocol)
TD
(Text
Delimiter)
DL
(Destination
Address)
DE
(Destination
Port)
1Set the expected
transmission mode to
TCP communications.
D (0x0D)
52.43.121.77The target IPaddress of
2329 (0x2329)The target port number of
The text delimiter to be
used for Transparent
mode, as an ASCII hex
code. No information is
sent until this character is
entered, unless the
maximum number of
characters has been
reached. Set to 0 to
disable text delimiter
checking. Set to D for a
carriage return.
the echo server.
the echo server.
To communicate with the Echo server:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in Connect the hardware.
2. Open XCTU and Add a device to XCTU.
3.
Click the Configuration working modebutton.
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5.
To switch to TCP communication, in the IP field, select 1 and click the Write button.
6. To enable the XBee to recognize carriage return as a message delimiter, in the TD field, type D
and click the Write button.
7. To enter the destination address of the echo server, in the DL field, type 52.43.121.77 and click
the Write button.
8. To enter the destination IP port number, in the DE field, type 2329 and click the Write button.
Digi XBee Cellular 3G Global Embedded Modem User Guide
23
XBee connection examplesConnect to the ELIZA server
Note XCTU does not follow the standard hexadecimal numbering convention. The leading 0x is
not needed in XCTU.
9.
Click the Consoles working mode buttonon the toolbar to open a serial console to the
device. For instructions on using the Console, see the AT console topic in the XCTU User Guide.
10.
Click the Open buttonto open a serial connection to the device.
11. Click in the left pane of the Console log, then type in the Console to talk to the echo server.
The following screenshot provides an example of this chat.
Connect to the ELIZA server
You can use the XBee to chat with the ELIZA Therapist Bot. ELIZAis an artificial intelligence (AI) bot
that emulates a therapist and can perform simple conversations.
Note For help with debugging, see Debugging.
The following table explains the AT commands that you use in this example.
At commandValueDescription
IP (IP Protocol)1Set the expected
DL (Destination
Address)
DE (Destination
Port)
To communicate with the ELIZA Therapist Bot:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in Connect the hardware.
2. Open XCTU and Add a device to XCTU.
52.43.121.77The target IP address of the
2328 (0x2328)The target port number of
transmission mode to TCP
communications.
ELIZA server.
the ELIZA server.
Digi XBee Cellular 3G Global Embedded Modem User Guide
24
XBee connection examplesConnect to the Daytime server
3.
Click the Configuration working modebutton.
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5.
To switch to TCP communication, in the IP field, select 1 and click the Write button.
6. To enter the destination address of the ELIZATherapist Bot, in the DL field, type 52.43.121.77
and click the Write button.
7. To enter the destination IP port number, in the DE field, type 2328 and click the Write button.
8.
Click the Consoles working mode buttonon the toolbar to open a serial console to the
device. For instructions on using the Console, see the AT console topic in the XCTU User Guide.
9.
Click the Open buttonto open a serial connection to the device.
10. Click in the left pane of the Console log, then type in the Console to talk to the ELIZA Therapist
Bot. The following screenshot provides an example of this chat with the user's text in blue.
Connect to the Daytime server
The Daytime server reports the current Coordinated Universal Time (UTC) value responding to any
user input.
Note For help with debugging, see Debugging.
The following table explains the AT commands that you use in this example.
Digi XBee Cellular 3G Global Embedded Modem User Guide
25
XBee connection examplesConnect to the Daytime server
At commandValueDescription
IP (IP
Protocol)
DL
(Destination
Address)
DE
(Destination
Port)
TD (Text
Delimiter)
To communicate with the Daytime server:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in Connect the hardware.
2. Open XCTU and Add a device to XCTU.
1Set the expected transmission
mode to TCP communications.
52.43.121.77The target IP of the Daytime
server.
232A (0x232A)The target port number of the
Daytime server.
0
The text delimiter to be used for
Transparent mode, as an ASCII
hex code. No information is sent
until this character is entered,
unless the maximum number of
characters has been reached. Set
to zero to disable text delimiter
checking.
3.
Click the Configuration working modebutton.
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5.
To switch to TCP communication, in the IP field, select 1 and click the Write button.
6. To enter the destination address of the daytime server, in the DL field, type 52.43.121.77 and
click the Write button.
7. To enter the destination IP port number, in the DE field, type 232A and click the Write button.
8. To disable text delimiter checking, in the TD field, type 0 and click the Write button.
9.
Click the Consoles working mode buttonon the toolbar to open a serial console to the
device. For instructions on using the Console, see the AT console topic in the XCTU User Guide.
10.
Click the Open buttonto open a serial connection to the device.
11. Click in the left pane of the Console log, then type in the Console to query the Daytime server.
The following screenshot provides an example of this chat.
Digi XBee Cellular 3G Global Embedded Modem User Guide
26
XBee connection examplesPerform a (GET) HTTP request
Perform a (GET) HTTP request
You can use the XBee to perform a GET Hypertext Transfer Protocol (HTTP) request using XCTU. HTTP
is an application-layer protocol that runs over TCP. This example uses httpbin.org/ as the target
website that responds to the HTTP request.
Note For help with debugging, see Debugging.
To perform a GETrequest:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in Connect the hardware.
2. Open XCTU and Add a device to XCTU.
3.
Click the Configuration working modebutton.
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5. To enter the destination address of the target website, in the DL field, type httpbin.org and
click the Write button.
6. To enter the HTTP request port number, in the DE field, type 50 and click the Write button.
Hexadecimal 50 is 80 in decimal.
7. To switch to TCP communication, in the IP field, select 1 and click the Write button.
8. To move into Transparent mode, in the APfield, select 0 and click the Write button.
9. Wait for the AI (Association Indication) value to change to 0 (Connected to the Internet).
10.
Click the Consoles working mode buttonon the toolbar.
11.
From the AT console, click the Add new packet buttonin the Send packets dialog. The
Add new packet dialog appears.
12. Enter the name of the data packet.
13. Type the following data in the ASCII input tab:
GET /ip HTTP/1.1
Digi XBee Cellular 3G Global Embedded Modem User Guide
27
XBee connection examplesConnect to a TCP/IP address
Host: httpbin.org
14. Click the HEX input tab and add 0A (zero A) after each 0D (zero D), and add an additional 0D 0A
at the end of the message body. For example, copy and past the following text into the HEX
input tab:
Note The HTTP protocol requires an empty line (a line with nothing preceding the CRLF) to terminate
the request.
15. Click Add packet.
16.
Click the Open button.
17. Click Send selected packet.
18. A GETHTTP response from httpbin.org appears in the Console log.
Connect to a TCP/IP address
The XBee Cellular Modem can send and receive TCP messages while in Transparent mode; see
Transparent operating mode.
Note You can use this example as a template for sending and receiving data to or from any
TCP/IPserver.
Note For help with debugging, see Debugging.
The following table explains the AT commands that you use in this example.
CommandValueDescription
IP (IP
Protocol)
DL
(Destination
IPAddress)
DE
(Destination
Port)
To connect to a TCP/IP address:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in Connect the hardware.
2. Open XCTU and Add a device to XCTU.
1Set the expected transmission mode to TCPcommunication.
<Target
IPaddress>
<Target
portnumber>
The target IP address that you send and receive from. For example, a
data logging server’s IP address that you want to send
measurements to.
The target port number that the device sends the transmission to.
This is represented as a hexadecimal value.
3.
Click the Configuration working modebutton.
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
Digi XBee Cellular 3G Global Embedded Modem User Guide
28
XBee connection examplesDebugging
5.
In the IP field, select 1 and click the Write button.
6. In the DL field, type the <target IP address> and click the Write button. The target IP address
is the IPaddress that you send and receive from.
7. In the DE field, type the <target port number>, converted to hexadecimal, and click the Write
button.
8. Exit Command mode.
After exiting Command mode, any UART data sent to the device is sent to the destination IP address
and port number after the RO (Packetization Timeout) occurs.
Debugging
If you experience problems with the settings in the examples, you can load the default settings in
XCTU.
Note If you load the default settings, you will need to reapply any configuration settings that you have
previously made.
1.
On the Configuration toolbar, click the Default buttonto load the default values
established by the firmware, and click Yes to confirm.
2. Factory settings are loaded but not written to the device. To write them, click the Write button
on the toolbar.
Software libraries
One way to communicate with the XBee device is by using a software library. The libraries available
for use with the XBee Cellular Modem include:
n XBee Java library
n XBee Python library
n XBee ANSI C library
The XBee Java Library is a Java API. The package includes the XBee library, its source code and a
collection of samples that help you develop Java applications to communicate with your XBee devices.
The XBee Python Library is a Python API that dramatically reduces the time to market of XBee
projects developed in Python and facilitates the development of these types of applications, making it
an easy process.
The XBee ANSI C Library project is a collection of portable ANSI C code for communicating with the
devices in API mode.
Digi XBee Cellular 3G Global Embedded Modem User Guide
29
Get started with Digi Remote Manager
Digi Remote Manager® is a cloud-based device and data management platform that you can use to
configure and update a device, and view and manage device data.
The sections below describe how to create a Remote Manager account, upgrading your device,
configure your device, and manage data in Remote Manager.
1. Create a Remote Manager account and add devices
2. To ensure that all Remote Manager features are available, you should upgrade your device to
the latest firmware. See Update the firmware from the Devices page in Remote Manager or
Update the firmware using web services in Remote Manager.
3. Configure your device in Remote Manager
To be able to configure your device in Remote Manager, the device must be connected to
Remote Manager. You can connect to and configure your device in Remote Manager using one
of the following methods:
o
Scheduled connection: In this method, you create a list of tasks that you want to
perform on the device, and then start the operation. This is the recommended method,
and is the best choice for low data usage. See Configure Remote Manager features by
scheduling tasks.
o
Always connected: This method can be used for initial configuration, or when you are
not concerned with low data usage. See Configure XBee settings within Remote
Manager.
4. Secure the connection between an XBee and Remote Manager with server authentication.
5. Manage data in Remote Manager
6. Remote Manager reference
Create a Remote Manager account and add devices
To be able to use Remote Manager, you must create a Remote Manager account and add your XBee
devices to the device list. You should also verify that the device is enabled to connect to Remote
Manager.
1. Create a Remote Manager account.
2. Add an XBee Cellular Modem to Remote Manager.
3. Verify the connection between a device and Remote Manager
Digi XBee Cellular 3G Global Embedded Modem User Guide
30
Loading...
+ 245 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.