Android Phone Chip Reference-ril Layer Technology summary One

Source: Internet
Author: User

Collect and organize: 2014-12-20 Little Guo

Recently in a chip to do GPRS business support, all understand the knowledge to do an induction, collation, welcome friends to correct, also facilitate the dissemination of knowledge.

To understand the Android phone in the implementation of SMS, telephone, data and other business, the specific code implementation of the business, must first understand the entire business process;

The current mainstream smartphone hardware architecture has two processors, a known as Application Processor (AP), mainly used to run the operating system, execute the application; a baseband Processor (BP), Specifically responsible for the functions related to RF wireless communication in mobile phones. Communication between AP and BP chip is based on serial port, and communication protocol is widely used at instruction. In fact, the business is to send business requests through the AP to BP execution, or BP actively report information to the AP;

The data between the AP and BP is divided into 2 types: One is solicited Response (the requested reply), the application scenario is that the AP actively sends an at instruction to BP, requests the BP to handle the corresponding processing and responds to an at command at the end of processing to notify the AP to execute the result. The corresponding file in the source code is ril_commands.h.

One is the unsolicited Response (unsolicited reply), the application scenario is that BP actively sends an AT command to the AP to notify the AP of the current system of telephony-related events, such as network signal changes, call incoming and so on. The corresponding file in the source code is RIL_UNSOL_COMMANDS.H

The whole process mechanism is called RIL mechanism

There is a very detailed description in this article, you can refer to

http://blog.csdn.net/jscese/article/details/40046493

The above article may make us a little moe!! Embarrassed, some of the details are not very easy to understand, but we have an overall understanding of the operation of the whole RIL mechanism, we recommend that you read a more popular article

http://www.open-open.com/doc/view/6fc8a8649072426390bba79acf072186

On the basis of the overall understanding of the RIL mechanism, and then see this article said very simple, easy to understand, the novice mobile phone chip transplant to a lot of code at a loss of confusion, the article tells us the breach: Ril transplant needs to consider the problem has 2: One is the device used by different ports, The second is the different treatment of onrequest. (Got it?? In fact, basically just modify these 2, and now the AT command Basic general, not too special function instructions, the code basically do not move

This article has a more obvious explanation on the interaction between BP and AP's event information, and the article summarizes the onunsolicited and onrequest functions we need to modify.

Also recommended another article, just describe a little confusing, can be used as a reading reference article

Http://wenku.baidu.com/link?url=g5E2A7N4eI-2DTS8VE15ed-1RwxNp8NbjI-OOe73U_ Xkbvtdbau4dh2xzcx4efpn-zuczseu3gmjsfiz3dy-d1js579x65b8u_k34w3gvmc

To understand the principle mechanism of the RIL layer link, you can view the code, the comments more detailed

Http://www.cnblogs.com/android-html5/archive/2011/12/09/2533964.html

Call the Java code layer to the bottom of a simple description

http://blog.csdn.net/maxleng/article/details/5593780

For a description of the Add-on feature of mobile chip support, please refer to

Http://www.linuxidc.com/Linux/2011-12/48954.htm

It describes the features that the vendor supports, the processing macros required by the ONrequest function

A list of strings corresponding to the macro can be viewed

Http://www.cnblogs.com/android-html5/archive/2011/12/09/2533963.html

This document describes the command macros that are supported by most phones

For a description of the BP layer, please refer to

Http://developer.51cto.com/art/201002/183488.htm

Just a rough description of the BP thread to the upper layer of the event processing, and the actual control of the modem

Let's talk about how to set up a data channel for mobile phone chips (Gprs,evdo,edge ... )

First directly find the request data Link macro

Add in ONrequest

Request data link, start PPPD dialing
Case Ril_request_setup_data_call:

Requestsetupdatacall (data, datalen, T); Attach PDP at dialing

Then configure the PPPD dial script

Before configuring, you need to have an understanding of the network access point, PPPD dialing basic concept

Recommended Reading

http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=27024249&id=3338741

This article describes in detail the scripting environment with the PPPD dial configuration.

If you can't set up a data channel, you can refer to someone else's experience

http://blog.csdn.net/yinlijun2004/article/details/7460418

Personal feeling above article description general, can do reference.

(Throughout the configuration process, you need to be patient, each configuration, the start of each mechanism, the establishment of debugging environment is indispensable)

Different network access points are not the same,

Http://www.linuxidc.com/Linux/2011-03/33430p2.htm

This article has an Access point script template, in fact you can manually pppd debugging

To create a holistic description of the data channel, you can refer to

http://daimajishu.iteye.com/blog/1556735

It's so simple.

Http://wenku.baidu.com/link?url=dkinTwHJoS4GjGT5vIEisNoHEIrGoOk-Ta7gyQYjVl4FYt9AR9MviWUPGGG0B2N47EVtPBE6m5q_ lxw-eg0nyk9n6m-suy9sa7gjewg30pc

This article is a chip vendor support documentation detailing the entire configuration and commissioning process of the chip supported by the vendor

For a detailed description of the PPPD code process, refer to

Http://blog.chinaunix.net/uid-20678786-id-111505.html

Android Phone Chip Reference-ril Layer Technology summary One

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.