8400 questions

9885 answers

15679 comments

14156 members

0 votes
34 views 2 comments
by
Is there any way to execute commands via my TRB140 to communicate to my Raspberry Pi 4 i.e. reboot (sudo reboot)?

I did find this article from Teltonika: https://wiki.teltonika-networks.com/view/Shell_Commands

However I believe this is to control the modem itself?

Your help would be much appreciated.

1 Answer

0 votes
by

Hello, 

This link:  https://wiki.teltonika-networks.com/view/Shell_Commands is for the TRB140 device command list for SSH, but it is usually used in Linux systems as well. Now if you want to do SSH to your Raspberry PI you can do ssh from the CLI  of TRB140 if the Raspberry PI is in the same network of TRB140 and if the Raspberry PI SSH service is enabled as well. 

If you want to do SSH to the Raspberry PI remotely let say you can reach the TRB140 from its Public IP address then you can try doing port-forwarding as well. 

Port Forwarding - Teltonika Networks Wiki (teltonika-networks.com)

I hope this helps

Regards,
Mellow

 

Best answer
by
Thank you so much confirming Mellow :)

Out of curiosity, if I have a raspberry Pi connected to the TRB140 via ethernet, if there is no internet connection however SMS commands are still capable, would it still be able to execute the commands via SMS into the RPI's terminal?
by

Hi, 

This feature: TRB140 Mobile Utilities - Teltonika Networks Wiki (teltonika-networks.com) is used to control the TRB140 device and with the help of the UCI API you can do changes for the configuration itself but executing reboot for the Rasp PI using SMS commands it's not by default. Some scripting or additional research must be done to implement this. 

I hope it helps

Regards,
Mellow