The first issue occurs when running at+cops=2 directly (close in time) after +KSUP URC:
5752 - +KSUP: 0
5819 - AT
5819 -
5819 - OK
5819 - AT+COPS=2
125808 -
125808 - ERROR
125808 -
125808 - +CEREG: 2
125841 -
125841 - +SIM: 0
126191 -
126191 - +CEREG: 0
The command executes for 2 minutes (time on the left hand side is in ms) returns error.
The odd thing is that even though the “cops”-command return error it seems to have taken effect?
The other issue is running the at+kcell directly (to close in time) after at+cops responds with “OK”:
9021- +KSUP: 0
9079 - AT
9079 -
9079 - OK
11316 -
11316 - +CEREG: 2
11916 -
11916 - +SIM: 0
14271 - AT+COPS=2
14286 -
14286 - OK
14286 - AT+KCELL=2,1,1
14304 -
14304 - ERROR
If I step through my program and wait a fair amount of time between the commands it runs mostly fine:
4909- +KSUP: 0
4957 - AT
4957 -
4957 - OK
7192 -
7192 - +CEREG: 2
7495 - AT+COPS=2
7495 -
7495 - OK
7777 -
7777 - +SIM: 0
23246 -
23246 - +CEREG: 0
25313 - AT+KCELL=2,1,1
25329 -
25329 - OK
25329 -
25329 - +CEREG: 2
40559 -
40592 - +KCELL: 6300,136,01898716,42f010,51,115
40592 -
40592 - +KCELL: 6300,54,0189870C,42f010,97,115
40592 -
40592 - +KCELL: 6400,66,04CBFE09,42f070,41,34103
40592 -
40592 - +KCELL: 6400,66,04CBFE09,42f080,41,34103
40592 -
40592 - +KCELL: 6400,377,04CDB50B,42f070,97,34103
40592 -
40592 - +KCELL: 6400,377,04CDB50B,42f080,97,34103
40592 -
40592 - +KCELL: 0
40943 -
40959 - +CEREG: 0
So what are the preconditions to run at+cops=2 and at+kcell=2,1[,1] without encountering errors?
I’m running FW 4.6.9
BR
Martin