<?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>Silly Science &#187; monitor</title>
	<atom:link href="http://www.silly-science.co.uk/tag/monitor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.silly-science.co.uk</link>
	<description>Electronics, Programming and Hacking About</description>
	<lastBuildDate>Sat, 17 Jul 2010 14:14:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Energy Monitor &#8211; part 2</title>
		<link>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/</link>
		<comments>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 00:04:41 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[uart]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=47</guid>
		<description><![CDATA[So, now I hopefully(!) have my cable which will give me access to the UART RX of the CC128 energy monitor. Time to try it out and begin processing some data with it! Firstly, I go to the XMOS website and get the UART code and play around with it to create the UART code [...]]]></description>
			<content:encoded><![CDATA[<p>So, now I hopefully(!) have my cable which will give me access to the UART RX of the CC128 energy monitor. Time to try it out and begin processing some data with it!</p>
<p>Firstly, I go to the <a title="XMOS 2 thread UART code" href="http://www.xmos.com/applications/comms/uart-two-threads" target="_blank">XMOS website and get the UART code</a> and play around with it to create the UART code I want (RX only at the moment), compile it and give it a run.</p>
<p>But it&#8217;s never that simple! All I get are null characters. Odd I think &#8211; so I recheck the wiring, recheck the code. All seems to be ok.<br />
<span id="more-47"></span><br />
So I strip down the code to a really simple function- one that just receives a character and prints it out (see the <a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/super_simple_uart_rx.xc">Super Simple UART receive function</a> source file)</p>
<p>I still get null characters &#8211; maybe I got the wrong pins? Check again&#8230; nope, seems fine. So I decide its time to void the warranty (follow these <a title="Current Cost 'Envi' CC128 teardown" href="http://www.silly-science.co.uk/2010/03/04/current-cost-envi-cc128-teardown/" target="_blank">CC128 teardown instructions</a> at your own risk!).</p>
<p>Turns out there is a bit of solder between a via into the ground plane and the UART TX pin on the RJ45 connector (pin 8). After removing this I connected the XC-3 back up to the device and wah lah- it gives me the first character (a &#8216;&lt;&#8217;) of the XML data string.</p>
<p>Now to get the whole string out &#8211; so off I go to re-implement the more complex UART code.</p>
<p>After some battling I got it running!</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/uart_working.jpg"><img class="aligncenter size-medium wp-image-65" title="UART Data RX working" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/uart_working-300x187.jpg" alt="UART Data RX working" width="300" height="187" /></a>The output looks like the following is in line with the <a title="CC128 Energy Monitor XML Documentation" href="http://www.currentcost.com/cc128/xml.htm" target="_blank">CC128 XML documentation</a>.</p>
<p>Next time&#8230; parse the XML and output to somewhere a little more useful!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/05/energy-monitor-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Energy Monitor &#8211; Part 1</title>
		<link>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/</link>
		<comments>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 23:20:59 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Energy Monitoring]]></category>
		<category><![CDATA[energy monitoring]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[soldering]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=37</guid>
		<description><![CDATA[My energy monitor arrived today! It&#8217;s working well &#8211; I was slightly worried about how good the reception would be for the transmitter, but I am pleasantly surprised that even with the receiver 3 floors above the transmitter it seems to register a good signal. But that&#8217;s boring &#8211; time to start hacking! So, first thing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04890_small.jpg"><img class="alignright size-medium wp-image-38" title="Energy Monitor Display" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04890_small-213x300.jpg" alt="Energy Monitor Display" width="149" height="210" /></a>My energy monitor arrived today! It&#8217;s working well &#8211; I was slightly worried about how good the reception would be for the transmitter, but I am pleasantly surprised that even with the receiver 3 floors above the transmitter it seems to register a good signal.</p>
<p>But that&#8217;s boring &#8211; time to start hacking!</p>
<p>So, first thing I need is the interface cable. The back of the unit has a handy RJ45 connector that has serial in it (see my <a title="Energy Monitoring Ideas post" href="http://www.silly-science.co.uk/2010/02/25/energy-monitoring/" target="_blank">initial energy monitoring post</a>). This needs connecting to my XC-3 kit so that I can begin to get the data out of it. So time to get the soldering iron out!</p>
<p><span id="more-37"></span>So, initially all I need are two wires from the RJ45 network cable (standard network wiring configuration)-</p>
<ul>
<li>Brown = the UART transmit (from the energy monitor)</li>
<li>Blue = ground</li>
</ul>
<p>I soldered the rest of them onto the strip board in case I wish to use them later and it keeps things neat and tidy.</p>
<p>For the moment I am using the the GPIO port on the XC-3, using pin 1 for a 1 bit port (XCore UART RX) and pin 16 is ground. This should give a good base from which to work. Eventually I would like to put it on the LED connectors to keep the GPIO free. The other bonus of using the LED connector is that the output side is buffered up to 5V which is what the UART on the energy monitor needs &#8211; though I think I will have a check of the Microchip PIC they use inside and see if it will take 3.3V logic levels.</p>
<p>Next time&#8230; getting data into the XC-3</p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04887_small.jpg"><img class="aligncenter size-medium wp-image-39" title="XC-3 and the connection strip board" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04887_small-300x200.jpg" alt="XC-3 and the connection board" width="300" height="200" /></a></p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04888_small.jpg"><img class="aligncenter size-medium wp-image-40" title="Stripboard &quot;Connector&quot;" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04888_small-300x200.jpg" alt="Stripboard &quot;Connector&quot;" width="300" height="200" /></a></p>
<p><a href="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04889_small.jpg"><img class="aligncenter size-medium wp-image-41" title="XC-3 Connection" src="http://www.silly-science.co.uk/wp-content/uploads/2010/03/DSC04889_small-300x200.jpg" alt="XC-3 Connection" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2010/03/03/energy-monitor-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedded Traffic Monitor</title>
		<link>http://www.silly-science.co.uk/2009/12/21/embedded-traffic-monitor/</link>
		<comments>http://www.silly-science.co.uk/2009/12/21/embedded-traffic-monitor/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 13:40:04 +0000</pubDate>
		<dc:creator>silly-scientist</dc:creator>
				<category><![CDATA[Embedded Network Monitor]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[i2c]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[spi]]></category>
		<category><![CDATA[vfd]]></category>
		<category><![CDATA[xc-3]]></category>
		<category><![CDATA[xmos]]></category>

		<guid isPermaLink="false">http://www.silly-science.co.uk/?p=3</guid>
		<description><![CDATA[This is the initial release of the embedded traffic monitor which I implemented on an XMOS XC-3 development kit. It has a 256&#215;32 VFD attached to it with a custom board that was designed from another application (hence the buttons/IR sensor you&#8217;ll notice if you are observant). Full source code is available from the embedded [...]]]></description>
			<content:encoded><![CDATA[<p>This is the initial release of the <a title="Embedded Traffic Monitor (Sourceforge)" href="http://sourceforge.net/projects/embeddednetmon/" target="_blank">embedded traffic monitor</a> which I implemented on an XMOS XC-3 development kit. It has a <a title="256x32 VFD Datasheet" href="http://www.farnell.com/datasheets/14280.pdf" target="_blank">256&#215;32 VFD</a> attached to it with a custom board that was designed from another application (hence the buttons/IR sensor you&#8217;ll notice if you are observant). Full source code is available from the <a title="XC-3 embedded traffic monitor sourceforge page" href="http://sourceforge.net/projects/embeddednetmon/" target="_blank">embedded traffic monitor sourceforge page</a>.</p>
<p>More information and pictures after the break&#8230;</p>
<p><span id="more-3"></span></p>
<p>The basic premise of the system is that data comes in and then goes out the other side (to general traffic the device looks like a wire) and information about that traffic collected on its way through (so at the moment it just looks at packet byte length). The data is then aggregated appropriately with the throughput being averaged over a second (sample at an interval of 100mS).</p>
<p>The information as well as being displayed on screen (via a simple I2C bus) is stored to an SPI flash once every 10s. This is so that if power is lost then the logged data is not.</p>
<p>Current Feature Summary:</p>
<ul>
<li>Dual MII ethernet interface</li>
<li>I2C VFD for showing the resulting information</li>
<li>Saving of data to on-board SPI flash memory</li>
</ul>
<p>Future features:</p>
<ul>
<li>Internal switch for custom applications (so you can access the device over IP)</li>
<li>A web interface to allow a user to reset stored data and maybe produce a SVG graph?</li>
<li>Change display for lower cost, lower power OLED? (Farnell order code: 1498842)</li>
</ul>
<p>And some pictures:</p>
<div id="attachment_6" class="wp-caption aligncenter" style="width: 394px"><a href="http://www.silly-science.co.uk/wp-content/uploads/2009/12/screenshot0.jpg"><img class="size-full wp-image-6 " title="XC-3 Network Monitor and Display" src="http://www.silly-science.co.uk/wp-content/uploads/2009/12/screenshot0.jpg" alt="XC-3 Network Monitor and Display" width="384" height="257" /></a><p class="wp-caption-text">XC-3 Network Monitor and Display</p></div>
<div id="attachment_5" class="wp-caption aligncenter" style="width: 394px"><a href="http://www.silly-science.co.uk/wp-content/uploads/2009/12/screenshot1.jpg"><img class="size-full wp-image-5 " title="Network Monitor Display" src="http://www.silly-science.co.uk/wp-content/uploads/2009/12/screenshot1.jpg" alt="Network Monitor Display showing a graph and data rates" width="384" height="257" /></a><p class="wp-caption-text">Network Monitor Display showing a graph and data rates</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.silly-science.co.uk/2009/12/21/embedded-traffic-monitor/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
