NCS has a sample showing sending UDP packets over a cellular network, with optional control over the RAI socket options:
https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrf/samples/cellular/udp/README.html
Is there any documentation on how the sample behaves with the various options enabled on a network that support AS-RAI?
It would be very helpful to have examples on the RRC Active -> Inactive timings with the various combinations of RAI enabled as a reference point for the behavior of local operators.
For example on my local operator, it appears as though `NRF_RAI_LAST` and `NRF_RAI_NO_DATA` are behaving the same way, with the modem transitioning back to idle after ~5 seconds after a `zsock_send`, compared against a PSM Active Time of 16 seconds.
[00:01:27.293,579] <inf> app: Flushing UDP [00:01:27.742,919] <wrn> modem_monitor: State: Active [00:01:33.686,065] <wrn> modem_monitor: State: Idle ... [00:04:10.787,231] <inf> app: Flushing UDP [00:04:11.278,381] <wrn> modem_monitor: State: Active [00:04:16.875,518] <wrn> modem_monitor: State: Idle
Is this expected behaviour? I have no idea.
I would have thought that `NO_DATA` would result in a quicker transition to Inactive since it specifies tighter constraints (No more TX or RX, instead of only no more TX), but that doesn't appear to be true.
But if it is expected that both options have the same behavior, why would they be split into separate options at all?