RMS not auto connecting after a remote reboot for RUT-956

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.

Hello,

To connect to RMS remotely, you can utilize SMS utilities. Please send the following SMS command to your RUT956’s phone number:

<WebUI_password> rms_connect

This command should establish a connection to RMS without requiring you to log in to the router locally.

Kindly try this and let me know how it works!

Best regards,

Hi Marija,

I had a quick test this evening, and nothing seems to happen.

I then selected another SMS utilities message, ‘status’, and again, no response.

Is there a setting that needs to be enabled for the SMS utilities function to work?

Regards

Neil

Hello,

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:

  1. Attempt to send an SMS (e.g. <WebUI_password> status).
  2. Immediately afterward, navigate to System → Maintenance → Troubleshoot and click Show next to System.log.
  3. 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.

Best regards,

Hi Marija,

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…

  1. I am running a Python script from start-up that monitors for SMS’s using the gsmctl --at at command set.
  2. The Python script also uses the serial port on the front of the RUT-956 to communicate with a microprocessor.
  3. At start-up, a custom script is run to activate the Python script.
  4. 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.
  5. RMS then appears to run perfectly with no problems,
  6. 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.
  7. 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?

Thank you in advance for any help you can give.

Regards

Neil loveridge

Hello,

To connect device to RMS using a custom script, you can add the following commands at the beginning of your script:

sleep 30
/etc/init.d/rms_mqtt restart

This will restart the RMS service and should allow your device to automatically connect to RMS.

Please let me know how it goes!

Best regards,

Hi Marija,

Thank you very much.

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.

Kind regards

Neil

Hello,

Good to hear it helped!

Please let me know if there is anything else you need help with regarding this topic.

Best regards,

This topic was automatically closed after 60 days. New replies are no longer allowed.