Telematics SDK - Interface Specification
v1.38.37
|
Data Structures | |
struct | telux::tel::PreferredNetworkInfo |
struct | telux::tel::OperatorStatus |
class | telux::tel::INetworkSelectionManager |
Network Selection Manager class provides the interface to get and set network selection mode, preferred network list and scan available networks. More... | |
class | telux::tel::OperatorInfo |
class | telux::tel::INetworkSelectionListener |
Listener class for getting network selection mode change notification. More... | |
Network Selection Manager provides the interface to get and set network selection mode (Manual or Automatic), scan available networks and set and get preferred networks list.
struct telux::tel::PreferredNetworkInfo |
Defines the preferred network information
Data Fields | ||
---|---|---|
uint16_t | mcc |
mobile country code |
uint16_t | mnc |
mobile network code |
RatMask | ratMask |
bit mask denotes which of the radio access technologies are set |
struct telux::tel::OperatorStatus |
Defines status of network operator
Data Fields | ||
---|---|---|
InUseStatus | inUse |
In-use status of network operator |
RoamingStatus | roaming |
Roaming status of network operator |
ForbiddenStatus | forbidden |
Forbidden status of network operator |
PreferredStatus | preferred |
Preferred status of network operator |
class telux::tel::INetworkSelectionManager |
Network Selection Manager class provides the interface to get and set network selection mode, preferred network list and scan available networks.
|
virtual |
|
pure virtual |
Checks the status of network subsystem and returns the result.
|
pure virtual |
Wait for network subsystem to be ready.
|
pure virtual |
Get current network selection mode (i.e Manual or Automatic) asynchronously.
[in] | callback | Callback function to get the response of get network selection mode request. |
|
pure virtual |
Set current network selection mode and receive the response asynchronously.
[in] | selectMode | Selection mode for a network i.e. automatic or manual. If selection mode is automatic then MCC and MNC are ignored. If it is manual, client has to explicitly pass MCC and MNC as arguments. |
[in] | callback | Optional callback function to get the response of set network selection mode request. |
[in] | mcc | Mobile Country Code (Applicable only for MANUAL selection mode). |
[in] | mnc | Mobile Network Code (Applicable only for MANUAL selection mode). |
|
pure virtual |
Get 3GPP preferred network list and static 3GPP preferred network list asynchronously. Higher priority networks appear first in the list. The networks that appear in the 3GPP Preferred Networks list get higher priority than the networks in the static 3GPP preferred networks list.
[in] | callback | Callback function to get the response of get preferred networks request. |
|
pure virtual |
Set 3GPP preferred network list and receive the response asynchronously. It overrides the existing preferred network list. The preferred network list affects network selection selection when automatic registration is performed by the device. Higher priority networks should appear first in the list.
[in] | preferredNetworksInfo | List of 3GPP preferred networks. |
[in] | clearPrevious | If flag is false then new 3GPP preferred network list is appended to existing preferred network list. If flag is true then old list is flushed and new 3GPP preferred network list is added. |
[in] | callback | Callback function to get the response of set preferred network list request. |
|
pure virtual |
Perform the network scan and returns a list of available networks.
[in] | callback | Callback function to get the response of perform network scan request |
|
pure virtual |
Perform the network scan. The available networks list is returned incrementally as they become available, without waiting for the entire scan to complete through the indication API (INetworkSelectionListener::onNetworkScanResults). The scan status in indication will indicate if its a partial result or complete result.
[in] | callback | Callback function to get the response of network scan request |
|
pure virtual |
Register a listener for specific updates from network access service.
[in] | listener | Pointer of INetworkSelectionListener object that processes the notification |
|
pure virtual |
Deregister the previously added listener.
[in] | listener | Previously registered INetworkSelectionListener that needs to be removed |
class telux::tel::OperatorInfo |
Operator Info class provides operator name, MCC, MNC and network status.
Public Member Functions | |
OperatorInfo (std::string networkName, std::string mcc, std::string mnc, OperatorStatus operatorStatus) | |
OperatorInfo (std::string networkName, std::string mcc, std::string mnc, RadioTechnology rat, OperatorStatus operatorStatus) | |
std::string | getName () |
std::string | getMcc () |
std::string | getMnc () |
RadioTechnology | getRat () |
OperatorStatus | getStatus () |
telux::tel::OperatorInfo::OperatorInfo | ( | std::string | networkName, |
std::string | mcc, | ||
std::string | mnc, | ||
OperatorStatus | operatorStatus | ||
) |
telux::tel::OperatorInfo::OperatorInfo | ( | std::string | networkName, |
std::string | mcc, | ||
std::string | mnc, | ||
RadioTechnology | rat, | ||
OperatorStatus | operatorStatus | ||
) |
std::string telux::tel::OperatorInfo::getName | ( | ) |
Get Operator name or description
std::string telux::tel::OperatorInfo::getMcc | ( | ) |
Get mcc from the operator numeric.
std::string telux::tel::OperatorInfo::getMnc | ( | ) |
Get mnc from operator numeric.
RadioTechnology telux::tel::OperatorInfo::getRat | ( | ) |
Get radio access technology.
OperatorStatus telux::tel::OperatorInfo::getStatus | ( | ) |
Get status of operator.
class telux::tel::INetworkSelectionListener |
Listener class for getting network selection mode change notification.
The methods in listener can be invoked from multiple different threads. Client needs to make sure that implementation is thread-safe.
Public Member Functions | |
virtual void | onSelectionModeChanged (NetworkSelectionMode mode) |
virtual void | onNetworkScanResults (NetworkScanStatus scanStatus, std::vector< telux::tel::OperatorInfo > operatorInfos) |
virtual | ~INetworkSelectionListener () |
![]() | |
virtual void | onServiceStatusChange (ServiceStatus status) |
virtual | ~IServiceStatusListener () |
|
virtual |
Destructor of INetworkSelectionListener
|
virtual |
This function is called whenever network selection mode is changed.
[in] | mode | Network selection mode NetworkSelectionMode |
|
virtual |
This function is called in response to performNetworkScan API. This API will be invoked multiple times in case of partial network scan results. In case of network scan failure and network scan completed this API will not be invoked further.
[in] | scanStatus | Status of the network scan results NetworkScanStatus |
[in] | operatorInfos | Operators info with details of network operator name, MCC, MNC, etc. In case of partial network scan results, the operator info will have the information of the new set of operator info along with previous partial network scan results. |
enum telux::tel::RatType |
|
strong |
Defines the status of the network scan results
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |