ondrej1024
Posts: 172
Joined: Thu Dec 05, 2013 3:09 pm

Developing Linux SW for Conrad USB 4-channel relay card

Mon Jan 13, 2014 9:29 am

Hi all,

I am developing a Linux software for the USB 4-channel relay card from german electronics distributor Conrad.

This relay card is the ideal companion for the Raspberri Pi if you want to switch on/off things with it without soldering and connecting some hardware to the GPIO pins. Unfortunately (but not surprisingly) the cards stock software is Windows only, and therefore unusable on our beloved Pi.

But there is hope. ;) Even though the Conrad engineers themselves were not able to provide me with the communication protocol used between host machine and the card, it was discovered and made public by a forum member in this thread (in german). This enabled me to write a software that allows to easily control the 4 relays on the card both via command line and Web GUI. The project is hosted in GitHub.
https://github.com/ondrej1024/crelay

You are welcome to test it and provide some feedback.

It would also be great if anyone was interested to write an Android client app for it. In the server software I could provide a simple HTTP API to read and write the relay states.

Cheers, Ondrej

ondrej1024
Posts: 172
Joined: Thu Dec 05, 2013 3:09 pm

Re: Developing Linux SW for Conrad USB 4-channel relay card

Thu Jan 23, 2014 2:45 pm

I released a new version of the program which adds an HTTP API compatible with the PiRelay app. So now you can control the Relay card with your Smartphone. If anyone uses it, please let me know if it works for you.

Have fun.

ondrej1024
Posts: 172
Joined: Thu Dec 05, 2013 3:09 pm

Re: Developing Linux SW for home automation relay cards

Fri Feb 28, 2014 8:37 am

Hi,

A new version of crelay is ready. I have now made quite some changes in the software to be able to support different types of relay cards. With this latest release, also GPIO pins can be controlled via various user interfaces:

- Command line/script
- Web GUI
- HTTP API

All this works without installing a web server, Python support, or the wiringPi lib. Everything is built-in. Just launch the executable and you are ready to go. :)

I also updated the documentation. If you are interested, take a look at the new GitHub project page:
http://ondrej1024.github.io/crelay

Return to “Automation, sensing and robotics”