RUTX50 in SMS applications

I am writing code (python) for the RUTX50 in a Django application with the help of ChatGPT. We have succeeded in most - but we are not able to find the value of “modem_id” og how to obtain it from the unit. This parameter is required when sending an SMS. I can read the list of SMS’es and delete them too, but not send anything.

Could you please inform us how to obtain this parameter?

Hello,

Thank you for reaching out.

On the RUTX50, the modem ID can be simply retrieved via the device’s CLI using the following command:

cat /etc/board.json | jsonfilter -e '@.modems[0].id'

If you have any further questions or need assistance with your implementation, feel free to ask here.

Best regards,