BG96 AT+CREG - AT+CGREG differences

Dear,

Is there a difference between AT+CREG or AT+CGREG when in GSM mode? Which one should I use?
Secondly, when in automatic scan mode (AT+QFG=“nwscanmode”,0), should I use AT+COPS? This to determine the access technology. And if it is 8 or 9, use AT+CEREG, and if it is 0, use AT_CREG/AT+CGREG?. See example below:
AT+CPIN?
AT+QCCID
AT+COPS=0
AT+QFG=”nwscanmode”,0 // default
AT+QCFG=“iotopmode”,0,1
AT+QCFG=“nwscanseq”,0201,1
AT+COPS? // Poll to determine access technology (0, 8, 9)

// If 8 or 9 (cereg)
AT+CEREG=2
AT+CEREG?

// If 0 (creg/cgreg)
AT+CREG=2
AT+CREG?

AT+COPS? // Still needed ?
AT+CSQ
AT+QICSGP=1,1,“SIMPOINT.M2M”, “”, “”,0
AT+QIACT=1
AT+QIOPEN=1,0,“TCP”,“gateway.test.com”,10100,0,0
AT+QICLOSE=0
AT+QIDEACT=1
Thanks and kind regards,

Wim van der Steeg

Hi Wim

  1. AT+CREG represents CS attaching status while AT+CGREG represents PS attaching status. For BG96, you could just check AT+CGREG for GSM mode.
  2. You’re correct. “8” is for CAT-M1 while “9” is for CAT-NB1. And use +CEREG to check registration status.

Thanks Willie,

I will start the implementation.

Regards,

Wim