Snapdragon® Telematics Application Framework (TelAF) Interface Specification
|
The Radio Service APIs contain phone and network functions and is applied to configure and obtain wireless cellular network information. By default, the radio service is powered on and available by the system.
The functions of this API are provided by the tafRadioSvc service.
The following example illustrates how to bind to the Radio service.
bindings: { clientExe.clientComponent.taf_radio -> tafRadioSvc.taf_radio }
Users can power on or power off the radio, but by default it is powered on.
The following example illustrates powering on the radio.
Users can register with the network automatically or manually with specific MCC and MNC.
The following example illustrates network registration.
Users can configure the preferences of operators and get the configuration details with a list.
The following example illustrates preferred operator list management.
Users can get RAT in use, and configure RAT preferences.
The following example illustrates RAT change indication.
Users can get the packet-switched (PS) state.
The following example illustrates the PS change indication.
Users can measure signal and get metrics for different RATs.
The following example illustrates getting LTE signal metrics.
The following example illustrates setting the signal strength reporting criteria.
The signal strength notifications are sent based on the configurations of delta or threshold on the RAT(s) list. Additionally, the hysteresis dB can be applied on top of the threshold list. Furthermore, time hysteresis (hysteresis ms) can be applied either on top of the delta or on the threshold list, or even on top of both the threshold list and the hysteresis dB.
For NR5G and LTE only RSRP change will be notified to clients. For other RATs only RSSI change will be notified to clients.
The default values for delta is as follows. Measurement type : value RSSI_DELTA : 50 (in dBm) RSRP_DELTA : 60 (in dBm)
If the hysteresis(dB or ms) value is set to 0, the signal strength notification criteria just considers the threshold or delta. Once configured, the hysteresis value for a signal strength type is retained, until explicitly reconfigured to 0 again or device reboot. This configuration is a global setting. The signal strength setting does not persist through device reboot and needs to be configured again. Default signal strength configuration is set after a device reboot.
Users can get serving cellular network information.
Users can use the following APIs to get the current network and discover nearby networks by scanning.
When users fail to register to the current network, they may scan and find the nearby networks, and register to an available network with MCC and MNC manually. The following example illustrates network scanning.
Users can get the number of SIMs and RAT capabilities in given slot.
The following example illustrates the API usage.