<?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>eightbar &#187; messaging</title>
	<atom:link href="http://eightbar.co.uk/category/messaging/feed/" rel="self" type="application/rss+xml" />
	<link>http://eightbar.co.uk</link>
	<description>Raising The Eight Bar</description>
	<lastBuildDate>Sat, 17 Jul 2010 18:40:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>A different kind of TV remote control</title>
		<link>http://eightbar.co.uk/2009/06/22/a-different-kind-of-tv-remote-control/</link>
		<comments>http://eightbar.co.uk/2009/06/22/a-different-kind-of-tv-remote-control/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:57:51 +0000</pubDate>
		<dc:creator>AndyP</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[MQTT]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[television]]></category>

		<guid isPermaLink="false">http://eightbar.co.uk/2009/06/22/a-different-kind-of-tv-remote-control/</guid>
		<description><![CDATA[I’m very excited to be welcoming another Hursley innovator as a guest here on eightbar – Benjamin Hardill (you can find him on Twitter as @hardillb). Here’s some insight into what he’s been up to lately! More home automation, hardware hacking, and MQTT messaging adventures follow :-) I got a new TV around Christmas last [...]]]></description>
			<content:encoded><![CDATA[<p>I’m very excited to be welcoming another Hursley innovator as a guest here on eightbar – Benjamin Hardill (you can find him on Twitter as <a href="http://twitter.com/hardillb">@hardillb</a>). Here’s some insight into what he’s been up to lately! More home automation, hardware hacking, and MQTT messaging adventures follow :-)</p>
<p style="border-top-width: thin; border-top-style: dotted; border-top-color: #FFFFFF;"/>
<p>I got a new TV around Christmas last year and while unpacking it I noticed along with the HDMI, SCART and other sockets on the back it had a 9-pin socket labelled &quot;RS232C IN CONTROL&amp;SERVICE&quot;. I didn&#8217;t think that much of it at the time, but I remembered it last week while thinking about a couple of problems that had come up.</p>
<p><a href="http://www.flickr.com/photos/hardillb/1653622846/"><img style="margin: 5px 15px 5px 0px; display: inline" alt="Tidy TV setup" align="left" src="http://farm3.static.flickr.com/2374/1653622846_61e502aafd_m.jpg" width="240" height="180" /></a> The first of these was that I had got home twice recently to find I&#8217;d left the TV turned on while I was at work, this was mainly because I use <a href="http://www.mythtv.org/">MythTV</a> and I&#8217;d left it at the menu screen rather than turning the screen off as well. This had left shadow on the menu on the screen for a day or so afterwards (luckily no permanent damage as would have happened with a plasma or CRT TV).</p>
<p>The other point was from when we all first got hold of our Current Cost meters, there had been a lot of thought about how to work out exactly what appliances were on at any given time. While spotting when things like an electric water heater turned on was relatively easy, it was proving difficult to spot some of the lower power devices.</p>
<p>A plan started to form and I ordered a null modem cable from <a href="http://www.amazon.co.uk/Female-RS232-Serial-Modem-Cable/dp/B000Q8HO7I/ref=sr_1_1?ie=UTF8&amp;s=electronics&amp;qid=1245499991&amp;sr=8-1">Amazon</a> (£2.18 with free shipping) and went looking for some documentation on the protocol. The manual that came with the TV while being nearly an inch thick just covers the basics of how to plug it in and turn it on, but there was a CD-ROM with a much more detailed PDF document. The version for my TV is <a href="http://www.in.lge.com/XCanvas/images/26LC2R-TJ.pdf">here</a>. While searching round I found manuals for several other LG LCD/plasma TVs and they all seem to use the same basic protocol. </p>
<p>The protocol is relatively simple</p>
<p><code>[cmd1][cmd2] [setid] [data]</code></p>
<p>Where the <i>cmd1</i> &amp; <i>cmd2</i> are 1 letter code, <i>setid</i> is for if you have multiple TVs connected to the same cable, the default id is 01 but you can change if needed, using 00 will work for all connected TVs. And <i>data</i> is a hex value of the option to pass the command.</p>
<p>The response from the TV looks like this for a success</p>
<p><code>[cmd2] [setid] OK[data]x</code></p>
<p>and like this for a failure</p>
<p><code>[cmd2] [setid] NG[data]x</code></p>
<p>The command to turn the TV on and off is &quot;ka&quot; so sending</p>
<p><code>ka 00 1</code></p>
<p>turns the TV on and sending</p>
<p><code>ka 00 0</code></p>
<p>turns it off. Most of the commands will reply with the current status if they are passed <i>ff</i> as the data. So sending</p>
<p><code>ka 00 ff</code></p>
<p>gets the following when the TV is off</p>
<p><code>a 00 OK0x</code></p>
<p>So now I had a way to turn the TV on and off along with checking its current status. The next step was to surface this some way and given the fascination we all seem to have with messaging, MQTT seemed like a good idea. A little bit of Java and the Java COMM API later and I had 2 topics <i>TV/Commands</i> &amp; <i>TV/Status</i>.</p>
<p>I already have a topic that publishes if my mobile phone is in the flat by pinging it with Bluetooth. Combining this with the two new topics I can ensure that the TV is turned off when I leave. I&#8217;m also wondering if I should start to log the amount of time the TV is on, but I think the results may scare me a little…</p>
]]></content:encoded>
			<wfw:commentRss>http://eightbar.co.uk/2009/06/22/a-different-kind-of-tv-remote-control/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mad scientists?</title>
		<link>http://eightbar.co.uk/2009/02/12/mad-scientists/</link>
		<comments>http://eightbar.co.uk/2009/02/12/mad-scientists/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 17:28:10 +0000</pubDate>
		<dc:creator>AndyP</dc:creator>
				<category><![CDATA[Hursley]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[currentcost]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[homecamp]]></category>
		<category><![CDATA[mousetraps]]></category>
		<category><![CDATA[MQTT]]></category>

		<guid isPermaLink="false">http://eightbar.co.uk/?p=822</guid>
		<description><![CDATA[Just an average day in the Hursley tea bar! Martin Dix from CurrentCost visited to deliver a bunch of meters for people who had attended Home Camp 08. Whilst he was with us, Andy Stanford-Clark hooked up a (battery-powered) meter to one of his mousetraps to show how it is possible to detect traps going [...]]]></description>
			<content:encoded><![CDATA[<div align="center">
<table border="0">
<tr>
<td cellspacing="5"><a href="http://eightbar.co.uk/wp-content/uploads/2009/02/img-3669-4.jpg"><img src="http://eightbar.co.uk/wp-content/uploads/2009/02/img-3669-4.jpg" alt="IMG_3669 4.JPG" border="0" width="194" height="146" align="left" /></a></td>
<td cellspacing="5"><a href="http://eightbar.co.uk/wp-content/uploads/2009/02/img-3670-4.jpg"><img src="http://eightbar.co.uk/wp-content/uploads/2009/02/img-3670-4.jpg" alt="IMG_3670 4.JPG" border="0" width="194" height="146" /></a></td>
</tr>
</table>
</div>
<p align="center">Just an average day in the Hursley tea bar!</p>
<p>Martin Dix from <a href="http://currentcost.co.uk">CurrentCost</a> visited to deliver a bunch of meters for people who had attended <a href="http://homecamp.org.uk">Home Camp</a> 08. Whilst he was with us, Andy Stanford-Clark hooked up a (battery-powered) meter to one of his mousetraps to show how it is possible to detect traps going off using the meter &#8211; this is the same technique he uses in his automated home system. He also showed the same message arriving in his MQTT broker on his Ubuntu laptop. The table was soon awash with gadgets, wires and tools. I brought along a camera or two, Dale brought along some questions about the software internals of the new devices, and a great time was had by a bunch of geeks over tea&#8230;</p>
<p>No mice were harmed during this meetup, but a few wooden coffee stirrers were put through their paces in some vicious mousetraps.</p>
]]></content:encoded>
			<wfw:commentRss>http://eightbar.co.uk/2009/02/12/mad-scientists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Just thinking out loud &#8211; Metaverse snapshot</title>
		<link>http://eightbar.co.uk/2009/01/26/just-thinking-out-loud-metaverse-snapshot/</link>
		<comments>http://eightbar.co.uk/2009/01/26/just-thinking-out-loud-metaverse-snapshot/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 14:29:09 +0000</pubDate>
		<dc:creator>epredator</dc:creator>
				<category><![CDATA[3d printing]]></category>
		<category><![CDATA[Hursley]]></category>
		<category><![CDATA[Second Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtual worlds]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[messaging]]></category>

		<guid isPermaLink="false">http://eightbar.co.uk/?p=788</guid>
		<description><![CDATA[I moved offices today and having a bright new whiteboard I could not leave it clean for long. Its not really a mindmap, just some association of thoughts and bits of linkages. I am sure it will alter, but right now this is what was in my head in a mad flurry. The underlying red [...]]]></description>
			<content:encoded><![CDATA[<p>I moved offices today and having a bright new whiteboard I could not leave it clean for long.<br />
Its not really a mindmap, just some association of thoughts and bits of linkages. I am sure it will alter, but right now this is what was in my head in a mad flurry. The underlying red part is really the substrate of the whole thing. Just my personal thoughts linked to some of the things I have seen and been involved with one way and another.  </p>
<p><a href="http://www.flickr.com/photos/epredator/3227984875/" title="Thoughts on the metaverse by epredator, on Flickr"><img src="http://farm4.static.flickr.com/3357/3227984875_2196d95125.jpg" width="313" height="500" alt="Thoughts on the metaverse" /></a><br />
Note: edited to show smaller version of the board as it was cropping the right hand important side for those that did not click through to flickr. 3d printing FTW and high value professional social networks one there too !</p>
]]></content:encoded>
			<wfw:commentRss>http://eightbar.co.uk/2009/01/26/just-thinking-out-loud-metaverse-snapshot/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Rivers Run Red&#8217;s Retail Planogram in Second Life</title>
		<link>http://eightbar.co.uk/2009/01/14/rivers-run-reds-retail-planogram-in-second-life/</link>
		<comments>http://eightbar.co.uk/2009/01/14/rivers-run-reds-retail-planogram-in-second-life/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 10:38:34 +0000</pubDate>
		<dc:creator>epredator</dc:creator>
				<category><![CDATA[Second Life]]></category>
		<category><![CDATA[Virtual worlds]]></category>
		<category><![CDATA[augmented reality]]></category>
		<category><![CDATA[messaging]]></category>

		<guid isPermaLink="false">http://eightbar.co.uk/?p=776</guid>
		<description><![CDATA[Thanks again to Malburns for spotting this and tweeting it. Rivers Run Red have released an example of an application layered onto immersive workspaces in Second Life. In this case it is around retail planning and visualization. This is an example of the next layer of toolsets that we can expect to see across virtual [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks again to <a href="http://www.twitter.com/malburns">Malburns</a> for spotting this and tweeting it. <a href="http://www.riversrunred.com">Rivers Run Red</a> have <a href="http://riversrunred.com/news/">released</a> an example of an application layered onto immersive workspaces in <a href="http://www.secondlife.com">Second Life</a>. In this case it is around retail planning and visualization.<br />
<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/vdq4QTO9sZY&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vdq4QTO9sZY&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object><br />
This is an example of the next layer of toolsets that we can expect to see across virtual worlds, as those virtual worlds become a platform not just a place.<br />
Producing what if scenarios, or mirror world scenarios does need the ability to simply sketch and examine the possibilities whether its a retail store, a machine room or an intricate business model that cannot normally be visualized.<br />
The exciting thing about this for us here at eightbar is that it makes it a step closer to be able to then instrument the model with real live data via publish subscribe methods such as <a href="http://mqtt.org/">MQTT</a>. Merging the data from a smart planet into immersive visualizations that can be explored together, not stand alone clearly is a direction we have been pushing since even before the 2006 Wimbledon. Hursley is (for those who dont know) <a href="http://www-01.ibm.com/software/integration/wmq/">the home of messaging, pub/sub reliable MQ messaging.</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://eightbar.co.uk/2009/01/14/rivers-run-reds-retail-planogram-in-second-life/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
