hwboxserver
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
hwboxserver [2025/02/20 11:56] – created admin | hwboxserver [2025/02/25 14:44] (current) – pklapetek | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Hwserver ====== | ||
+ | |||
+ | |||
The concept of Gwyscope is based on a server-client approach, i.e. a server - hwserver - is used to control all the hardware based on commands received from a client (e.g. Gwyscope GUI). Default hwserver installation is ''/ | The concept of Gwyscope is based on a server-client approach, i.e. a server - hwserver - is used to control all the hardware based on commands received from a client (e.g. Gwyscope GUI). Default hwserver installation is ''/ | ||
Line 8: | Line 11: | ||
{{ : | {{ : | ||
+ | |||
+ | The start of hwserver can be automated using provided '' | ||
+ | |||
+ | < | ||
+ | [Unit] | ||
+ | Description=hwserver | ||
+ | After=network.target | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | Environment=SOCKET_NUMBER=50100 | ||
+ | Environment=INI_FILE=hwserver.ini | ||
+ | ExecStart=/ | ||
+ | User=root | ||
+ | WorkingDirectory=/ | ||
+ | TimeoutStopSec=10 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | Change parameters to match the installation and copy it to ''/ | ||
+ | |||
+ | < | ||
+ | cp / | ||
+ | </ | ||
+ | |||
+ | The service is disabled by default, this can be verified using '' | ||
+ | |||
+ | < | ||
+ | root@rp-f0962a: | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | To enable automatic start of the hwserver after reboot or power on use '' | ||
+ | |||
+ | < | ||
+ | root@rp-f0962a: | ||
+ | Created symlink from / | ||
+ | </ | ||
+ | |||
+ | To start the service immediately use '' | ||
+ | |||
+ | < | ||
+ | root@rp-f0962a: | ||
+ | root@rp-f0962a: | ||
+ | | ||
+ | | ||
+ | | ||
+ | Main PID: 3195 (hwserver) | ||
+ | | ||
+ | | ||
+ | |||
+ | Feb 20 11:58:50 rp-f0962a systemd[1]: Started hwserver. | ||
+ | Feb 20 11:58:50 rp-f0962a hwserver[3195]: | ||
+ | Feb 20 11:58:50 rp-f0962a hwserver[3195]: | ||
+ | </ | ||
+ | |||
+ | In order to view hwserver' | ||
+ | |||
+ | < | ||
+ | journalctl -f -u hwserver.service | ||
+ | </ | ||
+ | |||
+ | To stop the service immediately use '' | ||
+ | |||
+ | < | ||
+ | systemctl stop hwserver.service | ||
+ | </ | ||
+ | |||
+ | If automatic hwserver starting is not desired anymore use '' | ||
+ | |||
+ | < | ||
+ | root@rp-f0962a: | ||
+ | Removed symlink / | ||
+ | </ |
hwboxserver.1740048983.txt.gz · Last modified: 2025/02/20 11:56 by admin