Adding multi-socket connections to the CUNO

Forum about the home automation suites by ELV etc

Moderator: jrkalf

Post Reply
User avatar
jrkalf
Member
Member
Posts: 291
Joined: Fri Nov 12, 2010 4:20 pm
Location: Nootdorp
Contact:

Adding multi-socket connections to the CUNO

Post by jrkalf »

Recently with KidE and RDNZL we’ve been experimenting using our CUNO both on FHEM and DomotiGa simultaneously.

Having to compare FHEM and DomotiGa, I’d prefer using DomotiGa, but it lacks some of the features FHEM has in controlling my FS20 and FHT80b devices. So I needed a trick to let both programs talk to the same CUNO device.

The CUNO device is connected in my network, but the default firmware is compiled so it only allows for one socket connection at a time. I’m not well at letting two completely different programs share that one socket, even though they’re running on the same machine. I had to find a way to allow for two socket connections on the CUNO.

The answer was rather simple. It seemed that the device was already capable of doing so in the firmware’s sourcecode, but it had been disabled. Re-enabling is rather easy this way.

Find the following code lines in the makefile:

CSTANDARD = -std=gnu99
CDEFS = -DF_CPU=$(F_CPU)UL
and replace the last line as following:

CSTANDARD = -std=gnu99
CDEFS = -DF_CPU=$(F_CPU)UL -DTWO_CONNS
run: make clean && make && make usbprogram

voila, your CUNO is now a two socket CUNO
If you can't fix it with a hammer, you've got an electrical problem!

Fibaro HC2, various z-wave switching, alerting, detection modules.
ELV FHT80b heating system.
Post Reply

Return to “Homematic, FS20, FHT, ESA and ELV”