Perform A (Get) Http Request - Digi XBee Cellular LTE Cat 1 User Manual

Embedded modem
Hide thumbs Also See for XBee Cellular LTE Cat 1:
Table of Contents

Advertisement

Getting started with the XBee Cellular Modem Development Kit
4. On the Configuration toolbar, click the Default button
established by the firmware, and click Yes to confirm.
5. Factory settings are loaded but not written to the device. To write them, click the Write button
on the toolbar.
6. In the IP field, select 1 and click the Write button
7. In the DL field, type the <target IP address> and click the Write button. The target IP address
is the IP address that you send and receive from.
8. In the DE field, type the <target port number>, converted to hexadecimal, and click the Write
button.
9. Exit Command mode; see
After exiting Command mode, any UART data sent to the device is sent to the destination IP address
and port number after the

Perform a (GET) HTTP request

You can use the XBee Cellular Modem to perform a GET Hypertext Transfer Protocol (HTTP) request
using XCTU. This example uses
that responds to the HTTP request.
To perform a GET request:
1. Ensure that the device is set up correctly with the SIM card installed and the antennas
connected as described in
2. Open XCTU and click the Configuration working mode
3. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
4. To enter the destination address of the target website, in the DL field, type 54.175.219.8 and
click the Write button
5. To enter the HTTP request port number, in the DE field, type 50 and click the Write button.
Hexadecimal 50 is 80 in decimal.
6. To switch to TCP communication, in the IP field, select 1 and click the Write button.
7. To move into Transparent mode, in the AP field, select 0 and click the Write button.
8. Wait for the AI (Association Indication) value to change to 0 (Connected to the Internet).
9. Click the Consoles working mode button
10. From the AT console, click the Add new packet button
Add new packet dialog appears.
11. Enter the name of the data packet.
12. Type the following data in the ASCII input tab:
GET /ip HTTP/1.1
Digi XBee Cellular LTE Cat 1 Embedded Modem User Guide
Exit Command
mode.
RO (Packetization Timeout)
http://httpbin.org/
(IP address: 54.175.219.8) as the target website
Connect the
hardware.
.
XBee Cellular Modem examples
to load the default values
.
occurs.
button.
on the toolbar.
in the Send packets dialog. The
24

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents