我有一个Quectel EC25调制解调器,但我没有插入SIM卡。当我想使用以下命令设置不同的技术(2G、3G、4G)或不同的运营商(MNC)时,"servingcell“仍然是以前的那个。
AT+QENG="servingcell"
+QENG: "servingcell","LIMSRV","WCDMA",432,35,5962,9C58AFF,2993,453,1,-57,-11,-,-,-,-,-
OK
AT+COPS=1,2,"43235",0
OK
AT+QENG="servingcell"
+QENG: "servingcell","LIMSRV","WCDMA",432,35,5962,9C58AFF,2993,453,1,-57,-5,-,-,-,-,-
OK
AT+COPS=1,2,"43211",2
OK
AT+QENG="servingcell"
+QENG: "servingcell","LIMSRV","WCDMA",432,35,5962,9C58AFF,2993,453,1,-60,-6,-,-,-,-,-
OK如何在调制解调器上应用上述锁定?是否存在存储当前服务小区信息的存储器或类似概念,并且在锁定MNC或技术之前/之后必须重置或清除?是否有一个补充命令来满足锁定条件?
发布于 2019-12-19 18:42:53
我没有可以自己试用的EC25,但我将根据我的标准AT命令知识提供一个答案。
抽象地说,我建议你只使用 +COPS 。
事实上,在Quectel EC25 AT commands guide中,缺少+QENG命令描述。谷歌一下,我发现它是一个用于启用引擎模式的命令,而且它的语法似乎有所不同。
策略:
通过发出AT+COPS=?命令,
其响应的格式为
+COPS: [list of supported (<stat> ,<oper (in <format>=0)>,,<oper (in <format>=2)>,< AcT>)s][,,(list of supported <mode>s),(list of supported<format>s)]在该列表中,您将看到设备当前看到的列表。
请注意,对于每个运算符,stat可以具有以下值:
0 Unknown
1 Operator available
2 Current operator
3 Operator forbidden这在以后会很有用。
AT+COPS=1,2,"43211",2根据上面链接的指南中的命令说明,这意味着“使用UTRAN技术,以数字格式强制操作员手动选择"43211”。“
请注意
即使期望的网络当前是unavailable
OK之后需要时间,也可以返回OK。因此,在查询当前状态之前,请确保等待足够的时间。同时,您也可以通过发出AT+CREG?来查询注册状态
+COPS set命令执行后等待足够长的时间后,查询新状态。您可以使用- Issue read command `AT+COPS?`, that will provide the information about the current operator
- Issue test command again, `AT+COPS=?`, in which the _stat_ parameter for current operator is 2. If it is true for the operator we just forced, everything is ok.
https://stackoverflow.com/questions/59329763
复制相似问题