12

谁能告诉我,有没有可以检测当前运营商名称的AT命令?

我用过AT+COPS?它返回给我操作员的数字代码:0,2,40410

然后我使用命令 AT+WOPN = 0,40410 返回运算符的字母数字值

但这只给出了 Airtel 运营商的名称,而对于其他运营商,它给出了一个错误。

请帮我。

4

3 回答 3

12

您应该按照所指出的那样AT+COPS=<mode>,[<format>,<oper>[,<AcT>]]使用命令,但值必须是不要覆盖您现有的值:<mode>3<mode>

<mode>: integer type
3   set only <format> (for read command +COPS?), do not attempt
    registration/deregistration (<oper> and <AcT> fields are ignored);
    this value is not applicable in read command response.

并且<format>需要为 0 或 1

<format>: integer type
0   long format alphanumeric <oper>
1   short format alphanumeric <oper>
2   numeric <oper>

所以你的命令是

AT+COPS=3,0
AT+COPS?
于 2014-08-05T08:57:31.423 回答
3

您需要先设置格式。

  • AT+COPS=1,2

    "2" 表示数字格式,这将返回 eg40410

  • AT+COPS=1,0

    “0”表示长字母数字格式,这应该返回操作员名称字符串。

第一个参数是<mode>- 选择您需要的值。有关此 AT 命令的完整文档,请参阅http://www.3gpp.org/ftp/Specs/html-info/27007.htm上的 3GPP TS 27.007 文档

当您设置了模式和格式后,然后发送 AT+COPS?,您应该以您想要的格式获取操作员名称。

于 2012-11-30T10:30:34.350 回答
1

你试过吗- AT+QSPN

适用于我的 Quectel 调制解调器。

于 2012-11-30T06:54:29.143 回答