TCP server for Velbus - StefCoene/velserver GitHub Wiki
Overview
To be able to communicate with multiple programs to the Velbus hardware, it is recommended to install and run a so called 'TCP server for Velbus'.
This daemon uses the USB or RS232 connection to your Velbus bus. You can open multiple connections via TCP to this daemon. VelbusLink can also use this to connect to your Velbus bus.
There are multiple implementations of it.
Theses is an (in-)complete list:
- https://github.com/niobos/velbusd
- https://github.com/openremote/Documentation/blob/Velbus/JVelbusD.zip
- https://projetmaison.wordpress.com/velbus-tcp-server-for-windows/
- http://velbus.blog.free.fr/
- http://leachy.homeip.net/velbus/velserv.c
velserv.c
I use velserv.c (source can be found here) and compiled it for 32 bit Intel Linux, 64 bit Intel Linux and arm Linux (found in PI).
The source file (in src directory) and binary files (in bin directory) are included in velserver.
You can just start the binary you need. By default it will use /dev/ttyACM0, run as daemon in the background and listen to port 3788. Once started, it will place itself in the background.