QCELLSCAN need valid SIM Card - BG95-M3

Hello.

I am using a BG95-M3 module, version BG95M3LAR04A03_01.202.01.202. I am trying to get a “network scan“, to find nearby service providers. This is my current command sequence:

AT COMMAND: ATE0

RESPONSE:

OK

AT COMMAND: SENDING AT+QINISTAT

RESPONSE:

+QINISTAT: 3

OK

AT COMMAND: SENDING AT+CFUN=0

RESPONSE:

OK

AT COMMAND: SENDING AT+QCFG=“nwscanmode”,3,1

RESPONSE:

OK

AT COMMAND: SENDING AT+QCFG=“nwscanmode”

RESPONSE:

+QCFG: “nwscanmode”,3

OK

AT COMMAND: SENDING AT+QCFG=“iotopmode”,1,1

RESPONSE:

OK

AT COMMAND: SENDING AT+QCFG=“iotopmode”

RESPONSE:

+QCFG: “iotopmode”,1

OK

AT COMMAND: SENDING AT+CFUN=1

RESPONSE:

OK

AT COMMAND: SENDING AT+QCELLSCAN=9

RESPONSE:

OK

I am able to get the results I want, but only if there is a valid SIM card connected ( QINISTAT returning 3). IfI do the sequence without a SIM Card, or I put a SIM Card that has no NbIoT protocol activated, QCELLSCAN returns ERROR.

Is that the correct? Isnt there a way to perform a network scanner without a SIM Card?

I have a similar logic on a EC25 modem, using QOPS, but BG95 does not have this at command.

Thanks a lot!

HI @ProdutosPrimata

Have you tried with AT+QCOPS command? QCELLSCAN command need SIM insert.

HI there. Thanks for the fast reponse.
I was not aware of the command AT+QCOPS, it was just what I wanted!
But I did not find a good documentation for it.
I did find the AT+QCOPS documentation for BG96, but it does not fit my modem. The documentation says it has two parameters, but in my case:

AT+QCOPS=?

+QCOPS: (0-4)

OK

I got what 0,1,2,3 and4 emans, but I wanted the documentation so I can parse the values got from the command.

Thanks a lot.

I found the AT Commands 2.1 version for BG95. THe command is specified there.

Thank you!