Closed DarylMc closed 9 months ago
https://blog.addictedtopi.com/2017/05/21/installing-c-gate-on-a-raspberry-pi/ This is where I have always sourced how to setup CGate on the raspberry pi. Since my CBus networks have an ethernet interface I always skipped the ser2sock service.
This could be put in the install script as an option before CGate installation. I can't see a problem to install by default and leave the ser2sock service disabled for CNI users.
git clone https://github.com/nutechsoftware/ser2sock.git
sudo mv ser2sock /usr/local/bin
cd /usr/local/bin/ser2sock
chown -R pi:pi .
mv config.h.in config.h
cc -o ser2sock ser2sock.c
sudo nano /etc/systemd/system/ser2sock.service
[Unit]
Description=ser2sock
[Service]
ExecStart=/usr/local/bin/ser2sock/ser2sock -p 10001 -s /dev/ttyUSB0 -b 9600
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/usr/local/bin/ser2sock/
[Install]
WantedBy=multi-user.target
sudo systemctl enable ser2sock.service
sudo systemctl start ser2sock.service
Done! thanks
Hello Greig @greiginsydney I've got a raspberry pi setup using a FTDI USB adapter from the raspberry pi to the Clipsal 5500PC RS232 PCI.
The setup instructions have been available for years now but I forgot it was an option. I plan to post some info here for consideration as an option in the installer script.