This page last changed on Feb 26, 2012 by kenta.

Hi, I have a minor problem. I get different values ​​in the ETS and OR.

I have create a KNX command "status" with DPT 5.001, the group address to the fan of my heat exchanger and bind it to a level sensor, then a label to display the value.

If I set the fan speed to 55% in the control panel (to the heat exchanger), I can read 55% in ETS, but OR shows 54%

The heat exchanger sends (55%) 8Ch -> 140 x (100/255) = 54.90196...., ETS shows 55% and OR shows 54%.

I don't know if it can be of any help, but here is some readings I made in ETS and OR (I send a hex value and read it in ETS and OR).

Hex ETS% OR%

1 0 0
2 1 0
3 1 1
4 2 1
5 2 1
6 2 2
7 3 2
8 3 3
9 4 3
A 4 3
B 4 4
C 5 4
D 5 5
E 5 5
F 6 5
10 6 6
11 7 6
12 7 7
13 7 7
14 8 7
15 8 8
16 9 8
17 9 9
18 9 9
19 10 9
1A 10 10
1B 11 10
1C 11 10
1D 11 11
1E 12 11
.
.
8B 55 54
8C 55 54
8D 55 55
.
.
/Kenneth


Unsigned8Bit.class (application/octet-stream)

Which version of the controller are you using?
There is a new version which has a lot KNX fixes: http://sourceforge.net/projects/openremote/files/For%20Developers/OpenRemote-Controller-2.0.0_SNAPSHOT_20120103.zip/download

Posted by mredeker at Feb 25, 2012 08:19

Thanks

I´m using the new version.

/Kenneth

Posted by kenta at Feb 25, 2012 09:06

It couldn´t be that you take the integer Instead of rounding?

Posted by kenta at Feb 26, 2012 06:56

Level sensor is indeed an integer
Please try a custom sensor with state values attached. You will then receive the not rounded value as string.

Posted by mredeker at Feb 26, 2012 09:21

Thank you Marcus.

I tried a custom sensor, but I didn´t get it to work. I got this error message in the controller.

Controller 2012-02-27 08:27:30,769 ERROR [Polling sensor Thread ID
= 'test'] org.openremote.controller.bootstrap.Startup $ Log4jRedirect.

Implementation error in protocol handler FRAME L_Data.req 0.0.0
Data: 0x00: unrecognized data point type 5001 on CUSTOM sensor.
java.lang.Error: unrecognized data point type 5001 CUSTOM one sensor.

But, I'm not sure I managed to explain what I meant (sorry for my english).

I want an integer value (0-100) (DPT5.001). My problem is that I get different values ​​in ETS and in OR, as in the example.
"The heat exchanger sends (55%) in hex "8C", the exact value is = 140 x (100/255) = 54.90196 .... ETS shows 55% and OR shows 54%."
What I meant was that it looks like that OR just takes the integer value (54) and skips the decimals, while ETS rounds 54.90196 .... to 55.

/Kenneth

Posted by kenta at Feb 27, 2012 08:34

The error looks like you forgot the "." when entering the DPT in the command (5001 instead 5.001).
We will have to take a look at the rounding issue.

Posted by mredeker at Feb 27, 2012 08:38

Tanks

Strange! The "." must have disappeared when I did the copy and paste. The error log is with the "."

Controller 2012-02-27 08:27:30,769 ERROR [Polling Sensor Thread ID
='test'] org.openremote.controller.bootstrap.Startup$Log4jRedirect.
Implementation error in protocol handler FRAME L_Data.req 0.0.0
Data: 0x00 : Unrecognized datapoint type 5.001 on CUSTOM sensor.
java.lang.Error: Unrecognized datapoint type 5.001 on CUSTOM sensor.

Posted by kenta at Feb 27, 2012 12:53

Ok, I just checked the source. Custom sensor indeed does not support DPT 5.001.
Could you try with the range sensor instead the level sensor. See if that returns the same value.

Posted by mredeker at Feb 27, 2012 13:32

I tested with a range sensor instead, but I got the same values.

Posted by kenta at Feb 27, 2012 14:06

Kenneth,

Thanks for sending the ETS numbers for comparison, that was very helpful.

I've patched things to round up, could you please confirm (I don't have KNX to test with) the attached patch.

You should be able to do a drop-in replacement of attached Unsigned8Bit.class to OpenRemote-Controller/webapps/controller/WEB-INF/classes/org/openremote/controller/protocol/knx/datatype/Unsigned8Bit.class

Thanks for reporting this issue.

Unsigned8Bit.class

(I've confirmed the issue and fix with tests but not with a physical KNX installation)

– Juha

Posted by juha at Mar 04, 2012 19:14

Thanks Juha!

I've tried the patch and it works perfect.

(You do not have time to take a look at the issue of minus degrees and DPT. 9001 too?)

/Kenneth

Posted by kenta at Mar 05, 2012 10:21

Yes, will patch it today and send the patch for testing with ETS.

Posted by juha at Mar 06, 2012 09:12
Document generated by Confluence on Jun 05, 2016 09:31