18 #ifndef AT_CELLULAR_NETWORK_H_    19 #define AT_CELLULAR_NETWORK_H_    21 #include "CellularNetwork.h"    22 #include "AT_CellularBase.h"    26 #define AT_NETWORK_TRIALS 5    27 #define TIMER_UNIT_LENGTH 3    28 #define TWO_BYTES_HEX 4    29 #define FOUR_BYTES_HEX 8    30 #define ONE_BYTE_BINARY 8    46     enum RegistrationMode {
    47         RegistrationModeDisable = 0,
    48         RegistrationModeEnable, 
    64     virtual void attach(
Callback<
void(nsapi_event_t, intptr_t)> status_cb);
    66     virtual nsapi_error_t set_access_technology(RadioAccessTechnology rat);
    71                                                        CIoT_Preferred_UE_Opt preferred_opt,
    72                                                        Callback<
void(CIoT_Supported_Opt)> network_support_cb);
    75                                                           CIoT_Preferred_UE_Opt &preferred_opt);
    79     virtual nsapi_error_t get_signal_quality(
int &rssi, 
int *ber = NULL);
    89     virtual bool is_active_context(
int *number_of_active_contexts = NULL, 
int cid = -1);
   125     void urc_cciotopti();
   127     void read_reg_params_and_compare(RegistrationType type);
   131     int calculate_active_time(
const char *active_time_string, 
int active_time_length);
   133     int calculate_periodic_tau(
const char *periodic_tau_string, 
int periodic_tau_length);
   136     void call_network_cb(nsapi_connection_status_t status);
   142     RadioAccessTechnology _op_act;
   143     nsapi_connection_status_t _connect_status;
   144     CIoT_Supported_Opt _supported_network_opt;
   152 #endif // AT_CELLULAR_NETWORK_H_ virtual nsapi_error_t set_access_technology_impl(RadioAccessTechnology op_rat)
Sets access technology to be scanned. 
virtual nsapi_error_t detach()
Request detach and deregister from a network. 
virtual void attach(Callback< void(nsapi_event_t, intptr_t)> status_cb)
Register callback for status reporting. 
NWRegisteringMode
Network registering mode. 
virtual nsapi_error_t set_ciot_optimization_config(CIoT_Supported_Opt supported_opt, CIoT_Preferred_UE_Opt preferred_opt, Callback< void(CIoT_Supported_Opt)> network_support_cb)
Set CIoT optimizations. 
virtual nsapi_error_t set_registration_urc(RegistrationType type, bool on)
Activate/deactivate listening of network events for the given RegistrationType. 
virtual nsapi_error_t set_registration(const char *plmn=0)
Request registering to network. 
virtual nsapi_error_t set_attach()
Request attach to network. 
signed int nsapi_error_t
Type used to represent error codes. 
virtual bool is_active_context(int *number_of_active_contexts=NULL, int cid=-1)
Check if there is any PDP context active. 
nsapi_error_t clear()
Clear the network and contexts to a known default state. 
virtual int get_3gpp_error()
Get the last 3GPP error code. 
Network registration information. 
virtual nsapi_error_t set_packet_domain_event_reporting(bool on)
Sets the packet domain network reporting. 
virtual nsapi_error_t get_network_registering_mode(NWRegisteringMode &mode)
Get the current network registering mode. 
virtual void get_context_state_command()
Sends a command to query the active state of the PDP contexts. 
An abstract interface for connecting to a network and getting information from it. 
virtual nsapi_error_t get_registration_params(registration_params_t ®_params)
Gets the latest received registration parameters from the network: type, status, access technology...
virtual nsapi_error_t get_attach(AttachStatus &status)
Request attach status from network. 
virtual nsapi_error_t get_operator_params(int &format, operator_t &operator_params)
Get the operator parameters. 
EDRXAccessTechnology
Set discontinuous reception time on cellular device. 
Class AT_CellularNetwork. 
virtual nsapi_error_t scan_plmn(operList_t &operators, int &ops_count)
Scans for operators module can reach. 
virtual nsapi_error_t get_ciot_ue_optimization_config(CIoT_Supported_Opt &supported_opt, CIoT_Preferred_UE_Opt &preferred_opt)
Get UE CIoT optimizations. 
virtual nsapi_error_t get_ciot_network_optimization_config(CIoT_Supported_Opt &supported_network_opt)
Get Network CIoT optimizations. 
3GPP TS 27.007 - 7.3 PLMN selection +COPS 
virtual nsapi_error_t get_operator_names(operator_names_list &op_names)
Read operator names. 
Callback class based on template specialization. 
Class for sending AT commands and parsing AT responses.