<?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>Wed, 16 Nov 2011 12:39:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>MQTT powered video wall</title>
		<link>http://eightbar.co.uk/2011/09/16/mqtt-powered-video-wall/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mqtt-powered-video-wall</link>
		<comments>http://eightbar.co.uk/2011/09/16/mqtt-powered-video-wall/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 10:20:22 +0000</pubDate>
		<dc:creator>Ben Hardill</dc:creator>
				<category><![CDATA[IBM Projects]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[ETS]]></category>
		<category><![CDATA[IBM Forum]]></category>
		<category><![CDATA[MQTT]]></category>
		<category><![CDATA[South Bank]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://eightbar.co.uk/?p=1065</guid>
		<description><![CDATA[Scaling things up a little from my first eightbar post. This was one of those projects that just sort of &#8220;turned up&#8221;. About 3 weeks ago one of the managers for the ETS department in Hursley got a call from the team building the new IBM Forum in IBM South Bank. IBM Forums are locations [...]]]></description>
			<content:encoded><![CDATA[<p>Scaling things up a little from <a href="http://eightbar.co.uk/2009/06/22/a-different-kind-of-tv-remote-control/">my first eightbar post</a>.</p>
<p>This was one of those projects that just sort of &#8220;turned up&#8221;. About 3 weeks ago one of the managers for the ETS department in Hursley got a call from the team building the new IBM Forum in <a href="http://www-05.ibm.com/uk/locations/sbnk.html">IBM South Bank</a>. IBM Forums are locations where IBM can showcase technologies and solutions for customers. The team were looking for a way to control a video wall and a projector to make them show specific videos on request. The requests will come from pedestals known as &#8220;provokers&#8221;, each having a perspex dome holding a thought-provoking item. The initial suggestions had been incredibility expensive and we were asked if we could come up with a solution.</p>
<p><a title="Provoker by hardillb, on Flickr" href="http://www.flickr.com/photos/hardillb/6150090094/"><img src="http://farm7.static.flickr.com/6080/6150090094_170bde8686.jpg" alt="Provoker" width="299" height="500" /></a></p>
<p>The provokers have access to power and an Ethernet connection. Taking all that into account a few ideas came to mind but the best seamed to be an Arduino board with Ethernet support and a button/sensor to trigger the video. There is a relatively new arduino board available that has a <a href="http://arduino.cc/en/Main/ArduinoBoardEthernet">built in Ethernet</a> shield which seemed perfect for this project. Also, since a number of the items in the provokers would be related to IBM&#8217;s Smarter Planet initiative, it made sense to use <a href="http://mqtt.org">MQTT</a> as a messaging layer as this has been used to implement a number of solutions in this space.</p>
<p><a href="http://knolleary.net/">Nick O&#8217;Leary</a> was enlisted to put together the hardware and also the sketch for the Arduino as he had already written a <a href="http://knolleary.net/arduino-client-for-mqtt/">MQTT client for Arduino</a> in the past.</p>
<p>Each provoker will publish a message containing a playload of &#8220;play&#8221; to a topic like</p>
<p><em>provoker/{n}/action</em></p>
<p>Where &#8216;{n}&#8217; is the unique number identifying which of the 6 provokers sent the message.</p>
<p>To provide some feedback to the guest that pressed the button, the LED has been made to pulse while one of the provoker-specific videos is playing. This is controlled by each provoker subscribing to the following topic</p>
<p><em>provoker/{n}/ack</em></p>
<p>Sending &#8220;play&#8221; to this topic causes the LED pluse, sending &#8220;stop&#8221; turns the LED solid again.</p>
<p>The video wall will be driven by software called Scala InfoChannel which has a scripting interface supporting (among other things) Python. So a short script to subscribe to the &#8216;action&#8217; topics and to publish on on the &#8216;ack&#8217; got the videos changing on demand.</p>
<p>And sat in the middle is an instance of the <a href="https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=d5bedadd-e46f-4c97-af89-22d65ffee070">Really Small Message Broker</a> to tie everything together.</p>
<p><a title="Arduino in a box by knolleary, on Flickr" href="http://www.flickr.com/photos/knolleary/6123416370/"><img src="http://farm7.static.flickr.com/6185/6123416370_ba88cde8ee.jpg" alt="Arduino in a box" width="500" height="299" /></a></p>
<p>This was also the perfect place to use some of <a href="http://www.flickr.com/photos/hardillb/6127193305/in/photostream">my new &#8220;MQTT Inside&#8221; stickers</a>.</p>
<p><a title="First sticker deployed by hardillb, on Flickr" href="http://www.flickr.com/photos/hardillb/6143434166/"><img src="http://farm7.static.flickr.com/6189/6143434166_4cf426ac18.jpg" alt="First sticker deployed" width="299" height="500" /></a></p>
<p>This project only used one of the digital channels (for the button) and one of the analogue channels (for the LED) available on the Arduino &#8211; which leaves a lot of room for expansion for these type of devices. I can see them being used for future projects.</p>
<p><strong>Parts list</strong></p>
<ol>
<li>Arduino Ethernet</li>
<li>Blue LED Illuminated Button</li>
<li>A single resistor to protect the LED</li>
<li>9v power supply</li>
<li>Sparkfun Case</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://eightbar.co.uk/2011/09/16/mqtt-powered-video-wall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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>Andy Piper</dc:creator>
				<category><![CDATA[messaging]]></category>
		<category><![CDATA[Technology]]></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 year [...]]]></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 <img src='http://eightbar.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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>Andy Piper</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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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[augmented reality]]></category>
		<category><![CDATA[branding]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[Hursley]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[Second Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Virtual worlds]]></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/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=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[augmented reality]]></category>
		<category><![CDATA[messaging]]></category>
		<category><![CDATA[Second Life]]></category>
		<category><![CDATA[Virtual worlds]]></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>

