Digi XBee® Cellular LTE-M/NB-IoT topic
- Introduction
- Manufacturer Documentation
- Modem Constructor
- Example Code
- LTE Network Selection
- Reference
-
Detailed Descriptions
Introduction
When operated in Digi's "bypass" mode, the u-blox SARA R410M based XBee3 can be implented as a DigiXBeeLTEBypass object - a subclass of DigiXBee and loggerModem. Bypass refers to the fact that XBee3's main processor is bypassed - acting only as a pass-through to the u-blox cellular component.
This LTE-M module can just about almost get by with only 500mA power supplied, but it definitely not ideal.
Manufacturer Documentation
The Digi product page for the LTE-M module is here: https:/
Modem Constructor
Construct a new Digi XBee LTE Bypass object. The constuctor initializes all of the provided member variables, constructs a loggerModem parent class with the appropriate timing for the module, calls the constructor for a TinyGSM modem on the provided modemStream, and creates a TinyGSM Client linked to the modem. Should be set to a negative number if the modem should be continuously powered or the power cannot be controlled by the MCU.
Should be set to a negative number if the modem status pin cannot be read. This can be either the pin named
DigiXBeeLTEBypass::
Parameters
modemStream
The Arduino stream instance for serial communication.
powerPin
The digital pin number of the mcu pin controlling power to the modem (active
HIGH
).
statusPin
The digital pin number of the mcu pin connected to the modem status output pin.
useCTSStatus
True to use the
CTS_N/DIO7
pin of the XBee as a status indicator rather than the true status (ON/SLEEP_N/DIO9
) pin. This inverts the loggerModem::
modemResetPin
The digital pin number of the pin on the mcu attached the the hard or panic reset pin of the modem.
modemSleepRqPin
The digital pin number of a pin on the mcu used to request the modem enter its lowest possible power state.
apn
The Access Point Name (APN) for the SIM card.
ON/SLEEP_N/DIO9
or CTS_N/DIO7
pin in Digi's hardware reference.
Should be set to a negative number if the modem reset pin is not connected to the MCU. This shold be the pin called RESET_N
in Digi's hardware reference.
Should be set to a negative number if there is no pin usable for deep sleep modes or it is not accessible to the MCU. This shold be the pin called DTR_N/SLEEP_RQ/DIO8
in Digi's hardware reference.
Example Code
Creating the Modem Object
The digi_cellular is used in the menu a la carte example.
LTE Network Selection
It is good practice to select which network you'll be connecting to based on your SIM card and signal availability. Example code for this can also be found in the menu a la carte example.
Classes
- class DigiXBeeLTEBypass
- The class for any of Digi's cellular LTE-M XBee3 modules operating in Digi's "bypass" mode.