• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Mar-2025-

figures/H17-Mar-2025-

interfaces/innerkits/H17-Mar-2025-4,3861,522

services/H17-Mar-2025-18,90216,630

test/H17-Mar-2025-14,05610,999

utils/H17-Mar-2025-170112

LICENSEH A D17-Mar-20259.9 KiB177150

OAT.xmlH A D17-Mar-20254 KiB6510

README.mdH A D17-Mar-20252.7 KiB5639

README_zh.mdH A D17-Mar-20252.3 KiB5438

bundle.jsonH A D17-Mar-20252.7 KiB8382

README.md

1# RIL Adapter<a name="EN-US_TOPIC_0000001106353742"></a>
2
3-   [Introduction](#section117mcpsimp)
4-   [Directory Structure](#section122mcpsimp)
5-   [Constraints](#section126mcpsimp)
6-   [Usage Guidelines](#section264mcpsimp)
7-   [Repositories Involved](#section279mcpsimp)
8
9## Introduction<a name="section117mcpsimp"></a>
10
11The RIL Adapter module provides functions such as vendor library loading, service interface implementation, and event scheduling and management. The module shields the differences of modems supplied by different vendors to provide a unified interface for the telephony service layer. It communicates with the telephony service layer by registering a Hardware Driver Foundation \(HDF\) service.
12
13**Figure  1**  Architecture of the RIL Adapter module<a name="fig1675210296494"></a>
14![](figures/en-us_architecture-of-the-ril-adapter-module.png)
15
16## Directory Structure<a name="section122mcpsimp"></a>
17
18```shell
19base/telephony/ril_adapter
20├── figures                             # Resource file of readme
21├── frameworks
22│   ├── BUILD.gn
23│   └── src                             # Serialized file
24├── interfaces                          # Provide internal interfaces for each business
25│   └── innerkits
26├── services                            # Service
27│   ├── hril                            # Implementation of service module APIs of the hril layer
28│   ├── hril_hdf                        # HDF service that provides initial vendor lib APIs
29│   └── vendor                          # Vendor file
30│── test                                # Test code
31│   ├── BUILD.gn
32│   └── unittest                        # Unit test code
33└── utils                               # Utilities
34```
35
36## Constraints<a name="section126mcpsimp"></a>
37
38-   In terms of software, the RIL Adapter needs to work with the HDF (drivers\_interface and drivers\_peripheral) and an interworking interface needs to be implemented by the modem vendor lib.
39-   In terms of hardware, the device must be equipped with a modem capable of independent cellular communication.
40
41## Usage Guidelines<a name="section264mcpsimp"></a>
42
43The RIL Adapter does not provide external APIs and can only be called by through drivers\_peripheral.
44
45## Repositories Involved<a name="section279mcpsimp"></a>
46
47[Telephony](https://gitee.com/openharmony/docs/blob/master/en/readme/telephony.md)
48
49**telephony_ril_adapter**
50
51[telephony_core_service](https://gitee.com/openharmony/telephony_core_service/blob/master/README.md)
52
53[drivers_interface](https://gitee.com/openharmony/drivers_interface)
54
55[drivers_peripheral](https://gitee.com/openharmony/drivers_peripheral)
56

README_zh.md

1# RIL Adapter<a name="ZH-CN_TOPIC_0000001106353742"></a>
2
3-   [简介](#section117mcpsimp)
4-   [目录](#section122mcpsimp)
5-   [约束](#section126mcpsimp)
6-   [使用说明](#section264mcpsimp)
7-   [相关仓](#section279mcpsimp)
8
9## 简介<a name="section117mcpsimp"></a>
10
11RIL Adapter模块主要包括厂商库加载,业务接口实现以及事件调度管理。主要用于屏蔽不同modem厂商硬件差异,为上层提供统一的接口,通过注册HDF服务与上层接口通讯。
12
13**图 1**  RIL Adapter模块架构图<a name="fig1675210296494"></a>
14![](figures/zh-cn_architecture-of-the-ril-adapter-module.png "RIL-Adapter模块架构图")
15
16## 目录<a name="section122mcpsimp"></a>
17```sh
18base/telephony/ril_adapter
19├── figures                             # readme资源文件
20├── frameworks
21│   ├── BUILD.gn
22│   └── src                             # 序列化文件
23├── interfaces                          # 对应提供上层各业务内部接口
24│   └── innerkits
25├── services                            # 服务
26│   ├── hril                            # hril层的各个业务模块接口实现
27│   ├── hril_hdf                        # 提供初始化厂商库接口
28│   └── vendor                          # 厂商库文件
29│── test                                # 测试代码
30│   ├── BUILD.gn
31│   └── unittest                        # 单元测试代码
32└── utils                               # 通用工具类
33```
34
35## 约束<a name="section126mcpsimp"></a>
36
37-   软件上,需要与以下服务配合使用:HDF(drivers\_interface,driver\_peripheral), 需要Modem厂商库实现接口。
38-   硬件上,需要搭载的设备支持以下硬件:可以进行独立蜂窝通信的Modem。
39
40## 使用说明<a name="section264mcpsimp"></a>
41
42ril\_adapter不对外暴露接口,可通过driver\_peripheral调用。
43
44## 相关仓<a name="section279mcpsimp"></a>
45
46[电话服务子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E7%94%B5%E8%AF%9D%E6%9C%8D%E5%8A%A1%E5%AD%90%E7%B3%BB%E7%BB%9F.md)
47
48**telephony_ril_adapter**
49
50[drivers_interface](https://gitee.com/openharmony/drivers_interface)
51
52[drivers_peripheral](https://gitee.com/openharmony/drivers_peripheral)
53
54