# URC模式配置文件
version: "1.0"
# URC模式定义
patterns:
# 通用信号强度
- id: csq
pattern: "^\\+CSQ:\\s*\\d+,\\d+"
description: "信号强度报告"
examples: ["+CSQ: 23,99", "+CSQ: 15,0"]
module: "通用"
# 短信到达通知
- id: cmt
pattern: "^\\+CMT:\\s*\"[^\"]*\",\"[^\"]*\""
description: "短信到达通知"
examples: ['+CMT: "+8613800138000","","23/11/15,10:30:00+32"']
module: "短信"
# 网络注册状态
- id: creg
pattern: "^\\+CREG:\\s*\\d+(,\"[0-9A-Fa-f]+\",\"[0-9A-Fa-f]+\")?"
description: "网络注册状态"
examples: ["+CREG: 2", "+CREG: 1,\"0010\",\"0001\""]
module: "网络"
# 来电振铃
- id: ring
pattern: "^RING$"
description: "来电振铃"
examples: ["RING"]
module: "通话"
# 错误报告
- id: error
pattern: "^\\+CME\\s+ERROR:\\s*\\d+"
description: "错误报告"
examples: ["+CME ERROR: 3", "+CME ERROR: 10"]
module: "通用"
# 自定义URC示例
- id: custom_1
pattern: "^\\+MYURC:\\s*\\d+"
description: "自定义URC示例"
examples: ["+MYURC: 123"]
module: "自定义"
# URC处理选项
options:
enableFilter: true # 是否启用URC过滤
reportFiltered: true # 是否上报被过滤的URC
maxLineLength: 1024 # 最大行长度
encoding: "utf8" # 编码格式
caseSensitive: false # 是否区分大小写