Is it possible to run a JVelbusD, VelServ or equivalent Velbus link on a Synology NAS ?
I’ve already installed the Openremote on my Synology but am missing the link to the Velbus system.
My Velbus system has a Homeserver (VMBHIS) running which is connected to my home IP network on which also the NAS runs.
I would like to avoid an extra component like a RaspberryPI.
Any other solution without extra hardware is also welcome, like using the VMBHIS with additional software (but keeping also Homecentre).
My short answer is that I don’t have any experience with Synology.
However…
As OpenRemote is a Java application and you’ve got that running… Getting JVelbusD running with the same Java runtime should just be a matter of ensuring RXTXlib is in the right place, as per the instructions on the OpenRemote GitHub documents page -
In the same vein, I’m fairly sure that VelServ would work too if your NAS is Linux based.
Obviously you will need another Velbus to USB adapter - VMBRSUSB or VMB1USB.
Bert, we run Velbus and Synology already for many years. What do you want to do ?
Synology’s nas function is one thing, if you want to get into the applications, then it’s another thing, as well as interfacing with the linux os, which I would discourage for security reasons.
I’m picking this up again and switched to using a Raspberry PI.
I installed JVelbusD following your instructions on the Github pages and I think it went well.
But when getting in Openremote to start picking up the Velbus I/O, it seems I’ve no connection…
Is there a way to check if the connection Velbus - USB - IP through the JVelbusD is working and has connection ? Like you wouls measure with a Fluke in your electrical circuits to find the bug
I installed the VelServ on my PI an compiled it with GCC. It’s now located on /opt/Velserv
When I type “sudo ./velserv -p 6000” or even “sudo ./opt/Velserv/velserv -p 6000” on the prompt, the task is not found…
Is there any additional help to start Velserv ? Is it possible to start Velserv automatically when the PI starts up ?
I’m quite new to the PI so might be some basis things…
Sometimes you also have to specify the /dev/tty device.
This is normally ttyACM0.
So the command is
velserv -d /dev/ttyACM0
For automatically starting, add it to /etc/rc.local before the ‘exit 0’.
It will place itself in the background so you get your prompt back when you execute velserv.
You can check if it’s running with ‘ps -ef | grep velserv’. It should show you the velserv command.
It seems Velserv is running at my PI :
pi@raspberrypi:~ $ ps -ef | grep velserv
root 961 1 99 13:05 ? 00:03:54 ./velserv -d /dev/ttyAMA0 -p 6000
pi 984 975 0 13:09 pts/0 00:00:00 grep --color=auto velserv
But when I try to connect with VelbusLink on my PC (with IP adress from the PI and port 6000), scanning of my modules goes very fast and no modules are recognized when I start from my existing project.
Also tried to create a new project from scratch with downloading modules through the Velserv connection. This results in an empty project.
Tested the following situations : A. Start with powered up PI
Power up PI
Start Velserv with sudo ./velserv -d /dev/ttyAMA0 -p 6000
Unplug USB cable from Homecenter
Plug USB cable in PI
Start Velbuslink on my PC and try to connect to PI IP adress and port 6000
Scan the bus - short scan (screen flashes shortly) and nothing found
Reconnected USB to Homecenter and connection works through Homecenter
B**. Start from not powered PI**
Disconnected USB cable from running Homecenter
Connect USB cable to PI
Power up PI
Start Velserv with sudo ./velserv -d /dev/ttyAMA0 -p 6000
Start Velbuslink on my PC and try to connect to PI IP adress and port 6000
Scan the bus - short scan (screen flashes shortly) and nothing found
C. Start from not powered PI and not powered VMBRSUSB
Disconnected power from VMBRSUSB
Connect USB cable to PI
Power up USB and power up PI
Start Velserv with sudo ./velserv -d /dev/ttyAMA0 -p 6000
Start Velbuslink on my PC and try to connect to PI IP adress and port 6000
Scan the bus - short scan (screen flashes shortly) and nothing found
Reconnected the USB to Homecenter and connection is OK
Is there any way to check on the PI if USB connection is working by creating a log file ?
When I use the -v (verbose) in the startup command it shows following :
The mentioned IP adres is not the IP adres from my PI. Can thi sbe th eissue ? In that case, how to change it since my network runs on 192.168.10.xx (using -a and IP adres does not help)
Also tried following command and results : pi@raspberrypi:~ $ sudo ./velserv -vvvv -d /dev/ttyAMA0 -p 6000 Device : /dev/ttyAMA0 IP address : 127.0.0.1 Port : 6000 Verbose level : 4 Client mode : 1 Server mode : 1 Velserv: socket is OK… Velserv: setting socket options is OK … Velserv: bind is OK … Velserv: server listen is OK … Velserv: accepting connection Velserv: new connection from 127.0.0.1 on socket 6
So it looks like Velserv is running but the IP adress its using is wrong.
I looked to the Velserv help file and just blanked every command and retyped it in its basic format without any arguments except the port : sudo ./velserv -p 6000
And guess what… it works
I can connect now with Velbuslink and change programing.
Next step to do : get Open Remote connected and start playing with that