cannelloni icon indicating copy to clipboard operation
cannelloni copied to clipboard

Add a controlling packet\frame for server

Open pompushko opened this issue 2 years ago • 4 comments

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 :)

pompushko avatar Dec 27 '23 17:12 pompushko

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.

mguentner avatar Dec 29 '23 15:12 mguentner

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.

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

pompushko avatar Dec 29 '23 15:12 pompushko

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'

mguentner avatar Dec 29 '23 15:12 mguentner

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 :)

pompushko avatar Dec 29 '23 15:12 pompushko