Appearance
struct gsm_modem_counters_t
Counters of the modem driver over the sliding last 24 h. More...
#include <modem/gsm_modem.h>
Public Attributes
| Name | |
|---|---|
| uint32_t | span_s covered part of the window, at most 86400 |
| uint16_t | attaches device-side attach actions (power-on, pin reset, power cycle, CFUN 0->1) |
| uint16_t | modem_resets modem resets |
| uint16_t | pdp_attempts data session setups (dials) |
| uint16_t | auth_fails setups rejected by authentication |
| uint16_t | rrc radio connections, see rrc_source |
| uint16_t | pdp_fails failed data session setups |
| uint16_t | rejects registration rejects (CEREG 3) |
| uint16_t | registrations registrations (CEREG 1/5) |
| uint16_t | reattaches device-side detach/re-attach cycles |
| uint16_t | attach_limit cap for the current access technology |
| uint8_t | attach_level 0, 80, 90 or 100: share of the cap reached |
| uint8_t | rrc_source GSM_MODEM_RRC_*. |
| uint8_t | pdp_state GSM_MODEM_PDP_*. |
| uint8_t | reject_cause EMM cause of the running reject, 0 = none. |
| uint32_t | tx_bytes PPP payload sent in 24 h. |
| uint32_t | rx_bytes PPP payload received in 24 h. |
| uint32_t | month_bytes_ltem PPP payload (both directions) in the calendar month (UTC), all but NB-IoT. |
| uint32_t | month_bytes_nbiot the same on NB-IoT |
Detailed Description
cpp
struct gsm_modem_counters_t;Counters of the modem driver over the sliding last 24 h.
Kept in hourly buckets, persisted in the KV-FS (key 0xC020) and so surviving reboots and power loss; span_s says how much of the 24 h is covered. Device-side attaches are capped: 24 per 24 h on NB-IoT, 144 otherwise (doubled spacing from 80 %).
Public Attributes Documentation
variable span_s
cpp
uint32_t gsm_modem_counters_t::span_scovered part of the window, at most 86400
variable attaches
cpp
uint16_t gsm_modem_counters_t::attachesdevice-side attach actions (power-on, pin reset, power cycle, CFUN 0->1)
variable modem_resets
cpp
uint16_t gsm_modem_counters_t::modem_resetsmodem resets
variable pdp_attempts
cpp
uint16_t gsm_modem_counters_t::pdp_attemptsdata session setups (dials)
variable auth_fails
cpp
uint16_t gsm_modem_counters_t::auth_failssetups rejected by authentication
variable rrc
cpp
uint16_t gsm_modem_counters_t::rrcradio connections, see rrc_source
variable pdp_fails
cpp
uint16_t gsm_modem_counters_t::pdp_failsfailed data session setups
variable rejects
cpp
uint16_t gsm_modem_counters_t::rejectsregistration rejects (CEREG 3)
variable registrations
cpp
uint16_t gsm_modem_counters_t::registrationsregistrations (CEREG 1/5)
variable reattaches
cpp
uint16_t gsm_modem_counters_t::reattachesdevice-side detach/re-attach cycles
variable attach_limit
cpp
uint16_t gsm_modem_counters_t::attach_limitcap for the current access technology
variable attach_level
cpp
uint8_t gsm_modem_counters_t::attach_level0, 80, 90 or 100: share of the cap reached
variable rrc_source
cpp
uint8_t gsm_modem_counters_t::rrc_sourceGSM_MODEM_RRC_*.
variable pdp_state
cpp
uint8_t gsm_modem_counters_t::pdp_stateGSM_MODEM_PDP_*.
variable reject_cause
cpp
uint8_t gsm_modem_counters_t::reject_causeEMM cause of the running reject, 0 = none.
variable tx_bytes
cpp
uint32_t gsm_modem_counters_t::tx_bytesPPP payload sent in 24 h.
variable rx_bytes
cpp
uint32_t gsm_modem_counters_t::rx_bytesPPP payload received in 24 h.
variable month_bytes_ltem
cpp
uint32_t gsm_modem_counters_t::month_bytes_ltemPPP payload (both directions) in the calendar month (UTC), all but NB-IoT.
variable month_bytes_nbiot
cpp
uint32_t gsm_modem_counters_t::month_bytes_nbiotthe same on NB-IoT