'Data to server' send data after reboot, RUT 956

Hi

I would like to use the new ‘Data to Server’ option in fw 07.05 to send ‘base’ and ‘GSM’ data once every 24 hours. I have set the period to be 86,400 seconds (24 hours), but I would like to start the timer on reboot, so the first package of data is always sent after reboot, and that sets the start of the time period. Does anybody know if this is possible ?.

Thanks

Mark

Hello,

Thanks for contacting Teltonika Networks’ technical support team.

It is possible to force “Data to Server” to send the first data package after a reboot and then use that reboot’s timestamp as a starting point. The following steps will guide you on how to set up this kind of configuration:

  • Connect to the device’s CLI. You can either use a computer’s command line or connect to the WebUI and go to System → Maintenance → CLI.

Remember: when connecting to the device’s CLI, the username will be root and the password will be your current WebUI password.

  • Edit a file called “rc.local”. In the CLI type
vi /etc/rc.local
  • Press i. You will enter edit mode.
  • After the first 2 lines (the first 2 comments) add this line.
ubus call datasender.collection.1 interrupt

The file could look like this:
file_etc_rc_local

  • After inserting the line press esc on you keyboard
  • To save the file type :wq

After completing these steps “Data to Server” should send the first data package after the reboot. It should also use that reboot’s timestamp as a starting point.

To test this configuration, you can simply reboot the device and check if “Data to Server” sent a data package.

Remember: if you reset the device to its factory settings, you will need to repeat these steps.

If you have more questions, feel free to ask.

Best regards,

Tautvydas

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