Add a controlling packet\frame for server
Hello
Could you please, add, a controlling packet\frame for server? Its like to do something on server side, e.g. run script or command or restart cannelloni server etc.
Thank you :)
Why aren't you using ssh for that? You can grant an unprivileged user using sudo exactly the rights to e.g. restart cannelloni using systemctl.
Why aren't you using ssh for that? You can grant an unprivileged user using
sudoexactly the rights to e.g. restartcannelloniusingsystemctl.
Nope. No any SSH :)
But I use GPIO. And need to on\off some GPIO pins via simple behavior. For example, device have 3 CAN-bus lines. And I made a simple multiplexer to use 3 CAN-bus with one IC. All works perfect, but need to touch GPIO :D
Why don't you use something like this then?
ssh user@your_device 'systemctl stop cannelloni; echo "1" > /sys/class/gpio/gpio9/value; systemctl start cannelloni'
Why don't you use something like this then?
ssh user@your_device 'systemctl stop cannelloni; echo "1" > /sys/class/gpio/gpio9/value; systemctl start cannelloni'
Because this is simplest way if you have a SSH connection. In my case - I have only 20000 port :)