Skip to content

struct gsm_modem_init_t ​

GSM modem initialization parameters. #include <modem/gsm_modem.h>

Public Attributes ​

Name
uint32_tbands
char[8]oper
numeric operator code (3-digit MCC, 2-digit MNC, List of MNC for the EU). If left empty (0) the modem selects from the operators stored on the SIM card.
gsm_technology_ttech
Radio access technology (RAT) to use.
uint8_tpower_on_reset
uint8_tedrx
Extended discontinuous reception settings.
uint8_tpsm
Power saving mode settings.
char[100]apn
APN to use.
apn_auth_tapn_auth_type
PPP authentication type for the APN.
char[128]apn_user
PPP APN username.
char[512]apn_pwd
PPP APN password.
char[10]scanseq
the order in which different RATs shall be preferably used
uint8_tuse_peer_dns
1= use dns servers from PPP negotiation, 0= use custom DNS server
uint32_tbaudrate
Baudrate for the modem. If set to 0 default is 115200;.

Public Attributes Documentation ​

variable bands ​

cpp
uint32_t gsm_modem_init_t::bands

Or'ed LTE_Bxx macros the modem may search; 0 selects the driver default. Quectel BG77: one mask for Cat-M1 and NB-IoT, default LTE_B1 | LTE_B3 | LTE_B8 | LTE_B20 | LTE_B28. The EG912 and nRF9160 drivers ignore this field.

variable oper ​

cpp
char gsm_modem_init_t::oper[8]

numeric operator code (3-digit MCC, 2-digit MNC, List of MNC for the EU). If left empty (0) the modem selects from the operators stored on the SIM card.

variable tech ​

cpp
gsm_technology_t gsm_modem_init_t::tech

Radio access technology (RAT) to use.

variable power_on_reset ​

cpp
uint8_t gsm_modem_init_t::power_on_reset

Reset a running modem at every boot. Goes through the action gate (not under T3396, a suspected blocked SIM, a reject back-off or the attach budget); the BG77 detaches and pauses first. Each one costs an attach.

variable edrx ​

cpp
uint8_t gsm_modem_init_t::edrx

Extended discontinuous reception settings.

variable psm ​

cpp
uint8_t gsm_modem_init_t::psm

Power saving mode settings.

variable apn ​

cpp
char gsm_modem_init_t::apn[100]

APN to use.

variable apn_auth_type ​

cpp
apn_auth_t gsm_modem_init_t::apn_auth_type

PPP authentication type for the APN.

variable apn_user ​

cpp
char gsm_modem_init_t::apn_user[128]

PPP APN username.

variable apn_pwd ​

cpp
char gsm_modem_init_t::apn_pwd[512]

PPP APN password.

variable scanseq ​

cpp
char gsm_modem_init_t::scanseq[10]

the order in which different RATs shall be preferably used

variable use_peer_dns ​

cpp
uint8_t gsm_modem_init_t::use_peer_dns

1= use dns servers from PPP negotiation, 0= use custom DNS server

variable baudrate ​

cpp
uint32_t gsm_modem_init_t::baudrate

Baudrate for the modem. If set to 0 default is 115200;.