<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=107&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=107"/>
	<updated>2016-04-20T09:35:05Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=107</id>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=499#p499"/>
		<content type="html"><![CDATA[<p>I just received the non parasitic version of the same sensor today. <br />After swapping this out and updating the serial number, it now works flawlessly.<br />Thank you so much for your expertise and advise in getting this resolved, I really appreciate it</p><p>Darren</p>]]></content>
		<author>
			<name><![CDATA[darren.macleod@internode.on.net]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=53</uri>
		</author>
		<updated>2016-04-20T09:35:05Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=499#p499</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=479#p479"/>
		<content type="html"><![CDATA[<p>Yes, these were the conclusions I ended up with. I recommend </p><ul><li><p>switching to powered DS18B20, or</p></li><li><p>switching to dedicated 1-Wire master (I2C or USB) if you insist on using parasitic power</p></li></ul><p>If neither of these is an option for you, you can write e.g. a Python script which will parse the /sys/bus/w1/... files and store the temperatures in files on a disk (preferably ramdisk/tmpfs). These can be read into REX algorithm using SILO blocks.</p><p>Hope this helps!</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-04-15T15:32:22Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=479#p479</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=475#p475"/>
		<content type="html"><![CDATA[<p>It looks like the sensor is working, however only using kernel mode. The sensor I am using is a DS18S20-PAR which only supports parasitic power. I have edited the boot config to include pullup=yes, which has now provided consistently reliable readings in w1 kernel mode. When I try this using the owserver and I get inconsistent, unusable results.<br />jaroslav_sobota, I am wondering if this is similar to the results that you have had using parasitic power?<br />Does the owserver have compatibility issues with this model sensor?</p><br /><br /><p>pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />ServerRead: Data error on /10.2af1e6020800/temperature12<br />pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />ServerRead: Data error on /10.2af1e6020800/temperature12<br />pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />ServerRead: Data error on /10.2af1e6020800/temperature12<br />pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />ServerRead: Data error on /10.2af1e6020800/temperature12<br />pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@rasp<br />pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />ServerRead: Data error on /10.2af1e6020800/temperature12<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />2f 00 4b 46 ff ff 02 10 9f : crc=9f YES<br />2f 00 4b 46 ff ff 02 10 9f t=23625<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />2f 00 4b 46 ff ff 02 10 9f : crc=9f YES<br />2f 00 4b 46 ff ff 02 10 9f t=23625<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />2f 00 4b 46 ff ff 02 10 9f : crc=9f YES<br />2f 00 4b 46 ff ff 02 10 9f t=23625<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />36 00 4b 46 ff ff 10 10 df : crc=df YES<br />36 00 4b 46 ff ff 10 10 df t=26750<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />39 00 4b 46 ff ff 08 10 bf : crc=bf YES<br />39 00 4b 46 ff ff 08 10 bf t=28250<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />39 00 4b 46 ff ff 07 10 a7 : crc=a7 YES<br />39 00 4b 46 ff ff 07 10 a7 t=28312<br />pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />37 00 4b 46 ff ff 01 10 b4 : crc=b4 YES<br />37 00 4b 46 ff ff 01 10 b4 t=27687</p>]]></content>
		<author>
			<name><![CDATA[darren.macleod@internode.on.net]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=53</uri>
		</author>
		<updated>2016-04-14T22:52:46Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=475#p475</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=470#p470"/>
		<content type="html"><![CDATA[<p>Hi Darren,<br />is your sensor powered and is it wired up correctly? 85 degrees is the startup value of the sensor, which in your case indicates that no temperature conversion was performed yet (typically due to insufficient power). </p><p>So far I was not successful setting up 1-Wire parasitic mode on the GPIO pins of Raspberry Pi.</p><p>If you have your sensor powered and still get the 85 deg reading then I would say the sensor is faulty.</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-04-13T11:24:44Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=470#p470</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=469#p469"/>
		<content type="html"><![CDATA[<p>Thanks,<br />I am now starting to suspect a faulty sensor as I am now getting results with both methods, however it is showing 85 degrees for both?<br />if I hold my finger over the sensor it still stays at 85</p><p>pi@raspberrypi:~ $ owread /10.2af1e6020800/temperature12<br />&#160; &#160; &#160; &#160; &#160; 85pi@raspberrypi:~ $ cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave<br />aa 00 4b 46 ff ff 0c 10 87 : crc=87 YES<br />aa 00 4b 46 ff ff 0c 10 87 t=85000</p>]]></content>
		<author>
			<name><![CDATA[darren.macleod@internode.on.net]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=53</uri>
		</author>
		<updated>2016-04-13T08:04:32Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=469#p469</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=458#p458"/>
		<content type="html"><![CDATA[<p>Hi Darren,<br />I updated the previous post with correct command. From the command line, you can read the temperature via owserver using</p><div class="codebox"><pre><code>owread /10.2af1e6020800/temperature12</code></pre></div><p>or via w1 kernel module</p><div class="codebox"><pre><code>cat /sys/bus/w1/devices/10-000802e6f12a/w1_slave</code></pre></div><p>In the REX control algorithm, you can only read data via the owserver, therefore you have to use /10.2af1e6020800/temperature12 in the 1-Wire driver configuration.</p><p>The owdir command does not work with w1 kernel module in the current version of Raspbian and this is not something we can influence. The command &quot;freezes&quot; for couple minutes and then returns no sensors. You can either compile newest version of owserver (OWFS), where this bug is fixed or read the device ID from /sys/bus/w1/devices/. In the latter case, <strong>NOTE the reversed order of bytes in the ID when using the two approaches to read the temperature.</strong></p><p>Hope this helps!</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-04-12T13:08:21Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=458#p458</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=450#p450"/>
		<content type="html"><![CDATA[<p>Hi Tomas,<br />I have tried the setup on &quot;OW Driver Documentation&quot;, however when I edit the owfs.conf to include &quot;i2c=ALL:ALL&quot; I get no response to the owdir command. if I change this to server: w1 as per the &quot;getting started with Rex on Raspberry Pi&quot; after a while I get the following response from the owdir command</p><p>/bus.1<br />/bus.0<br />/uncached<br />/settings<br />/system<br />/statistics<br />/structure</p><p>as you can see there is no ow device detected here, but if do a ls /sys/bus/w1/devices command I get the following. </p><p>pi@raspberrypi:~ $ ls /sys/bus/w1/devices<br />10-000802e6f12a&#160; w1_bus_master1</p><p>so I am not sure if this is working or not.<br />I have followed the setup step by step in the &quot;Getting started with Rex on Raspberry Pi&quot; chapter 5<br />I have tried combinations of &quot;backwards by pairs&quot; syntax</p><p>pi@raspberrypi:~ $&#160; ls /sys/bus/w1/devices<br />10-000802e6f12a&#160; w1_bus_master1<br />pi@raspberrypi:~ $ owread 10-000802e6f12a<br />ServerRead: Data error on 10-000802e6f12a<br />pi@raspberrypi:~ $ owread 10.000802e6f12a<br />ServerRead: Data error on 10.000802e6f12a<br />pi@raspberrypi:~ $ owread 10-2af1e6020800<br />ServerRead: Data error on 10-2af1e6020800<br />pi@raspberrypi:~ $ owread 10.2af1e6020800<br />ServerRead: Data error on 10.2af1e6020800<br />pi@raspberrypi:~ $</p><p>still no luck</p>]]></content>
		<author>
			<name><![CDATA[darren.macleod@internode.on.net]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=53</uri>
		</author>
		<updated>2016-04-11T22:57:21Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=450#p450</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=444#p444"/>
		<content type="html"><![CDATA[<p>Hello again,</p><p>I asked my colleague about your OW issue and he advised to read the temperature this way:</p><div class="codebox"><pre><code>owread /10.2af1e6020800/temperature12</code></pre></div><p>(it is the ID you get by ls /.../w1/devices but written backwards by pairs)</p><p>For more information refer to <a href="https://www.rexcontrols.com/media/DOC/ENGLISH/REX_Getting_Started_RasPi_ENG.pdf" rel="nofollow">Getting started with REX on Raspberry Pi </a> - part 5.2.2 Software connection of the sensor</p><p>Have a nice day, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-04-11T15:47:17Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=444#p444</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=442#p442"/>
		<content type="html"><![CDATA[<p>Hello Darren,</p><p>did you install &quot;owserver&quot;? See <a href="https://www.rexcontrols.com/media/DOC/ENGLISH/OwsDrv_ENG.pdf" rel="nofollow">OW Driver documentation</a> and go through - hope you will find some valuable information for you.</p><p>If you have any further question, feel free to let us know.</p><p>Good luck, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-04-11T07:35:07Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=442#p442</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Reading 1-Wire temperature sensor in REX (via w1 kernel module)]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=437#p437"/>
		<content type="html"><![CDATA[<p>I don&#039;t seem to be able to get the OW Temp sensor working. <br />if I log into the Pi, I can see the sensor however I get an error when trying to read the temperature</p><p>pi@raspberrypi:~ $ ls /sys/bus/w1/devices<br />10-000802e6f12a&#160; w1_bus_master1<br />pi@raspberrypi:~ $ owread /10-000802e6f12a/temperature12<br />ServerRead: Data error on /10-000802e6f12a/temperature12<br />pi@raspberrypi:~ $</p>]]></content>
		<author>
			<name><![CDATA[darren.macleod@internode.on.net]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=53</uri>
		</author>
		<updated>2016-04-11T04:39:12Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=437#p437</id>
	</entry>
</feed>
