CRBasic Example 3: Settings configuration and status retrieval
'antenna in the cellular module. 0 = OFF. 1 = ON.
cell_ip_address =
PPPOpen
()
'Just make sure we are ready to go!
Scan
(1,Sec,0,0)
PanelTemp
(panel_temperature_c,60)
Battery
(battery_voltage)
CallTable
TEST_DATA
NextScan
SlowSequence
Scan
(10, Min, 0, 0)
cell_rssi = Settings.CellRSSI
'read RSSI (signal strength) from tower connected to
cell_todays_usage = Settings.CellUsageToday
'usage reported in KB
cell_yesterdays_usage = Settings.CellUsageYesterday
'usage reported in KB
cell_this_months_usage = Settings.CellUsageMonth
'usage reported in KB
cell_last_months_usage = Settings.CellUsageLastMonth
'usage reported in KB
cell_info = Settings.CellInfo
'Cell Info. Same information that shows in the
'DevConfig Cellular Network Status field
cell_status = Settings.CellStatus
'Status of the cellular modem.
cell_state = Settings.CellState
'State that the modem is in. "Network ready." lets me
'know my modem is good to go.
'CellState can be the following (but not limited to):
'"Power off.",
'"Powering up.",
'"Powered up.",
'"SIM authorized.",
'"Setting baud rate.",
'"Waiting for baud rate.",
'"Baud rate set.",
'"Baud rate failure.",
'"Power off. Waiting for retry.",
'"Powered up. SIM auth failure.",
'"Querying modem.",
'"Waiting for network registration.",
'"Configuring modem.",
'"Dialing.",
'"Dialing (retry).",
'"Dialed.",
'"PPP negotiation.",
'"Network ready.",
'"PPP closing.",
'"PPP paused.",
Appendix A. Configure cellular settings and retrieve status information with SetSetting()
199