ok, I added support for the COC to Homegear now.
In the beginning there were some problems with my COC though. I think either because of an electrical short between the Raspberry Pi and the COC (maybe where the COC touches the Micro USB port?) or because there was a loose connection on one of the header pins. So before you do anything, check if your COC works fine:
[ul]
[li] Install minicom:
[li] Reset/boot the COC:
if test ! -d /sys/class/gpio/gpio17; then echo 17 > /sys/class/gpio/export; fi
if test ! -d /sys/class/gpio/gpio18; then echo 18 > /sys/class/gpio/export; fi
echo out > /sys/class/gpio/gpio17/direction
echo out > /sys/class/gpio/gpio18/direction
echo 1 > /sys/class/gpio/gpio18/value
echo 0 > /sys/class/gpio/gpio17/value
sleep 1
echo 1 > /sys/class/gpio/gpio17/value
sleep 1
[/li]
[li] Run:
[li] Now if you enter “V” (case sensitive) and press return you should see the version number of your COC:
[li] Enter “X21” press return, enter “Ar” and again press return (both commands are case sensitive again). Now press a key on a HomeMatic remote or enable pairing mode on a HomeMatic device to generate some BidCoS traffic. You should see something like this:
A0D02A0411C584C04584C011F21400E
A0E02800204584C1C584C0101C800D301
A1475845E24B13E0000009A40060044F3035908E5FE00
If you see garbage (like “ÿÿÿÿÿÿÿÿÿÿÿ”), something is wrong with your COC.[/li][/ul]
Ok, when your COC is working fine, do the following:
[ul]
[li] Purge the old Homegear version, because it doesn’t support the COC:
[li] Download the testing version of Homegear and install it:
wget http://homegear.eu/downloads/homegear_0.3.0-2_armhf.deb
dpkg -i homegear_0.3.0-2_armhf.deb
[/li]
[li] Modify the file “physicaldevices.conf”: Comment out the “CUL” part and uncomment the COC part.[/li]
[li] Restart Homegear:
Please tell me, if it works.