<?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>Maartendamen&#039;s blog</title>
	<atom:link href="http://www.maartendamen.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maartendamen.com</link>
	<description>Blogging on various IT subjects</description>
	<lastBuildDate>Tue, 08 May 2012 19:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Convenience feature</title>
		<link>http://www.maartendamen.com/2012/05/convenience-feature/</link>
		<comments>http://www.maartendamen.com/2012/05/convenience-feature/#comments</comments>
		<pubDate>Tue, 08 May 2012 19:08:32 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[convenience]]></category>
		<category><![CDATA[feature]]></category>
		<category><![CDATA[subscribe to comments]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1290</guid>
		<description><![CDATA[I&#8217;m writing this blog post to let you know about a new convenience feature on this weblog. You can now subscribe to comments, this is especially handy if you are expecting a reply for me/others but don&#8217;t want to check this weblog on a daily basis. I got this idea while visiting Robert Hekkers&#8217; blog, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing this blog post to let you know about a new convenience feature on this weblog. You can now subscribe to comments, this is especially handy if you are expecting a reply for me/others but don&#8217;t want to check this weblog on a daily basis. I got this idea while visiting Robert Hekkers&#8217; blog, he also wrote a post about it <a href="http://blog.hekkers.net/2010/10/08/subscribing-to-comments/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/05/convenience-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smartmeter update: permanent cable</title>
		<link>http://www.maartendamen.com/2012/04/smartmeter-update-permanent-cable/</link>
		<comments>http://www.maartendamen.com/2012/04/smartmeter-update-permanent-cable/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 15:25:33 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Home automation]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[ftdi]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[rj11]]></category>
		<category><![CDATA[smartmeter]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1273</guid>
		<description><![CDATA[Today I received a FTDI DS_TTL-232R cable ($12 on ebay), this cable allowed me to create a more permanent solution for my smartmeter. Here is the old cable/test setup: And here is the new cable (I replaced the six pin female header with a RJ11 crimp connector): Onwards!]]></description>
			<content:encoded><![CDATA[<p>Today I received a FTDI <a href="http://www.ftdichip.com/Support/Documents/DataSheets/Cables/DS_TTL-232R_CABLES.pdf">DS_TTL-232R</a> cable ($12 on ebay), this cable allowed me to create a more permanent solution for my smartmeter. Here is the old cable/test setup: </p>
<p><a href="http://www.maartendamen.com/2012/04/smartmeter-update-permanent-cable/2012-04-18-17-14-13-2/" rel="attachment wp-att-1278"><img src="http://www.maartendamen.com/wp-content/uploads/2012/04/2012-04-18-17.14.131-620x486.jpg" alt="" title="2012-04-18 17.14.13" width="620" height="486" class="alignnone size-medium wp-image-1278" /></a></p>
<p>And here is the new cable (I replaced the six pin female header with a RJ11 crimp connector):<br />
<span id="more-1273"></span><br />
<a href="http://www.maartendamen.com/2012/04/smartmeter-update-permanent-cable/2012-04-18-17-13-15-2/" rel="attachment wp-att-1279"><img src="http://www.maartendamen.com/wp-content/uploads/2012/04/2012-04-18-17.13.151-620x432.jpg" alt="" title="2012-04-18 17.13.15" width="620" height="432" class="alignnone size-medium wp-image-1279" /></a></p>
<p>Onwards!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/04/smartmeter-update-permanent-cable/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New smart meter installed (Iskra ME382 and Landis + Gyr gasmeter E06140)</title>
		<link>http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/</link>
		<comments>http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 17:21:28 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Home automation]]></category>
		<category><![CDATA[HouseAgent]]></category>
		<category><![CDATA[E06140]]></category>
		<category><![CDATA[energy]]></category>
		<category><![CDATA[gas]]></category>
		<category><![CDATA[iskra me382]]></category>
		<category><![CDATA[landis+gyr]]></category>
		<category><![CDATA[p1]]></category>
		<category><![CDATA[rj11]]></category>
		<category><![CDATA[smartmeter]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1195</guid>
		<description><![CDATA[Last week Liander, one of the biggest energy network maintainers in the Netherlands installed a new smart meter at my place. Actually they installed two new meters: the Landis+Gyr E06140 to measure gas usage and the Iskra ME382 to measure electricity. Both devices are linked together and the electricity meter provides a P1 port, this [...]]]></description>
			<content:encoded><![CDATA[<p>Last week Liander, one of the biggest energy network maintainers in the Netherlands installed a new smart meter at my place. Actually they installed two new meters: the Landis+Gyr E06140 to measure gas usage and the Iskra ME382 to measure electricity. Both devices are linked together and the electricity meter provides a P1 port, this is a open and accessible port to retrieve data from the meter. More information about this P1 port can be found <a href="http://www.energiened.nl/_upload/bestellingen/publicaties/284_P1Smart%20Meter%20v2.1%20final%20P1.pdf">here</a>.<br />
Of course I couldn&#8217;t resist that P1 port, and I just had to try and get the data out! Here&#8217;s a picture of the smart meter with the P1 port annotated (click for a bigger picture):</p>
<p><a href="http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/smartmeter/" rel="attachment wp-att-1207"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/smartmeter-450x600.jpg" alt="" title="smartmeter" width="450" height="600" class="alignnone size-medium wp-image-1207" /></a><br />
<span id="more-1195"></span><br />
<strong>Hardware</strong></p>
<p>The P1 port is a RJ11 port, using the following pin out:</p>
<p><a href="http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/p1_pinout/" rel="attachment wp-att-1196"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/p1_pinout.png" alt="" title="p1_pinout" width="362" height="146" class="alignnone size-full wp-image-1196" /></a></p>
<p>I grabbed an old modem cable, with RJ11 plug and then I connected the appropriate pins to a modern devices <a href="http://shop.moderndevice.com/products/usb-bub">USB-BUB</a>. This device provides all the pins required. The request pin, as described above must be kept &#8220;HIGH&#8221; to retrieve data (i.e. provide 5V all the time). So I connected the request pin to the USb-BUB 5V. The other pins are DATA for the output, which I connected to the RX pin of the USB-BUB and GND which I obviously connected to the USB-BUB&#8217;s ground. This is a temporary solution until I get a proper 5V FTDI cable.</p>
<p>Note: to connect to the serial port, you need special port settings: 7 data bits (instead of the more regular 8) with even parity at 9600 baud.</p>
<p><strong>Software</strong></p>
<p>The P1 port uses a reversed serial protocol (1=0 and 0=1), to get this to work with a FTDI chip (this chip is used on the USB-BUB) you need to reverse the RX pin. Luckily FTDI provides a tool known as <a href="http://www.ftdichip.com/Support/Utilities.htm">FT_PROG</a> to do this. Thanks to <a href="http://www.domoticaforum.eu/viewtopic.php?f=71&#038;t=6104&#038;start=30">Verkenner</a> on the domoticaforum for figuring this one out. Here is a screenshot which shows you how to make the inverse RX setting in FT_PROG:</p>
<p><a href="http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/invert-rxd/" rel="attachment wp-att-1216"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/Invert-RXD-551x600.jpg" alt="" title="Invert RXD" width="551" height="600" class="alignnone size-medium wp-image-1216" /></a></p>
<p>After programming you can also use the same cable under Linux, which is good because I run HouseAgent on Linux. Creating a plugin for HouseAgent was an easy task, it took me roughly 1.5 hours. For those of you interested in this plugin, you can find it&#8217;s source on <a href="https://github.com/maartendamen/HouseAgent-SmartMeter">Github</a>.<br />
And because of the built in graphing capabilities of HouseAgent (the screenshot is v0.2 btw :-) ), it was easy to create a graph of the current power usage (click for larger image):</p>
<p><a href="http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/houseagent_energy-2/" rel="attachment wp-att-1250"><img src="http://www.maartendamen.com/wp-content/uploads/2012/04/houseagent_energy1-620x472.png" alt="" title="houseagent_energy" width="620" height="472" class="alignnone size-medium wp-image-1250" /></a></p>
<p>One more thing I would like is bar charts of power usage over a longer period, but this requires some modifications in HouseAgent.<br />
So there you have it, total insight on energy and gas usage!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/04/new-smart-meter-installed-iskra-me382-and-landis-gyr-gasmeter-e06140/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Installing Fusion IO driver on VMware ESXi 5 using vSphere Update Manager (VUM)</title>
		<link>http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/</link>
		<comments>http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 18:00:11 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[fusionio]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[vum]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1223</guid>
		<description><![CDATA[This blog post will describe how to install the Fusion IO driver on VMware ESXi 5 using the vSphere Update Manager. First things first, grab the latest driver from the VMware website, at the time of writing the driver is available here. Next we need to import the patch file into the vSphere Update Manager, [...]]]></description>
			<content:encoded><![CDATA[<p>This blog post will describe how to install the <a href="http://www.fusionio.com/platforms/iodrive/">Fusion IO</a> driver on VMware ESXi 5 using the vSphere Update Manager. First things first, grab the latest driver from the VMware website, at the time of writing the driver is available <a href="http://downloads.vmware.com/d/details/dt_esx50_fusionio_blockiomemoryvsl_23954/dHRAYndlamRiZHAlJQ==">here</a>.</p>
<p>Next we need to import the patch file into the vSphere Update Manager, the patch file is included into the downloaded zip file. It should be named: iomemory-vsl-2.3.9.54-offline_bundle-632012.zip. From the vSphere Update Manager click the &#8220;Import Patches&#8221; link:</p>
<p><a href="http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/import_patch/" rel="attachment wp-att-1224"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/import_patch.png" alt="" title="import_patch" width="235" height="141" class="alignnone size-full wp-image-1224" /></a></p>
<p><span id="more-1223"></span></p>
<p>Follow the steps in the wizard, after that the patch should be visible in the repository:</p>
<p><a href="http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/patch_repository/" rel="attachment wp-att-1225"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/patch_repository.png" alt="" title="patch_repository" width="611" height="118" class="alignnone size-full wp-image-1225" /></a></p>
<p>The next step is to create a baseline and assign the update to the baseline. From the baseline and groups tab, select &#8220;new baseline&#8221;:</p>
<p><a href="http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/new_baseline/" rel="attachment wp-att-1228"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/new_baseline.png" alt="" title="new_baseline" width="316" height="261" class="alignnone size-full wp-image-1228" /></a></p>
<p>Next, select &#8220;Host extension&#8221; as baseline type, this important because otherwise the update will never be applicable to any of your hosts.</p>
<p><a href="http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/new_baseline2/" rel="attachment wp-att-1229"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/new_baseline2-620x467.png" alt="" title="new_baseline2" width="620" height="467" class="alignnone size-medium wp-image-1229" /></a></p>
<p>In the next wizard step, include the Fusion IO driver:</p>
<p><a href="http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/add_extension/" rel="attachment wp-att-1230"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/add_extension.png" alt="" title="add_extension" width="535" height="206" class="alignnone size-full wp-image-1230" /></a></p>
<p>Finish the wizard. Last but not least, we need to assign the baseline to the appropriate server, or cluster. Then scan the specific host or cluster and remediate the entry or entries. I have not included any screenshots of these steps because this is specific for your environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/03/installing-fusion-io-driver-on-vmware-esxi-5-using-vsphere-update-manager-vum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GreenWave Reality PowerNode (bar) first impression</title>
		<link>http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/</link>
		<comments>http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 22:02:33 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Home automation]]></category>
		<category><![CDATA[greenwave]]></category>
		<category><![CDATA[HouseAgent]]></category>
		<category><![CDATA[powerbar]]></category>
		<category><![CDATA[powernode]]></category>
		<category><![CDATA[socket]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[z-wave]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1174</guid>
		<description><![CDATA[Recently my colleague Frank (props to him) discovered this device which could well be a good alternative to the (ever delayed) Qees power strip. We both decided to order one of these devices. It&#8217;s a very reasonably priced device (€50,-) for it&#8217;s specifications: 6 switchable and measurable sockets Overcurrent (10A fuse) -and surge protection 0.1W [...]]]></description>
			<content:encoded><![CDATA[<p>Recently my colleague Frank (props to him) discovered this device which could well be a good alternative to the (ever delayed) Qees power strip. We both decided to order one of these devices. It&#8217;s a very reasonably priced device (€50,-) for it&#8217;s specifications:</p>
<ul>
<li>6 switchable and measurable sockets</li>
<li>Overcurrent (10A fuse) -and surge protection</li>
<li>0.1W precision on load monitoring (energy measurement)</li>
</ul>
<p>Here&#8217;s a picture of the device:</p>
<p><a href="http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/2012-03-20-22-54-40/" rel="attachment wp-att-1183"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/2012-03-20-22.54.40-620x465.jpg" alt="" title="2012-03-20 22.54.40" width="620" height="465" class="alignnone size-medium wp-image-1183" /></a></p>
<p><span id="more-1174"></span><br />
I was very curious whether this device would work with HouseAgent out of the box. After pairing the device (piece of cake, if you follow the <a href="http://greenwavereality.com/downloads/pdfs/PowerNode_manual_english.pdf">manual</a>) with my Aeon Labs z-stick, I tried to add the device to the HouseAgent database. This is what I got:</p>
<p><a href="http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/powernode_houseagent/" rel="attachment wp-att-1175"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/powernode_houseagent-620x424.png" alt="" title="powernode_houseagent" width="620" height="424" class="alignnone size-medium wp-image-1175" /></a></p>
<p>Hmm odd values, at that point I had no clue what values to expect. So, I decided to give Homeseer a go to so how it would recognize this device. After importing the device into Homeseer, this is what I got (a huge pile of devices/values!):</p>
<p><a href="http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/powernode_homeseer/" rel="attachment wp-att-1178"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/powernode_homeseer-620x189.png" alt="" title="powernode_homeseer" width="620" height="189" class="alignnone size-medium wp-image-1178" /></a></p>
<p>(click to enlarge)</p>
<p>Aha, so it&#8217;s a multi instance z-wave device! Notice the multiple instances underneath the root device (device 8). I suspect this is what causes the issue in HouseAgent/open-zwave, looking at the logfile of HouseAgent I noticed this log line: </p>
<p><code>2012-03-20 17:47:19:953 All endpoints in this device are the same as endpoint 1.  Searching for the other endpoints...</code></p>
<p>It seems only the first instance is detected and the root device, I need to troubleshoot this a bit further. </p>
<p>I decided to play around a bit with the device from within Homeseer, all the functionality seems to work as advertised (the metering works, switching individual sockets works!). The nice thing is that all the sockets are measured individually, but also the power bar itself is measured and switchable as a whole. One minor drawback of this device is the fact that you need to poll it for it status (it doesn&#8217;t advertise it&#8217;s status on the z-wave network). Another point of attention is the fact that GreenWave doesn&#8217;t support this PowerNode without their own gateway product. Although it appears to work just fine, I take no responsibility if it doesn&#8217;t work for you! </p>
<p><strong>Conclusion</strong></p>
<p>This is a very nice device for it&#8217;s price, in fact it does all I expect of a power bar. This bar is going to be great for my TV setup! There&#8217;s  some work to be done on the software side (HouseAgent), but I am pretty confident I can get it to work with some effort.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/03/greenwave-reality-powernode-first-impression/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FSRM: Failed to send the test e-mail due to the following error: Cannot send the email due to an error.</title>
		<link>http://www.maartendamen.com/2012/03/fsrm-failed-to-send-the-test-e-mail-due-to-the-following-error-cannot-send-the-email-due-to-an-error/</link>
		<comments>http://www.maartendamen.com/2012/03/fsrm-failed-to-send-the-test-e-mail-due-to-the-following-error-cannot-send-the-email-due-to-an-error/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 19:00:42 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[fsrm]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1161</guid>
		<description><![CDATA[I was working on FSRM (File Server Resource Manager) today and I was trying to get e-mail notifications working. Using the test button, the following error appeared: Further investigation in the Windows (application)eventlog showed me the following information: A File Server Resource Manager Service email action could not be run. Error-specific details: Error: IFsrmEmailExternal::SendMail, 0x8004531c, [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on FSRM (File Server Resource Manager) today and I was trying to get e-mail notifications working. Using the test button, the following error appeared:</p>
<p><a href="http://www.maartendamen.com/2012/03/fsrm-failed-to-send-the-test-e-mail-due-to-the-following-error-cannot-send-the-email-due-to-an-error/fsrm_error/" rel="attachment wp-att-1162"><img src="http://www.maartendamen.com/wp-content/uploads/2012/03/fsrm_error.png" alt="" title="fsrm_error" width="417" height="154" class="alignnone size-full wp-image-1162" /></a></p>
<p>Further investigation in the Windows (application)eventlog showed me the following information:</p>
<p><code>A File Server Resource Manager Service email action could not be run. </p>
<p>Error-specific details:<br />
   Error: IFsrmEmailExternal::SendMail, 0x8004531c, Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender</code></p>
<p>As it turns out you need give send permissions to the computer running FSRM. You need set this send permission on the mailbox you specified in the &#8220;Default From e-mail address&#8221;. To do this, type the following command from the Exchange Management Shell:</p>
<p><code>Add-ADPermission -Identity "MailboxName" -User "DOMAIN\Computeraccount$" -ExtendedRights "Send-as"</code></p>
<p>After setting this send permission the error no longer occurred!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2012/03/fsrm-failed-to-send-the-test-e-mail-due-to-the-following-error-cannot-send-the-email-due-to-an-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My home server setup part 1: basic setup and hardware</title>
		<link>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/</link>
		<comments>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:28:55 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[corei3]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[homeserver]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[kingston]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1064</guid>
		<description><![CDATA[I have been running on a new home server setup for a little over a year right now. I am very satisfied with the setup and I figured it might be of interest to others out there. So, in a few blog posts I will explain my complete setup (from hardware to backup). Let&#8217;s start [...]]]></description>
			<content:encoded><![CDATA[<p>I have been running on a new home server setup for a little over a year right now. I am very satisfied with the setup and I figured it might be of interest to others out there.<br />
So, in a few blog posts I will explain my complete setup (from hardware to backup).<br />
Let&#8217;s start of with the hardware used in my home server, nothing fancy really:</p>
<p>Motherboard: Intel Desktop Board DH55TC<br />
CPU: Intel Core I3 530 2,93Ghz<br />
Memory: OCZ Gold Low Voltage OCZ3G1333LV4GK (8GB)<br />
Harddisk 1: Kingston SSDNow SNV425-S2BN/64GB<br />
Harddisk 2: 500GB Western Digital Green</p>
<p>All of the hardware is housed in a small desktop enclosure (as shown on the picture)</p>
<p><a href="http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/antec/" rel="attachment wp-att-1076"><img src="http://www.maartendamen.com/wp-content/uploads/2011/11/antec.jpg" alt="" title="antec" width="400" height="400" class="aligncenter size-full wp-image-1076" /></a><br />
<span id="more-1064"></span><br />
<strong>Hypervisor/Virtualization</strong><br />
With the initial setup of my home server I started with a Windows 2008 R2 installation, with Hyper-V on top.<br />
After running on this system for about 2 months, I really couldn&#8217;t overcome the lack of USB passthrough in Hyper-V. A lot of domotica interfaces use USB, so I couldn&#8217;t use them within virtual machines.<br />
I could off course still run my home automation software on the host (Windows 2008 R2), but this has a downside on the flexibility side. I just want my home automation software within a VM so it can be easily moved around to different hardware in case my server crashes.<br />
This is where VMware ESXi comes to the rescue! ESXi does offer USB passthrough, it works very convenient. You can just plugin USB devices to the host and then add them to a Virtual Machine as hardware.<br />
Here&#8217;s an example of a few interfaces connected to my home automation VM:</p>
<p><a href="http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/vmware_usb/" rel="attachment wp-att-1065"><img src="http://www.maartendamen.com/wp-content/uploads/2011/11/vmware_usb.png" alt="" title="vmware_usb" width="547" height="258" class="alignnone size-full wp-image-1065" /></a></p>
<p>VMware ESXi (5.0) is offered for free with a few limitations:</p>
<p>- You can use a maximum of 32GB<br />
- You can use only one processor (with unlimited amount of cores)</p>
<p>Both limitations are not a big problem for my home server setup. More information about VMware ESXi editions can be found <a href="http://www.vmware.com/vmwarestore/vsphere_purchaseoptions.html">here</a>.</p>
<p><strong>Virtual machines</strong></p>
<p>I run quite a few VM&#8217;s on my home server, here&#8217;s a list:</p>
<p>- One Linux (Debian 6.0) machine running my home automation software (HouseAgent).<br />
- One OSX Lion machine, for testing purposes (basically to test HouseAgent on OSX)<br />
- Two Windows servers for general purpose (file sharing etc.)<br />
- One Windows 7 Virtual Machine for general purpose and testing<br />
- I also have some VM&#8217;s that are in the &#8220;Off&#8221; state but are sometimes powered on for testing, such a System Center Operations Manager (SCOM) test environment.</p>
<p>I hear you asking, OSX on ESXi? But isn&#8217;t that unsupported? Yes, it&#8217;s indeed unsupported but thanks to the ESXi unlocker for OSX this is now possible. The unlocker can be downloaded <a href="http://www.insanelymac.com/forum/index.php?showtopic=267339">here</a>. It runs very smooth with VMware tools installed.</p>
<p>So there you have it: three platforms (Linux, Windows and OSX) on one single server! Something I was looking for, for quite a while.. </p>
<p><em>Disk layout</em><br />
All VM&#8217;s use more or less the same disk layout. The OS disks are created on the SSD disk, whereas the data disks are created on the Western Digital disk.<br />
My home automation is entirely created on the SSD, for optimal performance. </p>
<p><em>Performance</em><br />
So what about performance? Well, even with 5 VM&#8217;s located on this hardware it still runs very smooth. Most of the time the VM&#8217;s are idle anyway.<br />
CPU usage is around 15% on average. Memory usage is 7GB out of 8GB. </p>
<p>This concludes the first part of these blog series, I hope you enjoyed it so far. In the next post we&#8217;ll dive into the backup methods I use for my home server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stupid spammers</title>
		<link>http://www.maartendamen.com/2011/10/stupid-spammers/</link>
		<comments>http://www.maartendamen.com/2011/10/stupid-spammers/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 20:21:29 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[anti-spam]]></category>
		<category><![CDATA[spammer]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1051</guid>
		<description><![CDATA[Everyone that runs a weblog has to deal with them: spammers! I installed all sorts of counter measures to prevent spam, but every now and then one or two messages get through. This week I had a spam message that made me smile, obviously this wasn&#8217;t the most intelligent spammer and coder of them all: [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone that runs a weblog has to deal with them: spammers!<br />
I installed all sorts of counter measures to prevent spam, but every now and then one or two messages get through.<br />
This week I had a spam message that made me smile, obviously this wasn&#8217;t the most intelligent spammer and coder of them all:</p>
<p><a href="http://www.maartendamen.com/2011/10/stupid-spammers/stupid_spammer-2/" rel="attachment wp-att-1055"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/stupid_spammer1.png" alt="" title="stupid_spammer" width="601" height="114" class="alignnone size-full wp-image-1055" /></a></p>
<p>I think his/her spambot had to a pick a random word from those lists, but somehow it failed :-)<br />
So, here&#8217;s a lesson.. if you do things like this, do them right and properly!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/10/stupid-spammers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Programming and debugging an ATtiny85 using USBTinyISP and an USB-BUB</title>
		<link>http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/</link>
		<comments>http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/#comments</comments>
		<pubDate>Fri, 21 Oct 2011 18:29:49 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[arduino-tiny]]></category>
		<category><![CDATA[attiny]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[isp]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[usbtinyisp]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=994</guid>
		<description><![CDATA[I have been working a bit on hardware again lately, and I am currently playing around with ATtiny micro controllers These tiny little buggers have 8 pins, out of these pins a maximum of 6 I/O pins can be used (you would have to re-purpose the reset pin for 6th I/O pin, which is a [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working a bit on hardware again lately, and I am currently playing around with ATtiny micro controllers<br />
These tiny little buggers have 8 pins, out of these pins a maximum of 6 I/O pins can be used (you would have to re-purpose the reset pin for 6th I/O pin, which is a very bad idea! This basically makes the chip unprogrammable from an ISP. So just stick with 5 I/O pins.). Some other specs of this of this MCU:</p>
<p>- 8Kb flash (yes, space does matter!)<br />
- 0.5Kb SRAM<br />
- Maximum operating frequency (20Mhz, using an external crystal)</p>
<p>Here&#8217;s a picture of this MCU:</p>
<p><a href="http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/attiny85_900/" rel="attachment wp-att-995"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/ATtiny85_900-150x150.jpg" alt="" title="ATtiny85_900" width="150" height="150" class="alignnone size-thumbnail wp-image-995" /></a><br />
<span id="more-994"></span><br />
To program this MCU you have to use an ISP (In System Programmer) programmer. I own an <a href="http://www.ladyada.net/make/usbtinyisp/">USBTinyISP </a> produced by Adafruit, which is perfect for this job. There is a minor drawback though: the ATtiny chips are not supported out of the box within the Arduino IDE. However, there is a perfect open source library by the name of <a href="http://code.google.com/p/arduino-tiny/">arduino-tiny</a> available to support this MCU within the Arduino IDE. </p>
<p>Here&#8217;s a picture of my test setup with the USBTinyISP (on the right) connected:</p>
<p><a href="http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/img_20111019_233422/" rel="attachment wp-att-1000"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/IMG_20111019_233422-620x463.jpg" alt="" title="IMG_20111019_233422" width="620" height="463" class="alignnone size-medium wp-image-1000" /></a></p>
<p>The pins are connected as follows: </p>
<ul>
<li>ATtiny Pin 2 to USBTinyISP SCK</li>
<li>ATtiny Pin 1 to USBTinyISP MISO</li>
<li>ATtiny Pin 0 to USBTinyISP MOSI</li>
<li>ATtiny RST pin to USBTinyISP RESET</li>
</ul>
<p>After getting the connections right, I started my first programming attempt. The test sketch blink, which is the &#8220;hello world&#8221; for MCU&#8217;s compiled correctly but then: </p>
<p><a href="http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/20-10-2011-0-07-13/" rel="attachment wp-att-1005"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/20-10-2011-0-07-13-523x600.png" alt="" title="20-10-2011 0-07-13" width="523" height="600" class="alignnone size-medium wp-image-1005" /></a></p>
<p>Hmm, nasty java exception there. After some digging around I figured out the incorrect programmer was getting addressed in the boards.txt file coming with the arduino-tiny project. This file is located under in the Arduino hardware/tiny/ folder. In order to make it work with the USBTinyISP, you have to change the following line for each target board (the ATtiny85 at 1mhz is illustrated here):</p>
<p><code>attiny85at1.upload.using=pololu</code></p>
<p>Into the following:</p>
<p><code>attiny85at1.upload.using=arduino:usbtinyisp</code></p>
<p>After restarting the IDE, I was able to program the sketch!</p>
<p><strong>Debugging</strong></p>
<p>For standard Arduino&#8217;s, you can use a  built in serial interface to debug. There is no such thing available for ATtiny chips. However, the arduino-tiny library does offer a debug interface. I used the USB-BUB from Modern Device to setup a debug interface. For the ATtiny85 the standard arduino-tiny debug interface is tied to PB3 of the ATtiny.<br />
Once setup, you can use the regular Serial.begin() and Serial.print/println() functions. I connected PB3 to the RX pin of the USB-bub, off course there&#8217;s also a ground connection required so I connected the GND of the USB-BUB to the GND of my ATtiny. After that I was ready to start debugging&#8230;</p>
<p>So, here we go.. ready to start tinkering!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/10/programming-and-debugging-an-attiny85-using-usbtinyisp-and-an-usb-bub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Byebye RabbitMQ, hello 0MQ!</title>
		<link>http://www.maartendamen.com/2011/10/byebye-rabbitmq-hello-0mq/</link>
		<comments>http://www.maartendamen.com/2011/10/byebye-rabbitmq-hello-0mq/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 21:05:14 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[HouseAgent]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[broker]]></category>
		<category><![CDATA[brokerless]]></category>
		<category><![CDATA[zeromq]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=957</guid>
		<description><![CDATA[The core architecture of HouseAgent is build around a messaging system known as RabbitMQ. This worked out fine so far, however during development we discovered a major drawback of RabbitMQ. RabbitMQ uses Erlang, which is a 70MB download.. *yikes*. In the future I want to be able to run HouseAgent on low memory platforms: for [...]]]></description>
			<content:encoded><![CDATA[<p>The core architecture of HouseAgent is build around a messaging system known as RabbitMQ. This worked out fine so far, however during development we discovered a major drawback of RabbitMQ.<br />
RabbitMQ uses Erlang, which is a 70MB download.. *yikes*. In the future I want to be able to run HouseAgent on low memory platforms: for example routers/NAS devices etc. Most of these devices have a maximum of 16MB flash. RabbitMQ is just no option in those scenarios. </p>
<p>Looking for alternatives <a href="http://www.zeromq.org/">ZeroMQ</a> caught my eye. A major difference is that ZeroMQ uses a brokerless design whereas RabbitMQ uses a broker based design.<br />
Let&#8217;s have a look at both designs: </p>
<p><a href="http://www.maartendamen.com/2011/10/byebye-rabbitmq-hello-0mq/houseagent_architecture/" rel="attachment wp-att-959"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/houseagent_architecture.png" alt="" title="houseagent_architecture" width="400" height="325" class="aligncenter size-full wp-image-959" /></a><br />
<center><em>Old HouseAgent architecture based on RabbitMQ</em></center></p>
<p><span id="more-957"></span><br />
<br />
<a href="http://www.maartendamen.com/2011/10/byebye-rabbitmq-hello-0mq/houseagent_architecture_new/" rel="attachment wp-att-960"><img src="http://www.maartendamen.com/wp-content/uploads/2011/10/houseagent_architecture_new.png" alt="" title="houseagent_architecture_new" width="457" height="249" class="aligncenter size-full wp-image-960" /></a><br />
<center><em>New HouseAgent architecture based on ZeroMQ</em></center></p>
<p>As you can see, there is a major change in architecture. However because we use a central &#8220;coordinator&#8221; already, that coordinator took over the role of &#8220;broker&#8221; role as well.<br />
This way the change to ZeroMQ has minimal impact on plugins, or the way HouseAgent works in general. This architecture leaves some space for future high availability/failover scenarios, by implementing a second &#8220;coordinator&#8221;. I don&#8217;t want this post to become a RabbitMQ vs ZeroMQ comparison (just Google if you are looking for that), but I did want to point out this essential change. </p>
<p>So let&#8217;s look at the size of ZeroMQ. The size of ZeroMQ is a lot less (being c/c++), the shared library is 1.6MB and can probably be stripped down quite a bit by removing unused features. 70MB-1.6MB = 68,4MB space saving!</p>
<p>The code to implement ZeroMQ is available on Github right now, in the branch &#8220;zeromq&#8221;. In an upcoming blog post I will post a developers update, to adjust existing plugins so they work with the new system (the changes are minimal, promised!)</p>
<p>Feedback on the new architecture and code is greatly appreciated!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/10/byebye-rabbitmq-hello-0mq/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

