<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HIDEN.org &#187; Uncategorized</title>
	<atom:link href="http://hiden.org/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://hiden.org</link>
	<description>EDV mit System</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:33:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux talking Modbus</title>
		<link>http://hiden.org/uncategorized/linux-talking-modbus/</link>
		<comments>http://hiden.org/uncategorized/linux-talking-modbus/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 16:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hiden.org/?p=329</guid>
		<description><![CDATA[Whenever you need to talk with a ModBus device, take look at ModPoll. ModPoll runs on virtually any Platform and is able to talk over RS232, RS485 and TCP. The only drawback is that it can only read data (but not write).
The Advantech Adam 6015 has 7 input channels for use with Pt100 and others. [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever you need to talk with a ModBus device, take look at <a href="http://www.modbusdriver.com/modpoll.html">ModPoll</a>. ModPoll runs on virtually any Platform and is able to talk over RS232, RS485 and TCP. The only drawback is that it can only read data (but not write).</p>
<p><a href="http://hiden.org/wp-content/uploads/2010/06/ADAM_6015_g.jpg"><img class="alignleft size-medium wp-image-331" title="ADAM_6015_g" src="http://hiden.org/wp-content/uploads/2010/06/ADAM_6015_g-248x300.jpg" alt="" width="248" height="300" /></a>The Advantech Adam 6015 has 7 input channels for use with Pt100 and others. You can configure the module using a proprietary Windows Software where you can set the type of thermocouple as well as the module&#8217;s IP address. Once the module is available on your network you can create a small bash script to retrieve the values.<span id="more-329"></span></p>
<p>Take care when assembling the sensors. The Adam6015 has 7 input channels but only 6 COM clips. You have to use the COM clip #6 for #7 too. And this is not noted in the manual.</p>
<p>The script below now connects to the device using modpoll from the link above, extracts the 7 data channels including a 8th average channel and writes them to stdout.<br />
Although the manual states that the values are available starting on address 40000 you have to start at address 1.</p>
<p>The values you receive are 16bit Integers. When your sensor now has a range of -50°C to 150°C you have to calculate them by<br />
TempRange/2¹⁶*Value-50</p>
<p>Ok, I know that the bash script below is NOT state of the art, but it works <img src='http://hiden.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<pre>
<pre>#!/bin/bash

rm /tmp/ad6015
rm /tmp/ad6015err
modpoll -mtcp -r1 -c9 -1 192.168.6.220 2&gt; /tmp/ad6015err &gt; /tmp/ad6015
errsize=`stat -c %s /tmp/ad6015err`
if [ "$errsize" = "0" ]; then

out=`cat /tmp/ad6015|grep "\[1\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f1=${out:0:6}

out=`cat /tmp/ad6015|grep "\[2\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f2=${out:0:6}

out=`cat /tmp/ad6015|grep "\[3\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f3=${out:0:6}

out=`cat /tmp/ad6015|grep "\[4\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f4=${out:0:6}

out=`cat /tmp/ad6015|grep "\[5\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f5=${out:0:6}

out=`cat /tmp/ad6015|grep "\[6\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f6=${out:0:6}

out=`cat /tmp/ad6015|grep "\[7\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
f7=${out:0:6}

out=`cat /tmp/ad6015|grep "\[9\]:"`
out=${out#*:}
out=$(echo "200/65536*$out-50"|bc -l)
fa=${out:0:6}

echo "F1|"$f1
echo "F2|"$f2
echo "F3|"$f3
echo "F4|"$f4
echo "F5|"$f5
echo "F6|"$f6
echo "F7|"$f7
echo "AVG|"$fa

fi
</pre>
</pre>
<img src="http://hiden.org/wp-content/plugins/pixelstats/trackingpixel.php?post_id=329&amp;ts=1280502353" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://hiden.org/uncategorized/linux-talking-modbus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Friend and the fight against a foreign Digicam</title>
		<link>http://hiden.org/uncategorized/a-friend-and-the-fight-against-a-foreign-digicam/</link>
		<comments>http://hiden.org/uncategorized/a-friend-and-the-fight-against-a-foreign-digicam/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 15:41:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hiden.org/?p=327</guid>
		<description><![CDATA[Just in case you have a friend that looses the fight against a foreign digicam and accidentially deletes all pictures&#8230;&#8230;.
Then you should be able to give him the link to http://www.cgsecurity.org
Because TestDisk is a outstanding piece of software that is able to recover really almost everything  
]]></description>
			<content:encoded><![CDATA[<p><a href="http://hiden.org/wp-content/uploads/2010/06/jaguar.jpg"><img class="alignleft size-medium wp-image-337" title="jaguar" src="http://hiden.org/wp-content/uploads/2010/06/jaguar-300x182.jpg" alt="" width="300" height="182" /></a>Just in case you have a friend that looses the fight against a foreign digicam and accidentially deletes all pictures&#8230;&#8230;.</p>
<p>Then you should be able to give him the link to <a href="http://www.cgsecurity.org">http://www.cgsecurity.org</a><br />
Because TestDisk is a outstanding piece of software that is able to recover really almost everything <img src='http://hiden.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<img src="http://hiden.org/wp-content/plugins/pixelstats/trackingpixel.php?post_id=327&amp;ts=1280502353" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://hiden.org/uncategorized/a-friend-and-the-fight-against-a-foreign-digicam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Google Toilet</title>
		<link>http://hiden.org/uncategorized/the-google-toilet/</link>
		<comments>http://hiden.org/uncategorized/the-google-toilet/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 18:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hiden.org/?p=298</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/hrontojPWEE&#038;hl=de_DE&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hrontojPWEE&#038;hl=de_DE&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<img src="http://hiden.org/wp-content/plugins/pixelstats/trackingpixel.php?post_id=298&amp;ts=1280502353" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://hiden.org/uncategorized/the-google-toilet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	<img style='margin:0;padding:0;border:0;' width='1px' height='1px' src="http://hiden.org/wp-content/plugins/mystat/mystat.php?act=time_load&id=54327&rnd=1496876896" /></channel>
</rss>
