<?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>BrainDeadProjects.com &#187; RF</title>
	<atom:link href="http://www.braindeadprojects.com/blog/category/rf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.braindeadprojects.com/blog</link>
	<description>A place for low-grade evil.</description>
	<lastBuildDate>Mon, 21 Jun 2010 00:36:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>New Wireless Toy</title>
		<link>http://www.braindeadprojects.com/blog/what/new-wireless-toy/</link>
		<comments>http://www.braindeadprojects.com/blog/what/new-wireless-toy/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 18:17:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RF]]></category>
		<category><![CDATA[What?!]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=426</guid>
		<description><![CDATA[I&#8217;ve really been enjoying the feedback on the free wireless access from my neighbors. As always, everytime I start a new hobby, I end up with a handful of new toys &#8211; and I got one just today: The Wi-Spy 2.4x is a portable USB spectrum analyzer for the 2.4Ghz range (They have other models [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve really been enjoying the feedback on the <a href="http://www.braindeadprojects.com/blog/rf/a-new-look-for-wireless/" target="_blank">free wireless access</a> from my neighbors. As always, everytime I start a new hobby, I end up with a handful of new toys &#8211; and I got one just today:</p>
<div id="attachment_440" class="wp-caption aligncenter" style="width: 256px"><a href="http://www.braindeadprojects.com/blog/wp-content/wi-spy.jpg"><img class="size-medium wp-image-440" title="wi-spy" src="http://www.braindeadprojects.com/blog/wp-content/wi-spy-246x300.jpg" alt="" width="246" height="300" /></a><p class="wp-caption-text">The Wi-Spy 2.4x</p></div>
<p>The <a href="http://www.metageek.net/products/wi-spy-24x" target="_blank">Wi-Spy 2.4x</a> is a portable USB spectrum analyzer for the 2.4Ghz range (They have other models that cover 900mhz and 2.4/5Ghz). The 2.4x model includes an external antenna (SMA), whereas the 2.4i has an internal antenna only.</p>
<div id="attachment_425" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/Chanalyzer.png"><img class="size-medium wp-image-425" title="Chanalyzer" src="http://www.braindeadprojects.com/blog/wp-content/Chanalyzer-300x225.png" alt="" width="300" height="225" /></a><p class="wp-caption-text">The Accompanying Chanalyzer software</p></div>
<p>With the use of a wireless card, one can overlay SSID&#8217;s atop the channels in the Topographical  graph and determine what radiation  belongs to which Access Point. The bottom graph (Planar view) allows one to view which Zigbee channel, wifi channel, or frequency range is most in use.</p>
<p>There&#8217;s a similar device on the market which is substantially cheaper, the <a href="http://www.ubnt.com/airview" target="_blank">Airview</a>,  manufactured by Ubiquiti Networks (~$39 vs. ~$160), but from what I&#8217;ve seen, the <a href="http://www.metageek.net/products/chanalyzer-3" target="_blank">Chanalyzer</a> sofware in use with the Wi-Spy appears to have more features (the ability to record your captures, the ability to overlay RF &#8220;fingerprints&#8221; of various devices atop your captures), etc. The Airview software is written in Java (Read:  supported in Linux), whereas Chanalyzer is written in .NET (good luck with that one under WINE).</p>
<p>There <strong>are</strong> Linux tools for use with the Wi-Spy (<a href="http://www.kismetwireless.net/spectools/" target="_blank">Spectrum-Tools</a>) which I can defnitely appreciate,  but again the recording/playback and fingerprinting along with SSID overlays really make Chanalyzer nice. (For the record, you <em>can </em>actually record the data using one of the tools in the Spectrum Tools suite&#8230; I don&#8217;t believe you can playback easily though)</p>
<div id="attachment_430" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/spectools.png"><img class="size-medium wp-image-430" title="Spectrum Tools" src="http://www.braindeadprojects.com/blog/wp-content/spectools-300x268.png" alt="" width="300" height="268" /></a><p class="wp-caption-text">Spectrum Tools: from the author of Kismet</p></div>
<p style="text-align: center;">
<p>I&#8217;m supposed to be working on a number of other things at the moment (studying for an exam being the major item on my to-do list) so unfortunately this post is more of a &#8220;guess what I just got&#8221; as opposed to a &#8220;look at what this can do&#8221;.  In the next few weeks, I plan on picking up an AirView also, and will provide a side-by-side comparison of the two.</p>
<p>In the meantime, check out this <a href="http://www.youtube.com/watch?v=X_tnugzQIKU&amp;feature=player_embedded" target="_blank">video</a> advertising the Wi-Spy, and if you have any experience, recommendations or thoughts on it or the AirView &#8211; hit me up in the <a href="http://www.braindeadprojects.com/blog/?p=426#respond" target="_self">comments</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/new-wireless-toy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A New Look for Wireless</title>
		<link>http://www.braindeadprojects.com/blog/rf/a-new-look-for-wireless/</link>
		<comments>http://www.braindeadprojects.com/blog/rf/a-new-look-for-wireless/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 18:35:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Engenius]]></category>
		<category><![CDATA[RF]]></category>
		<category><![CDATA[WRT-54G]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=405</guid>
		<description><![CDATA[I&#8217;ve done quite a bit in the past few months with the neighborhood wireless project. First off, I&#8217;ve moved everything from the Linksys WRT-54GTM devices to an Engenius EOC-2610. The system Atheros AR2315 based. (More pictures here) The firmware is still OpenWRT kamikazee (I dumped DD-WRT a while ago on the 54G&#8217;s), with a patched [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve done quite a bit in the past few months with the neighborhood wireless project.</p>
<p>First off, I&#8217;ve moved everything from the Linksys WRT-54GTM devices to an <a href="http://www.engeniustech.com/datacom/products/details.aspx?id=246" target="_blank">Engenius EOC-2610</a>. The system Atheros AR2315 based. (More pictures <a href="http://www.braindeadprojects.com/img/Engenius/" target="_blank">here</a>)</p>
<div class="wp-caption alignnone" style="width: 410px"><img title="An Engenious Naked. Totally hot." src="http://www.braindeadprojects.com/img/Engenius/engenius-dsc03164.jpg" alt="" width="400" height="300" /><p class="wp-caption-text">An Engenious Naked. Totally hot.</p></div>
<p>The firmware is still <a href="http://openwrt.org" target="_blank">OpenWRT</a> kamikazee (I dumped DD-WRT a while ago on the 54G&#8217;s), with a patched version of the<a href="http://kokoro.ucsd.edu/nodogsplash/"> NoDogSplash</a> captive portal  (to prevent the graceful exit when a null token is submitted, also to support a &#8220;Magic token&#8221;, since I don&#8217;t truly care about it being the same one issued during the pre-authentication phase).</p>
<p>The only lingering issue relates to my version of the hardware not handling a reboot, which is a known issue apparently related to the kernel&#8217;s <a href="https://forum.openwrt.org/viewtopic.php?id=22626" target="_blank">watchdog driver</a>. There&#8217;s already a patch out there, and I plan on implementing it soon. (At present, an &#8220;init 6&#8243; will simply cause the unit to stop responding &#8211; requiring an actual powercycling) The good news is that I&#8217;ve never had to actually reboot the device for any reason.</p>
<p>Other installed packages include <a href="http://www.ntop.org/nProbe.html" target="_blank">NProbe</a> for Netflow export and  <a href="http://www.net-snmp.org/" target="_blank">SNMP</a> for monitoring/<a href="http://www.netmrg.net" target="_blank">graphing</a> purposes. In all honesty, the build is rather simple but effective. It&#8217;s also waterproof &#8211; the Engenius EOC-2610 is built for outdoor use &#8211; complete with waterproof housing and PoE support (albeit based on the warnings on the PoE injector, I don&#8217;t <em>believe</em> it&#8217;s 802.3a[ft] compatible)</p>
<p>As of this morning, we&#8217;re up to 13 users in the neighborhood. Shortly, I&#8217;ll be lighting up the Eastern portion of the neighborhood, which will provide access to a larger number of users.</p>
<p>Oh, and there&#8217;s a new look to the portal:</p>
<div id="attachment_409" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/midtownwifi-theme2.png"><img class="size-medium wp-image-409" title="midtownwifi-theme2" src="http://www.braindeadprojects.com/blog/wp-content/midtownwifi-theme2-300x228.png" alt="" width="300" height="228" /></a><p class="wp-caption-text">The new Midtown WiFi Theme</p></div>
<p>The new look is a slight modification to the <a href="http://community.elgg.org/pg/plugins/psy_/read/477603/loreahub-theme" target="_blank">Lorea Hub Theme</a>, with additional imagery from <a href="http://www.istockphoto.com" target="_blank">istockphoto.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/rf/a-new-look-for-wireless/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PIC simulation using GPSIM</title>
		<link>http://www.braindeadprojects.com/blog/rf/pic-simulation-using-gpsim/</link>
		<comments>http://www.braindeadprojects.com/blog/rf/pic-simulation-using-gpsim/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 21:40:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PIC Microcontrollers]]></category>
		<category><![CDATA[RF]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=259</guid>
		<description><![CDATA[As if I don&#8217;t have enough going on already (school, lab, work, numerous hobby projects, cigars and Tom Waits), I&#8217;ve begun modifications of one of those small radio-controlled helicopters using a PIC16f628A microcontroller. I&#8217;ve done something similar with an radio-controlled car in the past (very basic &#8220;go forward, turn, go forward, back up&#8221; stuff though), [...]]]></description>
			<content:encoded><![CDATA[<p>As if I don&#8217;t have enough going on already (school, lab, work, numerous hobby projects, cigars and Tom Waits), I&#8217;ve begun modifications of one of those small radio-controlled helicopters using a <a href="http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010210" target="_blank">PIC16f628A</a> microcontroller.</p>
<p>I&#8217;ve done something similar with an radio-controlled car in the past (very basic &#8220;go forward, turn, go forward, back up&#8221; stuff though), but that was 5+ years ago.  My goal this time is to code a program allowing the helicopter to lift-off, turn in search of the brightest source of light, and follow it. (Have you ever seen <a href="http://www.sea-monkeys.com/" target="_blank">Sea-Monkeys</a> go crazy over a flashlight? That&#8217;s my goal here, but with a helicopter)</p>
<p>A lot has changed in 5 years.  The last time I worked on a project like this (as basic as it really is), I was using a PIC IDE on Windows 2000 (something I&#8217;ve since misplaced). I was also using the <a href="http://www.microchip.com/wwwproducts/devices.aspx?ddocname=en010230" target="_blank">PIC16f84A</a> then, a chip that&#8217;s since become less than favorable (less memory, needs an external oscillator)</p>
<p>Having migrated entirely to the <a href="http://gentoo.org" target="_blank">Linux</a> operating system (aside from a dual-boot laptop for school), I went in search of a decent C compiler and simulator &#8211; and I really lucked out.  <a href="http://sdcc.sourceforge.net/" target="_blank">SDCC</a> and <a href="http://gpsim.sourceforge.net/gpsim.html" target="_blank">GPSIM</a> were <strong>exactly</strong> what I needed. (I have to give Micah Carrick a big thanks for his <a href="http://www.micahcarrick.com/04-25-2005/pic-c-programming-linux.html" target="_blank">article</a> that steered me in this direction)</p>
<div id="attachment_260" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/gpsim-desktop.png"><img class="size-medium wp-image-260" title="Desktop running gpsim" src="http://www.braindeadprojects.com/blog/wp-content/gpsim-desktop-300x240.png" alt="" width="300" height="240" /></a><p class="wp-caption-text">My Desktop running GPSim and some test code</p></div>
<p style="text-align: center;">
<p>SDCC is simply a Small Device targetted C compiler, so I&#8217;m not going to go into in depth  here (see Micah&#8217;s great article above).  <strong><em>BUT</em></strong> I did have a major issue getting it set up initially:</p>
<p>The problem I experienced with SDCC was that the Gentoo Portage distributed version is 2.5.6 (as of March 2010).  Unfortunately, memory locations for individual pins on PORTA and PORTB on the PIC16f628A aren&#8217;t defined in the header files in 2.5.6. Usually, one can access them via RB[0-7], etc&#8230; So my advice is this &#8211; use the subversion distributed version of SDCC (which is presently 2.9.7)</p>
<p>My second issue getting set up  was with GPSIM. I&#8217;ve not had a chance to delve into the reasons, but for some unknown reason the version 0.23.0 and 0.24.0 wouldn&#8217;t play nice with any controller I tried:</p>
<blockquote><p><strong>gpsim -p16f627 -c testcode.stc</strong></p>
<p>gpsim &#8211; the GNUPIC simulator<br />
version: Release 0.23.0</p>
<p>type help for help<br />
**gpsim&gt; SimulationMode:51<br />
FIXME gui_breadboard.cc Build<br />
WARNING: command line processor named &#8220;16f627&#8243; is being ignored<br />
since the .cod file specifies the processor<br />
WARNING: Ignoring the hex file &#8220;testcode.asm&#8221;<br />
since the .cod file specifies the hex code<br />
RRR gui_breadboard.cc:createLabel p16f627 11 42<br />
Disabling WDT<br />
FIXME:  HLL files are not supported at the moment<br />
**gpsim&gt; running&#8230;<br />
<strong>attempt write to invalid file register</strong><br />
address 0x10a,   value 0&#215;1<br />
could not decode trace type: 0&#215;0<br />
0&#215;0000000000000066 p16f627 0x00FC 0x008A movwf  pclath<br />
Read: 0&#215;0001 from W<br />
Invalid Trace entry: 0&#215;0</p></blockquote>
<p>After flailing around trying to make gpsim happy, I finally downgraded to 0.22.0, finding that I had no issues with it.</p>
<p>GPSIM has some nice features &#8211; stopwatch, available breakpoints,  simulated oscilloscope probes, the ability to lay out basic logic circuits, simulated LEDs and pushbuttons, etc</p>
<div id="attachment_266" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/scope.png"><img class="size-medium wp-image-266" title="Simulated Scope probes" src="http://www.braindeadprojects.com/blog/wp-content/scope-300x234.png" alt="" width="300" height="234" /></a><p class="wp-caption-text">Simulated Scope Probes</p></div>
<p style="text-align: center;">
<p style="text-align: left;">Ok, so now I&#8217;m all set to develop. I&#8217;ll post videos of the helicopter before and after modifications, as well as a before and after test-flight shortly.</p>
<p style="text-align: left;"><strong>Update: 3/28/2010:</strong></p>
<p style="text-align: left;">Rob Pearce has infomed me that the issue above (regarding 0.2[34].0) has been now been fixed in subversion.  While writing this article on the road, perusing the bugtracker (or reporting the bug) somehow slipped my mind &#8211; my bad. Kudos for the <em>quick</em> response time (once someone actually bothered to report it).</p>
<p style="text-align: left;">In any event, this article is meant to point out an excellent tool. Have a look at it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/rf/pic-simulation-using-gpsim/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Tiny Tracker 3+ APRS encoder</title>
		<link>http://www.braindeadprojects.com/blog/what/the-tiny-tracker-3-aprs-encoder/</link>
		<comments>http://www.braindeadprojects.com/blog/what/the-tiny-tracker-3-aprs-encoder/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:02:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RF]]></category>
		<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=201</guid>
		<description><![CDATA[I&#8217;ve been planning on building an APRS beacon into my car for some time, initially contemplating using a WebPadDT + XASTIR to do the work, but that idea quickly posed an issue &#8211; the WebPad was too big to reasonably it in the car with another passenger (at least in my car). Yes, I&#8217;m well [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been planning on building an <a href="en.wikipedia.org/wiki/APRS" target="_blank">APRS</a> beacon into my car for some time, initially contemplating using a <a href="http://www.braindeadprojects.com/blog/what/mounting-a-raw-dump-using-dd-and-losetup/" target="_blank">WebPadDT</a> + <a href="http://www.braindeadprojects.com/blog/what/aprs-using-xastir/" target="_blank">XASTIR</a> to do the work, but that idea quickly posed an issue &#8211; the WebPad was too big to reasonably it in the <a href="http://www.braindeadprojects.com/blog/what/the-fish-turns-111111/" target="_blank">car</a> with another passenger (at least in my car).</p>
<p>Yes, I&#8217;m well aware that APRS is <strong>not</strong> really meant as a vehicle tracking device, and in many circles it&#8217;s frowned upon.</p>
<p>I&#8217;ve enjoyed working with PIC microcontrollers since I was first introduced to the 16f84A years ago. But in all honestly, I&#8217;ve not done more than &#8220;blinky lights&#8221; and very basic modifications to an RC car with them. (Take a look at a great <a href="http://www.micahcarrick.com/04-25-2005/pic-c-programming-linux.html" target="_blank">article</a> to get started working with PICs)</p>
<p><a href="http://www.byonics.com/cables/tinytrak3.php" target="_blank">Byonics</a> has a cool kit &#8211; the Tiny Track3+. Figuring I&#8217;d use it as a chance to exercise my soldering skills (which need a bit of work), and liking the fact that I wouldn&#8217;t have to hunt for each individual component on my own, I picked one up (with GPS unit).</p>
<p>The project build steps are <em>extremely</em> well documented. Literally, every step along the way is fully explained along with color images in the downloadable <a href="http://www.byonics.com/tinytrak/tinytrak3plus.zip" target="_blank">PDF</a>. Build time takes under 1 hour (actually closer to 30 minutes, although I incorrectly soldered the female DB9 connector to J2 and had to waste time de-soldering it).</p>
<p><a href="http://www.braindeadprojects.com/blog/wp-content/tinytrack.png"><img class="aligncenter size-medium wp-image-241" title="The TinyTrack build manual" src="http://www.braindeadprojects.com/blog/wp-content/tinytrack-300x263.png" alt="" width="300" height="263" /></a></p>
<p>Prior to installing the accompanying PIC16f628A chip, I made sure to back up the currently running software (these chips are dirt cheap, and I&#8217;m not entirely sure Byonics will just give me the software if I ever have to replace the chip) Looks like my old serial programmer still works (remember &#8211; the USB to serial adapters generally don&#8217;t put out enough voltage to program a chip, so make sure you have on-board serial):</p>
<div id="attachment_205" class="wp-caption aligncenter" style="width: 235px"><img class="size-medium wp-image-205" title="Old serial PIC programmer" src="http://www.braindeadprojects.com/blog/wp-content/0131001936-225x300.jpg" alt="Old serial PIC programmer" width="225" height="300" /><p class="wp-caption-text">Old serial PIC programmer</p></div>
<p>After backing up the code, I pop the chip into place on the TinyTracker, and voila -the finished product looks like this:</p>
<div id="attachment_204" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-204" title="TinyTracker3+ Fully assembled" src="http://www.braindeadprojects.com/blog/wp-content/0131001457a1-300x225.jpg" alt="TinyTracker3+ Fully Assembled" width="300" height="225" /><p class="wp-caption-text">TinyTracker3+ Fully Assembled (I&#39;m using Lysol in my coffee since I&#39;m out of Half and Half)</p></div>
<p>The Byonics crew have also written software to configure the TinyTracker. Luckily it runs under WINE so I didn&#8217;t have to reboot. To configure, power the J1 DB9 connector with a 9volt battery.</p>
<div id="attachment_206" class="wp-caption aligncenter" style="width: 235px"><img class="size-medium wp-image-206" title="TinyTracker3+ in it's case, being configured serially" src="http://www.braindeadprojects.com/blog/wp-content/0131001500-225x300.jpg" alt="TinyTracker3+ in it's case, being configured serially" width="225" height="300" /><p class="wp-caption-text">TinyTracker3+ in it&#39;s case, being configured serially</p></div>
<p>And run the configuration program (again, it&#8217;s fairly well documented in the manual):</p>
<p><a href="http://www.braindeadprojects.com/blog/wp-content/tinytrackconfig.png"><img class="aligncenter size-medium wp-image-249" title="Tiny Track 3 configuration" src="http://www.braindeadprojects.com/blog/wp-content/tinytrackconfig-300x230.png" alt="" width="300" height="230" /></a></p>
<p>After being hung-up in customs (and a brutal snowstorm), I finally got the radio component of my APRS system &#8211; the <a href="http://www.eham.net/reviews/detail/7191" target="_blank">FD-150A</a> (It took almost a month to get here from Hong Kong)</p>
<p><a href="http://www.braindeadprojects.com/blog/wp-content/0222001300.jpg"><img class="aligncenter size-medium wp-image-221" title="FD-150A" src="http://www.braindeadprojects.com/blog/wp-content/0222001300-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The output voltage  on the FD-150 battery is ~6.25V, too low to power the TinyTracker3 (which requires 7+V). A voltage multiplier would probably fix that, but my overall goal is to encase all components in a NEMA style box, powering it off the car.  So for the rest of the testing period, I&#8217;m using an external power-supply.</p>
<p>Hopefully in the next few weeks, I&#8217;ll have time to finish the entire setup. Keep checking back, I&#8217;ll post updates when I can.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/the-tiny-tracker-3-aprs-encoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally Saying No to NoCatSplash</title>
		<link>http://www.braindeadprojects.com/blog/what/finally-saying-no-to-nocatsplash/</link>
		<comments>http://www.braindeadprojects.com/blog/what/finally-saying-no-to-nocatsplash/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:57:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RF]]></category>
		<category><![CDATA[WRT-54G]]></category>
		<category><![CDATA[What?!]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=211</guid>
		<description><![CDATA[For the last 6 months or so, I&#8217;ve been running a free wireless access point for my neighborhood. In an effort to get my local community to know each other (and local goings-on), I&#8217;ve back-ended the system using the elgg social networking platform. To use the free wifi, you have to register on the social [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.braindeadprojects.com/blog/wp-content/logo-nocat.png"><img class="aligncenter size-full wp-image-226" title="logo-nocat" src="http://www.braindeadprojects.com/blog/wp-content/logo-nocat.png" alt="" width="144" height="144" /></a></p>
<p>For the last 6 months or so, I&#8217;ve been running a free wireless access point for my neighborhood. In an effort to get my local community to know each other (and local goings-on), I&#8217;ve back-ended the system using the <a href="http://elgg.org/" target="_blank">elgg</a> social networking platform.</p>
<p>To use the free wifi, you have to register on the social site.</p>
<div id="attachment_279" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/midtownwifi.png"><img class="size-medium wp-image-279" title="midtownwifi" src="http://www.braindeadprojects.com/blog/wp-content/midtownwifi-300x228.png" alt="" width="300" height="228" /></a><p class="wp-caption-text">The Captive Portal</p></div>
<p>Uptime however has been a major pain &#8211; for quite some time <a href="http://nocat.net">NoCatSplash</a> has been broken in <a href="http://dd-wrt.com/site/index">DD-WRT</a>. Ever since version 24 (at the very least), it&#8217;s been grouchy &#8211; all of the sudden not working and requiring a reboot (or possibly clearing and resetting the iptables targets and restarting splashd)  to fix. The wiki documents a few <a href="http://www.dd-wrt.com/wiki/index.php/NoCatSplash#Work-Around" target="_blank">workarounds</a>, but I&#8217;ve gotten tired of the overall bugs.</p>
<p>Initially I planned on simply fixing it, but after a little bit of thought,  I decided to give <a href="http://openwrt.org" target="_blank">OpenWRT</a> another look. I&#8217;m sure I could have gotten away with using the mini or micro versions of DD-WRT and adding to it, but last time I used OpenWRT&#8217;s build environment I was really impressed &#8211; so I spent this weekend working with it again.</p>
<p>Building your own image is simple &#8211; using the <a href="http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/OpenWrt-ImageBuilder-brcm-2.4-for-Linux-i686.tar.bz2" target="_blank">ImageBuilder</a> system (I&#8217;m working with WRT-54G&#8217;s)  simply &#8220;make image&#8221; setting the target <strong>PROFILE</strong> and <strong>PACKAGES</strong> via environment variables. This method uses existing binary packages to build a .bin or .trx file for easy installation (via the web interface or mtd command). &#8220;<em>make info</em>&#8221; will give you a long list of profiles, and packages that are readily available are contained in the packages subdirectory.</p>
<p>Recompiling packages is extremely easy &#8211; download the SDK:</p>
<blockquote><p>mkdir ~/devel &amp;&amp; cd ~/devel</p>
<p>wget http://downloads.openwrt.org/kamikaze/8.09.2/brcm-2.4/OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2</p>
<p>tar xjvpf OpenWrt-SDK-brcm-2.4-for-Linux-i686.tar.bz2</p></blockquote>
<p>If the package already exists, check it out via subversion:</p>
<blockquote><p>cd OpenWrt-SDK-brcm-2.4-for-Linux-i686</p>
<p>svn export svn://svn.openwrt.org/openwrt/packages/net/&lt;packagename&gt;  package/&lt;packagename&gt;</p></blockquote>
<p>And to compile simply execute:</p>
<blockquote><p>make package/&lt;packagename&gt;/compile V=99</p></blockquote>
<p>(On older versions it&#8217;s &#8220;make package/&lt;packagename&gt;<strong>-</strong>compile V=99&#8243;)</p>
<p>After hitting my head against the nocatsplash package&#8217;s failure to build correctly, I finally opted to look at <a href="http://kokoro.ucsd.edu/nodogsplash/" target="_blank">nodogsplash</a>. &#8220;Because it will at least build&#8221; is probably not the best way to choose captive portal software, but it&#8217;s mine.</p>
<p>First thing requiring a fix is a bug that causes nodogsplash to crash when one sends a request to the auth-server without a &#8220;redir&#8221; GET variable being set &#8211; a bug evidenced by:</p>
<blockquote><p>links &#8220;http://192.168.1.1:2050/nodogsplash_auth/?tok=fffffff&#8221;</p></blockquote>
<p>Thankfully the crash is &#8220;gracefully&#8221; handled in safe.c&#8217;s safe_strdup()&#8230;. but it still causes the daemon to crash.</p>
<p>So &#8211; a quick patch, as well as some added &#8220;features&#8221; (including a magic token) and I&#8217;m set. Patches to source can be added to package/&lt;packagename&gt;/patches. Upon make, patches in this directory are first applied.</p>
<p>So instead of waiting around for a fix to NoCatSplash in DD-WRT, I&#8217;m moving on. So far NoDogSplash has proven effective &#8211; although I&#8217;m far from actually migrating to it (the old access point is still running for the time being). In the next few weeks I should have a custom web interface built, as well as <a href="www.pmacct.net/ " target="_blank">pmacctd </a>configured (I am exporting Netflow version 9 data to a collector as a <a href="www.pmacct.net/ " target="_blank">C.Y.A </a>measure), and bandwidth shaping properly enabled.</p>
<p>Custom patches to NoDogSplash are forthcoming.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/finally-saying-no-to-nocatsplash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a discriminator to a BC80XLT Scanner</title>
		<link>http://www.braindeadprojects.com/blog/what/adding-a-discriminator-to-a-bc80xlt-scanner/</link>
		<comments>http://www.braindeadprojects.com/blog/what/adding-a-discriminator-to-a-bc80xlt-scanner/#comments</comments>
		<pubDate>Fri, 29 May 2009 00:31:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RF]]></category>
		<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=65</guid>
		<description><![CDATA[Adding a discriminator to the Uniden Bearcat BC80xlt scanner isn&#8217;t an incredibly difficult task. BC80xlt discriminator Simply find pin 9 of the MC3361 chip, connect a 2.2nf capacitor connected to a 10k ohm resister w/ a small piece of wire to go to a 3.5mm headphone jack. The capacitor connects to the radio shield, and [...]]]></description>
			<content:encoded><![CDATA[<p>Adding a discriminator to the Uniden Bearcat BC80xlt scanner isn&#8217;t an incredibly difficult task. <a title="BC80XLT Discriminator" href="http://www.discriminator.nl/ubc80xlt/index-en.html">BC80xlt discriminator</a></p>
<p>Simply find pin 9 of the MC3361 chip, connect a 2.2nf capacitor connected to a 10k ohm resister w/ a small piece of wire to go to a 3.5mm headphone jack. The capacitor connects to the radio shield, and that&#8217;s about it (I suggest you follow the steps above).</p>
<div id="attachment_72" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-72" title="dsc03138" src="http://www.braindeadprojects.com/blog/wp-content/dsc03138-300x225.jpg" alt="My BC80XLT" width="300" height="225" /><p class="wp-caption-text">My BC80XLT</p></div>
<p>My BC80xlt  is slightly different that in the pictures in the link above. In some way, it&#8217;s closer to the BC<strong>60</strong>-xlt-2. The innards of my device include a main board, connected to a daughterboard.  The &#8220;down&#8221; side of the daughterboard has the chip, the &#8220;top&#8221; side has the shield.  This requires one to route the discriminator around the daughterboard, avoiding contact with anything accidentally. My soldering job is pathetic (I have no illusions about that). In my defense I am using a rusty tip which doesn&#8217;t conduct very well, but beyond that I really have no excuse aside from not being that skillful. My big concern was damage to the MC3361 by heat from the soldering iron. In fact, later I realized I was using a 30wWatt iron &#8211; not the specified 15Watt. (D&#8217;oh!) Turning it back on yields no apparent difference, so hopefully all is well.</p>
<div id="attachment_66" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-66" title="dsc03136" src="http://www.braindeadprojects.com/blog/wp-content/dsc03136-300x225.jpg" alt="Yes, I know.. " width="300" height="225" /><p class="wp-caption-text">Connection to pin 9</p></div>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-67" title="dsc03137" src="http://www.braindeadprojects.com/blog/wp-content/dsc03137-300x225.jpg" alt="Yes, I know" width="300" height="225" /><p class="wp-caption-text">Connection to the shield</p></div>
<p>Here&#8217;s how the two separate parts of my scanner look:</p>
<div id="attachment_83" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-83" title="dsc03147" src="http://www.braindeadprojects.com/blog/wp-content/dsc03147-300x225.jpg" alt="The top and bottom, which connect together" width="300" height="225" /><p class="wp-caption-text">The top and bottom, which connect together</p></div>
<div id="attachment_84" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-84" title="dsc03148" src="http://www.braindeadprojects.com/blog/wp-content/dsc03148-300x225.jpg" alt="The connection to the 3.5mm jack" width="300" height="225" /><p class="wp-caption-text">The connection to the 3.5mm jack</p></div>
<div id="attachment_82" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-82" title="dsc03150" src="http://www.braindeadprojects.com/blog/wp-content/dsc03150-300x225.jpg" alt="The 3.5mm discriminator tap" width="300" height="225" /><p class="wp-caption-text">The 3.5mm discriminator tap</p></div>
<p>I had to make a few additional modifications. First of all, I removed the former cap and resistor (seen above),  and replaced it with a much better soldered joint (practiced for a bit prior to doing so). The 3.5mm jack has one problem &#8211; when pushed in all the way the male connector actually makes contact with the grounded sheild (that&#8217;s bad). The shield doesn&#8217;t appear to get hot, so I&#8217;ve used a small piece of plastic to prevent that from happening. Now everything fits snug, and this works great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/adding-a-discriminator-to-a-bc80xlt-scanner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
