C-Bus Forums  

Go Back   C-Bus Forums > C-Bus Integration > C-Gate Developers

The C-Bus Community Forums is place where C-Bus users can share information and help others with C-Bus. From time to time you will see Clipsal staff on the forums, but this is not an official support channel. If you really need help contact the official support services of Clipsal. More information about the purpose of this forum is available here.

Thread Tools Display Modes
Old 01 Jun 17, 04:07 PM
andrew12 andrew12 is offline
New Member
Join Date: Mar 2017
Location: Australia
Posts: 10
Default C-Gate C Library Linux

Just thought I would share a library I've been working on.

There are various methods to access C-Bus and cgate such as CBM library, MQTT and DBUS but I wanted a wanted to access C-Gate directly and not tie up a PCI with the CBM library. I do really like the the CBM library though.

So here it is, a C Library for Linux to access C-Bus through C-Gate, It only supports lighting and measurement events through a callback, similar to cbm. I am no expert programmer so probably a bit rough, constructive criticism welcome.

Documentation is lacking and I will try to add some in the next few days plus provide an example. I use it successfully to control some RF blinds I got from spotlight.

Reply With Quote
Old 05 Jun 17, 03:23 PM
daniel's Avatar
daniel daniel is offline
Join Date: Jul 2004
Location: Adelaide
Posts: 759

Great stuff, I'm always thrilled to see a new library.

Just a note, would you consider adding a licence of your choice to the project?


Otherwise it's really unclear what people can do with your code
Schneider Electric | Partner Business - EcoBusiness | Clipsal by Schneider Electric | Senior Software Design Engineer
Reply With Quote
Old 17 Jun 17, 12:50 PM
andrew12 andrew12 is offline
New Member
Join Date: Mar 2017
Location: Australia
Posts: 10

Thanks Daniel,

I have added a licence and a few updates also, I added an example on how I use it to control RF motorised roller blinds I got from spotlight on the cheap and a simple measurement device using a ds18b20 and a OrangePI-Zero and have it display on my eDLT.

The demos are in there own repository https://github.com/Andrewt12/libcbus-demos
Hope someone finds it useful.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Gate Windows 7/Window 8 Charlie Crackle C-Touch/HomeGate/SchedulePlus/PICED Software 11 06 Jun 16 11:34 PM
Linux Ubuntu PCI How To gizi C-Gate Developers 6 02 Apr 15 03:12 PM
Linux query Mr Mark C-Gate Developers 22 19 Jul 13 02:11 PM
Mac OSX automation paddy2042 General Discussion 32 08 Sep 09 12:16 AM
[ANNOUNCE] New AGPLv3 C-Gate Interface library OxleyDave Third-Party Solutions 5 02 Oct 08 10:26 AM

All times are GMT +10.5. The time now is 09:45 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.