This page last changed on Aug 16, 2014 by tommi.

Hi all,
Ii have problem with reading temperatures on my 1-wire network.
I have 3-temperature sensors and one relay switch,
configuring in the same way as in the manual Manual relay works fine but temperature shows N/A
any advise? what to check, what to change?
Thank you in advance
Rgds
Tomasz

Do you see something in the log files?

Posted by mredeker at Aug 17, 2014 14:14

only:
(1-WIRE): Unable to read from OWSERVER.
org.owfs.jowfsclient.OwfsException: Error received
at org.owfs.jowfsclient.internal.OwfsClientImpl.readPacket(OwfsClientImpl.java:576)
at org.owfs.jowfsclient.internal.OwfsClientImpl.read(OwfsClientImpl.java:314)
at org.openremote.controller.protocol.onewire.OneWireCommand.read(OneWireCommand.java:139)
at org.openremote.controller.protocol.onewire.OneWireCommand.run(OneWireCommand.java:214)
at java.lang.Thread.run(Thread.java:745)

but in the same time PIO.A and PIO.B 0/1 status read/write to relay works fine.

Posted by tommi at Aug 17, 2014 19:23

Can you connect with owhttp and read the value?
The read command returns an exception. Did you check the address (maybe a space at the end) ?

Posted by mredeker at Aug 17, 2014 21:40

owhttp works fine, address checked, alias checked,
if i "ask" for value for "power" it returns correct value "1"
temperature, temperature10, temperature11, temperature12, temperature9 returns n/a

Posted by tommi at Aug 17, 2014 22:46

Could you try without alias?

Posted by mredeker at Aug 18, 2014 08:34

already try, no change.

Posted by tommi at Aug 18, 2014 09:42

I am running out of ideas.
What devices do you use?

Posted by mredeker at Aug 18, 2014 10:01

Synology disk station ds213
Interface on ds9097u / DS2401
3x temperature sensor DS18B20
1x relay DS2413
All works fine on Win7 (one wire reader) openWRT on router, and eaven on the same Synology I have put www with temperature measurements and works fine. all works accept reding temp on openremote.

Posted by tommi at Aug 18, 2014 10:31

Which OpenRemote version?
Which version of owserver ?

Posted by mredeker at Aug 18, 2014 11:19

OpenRemote: 2.0.1-0008
owfs 2.8p20
this is what i see in packages in the synology,

I can read temp. from 1-wire reader on the android.

notice that sometime is shows some readings but only when it reach "full" temp so 24 is visible in openremote but 24.1 no...

Posted by tommi at Aug 18, 2014 14:13

If it shows 24 but not 24.1, it might be that your label is too small. Make it wider and test again.

Not sure how the different console implementations deal with that but I've seen issues similar to this.

Posted by ebariaux at Aug 18, 2014 16:45

Updated to OpenRemote – Version 2.14.0
no change

Posted by tommi at Aug 20, 2014 19:26

What do you mean with "1-wire reader on android"? Do you use OpenRemote console on android or another tool to conenct to owserver?

Posted by mredeker at Aug 21, 2014 09:41

Different tool to connect to owserver.
owserver is hosted on the same machine on which there is openremote.

Posted by tommi at Aug 21, 2014 09:55

ok. the only idea left would be that the java library that comes with OR has a problem with your owserver version.
Could you downgrade to an earlier version of owserver eg. 2.8p13 ?

Posted by mredeker at Aug 21, 2014 10:14

Did you try Tom's Kucharski version of the controller? It has rewritten OneWire commands. Here you have some details: http://www.openremote.org/display/forums/Extended+OneWire+support and the SVN repo: https://svn.code.sf.net/p/openremote/code/workspace/tkucharski/Controller_2_1_0_FM_20130617_OneWire. Once I started using it, all my OneWire problems have gone.

Posted by druciak at Aug 21, 2014 20:04

Noob question, how to install it on running instance without errors?

Posted by tommi at Aug 21, 2014 20:43

You just need to build this version from the sources (or get binaries from somebody), replace controller installation with the built one and synchronize again with your online design.

Posted by druciak at Aug 21, 2014 21:15

Changed log level to Debug and I can see now:
DEBUG 2014-09-02 09:21:56,983 (1-WIRE): 1-Wire sensor /3A.6BF114000000/PIO.A value is going to be read.
DEBUG 2014-09-02 09:21:56,984 (1-WIRE): Client created, before call
DEBUG 2014-09-02 09:21:56,985 (1-WIRE): 1-Wire sensor /3A.6BF114000000/PIO.B value is going to be read.
DEBUG 2014-09-02 09:21:56,986 (1-WIRE): Client created, before call
DEBUG 2014-09-02 09:21:56,988 (1-WIRE): After client call, value = '0'
DEBUG 2014-09-02 09:21:56,989 (1-WIRE): Sensor /3A.6BF114000000/PIO.B returns value '0'
DEBUG 2014-09-02 09:21:56,991 (1-WIRE): After client call, value = '0'
DEBUG 2014-09-02 09:21:56,991 (1-WIRE): Sensor /3A.6BF114000000/PIO.A returns value '0'
DEBUG 2014-09-02 09:21:57,064 (1-WIRE): After client call, value = ' 24.9375'
DEBUG 2014-09-02 09:21:57,064 (1-WIRE): Sensor /28.5E85CE040000/temperature returns value '24.9375'
DEBUG 2014-09-02 09:21:57,993 (1-WIRE): 1-Wire sensor /3A.6BF114000000/PIO.B value is going to be read.
DEBUG 2014-09-02 09:21:57,994 (1-WIRE): Client created, before call
DEBUG 2014-09-02 09:21:57,995 (1-WIRE): 1-Wire sensor /3A.6BF114000000/PIO.A value is going to be read.
DEBUG 2014-09-02 09:21:57,995 (1-WIRE): Client created, before call
DEBUG 2014-09-02 09:21:57,998 (1-WIRE): After client call, value = '0'
DEBUG 2014-09-02 09:21:58,052 (1-WIRE): Sensor /3A.6BF114000000/PIO.A returns value '0'
DEBUG 2014-09-02 09:21:58,023 (1-WIRE): 1-Wire sensor /28.6B47CD040000/temperature value is going to be read.
DEBUG 2014-09-02 09:21:58,053 (1-WIRE): Client created, before call
DEBUG 2014-09-02 09:21:58,000 (1-WIRE): After client call, value = '0'
DEBUG 2014-09-02 09:21:58,053 (1-WIRE): Sensor /3A.6BF114000000/PIO.B returns value '0'
DEBUG 2014-09-02 09:21:58,864 (1-WIRE): After client call, value = ' 25.8125'
DEBUG 2014-09-02 09:21:58,864 (1-WIRE): Sensor /28.6B47CD040000/temperature returns value '25.8125'

So it runs, it shows values but not on the label field.
Any Hint?

Posted by tommi at Sep 02, 2014 08:37

Like Eric said, it could be the label field which displays the temperature is not wide enough.
Try to increase the width of the label field in the designer.

Posted by mredeker at Sep 02, 2014 10:10

What type of openremote sensor did you use? Custom?

Posted by pz1 at Sep 02, 2014 10:17

problem solved, have no idea how because I have made too many things already, replaced .class files from archive, made a rule for custom format and it is ok now.

Posted by tommi at Sep 02, 2014 21:18
Document generated by Confluence on Jun 05, 2016 09:34