【问题标题】:ATcommand at+cops? gives undefined returnATcommand at+cops?给出未定义的回报
【发布时间】:2015-10-28 05:36:30
【问题描述】:

我正在使用 EGS5 Cinterion 无线模块。 我将模块放置在一个只有少数信号强度低(-100dBm - -105dBm)的操作员的区域。当我使用 AT+COPS=? 时,我看到有 4 个运算符可用。

AT+COPS=? +COPS: (1,"E-Plus",,"26203"),(1,"Telekom.de",,"26201"), (1,"Vodafone.de",,"26202"),(1,"o2 - de",,"26207"),,(0-4),(0,2)

AT+CREG? +CREG: 0,0AT+COPS? +COPS: 1

使用AT+COPS=1,2,......returns OK 更改为上述运算符之一,但是当我检查AT+COPS?时,我再次得到+COPS: 1

更改为AT+COPS=0returns ERROR

我不明白为什么我无法连接到网络,即使它可用。我的 SIM 卡没有被锁定或其他任何东西,当我将无线模块放在接收效果更好的区域时,一切正常

编辑: at^smondreturns ^SMOND:262,07,C762,C389,76,687,109,,,0,,,2,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,,,,,,,0,2,2,99 so 我连接到 PLMN 26207,对吗?但是AT+COPS?returns 还是+COPS: 1

【问题讨论】:

  • 我不知道它属于哪里,但它不在这里。
  • 好的,谁能告诉我去哪里问?
  • 这是提出此类问题的正确地方。

标签: at-command


【解决方案1】:

我认为您对 AT+COPS? 返回的内容感到困惑。第一个数字与手机连接的网络不对应,它是<mode>的值。

该命令在27.007中定义,其语法为

Table 36: +COPS parameter command syntax
Command                   Possible response(s)

+COPS=[<mode>[,<format>   +CME ERROR: <err>
[,<oper>[,<AcT>]]]]

+COPS?                    +COPS: <mode>[,<format>,<oper>[,<AcT>]]
                          +CME ERROR: <err>

+COPS=?                   +COPS: [list of supported (<stat>,long alphanumeric
                          <oper>,short alphanumeric <oper>,numeric <oper>
                          [,<AcT>])s][,,(list of supported <mode>s),(list of
                          supported <format>s)]
                          +CME ERROR: <err>

&lt;mode&gt; 被定义为

<mode>:
0 automatic (<oper> field is ignored)
1 manual (<oper> field shall be present, and <AcT> optionally)
2 deregister from network
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
4 manual/automatic (<oper> field shall be present); if manual selection fails, automatic mode (<mode>=0) is
entered

所以回复+COPS: 1 只告诉您手机已连接到 特定的网络运营商。 AT+COPS? 命令可以给出哪个运营商的详细信息,但这些参数是可选的,因此电话不需要。

为什么模式值 0 失败我不能说,但可能是模块仅在某些条件下支持自动,而不是总是支持(比如某些 AcT 值)。关于切换运营商,请注意,这取决于与您的家庭网络运营商和每个访客网络的漫游协议。因此,仅仅因为 AT+COPS=? 返回一个包含 N 个运算符的列表,并不意味着您可以切换到其中的任何一个。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    • 1970-01-01
    • 2021-06-29
    • 1970-01-01
    • 2016-05-24
    • 2023-03-15
    相关资源
    最近更新 更多