EM7565 - Severe bug in AT registration query

When disabling unsolicited results, the modem always returns “Not Searching”
even when it’s clearly connected to a home network:

Disable result codes:

at+creg=0
at+cgreg=0
at+cereg=0

at+cfun=1

at+cops?
+cops: 0,0,“DA DA”,7

at+cgpaddr
+CGPADDR: 1,192.168.120.129

at+creg?
+CREG: 0,1

at+cgreg?
+CGREG: 0,1

at+cereg?
+CEREG: 0,1

The “0” here means the modem is “Not Searching”

However, when allowing the modem to report by itself:
at+creg=1 or at+creg=2

at+creg=1
at+cgreg=0 // Only disable this one
at+cereg=1

at+cfun=1

at+creg?
+CREG: 1,1

at+cgreg?
+CGREG: 0,1

at+cereg?
+CEREG: 1,1

The first “1” --> “Home Network”

Summarized:

at+creg?
+CREG: 0,1

at+creg=1
at+creg?
+CREG: 1,1

at+creg=0
at+creg?
+CREG: 0,1

ati3
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.08.04.00 dbb5d0 jenkins 2018/08/21 21:40:11
IMEI: 353533100149957
IMEI SV: 8
FSN: UF918474930415
+GCAP: +CGSM

Please double check 3gpp spec on these AT commands, i remember the first parameter means the mode but not the register status.

@jyijyi

I checked in the official 3GPP doc and you are correct …
I was checking the command inside a >8 year old at command doc … which has these values reversed …

Thanks for your time here!