Bridging Velbus with TCP through snap package

Hello everyone

We’ve made a snap package to easily run a Velbus TCP gateway on any snapd-compatible Linux distribution.

To install, simply run these two commands;

snap install velbus-tcp
snap connect velbus-tcp:raw-usb :raw-usb

The server will now listen at 27015 (which you can connect to with VelbusLink).

Source code and further information can be found at https://github.com/velbus/velbus-tcp-snap

1 Like

Hi

Do you have a systemd service file to automate the starting and stopping of this service in Linux?

Hi MDAR,

This snap starts automatically. It does not require a systemd service file.

To start the snap:

snap start velbus-tcp

To stop the snap:

snap stop velbus-tcp

Thanks :slight_smile:

I meant to start the service at boot up :wink:

Hi MDAR,

It starts automatically at boot up. :smile:

You can check the status of the snap with

snap services velbus-tcp

It should say
Startup: enabled
Current: active

1 Like

Hi

I’ve got some bad news :frowning:

I tried to install this Snap on a fresh Ubuntu 18 device and it failed :frowning:

The commands I ran were

apt-get install snaps
 
snap start velbus-tcp

Snap installed correctly, but velbus-tcp failed.

The second snap command

snap connect velbus-tcp:raw-usb :raw-usb

Reported that there wasn’t a raw-usb plugin available

There were a number of lines of text displayed during the installation of velbus-tcp but they were on the same line so couldn’t be captured.

Extra info

root@odroid:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

 root@odroid:~# ls /dev/serial/*
  dev/serial/by-id:
 
  


Velleman_Projects_VMB1USB_Velbus_USB_interface-if00
  
/dev/serial/by-path:
platform-dwc2_b-usb-0:1.2:1.0

Hi MDAR

To get the full output snap log, you can use ‘snap changes’ together with 'snap tasks ’ e.g.

It seems the snap can’t be installed due to a seccomp error.

Looks like a snapd error, following a similar thread on the official snapcraft forum I found it might be kernel related:

Try to create a new thread over on their forum.

Also, you should not have to install snapd on a fresh Ubuntu 18, so might also have something to do with that.

Kind regards

1 Like