Domotiga and KNX/EIB configure problem
Moderator: RDNZL
Re: Domotiga and KNX/EIB configure problem
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
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
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
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
Regards, Perry.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
@peevee, no problem, it's only a hobby, not my work...
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.
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.
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
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 (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
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 (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
Regards, Perry.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
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.
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.
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
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 .
Regards, Perry.
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 .
Regards, Perry.
Regards, Perry.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
@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.
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.
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
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?
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?
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
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?
Can you capture some data in debug log?
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
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
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
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
The bug is in this line I guess...
In CEIB.class DecodeEIS5() routine
The code I translated from was:
Too tired to get it right now, will look at it later...
In CEIB.class DecodeEIS5() routine
Code: Select all
fReturn += Lsl(Lsr((iValue AND &H07800), 11), 1)
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;
}
Regards, Ron.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
According to
http://www.tapko.de/index.php/Tools/31/0/
Your values are: (or should be):
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
Regards, Ron.
Re: Domotiga and KNX/EIB configure problem
Hi Ron,
yes, your values are the right I think we have between 22-24 Celsius .
Is possible correct this? Thank you.
yes, your values are the right I think we have between 22-24 Celsius .
Is possible correct this? Thank you.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Domotiga and KNX/EIB configure problem
I have fixed the temperature calculation bug in revision 543, can you verify the readouts?
Regards, Ron.