Are we able to send AT commands like PSM or eDRX setting changes over the terminal window in nrfCloud?
If yes, please provide sample json request.
Hello,
Have a look at the nRF Cloud Github repo. Under Application-Protocols/Schemas/CloudToDevice there are several examples on how to send JSON messages from Cloud To Device, among others modem:
{ "appId":"MODEM", "messageType":"CMD", "data":"AT+CFUN?\r\n" }
I have not tested with PSM, you will need add this yourself.
Kind regards,
Øyvind
Just to clarify, the sample application Asset Tracker v2 does not include code to process messages whose "appId" = "MODEM", so they will not be sent to the modem.
You can parse the received JSON and send the contents of the data field to the modem using nrf_modem_at_cmd defined in nrf_modem_at.h . You can add this code to Asset Tracker or other NCS samples or your own firmware.
To see the responses from the modem in the Terminal card of nrfcloud.com, you could use nrf_cloud_send to send a JSON formatted message to nRF Cloud via MQTT.