我正在对我的 Arduino Nano 进行编程,以便它可以通过 SIM900 模块发送数据。
为了设置模块,我执行以下操作:
ATC OK: AT
OK
ATC OK: AT+IPR=9600
OK
ATC OK: AT+CMEE=2
OK
ATC: AT+COPS=? //this takes a lot of time
ATC OK: +COPS: (1,"E-Plus","E-Plus","26203"),(1,"Vodafone.de","no name","26202"),(1,"T-Mobile D","TMO D","26201"),(2,"o2 - de","o2 - de","26207"),,(0,1,4),(0,1,2) OK
ATC OK: AT+CPIN?
+CPIN: SIM PIN OK
ATC OK: AT+CPIN="****" //censored SIM-Number
OK
ATC OK: AT+CPIN?
+CPIN: READY OK +PACSP: 1 +CREG: 2
ATC ERROR: +CREG: 1 ������ RDY +CREG: 2 +CREG: 0 +CFUN: 1
ATC OK: AT+CREG?
+CREG: 1,0 OK
Setup finished
所以我等到我的模块获得网络,然后设置 PIN 码,这样我的 SimCard 才会解锁。
现在的问题是,我检查注册状态AT+CREG?
总是+CREG: 1,0
哪个意思。这的含义是(来自文档):
+CREG y,x
y = 1: Enable network registration unsolicited result code
x = 0: Not registered, MT is not currently searching a new
操作员注册
为什么不搜索网络?
我已经发现,PIN 码有些丢失了......所以几秒钟后AT+CPIN?
返回SIM PIN
,这意味着需要再次输入 PIN 码。怎么会这样?
我已经尝试完全解锁我的 SIM 卡。但这没有用。我认为SIM卡无法解锁。
我还尝试了以下方法:
ATC OK: AT+COPS?
+COPS: 0 OK
ATC OK: AT+CREG?
+CREG: 1,0 OK
为了选择运算符,我已经尝试了以下命令
AT+COPS=1,"o2 - de",4,"o2 - de" // manual-/auto-select
AT+COPS=1,"o2 - de",0,"o2 - de" // auto-select with operator (optional)
AT+COPS=1,,0 // auto-select without operator
你有什么想法?