Option 1: Manual Configuration - sparkfun XBee Cellular Getting Started Manual

Table of Contents

Advertisement

XBee connection examples
These examples create some basic remote interactions with the XBee in "Transparent Mode" via
its serial port, with a human sending the data. If you are interested in using a host device like an
external microcontroller or computer to send information, see
using the intelligence built into the XBee will be covered in the Get Started with MicroPython
section below.
Echo server
This basic example shows how to use XBee Cellular's Transparent Mode to confirm round-trip
communications with a remote server that simply echoes back whatever text you type.
This exercise will require configuring a few more settings. It's good practice to do that manually,
and full instructions are below. However, there's a second option: loading in a stored Profile that
includes all the settings. Both options are described below, you can use either method.

Option 1: Manual Configuration

The following table explains the commands that you will use in this example.
Command
code
Value
1
IP (IP
Protocol)
D (0x0D)
TD
(Text
Delimiter)
52.43.121.77 The target IP address of the echo server.
DL
(Destination
Address)
DE
2329
(0x2329)
(Destination
Port)
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 (above).
GSG v.1.1.2
Description
TCP: Set the expected transmission mode to TCP
communications.
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.
Note
Some carriers may require whitelisted IP addresses. If
this IP is not whitelisted by your carrier you will not be able
to run this example.
TCP: The target port number of the TCP echo server.
This port in decimal is 9001.
API
Mode. Direct data acquisition
10

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee Cellular and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents