Pushing custom events to RMS and the RMS API

Hello

I have a number of IoT devices connected to a RUT240/RUT951. These are then connected to Teltonika RMS which will then eventually be connected to my cloud based monitoring system via the teltonika RMS API.

I want to know in RMS when a number of those IoT devices go offline. A router UPS (BAT120) won’t help as the IoT devices are on a different power supply to the router! Therefore I want the following sequence

  • IoT device goes offline
  • Rut951/Rut240 detects the offline event
  • Rut951/240 pushes an “event” to RMS
  • Support team can see the new event in RMS GUI
  • Cloud based monitoring system can see the new event via the Teltonika RMS API

I have tried a number of options but without success. I’ve written a script that can detect the offline events but I can’t then push an event/alert to RMS.

Do you have any suggestions or advice on how I could push events/alerts from the router to RMS OR how RMS could poll/pull the event/alert from the router. Remember that it also needs to be visible by the RMS API.

Any help would be really appreciated!

Thanks in advance:)

Greetings,

Apologies for the delayed response.

Could you please clarify how the script detects the offline status?
How many IoT devices are connected to the router?
And how are these devices connected, via serial connection or Ethernet/WiFi?

Best Regards,
Justinas

Hi Justinas,

Thanks for the note. In answer to your questions
1) my script simply pings all connected devices every few minutes. It stores the results in a local file. If the script detects a change in the next cycle then it flags this as an error that needs to be pushed upwards
2) it varies but I thikn that the maximum would probably be 50 devices
3) they are connected via ethernet

I hope that this helps and you can advise how I can get the “offline event” information into the RMS system.

Thanks

Richard