Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a controlling packet\frame for server #63

Open
pompushko opened this issue Dec 27, 2023 · 4 comments
Open

Add a controlling packet\frame for server #63

pompushko opened this issue Dec 27, 2023 · 4 comments

Comments

@pompushko
Copy link

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

@mguentner
Copy link
Owner

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.

@pompushko
Copy link
Author

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

@mguentner
Copy link
Owner

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'

@pompushko
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants