Sodaq GPRSBee topic
- Introduction
- Manufacturer Documentation
- Modem Constructor
- Example Code
- Reference
- Detailed Descriptions
Introduction
This is for the Sodaq GPRSBee R6 and higher. This board is based on the SIMCom SIM800H, but adds an extra transistor to the PWR_KEY
so it is turned on and off in a different way. For earlier Sodaq GPRSBee's, use the standard SIM800 constructor.
The modem constructor follows the typical modem pattern, except that the Sodaq GPRSBee's do not expose the SIM800's reset pin or its sleep request (PWRKEY
) pin. The SIM800H's PWRKEY
is always held at the inverse of the main power. It cannot be controlled. Thus the GPRSBeeR6 can only be "put to sleep" by cutting the power to the SIM800H.
If you are capable of controlling the voltage reference pin (Bee socket pin 1) of the GPRSBee, you can set that pin using the function setVRefPin(int8_t vRefPin)
.
Manufacturer Documentation
The GPRSBee schematics are available here: https:/
Modem Constructor
Sodaq2GBeeR6:: Sodaq2GBeeR6(Stream* modemStream,
int8_t powerPin,
int8_t statusPin,
const char* apn)
Construct a new Sodaq 2GBee R6 object.
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. |
apn | The Access Point Name (APN) for the SIM card. |
The constructor 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 is the pin labeled STATUS
in Sodaq (and SIMCom)'s documentation.
Example Code
The GPRSBee is used in the menu a la carte example.
Classes
- class Sodaq2GBeeR6
- The loggerModem subclass for the Sodaq 2GBee revisions 6 and higher based on the SIMCOM SIM800H.
Modem Pin Settings and Timing
The timing and pin level settings for a GPRSBee
- #define S2GBR6_WAKE_DELAY_MS = 0
- The loggerModem::
_wakeDelayTime_ms.
Define documentation
#define S2GBR6_WAKE_DELAY_MS = 0
#include <src/modems/Sodaq2GBeeR6.h>
The loggerModem::
The GPRSBee R6+ has the PWR_KEY
tied to the input voltage, so there is no warm-up time needed