gsmat-command

AT+COPS=? doesn't return or returns CME ERROR 22


To fix roaming situations on a GSM device, I'm trying to retrieve the available networks with AT+COPS=? and compare the SIM's IMSI to the networks' numeric codes.

Often, instead of a response, there is the echo, followed by device reset after a couple of seconds (roughly 10-20).

Occasionally, the invocation returns with CME ERROR: 22, which typically refers to "IMEI not found" or "phone book entry not found". It occurs in context of COPS test, too, but the only discussion I've found about that so far was in Polish, which I sadly don't understand.

HW resets don't mend the issue.

About once a day, I receive a list of networks, (the correct) one of them tagged as "current network" despite AT+CREG? returning status 0.

What could be happening here? Is there some specific HW fault or user misbehavior that this "reaction" occurs for?

What is "not found" on CME ERROR 22?

If I'm doing the wrong thing, how can I get the information required from that situation?


Solution

  • The error turned out to be a mixture of things.