RIL 不可变启动配置
More...
#include <stdbool.h>
#include <stdint.h>
#include "ril_backend.h"
Go to the source code of this file.
|
|
#define | RIL_CONFIG_MAX_APNS 8U |
| | 最大 APN 配置数量
|
|
#define | RIL_CONFIG_MAX_PROBES 8U |
| | 最大网络探测目标数量
|
|
#define | RIL_CONFIG_APN_NAME_MAX RIL_BACKEND_APN_MAX |
| | APN 名称容量,包含结尾 NUL.
|
|
#define | RIL_CONFIG_APN_TYPE_MAX RIL_BACKEND_APN_TYPE_MAX |
| | APN 类型容量,包含结尾 NUL.
|
|
#define | RIL_CONFIG_USERNAME_MAX RIL_BACKEND_USERNAME_MAX |
| | APN 用户名容量,包含结尾 NUL.
|
|
#define | RIL_CONFIG_PASSWORD_MAX RIL_BACKEND_PASSWORD_MAX |
| | APN 密码容量,包含结尾 NUL.
|
|
#define | RIL_CONFIG_PROBE_HOST_MAX 256U |
| | 网络探测目标地址容量,包含结尾 NUL
|
|
#define | RIL_CONFIG_RESET_LIMIT_MAX 100U |
| | 模组复位次数配置上限
|
|
#define | RIL_CONFIG_DIAL_TIMEOUT_DEFAULT_MS 30000U |
| | 默认异步拨号超时,单位毫秒
|
|
#define | RIL_CONFIG_HEALTH_INTERVAL_DEFAULT_MS 10000U |
| | 默认网络健康检查周期,单位毫秒
|
|
#define | RIL_CONFIG_HEALTH_TIMEOUT_DEFAULT_MS 3000U |
| | 默认单目标探测超时,单位毫秒
|
|
#define | RIL_CONFIG_HEALTH_FAIL_DEFAULT 3U |
| | 默认连续探测失败阈值
|
|
#define | RIL_CONFIG_HEALTH_COOLDOWN_DEFAULT_SEC 30U |
| | 默认恢复冷却时间,单位秒
|
|
#define | RIL_CONFIG_HEALTH_RESET_DEFAULT 3U |
| | 默认模组复位次数上限
|
RIL 不可变启动配置
- Version
- 1.0.0
- Date
- 2026-07-17
- Copyright
- Copyright © 2026 Shenzhen One IOT World Co., Ltd. All rights reserved.
◆ ril_config_probe_mode_t
网络探测方式
| Enumerator |
|---|
| RIL_CONFIG_PROBE_NONE | 不执行网络探测
|
| RIL_CONFIG_PROBE_TCP | TCP 连接探测
|
| RIL_CONFIG_PROBE_ICMP | ICMP 回显探测
|
◆ ril_config_load()
读取并校验 RIL 启动配置。
仅在全部配置有效时更新 config。
- Parameters
-
- Returns
- TBOX_OK 成功,其他值失败。