Your Vendor RIL must define a RIL_Init function that provides a handle to the functions which will process all radio requests. libril: all vendor RIL implementations start with 'libril'.The source code for the reference RIL is found at /commands/reference-ril/.Ĭompile your Vendor RIL as a shared library using the convention libril-.so, for example, libril-acme-124.so, where: The Android radio interface is radio-agnostic and the Vendor RIL can use any protocol to communicate with the radio. Android provides a reference Vendor RIL, using the Hayes AT command set, that you can use as a quick start for telephony testing and a guide for commercial vendor RILs. The required functions are defined in the RIL header ( /include/telephony/ril.h). To implement a radio-specific RIL, create a shared library that implements a set of functions required by Android to process radio requests. The following diagram illustrates an unsolicited call in Android. There are over ten unsolicited commands grouped by the following families: Void OnUnsolicitedResponse (int unsolResponse, void *data, size_t datalen) The following snippet illustrates the interface for unsolicited commands: The following diagram illustrates a solicited call in Android. Network setting (barring, forwarding, selection…) (12).Call status and handling (dial, answer, mute…) (16).There are over sixty solicited commands grouped by the following families: Void OnRequestComplete (RIL_Token t, RIL_Error e, void *response, size_t responselen) Void OnRequest (int request_id, void *data, size_t datalen, RIL_Token t) The following snippet illustrates the interface for solicited commands: Unsolicited responses: Unsolicited responses that originate from the baseband, such as CALL_STATE_CHANGED and NEW_SMS.Solicited commands: Solicited commands originated by RIL lib, such as DIAL and HANGUP.There are two forms of communication that the RIL handles: ro.ril.enable.3g.prefix=1: adds the 3G prefix to the operator name.ro.ril.gprsclass: inidcates GPRS class of target network.ro.ril.hsxpa: inidcates hsxpa support of target network.The following RIL_related system properties are available to the RIL library: Values are read from EF_ECC on the SIM and possibly supplmented by tables based on operator, network, or manufacturing code. ro.ril.ecclist: list of valid Emergency Call Codes, for example, 911.The following RIL-related system properties are set by the RIL library: See the RIL Daemon source code at //device/commands/rild/rild.c for details. ![]()
0 Comments
Leave a Reply. |