<?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/"
		xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Blogospheric Refraction &#187; Thinktank</title>
	<atom:link href="http://stuartl.longlandclan.yi.org/blog/category/thinktank/feed/" rel="self" type="application/rss+xml" />
	<link>http://stuartl.longlandclan.yi.org/blog</link>
	<description>The life and times of Stuart Longland (VK4MSL)</description>
	<lastBuildDate>Tue, 20 Dec 2011 07:29:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<copyright>2006-2007 </copyright>
	<managingEditor>me@vk4msl.yi.org (Blogospheric Refraction)</managingEditor>
	<webMaster>me@vk4msl.yi.org (Blogospheric Refraction)</webMaster>
	<image>
		<url>http://stuartl.longlandclan.yi.org/blog/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>Blogospheric Refraction</title>
		<link>http://stuartl.longlandclan.yi.org/blog</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>The life and times of Stuart Longland (VK4MSL)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &#38; Culture" />
	<itunes:author>Blogospheric Refraction</itunes:author>
	<itunes:owner>
		<itunes:name>Blogospheric Refraction</itunes:name>
		<itunes:email>me@vk4msl.yi.org</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://stuartl.longlandclan.yi.org/blog/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>RFC: Evening Ragchew Contest</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/07/17/rfc-ragchew-contest/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/07/17/rfc-ragchew-contest/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 11:44:23 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[AWNOI Net]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=839</guid>
		<description><![CDATA[The problem For some time now, we&#8217;ve been putting up with interference from a few stations, who for now will remain nameless.  Foul language, deliberate interference, the list goes on… Allegedly some of these people have been doing it for longer than I&#8217;ve been alive. It is as if, these people, believe we are not [...]]]></description>
			<content:encoded><![CDATA[<h2>The problem</h2>
<p>For some time now, we&#8217;ve been putting up with interference from a few stations, who for now will remain nameless.  Foul language, deliberate interference, the list goes on…</p>
<p>Allegedly some of these people have been doing it for longer than I&#8217;ve been alive.</p>
<p>It is as if, these people, believe we are not entitled to use a small patch of radio spectrum to engage in a little friendly chat.</p>
<p><a href="http://stuartl.longlandclan.yi.org/blog/2010/10/15/cq-jota-2010/#comment-2738">Some</a> have even gone as far as vowing to do &#8220;everything they can&#8221; to &#8220;ruin&#8221; amateur radio.</p>
<h1 style="text-align: center;"><strong>This means war.</strong></h1>
<p>Well, we <em>could</em> complain to the ACMA… apparently some have done this already… many times.  If they haven&#8217;t acted after 20 years worth of complaints, I don&#8217;t think they&#8217;ll ever act.  Not without a very substantial amount of evidence.</p>
<p>There is <em>nothing</em> however, that stops us, getting on the band and having a chat, except one thing.  Someone parking on the frequency we choose and interfering with our communications.  Yes, we could QSY, but experience has shown the culprits just chase us up and down the band.</p>
<p>They cannot be on <em>all</em> frequencies however.  One big group, on one frequency, is vulnerable to attack.  Numerous smaller groups, scattered across the band however, is far more resilient.  They cannot be on all frequencies at the same time.  More to the point, more ears open and listening, means more data points … bonus points if those &#8220;ears&#8221; are directional.</p>
<h2>My proposal</h2>
<p>What we need to do is stir up some activity on the 80m band.  The 80m amateur band is a <em>wonderful</em> local chit-chat band.  It has almost guaranteed propagation for distances over 1000km on any given evening.  It is open to <em>all</em> license classes.  (Well, if you ignore the DX window.)  I&#8217;m proposing a contest with a difference.</p>
<p>Most contests, you make contact with a station, exchange numbers, then it&#8217;s ta ta… (or &#8220;73&#8243;) and you go your separate ways.  Not terribly exciting listening.</p>
<p>I&#8217;m proposing a social ragchew contest.  I want to encourage as <em>many</em> people, on as <em>many</em> groups, as possible.  The more people, the better.  Talk about anything you like.  QRP and QRO stations welcome.  Mobile and portable stations, also welcome.  Newcomers, especially welcome.  Make it a large group, or a small group, doesn&#8217;t matter.  It doesn&#8217;t have to be a formal net, just so long as there&#8217;s at least three people.</p>
<h2>How will it be scored?</h2>
<p>This is something I&#8217;m still thinking about… but I&#8217;m thinking something along these lines… I would love your input.</p>
<p>For every hour, or part thereof, each member of a group chatting on the same frequency, will get one point for each member of that group.</p>
<p>So if 3 of you talk for 2¼ hours, that&#8217;s 3×3=9 points.</p>
<h3>Multipliers</h3>
<ul>
<li>Triple points for every station who has held their license:
<ul>
<li>Less than 12 months</li>
<li>Greater than 50 years</li>
</ul>
</li>
<li>Double points for every:
<ul>
<li>Station that is &#8220;mobile&#8221; (i.e. moving between localities) or  &#8220;portable&#8221; (i.e. set up temporarily at some location for less than one week)</li>
<li>QRP station (running 5 watts or less)</li>
<li>DX contact (overseas)</li>
</ul>
</li>
</ul>
<p>I&#8217;m thinking these should be added together, so if in your group of VK&#8217;s you happen to score someone joining your group from Europe (for example) that only just got their license a month ago and is running QRP whilst mobile, add 24 points to each group member for every hour or part thereof that they participate on your group.</p>
<h2>What about interference?</h2>
<p>More than likely, this will stir up the trolls that seek to ruin our experience.  Part of the aim of this, is that <em>a lot</em> of people will be listening.  The following is something <em>anyone</em> can do, even the shortwave listeners.</p>
<ul>
<li>Log the following:
<ul>
<li>the time in UTC</li>
<li>your location (latitude/longitude or Maidenhair Locater)</li>
<li>the signal strength</li>
<li>the nature of interference</li>
</ul>
</li>
<li>If you can, record the interference</li>
<li>If you have a directional antenna, point that in the direction where the signal is <em>strongest</em>.  Use that to measure the signal strength, and log the bearing, along with the antenna type.</li>
</ul>
<p>With enough evidence, we can flush out these serial pests once and for all.</p>
<h2>When will it be held?</h2>
<p>This is open to discussion… I&#8217;m thinking Friday or Saturday night.  I&#8217;m thinking it should start some time in the evening when the band opens up, maybe after 7:00PM.</p>
<p>The contest should remain open until the last group participating in the contest goes clear… if a group manages to successfully run to dawn the next day, good on them, maybe there should be bonus points for their efforts. <img src='http://stuartl.longlandclan.yi.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Let me know what your thoughts are… this is, as I say, a request for comment.  Feel free to get in touch with me directly or leave a comment here.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/07/17/rfc-ragchew-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do&#8217;s and Don&#8217;ts of hand-held radios</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/05/20/dos-and-donts-of-hand-held-radios/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/05/20/dos-and-donts-of-hand-held-radios/#comments</comments>
		<pubDate>Fri, 20 May 2011 10:34:39 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Emergecy Communications]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Thinktank]]></category>
		<category><![CDATA[WICEN]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=783</guid>
		<description><![CDATA[During the International Rally of Queensland, it was interesting to observe how people made use of the radios provided for the event. In fact, watching peoples&#8217; behaviour to me, made it clear that none of them had any training in how to use one of these devices. And they all struggled, mostly as a result [...]]]></description>
			<content:encoded><![CDATA[<p>During the International Rally of Queensland, it was interesting to observe how people made use of the radios provided for the event.  In fact, watching peoples&#8217; behaviour to me, made it clear that none of them had any training in how to use one of these devices.  And they all struggled, mostly as a result of each others&#8217; bad habits.</p>
<p>This isn&#8217;t an isolated case&#8230; my mother who works at the Brisbane International airport, often complains about the radio etiquette of her fellow colleagues.  A lot of people have a radio thrust into their hands, and haven&#8217;t a clue how to use them.  In trying to figure it out, they often fall trap to the same bad habits.</p>
<p>I myself have found a lot of this by mistake, and by observing others.  A lot of this is also applicable to using regular telephones &#8230; I found the tip of standing still when talking helpful when I needed to make a call to emergency services on my mobile phone &#8212; the particular spot where I was at the time, the phone would drop out if I moved more than 6 inches in any direction.  Learning not to talk too close, or too loudly into a microphone, also helps.</p>
<p>The following is a little chart I came up with.  No, the stick figures are not <a href="http://xkcd.com">XKCD</a> grade, they&#8217;re not meant to be.  Click on the image below for a copy as a PDF, or <a href="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2011/05/handheld.svg">get the SVG source here</a>.  File is provided in the public domain, but attribution would be appreciated.  If you use radios in your workplace, and observe this kind of behaviour in your colleagues, you might like to print this out and stick it on a wall somewhere.</p>
<p>&nbsp;</p>
<p><a href="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2011/05/handheld.pdf"><img class="aligncenter size-full wp-image-784" title="Do's and Don'ts of hand-held radios" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2011/05/handheld.png" alt="" width="595" height="842" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/05/20/dos-and-donts-of-hand-held-radios/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VK4MSL/BM: HF contact on 80m</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/04/29/vk4mslbm-hf-contact-on-80m/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/04/29/vk4mslbm-hf-contact-on-80m/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 13:49:07 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[AWNOI Net]]></category>
		<category><![CDATA[Bicycle Mobile]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=746</guid>
		<description><![CDATA[Well, the antenna I tuned up in my last post, I can say, while it doesn&#8217;t work that great on 80m, it did get a contact into Victoria this evening on the AWNOI net.  Terry VK2TEZ near Coffs Harbour gave me a 4-3 signal report, so still lots of room for improvement&#8230; part of that [...]]]></description>
			<content:encoded><![CDATA[<p>Well, the antenna I tuned up in my last post, I can say, while it doesn&#8217;t work <em>that</em> great on 80m, it did get a contact into Victoria this evening on the AWNOI net.  Terry VK2TEZ near Coffs Harbour gave me a 4-3 signal report, so still lots of room for improvement&#8230; part of that was due to static crashes from storms in NSW, but I think with a better tuned antenna, we should be able to get towards having a workable antenna.  At the moment the autotransformer I use has ~95 turns, with output taps at 0, 25, 50 and 75 turns.  I think one somewhere between 0 and 25, and/or some extra turns might help&#8230; so I might wind a new one and see where that gets us.</p>
<p>The headlight still continues to give me grief.  An interesting discovery though this evening.  Since the battery is no good, I&#8217;ve permanently mounted it to the bicycle frame.  This was achieved by removing the plastic bracket which is used to mount the headlight on the handlebars or on the helmet mount (using a rubber O-ring), and replacing this with a bracket bent out of a short piece of aluminium.  It fastens to the bicycle frame at the front right above the front wheel, using a bolt hole normally used for mounting rim brakes (my bike has disc brakes).</p>
<p>The upshot is that the headlight&#8217;s casing has a pretty good electrical connection to the bicycle frame.  Turns out this is a <em>big</em> no no with these lights.  Kiss goodbye HF if you do&#8230; you&#8217;ll get crap <em>everywhere</em> from 400kHz right up into the VHF.  I&#8217;ll have to do some further investigation, but I found that if I insulated the case from the frame, it helped on the 400kHz and HF emissions.  I think something parasitic is causing the 2m grief as this continues (that, or it&#8217;s less critical on the case being earthed).</p>
<p>For a while I thought it might&#8217;ve been something lurking around 415kHz&#8230; the standard IF frequency of most superhetrodyne receivers, but alas, can&#8217;t see anything there.  Otherwise it&#8217;d explain why it appears to be everywhere.  I definitely suspect it&#8217;s not <em>supposed</em> to be oscillating there though, so I think parasitic oscillations are the cause here.  I&#8217;m slowly researching my own power supply for the LED in this headlamp, so its days are numbered.</p>
<p>The insulation was achieved by breaking a cheap plastic picnic knife, drilling a couple of mounting holes, and mounting the headlight on that.  That quelled the HF interference quite a bit, and I was able to listen to the HF bands on my way into Brisbane.  At least it was nice to listen to something <em>other</em> than <em>that sodding wedding in the UK</em>.  (C&#8217;mon fellas, yes, great and all but can&#8217;t we just confine it to <em>one</em> station?)</p>
<p>I was concerned about the longevity of this arrangement however.  And as it turned out, I was right to be concerned.  It broke as I approached the Normanby Fiveways.  I went over a bump, heard a crack, and noticed the headlight dangling by the power lead.  I pulled over, threw it in the basket and grabbed the backup headlight.  At least there was one on the helmet, a 1W LED, so I <em>still</em> complied with local laws for night riding.  I didn&#8217;t have a mounting for the backup light, I just pointed it forward sitting in the bottom of the front basket, with it on flash as a warning to drivers.</p>
<p>Once at the destination, I reverted the headlight back to being directly mounted on the bicycle frame.  Interference was intermittent, but when it was acting up, it <em>did</em> wipe out 80m with S6 noise.  Not good when most stations are barely making S6 as it is.  I wound up turning off the main headlamp as for the most part I could see where I was going, and I knew the route.  As I got out of town this was less of an issue due to the lack of traffic, and of course I was on bicycle paths or the footpath for 90% of it.  That at least allowed me to hear what was going on with the net.</p>
<p>The other flaw I had was that the helmet&#8217;s speaker connections were acting up&#8230; wound up unplugging the earpiece side of the headset adaptor and using the internal speaker.  Thankfully I could still use the helmet&#8217;s microphone and the rest of the wiring harness&#8230; just not the speakers in the helmet.  I noticed this as I pulled out of my street, in fact I was aware there was a problem, but now I know where the problem is now.  I&#8217;ll get onto it tomorrow.  And I&#8217;ll look at a better way to mount this headlamp in an insulated fashion as an interim solution to a power supply replacement.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/04/29/vk4mslbm-hf-contact-on-80m/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Ever thought of using a mobile phone instead&#8221;</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/03/05/mobile-phone/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/03/05/mobile-phone/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 01:11:00 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[2011]]></category>
		<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[linux.conf.au]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=694</guid>
		<description><![CDATA[This is a question raised on an earlier post of mine. It&#8217;s an interesting comparison between radios and mobile phones.  And some are of the belief that all you do with a radio, is talk on it, or that mobile phones can completely replace radios.  Rather than respond there, I&#8217;ve decided there&#8217;s enough content there [...]]]></description>
			<content:encoded><![CDATA[<p>This is a question raised on an <a href="http://stuartl.longlandclan.yi.org/blog/2009/12/06/vk4msl-bicycle-mobile-p/comment-page-1/#comment-3987">earlier post of mine</a>.</p>
<p>It&#8217;s an interesting comparison between radios and mobile phones.  And some are of the belief that all you do with a radio, is talk on it, or that mobile phones can completely replace radios.  Rather than respond there, I&#8217;ve decided there&#8217;s enough content there for a completely separate post.  I have highlighted my main arguments here for those who just want to quickly skim through.</p>
<p>Indeed, mobile phones do exist, and they are very handy things.  They do generally come with some sort of hands-free capability.  This is true of my Nokia 3310 … <a href="http://www.jaycar.com.au/productView.asp?ID=PP0101&amp;CATID=35&amp;form=CAT&amp;SUBCATID=403">the connectors are available from JayCar</a>, and the <a href="http://pinouts.ru/HeadsetsHeadphones/nokia_headset_pinout.shtml">headset schematic</a> is trivial.  This is not true of all mobile phones unfortunately.  Much the same is true of my radios, the <a href="http://www.rigpix.com/yaesu/ft897d.htm">FT-897D</a> takes a standard RJ45 connector for the microphone, the FT-290R II takes a more obscure 8-pin &#8220;Foster&#8221; connector, but even they can be sourced if you look around.</p>
<p>RFI is a worse problem for mobile phones however, GSM seems to have a happy knack of being able to inject itself into almost anything unless you&#8217;re careful with your circuit design.</p>
<p>It&#8217;s worth considering what the primary point of the exercise is however, and how radio and mobile phones differ.</p>
<p><strong>Mobile phones are <em>great</em> if you want to call someone <em>specific</em>.</strong> They are highly optimised for one-to-one conversations.  In fact, it&#8217;s highly expensive to do anything else.  Conference calls are a rare thing and you pay through the nose for the privilege.  Mobile phone charges are high enough already — I would not like to be paying for the cost of a one hour conference call twice daily on my way from/to work.</p>
<p>To contrast the fees, <strong>it costs me $20/month for a mobile phone service through Telstra (excluding calls)</strong>.  I rarely see a phone bill above $30, but I&#8217;d probably see that climb to triple digits if I used it in the manner I use my radio.  <strong>The radio license costs me $65/year</strong>, regardless of whether I leave my station packed-up and inoperable, or whether I&#8217;m using it all 31557600 seconds of the year.</p>
<p>When I was riding frequently however, I regularly participated in discussions on my commutes.  It does make the ride more enjoyable when you can have a friendly chat on the way in.  The beauty of radio though is that you don&#8217;t all have to be in close enough proximity to hear each other baseband.</p>
<p><strong>Radios are well suited to group discussions, since radio is an inherently shared medium.</strong> At most a repeater site which can relay the traffic between stations is all that is necessary.  I&#8217;ve also had quite successful simplex contacts on the 2m band over 50km, and <a href="http://stuartl.longlandclan.yi.org/blog/2010/08/22/vk4msl-bm-contact-zl3sv/">overseas on the 40m band</a>.  Mobile phones only achieve coverage over a few kilometres line-of-sight, coverage is extended by cellular towers which perform a similar function to repeaters.</p>
<p>If you&#8217;re in a discussion on the radio, good operating practice states that you leave a gap between transmissions so that <strong>other stations may <em>break in</em> if needed</strong>.  The breaking station may be someone wanting to get in touch with one of the other operators on frequency, may be an interested party, or could even be a person in distress.</p>
<p>It&#8217;s relatively simple for someone to jump in on a conversation.  <strong>Mobile phones however, prohibit this</strong> unless, once again, you pay severely for the privilege.  How often have you been in a situation where you&#8217;ve been trying to chase a caller off the phone so that the line is free for that important call you&#8217;ve been waiting for?  Not such a problem with radio.</p>
<p><strong>Mobile phones give you a certain degree of privacy in communications</strong>.  Encryption standards vary between mobile phone standards, but all of them (except AMPS, which is now extinct) provide some means of privacy.  <strong>Radios generally <em>don&#8217;t</em></strong> unless you pay through the nose for a set and a suitable license.  <strong>Encryption is also forbidden on amateur bands.</strong></p>
<p>Both allow a certain amount of experimentation.  If you have a mobile phone that provides an antenna socket, it is theoretically possible to construct your own antennas.  You are not however able to alter the transmission mode or frequency of operation, nor are you able to construct your own mobile phone (homebrewing) without <em>significant</em> expense, as the device you construct must be tested and approved by local authorities before you may connect it to a network.  (In Australia, the body responsible is the ACMA, and the approval you need comes in the form of a &#8220;regulatory compliance mark&#8221;, formerly &#8220;A-tick&#8221;.)</p>
<p>You can however readily experiment with software running on top of modern smartphones, if you phone is that new.  (Mine isn&#8217;t)  Or, if you have a &gt;= 3G capable phone (again, mine isn&#8217;t), you can hook a small computer up and use standard VoIP software.</p>
<p>Radios on the other hand, if your license permits it (mine does), can be completely constructed from scratch.  You choose the frequency and mode, there are boundaries where you <em>cannot</em> go, but there&#8217;s still a hell of a lot of freedom that mobile phones do not provide.  All amateur transceivers have socketed antennas, allowing experimentation with other antenna types.  Multi-band sets permit experimentation with different frequency bands, all of which differ in their properties.  Transmission modes include pretty much all analogue modes, and in most license classes, many forms of digital communication.</p>
<p><strong>Mobile phones typically are fairly easy to use</strong> (there are people however that never seem to <em>get it</em> however), while radios almost always require a certain level of training.  <strong>Amateur radio requires you to sit two or three separate exams</strong> (usually two written exams for theory and regulations, and a practical test).</p>
<p>Some might ask why I use such an old mobile phone?  Well, you&#8217;ll  notice the <a href="http://www.rigpix.com/yaesu/ft290rii.htm">FT-290R II</a> isn&#8217;t a spring chicken either.  I use stuff  because they do the job.  The old Nokia 3310 has been solid and  reliable.  There&#8217;s minimal &#8220;fluff&#8221; to cause problems.  Someone dials my  number, it rings.  I dial a number, it calls that person.  Text  messages, easy.  My needs don&#8217;t require anything more sophisticated.   Don&#8217;t unnecessarily complicate, I say.  When I&#8217;m out and about, this  means I&#8217;m contactable two ways … primarily by radio, but if the phone  rings, I can pull over and plug the phone in instead to take the call.</p>
<p><strong>In  my situation on a bicycle, it is also paramount that I do not have my  hands tied up manipulating radio/phone controls.</strong> My solution was to wire up a small  keypad which provides push-to-talk and four directional buttons.  On  the mobile phone, the PTT becomes my answer button, and I can dial a  person by momentarily pressing the button, waiting for the prompt, and  announcing the &#8220;voice tag&#8221; of the person in the phone book.  The phone  then rings that person automatically.</p>
<p>On the radio, I mainly use  memory channels, so I&#8217;m moving up and down the memory channels.  Usually  I just switch to a given frequency, and stay there.  When I want to  talk, I press the button down — or, more recently I added a switch which  is equivalent to &#8220;holding the button&#8221;.  So I just flick the switch to  go to transmit, and flick it back again.  In the meantime, I&#8217;m able to  use my hands for operating the bicycle.</p>
<p><strong>Contrast this with trying  to juggle a netbook computer running a VoIP package such as Skype.  It&#8217;d  be a nightmare, those user interfaces are <em>not</em> designed for  mobile operation.</strong> They&#8217;re simply not appropriate.  SIP-based VoIP is  better in some ways as you can code your own application, but even then,  you&#8217;re at the mercy of the mobile phone carrier&#8217;s network.  VoIP is  very sensitive to NAT and dynamic IP addresses, and I think operating  mobile in this manner would be a bit much to expect.  Skype also cannot  handle a group as large as radio can.  (SIP can handle over 200  participants in a conference, limited by server bandwidth.  On the  radio, I&#8217;ve regularly participated in nets with more than 10 people on  air at a time.  Skype is limited to 5 IIRC, or maybe you pay for more.)</p>
<p><strong>Amateur radio is largely <em>infrastructure independent.</em></strong> On the  bicycle I can get around obstacles that would be impassable in a car.   Wtih high capacity batteries, and a reasonable power set on a high  mountain top, I can achieve significant simplex range, thus allowing me  to relay traffic over great distances, without any requirement for  intermediate infrastructure.</p>
<p>&#8220;Ohh, I&#8217;ll just use the phone for that&#8221; you say.  Yeah, right.   Try that in the Lockyer Valley just now.  Many of the mobile phone  towers went for a swim, as did the exchanges.  Areas around Grantham are  without any forms of mobile or land-line based telephony.  And of  course, no Internet.  The same situation was the case for people caught  up in the Black Saturday bushfires down in Victoria.  I&#8217;d imagine  communications are under very heavy strain in Christchurch at the  moment.</p>
<p>Mark Pesce made a very valid point in his <a href="http://blog.futurestreetconsulting.com/2011/01/28/smoke-signals/">LCA2011 keynote</a>,  communications can also be disrupted for political reasons, such as  what has happened in Egypt and Lybia.  What do you do then?  Radio&#8217;s not  perfect, but it sure beats being left without a means to let people  know you&#8217;re okay.  <strong>With mobile phones, you are dependent on <em>others</em> to bring online infrastructure, before you can make a call from your phone to the other</strong>.  (Unless you experiment with something like the Serval Batphone, which has its limitations.)</p>
<p><strong>So one does not completely replace the other.  They are <em>complementary</em>.</strong> The theory requirement keeps a lot of people away from amateur radio, however I&#8217;m happy to report I&#8217;ve never received a telemarketing call on the radio. <img src='http://stuartl.longlandclan.yi.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   More to the point, <strong>there is more to amateur radio than just talking to people</strong>, just like there&#8217;s more to the police force than just arresting people.</p>
<p>As for me, radio has fascinated me for a long time.  I first became interested in radio from a very young age, but I particularly got into it after studying how it worked at university.  This is what lead me on to amateur radio.  So for me, it&#8217;s as much technical as it is social.  I enjoy meeting up and talking with people, but I also enjoy the experimental aspect of it.</p>
<p>At the moment, a large amount of my energy is going into bicycle mobile operation, particularly with regards to HF communications.  This does necessitate big antennas.  Antenna installations are always a trade-off between physical size, efficiency and band-width, and it can be a real challenge to get things working, but it&#8217;s rewarding when it pays off.</p>
<p>Some would argue: &#8220;Why bother? Just use a mobile phone.&#8221;  That&#8217;s like asking a car enthusiast, &#8220;why muck around under the bonnet when you can take your car to the garage down the road?&#8221;  Or to the avid gardener, &#8220;Why bother growing your own veges, there&#8217;s a greengrocer in the shopping centre?&#8221;.  Yes, they do exist.</p>
<p>I also would like to point out that the commercial world has gained <em>lots</em> from home experimenters.  You use a NAT router for your home Internet connection?  What&#8217;s the OS it runs?  Many run Linux.  Did we get Linux from a big commercial organisation originally?  No, it came from an avid homebrewer of operating system kernels, and was <a href="http://groups.google.com/group/comp.os.minix/browse_thread/thread/76536d1fb451ac60/b813d52cbc5a044b">never intended to be &#8220;big and professional like gnu&#8221;</a>.  Did we get Single Sideband from the commercial world?  No, it was an Amateur Radio inspired invention.  Likewise with a lot of high frequency design techniques that are <em>in</em> mobile phones today.  Heck, in the future we&#8217;ll probably be adding <a href="http://codec2.org/">Codec2</a> to that list.</p>
<p>The world needs amateurs of all persuasions.  For this reason, declaring something &#8220;obsolete&#8221; just because you can do the <em>subset</em> of things you do with another more contemporary technology, is a short-sighted way of viewing things.  The amateur world benefits from the professional world, and vice versa.  It&#8217;s often the case that someone who works in a particular industry for a living, goes home then hacks on various projects related to that industry for fun in his/her spare time.</p>
<p>So, &#8220;why not just use a mobile phone&#8221;?  Because I find radio fun, I enjoy it, and I hope that some day, what I learn can be shared and applied in a professional setting to improve technology as a whole.  After all, isn&#8217;t having fun what the world is all about?</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/03/05/mobile-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The impending IPocalypse</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/02/05/the-impending-ipocalypse/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/02/05/the-impending-ipocalypse/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 11:02:22 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[2011]]></category>
		<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[linux.conf.au]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=664</guid>
		<description><![CDATA[The following was a news article that I intended to record and have included in this week&#8217;s WIA National News service, however I had problems cutting it down to the 1:30 required. So, I&#8217;ve put in additional information that there wasn&#8217;t time for, and I intend to put in a short piece for next week&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>The following was a news article that I intended to record and have included in this week&#8217;s <a href="http://www.wia.org.au/members/broadcast/wianews/">WIA National News service</a>, however I had problems cutting it down to the 1:30 required.  So, I&#8217;ve put in additional information that there wasn&#8217;t time for, and I intend to put in a short piece for next week&#8217;s news.</p>
<p>For the technically minded, I do apologise if it seems a bit dumbed down, but not all the target audience are computer-savvy.</p>
<hr />The IPocalypse is upon us, no I&#8217;m not talking about some new Apple product, I am talking about the Internet Protocol, specifically version 4.  <a href="http://en.wikipedia.org/wiki/IPv4">IPv4</a> has been with us since 1980, and has come to dominate all aspects of computer networking.  In fact, so popular is this networking protocol, that earlier this week, the <a href="http://www.iana.org">Internet Assigned Numbers Authority</a>, <a href="http://en.wikipedia.org/wiki/IPv4_address_exhaustion#Allocation_of_final_IPv4_space">ran out of addresses</a>.</p>
<p>At the <a href="http://www.followtheflow.org">recently held linux.conf.au conference in Brisbane</a>, Google Vice President Dr. Vinton Cerf, and <a href="http://www.apnic.net">APNIC</a> Chief Scientist Geoff Huston both gave talks covering this very issue.  For those who want an in-depth overview of the problem, I recommend viewing both these videos:</p>
<ul>
<li><a href="http://linuxconfau.blip.tv/file/4683393/">LCA2011 Keynote: Dr Vinton Cerf</a></li>
<li><a href="http://linuxconfau.blip.tv/file/4692762/">LCA2011 Keynote: Geoff Huston</a></li>
</ul>
<p>Back in 1973 when the beginnings of what became IPv4 was being conceived, it was decided that an address space of 2³² addresses (or 32-bits, about 4 billion) would be sufficient for what was considered, back then, an experiment.  The &#8220;Internet&#8221; (then known as ARPAnet) barely spanned 5 computers.  Computers occupied rooms and were not portable, nor was there any significant wireless telephony infrastructure at the time.  The problem is, the experiment never ended, and now IPv4 in this modern age of handheld computers and wireless Internet, is being pushed to its absolute limits.</p>
<p>Most people are familiar with using a telephone.  You need to know the number of the person you want to want to contact (or the phone number for directory assistance and quoting a name).  Only then can you place the call, and get in touch.  Now unlike a telephone network, where the call is established and a bi-directional connection exists for the duration of the contact, on the Internet, its more like dialling a voice mail service and leaving a message.  I need to leave that person my phone number so that they can get back in touch with me (or rather, leave a message in <em>my</em> voice mail box).</p>
<p>Extending the metaphor a bit, it is common for computers to have multiple connections going on at a time.  Servers also often run multiple services on the same system.  Thus, each system uses separate <em>ports</em>, akin to individual mailboxes.  Each computer has 65536 of them¹.  On the sending side, a free port is usually allocated at random and used for the duration of the connection.  At the server end, a fixed port is used to &#8220;listen&#8221; for incoming requests.  When sending data from one computer to another, the sender needs to tell the receiver which mailbox (or port) the data came from, and which it belongs in, so that data goes to the right place, and any replies can be correctly addressed.</p>
<p>The problem now, is that the address space on this global network is now in the hands of regional registries.  These regional centres look after the Internet services for a given geographic region.  Once those registries run out, it&#8217;s game over.  Internet service providers are forced into deciding between one of four actions:</p>
<ol>
<li>Turning away new users (the infamous &#8220;No Vacancy&#8221; sign)</li>
<li>Implementing Carrier-wide Network Address Translators</li>
<li>Becoming a walled garden</li>
<li>Moving over to something new</li>
</ol>
<p>I can see option 1 is not going to be popular, so I&#8217;m not even going to discuss it.</p>
<p>Option 2 is already happening in parts of Asia.  Rather than giving everyone a number that is recognised world-wide, they give you and fellow customers private ones.  They then employ an intermediate server, a Network Address Translator to re-write the addresses on the IP packets so that they appear to be sent from that server.  NATs of course are not just things that exist in ISPs, home internet routers often do exactly this.  Another example of NAT is Microsoft&#8217;s Internet Connection Sharing.</p>
<p>When a computer sitting behind the NAT wishes to contact a server outside, the NAT instead picks one of <em>its</em> ports, and places the outgoing message there.  It then replaces the source address and port with its publicly visible address, and the port number it chose, and forwards that on to the outside world.  When the reply comes back, it re-writes the destination on the reply to point to the original address and port number of the originating computer.</p>
<p>There isn&#8217;t a theoretical limit to the number of computers that can exist behind a NAT.  The limitation is the number of ports.  Ports may not be shared by two applications, if a program or service is already using a given port number, it is essentially unavailable for others until that program or service is finished.</p>
<p>That means that for any computer, there can be a maximum of 65536 connections at any one time.  NATs are not magical devices, and this limit applies to them too.  In this modern age of parallel computing, even web browsers will frequently launch multiple connections in parallel.  Some of these connections are short lived (such as the time taken to download the text off this page), some take a while (such as the time taken to download one of the keynote speeches linked to earlier).  The resource demand will change over time with user habits.</p>
<p>The first big problem with NATs though, comes when you have an application that needs to be contactable from the outside world.  The application for all intents and purposes is like a server, and is listening for connections.  The trouble is, this computer is behind a NAT, and its <em>actual</em> address is a private network address.  Even if an outside computer knew what it was, it wouldn&#8217;t know how to get there, and quite likely, wouldn&#8217;t be allowed even if it did.  So the only way to be contacted, is via this NAT box.</p>
<p>Now suppose you tell someone (or the application does on your behalf) your NAT box&#8217;s IP address, and the port number your application is listening on and an outsider tries to make contact.  The NAT box hears the request, but where does it send it?  It knows nothing about this port!  The NAT box has to be <em>told</em> to reserve one of its ports (which again must be unique), and to forward any packets sent there, to the right port on your computer.</p>
<p>The hardest bit here is that not all NAT devices work the same way in this regard, there is no <em>de-jure</em> standard for configuring a port-forward.  Microsoft UPNP is one of many <em>de-facto</em> standards that exist, and not all NAT devices or applications support it.  A lot of these also have lots of problems of their own.  In some cases, you have to set this up yourself.  Doable if the NAT device is under your control, but in the future we may be faced with NAT devices that are controlled by ISPs.</p>
<p>The applications that will be hardest hit by this will be any applications that rely on peer-to-peer communications.  This includes, amongst other things, the file-sharing services in instant messenger clients, peer-to-peer file sharing services such as Bit-Torrent, and Voice-over-Internet Protocol applications such as <a href="http://www.skype.com">Skype</a> and <a href="http://www.echolink.org">EchoLink</a>.  IRLP, which relies on nodes having a <em>static</em> public IP address will be hit particularly hard, many ISPs already charge extra for the privilege of a static IP.</p>
<p>Hardware devices that use the Internet are not immune from this too — in fact the situation there may be made worse, since in a lot of cases, the port numbers used are <em>hard coded</em> in the device&#8217;s firmware.   You may ring up to get that special port forwarded, and already discover that another customer of the same ISP rang up 5 minutes ago and claimed it before you.</p>
<p>Ignoring these niggles, NATs don&#8217;t sound <em>too</em> bad if everyone is playing by the rules.  But what if someone decides to set up an Internet marketing company and starts filling up everyone&#8217;s email boxes with yet more &#8220;Discount Viagra&#8221; offers.  The way things are here in Australia, the ISP gives each customer a public IP address (which may be static, or it may change on a regular basis), and that is used as the public address on a NAT device owned by the customer.  If a customer were to do that, the IP address of that NAT device is visible in the emails sent — an ISP can simply look up who had that IP address at that time, and can immediately take action.</p>
<p>Now, suppose that instead, the ISP relied on NAT.  The IP address would be that of the ISP&#8217;s NAT box.  The culprit could be any one of the many users sitting behind it.  &#8220;Jjust log each connection on the NAT box&#8221; you say.  Deary me, could you imagine how <em>slow</em> that would be?  Not to mention the disk space used!</p>
<p>Now what happened if at the same time, other users were legitimately sending emails to that same network?  The logs point to a dozen users, which one was it?  If the complainant told you the source port used in the connection when the email was sent, <em>maybe</em> you can look that up, but I&#8217;m yet to see that sort of information recorded in system logs, email headers certainly don&#8217;t have them.</p>
<p>Clearly, this is not a solution.  It&#8217;ll make address space stretch a little further, but not without causing a world of pain for software developers who have to make their software compatible with differing standards, and causing the rest of us grief as we drown in a mountain of malware and spam.  If you think spam today is bad, <em>you ain&#8217;t seen nothin&#8217; yet!</em></p>
<p>The other way ISPs can go, is to close off from the world, and becoming a walled garden.  That is, you need to be a member of <em>their</em> network, to be in contact with other users that happen to also use <em>their</em> network.  Or if they provide connectivity to neighbours, it&#8217;s costly, and/or heavily controlled.  Anyone remember CompuServe, America Online, The Microsoft Network?  Ring any bells?  Those long-ago isolated bulletin board systems?  If they do, I apologise for stirring up bad memories.  If they don&#8217;t, count yourself lucky, and hope like hell ISPs don&#8217;t go back there!</p>
<p>I did say there was a fourth solution didn&#8217;t I?  Something new?  The <a href="http://www.ietf.org">Internet Engineering Task Force</a> weren&#8217;t naïve enough to assume 32-bits would be enough.  They recognised that this would be a problem way back in the early 90&#8242;s.  They formed the Internet Protocol Next Generation working group, which in 1998 produced <a href="http://tools.ietf.org/html/rfc2460">RFC2460</a>:² <a href="http://en.wikipedia.org/wiki/IPv6">Internet Protocol version 6</a>.  IPv6 extends the address space to 128 bits, a <em>big</em> improvement on IPv4.  It also addresses a number of other bug-bears that people had with IPv4.</p>
<p>Some notable ones include: Mobile IPv6 extensions to allow a portable computer (such as a smart phone) to remain contactable at the same address as it roams between multiple networks, improved quality-of-service handling for real-time streaming and multimedia, automatic addressing and simplified headers to make routing easier.</p>
<p>The biggest feature though is the address space.  NAT is not implemented in IPv6, it is not necessary as there&#8217;s enough space to move around.  Rather than being given a single IPv4 address which you must share with all your computers, in IPv6, you get given a whole network address prefix.  Typically this prefix is 64-bits long, leaving you the remaining 64-bits of space to allocate to each of your computers.  How many addresses is that?  Remember the 4-billion (approximate) number I quoted for IPv4?  Square it!  If you have a computer network bigger than that, I do not want to see your power bill!</p>
<p>Modern computer operating systems can function on IPv6 already.  Microsoft Windows XP includes support, which can be enabled by following <a href="http://support.microsoft.com/kb/2478747">a few easy steps</a>.  Windows Vista and 7 come with it enabled out-of-the-box, as do Mac OS X, Linux and the BSDs (FreeBSD, OpenBSD, NetBSD, etc…).  Hardware devices can be made to support IPv6 by a simple firmware upgrade, if one is available.  If a manufacturer has not published a firmware upgrade for a device you own to support IPv6, contact them now!</p>
<p>ISPs world wide are dragging the chain on IPv6 take-up.  There are some notable exceptions, here in Australia for instance Internode offer native IPv6 for their customers.  I&#8217;m unaware of others in Australia.  If your ISP is one of the IPv4 sheep, it&#8217;s now time to contact your ISP and ask them what they are doing about IPv6.  In the meantime, you can get an IPv6-in-4 tunnel from a tunnel broker such as <a href="http://broker.aarnet.net.au">AARnet</a>, <a href="http://ipv6.he.net">Hurricane Electric</a> or <a href="http://www.sixxs.net">Sixxs</a>.</p>
<p>Many online services are slowly making the move over to IPv6.  Google can be accessed via <a href="http://ipv6.google.com">ipv6.google.com</a> for instance.  This blog is accessible via IPv6 (thanks to AARnet).  Sixxs have a <a href="http://www.sixxs.net/misc/coolstuff/">big list of sites that are IPv6 enabled</a>.  In June (the 8th to be exact) this year, there will be a world-wide test of IPv6.  Google (as in their entire site), FaceBook and Microsoft&#8217;s Bing search engine among many other sites will be going IPv6-enabled on <a href="http://isoc.org/wp/worldipv6day/">World IPv6 day</a>.  If you&#8217;re not already on IPv6, it&#8217;d be great if you could join us.</p>
<p>Openness is one of the things that made the Internet popular.   There is a very real threat that this openness or freedom we currently experience will be lost.  If you&#8217;re a software developer, we need you to ensure your software works with IPv6 for it to keep working into the future.  If you&#8217;re a network administrator, you need to ensure your network is IPv6 compatible.  If you&#8217;re a consumer, we need you to start pestering the help desks of these software companies, device manufacturers and ISPs to ensure the commercial world sees the user demand for this!</p>
<p>To quote Mark Pesce, &#8220;a resource shared is a resource squared&#8221;.  We need to ensure the Internet remains open and free, for all people into the future.</p>
<hr />1. To be more accurate, there are 65536 TCP ports, and 65536 UDP ports.  However, a UDP port cannot be used for TCP traffic, or vice versa.</p>
<p>2. RFC = Request for comment</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/02/05/the-impending-ipocalypse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geographic IPv6 using Maidenhead locators</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/02/05/geographic-ipv6-using-maidenhead-locators/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/02/05/geographic-ipv6-using-maidenhead-locators/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 00:19:46 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=661</guid>
		<description><![CDATA[A thought just occurred to me… With addressing in IPv6, there&#8217;s enough addresses to cover every square metre of the earth&#8217;s surface with something like 100 addresses or so.  Not sure if a standard exists for mapping geographic co-ordinates to addresses, but one just occurred to me that I might try some day. The Maidenhead [...]]]></description>
			<content:encoded><![CDATA[<p>A thought just occurred to me…</p>
<p>With addressing in IPv6, there&#8217;s enough addresses to cover every square metre of the earth&#8217;s surface with something like 100 addresses or so.  Not sure if a standard exists for mapping geographic co-ordinates to addresses, but one just occurred to me that I might try some day.</p>
<p>The Maidenhead locator system divides the world up into a series of squares.  At its coarsest level, it divides into zones which are each 10? latitude and 20? longitude.  There form a 18×18 grid, and are usually denoted by a letter.</p>
<div class="wp-caption aligncenter" style="width: 460px"><a href="http://en.wikipedia.org/wiki/File:Maidenhead_Locator_Map.png"><img title="Maidenhead Locator zones" src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/94/Maidenhead_Locator_Map.png/450px-Maidenhead_Locator_Map.png" alt="Maidenhead Locator zones" width="450" height="225" /></a><p class="wp-caption-text">Wikipedia: The world is divided into 324 (18²) Maidenhead fields.</p></div>
<p>These are divided further into grid squares, measuring 1? × 2? in size.  They form a 10×10 grid, and are usually addressed by a number…</p>
<div class="wp-caption aligncenter" style="width: 310px"><a href="http://en.wikipedia.org/wiki/File:Maidenhead_grid_over_Europe.svg"><img title="Maidenhead grid squares" src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Maidenhead_grid_over_Europe.svg/300px-Maidenhead_grid_over_Europe.svg.png" alt="Maidenhead grid squares" width="300" height="247" /></a><p class="wp-caption-text">Wikipedia: Fields are divided into 100 squares each.</p></div>
<p>Within this, there are subsquares, representing 2.5&#8242;×5&#8242; (that&#8217;s minutes, not feet) forming a 24×24 grid, addressed again by letter.  The grid square where I&#8217;m located, QG62LN represents an area that covers the suburbs of The Gap, the southwest bit of Enoggera, the northwest bit of Bardon, and the western end of Ashgrove.</p>
<p>Suppose we were to encode this maidenhead locator into the address.  It&#8217;s probably less useful in traditional IP networks, but maybe it will have a use.  In Amateur Radio it may be useful for the purpose of routing between mobile stations.  In fact, it&#8217;s this mobile context where I see it being most useful.  Lets first consider how many bits we&#8217;d need to store each component:</p>
<ul>
<li>Zone level, 18×18 grid: 5 bits for latitude, 5 bits for longitude, or alternatively for 324 zones, 9 bits.</li>
<li>Square level, 10×10 grid: 4 bits for latitude, 4 bits for longitude, or alternatively for 100 squares, 7 bits.</li>
<li>Subsquare level, 24×24 grid: 5 bits for latitude, 5 bits for longitude or alternatively for 576 subsquares, 10 bits.</li>
</ul>
<p>Logically you&#8217;d be using numbers starting at zero for the addresses in all fields, so A would be translated to 0, etc.  My QTH locator (QG62LN) would be translated as follows: Q?16, G?6, 6?6, 2?2, L?11, N?13.</p>
<p>You can either address latitude and longitude individually, packing them  as separate fields, or you can lump them together to possibly save one  bit of space.  For instance, I can concatenate the two 5-bit values representing the zone QG into a 10-bit value: <tt>10,0000,0110? = 0x206</tt>.  Or I can save some space by realising there are only 324 zones which can be represented with 9 bits like so: ((16×18) + 6) = zone 294 ? <tt>1,0010,0110? = 0x126</tt>.  The grid square can be similarly encoded (<tt>0110,0010? = 0x62</tt> or <tt>011,1110? = 0x3e</tt>), and likewise the subsquare.</p>
<p>How would you pack these into an IP address?  I was thinking something along one of these two:</p>
<pre>
   Zone      Square   Subsquare
 Lat   Lng   La   Ln   Lat   Lng
.---. .---. .--. .--. .---. .---.
10000 00110 0110 0010 01011 01101 = 28 bits

  Zone    Square  Subsquare
.-------. .-----. .--------.
100100110 0111110 0100010101      = 26 bits
</pre>
<p>Presumably these would form the lower 28 or 26 bits of your prefix.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/02/05/geographic-ipv6-using-maidenhead-locators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IPsec query: Configuring on-the-fly from unprivileged userspace</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2011/02/05/ipsec-query-configuring-on-the-fly-from-unprivileged-userspace/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2011/02/05/ipsec-query-configuring-on-the-fly-from-unprivileged-userspace/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 23:28:33 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=658</guid>
		<description><![CDATA[Well, I&#8217;m not sure where to ask this, I did ask on the netdev mailing list and while I don&#8217;t think it&#8217;ll get ignored indefinitely, I&#8217;m not sure that was the right place.  A stab in the dark if you will.  In the hope of netting more answers though, I cast this query into the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I&#8217;m not sure where to ask this, I did ask on the netdev mailing list and while I don&#8217;t think it&#8217;ll get ignored indefinitely, I&#8217;m not sure that was the right place.  A stab in the dark if you will.  In the hope of netting more answers though, I cast this query into the blogosphere…</p>
<p>I&#8217;ve been toying with the idea of a <a href="http://wongi.longlandclan.yi.org">small multicast VoIP/digital comms protocol</a> for use over wireless radio links.  The typical use case might be to replace UHF FM radio transceivers with modern smart phones, using multicast IPv6 networking over 802.11b.  (It will have other modes too, transmission over amateur radio bands for instance.)</p>
<p>In some commercial settings, or over the Internet, it&#8217;d be great for traffic to be authenticated using HMAC-SHA1 or even encrypted.  Looking at IPsec, I see it provides exactly this.  My thought, why re-invent the<br />
wheel when a solution may already exist?</p>
<p>The question though:  Is it possible for a userspace application (non-privileged) to request that the UDP packets it generates/receives from/to a particular address be encrypted or hashed against a specified key?</p>
<p>i.e. if I decide to communicate with someone on the same wireless link, and by means of asymmetric crypto at higher layers we establish a shared AES key, can I configure the stack for traffic between these two hosts<br />
on-the-fly and without root privileges?</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2011/02/05/ipsec-query-configuring-on-the-fly-from-unprivileged-userspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New toy</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2010/12/12/new-toy/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2010/12/12/new-toy/#comments</comments>
		<pubDate>Sun, 12 Dec 2010 03:38:00 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Bicycle Mobile]]></category>
		<category><![CDATA[Homebrew]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=609</guid>
		<description><![CDATA[I picked up a few new toys recently.  I&#8217;ve been looking around for a small microcontroller based device to act as a combined remote face / DTMF generator for my FT897D.  The idea is that this device could interface with the FT897D via its CAT port, and allow me to adjust the frequency and mode, [...]]]></description>
			<content:encoded><![CDATA[<p>I picked up a few new toys recently.  I&#8217;ve been looking around for a small microcontroller based device to act as a combined remote face / DTMF generator for my FT897D.  The idea is that this device could interface with the FT897D via its CAT port, and allow me to adjust the frequency and mode, recalling the information from internal flash or an SD card.</p>
<p>The remote face would then be mounted on the front of the bicycle, and connect to the radio at the rear to allow easy bicycle mobile operation.  An extension of this would be control of a separate 2m radio, and a GPS to allow APRS from the bicycle.</p>
<p>The idea was to have the memory work like a relational database.  Rather than just recalling memory channels, and having a big long list, I could scroll through the repeaters by callsign, location (service area), or combined with GPS, proximity.  Modern flash technology would make this easily doable.</p>
<p>Likewise, for DTMF, rather than having to carry around a cheat sheet or remember IRLP node numbers, wouldn&#8217;t it be nice to just be able to scroll through a node list by country/region/callsign, select one, hit the &#8220;Call&#8221; button, put your callsign across and have it automatically dial the moment you raised the PTT?</p>
<p>I don&#8217;t have the ability to manufacture PCBs of the standard required for ICs such as most 32-bit microcontrollers.  SOIC is about as fine as I can muster, and prototyping services are expensive.  Thus I was looking for a stamp module or premade board.</p>
<p>Luminary Micro (now TI) make a few nice ones, and during my work at Laidley, I got to use the LM3S8962 Ethernet/CAN evaluation board.  One nice feature was that it had the JTAG built-in via a FTDI USB-serial chip.  However, the licensing for the board support package irks me — despite their code being useless on anything other than one of their chips, they still see it necessary to modify the BSD license adding a clause that prohibits its use on non-TI microcontrollers.  I had a crack at writing <a title="libstellaris: LGPL library for Stellaris MCUs" href="http://git.longlandclan.yi.org/?p=libstellaris.git;a=summary">my own &#8220;free-software&#8221; Stellaris</a> library, but haven&#8217;t gotten that far with it.</p>
<p>I happened to stumble on <a href="http://item.taobao.com/item.htm?id=4179279085">this board</a> based around the STM32F103VET.  They were <a href="http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&amp;item=220591029109&amp;ssPageName=STRK:MEWNX:IT">being sold on eBay</a> for about $60 at the time, so I decided at that price I&#8217;d buy three.  ST&#8217;s driver library appears to be very liberal in its licensing (in fact they claim there is &#8220;no license&#8221;, I don&#8217;t know if this means &#8220;public domain&#8221;, or whether I treat it like BSD).</p>
<p>The LCD panel uses the Ilitek ILI9320 display controller with internal graphics RAM, and is capable of 18-bit colour.  The board also features a RTC backup battery, Texas Instruments TSC2046 touchscreen controller and on-board RS232 level converter.  The STM32 also functions as a USB peripheral, and can be programmed using the <a href="https://github.com/jsnyder/stm32loader">stm32loader</a> bootloader script via RS232.</p>
<p>Interestingly, the LCD controller documentation states that no part of that documentation may be reproduced without written permission.  I&#8217;m not sure if writing an open-source driver classes as &#8220;reproducing&#8221; the documentation (as I&#8217;d be making documented #define statements in C).</p>
<p>The devices come with example source and have a pre-loaded µC-GUI demonstration on them.  So far I&#8217;ve managed to distill enough out of these sources to get working touchscreen, LCD and UART.  I&#8217;ll probably start looking at FreeRTOS next and seeing if I can get a workable device going.</p>
<div id="attachment_610" class="wp-caption aligncenter" style="width: 310px"><a href="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/12/stm32board.jpg"><img class="size-medium wp-image-610" title="STM32F103 board" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/12/stm32board-300x225.jpg" alt="STM32F103 board" width="300" height="225" /></a><p class="wp-caption-text">STM32F103 board running a simple &quot;Hello World&quot; app</p></div>
<div id="attachment_611" class="wp-caption aligncenter" style="width: 310px"><a href="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/12/stm32-lcd.jpg"><img class="size-medium wp-image-611" title="Hello world application for STM32" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/12/stm32-lcd-300x225.jpg" alt="Hello world application for STM32" width="300" height="225" /></a><p class="wp-caption-text">Hello world application for STM32</p></div>
<p>Guess now I had better start planning my application. <img src='http://stuartl.longlandclan.yi.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2010/12/12/new-toy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Battery management system musings</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2010/11/04/bms-musings/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2010/11/04/bms-musings/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 06:47:08 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=583</guid>
		<description><![CDATA[One thing I do enjoy is bicycle mobile operation&#8230; that is, operating the radio whilst traveling on the bicycle. One significant barrier to this is battery life however. So far I&#8217;ve stuck with 13.8V 9Ah gel cell batteries. These are far from ideal, but are pretty good for the price. They are lighter and cheaper [...]]]></description>
			<content:encoded><![CDATA[<p>One thing I do enjoy is bicycle mobile operation&#8230; that is, operating the radio whilst traveling on the bicycle.  One significant barrier to this is battery life however.</p>
<p>So far I&#8217;ve stuck with 13.8V 9Ah gel cell batteries.  These are far from ideal, but are pretty good for the price.  They are lighter and cheaper than an equivalent capacity NiMH or NiCd pack, however one downside is that they do not take too kindly to deep cycling.</p>
<p>When I first started my work at Jacques Electronics, I found one battery would get me there and home again, with capacity to spare.  I&#8217;d have one at home charging, and the other on the bike.</p>
<p>This was with plenty of activity on the 2m band, transmitting full power on the FT-290R II.  Given this radio has a 25W linear amplifier, this represents an approximate 4A load when I went to transmit.</p>
<p>Towards the end of my time there, I noticed the capacity had been significantly reduced.  A combination of road vibration and deep cycling had reduced the capacity to the point that I now need to take two batteries with me.</p>
<p>So once again, I&#8217;m looking around.  They seem to go for about 6 months before they start to fail&#8230; and we&#8217;ve already got a big collection of dead gel cell batteries ready for recycling&#8230; something has to change.</p>
<p>Lithium Iron Phosphate (LiFePO<sub>4</sub>) is what I&#8217;m looking at.  Now, there&#8217;s a choice&#8230; do I go for pre-made packs?  Or do I homebrew my own out of cells?</p>
<p>For the latter to be an option, I must consider how I&#8217;ll balance them properly.  These cells are expensive and not very forgiving (although they&#8217;re better than Lithium-Cobalt or Lithium-Ion Polymer cells).  What follows is some thoughts on how to construct such a battery management system&#8230; which could be completely wrong&#8230; so don&#8217;t take this as gospel.</p>
<h2>The mission</h2>
<p>To construct a battery pack to replace the 13.8V 9Ah gel cell packs, using Lithium Iron Phosphate technology.  The battery may develop a maximum voltage potential of 15V DC, and must provide at least 9Ah effective storage capacity.</p>
<h2>Cell count dimensioning</h2>
<p>Looking around, the literature I can find suggests the typical LiFePO<sub>4</sub> cells have an operating voltage between 3.2 and 3.6V.  Therefore, to obtain 13.8V, I&#8217;d need four of them in series&#8230; producing 12.8V to 14.4V.</p>
<p>The cells themselves come in various capacities&#8230; some I can get easily are K2 Energy 26650EV cells.  These pack about 3.2Ah per cell&#8230; <a href="http://www.evworks.com.au/index.php?product=BAT-K2-26650EV">EVWorks sell them</a> for under AU$8 when you buy 10 or more.  If I&#8217;m to use those, I&#8217;d need 3 cells in parallel to give me approximately 9.6Ah.</p>
<p>Total number of cells: 12, at $7.15 a cell: AU$85.80 for a 4S3P pack.</p>
<h2>&#8220;Ideal&#8221; cell balancing</h2>
<p>Now, the best way I can think of to balance these things, is to do it on the individual cell level.  To maintain maximum life of an individual cell, one must ensure that when charging, the cell voltage does not exceed 4.2V.  When discharging, the cell voltage must not fall below 3V.</p>
<p>There are also factors such as current flow, cell temperature and age.  However, for simplicity&#8217;s sake, we&#8217;ll consider only the voltage for now.</p>
<p>Given these restrictions, it would seem wise to break apart these two actions, and consider them separately.</p>
<h3>Charging</h3>
<p>The desirable feature when charging an individual cell, is that the cell voltage itself is prevented from exceeding 4.2V.  This is of great importance with some Lithium type batteries, as the cells can explode.</p>
<p>My first instinct is to look at zener avalanche breakdown in diodes.  A zener diode in reverse bias will continue to reject current flowing through it until such time as the avalanche voltage is exceeded.  Then it begins to conduct, and the voltage drop across it will always be equal to the avalanche voltage&#8230; given sufficient series resistance.</p>
<p>This sounds like the sort of behaviour we&#8217;re after. So the input circuit becomes something like this:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/11/bms-charge01.png" alt="" width="346" height="98" /></p>
<p>Therefore we look for a zener that has the avalanche voltage close to (but below) the 4.2V needed.  Bad news is, there isn&#8217;t a 4.2V zener, we can go 3.9V&#8230; a little too low, or 4.3V, a little too high.</p>
<p>By adding an otherwise gratuitous 1N4004 diode between zener and battery, we can utilise a 5.1V 1N4733.  Due to the forward voltage drop of the 1N4004, the battery will only see voltages up to 4.0V despite the higher zener voltage.  When the battery is below this voltage, it will charge with a current decided by R<sub>lim</sub>.</p>
<p style="text-align: center;"><img class="size-full wp-image-586 aligncenter" title="bms-charge02" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/11/bms-charge02.png" alt="" width="338" height="100" /></p>
<p>This circuit certainly won&#8217;t fast-charge a big pack&#8230; but in my case, an overnight charge is quite acceptable.  The individual V<sub>charge+</sub> and V<sub>charge-</sub> are wired in series to charge all the cells from a higher voltage supply, and the strings themselves may be wired in parallel.</p>
<h3>Discharging</h3>
<p>All good and well, but what&#8217;s the point of stuffing a battery with charge if you&#8217;re not going to take the charge out at some point?  The other side of the equation is discharging.</p>
<p>The magic number to beware of, is 3.0V&#8230; drop below that, and the cells will be irreversibly damaged.  The same tool, the zener, can be used to detect when the battery is low.  One trick we can do is to swap the zener with the resistor normally placed in series with it.  The zener will still have its avalanche voltage across it, the resistor&#8217;s voltage now indicates the state of the battery.</p>
<p style="text-align: center;"><img class="size-full wp-image-587  aligncenter" title="bms-discharge01" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/11/bms-discharge01.png" alt="" width="254" height="173" /></p>
<p style="text-align: center;"><img src='http://stuartl.longlandclan.yi.org/blog/wp-content/latex/8cb/8cb80356aae468e2a0069ca2fa7031a1-T-000000-0.png' alt='V_{Low} =  \begin{cases}  &gt;0 &amp; V_{cell} &gt; V_z \\  0 &amp; V_{cell} \le V_z  \end{cases}' title='V_{Low} =  \begin{cases}  &gt;0 &amp; V_{cell} &gt; V_z \\  0 &amp; V_{cell} \le V_z  \end{cases}' class='latex' /></p>
<p>If we pass this through a NPN transistor, we wind up with negated output that can directly drive two MOSFETs.  One MOSFET will permit the current to flow only when the cell voltage is above the zener avalanche voltage.  The other, will shunt current past the cell when the voltage of the cell is too low.</p>
<p style="text-align: center;"><img class="size-full wp-image-591  aligncenter" title="bms-discharge03" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/11/bms-discharge03.png" alt="" width="367" height="173" /></p>
<p>All good&#8230; but the MOSFETs would want to be capable of delivering about 20A continuous for my needs.  An IRF9540N could do it with a heatsink.  That&#8217;s not so much a problem, but the cost is.  Each MOSFET costs about $5 locally&#8230; so there&#8217;s $10 per cell, 12 cells&#8230; $120 just in MOSFETs&#8230; the BMS will cost more than the cells!</p>
<h2>Reducing costs</h2>
<p>The charging side is fine, however the discharging aspect of this system is going to be too pricey for my liking.  So a re-think is needed.</p>
<p>The same current that would turn the NPN on, could instead turn on the LED in an optical isolator.  An optical isolator incorporating a NPN transistor would then pull down on a resistor when the cell voltage is above the zener avalanche voltage.</p>
<p style="text-align: center;"><img class="size-full wp-image-592  aligncenter" title="bms-discharge04" src="http://stuartl.longlandclan.yi.org/blog/wp-content/uploads/2010/11/bms-discharge04.png" alt="" width="358" height="323" /></p>
<p>In this circuit, when the battery voltage is high enough, the optical isolator is active, pulling the NPN&#8217;s base low and leaving V<sub>nLow</sub> floating.  All modules&#8217; V<sub>nLow</sub> signals would be wired together, forming a wired OR with the open collectors.  When a cell gets below voltage, the LED turns off, causing the isolator to turn off and the NPN&#8217;s base to rise.  It then turns on, and pulls V<sub>nLow</sub> down.</p>
<p>This signal with a suitable pull-up resistor can drive a NPN transistor for driving a P-channel MOSFET, so that when V<sub>nLow</sub> gets pulled low, the load is disconnected and an alarm raised.</p>
<p>This BMS, while undoubtedly not as good as the previous option, would provide the low-voltage protection, and can be made for under $50.  I&#8217;m curious to know how others&#8217; have tackled the problem though.  This is how I&#8217;m thinking of approaching it&#8230; I may just buy a premade pack instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2010/11/04/bms-musings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Open firmware</title>
		<link>http://stuartl.longlandclan.yi.org/blog/2010/07/04/open-firmware/</link>
		<comments>http://stuartl.longlandclan.yi.org/blog/2010/07/04/open-firmware/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 11:39:57 +0000</pubDate>
		<dc:creator>Redhatter (VK4MSL)</dc:creator>
				<category><![CDATA[Amateur Radio]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Public Syndication]]></category>
		<category><![CDATA[Thinktank]]></category>

		<guid isPermaLink="false">http://stuartl.longlandclan.yi.org/blog/?p=492</guid>
		<description><![CDATA[I was just reading back through the posts on Gentoo Universe&#8230; and Diego&#8217;s post regarding Free Software Washing Machines caught my eye. There are many benefits for why free software firmware would be good&#8230; However, you&#8217;ve got to convince the marketeers and management of such companies that this is a good idea. This is not [...]]]></description>
			<content:encoded><![CDATA[<p>I was just reading back through the posts on Gentoo Universe&#8230; and Diego&#8217;s post regarding <a href="http://blog.flameeyes.eu/2010/06/23/free-software-and-washing-machines">Free Software Washing Machines</a> caught my eye.</p>
<p>There are many benefits for why free software firmware would be good&#8230; However, you&#8217;ve got to convince the marketeers and management of such companies that this is a good idea.  This is not so simple.  In extreme cases, you&#8217;ve also got to convince government&#8230; more on this later.</p>
<p>Take my current project at my workplace.  We&#8217;re developing a new video intercom system.  The devices are based on the Freescale i.MX27, and incorporate an 800&#215;480 LCD, resistive touchscreen, USB port, ethernet (with PoE), mono internal speaker/microphone, handset interface and a small software-controlled relay.  The audio interfaces are mono, but capable of sample rate up to 192kHz (limited to 96kHz by ALSA) and it wouldn&#8217;t be difficult to get stereo out of them.  I wouldn&#8217;t mind buying one later on to play with at home &#8230; maybe one of the early ones with psychodelic colours (the first revisions didn&#8217;t have the LCD lines routed quite right) since we&#8217;ll want to sell the others.  My role was with the audio CODEC, the TLV320AIC3204, some code for this is already on the ALSA-devel mailing list (the continued development of this driver is the mainly the reason why I want one for home).</p>
<p>They&#8217;re a fun little device to play with&#8230; and there may be some who might be interested in hacking such devices.  They already run Linux&#8230; a few of them at my workplace run Gentoo even &#8212; mostly the test modules.  However, the firmware for these, particularly at the higher levels will remain proprietary.  I&#8217;ve released the CODEC driver as GPLed software &#8230; and ideally I&#8217;d like to see the rest of the kernel changes released openly.  I&#8217;ll play this by ear first however.  The good news is that if someone wanted to port Linux over from scratch, it&#8217;s real easy to get Linux booting on these things (tip: start with the Freescale MX27ADS support, I ported kernel 2.6.34 this way).</p>
<p>The CODEC driver I&#8217;m mostly happy with&#8230; the machine/fabric driver I use for ASoC on this thing however &#8230; let&#8217;s just say, it&#8217;s a hack.  The CODEC&#8217;s clock is generated from a pin on the MCU, and so I have to use some rather &#8220;creative&#8221; methods to configure that clock and make it available to the CODEC.  There&#8217;s no way it would be accepted into mainline&#8230; and we&#8217;ve since found that clock drifts the moment you look at the chip funny.  Ahh well, live and learn.</p>
<p>There&#8217;s also a GPIO module that allows us to use the keypad controller (which is not routed via IOMUX AFAIK) as a GPIO chip&#8230; similarly, it was a monkey-see-monkey-do hack&#8230; but I might be able to make that more acceptable to upstream.</p>
<p>So there&#8217;s the issue that such code is considered a bit of an embarrasment to its author.  (I don&#8217;t speak of other code on these things, just the parts <i>I</i> have written!)</p>
<p>Secondly, there&#8217;s the thorny issue of intellectual property.  The firmware on these VoIP stations incorporate a proprietary protocol for VoIP.  Why not go with SIP?  Basically this protocol was designed to run on their earlier products&#8230; which were all based on small 8-bit microcontrollers.  SIP was just too much for a ~40MHz 8-bit micro like the Rabbit 3000.  Thus a simpler protocol was developed.  I have no idea about the specifics, other than the fact that it was developed to suit the lower-end microcontrollers in use at the time.  I think in future the newer units may wind up moving over to SIP, but for now, deadlines are on top of us, we&#8217;ll go with what we know works for now.  Given how much of Jacques&#8217; business relies on this protocol, I don&#8217;t see them opening it up to their competitors anytime soon.</p>
<p>Finally, there&#8217;s one of support.  The modules we use were purchsed from Ka-Ro Electronics, and the kernel we use was supplied by them directly&#8230; based on kernel 2.6.28.  To my knowledge, there&#8217;s no openly-available patches that allow a user to run the latest Linux kernels on the Ka-Ro modules &#8212; you more or less either have to forward port the patches that Ka-Ro provide, or try to hack up a patch of your own (this is what I did).  Now, Ka-Ro clearly have their reasons for not openly releasing a patch for their hardware, I haven&#8217;t enquired as to why this is&#8230; I have a patch that gets their TX27 module working under kernel 2.6.34 (theoretically newer kernels too) but I&#8217;ll probably run it by Ka-Ro themselves before I release it.</p>
<p>Ka-Ro presumably will only provide support for the kernels and board-support packages that they provide, which is reasonable.  They started with a known stable kernel, and started their development on that (it was a year old before they touched it), and released it knowing it would be reliable.  Obviously they cannot provide the same guarantee to newer kernels&#8230; because they won&#8217;t necessarily know what might have changed &#8212; you could encounter severe bugs that were not their doing and thus, a lot of time and effort is spent trying to fix a problem that was not their doing.  Similarly, at Jacques, we don&#8217;t have the resources to answer questions from inquisitive geeks wanting to turn the monitor station in their apartment into a music player or web server.  At best, we&#8217;d be able to put some of it online, but we&#8217;d have to say &#8220;Sorry, can&#8217;t answer questions, you&#8217;ll just have to work it out yourself.&#8221;</p>
<p>In the Amateur Radio world&#8230; homebrewing, and home-modification of equipment is common.  In fact, once upon a time, it was the only way to get on air unless you had a lot of money!  Thankfully, one can now purchase a radio station for far less money than it would cost to design, build, and debug, and the build quality in general will be much higher.  Of course if you do go the homebrew route, you&#8217;ll at least be wiser and richer for the experience.</p>
<p>The difficulty with homebrewing radios these days, is getting parts, and working with them.  Back in the day, things were valves, and discrete components&#8230; maybe the odd DIP-packaged IC&#8230; and no more than double-layer PCBs.  The two Yaesu FT-897Ds I have, incorporate multi-layer boards (4 I think) and SMD devices.  One got cooked in a storm, frying the microphone preamp and a DDS chip (although the finals appear to be okay, and it makes a good shortwave receiver).  The complexity of this radio made it impossible to repair, and so I had to buy a second one (or rather, insurance did).  Now, I&#8217;m mostly very happy with this radio, but there are one or two niggles I have with regards to its interface&#8230; and a few features I&#8217;d like to implement.</p>
<p>Yaesu do provide a block diagram of their transceiver, but they don&#8217;t provide the code to the Hitachi H8300 microcontrollers that reside inside the unit&#8230; and there are several of them.  Suppose I get the microphone circuitry fixed in the cooked one&#8230; I might be able to get FM functionality back.  The DDS chip was responsible for the carrier sidetone generation with SSB, and for generating the carrier in AM and CW.  It&#8217;s no longer manufactured&#8230; and the chances of a different chip being compatible with the existing firmware are next to zilch.  I&#8217;ve still got it&#8230; I intend to build my own radio out of the bits that are left over (the Phoenix897 project) &#8230; it&#8217;ll be here that I&#8217;ll be able to explore the possibilities in terms of implemented features.</p>
<p>However, one challenge will be designing and producing PCBs that will be suitable for use with today&#8217;s devices.  The construction methods of the past such as wire-wrap and dead-bug, work fine for discrete components, work okay for DIPs, SOICs, TSSOPs and QFPs&#8230; but I&#8217;m afraid you can forget it on a BGA or LCC.  So you have to build a proper PCB, and the track work has to be very fine.  Then there&#8217;s the actual fitting of components onto the board.</p>
<p>The boards I was building for the electric harvester project I was involved in at Laidley didn&#8217;t involve anything smaller than TSSOP ICs, or discrete SMD capacitors/resistors smaller than 0603 (most were 0805) &#8230; easily hand-soldered.  At Jacques we&#8217;re dealing with components even smaller&#8230; they don&#8217;t get soldered by hand &#8212; instead they&#8217;re oven baked.  It takes a few hours to lay out a board, and the slightest bump will scatter all those carefully placed components.  The smaller components are not marked&#8230; with no means of identifying them, they get tossed.  (And yes, I did accidentally bump some one Friday evening&#8230; not proud of that at all.)  I can see me going through a lot of components because a PCB gets knocked for six.</p>
<p>So the modern components are much harder to work with.  An ideal solution to my dillema would be a pre-built radio that I can customise the firmware on.  Alas, the closest I&#8217;ll get to this, is SDR kits such as the Softrock&#8230; even they have to be supplied in &#8220;kit&#8221; form.  FCC rules basically forbid manufacturers from producing off-the-shelf transceivers with customisable firmware&#8230; or at least that&#8217;s how I understand it.  Not sure whether the EU works the same&#8230; and the ACMA&#8217;s EMC directives are more or less based on the FCC&#8217;s&#8230; so I suspect that&#8217;s the issue here.</p>
<p>More or less the worry is that you might hack the firmware to circumvent the bandplan restrictions that may exist in your area (i.e. modifying a transceiver to broadcast WFM on the 88-108MHz band for example).  I&#8217;m not sure how this is different to homebrewing a set, or modifying a set yourself &#8230; but being able to just hack the firmware yourself is not something the various spectrum management organisations want us to do.</p>
<p>This is sad in a way&#8230; I think there would be a big market in having a radio that had completely opensource firmware.</p>
<p>One of my big niggles is that the transceiver I have won&#8217;t remember power limits by mode&#8230; I can do 100W PEP, but only 30W average, so for FM I find myself constantly winding the power back to 30W, but the moment I kick the radio into SSB, I&#8217;m winding back up to 100W.  More than once I&#8217;ve accidentally called into a FM net on 2m using 50W because I had been using 2m SSB the previous night (my radio only does 50W on 2m)&#8230; or accidentally found myself transmitting 100W on a 10m FM repeater.</p>
<p>IRLP/Echolink functionality, and memory channel organisations are other improvements&#8230; remembering node numbers is a chore I could well do without&#8230; and I find there&#8217;s often not enough channels to cover all the repeaters in the country&#8230; or it&#8217;s difficult to organise them in a manner that allows quick retrieval.  Modern storage, modern microcontrollers, I see no reason why this can&#8217;t be stuffed into a relational DB (something akin to SQLite) so that you just whistle up the repeater by location, callsign or frequency&#8230; and if it has IRLP or Echolink, be able to just choose a node, browsing by country/state or provence&#8230; put your callsign across then press a single button to dial it for you&#8230; then at the touch of a button, it dials &#8220;73&#8243; for you to close the link.  (or maybe after a fixed period of inactivity, it can put your ident across, wait 10 seconds, then dial &#8220;73&#8243; for you).</p>
<p>My old TH-F7E could remember 10 DTMF code sequences and 400 channels, the memory channels just being sequentially accessed&#8230; so you really had to put careful thought into ordering or you were relying on cheat sheets to figure things out, in that case why even have the memory channels at all?</p>
<p>I&#8217;d also be nice if the set could do HF CB&#8230; I can receive it&#8230; I see no reason why the set can&#8217;t just automatically drop its power to the 12W and restrict its modes to USB/LSB and set the channel spacing accordingly as per the CBRS.  I can make a radio with opensource firmware do that&#8230; then again, I could also make it do 100W on that same band, and violate the CBRS.  One has to convince the government that we won&#8217;t try to do the latter (although there are plenty that already do).</p>
<p>All of the above I&#8217;ll probably look at implementing when I go and rebuild the old FT897D &#8230; and you can bet your bottom dollar I would have tackled some of them already had there been opensource firmware on these rigs.  However, the red tape one would have to deal with in order to make such a radio available on the market, I can well understand why the firmware on these things is proprietary.</p>
<p>In a perfect world &#8230; if only such a utopia existed!</p>
]]></content:encoded>
			<wfw:commentRss>http://stuartl.longlandclan.yi.org/blog/2010/07/04/open-firmware/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

