Configure The Device; Example: Manually Perform A Coap Request - Digi XBee 3 Cellular LTE-M User Manual

Smart modem
Table of Contents

Advertisement

Examples: IOT protocols with transparent mode
The following table describes the fields in the GET request.
Field
Ver
T
TKL
Code
Message ID
Token
Option delta
Option length
Option value

Configure the device

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. Add the XBee Smart Modem to XCTU; see
4. Select a device from the Radio Modules list. XCTU displays the current firmware settings for
that device.
5. To switch to UDP communication, in the IP field, select 0 and click the Write button
6. To set the target IP address that the XBee Smart Modem will talk to, in the DL field type
52.43.121.77and click the Write button
52.43.121.77.
7. To set the XBee Smart Modem to send data to port 5683 in decimal, in the DE field, type 1633
and click the Write button.
8. To move into Transparent mode, in the AP field, select 0 and click the Write button.
9. Wait for the AI (Association Indication) value to change to 0 (Connected to the Internet). You
can click Read
Example: manually perform a CoAP request
Follow the steps in
GET request:
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
HEX
Bits
44
01
00
0100
01
000 00001
C4 09
2 Bytes equal
to hex at left
74 65 73 74 4 Bytes equal
to hex at left
B7
1011
0111
65 78 61 6D
7 Bytes equal
70 6C 65
to hex at left
Connect the
to get an update on the AI value.
Configure the device
prior to this example. This example performs the CoAP
Meaning
Version 01, which is mandatory here.
Type 0: confirmable.
Token length: 4.
Code: 0.01, which indicates the GET method.
Message ID. The response message will have the
same ID. This can help out identification.
Token. The response message will have the same
token. This can help out identification.
Delta option: 11 indicates the option data is Uri-
Path.
Delta length: 7 indicates there are 7 bytes of data
following as a part of this delta option.
Example.
hardware.
button.
Add a device to
XCTU.
. A CoAP server is publicly available at address
Get started with CoAP
.
68

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee 3 cellular nb-iot

Table of Contents