- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ril的基本知识(Basic knowledge of RIL)
ril的基本知识(Basic knowledge of RIL)
This article assumes that the reader has already understood the basics of RIL
From the top layer, add the upper level function in the frameworks/base/telephony/java/com/android/internal/telephony/Phone.java that sends the AT command.
Phone is an interface, therefore, add after the realization of this method in the implementation of the Phone interface inside the Java class, Phone class GSMPhone.java in frameworks/base/telephony/java/com/android/internal/telephony/gsm/GSMPhone.java
Here, call the method inside CommandInterface, so we have to add the method we want to add in CommandInterface
Similarly, CommandInterface is also an interface, and there are 2 classes to implement this interface:
1. frameworks/base/telephony/java/com/android/internal/telephony/gsm/RIL.java
2. frameworks/base/telephony/java/com/android/internal/telephony/test/SimulatedCommands.java
Second of them are tested in the simulator, and we just add the method inside, and then call a resultSuccess or umimplement.
The first is the class that really reaches the GSM driver.
So we have to implement the communication between the upper and lower layers in RIL.java.
In the RIL.java method, you only need to define a that you need to send the AT command, MARK (which will be mentioned below), then assign the Parcel member MP within the RilRequest class, and then send it out.
The value assigned to MP is the value we need to send to the lower level. For example, to pass an array down, we usually write the length first, and then write the members in turn.
===============================================================================================
The next step is the addition of the underlying layer.
1. Hardware/ril/include/telephony/ril.h
In this file, add a macro that identifies the AT command you are dealing with, that is, the MARK mentioned above, and be careful not to conflict with other macros.
Note: the MARK here must be defined at the back, or it will cause unnecessar
您可能关注的文档
- jsp input限制输入(JSP input restrict input).doc
- js语句及语法(JS statements and syntax).doc
- juniper基本配置入门(Introduction to basic configuration of juniper).doc
- js语法(JS syntax).doc
- jtgkuy(jtgkuy).doc
- kappa的时尚cio(Kappa's fashion CIO).doc
- kevin学习英语路(Kevin study English Road).doc
- kidney stone(肾结石).doc
- koutouchan(koutouchan).doc
- la salle de bain2(bain2 room).doc
- riyu代词(瑞宇代词).doc
- rj45 水晶头交叉线、直连线与反转线(RJ45 crystal head cross line, straight line and reverse line).doc
- rjava操作说明及注意事项(Rjava operating instructions and precautions).doc
- robots.txt语法(机器人。txt语法).doc
- rna 干扰技术(RNA干扰技术).doc
- rockbox声音设置常识(Rockbox sound set common sense).doc
- rogm指令(rogm指令).doc
- ros 完美限制速度(ROS perfect speed limit).doc
- ros最正确的限速--------小包优先+带宽均分+简单队列限制上传速度(ROS the correct speed, packet priority + + simple queue sharing bandwidth limit upload speed).doc
- ros防火墙端口(ROS firewall port).doc
文档评论(0)