[SOLVED] Velbus binding connecting to Velser

Hello,

i am trying to setup openhab with the velbus binding to an Velser, so i can also program my installation from my network through the same serial connection to velbus.
I read every possible forum, but can’t find the solution.

I am running everything on a RP3 with openhab installed through apt-get.
At this moment i have installed the testing release (also tried the snapshot release).
The velbusbinding 2.4.0.m4 is installed. But i have only the choice for serial connections.
Am I doing something wrong? Using the wrong version of the binding?

How can i configure the network bridge for this binding?
I am missing something but don’t know what.

Mathieu

Did you install Velserv on your PI ? I recently installed OH and Velserv and tried to document as much as possible the used steps. Hope following helps you getting Velserv up and running, this should give you the serial port in the Velbus binding.

Install Velserv & auto start
Install Velserv

  1. Install GCC on your PI by typing sudo apt-get install gcc in the prompt in PuTTY
    Enter password if requested
  2. Goto /opt (cd opt) in your PI and make a new folder velserv (mkdir velserv)
  3. Got to this new folder (cd velserv) and create a new file by using nano (sudo nano velserv.c)
  4. Download code from http://www.mdar.eu/dl/velserv1.5.zip
  5. Open the file velserv.c from this download in Notepad on your PC
  6. Copy the complete content (ctrl-A – ctrl-C)
  7. Paste this in the PuTTY screen in nano (takes a while to get pasted in)
  8. Ctrl-O to save and ctrl-X to close nano. Now the file velserv.c is created with the content as pasted from the download.
  9. Compile the file for your PI system by typing sudo gcc -o velserv velserv.c -lpthread. This creates the compiled file velserv
  10. Create a new file velserv.sh with sudo nano velserv.sh
  11. Open the file velserv.sh from the download in Notepad on your PC
  12. Copy the complete content (ctrl-A – ctrl-C)
  13. Paste this in the PuTTY screen in nano (takes a while to get pasted in)
  14. Ctrl-O to save and ctrl-X to close nano. Now the file velserv.sh is created with the content as pasted from the download.
  15. Change the rights of this file to executable by typing sudo chmod a+x velserv.sh

Create autostart for Velserv

  1. Goto folder ./etc/systemd/system
  2. Create a new file velserv.service by typing sudo nano velserv.service
  3. Open the file velserv.service from the download in Notepad on your PC
  4. Copy the complete content (ctrl-A – ctrl-C)
  5. Paste this in the PuTTY screen in nano (takes a while to get pasted in)
  6. Ctrl-O to save and ctrl-X to close nano. Now the file velserv.service is created with the content as pasted from the download.
  7. run the following commands to activate velserv.service
  8. sudo systemctl daemon-reload
  9. sudo systemctl enable velserv.service
  10. reboot to get VelServ to load on boot (sudo reboot)
  11. Check if velserv is running properly by typing systemctl status velserv
    Status should mention “active”
1 Like

Sorry that I didn’t see this topic sooner.
@Beec Thanks for referencing my website :slight_smile:

I’ve documented the installation process of VelServ here, along with a service file that supports restart

All that said, if the Velbus binding you have only offers a Serial Bridge, then you can’t use the TCP connection of VelServ anyway.

You’ll have to totally remove the public Velbus binding and replace it with @cedricboon bleeding edge version.

Instructions for that are in this Velbus Forum post.

Hello,

if got it finally working.

Thanks

Let the games begin :smile:

If you need any further assistance, please feel free to ask.

I’ll do everything I can to support you with anything related to Velbus.

@thieuv

Would you be so kind as to mark the topic as solved ?

Hi
Just in case you ever need to rebuild your machine, or install VelServ onto a different machine, I’ve created a little script to automate the installation of VelServ.

It includes pulling the very latest version that Jerome creates.

Best wishes,

Stuart