AT%RAI=2 and AT+CFUN=0 AT+CFUN=1 cycle

With mfw 2.0.2, AT%RAI supports now also "2 – Activate with unsolicited notifications."

That's verfy useful, but I miss some details in the documentation about the usage of that 2.

If I set it to 2,

AT%RAI=2

and read it back

AT%RAI?

%RAI: 1
OK

I get surprisingly a 1 instead of 2 as expected by me.

If that is intended, I would expected to read something explicit in the docu about that the 2 is read as 1 and that it is not possible the check, if the notifications are enabled.

Further, and for me more important, does a AT%RAI=2 survive a AT+CFUN=0 AT+CFUN=1 cycle? Or must it be reset to 2 after AT+CFUN=0 before AT+CFUN=1 ? (Here it would help to be clear, if the read result is erroneous or if it's just not possible to check, if the notifications are enabled.)

In my opinion, having that details in the docu will help to use %RAI proper. Including the Nordic Team, which works on the NCS, may need to know, which notifications must be re-enabled in a AT+CFUN=0 AT+CFUN=1 cycle (see NRF_MODEM_LIB_ON_CFUN handler). 

I would even got that far, the knowing, which notifications in general will survive a AT+CFUN=0 AT+CFUN=1 cycle and which need to be re-enabled will help a lot. So maybe adding that behavior detail in general will be very welcome.

Related