First, sorry for my poor english level

I'll try to explain how i succefully connect hapcan and openhab together.
Openhab (http://www.openhab.org/) is an opensource home automation framework (Java osgi).
The purpose is to add more intelligence and connectivity (mobile) to hapcan.
Openhab is multi protocol, working with a lot of device.
I use the TCP binding to communicate with the hapcan ethernet module. (i have modified the TCP binding code a little, see below)
**** General overview ******
So, openhab work with "binding", i use the TCP binding (modified version) for exchange hapcan message with hapcan tcp module.
A designer app allow to define items (switch,...), sitemap (web, ou iphone, android app), rules,...
My setup use a cubieboard (http://en.wikipedia.org/wiki/Cubieboard) as a server, working great.
I have modified the TCP binding (from openhab) in order to exchange hex binary message with hapcan.(Ascii message by default)
Setup is easy. (except tcp binding modification

**** installation ******
TODO
***** Sample setup ******
items :
Group All
Group gGF (All)
Group Status (All)
/* active groups */
Group:Switch:OR(ON, OFF) Lights "All Lights [(%d)]" (All)
/* Lights */
Switch Light_Salon_Ceiling "Salon" (gGF,Lights) {tcp=">[ON:192.168.1.120
Switch Light_Bureau_Ceiling "Bureau" (gGF,Lights) {tcp=">[ON:192.168.1.120
Switch Light_Couloir_Ceiling "Entrée" (gGF,Lights) {tcp=">[ON:192.168.1.120
Switch Light_Chambre_Ceiling "Chambre" (gGF,Lights) {tcp=">[ON:192.168.1.120
Switch Light_led_Ceiling "LED" (gGF,Lights) {tcp=">[ON:192.168.1.120
switch_bureau.map:
ON=AA301005A9FFFF04FCFFFFFFFFE8A5
OFF=AA301005A9FFFF04FCFFFFFFFFE8A5
AA302005AAFFFF04FFFFFF080006A5=ON
AA302005AAFFFF0400FFFF080007A5=OFF
sitemap:
sitemap demo label="Main Menu"
{
Frame {
Group item=gGF label="Appart" icon="groundfloor"
}
}
**** Android app screenshot ***** **** HTML5 app screenshot ***** ****** To do *****
When we setup a module with hapcan programmer, a lot of message are send over the ethernet module and received by openhab server.
There are flooding openhab, and this take a while to process the message queue. So the openhab system doesn't respond for a moment.
A nice feature could be add to the ethernet module : a kind of NAT configuration feature
ex: all configuration message are send only to port 1001 (programmer), not 1002 (openhab)
Regards,
pHeex