I am running a Python script that sends and receives text messages from a processor connected to the serial port on the RUT-956.
I have an RMS account and have set up my RUT-956, which works perfectly until I carry out a remote or local reboot. The system reloads, and my Python script resumes working, but RMS will not connect. I have to locally log onto the RUT-956 and use the re-connect option in Services → Cloud Solutions → RMS, to restore the RMS connection.
I am looking to deploy the RUTs in remote locations shortly, so I cannot log on to restore RMS locally.
Would you be able to provide advice?
I am running the latest firmware, and the RMS connection is stable once it is up and running.
The utility you want to use must be enabled (it is enabled by default).
Could you please navigate to Mobile Utilities → Messages → Send Message in the WebUI, and try sending a test message to your phone number? Afterward, verify if you receive the message on your phone. Additionally, please double-check the phone number associated with the SIM card inserted in your router.
For further guidance, you can refer to the detailed information available here: RUT956 Mobile Utilities.
If the issue persists, please perform the following steps for troubleshooting:
Attempt to send an SMS (e.g. <WebUI_password> status).
Immediately afterward, navigate to System → Maintenance → Troubleshoot and click Show next to System.log.
Check the logs for details about why the SMS message failed to send or receive.
Let me know the results of these tests, and I’ll be happy to assist further.
Thank you for your assistance so far, with your help, I think I have identified the cause of my problem, and I just need a solution to get RMS working.
The main points are as follows…
I am running a Python script from start-up that monitors for SMS’s using the gsmctl --at at command set.
The Python script also uses the serial port on the front of the RUT-956 to communicate with a microprocessor.
At start-up, a custom script is run to activate the Python script.
The RMS is enabled and reports its status as connecting, which doesn’t change until I log onto the RUT locally and manually depress the reconnect button option in Services → Cloud Solutions → RMS, to restore the RMS connection.
RMS then appears to run perfectly with no problems,
When I attempt to use SMS utilities, I get no response, No messages appear in Service → mobile Utilities → message. I assume the Python script is blocking that function.
When I prevent the Python script from running during startup by commenting out the custom script, the RMS system recovers after a reboot, and the SMS utilities work correctly. (i.e. I get responses to my Texts)
I am, therefore, sure my script is causing the issue, but I am looking for solutions. I still do not understand why manually selecting reconnect recovers RMS to full functionality.
Is there a way in the custom script that I can let RMS connect first before I run python script?
It has worked. I can’t use the SMS utilities, but that is understandable, as I am using the modem to send and receive SMS messages using my Python script.