# Velbus software

**URL:** <https://forum.velbus.eu/t/velbus-software/3041>\
**Category:** English\
**Created:** [January 8, 2010, 12:11pm UTC](https://forum.velbus.eu/t/velbus-software/3041 "2010-01-08T12:11:32Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![jeroends](https://forum.velbus.eu/letter_avatar_proxy/v4/letter/j/ea5d25/32.png) [@jeroends](https://forum.velbus.eu/u/jeroends)\
**Post date:** [December 7, 2010, 12:53pm UTC](https://forum.velbus.eu/t/velbus-software/3041/12 "2010-12-07T12:53:40Z")

</div>

hello,  
I’ve made a new version a my server/client soft. The problem with the previous versin was that when receiving not the full frames, the software would simply rejects them (because it was frm the point that a frame always came in at least at once). Now the soft handles byte par byte and does a frame check.  
The new program also combines the two previous programs (client/server) and acts as deamon. It has verbose modes, just the more “-v”'s you place in the comment line, the more you get (till six times).

source can be downloaded at the following link: [leachy.homeip.net/velbus/velserv.c](http://leachy.homeip.net/velbus/velserv.c)  
compiles with: gcc -o velserv velserv.c -lpthread

Usage: velserv -csfvhV] -d DEVICE] -a ADDRESS] -p PORT]  
-s --server act as server only, gateway will be disabled  
when in server mode, the address is always 127.0.0.1  
-c --client act as client only, server wil be disabled  
-d --device INTERFACE device where the Velbus interface is connected to  
default device is: /dev/ttyACM0  
-a --address HOST IP address or hostname where to connect to as client  
default is 127.0.0.1  
-p --port PORT port where to connect  
default is 3788  
-f --foreground do not run in background  
-v --verbose verbose operation, repeat for debugging output  
1 general debug, 2-3 com to socket debug, 4-6 server socket debug  
-h --help print this help and exit  
-V --version print version information and exit

enjoy …

---

_[View the full topic](https://forum.velbus.eu/t/velbus-software/3041)._
