NB模块CME错误码说明
在与NB通信过程中,经常会收到NB模块返回的错误提示,我们需要针对错误提示,来确定如何进行下一步的操作。本来总结错误码对应的意思。
1 设置错误码提示
发送指令:AT+CMEE,来开启和关闭错误提示功能,模块默认状态已开启错误码提示功能。该指令设置当模块断掉后会失效,但通过AT+NRB重启后仍然有效。
当关闭错误码提示功能后,NB模块遇到错误时,只返回字符串:ERROR。若开启错误码提示功能,则会返回带有code的错误提示,例如:+CME ERROR:4
1.1 查询当前设置
发送指令:AT+CMEE?
模块返回:+CMEE:1 或 +CMEE:0
参数解释:
| 参数 | 参数说明 |
|---|---|
| 0 | 关闭+CME ERROR:<err>错误码提示,所有错误均返回ERROR字符串 |
| 1 | 开启+CME ERROR:<err>错误码提示,可通过err来识别是何种错误。 |
1.2 开启错误码提示
发送指令:AT+CMEE=1
模块返回:OK
1.3 关闭错误码提示
发送指令:AT+CMEE=0
模块返回:OK
2 错误码详情
本节详细描述移远NB模块的错误码详情,这些错误码与3GPP组织是兼容的。大家也可以参考《3GPP TS 27.007 V13.5.0》9.2节来查看更为详细的说明。
| <err> | 英文描述 | 中文描述 |
|---|---|---|
| 3 | Operation not allowed | 不允许的操作 |
| 4 | Operation not supported | 不支持的操作 |
| 5 | Need to enter PIN | 需要输入PIN码 |
| 23 | Memory failure | 内存故障 |
| 30 | No network service | 没有网络服务 |
| 50 | Incorrect parameters | 不正确的参数 |
| 51 | Command implemented but currently disabled | 命令已接收,但目前禁用 |
| 52 | Command aborted by user | 用户已终止命令 |
| 159 | Uplink busy/flow control | 上传正忙/流控制 |
| <err> | 英文描述 | 中文描述 |
|---|---|---|
| 300 | ME failure | |
| 301 | SMS service of ME reserved | |
| 302 | Operation not allowed | |
| 303 | Operation not supported | |
| 304 | Invalid PDU mode parameter | |
| 305 | Invalid text mode parameter | |
| 310 | USIM not inserted | |
| 311 | USIM PIN required | |
| 312 | PH-USIM PIN required | |
| 313 | USIM failure | |
| 314 | USIM busy | |
| 315 | USIM wrong | |
| 316 | USIM PUK required | |
| 317 | USIM PIN2 required | |
| 318 | USIM PUK2 required | |
| 320 | Memory failure | |
| 321 | Invalid memory index | |
| 322 | Memory full | |
| 330 | SMSC address unknown | |
| 331 | No network service | |
| 332 | Network timeout | |
| 340 | No +CNMA acknowledgement expected | |
| 500 | Unknown error |
| <err> | 英文描述 | 中文描述 |
|---|---|---|
| 512 | Required parameter not configured | 必要参数未配置 |
| 513 | TUP not registered | TUP未注册,这是一个常见错误
CoAP协议与平台通信时,需要先以该模块的IMEI码注册设备,然后通信。 否则会出现该513错误。若确认设备以注册,则建议重启后重试。 |
| 514 | AT internal error | AT指令内部错误 |
| 515 | CID is active | CID已激活 |
| 516 | Incorrect state for command | 命令状态不正确 |
| 517 | CID is invalid | CID无效 |
| 518 | CID is not active | CID未激活 |
| 520 | Deactive the last active CID | |
| 521 | CID is not defined | CID未定义 |
| 522 | UART parity error | UART串口奇偶校验错误 |
| 523 | UART frame error | UART串口帧错误 |
| 524 | MT not powered on | MT未上电 |
| 525 | AT command aborted: in processing | AT命令终止:正忙 |
| 526 | AT command aborted: error | AT命令终止:错误 |
| 527 | Command interrupted | 命令被中断 |