Page 3 of 3

Re: Domotiga and KNX/EIB configure problem

Posted: Thu Dec 09, 2010 11:46 pm
by ace
Hi peevee,
as Ron says, you need this three addresses, and until you have them you are stuck with dimming.
If you have 1/0/2 then test 1/0/2|1/1/2|1/2/2 just for luck :)
Do you have IP gateway, USB+EIDB or something else ?
Best situation, talk to the person that programmed the system and get the values.

Ace

Re: Domotiga and KNX/EIB configure problem

Posted: Fri Dec 10, 2010 1:33 am
by peevee
Hi Ace,

Thanks for the last push in the right direction.
I've create an additional group address (1/0/13) for dimming with value's.
This did the trick, now i entered the following address group in domotiga 1/0/0|1/0/2|1/0/13 and dimming works.

@Ron, sorry for doubting your programming skills ;-)
By the way, I thought of a new challenge, reading initial values of EIB devices on startup of Domotiga (group_read) :-p

Peevee

Re: Domotiga and KNX/EIB configure problem

Posted: Fri Dec 10, 2010 12:44 pm
by RDNZL
@peevee, no problem, it's only a hobby, not my work... :mrgreen:
The only issue left regarding EIS2/dimmers is reading the dimming level from packets send when manually controlled,, the messages put on the bus are not having a dimming level when controlled manually, only 3 basic packets. (dim/bright/stop?)

I'm still busy finding this out, asking for status packets (group_read) could also help in this case.

Too bad KNX/EIB needs a bus cable between the modules, and the KNX-RF variant is unsecured.
While looking at the protocol and devices I think it's a very good system, having all the possibilities you can think of.
If I ever have the possibility to install extra cabling, or build a new house, this is the system I choose for.

Re: Domotiga and KNX/EIB configure problem

Posted: Tue Dec 14, 2010 9:35 pm
by peevee
Ron,

I did some testing.
First i've changed my EIB hardware program by creating three groups (for dimmers):
1/0/0 = Switching (on/off switching dimmer)
2/0/0 = Brightness value (set brightness of dimmer)
2/1/0 = Brightness value indicator (returns brightness value)

These groups i've added to a domotiga EIS2 device like this 1/0/0|2/1/0|2/0/0.
Value updating in Domotiga worked fine then, but not when i used manual control.
For this i made some changes to the CEIB class and now the update of values work OK :D (added the result value of "small" telegrams)

I also added an EIB_Init function which initializes the EIB device values on load of domotiga (send GroupReads to all KNX/ EIB devices). For this i also made a change to the Devices module (added FindInterfaceDevices, which returns a list of devices for a certain interface)
I will mail you the changed classes.

What i'm not happy about is:
1. The location where i call the EIB_Init, i misused the EIB_Ready sub for this.
2. Updating of the device list after the EIB device values are loaded (Devices.GetDeviceList() does not work due to timing of function call)
3. The way i integrated the GroupRead in SendCommand (perhaps a new Sub would be nicer)

This i leave to you (assuming you will use my adaptions) ;-)

Regards, Peevee

Re: Domotiga and KNX/EIB configure problem

Posted: Tue Dec 14, 2010 10:13 pm
by RDNZL
Nice work!

Ace will be happy too as manual dimmer updates was still an issue.

Eib_Ready() is not a bad place at all for init stuff as it's called when eib connection is made... will check te rest.

Thanks.

Re: Domotiga and KNX/EIB configure problem

Posted: Wed Dec 15, 2010 8:27 pm
by peevee
Hi Ron, Ace,

Did you already test shutters/blinds?

I did a test with the EIS2 type, i can send the shutter up/down (with button) and set it to a position (with slider).
Also manual updates are updated nicely in the device list (with dim value, that is).

What's missing are a stop button in the control section (and addressing) and up/down values (now you get on/off and dim).
i also think you need a fourth address in a device type for shutters (could this be EIS7 - Motor Drives)?

Love to hear about your experiences :mrgreen: .

Regards, Perry.

Re: Domotiga and KNX/EIB configure problem

Posted: Thu Dec 16, 2010 11:40 am
by RDNZL
@peevee I have sent you an e-mail with some logging information for the code you have sent.
Did you have to configure your dimmers differently to react on the groupread command, (or swap addresses in domotiga device address field) as they doesn't seem to reply with the same packets as your code suspects...

No testing of shutters/blinds are done yet as far as i know.

If someone has a KNX handbook electronically, please sent me an e-mail.

Re: Domotiga and KNX/EIB configure problem

Posted: Sun Jan 30, 2011 12:32 pm
by WEDOS-KNX
Hello,
thank you for upgrade of KNX. This is working better now.

I have problem with temperature. Currently if temperature sensor is between 10-20 Celsius is working fine but above 20 Celsius is not good. Under 20 is result for example 17.1, 18.3, 16.8, 13.7 (one decimal place) etc... If temepratue is above 20 is result under 20... and format is 11.67, 13.43, 13.37 (two decimal places).... I think 10 grades is lost and the format of result is different. Do you have some ideas?

Re: Domotiga and KNX/EIB configure problem

Posted: Sun Jan 30, 2011 9:26 pm
by RDNZL
I have tested it in the winter with the outside temp sensor of ace who lives in iceland, so no data packet with temp > 10 C
Can you capture some data in debug log?

Re: Domotiga and KNX/EIB configure problem

Posted: Mon Jan 31, 2011 8:00 pm
by WEDOS-KNX
Hello,
here is example. First 3 are fine (I have 11.3, 12.3 and 15 Celsius in these rooms) but next 3 are not good (I think I have around 22).

2011/01/31 18:52:47 [KNX/EIB] received packet from '1.2.41' to '3/0/18'
2011/01/31 18:52:47 [KNX/EIB] EIS5: Teplota bazen voda 11.3
2011/01/31 18:52:48 [KNX/EIB] < 00 0A 00 27 12 29 18 12 00 80 04 6A 00
2011/01/31 18:52:50 [KNX/EIB] received packet from '1.2.41' to '3/0/17'
2011/01/31 18:52:51 [KNX/EIB] EIS5: Teplota bazen vzduch 12.3
2011/01/31 18:52:51 [KNX/EIB] < 00 0A 00 27 12 29 18 11 00 80 04 CE 00
2011/01/31 18:52:54 [KNX/EIB] received packet from '1.2.11' to '3/0/2'
2011/01/31 18:52:54 [KNX/EIB] EIS5: Teplota garaz 15
2011/01/31 18:52:54 [KNX/EIB] < 00 0A 00 27 12 0B 18 02 00 80 05 DC 00
2011/01/31 18:52:57 [KNX/EIB] received packet from '1.2.30' to '3/0/5'
2011/01/31 18:52:58 [KNX/EIB] EIS5: Teplota host 11.17
2011/01/31 18:52:58 [KNX/EIB] < 00 0A 00 27 12 1E 18 05 00 80 0C 5B 00
2011/01/31 18:53:01 [KNX/EIB] received packet from '1.0.17' to '3/0/13'
2011/01/31 18:53:01 [KNX/EIB] EIS5: Teplota pracovna Zdenka 11.72
2011/01/31 18:53:02 [KNX/EIB] < 00 0A 00 27 10 11 18 0D 00 80 0C 92 00
2011/01/31 18:53:05 [KNX/EIB] received packet from '1.2.21' to '3/0/4'
2011/01/31 18:53:05 [KNX/EIB] EIS5: Teplota telocvicna 11.72
2011/01/31 18:53:05 [KNX/EIB] < 00 0A 00 27 12 15 18 04 00 80 0C 92 00
2011/01/31 18:53:08 [KNX/EIB] received packet from '1.0.7' to '3/0/11'
2011/01/31 18:53:09 [KNX/EIB] EIS5: Teplota chodba 12.02
2011/01/31 18:53:09 [KNX/EIB] < 00 0A 00 27 10 07 18 0B 00 80 0C B0 00

Re: Domotiga and KNX/EIB configure problem

Posted: Wed Feb 02, 2011 10:55 pm
by RDNZL
The bug is in this line I guess...
In CEIB.class DecodeEIS5() routine

Code: Select all

  fReturn += Lsl(Lsr((iValue AND &H07800), 11), 1)
The code I translated from was:

Code: Select all

function Eis52Value(eis5)
{
value = eis5 & 0x07ff;
if ((eis5 & 0x08000) != 0)
{
value |= 0xfffff800;
value = -value;
}
value <<= ((eis5 & 0x07800) >> 11);
if ((eis5 & 0x08000) != 0)
value = -value;

return value;
}
Too tired to get it right now, will look at it later... :|

Re: Domotiga and KNX/EIB configure problem

Posted: Wed Feb 02, 2011 11:01 pm
by RDNZL
According to
http://www.tapko.de/index.php/Tools/31/0/

Your values are: (or should be):

Code: Select all

0C5B -> 22.3
0C92 -> 23.4
0CB0 -> 24 

Re: Domotiga and KNX/EIB configure problem

Posted: Tue Feb 08, 2011 7:09 pm
by WEDOS-KNX
Hi Ron,
yes, your values are the right :-) I think we have between 22-24 Celsius :-) .
Is possible correct this? Thank you.

Re: Domotiga and KNX/EIB configure problem

Posted: Sat Mar 05, 2011 11:38 am
by RDNZL
I have fixed the temperature calculation bug in revision 543, can you verify the readouts?