Sei sulla pagina 1di 2

http://telecom4u.in/home/androidradio-interface-layerril/ http://wenku.baidu.com/view/d95f4e09bb68a98271fefaa2.html?from=related http://i-miss-erin.blogspot.com/2009/04/android-trace-radio-interface-layer-ril.html http://patchwork.ozlabs.org/patch/82522/ http://mobilesociety.typepad.com/mobile_life/2011/03/chipset-digging-with-android.html http://wenku.baidu.com/view/be60c6d5c1c708a1284a440d.htmlfrom=rec&pos=0&weight=8&lastweig ht=3&count=4 http://www.slideshare.

net/leafjohn/ril-and-android-telephony Telephony related application in android like Dialer App,contact,SMS,voice mail uses Telephony framework to get phone ,SIM, network information ,making PDP connection ,making call ,sending SMS,receiving voice mail indication etc. When phone boot up ,phone process is started as part of system process and telephony frameworks get initialized and Phone service is started. Application like call and sms use phone service. The telephony framework provides APIs for application to access network and phone related information,make call ,send SMS, MMS. Finally all the these telephony related requests and processing goes to protocol stack,modem. The modem responds back which is finally received by application through framework. The question comes now is how telephony framework of Android platform communicate with modem. Android has Radio Interface which sits between Android telephony framework and modem(protocol stack). Its the RIL which takes all the incoming request and processed data from framework and give it to modem. RIL also forwards the response and some network related incoming events from modem and give back to Telephony framework RIL consists of two parts 1)RIL daemon 2)vendor RIL Android Telephony framework has one interface file Ril.java which keeps track of each incoming/outgoing request that has been sent/receive to RIL. It basically forms socket connection wih RIL daemon. RIL daemon links framework to vendor RIL. Each mobile vendor will have their own implementation of vendor RIL and available in .so(shared library).The design and implementation of vendor RIL depends upon the modem used. Initialization : When power on,phone process starts and android telephony framework is initialized,Framework makes socket connection to RIL daemon ,the RIL daemon finds the path of vendor RIL library from system properties and loads vendor RIL in form of.so library. The vendor RIL is first initialized by calling its RIL_INIT method. The RIL daemon part of RIL calls RIL_REGISTER to provide reference of each vendor RIL functions to the telephony framework. COMMANDS There are two kind of command RIL processes 1)Solicited commands:The command or request that comes from Android framework like setting up pdp connection, dial-up ,sending sms,geting imsi value,read and write contact/sms from SIM.The ril daemon takes all the solicited request from Telephony framework and dispatches the call to ril functions defined in vendor ril.The vendor ril interacts with modem protocol stack through

IPC(inter rocess communication)/AT commands. The modem sends response of each solicited request back to RIL vendor through IPC.The ril vendor forwards the response to telephony framework through RIL dameon.If there is any network related solicited commands then the modem forms data link layer packet and do physical layer functioning ans send it to network.If anyone knows how modem works ,please share through comments in brief apprecialted 2)Unsolicited command : This kind of commands/events like receiving sms ,network state changed which can come to RIL from radio hardware at any time.RIL dispatches this event and send back to android framework The radio-specific Vendor RIL processes all communication with radio hardware and dispatches calls to the RIL Daemon (rild) through unsolicited commands.The radio(protocol stack) gives unsolicited command to vendor rill through IPC.

Potrebbero piacerti anche