How to get ByVac BV4627 relay controller working with bash (automated)

This how-to has multiple pages. This page is about automated configuration. Previous, advanced configuration page is available here

This page is about configuring BV4627 board automatically e.g. doing all actions what were discussed on advanced configuration page with script. Additionally automated configuration will create some sudo rules.

First thing you need is to download few kilobytes of code:  relay.tar.gz

After that put the file to your Raspberry Pi or PC, unpack and run configuration as shown below.

tar -xzvf relay*.tar.gz
cd relay/
sudo ./configure.sh configure

Now its time to plug in the board to USB and wait about 15 sec.

Test board with command below where <serial> is replaced with your board serialnumber. If you want, you can create board aliases in the relay.sh script to ease up usage in the future.


sudo -u relay /home/relay/relay.sh <serial> a on 0

If you dont know your board’s serial, read previous page.

Scripts in this page were tested on:

  • Raspberry Pi Model B 512MB RAM. OS: Raspbian Wheezy, released in 2014-01-07. All updates installed on 1. september 2014.
  • Almost random pc with x86-64 architecture, running Ubuntu 12.04 (precise)

Thats it about relays and configuration. Now its time to move mountains with them!

If you found this useful, say thanks, click on some banners or donate, I can always use some beer money.

Leave a Reply

Your email address will not be published. Required fields are marked *