<?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>Your Warranty Is Void.com &#187; firestorm_v1</title>
	<atom:link href="http://www.yourwarrantyisvoid.com/author/firestorm_v1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yourwarrantyisvoid.com</link>
	<description>Linux, Hardware, Software and Chaos. What more is there?</description>
	<lastBuildDate>Wed, 08 Sep 2010 18:13:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Dead Dockstar Resurrected with JTAG!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/09/08/dead-dockstar-resurrected-with-jtag/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/09/08/dead-dockstar-resurrected-with-jtag/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 17:08:38 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Dockstar]]></category>
		<category><![CDATA[JTAG]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=595</guid>
		<description><![CDATA[The reason I haven&#8217;t written any more about my fun with the Dockstar was that due to an unfortunate set of circumstances I was left with a bricked dockstar. (read: I did something stupid.)  After performing a lot of research and thanks to a bunch of people over at the PlugApps.com Forum site who helped [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/Dead-Dockstar-plus-JTAG-equals-WIN.jpg"><img class="aligncenter size-full wp-image-594" title="Dead Dockstar plus JTAG equals WIN" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/Dead-Dockstar-plus-JTAG-equals-WIN.jpg" alt="Hey, I never said I was a graphics designer.  This was created in MS Paint after 15 minutes searching for a zombie icon and a JTAG icon or an angel I could slap JTAG over. " width="473" height="76" /></a></p>
<p>The reason I haven&#8217;t written any more about my fun with the Dockstar was that due to an unfortunate set of circumstances I was left with a bricked dockstar. (read: I did something stupid.)  After performing a lot of research and thanks to a bunch of people over at the <a href="http://plugapps.com/forum" target="_blank">PlugApps.com Forum site</a> who helped me, I was able to get it running.  Read more for a complete list of what you will need including how to build an adapter and where to get the needed JTAG kit.<span id="more-595"></span></p>
<h2>Before we begin</h2>
<p>This document demonstrates how to recover your Dockstar and upload a custom bootloader to it using a JTAG cable.  JTAG is used for low-level in-circuit debugging of embedded applications and is very hardware specific. If you are familiar with working with Linksys routers and uploading custom firmware to them, you have heard of the term bricking and you have more than likely heard of something called JTAG that is used to recover it.</p>
<p>Because of the nature of JTAG and the fact that manufacturers don&#8217;t typically like us having access to the JTAG port, these ports are often hidden in many different locations, usually unmarked or unpopulated headers, or other odd locations and is the way that the manufacturer loads the firmware for the very first time on to a new device.</p>
<p>By using JTAG, we can place the hardware into a &#8220;debug&#8221; mode where we can manipulate the microprocessor&#8217;s core functionality.  We can also send instructions to it, monitor responses from it, or even pause the chip, leaving it in a state of suspended animation until we issue the command to start it up again or reset the device.</p>
<p>In this particular howto, we will cover how to use the debug mode of the Marvell chip in the Dockstar to upload a new boot loader in order to rewrite the bootloader to the onboard Flash which will result in a working, new Dockstar.  Please note that if you have NOT bricked your dockstar, there is no need to perform the steps in this howto.  This is only for bricked dockstars that have been verified with a serial adapter to be dead. (A dead dockstar will produce NO serial output and the front panel LED will not light up when power is applied.)</p>
<h2>Legal Disclaimer</h2>
<p>By performing the steps outlined in this document, you agree not to hold firestorm_v1, YourWarrantyIsVoid.com or any other linked sites, forums, companies, liable if you really screw something up.  You can also not hold any of these entities responsible for data loss, physical damage, emotional trauma, spousal abuse or any other act of whatever god(s) that you may have happen to you.  In short, Read twice, type once, hit enter and don&#8217;t screw up.  If you&#8217;re at this point, then you&#8217;ve already come to terms that your dockstar may be unrecoverable already so deal with it.</p>
<h2>Parts List</h2>
<p>In order to perform this recovery, you will need the following items:</p>
<ol>
<li>The dead seagate dockstar and power supply.</li>
<li>A handful of 2.0mm female connectors or one 2.0mm female connector with at least 10 pins (5 pins in 2 rows)</li>
<li>A 10 pin header that matches your PCB 2.5mm spacing  (again, 5 pin, 2 row)</li>
<li>A bit of holed PCB board 2.5mm pin spacing. (Radio Shack is good for this kind of stuff)</li>
<li>A CA-42 cable with the appropriate pins as <a href="http://www.yourwarrantyisvoid.com/2010/07/21/seagate-dockstar-add-an-accessible-serial-port/" target="_blank">outlined in my previous Dockstar post</a>.</li>
<li>A handful of extra breadboard jumpers.</li>
<li>Superglue</li>
<li>A Windows PC (2k or XP, untested on vista/7 although plugapps forums says it should work.) with a Parallel Port</li>
<li>Whatever provisions needed for the CA-42 cable to work properly.  (I have to use a linux box to SSH to, you can do the same or if your Windows computer works with the CA42 cable, you can use that as well.  You don&#8217;t need two PCs for this operation.)</li>
<li>A TAIO Buffered/Unbuffered &#8220;Universal&#8221; Parallel Port JTAG module kit (<a href="http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=270528612875" target="_blank">Here&#8217;s the eBay seller where I got mine, ~$21.00 out the door</a>) and a Parallel cable extension (Male to Female) so that you can reach it without having to get behind your PC. For my setup, I used an old iomega Parallel/SCSI Zip drive cable. I also recommend the ebay link as this is the seller that I purchased mine from and it comes with a lot of extra jumpers that are very useful for this project.</li>
<li>A USB A to USB mini B cable (for powering up the JTAG adapter).</li>
<li>Glue gun with extra gluesticks</li>
<li>Heatshrink tubing and lighter/heat source</li>
<li>In lieu of building/reinforcing your JTAG cable, you can use a laptop hard drive adapter (3.5 IDE to 2.5IDE) if you&#8217;re in a pinch and just need to get it running.</li>
</ol>
<p>In addition to the above items, you will need the following software applications:</p>
<ol>
<li><a href="http://www.plugapps.com/forum/download/file.php?id=20" target="_blank">Kragorn&#8217;s copy of dockstar.cfg</a> &#8211; <a href="http://www.yourwarrantyisvoid.com/downloads/files/dockstar.zip" target="_blank">Mirrored Here</a></li>
<li><a href="http://www.freddiechopin.info/index.php/en/download/category/4-openocd" target="_blank">A copy of OpenOCD</a> &#8211; <a href="http://www.yourwarrantyisvoid.com/downloads/files/openocd-0.4.0.zip" target="_blank">Mirrored Here</a></li>
<li>A copy of the <a href="http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb" target="_blank">Jeff Doozan&#8217;s custom USB-boot capable u-boot</a> (Recommended!) (<a href="http://www.yourwarrantyisvoid.com/downloads/files/uboot-original-mtd0.kwb" target="_blank">Mirrored Here</a>) or a copy of another factory or custom uBoot.  If you want to compile your own, there&#8217;s a great write-up here: <a href="http://jeff.doozan.com/debian/uboot/" target="_blank">http://jeff.doozan.com/debian/uboot/</a></li>
<li>A copy of PuTTY for Serial/Telnet communication.  You can <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">download it here</a>.</li>
</ol>
<h2>Getting Started</h2>
<p>This howto will be divided up into several sections:</p>
<p><strong>Section I:</strong>Building an adapter cable &#8211; This section will cover how to build the required cable from spare 2MM connectors or if you already have the proper cable, this will describe how to reinforce it for repeated use using heatshrink tubing. I call it a smokestack cable because it resembles a small smokestack sticking out of the Dockstar&#8217;s mainboard.</p>
<p><strong>Section II:</strong> Wiring it all up &#8211; This will cover the Dockstar&#8217;s pinout, the TAIO parallel port pinout, the serial port pinout and how to wire it up together.</p>
<p><strong>Section III:</strong> Performing the JTAG recovery &#8211; This is where the actual recovery process takes place now that we have everything wired up.</p>
<p><strong>Section IV:</strong> Notes and credits &#8211; As much as I&#8217;d like to say this was all my doing, truth is it&#8217;s not.  I couldn&#8217;t have done it without some great people from the PlugApps forums.</p>
<p>Each section will have lots of pictures that you can use as a guide to make sure you&#8217;re making the right connections.</p>
<h2><span style="color: #ff0000;"><em><span style="text-decoration: underline;"><strong>BIG FAT OBNOXIOUS WARNING!!!</strong></span></em></span></h2>
<p>Although there are as many JTAG adapters on the market as there fish in the sea, I can not cover each and every device&#8217;s unique configuration options. Generally the JTAG port is a universal standard but many vendors implement their own standard, have other standards that they choose to leave out and their pin configurations may not match what is given here.  This article is based on my experience performing the JTAG restoration of a dockstar I broke using the equipment and the software outlined above.  If you are new to JTAG, I recommend using the versions and adapter board listed as other devices/software may not work in the same way.  When in doubt, go with what you know!</p>
<h2>Section I: Building out the JTAG adapter cable.</h2>
<p>The dockstar&#8217;s JTAG port uses a 2.0 mm spacing and while it&#8217;s good for tight spaces, isn&#8217;t exactly ideal when dealing with breadboard jumpers as most breadboards have a 2.5mm spacing and the jumpers have connectors to match.  In this instance I felt that since I was going to be working on actually developing code for the Dockstar, the inevitable would happen and I would end up bricking it through a random error (namely user failure) and would need a quick and reliable connector that I could use to quickly connect and disconnect the JTAG port as needed during restore and development.</p>
<p>I checked out EPO and managed to find several 2.0mm spaced connectors however these were in groups of three and while they would work, would require significant effort to harden the connectors to something that could stand the test of repeated connections and disconnections. So let&#8217;s get started.</p>
<div id="attachment_611" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/conntest.jpg"><img class="size-medium wp-image-611" title="Connector Test" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/conntest-300x225.jpg" alt="Connector Test" width="300" height="225" /></a><p class="wp-caption-text">Checking the connectors to make sure they would work</p></div>
<p>This is a shot of the connectors standing out of the Dockstar.  Since I had four connectors with 3 pins each, this means that I had two pins that hung over the connector block on the Dockstar.  Since these two wires were not needed, I cut them and removed the metal connector from inside the plastic, leaving 10 wires for 10 pins of the dockstar&#8217;s JTAG port.  We&#8217;ll deal with the two vacant holes later.</p>
<p><strong>Little known fact:</strong> The pin spacing on the Dockstar&#8217;s JTAG port is identical to that of a laptop hard drive (which is why this part of the process is optional.)  In a pinch, you can use a laptop IDE adapter similar to <a href="http://www.geeks.com/details.asp?invtid=HD-108&amp;cat=CBL" target="_blank">this one</a> (in fact I own several exactly like this).  If you decide to use a laptop IDE adapter, use the part of the adapter <strong>opposite the power connector</strong>.</p>
<p>Since the goal is to harden the four little connectors to one single connector, I used a dead laptop hard drive and superglued the four connectors together. <strong>USE THE SUPERGLUE SPARINGLY!!</strong> You do not want to superglue your connectors to a hard drive so only put a tiny amount. It also helps to put a dab of glue on one connector, then put the connectors together as you&#8217;re pushing them onto the laptop HD pins.  Make sure they are completely seated so they will be even as possible.  If you see the pins of the laptop HD, you&#8217;re not down far enough.</p>
<div id="attachment_612" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/connglue.jpg"><img class="size-medium wp-image-612" title="Glued 2.0MM connectors" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/connglue-300x225.jpg" alt="Glued 2.0MM connectors curing on a laptop HD." width="300" height="225" /></a><p class="wp-caption-text">Glued 2.0MM connectors curing on a laptop HD.</p></div>
<p>Once you get all four connectors onto the laptop HD and properly aligned, let it cure for at least an hour.  This will ensure that the superglue bonds correctly and the connector doesn&#8217;t fall apart later.</p>
<div id="attachment_613" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/glueset.jpg"><img class="size-medium wp-image-613" title="Glued connectors after setting." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/glueset-300x225.jpg" alt="Glued connectors after the superglue set." width="300" height="225" /></a><p class="wp-caption-text">Glued connectors after the superglue set.</p></div>
<p>Now that the superglue has set, check that it still fits in the Dockstar. On the connectors used here, my wires were quite long. To alleviate yet another mass of cable snakes on my desk, I cut them down to about three inches, which should be big enough to handle, but small enough to not get in the way. You can cut your wires to any length desired.</p>
<p>In order to solder to the 10 pin header and ensure that the wires would not seperate from use, I chose to use a small piece of PCB as shown below.</p>
<div id="attachment_614" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrbb.jpg"><img class="size-medium wp-image-614" title="Header and Breadboard" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrbb-300x225.jpg" alt="Header and Breadboard" width="300" height="225" /></a><p class="wp-caption-text">Header and Breadboard</p></div>
<p>Keep in mind that if you cut your own, you&#8217;re soldering 10 wires into a 10 pin header, so you will need a 20 hole piece of PCB (5 holes by 4 holes).  The idea here is that the wires will come in on the component side of the PCB and wrap around it then go further down to the 2.0mm connector we just glued together.   Go ahead and solder the header into the center two rows of the PCB as shown below(Leave one row of 5 on each side of the header).</p>
<div id="attachment_615" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrinst.jpg"><img class="size-medium wp-image-615" title="Header and PCB soldered together" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrinst-300x225.jpg" alt="Header and PCB soldered together" width="300" height="225" /></a><p class="wp-caption-text">Header and PCB soldered together</p></div>
<p>Strip off a 1/8 inch off of each wire on one side of the glued connector and solder to the PCB. Keep your pinout the same and do not cross the wires.   Below, you can see that the first half of the PCB and the wires has been soldered.</p>
<div id="attachment_616" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrsolder.jpg"><img class="size-medium wp-image-616" title="Header with one side soldered" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrsolder-300x225.jpg" alt="Header with one side soldered" width="300" height="225" /></a><p class="wp-caption-text">Header with one side soldered.</p></div>
<p>Now comes the fun part.  Trying to solder the other side of the PCB without burning yourself or the other wires and without creating unnecessary solder bridges to other pins.  Below is a shot of my connector, partially soldered.</p>
<div id="attachment_617" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrsolder2.jpg"><img class="size-medium wp-image-617" title="Second set of wires to solder" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrsolder2-300x225.jpg" alt="Second set of wires to solder" width="300" height="225" /></a><p class="wp-caption-text">Second set of wires to solder</p></div>
<p><strong>Protip:</strong> If you don&#8217;t already have a pair, I highly recommend you get a pair of Helping Hands for soldering like this. <a href="http://www.radioshack.com/product/index.jsp?productId=3928375&amp;CAWELAID=437363031" target="_blank">Available at Radio Shack</a> and many other electronics outlets.  Below is a picture of the completely soldered PCB.</p>
<div id="attachment_618" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrdone.jpg"><img class="size-medium wp-image-618" title="Completed PCB soldering" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrdone-300x225.jpg" alt="Completed PCB soldering" width="300" height="225" /></a><p class="wp-caption-text">Completed PCB soldering</p></div>
<p>Now that the PCB is soldered, go ahead and check your wiring!  Don&#8217;t do any pin swaps, make sure that pin 1 on the 2.0mm connector is pin 1 on the header, pin2 on the 2.0mm connector is pin 2 on the header and so on. Also make sure that you didn&#8217;t bridge between pins on the PCB. Before you slip on the shrinkwrap, we&#8217;re going to reinforce the body of the adapter.  Get your hot glue gun ready and shoot a large bead of glue down the length of the wire. Once that is done, shoot some more hotglue around the connector to reinforce the wires coming out of the connector. Below is a picture of the hotglue process.</p>
<div id="attachment_620" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrhg.jpg"><img class="size-medium wp-image-620" title="Header hotglued" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrhg-300x225.jpg" alt="Wires hotglued together and header is wrapped in hotglue." width="300" height="225" /></a><p class="wp-caption-text">Wires hotglued together and header is wrapped in hotglue.</p></div>
<p>The hotglue on the wire-side of the plug will make sure that the wires don&#8217;t wiggle around inside the heatshrink tube and fail later on.  After you&#8217;ve properly applied the hot glue, put the tip of the hotglue gun over the two holes that we vacated earlier.  Keep consistent pressure on the hotglue gun and press the trigger.  This will inject hot glue into the holes left behind when the excess pins were extracted and ensure that the connector is &#8220;keyed&#8221; and will prevent a one-off connection (and prevent further headache).  This is what the hotglue injected connector looks like.</p>
<div id="attachment_621" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrkey.jpg"><img class="size-medium wp-image-621" title="Key-glued header" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrkey-300x225.jpg" alt="Key glued header." width="300" height="225" /></a><p class="wp-caption-text">Key-glued header.</p></div>
<p>Take one moment and check your cable one last time.  Make sure that the pins are wired one to one.  Once you&#8217;re ready, get the heatshrink tube and cut it to a little bit less than the length of your adapter.  Below, you can see the heatshrink and adapter lengths I used. (This image was taken before the hot glue was applied.)</p>
<div id="attachment_622" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrswrap.jpg"><img class="size-medium wp-image-622" title="Header adapter and shrinkwrap." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrswrap-300x225.jpg" alt="Header adapter and shrinkwrap." width="300" height="225" /></a><p class="wp-caption-text">Header adapter and shrinkwrap.</p></div>
<p>Slip over the heatshrink wrap over the connector (it may not fit over the PCB) and leave just a little bit so that it overlaps the 2MM connector end.  Apply even heat to the 2MM connector end first so that it will shrink and hold the heatshrink wrap in place as you apply even heat to the rest of the connector. When completed, you should have a connector resembling the below image.</p>
<div id="attachment_623" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrtop.jpg"><img class="size-medium wp-image-623" title="Heatshrink wrapped adapter." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrtop-300x225.jpg" alt="Heatshrink wrapped adapter." width="300" height="225" /></a><p class="wp-caption-text">Heatshrink wrapped adapter.</p></div>
<p>Now take the hotglue gun and fill in the gap between the heatshrink wrap and the bottom of the PCB. If your gluegun has a fine tip, also shoot some hot glue into the open end of the shrinkwrap.  This will further harden the connector and ensure that it doesn&#8217;t flex and damage the connections.  You may have something looking like the below image.</p>
<div id="attachment_624" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrtopgl.jpg"><img class="size-medium wp-image-624" title="Header Top glue bead" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/hdrtopgl-300x225.jpg" alt="Header Top with glue bead." width="300" height="225" /></a><p class="wp-caption-text">Header Top with glue bead.</p></div>
<p>For a final touch, wrap and distribute hot glue around the wiring from a little bit over the heatshrink wrap all the way to the black part of the header wiring.  It&#8217;s ok to use a large amount of glue as this will make sure that the connector is properly protected.  As a last step, connect it to the Dockstar and make sure it fits.  Once finished, you should have something resembling the below image.</p>
<div id="attachment_625" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/smokestack.jpg"><img class="size-medium wp-image-625" title="Completed Smokestack adapter on Dockstar." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/smokestack-300x225.jpg" alt="Completed Smokestack adapter on Dockstar." width="300" height="225" /></a><p class="wp-caption-text">Completed Smokestack adapter on Dockstar.</p></div>
<p>Now, you have a completed Smokestack adapter.  You can use this for any device that has 2.0MM connector pitch and for any purpose.  Since the header on top is a 1 to 1 representation of the connector on bottom, you can use this anywhere where you need to use breadboard connectors for a temporary connection to these headers.</p>
<h2>Section 2: Wiring it all up.</h2>
<p>With a completed smokestack adapter, now you can wire it all up together  but before we begin, it is highly recommended to solder in a ground pin.  This ground pin will be used to ensure that the ground used by the JTAG adapter&#8217;s reference ground will be the same as the ground used by the Dockstar.  While it may not be required, it is recommended as a difference in ground may end up corrupting data being sent and received as part of the update.  To do that, we can use any of the ground planes, shields or open spots on the PCB.  I preferred to use one of the three USB shields as the shield&#8217;s purpose is the same as the GND connection that we are trying to establish.  For this, we&#8217;ll use a jumper pin with no plastic on it.  Start off by applying a small bead of solder to the USB shield as shown below.</p>
<div id="attachment_627" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dsgnd.jpg"><img class="size-medium wp-image-627" title="Dockstar USB shield prep for pin" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dsgnd-300x225.jpg" alt="Dockstar USB shield pin prepped for header pin." width="300" height="225" /></a><p class="wp-caption-text">Dockstar USB shield pin prepped for header pin.</p></div>
<p>Apply the heat from the soldering iron to the bead again and drop in the jumper pin.  Remove heat and do not touch the jumper pin until the connector has cooled.  Do not apply heat for a long period of time otherwise you may damage the USB port itself.  Below is the completed ground pin installation:</p>
<div id="attachment_628" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dsgndpin.jpg"><img class="size-medium wp-image-628" title="Dockstar Ground pin installed." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dsgndpin-300x225.jpg" alt="Dockstar Ground pin installed." width="300" height="225" /></a><p class="wp-caption-text">Dockstar Ground pin installed.</p></div>
<p>Now, we have a properly installed Ground pin that is easy to connect and remove and we also have our smokestack JTAG adapter.  At this point, we can start wiring up the JTAG connector up and prepare for recovery of our dead dockstar.  If you went with my suggestion and ordered the TIAO Parallel JTAG adapter, you should have received the following items.  JTAG board (blue with DB25 connector), Short jumpers (left of  JTAG board) and Long Jumpers (above board) as shown in the picture below.</p>
<div id="attachment_626" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/JTAGkit.jpg"><img class="size-medium wp-image-626" title="JTAG kit" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/JTAGkit-300x225.jpg" alt="TIAO Parallel JTAG kit." width="300" height="225" /></a><p class="wp-caption-text">TIAO Parallel JTAG kit.</p></div>
<p>The below image is the entire wiring diagram for the Dockstar JTAG adapter.  As long as you keep pin 1 on the dockstar as pin 1 on the smokestack adapter, you should have no problems with the connection.  As mrbill and Klingon and several others pointed out in the PlugApps forums, the nSRST line (orange) and the DINT(purple) leads are both not connected.  Pin 1 on the Dockstar/Smokestack are also left unconnected as we will use the Dockstar&#8217;s power supply to power the board while it is connected to the JTAG adapter.  Additionally, it is crucial to plug the USB cable into the JTAG adapter and into a PC to power the onboard buffer chip.  Without the USB cable connected, the adapter will not function.  There is also an LED on the JTAG adapter that will light when the device has sufficient power. Click on the below image to get a much larger image.</p>
<div id="attachment_629" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dockstarjtag.jpg"><img class="size-medium wp-image-629" title="Dockstar/TAIO JTAG connection table." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/dockstarjtag-300x185.jpg" alt="Dockstar/TAIO JTAG connection table." width="300" height="185" /></a><p class="wp-caption-text">Dockstar/TAIO JTAG connection table.</p></div>
<p>The Dockstar layout diagram on the right hand side of the image is bundled together to provide a reference.  Pin 1 of the JTAG port is on the LED side of the jumper and is towards the center of the board and is designated by a black dot in the image and a white triangle on the dockstar board itself as shown below.  The picture of the Dockstar is rotated 90 degrees clockwise to the layout diagram in the image above.</p>
<div id="attachment_630" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSJTAGport.jpg"><img class="size-medium wp-image-630" title="Dockstar JTAG port showing pin 1" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSJTAGport-300x225.jpg" alt="Dockstar JTAG port showing pin 1" width="300" height="225" /></a><p class="wp-caption-text">Dockstar JTAG port showing pin 1</p></div>
<p>You can use the following images as a reference that your dockstar is connected properly.  The below image is a picture of my CA-42 adapter&#8217;s serial header as discussed in the <a href="http://www.yourwarrantyisvoid.com/2010/07/21/seagate-dockstar-add-an-accessible-serial-port/" target="_blank">serial port post</a>. Also, since the serial port post discussed soldering to the header, if you haven&#8217;t done so already, remove the existing serial port wires so that your smokestack adapter will fit.  In the image below, the three jumpers coming off of the pins are colored as they would be if you had just cut and stripped back the CA-42&#8242;s cable. Remember that your CA-42 cable may be different!</p>
<div id="attachment_636" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0705.jpg"><img class="size-medium wp-image-636" title="Serial Port jumpers from CA42 USB cable." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0705-300x225.jpg" alt="Serial Port jumpers from CA42 USB cable." width="300" height="225" /></a><p class="wp-caption-text">Serial Port jumpers from CA42 USB cable.</p></div>
<p>The below image shows the top of the smokestack adapter and the respective colors.  You can see that the black wire for GND is attached to the USB shield pin we installed earlier. Remember, pin 1 and pin 7 on the smokestack are left not connected!</p>
<div id="attachment_637" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0700.jpg"><img class="size-medium wp-image-637" title="Top of smokestack adapter with jumpers." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0700-300x225.jpg" alt="Top of smokestack adapter with jumpers." width="300" height="225" /></a><p class="wp-caption-text">Top of smokestack adapter with jumpers.</p></div>
<p>The below image shows the JTAG adapter, properly wired and ready to go.  You can see the device is powered by the USB connector and that the orange and purple wires have been spared off.   Although the flash from my camera drowned out the red power LED, you will need to make sure that your LED is lit.  Please note, the JTAG adapter does require power however it will not show up as anything in Windows as we are using the USB port strictly for the power lines for the JTAG buffer.</p>
<div id="attachment_638" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0701.jpg"><img class="size-medium wp-image-638" title="TIAO JTAG wired up and ready." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0701-300x225.jpg" alt="TIAO JTAG wired up and ready." width="300" height="225" /></a><p class="wp-caption-text">TIAO JTAG wired up and ready.</p></div>
<p>An aerial view of the whole mess. <img src='http://www.yourwarrantyisvoid.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />     Yes, I know my desk is still messy.</p>
<div id="attachment_639" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0708.jpg">C:\Program Files\OpenOCD\0.4.0<img class="size-medium wp-image-639" title="Wow, what a rats nest!" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/DSCF0708-300x225.jpg" alt="Wow, what a rats nest." width="300" height="225" /></a><p class="wp-caption-text">Wow, what a rats nest.</p></div>
<p>Now that all of the required connections have been made, it&#8217;s time to get busy with the software. Plug in the power cable to your dockstar and proceed to the next section.</p>
<h2>Step III: Software</h2>
<p>If you haven&#8217;t already, go back up to the Parts list and download Kragorn&#8217;s dockstar.cfg, OpenOCD and the uBoot image.</p>
<p>Install the OpenOCD software and accept the defaults.  Once completed, unzip the dockstar.zip and copy dockstar.cfg to C:\Program Files\OpenOCD\0.4.0\board and then copy your uboot image to C:\Program Files\OpenOCD\0.4.0  It would be recommended to rename it to just &#8220;uboot.bin&#8221; so that way you won&#8217;t have to retype that complicated line later on.</p>
<p>Now that we have all the proper software in place let&#8217;s discuss what all is going to happen.  When you start OpenOCD in a DOS window, it will in turn start a telnet server on localhost, port 4444.  You will use PuTTY to connect to the telnet server process and issue commands to OpenOCD.   In conjunction with that, you will need a second PuTTY session established to COM1 (if your windows machine has the CA-42 cable plugged into it) or to SSH to the machine you have the cable connected to. The reason is that once you enter specific commands on the telnet window, you need visibility to the other window (serial or SSH) to see if your dockstar is booting. <span style="text-decoration: underline;"><em><strong>Timing is critical!</strong></em></span> From here on out, commands and things to look for in output are in <strong>bold</strong> with other important text in bold, italics and underline.</p>
<p>In my configuration, my windows computer is what will run OpenOCD and the telnet session, and a nearby Linux box will have the SSH session with an application called minicom.</p>
<p>Start off by opening a DOS window (Start -&gt; Run -&gt; &#8220;cmd&#8221; )</p>
<p>Type the following command in exactly as shown:  <strong> </strong></p>
<pre><strong>openocd -f board/dockstar.cfg</strong></pre>
<p>You should get output similar to the below image.  If you get what I have, then you can proceed to the next step.  If you get any errors, check your wiring. Make sure only those pins shown in the above images are what you have hooked up. Also, you may get a  Windows Firewall exception error.  If you do, just hit &#8220;Allow&#8221; otherwise you won&#8217;t be able to talk to OpenOCD.</p>
<div id="attachment_640" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/OpenOCD-1.jpg"><img class="size-medium wp-image-640" title="OpenOCD successful startup" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/OpenOCD-1-300x148.jpg" alt="OpenOCD successful startup." width="300" height="148" /></a><p class="wp-caption-text">OpenOCD successful startup</p></div>
<p>If OpenOCD is running without errors, minimize the DOS box and start PuTTY. Use the below configuration to establish a connection to the telnet process that OpenOCD started.</p>
<div id="attachment_644" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/puttytelnet.jpg"><img class="size-medium wp-image-644" title="PuTTY Telnet settings" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/puttytelnet-300x286.jpg" alt="PuTTY Telnet settings" width="300" height="286" /></a><p class="wp-caption-text">PuTTY Telnet settings</p></div>
<p>When you connect, you should get a window that says &#8220;<strong>Open On-Chip Debugger</strong>&#8221; with a caret &#8220;&gt;&#8221; prompt.  Before we continue, if you haven&#8217;t already pulled up your serial session to the dockstar, you will need to do that now.  The issue is that from here on out, we will either be communicating with OpenOCD via Telnet, or communicating with the Dockstar via serial.</p>
<p>Now that you&#8217;ve established your connection to OpenOCD, perform the next two steps.</p>
<ul>
<li>Type the command <strong>&#8220;init&#8221;</strong> into the telnet session and hit enter.</li>
<li>Type the command <strong>&#8220;sheevaplug_init</strong>&#8221; into the telnet session and hit enter.</li>
</ul>
<p>Now, here is the hard part. The routine sheevaplug_init from above will attempt to halt the processor.  The Marvell chip has two types of halt, one of which labelled &#8220;ARM&#8221; and one labelled &#8220;Thumb&#8221;.  If your output resembles the below output (processor halted in <strong>Thumb</strong> state), you will need to perform the next steps otherwise skip down to the next section. When in doubt,  continue with the instructions below.</p>
<div id="attachment_645" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/Thumbstatehalt.jpg"><img class="size-medium wp-image-645" title="Thumb State Halt is no good!" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/Thumbstatehalt-300x186.jpg" alt="Thumb State Halt is no good!" width="300" height="186" /></a><p class="wp-caption-text">Thumb State Halt is no good!</p></div>
<p><strong>If you got <em>&#8220;Target halted in Thumb State&#8221;</em></strong>: There is some additional trickery that must be performed.   The issue is that the processor must be halted in ARM state as this allows OpenOCD to communicate with the processor properly.</p>
<ul>
<li>Hit Ctrl-C in your OpenOCD session. Your PuTTY session will break and generate an error. Dismiss the error and restart OpenOCD.</li>
<li>Hold down the reset button <span style="text-decoration: underline;"><strong>and keep it held down</strong></span> with one hand and with the other, type &#8220;<strong>sheevaplug_init</strong>&#8221; and hit enter.  Ignore the error messages.</li>
<li> Type in the command &#8220;<strong>halt</strong>&#8221; . <em><strong>DO NOT HIT ENTER YET!</strong></em></li>
<li><em><span style="color: #ff0000;"><strong>Release the RESET switch and simultaneously hit Enter.</strong></span></em></li>
<li>You should see that the processor was halted in ARM state.
</li>
<li>Type in &#8220;<strong>sheevaplug_init</strong>&#8221; and hit enter. No output should be generated from this command.
</li>
</ul>
<p>Check your telnet session output with my output in the screenshot below.  Make sure your output matches the screenshot before proceeding.</p>
<div id="attachment_647" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/properhalt1.jpg"><img class="size-medium wp-image-647" title="Properly halted dockstar" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/properhalt1-300x186.jpg" alt="Properly halted dockstar" width="300" height="186" /></a><p class="wp-caption-text">Properly halted dockstar</p></div>
<p>Now for the ultimate test.  We need to probe the NAND flash to make sure that the processor can communicate with it. Type in &#8220;<strong>nand probe 0</strong>&#8221; (zero) and hit enter.  If everything is correct, you should get text returned similar to &#8220;<strong>NAND flash device &#8216;NAND 256MiB 3,3V 8-bit&#8217; found</strong>&#8220;.  If you get any other message <strong>ESPECIALLY</strong> anything about Unknown Manufacturer, restart OpenOCD and try again.  Here is my output so far:</p>
<div id="attachment_648" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/nandprobe0.jpg"><img class="size-medium wp-image-648" title="Nand Probe successful!" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/nandprobe0-300x186.jpg" alt="Nand Probe Successful!" width="300" height="186" /></a><p class="wp-caption-text">Nand Probe Successful!</p></div>
<p>Now that the processor has been correctly identified by OpenOCD and the processor has properly identified the flash memory, we can now load the image into the Dockstar&#8217;s RAM and tell the processor to execute it. Type in <strong>load_image uboot.bin 0&#215;800000</strong> (zero, letter x, 8 and five zeros). If you renamed your uboot file something other than &#8220;uboot.bin&#8221; then substitute as needed.  This will take a couple of minutes as the image is transferred. Here is the output of what I have after the image loaded into RAM:</p>
<div id="attachment_649" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/loadimage.jpg"><img class="size-medium wp-image-649" title="Load_Image successful!" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/loadimage-300x186.jpg" alt="Load_Image successful!" width="300" height="186" /></a><p class="wp-caption-text">Load_Image successful!</p></div>
<p>When you get the caret prompt back &#8220;&gt;&#8221;, type in the command &#8220;<strong>resume 0&#215;800200</strong>&#8221; and check your serial connection for activity.  At this point, you can minimize the telnet session.  Now we will be dealing expressly with the serial connection.  Depending on your connection method, you may have a different window, but the text is the same.  As soon as you hit enter on the resume command, you should notice that the LED on your once dead dockstar is now blinking. Immediately switch over to the serial connection and hit a key to disrupt the boot process. If you did it right, you should see that the command prompt now shows <strong>Marvell&gt;&gt;</strong> as shown in the screenshot below:</p>
<div id="attachment_650" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/intboot.jpg"><img class="size-medium wp-image-650" title="Interrupted boot sequence." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/intboot-300x186.jpg" alt="Interrupted boot sequence." width="300" height="186" /></a><p class="wp-caption-text">Interrupted boot sequence</p></div>
<p><strong>DO NOT DISCONNECT POWER FROM THE DOCKSTAR YET! WE ARE NOT DONE.</strong> The Dockstar has successfully loaded and ran the uboot commands in RAM however if we hit the reset switch or powercycle the dockstar, the device will return to it&#8217;s zombie state, and we will have to do it all over again. The only thing left to do is to prepare and write the image to flash.</p>
<p>If you were like me and you accidentally typed in &#8216;nand erase&#8221; and bricked your dockstar, you will need to re-erase the flash to reload it.  If you bricked your dockstar by another method, skip this step and go on to the next paragraph. To do this, type in &#8220;<strong>nand erase</strong>&#8220;.  This will erase the entire flash chip.  Now to write the working uboot to flash, use the command &#8220;<strong>nand write.e 0&#215;800000 0&#215;0 0&#215;80000</strong>&#8220;  (zero x eight then 5 zeroes, zero x zero, then zero x eight then four zeros). You should get a message that the nand write was successful similar to the below screenshot.</p>
<div id="attachment_651" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/writeflash.jpg"><img class="size-medium wp-image-651" title="Successful flash write." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/09/writeflash-300x186.jpg" alt="Successful flash write." width="300" height="186" /></a><p class="wp-caption-text">Successful flash write.</p></div>
<p>If you did not brick your dockstar by an errant nand erase command, you will want to use &#8220;<strong>nand erase 0 0&#215;0 0xa0000</strong>&#8221; (zero, zero x zero, zero x a then four zeros).  The reason for this difference is that if you didn&#8217;t erase your flash, this command will preserve the u-boot environment variables, otherwise you would have to recreate them later on.</p>
<p>Now, it&#8217;s time for the moment of truth.  Don&#8217;t start disconnecting wires just yet, simply tap the reset switch to load the uboot from the flash and test your recovery.   You will notice two key things:  Your uboot will be stuck in a permanent loop (assuming you didn&#8217;t interrupt autoboot) and the LED on the dockstar will alternate between flashing green and flashing orange as uboot cycles through.  This is because the dockstar can&#8217;t find a valid kernel or filesystem to boot from.  If you used the same version of the uBoot I listed above then you will notice that this uboot will attempt to boot off of USB key drives unlike the original factory image which opens up a LOT of opportunity. <img src='http://www.yourwarrantyisvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To clean up, simply exit the various windows you have open, and exit OpenOCD by hitting Ctrl-C.  Remove power from the Dockstar, then remove the smokestack adapter and the ground wire on the USB shield.  If you want to make sure (because you&#8217;re as paranoid as I am, reapply power after all the jumpers have been removed and make sure that the Dockstar&#8217;s LED continues to blink orange then blinks green and repeats.  This means that your dockstar is confirmed as running off it&#8217;s own flash.</p>
<p>Now get to hacking!</p>
<h2>Section IV: Notes and Credits</h2>
<p>This article was assembled using information and help from various sources.  I want to thank everyone listed below for your assistance in helping me with getting the Dockstar JTAG figured out.  It was definitely not easy for someone new to JTAG however it was an enjoyable learning experience once I got the bugs worked out,  even if I did scratch my head a lot.</p>
<p>From the PlugApps forums, I&#8217;d like to thank Admin, Kragorn, bzboi, klingon, ygator, mrbill, and jtagfun.</p>
<p>A special thanks to bzboi for the initial howto that most of the OpenOCD instructions were used from and to Admin for the starting post with the Dockstar&#8217;s JTAG diagram.</p>
<p>I&#8217;d also like to thank mrbill for getting me involved with these things. It&#8217;s all his fault that I even have a dockstar to break. <img src='http://www.yourwarrantyisvoid.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Thanks goes to Kragorn for finding out the proper settings in his dockstar.cfg so that all of us could unbrick after the inevitable &#8220;Oops&#8230;&#8221; moment.</p>
<p>Last, but not least, thanks goes out to Jeff Doozan for his work with uBoot and compiling in needed features into the bootloader so that we can use USB sticks as boot devices.</p>
<h2>Where do we go from here?</h2>
<p>The answer is &#8220;Where do you want to go?&#8221;  In my relatively short time with the Dockstar, I was working on getting OpenWRT compiled and installed on it.  OpenWRT is the same OS that they use for the Linksys and other branded routers and is pretty much it&#8217;s own distribution.  There are also processes on how to install Debian onto the dockstar, using a laptop drive and USB sled to run the OS.  There is a lot of people doing research and finding out other warranty voiding things to do with their dockstars so take a look around.</p>
<p>As far as me personally?  I have three of them and while one of them is going to be a small NAS fileserver, one of the more esoteric things I was planning on doing with mine is making it into a roving USB camera with wifi.  The idea is that the Dockstar&#8217;s mainboard would be the brains of the rover and could send commands to a Parallax BOE-BOT via a usb to serial converter.  Since the entire thing would be wireless off of a USB dongle, I could use the IP based connection to deliver video and commands via a custom written application.</p>
<p>I sincerely hope that you are able to recover your dockstar using the above process.  It&#8217;s no fun when you accidentally destroy something you have put so much work into however now you should be able to work on the Dockstar without fear that you&#8217;re going to damage it and prevent it from booting.  Also, if you decide to try custom boot loaders, you can do so worry free.</p>
<p>Happy Hacking!</p>
<p>FIRESTORM_v1</p>
<p><em> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/09/08/dead-dockstar-resurrected-with-jtag/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Squirrelcage blower keeps small form factor PCs cool</title>
		<link>http://www.yourwarrantyisvoid.com/2010/08/14/squirrelcage-blower-keeps-small-form-factor-pcs-cool/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/08/14/squirrelcage-blower-keeps-small-form-factor-pcs-cool/#comments</comments>
		<pubDate>Sun, 15 Aug 2010 02:52:16 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[cooling]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[Small Form Factor]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=563</guid>
		<description><![CDATA[As long as there has been electronics, there has been the problem of how to keep them cool.  Unfortunately, the problem gets more complex the smaller that computers get and what works for one PC might not work for others.  This is clearly the obstacle to overcome when trying to cool down a settop box.  [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-full wp-image-566" title="Squirrelcage fan cooling" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/squirrel-fan-cooling.jpg" alt="Squirrel cage fan cooling. Not chuck squirrels through fans at nuclear reactors." width="535" height="176" /></p>
<p style="text-align: left;">As long as there has been electronics, there has been the problem of how to keep them cool.  Unfortunately, the problem gets more complex the smaller that computers get and what works for one PC might not work for others.  This is clearly the obstacle to overcome when trying to cool down a settop box.  Read more to find out how I was able to pull it off very well for a little over $10 in parts and still maintain all my hair.</p>
<p style="text-align: left;"><span id="more-563"></span></p>
<p style="text-align: left;">It&#8217;s pretty synonymous that computers == heat and with any mainstream processor, you have a pretty significantly sized heatsink and fan to keep the processor cool.  While processor fans and heatsinks are pretty easy to come by for standard desktop computers and servers, embedded devices are pretty much left to their own devices (no pun intended).  I was faced with the very same problem when I decided to start using two embedded computers to replace a NAT router and mini home server.   These machines are sold as a &#8220;set-top-box&#8221; and were initially intended for some kind of Video On Demand service that used broadband service to deliver content.  The computer hardware was figured out and working however left to the &#8220;stock&#8221; heatsink and heatspreader (there was no fan when I started) the box was very hot to the touch.  I decided to initially tack a case fan to the heatsink to help with the cooling, but that only served to band-aid the problem.</p>
<p style="text-align: left;">
<div id="attachment_567" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/settop.jpg"><img class="size-medium wp-image-567" title="settop" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/settop-300x225.jpg" alt="The settop box that is too hot to touch" width="300" height="225" /></a><p class="wp-caption-text">The settop box.  Those holes on top are supposed to keep this cool?</p></div>
<p style="text-align: left;">A view of the internals left very little room to work with.  There was no way I was going to be able to use a standard computer case fan without some massive case modding. Since I wasn&#8217;t really looking for a reason to spend the entire day with the dremel cutting sheet steel, I decided to take a look at what I had to work with.</p>
<p style="text-align: left;">
<div id="attachment_568" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/internals.jpg"><img class="size-medium wp-image-568" title="Settop internals" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/internals-300x225.jpg" alt="Settop internals.  It's quite cramped in there." width="300" height="225" /></a><p class="wp-caption-text">Settop internals.  It&#39;s quite cramped in there.</p></div>
<p>Since this thing was designed to be a set top box, there were all kinds of connections on the back, including a big SCART connector.  According to <a title="SCART - definition by Wikipedia" href="http://en.wikipedia.org/wiki/SCART" target="_blank">wikipedia</a>, SCART is primarily a European standard and is very commonplace for connecting AV equipment to TVs and etc.  Since this settop was sold in the US, the SCART connector was unpopulated and instead left a knockout.  This gave me a sizeable aperture for the hot exhaust, now to find some way to get the air moving.</p>
<div id="attachment_569" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/location.jpg"><img class="size-medium wp-image-569" title="location" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/location-300x225.jpg" alt="Exhaust Port location" width="300" height="225" /></a><p class="wp-caption-text">Exhaust Port Location</p></div>
<p style="text-align: left;">In the above shot, the SCART port is the large dull steel colored rectangular hole in the silver backing.  The hole is high enough that it does not interfere with the SDRAM sticks and far enough away from the power supply not to be a shock hazard.  Now knowing what I had and how big of a fan I needed, I went to Microcenter and took a look around. They had a lot of normal desktop fans and a few oddball fans and the one that would work best ended up being an old-style squirrelcage fan.  A squirrelcage fan is like the standard case fan that you&#8217;re used to however instead of normal blades, the squirrel cage fan uses an impeller that sucks in air from the front and exhausts it out of the side of the fan. The fan exhaust is perpendicular to the intake unlike a standard fan.  The advantage is that a squirrel cage fan offers the airflow of a standard fan in a smaller form factor due to the perpendicular exhaust.  The general idea is that the squirrel cage fan will suck in the warm air from inside the case and exhaust out of the now ex-SCART port.</p>
<p style="text-align: left;">
<div id="attachment_570" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/squirrelcage.jpg"><img class="size-medium wp-image-570" title="SquirrelCage blower" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/squirrelcage-300x225.jpg" alt="Squirrelcage blower, Now with extra squirrels" width="300" height="225" /></a><p class="wp-caption-text">Squirrel cage blower</p></div>
<p style="text-align: left;">This is the squirrelcage fan that I selected. Although I couldn&#8217;t find a link on Microcenter&#8217;s website, here is a <a title="Microcenter Squirrel cage fan" href="http://www.microcenter.com/single_product_results.phtml?product_id=0209741" target="_blank">link of a comparable fan</a>. It is a12V fan that is designed to screw into a removed expansion slot blank on a computer case.  The fan connects via a 12VDC Molex connector and is designed to connect between the power cable and a hard drive or CDROM.  Since there are no Molex connectors, I had to also get a three pin cable to connect to the motherboard. Thankfully Microcenter had a clearance on Intel OEM Processor fans and were selling just the connector for 25 cents.</p>
<p style="text-align: left;">
<div id="attachment_573" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/intelcable1.jpg"><img class="size-medium wp-image-573" title="Intel cable and Power header" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/intelcable1-300x225.jpg" alt="Intel cable and Power header" width="300" height="225" /></a><p class="wp-caption-text">Intel cable and Power header</p></div>
<p style="text-align: left;">The Intel cable snaps perfectly into a convenient header that I found on the motherboard.  This will be perfect as if I ever need to replace the squirrelcage fan, I can do so without having to cut up wires and desolder splices.</p>
<p style="text-align: left;">Now that I had the idea of generally where everything was to go, I had to make some modifications to the steel bracket on the blower. The blower was originally designed to fit in an empty expansion slot and the tab used for securing the blower to the chassis needed to be flattened.</p>
<p style="text-align: left;">
<div id="attachment_574" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/squirrelbracket.jpg"><img class="size-medium wp-image-574" title="Squirrelcage bracket" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/squirrelbracket-300x225.jpg" alt="Squirrelcage bracket" width="300" height="225" /></a><p class="wp-caption-text">Squirrelcage bracket</p></div>
<p>The bracket in question is so eloquently highlighted by none other than Duke Nukem.  In order to modify the bracket without destroying the fan in the process, I decided to remove the bracket.  In the above picture, you can see a notch that holds the fan in the bracket.  There are four notches in total, two on each side. I used a couple of flat bladed screwdrivers and gently pried the bracket off.</p>
<div id="attachment_575" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/bracketoff.jpg"><img class="size-medium wp-image-575" title="Bracket removed from fan" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/bracketoff-300x225.jpg" alt="Bracket removed from fan" width="300" height="225" /></a><p class="wp-caption-text">Bracket removed from fan</p></div>
<p>After a little bit of  the creative application of force, I finally had the bracket flat enough so that it would not interfere with mounting. (Translation:  I beat the crap out of it with a hammer.)</p>
<div id="attachment_576" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/bracketmod.jpg"><img class="size-medium wp-image-576" title="Flattened Bracket modification" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/bracketmod-300x225.jpg" alt="Flattened Bracket modification" width="300" height="225" /></a><p class="wp-caption-text">Flattened Bracket modification</p></div>
<p>Now that the bracket is flattened enough, it&#8217;s time to see about how to go about lining it up with the SCART exhaust port.</p>
<div id="attachment_577" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/holesalign.jpg"><img class="size-medium wp-image-577" title="SCART holes line up with the grill." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/holesalign-300x225.jpg" alt="SCART holes line up with the grill." width="300" height="225" /></a><p class="wp-caption-text">SCART holes line up with the grill.</p></div>
<p>I lucked out on this one.  The two holes that were intended for the SCART interface hardware line up perfectly with two lines on the grill.  This made mounting the bracket as easy as a couple of small nuts and bolts.  Once mounted, it was time to start working on the power cable.  I decided to use the yellow and black wires for the fan&#8217;s power because black is considered &#8220;ground&#8221; and yellow is considered the &#8220;+12V&#8221; lead in computer power supplies.</p>
<div id="attachment_578" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/threewire.jpg"><img class="size-medium wp-image-578" title="Three wire connector" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/threewire-300x225.jpg" alt="Three wire connector" width="300" height="225" /></a><p class="wp-caption-text">Three wire connector</p></div>
<p>I cut off the green lead, and cut the cable about two inches long.  I then wired the wires from the fan to the Intel cable.  The red wire on the blower goes to the Yellow wire on the Intel cable and the two blacks go together. Not shown in this image is the small length of shrinkwrap used to secure and isolate the connection.</p>
<div id="attachment_579" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/solderprep.jpg"><img class="size-medium wp-image-579" title="Solder Preperation" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/solderprep-300x225.jpg" alt="Solder Preperation" width="300" height="225" /></a><p class="wp-caption-text">Solder Preperation</p></div>
<p>After soldering the first wire, I sealed it with the heatshrink and then soldered the other wire.</p>
<div id="attachment_580" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/solder1.jpg"><img class="size-medium wp-image-580" title="Soldered and shrinked" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/solder1-300x225.jpg" alt="Soldered and shrinked" width="300" height="225" /></a><p class="wp-caption-text">Soldered and Shrinked</p></div>
<p>Another piece of heatshrink later and I have a ready to install cable.</p>
<div id="attachment_581" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/complete.jpg"><img class="size-medium wp-image-581" title="Completed cable" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/complete-300x225.jpg" alt="Completed cable" width="300" height="225" /></a><p class="wp-caption-text">Completed cable</p></div>
<p>With the cable now complete, all that remained was to plug the power cable into the power header and snap the blower back into the bracket.</p>
<div id="attachment_582" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/blowermounted.jpg"><img class="size-medium wp-image-582" title="Blower mounted" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/blowermounted-300x225.jpg" alt="Blower mounted" width="300" height="225" /></a><p class="wp-caption-text">Blower Mounted</p></div>
<p>Here is a shot of the back of the case with the now operational blower.</p>
<div id="attachment_583" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/exhaustport.jpg"><img class="size-medium wp-image-583" title="SCART Exhaust port." src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/exhaustport-300x225.jpg" alt="SCART Exhaust port." width="300" height="225" /></a><p class="wp-caption-text">SCART Exhaust port.</p></div>
<p>And finally, here&#8217;s a side-by-side (or top and bottom) with an unmodified settop box.</p>
<div id="attachment_584" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/beforeandafter.jpg"><img class="size-medium wp-image-584" title="Modded and Unmodded settops" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/08/beforeandafter-300x225.jpg" alt="Modded and Unmodded settops" width="300" height="225" /></a><p class="wp-caption-text">Modded and Unmodded settops</p></div>
<h2>Final Results</h2>
<p>I&#8217;ve been running the settop now for the past couple of days and I can say that the blower is 100% effective.  The case is cool to the touch and my fears of cooking the processor have been abated.  The machine will do very nicely as a pfSense firewall as soon as I get around to finishing it up but for now, this is one less thing stopping me from using it.</p>
<p>If you ever find yourself in a similar situation where you have to get airflow but don&#8217;t have much space, I highly recommend these squirrelcage blowers.  They&#8217;re cheap, they&#8217;re effective and well worth the time to install.  Although I had to go a bit out of my way to install the blower, not having to worry about cooking the machine is well worth the effort.</p>
<p>I hope you enjoyed this article, it was definitely an interesting approach to cooling in a small form factor.  Do you have any insight or other experience with odd cooling in a similar situation?  Please leave a comment, I&#8217;m always interested in other people&#8217;s stories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/08/14/squirrelcage-blower-keeps-small-form-factor-pcs-cool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seagate Dockstar: Add an accessible serial port</title>
		<link>http://www.yourwarrantyisvoid.com/2010/07/21/seagate-dockstar-add-an-accessible-serial-port/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/07/21/seagate-dockstar-add-an-accessible-serial-port/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 18:35:55 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Dockstar]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[seagate]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=526</guid>
		<description><![CDATA[Ok, so not long after I published the article on  the hardware teardown of the Seagate Dockstar, I couldn&#8217;t help myself  so I started working on things to do with this device.  I did a lot of research in regards to the capabilities of the Dockstar, including being able to push a customized Linux OS [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-527" title="seagate serial logo" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/seagate-serial-logo.jpg" alt="" width="214" height="94" /></p>
<p>Ok, so not long after I published the article on  the <a href="http://www.yourwarrantyisvoid.com/2010/07/14/hardware-porn-seagate-dockstar-teardown/" target="_blank">hardware teardown of the Seagate Dockstar</a>, I couldn&#8217;t help myself  so I started working on things to do with this device.  I did a lot of research in regards to the capabilities of the Dockstar, including being able to push a customized Linux OS on the device.  Once I saw <a href="http://hackaday.com/2010/07/17/openwrt-on-a-seagate-freeagent-dockstar/" target="_blank">the article at Hackaday</a> that covers exactly how to replace the OS, I knew I had to do it for myself.  There are two ways to perform this upgrade however in order to capture syslog output and to be able to get to the bootloader, a serial port is required.  Just about all of the sites will describe the pins needed to make the connection, however none of them detail how to do it very clearly and none of them address the issue of aesthetics.  Read on for my method of adding a serial port to the Dockstar without affecting the look of the device.</p>
<p><span id="more-526"></span></p>
<h1>Before We Begin&#8230;.</h1>
<p>The Seagate Dockstar has a serial port available via three of the pins on the header at the front of the PCB.  The issue is that they&#8217;re not very easy to get to without having to disassemble the device each and every time you need to do a recovery on it.  This is hardly an ideal solution, and who knows what I&#8217;ll be doing with the device in the future.  If I decide to embed the  device and something goes wrong, I&#8217;ll have to have access to the serial port in order to debug it.</p>
<p>But, simply having access to the serial port is not enough.  The Dockstar&#8217;s aesthetic elegance is in the fact that it&#8217;s so simple.  No  massive amount of connectors aside from Power and Ethernet, and with little room to begin with, I don&#8217;t want to have a cable hanging out of the box just to have access to the serial port.  After much deliberation, I decided that a pin-row setup would be ideal instead of some other outward-facing connector.  The advantages to a pin-row set up is that there are only as many holes as are needed to establish connection and the connector size is significantly smaller than would be a standard DB-9 connector.  An additional advantage to the pin-row setup is that the  connection would be temporary and can be easily removed. The resulting connection port would still be cleanly presented and would not stick out like a sore thumb.</p>
<h2>Parts List:</h2>
<p>In order to pull this off, you will need the following items:</p>
<p>- a CA-42 USB cable. &#8211; This is most commonly sold as a <a href="http://www.amazon.com/Cable-Nokia-CA-42-Wireless-Accessory/dp/B000BI4HW8" target="_blank">Nokia cable through Amazon</a> and can usually be had for a few bucks. This is <strong>required</strong> as the dockstar&#8217;s serial port voltages are at a 3.3V TTL.  interfacing it to a standard +12V/-12V serial port <strong>will damage your Dockstar.</strong> The CA-42 cable has a PL-2303 USB to 3.3v TTL serial adapter in it which provides the required 3.3v TTL and gives an easy to use connector for plugging it into your host PC.</p>
<p>- a 4-pin header with long pins. &#8211; The pins have to be long enough that they will go through the Dockstar case and into the matched connector securely.</p>
<p>- a matched connector for the 4 pin header. &#8211; This will be mounted inside the Dockstar.</p>
<p>- Heat shrink tubing of various sizes. (Use the images as a guide)</p>
<p>- A couple of spares of the 4 pin header and the connector.  (We&#8217;ll use one spare for making the holes in the case, but it&#8217;s always good to have extras just in case.</p>
<h2>Tools List:</h2>
<p>- Soldering Iron</p>
<p>- Lighter (for heatshrink)</p>
<p>- small diameter drillbits</p>
<p>- Spudger (or Radio Shack soldering toolkit)</p>
<p>- A Linux machine with an available USB port. <strong>Note:</strong> It may be possible to use a windows computer for testing however my USB adapter only works in Linux.</p>
<p>Now that you have all the components, it&#8217;s important to stop here for a sec and cover the legal mess. It is critically important that you know what you&#8217;re doing.  You can not blame me or hold this site responsible (or the maintainers of this site) if you do something and blow up your Dockstar.  Be careful, do your research, check twice, solder once.</p>
<p>Please note that if you have never worked with shrinkwrap, the important thing is to watch the fire and keep it moving.  If you leave the lighter in the same place for too long, the shrinkwrap will stop shrinking and will catch fire.  When in doubt, apply the hat quickly and watch the shrinkwrap closely.   If it does something wrong, move the lighter away and start blowing on it to cool it down.</p>
<h1>Part 1:  The Cable</h1>
<p>It&#8217;s easier to do the modification on the cable first rather than do the Dockstar portion due to the fact that part of performing the Dockstar side of things will require testing to make sure it&#8217;s all working properly. So, let&#8217;s get started.</p>
<p style="text-align: left;">
<div id="attachment_528" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_serial.jpg"><img class="size-medium wp-image-528 " title="CA-42 cable, header and connector" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_serial-300x225.jpg" alt="CA-42 cable, header and connector" width="300" height="225" /></a><p class="wp-caption-text">CA-42 cable, header and connector</p></div>
<p style="text-align: left;">This is the cable that we will be hacking together. The pin-row connector shown above is a 4 pin wirewrap terminal and a push-on style PCB mount connector.</p>
<div id="attachment_531" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_header.jpg"><img class="size-medium wp-image-531" title="cable header and connector" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_header-300x225.jpg" alt="cable header and connector" width="300" height="225" /></a><p class="wp-caption-text">cable header and connector</p></div>
<p>In the above photo,you can see the long header pins and the matching connector and how they fit together.  Before we get started with modifying the cable, we first need to figure out how it&#8217;s wired up.  Because there is a very good chance that you have a generic cable, and generic cables are wired differently, we will start off with spudging the USB connector apart.</p>
<p style="text-align: left;">
<div id="attachment_529" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_spudger.jpg"><img class="size-medium wp-image-529" title="Spudger to cable case" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_spudger-300x225.jpg" alt="Spudger to cable case" width="300" height="225" /></a><p class="wp-caption-text">Spudger to cable case</p></div>
<p>Follow the plastic seam of the USB connector with the sharp blade of the spudger.  Gently work the two halves of the plastic apart until you are able to seperate them.  You should see a connector that looks like the one below.</p>
<div id="attachment_530" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_opened.jpg"><img class="size-medium wp-image-530" title="Opened cable" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_opened-300x225.jpg" alt="Opened cable" width="300" height="225" /></a><p class="wp-caption-text">Opened cable</p></div>
<p>A closer of the PCB will reveal that the  wires (white, blue and green) are labeled for our easy hacking <span style="text-decoration: line-through;">convenience</span> . The three wires in my cable are Blue(GND), Green (RxD), and White (TxD). Now that we know which wire does what, reassemble the USB cable as we will not need to do any work on this end of the cable.  Starting with the 4 pin connector, pick one of the two internal pins and remove it.</p>
<div id="attachment_532" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_pins.jpg"><img class="size-medium wp-image-532" title="Removed pin from connection block" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_pins-300x225.jpg" alt="Removed pin from connection block" width="300" height="225" /></a><p class="wp-caption-text">Removed pin from connection block</p></div>
<p>The reason for removing the offset pin is for two reasons.  1) There are only three wires required for connection and 2) The missing pin will allow us to key the connector so that it can&#8217;t be reversed.  Going back to the USB cable, cut off the fat Nokia phone end and strip the cable back about an inch.  To help with soldering, insert the long end of the header pins into a block of breadboard.  This will help hold the connection stable while you solder the cable.   You will also need to cut the small diameter shrinkwrap in three sizes as shown below.</p>
<div id="attachment_533" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrink.jpg"><img class="size-medium wp-image-533" title="Cable preparation" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrink-300x225.jpg" alt="Cable preparation" width="300" height="225" /></a><p class="wp-caption-text">Cable preparation</p></div>
<p>The reason for the three lengths of heatshrink tubing is that we will build up the edge of the cable to a large size so that we can use the larger heatshrink tube  (in the back of the picture) to bind the header pins into the wrap and the wrap to the end of the cable to strengthen the cable.  If you have never worked with heatshrink tubing, it&#8217;s very easy to work with.  Start with the longest piece of tubing, and slide it over the cable. Make sure that the cut end matches the end of the insulation and heat with the lighter.  <strong>KEEP THE FLAME MOVING ACROSS THE HEATSHRINK!!</strong> Once the heatshrink has stopped shrinking, allow it to cool and repeat for each piece.</p>
<div id="attachment_534" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrinkprep.jpg"><img class="size-medium wp-image-534" title="Shrinkwrapped cable" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrinkprep-300x225.jpg" alt="Shrinkrwrapped cable" width="300" height="225" /></a><p class="wp-caption-text">Shrinkrwrapped cable</p></div>
<p>This is the end result of the shrinkwrapping.  Now that the end is built up, slide a piece of the large shrink over the end of the cable but do not apply heat just yet. Strip back the individual wires so that you can attach them to the header pins.</p>
<div id="attachment_535" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_bigshrink.jpg"><img class="size-medium wp-image-535" title="Cable prepped for soldering" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_bigshrink-300x225.jpg" alt="Cable prepped for soldering" width="300" height="225" /></a><p class="wp-caption-text">Cable prepped for soldering</p></div>
<p>Now that we&#8217;re ready to solder the connector, it&#8217;s important to decide how to create the pinout.  In my setup, I elected to have the GND connection by itself, then the TX and RX pins.  For each wire, wrap the wire around the soldering post on the header pins and solder.  Be sure to use only enough solder as is required for the connection and do not  bridge the pins.</p>
<div id="attachment_536" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_soldered.jpg"><img class="size-medium wp-image-536" title="Soldered cable to header pins" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_soldered-300x225.jpg" alt="Soldered cable to header pins" width="300" height="225" /></a><p class="wp-caption-text">Soldered cable to header pins</p></div>
<p>Now with the cable soldered and the connections solid, it&#8217;s time to apply the heat to the large heatshrink.  Very carefully pull the end of the heatshrink over the black plastic header and gently apply heat.  Adjust if needed and let the tubing shrink without it pulling itself off of the header plastic.</p>
<div id="attachment_537" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrink1.jpg"><img class="size-medium wp-image-537" title="Shrinkwrap applied to header" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_shrink1-300x225.jpg" alt="Shrinkwrap applied to header" width="300" height="225" /></a><p class="wp-caption-text">Heatshrink applied to header</p></div>
<p>When you have it this far, go ahead and apply heat to the rest of the heatshrink tubing, making sure not to singe it.  When you are done, you should have a cable looking like the one below.</p>
<div id="attachment_538" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_completed.jpg"><img class="size-medium wp-image-538" title="Completed cable with socket" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/cable_completed-300x225.jpg" alt="Completed cable with socket" width="300" height="225" /></a><p class="wp-caption-text">Completed cable with socket</p></div>
<p>This was the easy part, Now it&#8217;s time for the dockstar.</p>
<h1>Part 2: The Dockstar</h1>
<p>We&#8217;ve got the cable, but without something to connect it to, it&#8217;s pretty useless (unless you want to use it on a breadboard).  Let&#8217;s take a look at what&#8217;s going on.</p>
<div id="attachment_539" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/DS_plan.jpg"><img class="size-medium wp-image-539" title="Dockstar connection planning" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/DS_plan-300x225.jpg" alt="Dockstar connection planning" width="300" height="225" /></a><p class="wp-caption-text">Dockstar connection planning</p></div>
<p>Since I&#8217;ve already determined that I want the connector for the serial to come out of the back of the device and I&#8217;ve already found a suitably small connector, it&#8217;s time to find a location where I can attach it without getting too involved or without interfering with the existing ports on the back of the dockstar.  I&#8217;ve elected to put the serial port just above the center USB connector.  In the photo above, you can see how much space we&#8217;re dealing with in comparison with the USB ports and the header socket.</p>
<div id="attachment_540" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_shield1.jpg"><img class="size-medium wp-image-540" title="Dockstar shielding" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_shield1-300x225.jpg" alt="Dockstar shielding" width="300" height="225" /></a><p class="wp-caption-text">Dockstar shielding</p></div>
<p>Some of the RF shielding will need to be removed, but thankfully the metal is pretty flimsy and easily cut.   Be sure that when you remove the little fins pictured that you do not distort the top of the metal shielding.  We need a surface as smooth as possible for the superglue to properly bind with the connector for the serial port.</p>
<div id="attachment_541" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_shield2.jpg"><img class="size-medium wp-image-541" title="Unneeded shielding removed" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_shield2-300x225.jpg" alt="Unneeded shielding removed" width="300" height="225" /></a><p class="wp-caption-text">Unneeded shielding removed</p></div>
<p>Here is the picture of the unneeded shielding removed.  Please only remove the shielding that you need.  Next, you will need to prep another three pin header just like you did for the cable.  Rather than trusting faulty measurements and guessing, we&#8217;re going to use the header&#8217;s pins themselves to point out where we need to place our holes.</p>
<div id="attachment_542" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_burn.jpg"><img class="size-medium wp-image-542" title="Burned through holes" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_burn-300x225.jpg" alt="Burned through holes" width="300" height="225" /></a><p class="wp-caption-text">Burned through holes</p></div>
<p>Using a pair of needlenose pliers and your soldering iron, heat the pins evenly and apply moderate pressure.  The pins may wiggle slightly but don&#8217;t let them move too far off otherwise your holes won&#8217;t be lined up. When all three pins have punched through, remove the pins with the needlenose pliers.  Use the small diameter drill bit to widen the holes and to furr out any residual plastic scraps.  Your finished holes should look something like below.</p>
<div id="attachment_543" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_holes.jpg"><img class="size-medium wp-image-543" title="Completed holes" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_holes-300x225.jpg" alt="Completed holes" width="300" height="225" /></a><p class="wp-caption-text">Completed holes</p></div>
<p>Just to make absolutely sure, go ahead and test with the connector and the cable to make sure everything fits properly.</p>
<div id="attachment_544" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_test.jpg"><img class="size-medium wp-image-544" title="Hole Alignment Test" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_test-300x225.jpg" alt="Hole Alignment Test" width="300" height="225" /></a><p class="wp-caption-text">Hole Alignment Test</p></div>
<p>If you&#8217;ve made it this far, you&#8217;re doing good.  Now it&#8217;s time to prep the connector for supergluing into the Dockstar&#8217;s case.  Since it&#8217;s a four pin connector and we&#8217;re only using three pins, make sure that the connector is properly oriented so that it fits properly and so that the serial cable can move freely in and out of the connector.  Back the cable off a bit so you can see which pin is missing and cut off the connector&#8217;s matching pin to eliminate a possible mis-wiring later on. Go ahead and attach and solder a wire to each of the three remaining pins.</p>
<div id="attachment_545" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_connwires.jpg"><img class="size-medium wp-image-545" title="Socket connection with wires" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_connwires-300x225.jpg" alt="Socket connection with wires" width="300" height="225" /></a><p class="wp-caption-text">Socket connection with wires</p></div>
<p>In order to glue the connector socket in, take the excess wire and coil it up for now. Apply a thin coat of superglue inside the Dockstar and when aligned, push the three pin header you used for burning the connector in through your drilled holes and into the connector.  This will hold the socket steady while the superglue cures.  Give it about 15 minutes to cure properly, then gently remove the pins from the socket.  At this point, you should have a fully mounted socket like in the picture below.</p>
<div id="attachment_546" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_glue.jpg"><img class="size-medium wp-image-546" title="Glued in header socket" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_glue-300x225.jpg" alt="Glued in header socket" width="300" height="225" /></a><p class="wp-caption-text">Glued in header socket</p></div>
<p>Now that the socket is taken care of, we need to attach it to the serial port on the Dockstar&#8217;s board.  Before we do anything permanent, we will test the serial port and then once we are satisfied that it&#8217;s all working, we&#8217;ll solder them in and close it up.   Start off with wrapping the ground wire to the lower right hand pin on the connection block.  This is the common GND connection and must be established first. If you are using my wiring plan, the GND wire is the single pin by itself on the three pin header we made earlier.</p>
<div id="attachment_547" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_wrap.jpg"><img class="size-medium wp-image-547" title="wirewrapped GND wire" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_wrap-300x225.jpg" alt="wirewrapped GND wire" width="300" height="225" /></a><p class="wp-caption-text">wirewrapped GND wire</p></div>
<p>The two pins to the left of the GND pin are the RX and TX pins respectively.  Attach the centermost pin to RX and the remaining pin to TX on the superglued connector.</p>
<div id="attachment_548" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_wrap2.jpg"><img class="size-medium wp-image-548" title="Connected wires" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_wrap2-300x225.jpg" alt="Connected wires" width="300" height="225" /></a><p class="wp-caption-text">Connected wires</p></div>
<p>Remember, we have NOT soldered the three wires yet.  Also, make sure that none of the wires are touching prior to connection.  In order to test the serial port and make sure we have it hooked up right, connect the three pin header on the serial cable to your socket on the back of the Dockstar and connect the USB connector to your computer. Do not apply power to the Dockstar yet.  Open up minicom and set the serial device to /dev/ttyUSB0, 115200, no parity, 8 bits, 1 stop bit.  When properly configured, apply power to the Dockstar and watch your console window.  If you got it right, you should get similar output like below.   If not, pull the power plug on the Dockstar and disconenct the serial cable out of the back of the dockstar.  Swap the left two pins (RX and TX) and try again.  You should get output like below.</p>
<div id="attachment_549" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_serial.jpg"><img class="size-medium wp-image-549" title="Serial terminal output" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_serial-300x186.jpg" alt="Serial terminal output" width="300" height="186" /></a><p class="wp-caption-text">Serial terminal output</p></div>
<p>Now that you&#8217;ve tested the wiring, disconnect the power and the serial cable from the Dockstar.  Solder the wires in place and reassemble the Dockstar. Be careful closing the cover as you want to make sure that the wires coming off the superglued socket do not touch the metal shielding. (Editor&#8217;s Note: I really need a hot glue gun)</p>
<div id="attachment_550" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_closeup.jpg"><img class="size-medium wp-image-550" title="Closeup of Dockstar prior to reassembly" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_closeup-300x225.jpg" alt="Closeup of Dockstar prior to reassembly" width="300" height="225" /></a><p class="wp-caption-text">Closeup of Dockstar prior to reassembly</p></div>
<p>Close it all up and test it one more time.  If everything works as should, you&#8217;re good to go.  Now you can access the serial port without having to take your Dockstar apart over and over again.</p>
<div id="attachment_551" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_comp_att.jpg"><img class="size-medium wp-image-551" title="Completed mod with serial cable attached" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_comp_att-300x225.jpg" alt="Completed mod with serial cable attached" width="300" height="225" /></a><p class="wp-caption-text">Completed mod with serial cable attached</p></div>
<p>Here is a picture of the completed serial cable mod. The serial cable is plugged in right above the keydrive in this photo.</p>
<div id="attachment_552" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_complete.jpg"><img class="size-medium wp-image-552" title="View of Serial Port" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/ds_complete-300x225.jpg" alt="View of Serial Port" width="300" height="225" /></a><p class="wp-caption-text">View of Serial Port</p></div>
<p>Same view as above, but with the serial cable removed.  Nothing but three holes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/07/21/seagate-dockstar-add-an-accessible-serial-port/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Hardware Porn: Seagate Dockstar teardown</title>
		<link>http://www.yourwarrantyisvoid.com/2010/07/14/hardware-porn-seagate-dockstar-teardown/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/07/14/hardware-porn-seagate-dockstar-teardown/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 01:00:20 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware Pr0n]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Dockstar]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[seagate]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=504</guid>
		<description><![CDATA[I was given a very interesting product by a friend of mine that happened to catch a good deal on woot.com a few days ago.  Apparently Seagate has made a network fileserver device for their Freeagent Go line of portable USB drives called the Freeagent DockStar. (I can only think that this is a play [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-505" title="Seagate Logo" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/seagatelogo.png" alt="Seagate Logo" width="136" height="79" />I was given a very interesting product by a friend of mine that happened to catch a good deal on woot.com a few days ago.  Apparently Seagate has made a network fileserver device for their Freeagent Go line of portable USB drives called the Freeagent DockStar. (I can only think that this is a play on Battlestar Galactica&#8217;s Baystar &#8211; a cylon &#8220;aircraft-carrier&#8221; of sorts.)  When I went to look for pictures online of the hardware, I was dismayed to find nothing about the inside of the little thing.  So here they are in all their exposed glory, the innards of the Seagate Dockstar.</p>
<p><span id="more-504"></span></p>
<div id="attachment_506" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/Dockstar-box.jpg"><img class="size-medium wp-image-506" title="Dockstar box" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/Dockstar-box-300x225.jpg" alt="Dockstar box" width="300" height="225" /></a><p class="wp-caption-text">Dockstar box</p></div>
<p>This is the box that the Dockstar came in.  Having not bought a non-OEM seagate drive in ages, I was pleasantly surprised that they used normal cardboard instead of some plastic case for this device.  Seagate is really pushing their &#8220;Go Green&#8221; incentive by changing the entire box (even the box inside) with easy to recycle cardboard instead of that translucent plastic &#8220;tray&#8221; that normally accompanies electronics.  While not necessarily an indication of product performance, it does show that they care about the environment.</p>
<div id="attachment_507" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/Dockstar-contents.jpg"><img class="size-medium wp-image-507" title="Dockstar contents" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/Dockstar-contents-300x225.jpg" alt="Dockstar contents" width="300" height="225" /></a><p class="wp-caption-text">Dockstar contents</p></div>
<p>Inside the box, aside from the little &#8220;Getting Started Manual&#8221; is the following items:  A Universal power brick pre-fitted with the US style prongs, a shielded ethernet cable and of course, the dockstar itself.</p>
<div id="attachment_509" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/universal-plug.jpg"><img class="size-medium wp-image-509" title="universal plug sticker" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/universal-plug-300x225.jpg" alt="universal plug sticker" width="300" height="225" /></a><p class="wp-caption-text">universal plug sticker</p></div>
<p>Here&#8217;s a closeup of the universal plug and all it&#8217;s various warnings and certifications.  I have seen a shift towards these universal plugs and away from the more proprietary plugs that manufacturers would normally use as a cost saving process. Since there is no one world-wide standard on power for every country that Seagate does business with, why spend that money building 20+ different power adapters when all you need is one with different prongs to fit whatever country&#8217;s plugs you&#8217;re going to be selling to.</p>
<div id="attachment_510" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/up-details.jpg"><img class="size-medium wp-image-510" title="Universal Plug details" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/up-details-300x225.jpg" alt="Universal Plug details" width="300" height="225" /></a><p class="wp-caption-text">Universal Plug details</p></div>
<p>And, just because I&#8217;m a sucker for details (and I keep losing the power bricks), here&#8217;s the voltage and amperage rating of the power brick.  Output is 12vDC 2Amps with a positive tip.</p>
<div id="attachment_508" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-front.jpg"><img class="size-medium wp-image-508" title="dockstar front" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-front-300x225.jpg" alt="Dockstar front" width="300" height="225" /></a><p class="wp-caption-text">Dockstar front</p></div>
<p>Finally, we get to the dockstar to find what secrets it holds.  The front panel has one LED for device status and the USB mini-B port for the Freeagent drive to sit in.  Unlike most older-style USB devices, the Seagate Freeagent is powered entirely through the USB port, eliminating the need for two cables to power one device.  Overall it&#8217;s a simple presentation of what looks to be a fairly complex device.</p>
<div id="attachment_511" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-back.jpg"><img class="size-medium wp-image-511" title="Dockstar Back" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-back-300x225.jpg" alt="Dockstar Back" width="300" height="225" /></a><p class="wp-caption-text">Dockstar Back</p></div>
<p>The back of the dockstar has two USB ports, the Gigabit Ethernet port and the power port on it.  I would like for there to have been a link and an activity LED for the Ethernet port, but unfortunately this was not implemented.  I guess I&#8217;m a sucker for LEDs.</p>
<div id="attachment_512" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-side.jpg"><img class="size-medium wp-image-512" title="Right side of dockstar" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-side-300x225.jpg" alt="Right side of dockstar" width="300" height="225" /></a><p class="wp-caption-text">Right side of dockstar</p></div>
<p>The right side of the dockstar features another USB port and the reset switch for the device.  The left side of the dockstar (not pictured) only has cooling vents on the side.</p>
<div id="attachment_513" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-bottom.jpg"><img class="size-medium wp-image-513" title="dockstar bottom" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/dockstar-bottom-300x225.jpg" alt="Dockstar Bottom" width="300" height="225" /></a><p class="wp-caption-text">Dockstar Bottom</p></div>
<p>This is the bottom of the dockstar which has a large sticker that shows the serial numbers and MAC address of the device.  Of note, there was one number on this sticker which is formatted like some kind of product activation key and is formatted as follows:  six alphanumeric characters,  hyphen, six alphanumeric characters, hyphen, two alphanumeric characters, hyphen, six alphanumeric characters, hyphen, six alphanumeric characters.   At first glance, I thought these were hexadecimal numbers however the letters used were not between A-F and so it&#8217;s currently unclear what this number is for.  There is no mention of what this number is for in the documentation.</p>
<div id="attachment_514" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/spudger.jpg"><img class="size-medium wp-image-514" title="Gaining access to the insides" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/spudger-300x225.jpg" alt="Gaining access to the insides" width="300" height="225" /></a><p class="wp-caption-text">Gaining access to the insides</p></div>
<p>Typically on a device like this and most small consumer devices, there are four screws on the bottom (usually under the black slip-resistant dots) however the Dockstar doesn&#8217;t have any.  In order to gain access, I used a metal spudger to work the bottom away from the top half of the body.  There are two notches on each side of the square base, so you may need to use something flat like a spudger, small flathead screwdriver or a expansion slot blank to pry it open.</p>
<div id="attachment_515" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/just-opened.jpg"><img class="size-medium wp-image-515" title="Cracked the case" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/just-opened-300x225.jpg" alt="Cracked the case" width="300" height="225" /></a><p class="wp-caption-text">Cracked the case</p></div>
<p>Once you cracked the case open (hopefully without breaking it), you should see the small cable that connects the top USB port to the dockstar&#8217;s mainboard.  Carefully disconnect this cable and the two halves should now be seperated.</p>
<div id="attachment_516" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/mb-top.jpg"><img class="size-medium wp-image-516" title="Mainboard top view" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/mb-top-300x225.jpg" alt="Mainboard top view" width="300" height="225" /></a><p class="wp-caption-text">Mainboard top view</p></div>
<p>This is the dockstar in all it&#8217;s nude glory. The front of the device is to the right in this photograph. The small black square is Nanya 1Gb (comes out to ~128 megabytes)  DDR-2 RAM in a BGA package. <a href="http://www.nanya.com/NanyaAdmin/GetFiles.ashx?ID=502" target="_blank">Datasheet available here</a> and the large square is the device&#8217;s main processor.  From research I have performed, this appears to be a Marvell 1.2GHZ processor (just like the sheevaplug devices that Marvell is also selling. I tried to pull some more datasheets from plugcomputer.org, but their datasheet listing is quite lacking.  For now, just know that it&#8217;s an arm compliant processor and when I post an update article, I will have more juicy details on the capabilities of the processor.  Also of note, just below and to the right of the processor is a small ten pin header.  Presumably this can be used for a serial port however I do not have the cable for that.  Once I get it in and test it, I will update this article with a pinout diagram for you. Since this device is so low-level I would not recommend trying to connect a regular serial port to it directly as it more than likely requires a level shifter like a MAX232 to bring the -12/+12VDC down into something that won&#8217;t blast the components.</p>
<div id="attachment_517" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/mb-bottom.jpg"><img class="size-medium wp-image-517" title="Mainboard bottom" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/07/mb-bottom-300x225.jpg" alt="Mainboard bottom" width="300" height="225" /></a><p class="wp-caption-text">Mainboard bottom</p></div>
<p>This is the bottom of the dockstar&#8217;s mainboard.  Unfortunately, the board is now oriented that the front of the dockstar is now at the bottom of the picture. (Bad cameraman, no cookie.)  There&#8217;s not really much to note here as the board layout is jam packed with passive components.  The large black square on the lower right is the NAND storage for the device and while I couldn&#8217;t pull up the datasheet for it, the guys over at PlugPBX already had a <a href="http://forums.plugpbx.org/index.php?topic=97.0" target="_blank">forum post</a> that showed the Dockstar&#8217;s hardware specs for us.  According to their chart, the dockstar&#8217;s storage is 256MB. which should be more than adequate for general Linux fun.  The small chip just under the black tape in the upper right hand corner of the board is presumably the ethernet NIC however googling the chip numbers came up with nothing.</p>
<p>Just looking at the hardware overall, it would appear that the Seagate Dockstar is a very capable device that just needs to be altered to run whatever we choose to run with it.  While the software on the device (stock) comes with a filesharing service called Pogoplug, I do not intend on using that software and will be looking to get this device as far away from stock as possible.  Here is a list of some things I&#8217;ve been thinking of doing with it so far:</p>
<ul>
<li>Home NAS (without Internet file sharing)</li>
<li>multihomed router (I have a stack of pegasus USB modules)</li>
<li>semiportable network notification device (USB to parallel port, HD44780 LCD display)</li>
<li>realtime data acquisition device (USB logger and serial ports?)</li>
<li>Apple MT-DAAPd server for streaming music to iTunes installations on your local network</li>
</ul>
<p>Some sites I&#8217;ve seen while doing research have mentioned things from a in-home webserver with databases, to even a PBX server (take a look at <a href="http://www.plugpbx.org/" target="_blank">www.plugpbx.org</a>)</p>
<p>The big question is:  What would you do with it? Feel free to leave a comment as to what you&#8217;d do with this device, suggestions, information, etc.</p>
<p>FIRESTORM_v1</p>
<h1><span style="color: #ff0000;"><em><span style="text-decoration: underline;"><strong>BIG FAT OBNOXIOUS WARNING!:</strong></span></em></span><span style="color: #ff0000;"> </span></h1>
<p>Because of the Dockstar&#8217;s affinity to want to &#8220;phone home&#8221; thanks to the Pogoplug software,  I would not recommend plugging this into your live network just yet.  In all of the research I have done for this device, just about every site I have seen has posted some kind of warning about this.  The dockstar was originally designed to run with pogoplug which is an internet filesharing service that allows you to access your files from anywhere with Internet connectivity.  I don&#8217;t exactly trust an outside third party to have access to my files on a device that is only going to be used on a local network so I have not connected mine up to even test it.  If you are going to do any work with this device, I recommend that you use a dedicated mini-hub or switch and that it not be allowed to connect to the Internet until you have a complete understanding of what all it wants to do. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/07/14/hardware-porn-seagate-dockstar-teardown/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Parts: Parallax RFID scanner now $10!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/06/14/parts-parallax-rfid-scanner-now-10/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/06/14/parts-parallax-rfid-scanner-now-10/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 01:21:09 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[Parallax]]></category>
		<category><![CDATA[RFID]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=491</guid>
		<description><![CDATA[Hello Everyone!   If you&#8217;ve been in a Radio Shack sometime in the last year or so, you&#8217;ll know that Radio Shack and Parallax have teamed up to bring some variety to the parts drawers.  This once $50 serial RFID reader kit is now $10 at Radio shack although it only comes with two tags.  Read [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_492" class="wp-caption aligncenter" style="width: 260px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/06/32390-M.jpg"><img class="size-full wp-image-492" title="Parallax RFID" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/06/32390-M.jpg" alt="" width="250" height="250" /></a><p class="wp-caption-text">Image courtesy of Parallax.com</p></div>
<p style="text-align: left;">Hello Everyone!   If you&#8217;ve been in a Radio Shack sometime in the last year or so, you&#8217;ll know that Radio Shack and Parallax have teamed up to bring some variety to the parts drawers.  This once $50 serial RFID reader kit is now $10 at Radio shack although it only comes with two tags.  Read more for additional details about the Serial RFID reader now on sale!<span id="more-491"></span></p>
<p style="text-align: left;">The Parallax Serial RFID reader is 5 volt TTL compatible signalling and requires two I/O pins.  One is output for the &#8220;enable&#8221; pin which when brought low, turns on the RFID reader.  The tag data comes in on another pin to be read by your 5V TTL compatible microcontroller.   If you are using the 5V Basic Stamp or the 3.3V (5V tolerant) Propeller, then this is just a snap-in add on, no additional hardware is required.  Other controllers may require additional voltage converters to drop the TTL signal down to a voltage compatible for your controller.</p>
<p style="text-align: left;">Also take note that this is a 125kHz tag reader, so reading your company&#8217;s HID RFID tag will more than likely not work unless you have a 125kHz tag.</p>
<p style="text-align: left;">You can find the full datasheet, sample code and schematics from <a href="http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/rfid/List/0/SortField/4/ProductID/114/Default.aspx" target="_blank">Parallax&#8217;s product web page here</a>.</p>
<p style="text-align: left;">If two tags just aren&#8217;t going to cut it, you can take a look at all of <a href="http://www.parallax.com/tabid/768/txtSearch/rfid+tag/List/0/SortField/4/Default.aspx" target="_blank">Parallax&#8217;s tags here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/06/14/parts-parallax-rfid-scanner-now-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site News: YourWarrantyIsVoid.com is now on Facebook!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/06/06/site-news-yourwarrantyisvoid-com-is-now-on-facebook/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/06/06/site-news-yourwarrantyisvoid-com-is-now-on-facebook/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 02:10:43 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=474</guid>
		<description><![CDATA[Well, after taking a bit of time to think about the site and all the hard work I&#8217;ve put into it, I decided to do some site work and created a Facebook page and a Twitter account so you can be informed of the next update. For facebook click here and for Twitter, follow @WarrantyIsVoid.  [...]]]></description>
			<content:encoded><![CDATA[<p>Well, after taking a bit of time to think about the site and all the hard work I&#8217;ve put into it, I decided to do some site work and created a Facebook page and a Twitter account so you can be informed of the next update.  For facebook <a href="http://www.facebook.com/pages/Your-Warranty-Is-Voidcom/129526987065560" target="_blank">click here</a> and for Twitter, follow <a href="http://www.twitter.com/warrantyisvoid" target="_blank">@WarrantyIsVoid</a>.  I&#8217;m still in the process of fleshing out both profiles so it might be a bit, but for now, I&#8217;m up and running.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/06/06/site-news-yourwarrantyisvoid-com-is-now-on-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lasers: Barcode scanner &#8220;gun&#8221; has real laser inside!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/05/18/lasers-barcode-scanner-gun-has-real-laser-inside/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/05/18/lasers-barcode-scanner-gun-has-real-laser-inside/#comments</comments>
		<pubDate>Tue, 18 May 2010 23:22:23 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Investigative Dissassembly]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=405</guid>
		<description><![CDATA[I know it&#8217;s been a while so here&#8217;s another post.  In this post, I&#8217;ll go over the hardware in this gun style barcode scanner that holds a real helium-neon laser tube with power supply! Although this post only covers the basic modding, there&#8217;s nothing to stop you from gutting the gun and using the HeNe [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter size-medium wp-image-406" title="Telxon LS-201" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0529-300x225.jpg" alt="Telxon LS-201" width="300" height="225" /></p>
<p>I know it&#8217;s been a while so here&#8217;s another post.  In this post, I&#8217;ll go over the hardware in this gun style barcode scanner that holds a real helium-neon laser tube with power supply! Although this post only covers the basic modding, there&#8217;s nothing to stop you from gutting the gun and using the HeNe tube for your own nefarious plan. <img src='http://www.yourwarrantyisvoid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-405"></span></p>
<p>Before we get started, I can not stress the importance of safety especially with working with lasers and high voltage.  The laser energy generated in this gun is powerful and can result in eye damage, even if only temporary.  Unlike laser diodes that use an LED type technology to generate a laser beam, the HeNe tube is a lot more powerful and also generates UV radiation as well as laser light making it doubly dangerous.   Please be cautious when working with this device, and pay special attention to the aperture where the laser light is emitted.  <span style="text-decoration: underline;"><strong>YOURWARRANTYISVOID.COM CANNOT BE HELD LIABLE FOR THE USE OR MISUSE OF THIS INFORMATION. IT IS PROVIDED ONLY AS AN EDUCATIONAL REFERENCE AND SHOULD BE TREATED AS SUCH.</strong></span></p>
<p>Now that the legal mess is out of the way&#8230;.</p>
<p>After the last post with a barcode scanner was posted, I got to thinking about two laser &#8220;gun&#8221; style barcode scanners I have in storage.  I acquired them at a flea market about two years ago for $20 each but didn&#8217;t have enough information or internet access to be able to use them.  Well times have changed and so has the tools and information available to me so now I was able to complete what I had set out to do.</p>
<p>In this post, I will cover how to convert the Telxon LS-201 laser barcode scanner into a functional laser pistol using all of the included hardware.  We will cover the hardware that&#8217;s in the scanner, as well as the connections needed to fire the high voltage power supply for the HeNe laser tube.  Since the hardware is already pretty functional, most of our work will center around the control board and not the receiver board, but more on that later.</p>
<h2><strong>Getting Started</strong></h2>
<p>You will need the following tools:</p>
<ul>
<li>Philips screwdriver</li>
<li>Razor cutter</li>
<li>Soldering Iron</li>
<li>12VDC power supply (at least 750mA)</li>
</ul>
<h2>Teardown</h2>
<p>We&#8217;ll start off with some pictures.</p>
<div id="attachment_407" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0528.jpg"><img class="size-medium wp-image-407" title="Aperture and receiver" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0528-300x225.jpg" alt="Aperture and receiver" width="300" height="225" /></a><p class="wp-caption-text">Aperture and receiver</p></div>
<p>This picture shows the aperture (top) and the receiver (front two windows).  When the laser is engaged, the laser is emitted from the aperture and is bounced off of a reflecting mirror (not shown) that produces a line which is then &#8220;read&#8221; by the receiver.  The laser dot&#8217;s position is controlled by the reflecting mirror using the receiver controller board and is then interpreted by the onboard logic to produce the codes to send.</p>
<div id="attachment_406" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0529.jpg"><img class="size-medium wp-image-406" title="Telxon LS-201" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0529-300x225.jpg" alt="Telxon LS-201" width="300" height="225" /></a><p class="wp-caption-text">Telxon LS-201</p></div>
<p>This side shows the holes that have the screws we will need to remove.</p>
<div id="attachment_408" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0527.jpg"><img class="size-medium wp-image-408" title="Opened up" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0527-300x225.jpg" alt="Opened up" width="300" height="225" /></a><p class="wp-caption-text">Opened up</p></div>
<p>After opening up the laser, you can make out the major components.  Reflector mirror and optics (upper right hand corner); Laser tube case (large black horizontal cylinder); laser HV power supply (copper box in handle); receiver board (top PCB); trigger board (lower PCB).</p>
<div id="attachment_409" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0539.jpg"><img class="size-medium wp-image-409" title="Receiver board" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0539-300x225.jpg" alt="Receiver board" width="300" height="225" /></a><p class="wp-caption-text">Receiver board</p></div>
<p>This is the receiver board (upper PCB0 and contains the &#8220;crab eyes&#8221; receivers that are used to see the laser as it scans the barcode. We won&#8217;t be using it so it will be removed.</p>
<div id="attachment_410" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0538.jpg"><img class="size-medium wp-image-410" title="trigger board" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0538-300x225.jpg" alt="trigger board" width="300" height="225" /></a><p class="wp-caption-text">trigger board</p></div>
<p>This is the trigger board.  All of our wiring will be done from this board.</p>
<div id="attachment_411" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0541.jpg"><img class="size-medium wp-image-411" title="optics" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0541-300x225.jpg" alt="optics" width="300" height="225" /></a><p class="wp-caption-text">optics</p></div>
<p>Here is the barcode scanner&#8217;s optics package.   The laser comes up through a lens in the back of the view, is bounced off of a stationary mirror in the red clip and then bounced off of the reflective mirror on the left hand side of the package.  You can see the servo&#8217;s cable that is used by the decoder board to generate the horizontal line. At this part of the build, wedge a piece of folded paper under the mirror to prevent it from moving.</p>
<div id="attachment_412" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0542.jpg"><img class="size-medium wp-image-412" title="top of optics package" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0542-300x225.jpg" alt="top of optics package" width="300" height="225" /></a><p class="wp-caption-text">top of optics package</p></div>
<p>This picture shows the lens and the mirror mentioned on the last picture. You can see the recess for the laser tube body and another mirror.  The indentations on the top and bottom of this view are used with large rubberized cushions to protect the laser assembly from drops, shock, etc.</p>
<div id="attachment_413" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0543.jpg"><img class="size-medium wp-image-413" title="laser tube" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0543-300x225.jpg" alt="laser tube" width="300" height="225" /></a><p class="wp-caption-text">laser tube</p></div>
<p>Here is the laser tube mounted in the bottom half of the protective mounts.  The emitter aperture for the laser tube is on the left, with a lens and a pair of mirrors.</p>
<div id="attachment_414" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0544.jpg"><img class="size-medium wp-image-414" title="laser tube detail" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0544-300x225.jpg" alt="laser tube detail" width="300" height="225" /></a><p class="wp-caption-text">laser tube detail</p></div>
<p>Here is a closeup of the detail on the laser tube.</p>
<div id="attachment_415" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0545.jpg"><img class="size-medium wp-image-415" title="laser tube detail 2" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0545-300x225.jpg" alt="laser tube detail 2" width="300" height="225" /></a><p class="wp-caption-text">laser tube detail 2</p></div>
<p>Another view of the laser tube with part number and the power rating.  This tube is a little bit more than 1 milliwatt.</p>
<div id="attachment_416" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0552.jpg"><img class="size-medium wp-image-416" title="Energized laser tube" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0552-300x225.jpg" alt="Energized laser tube" width="300" height="225" /></a><p class="wp-caption-text">Energized laser tube</p></div>
<p>In this view, the laser tube is energized and lasing.  The tube emits a pink/orange glow while energized.  The connection block on the lower left is ground which goes to the far side of the laser tube (right hand side in these photos).  The positive side of the laser tube is also the laser&#8217;s aperture.</p>
<div id="attachment_417" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0553.jpg"><img class="size-medium wp-image-417" title="reflector leakage" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0553-300x225.jpg" alt="reflector leakage" width="300" height="225" /></a><p class="wp-caption-text">reflector leakage</p></div>
<p>Helium Neon laser tubes consist of a fully reflective mirror and a partially reflective mirror.  The fully reflective mirror bounces the laser light back into the laser, while the partially reflective mirror is the laser aperture.  In this view, we can see that there is a bit of laser leakage from the fully reflective mirror which more than likely explains the low watt rating on the laser.</p>
<div id="attachment_418" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0554.jpg"><img class="size-medium wp-image-418" title="laser beam" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0554-300x225.jpg" alt="laser beam" width="300" height="225" /></a><p class="wp-caption-text">laser beam</p></div>
<p>This is the beam that is produced out of the laser&#8217;s aperture.</p>
<div id="attachment_419" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0535.jpg"><img class="size-medium wp-image-419" title="power supply wiring" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0535-300x225.jpg" alt="power supply wiring" width="300" height="225" /></a><p class="wp-caption-text">power supply wiring</p></div>
<p>The laser&#8217;s power supply has four wires coming out of it.  A white wire with yellow stripe (designated white/yellow), a white wire with black stripe (white/black), red and black. The large red wire is the High Voltage line for the laser tube while the thin black wire accompanying it is the ground wire.  In all testing from now on, the large red wire and thin black wire are not considered in any wiring diagrams as they are dedicated only to the laser power supply.</p>
<h2>Let the Modding Begin</h2>
<p>Before we begin hacking and slashing, let&#8217;s cover what needs to be done (in no particular order):</p>
<ul>
<li>We need to figure out how to apply power to the laser&#8217;s power supply.</li>
<li>We need to figure out how to get the trigger to apply power to the power supply</li>
<li>We need to modify the cable so that we can give the gun the proper  voltage.</li>
<li>We need to remove the now unneeded receiver board.</li>
<li>We need to find a way to make an indicator LED so we know the laser is producing laser light.</li>
</ul>
<h3>Reviewing the Power Supply&#8217;s wiring:</h3>
<p>Before we begin, let&#8217;s examine the power supply.  It had no identifying marks on it or manufacturer data on it so I really had to guess and get lucky.  Thankfully I was able to decipher it&#8217;s wiring method using the existing wiring on the trigger board and through some clever detective work.</p>
<p>As mentioned before, the power supply has five leads coming out of it.  After performing some testing and research, I was able to decode what the leads do and how to hook them up so that the tube is energized. Please remember that the thick red wire and the thin black wire that go to the HeNe Laser are not considered in this table.</p>
<p><strong>RED wire</strong>:  This is the main power lead for the power supply.  This must be +12vDC.</p>
<p><strong>BLACK wire:</strong> This is the ground lead for the power supply.</p>
<p><strong>WHITE WIRE / YELLOW STRIPE:</strong> This is the &#8220;trigger&#8221; lead.  If it receives voltage between 5vDC and 12vDC, the laser tube will energize.</p>
<p><strong>WHITE WIRE / BLACK STRIPE:</strong> This is an output lead and will be used for our LED indicator.</p>
<div id="attachment_421" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0532.jpg"><img class="size-medium wp-image-421" title="Test rig" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0532-300x225.jpg" alt="Test rig" width="300" height="225" /></a><p class="wp-caption-text">Test rig</p></div>
<p>Here is a pic of the test rig I used to figure out the wiring.  The rest of the components on that breadboard are not associated with this project.</p>
<p>Now that we have the the easy part figured out, it&#8217;s time to rework the trigger board. One thing of special note is that the trigger &#8220;button&#8221; is easily pried off.  I&#8217;m assuming that this was done on purpose as it would wear out quite quickly and an easy replacement method was needed.  Start off by cutting the ribbon cable from the trigger board and use a flat bladed mini screwdriver to gently pry off the trigger button</p>
<div id="attachment_422" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0555.jpg"><img class="size-medium wp-image-422" title="trigger board detail" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0555-300x225.jpg" alt="trigger board detail" width="300" height="225" /></a><p class="wp-caption-text">trigger board detail</p></div>
<p>Please note that we intend to reuse most of the components on the trigger board so be careful with your soldering iron.  With the trigger board separated from the  receiver board, start off by desoldering all the wires and resistors.</p>
<div id="attachment_423" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0556.jpg"><img class="size-medium wp-image-423" title="clean trigger board" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/03/DSCF0556-300x225.jpg" alt="clean trigger board" width="300" height="225" /></a><p class="wp-caption-text">clean trigger board</p></div>
<p>While you remove all the parts from the trigger board, also make sure that the holes left behind are clear.  I used a pneumatic solder sucker to remove excess solder and debris.  <a title="radio shack" href="http://www.radioshack.com/product/index.jsp?productId=2062745" target="_blank">This is the model I have, purchased from Radio Shack</a> Rather than reinventing the wheel, we will be modifying the existing header and connecting only the pins we need to get power to the HVAC power supply for the laser and to light our LED. Due to the way that the trigger board is wired, we will be swapping the black header block from the laser power supply with that from the coil-cord cable. In the below picture, I have already removed the connector block from the end of the coil cord that goes into the gun and cut all but the black and white wires.</p>
<div id="attachment_455" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0557.jpg"><img class="size-medium wp-image-455" title="coil cord cable prepped" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0557-300x225.jpg" alt="coil code cable prepped" width="300" height="225" /></a><p class="wp-caption-text">coil cord cable prepped</p></div>
<p>This image shows the cable with the black connector reinstalled. Remember, this is the laser&#8217;s black header connection. (Don&#8217;t worry, I&#8217;ll go over pinouts later)</p>
<div id="attachment_456" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0560.jpg"><img class="size-medium wp-image-456" title="power cable header connection" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0560-300x225.jpg" alt="power cable header connection" width="300" height="225" /></a><p class="wp-caption-text">power cable header connection</p></div>
<p>We then do the same thing with the laser&#8217;s HVAC power supply.</p>
<div id="attachment_457" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0563.jpg"><img class="size-medium wp-image-457" title="both headers ready" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0563-300x225.jpg" alt="both headers ready" width="300" height="225" /></a><p class="wp-caption-text">both headers ready</p></div>
<p>We then reattach the header pins to the trigger board and power it up. At this point, pushing the trigger button should fire the laser.   Next, we make the connection for our LED. In the below picture, the brown wire goes to the power supply ground, (black wire from the coil-cord) and the red wire (and the resistor) go to position 5 (from the right hand side of the trigger board).</p>
<div id="attachment_459" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0565.jpg"><img class="size-medium wp-image-459" title="Attaching the LED" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0565-300x225.jpg" alt="Attaching the LED" width="300" height="225" /></a><p class="wp-caption-text">Attaching the LED</p></div>
<p>Below is the diagram I used for wiring up both connector blocks:</p>
<div id="attachment_460" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/connector-block-diagram.jpg"><img class="size-medium wp-image-460" title="connector block diagram" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/connector-block-diagram-300x213.jpg" alt="connector block diagram" width="300" height="213" /></a><p class="wp-caption-text">connector block diagram</p></div>
<p>Now that all that is said and done, reassemble the laser, trigger board, HVAC power supply into the laser body and let&#8217;s test it again.  Depending on how accurate you were early on with the paper wedge and the servo mirror, it may take a couple of times to get the dot to point down the gun body.  Here is a pic with all the hardware installed and ready for the mating connector.  In this shot, you can see the LED that was wired in is working and that the laser tube is energized through a port in the housing an inch from my thumb:</p>
<p style="text-align: center;">
<div id="attachment_461" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0574.jpg"><img class="size-medium wp-image-461 " title="Reinstalled hardware" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0574-300x225.jpg" alt="Reinstalled hardware" width="300" height="225" /></a><p class="wp-caption-text">Reinstalled hardware</p></div>
<p style="text-align: left;">So with all the parts back in the gun case, let&#8217;s test it. Below is my test shot.</p>
<p style="text-align: left;">
<div id="attachment_462" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0577.jpg"><img class="size-medium wp-image-462" title="Test Firing" src="http://www.yourwarrantyisvoid.com/wp-content/uploads/2010/05/DSCF0577-300x225.jpg" alt="Test Firing" width="300" height="225" /></a><p class="wp-caption-text">Test Firing</p></div>
<h2>So, where do we go from here?</h2>
<p>Now that you know how to mod your laser scanner, the choice on what to do with it is completely up to your imagination.  Some ideas that come to mind:</p>
<ul>
<li> build a &#8220;target&#8221; to shoot at that toggles power to an appliance or light.</li>
<li>build several targets to make a shooting gallery in your own home.</li>
<li>Really cool presentation laser.  (Pens? Bah, I have a gun!)</li>
</ul>
<p>This information is also useful in case you actually find need of a helium neon laser in any of your hacks and considering that this project had a $0 parts cost aside from the purchase of the scanner to begin with, makes a great price point for starting into experimentation with lasers.   Do the sensible thing if you do want to start experimenting with lasers. Please invest in quality eye protection and always practice safety first!</p>
<p>I hope you&#8217;ve had fun reading this article and I look forward to your comments. If you build something cool with your laser, please let me know about it!</p>
<p>FIRESTORM_v1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/05/18/lasers-barcode-scanner-gun-has-real-laser-inside/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android:Sprint officially releases Android 2.1 for Samsung Moment!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/05/15/androidsprint-officially-releases-android-2-1-for-samsung-moment/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/05/15/androidsprint-officially-releases-android-2-1-for-samsung-moment/#comments</comments>
		<pubDate>Sat, 15 May 2010 07:10:43 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=447</guid>
		<description><![CDATA[While writing up the review for the Samsung Moment versus the Palm Pre, I happened to find out that Sprint has now released Android 2.1 (Eclair) for the Moment.  Guess now I have to start over again, but the up side is that this is a very significant update from Samsung&#8217;s initial release, Android 1.5. [...]]]></description>
			<content:encoded><![CDATA[<p>While writing up the review for the Samsung Moment versus the Palm Pre, I happened to find out that Sprint has now released Android 2.1 (Eclair) for the Moment.  Guess now I have to start over again, but the up side is that this is a very significant update from Samsung&#8217;s initial release, Android 1.5.</p>
<p>You can download the update from Sprint at <a title="Sprint's samsung moment update page" href="http://shop.sprint.com/en/software_downloads/pda_smartphone/samsung_moment.shtml" target="_blank">http://shop.sprint.com/en/software_downloads/pda_smartphone/samsung_moment.shtml</a></p>
<p>Please note: According to the instructions available at the link above, you will need to use a Windows PC to apply the update to your phone.  I will be posting a mirror shortly and it will show up in the &#8220;Download Files&#8221; page at the top of this page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/05/15/androidsprint-officially-releases-android-2-1-for-samsung-moment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web: Stupid HTML trick to get past content filters</title>
		<link>http://www.yourwarrantyisvoid.com/2010/05/02/web-stupid-html-trick-to-get-past-content-filters/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/05/02/web-stupid-html-trick-to-get-past-content-filters/#comments</comments>
		<pubDate>Sun, 02 May 2010 16:58:50 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[How-To's]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/?p=426</guid>
		<description><![CDATA[I know it&#8217;s been a while since I posted, and I do apologize.  Life has definitely not been kind to me in the regards of time however I have not forgotten anything. I have two major posts coming up hopefully within the next week, however here&#8217;s a quick article about a trick I discovered while [...]]]></description>
			<content:encoded><![CDATA[<p>I know it&#8217;s been a while since I posted, and I do apologize.  Life has definitely not been kind to me in the regards of time however I have not forgotten anything. I have two major posts coming up hopefully within the next week, however here&#8217;s a quick article about a trick I discovered while working on a project with a friend.  The project was to see if their content filter could be broken in their chat application andthrough a little bit of HTML know-how and some PHP code, I was able to crank out a generator to do just that.  Read more to find out the details.<span id="more-426"></span></p>
<h2>The Challenge:</h2>
<p>The trick was to figure out how to get certain &#8220;four letter words&#8221; past the chat app&#8217;s filter and into the main chat window without the word being munged by the system.  Most chat applications filter out obscene words through a string matching system and replaces it with something that is much less offensive, usually a series of asterisks.  The only thing I could use was straight ASCII characters, and I couldn&#8217;t use any &#8220;img src&#8221; HTML tags to do the dirty work (literally).</p>
<h2>The Analysis:</h2>
<p>All HTML code that is rendered is associated with something called a character set (or code page from the old MS-DOS days).  These character sets associate any character with a certain number (often called it&#8217;s ASCII value).  Although some characters are standard on all character sets, (like &#8220;a&#8221; = 97),  some control characters and characters above 256(decimal) change significantly.  In order to properly convey these control characters via the web, urlencoding was created and implemented as part of the HTML spec.  What this means is that every character in a character set can be represented in HTML through the use of the percent sign (%) modifier. The syntax for this was %(ASCII value in hexadecimal). The general idea was that if you typed in a russian name using symbols not found in the Latin alphabet, these symbols could be properly represented on the server side.</p>
<p>With that in mind, I examined the UTF-8 character set.  In this example, I&#8217;ll use the word &#8220;taco&#8221; to represent the offending word.</p>
<h2>How it&#8217;s done:</h2>
<p>The process for this is as follows:</p>
<ol>
<li>Find the ASCII value for each character in the word</li>
<li>Find the hexadecimal value for the ASCII value</li>
<li>Add &#8220;%&#8221; in front of that number</li>
<li>Insert a &#8220;null&#8221; character somewhere.</li>
</ol>
<p>For reference, you can use <a title="ASCII table" href="http://www.asciitable.com" target="_blank">this chart</a> which gives you the ASCII and the ASCII in hex values already</p>
<p>From the chart, we see the following information:</p>
<p>t = 116 (decimal) or 74(hex)</p>
<p>a=97(decimal) or 61(hex)</p>
<p>c= 99(decimal) or 63(hex)</p>
<p>o = 111(decimal) or 6f(hex)</p>
<p>Using this information, we can then create our string, inserting the % where needed.  %74 %61 %63 %6f</p>
<p>Only one item remains.  In order to spoof some of the more intelligent content filters, you need to put a null character in there somewhere. This throws off the content filter and makes it think that there are different characters represented.  For this, I used character 0B which does not have latin equivalent and is a control code that does not render in HTML.  I used 0B because 08 rendered as a tab in testing.</p>
<p>Knowing this, I inserted the null character between the urlencoded &#8220;a&#8221; and the urlencoded &#8220;c&#8221;: %74 %61 %0B %63 %6F</p>
<h2>Testing it out:</h2>
<p>All that is needed to test it is to copy and paste the above string into any chat application and hit send. You will need to remove the spaces from between the characters otherwise your application will treat them as renderable characters as well.  If it works, you&#8217;ll see the word &#8220;taco&#8221; in your window.  Now you know how to get past content filters.  If you are in the business of building content filters, now you have a new strategy for blocking people abusing them.</p>
<h2>Don&#8217;t be a prick!</h2>
<p>I posted this information with the hopes that people may find it useful, not so that script kiddies can run around and make asses of themselves.  Be smart about how you use this information and last but not least, DON&#8217;T BE A PRICK!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/05/02/web-stupid-html-trick-to-get-past-content-filters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site News: I have a new toy!</title>
		<link>http://www.yourwarrantyisvoid.com/2010/04/01/site-news-i-have-a-new-toy/</link>
		<comments>http://www.yourwarrantyisvoid.com/2010/04/01/site-news-i-have-a-new-toy/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 16:06:55 +0000</pubDate>
		<dc:creator>firestorm_v1</dc:creator>
				<category><![CDATA[Embedded devices]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Product Reviews]]></category>
		<category><![CDATA[Site News]]></category>

		<guid isPermaLink="false">http://www.yourwarrantyisvoid.com/2010/04/01/site-news-i-have-a-new-toy/</guid>
		<description><![CDATA[Well my life has been busy as all get out and I do have a new post in the works however I&#8217;m taking a quick break because I have a new toy that makes for a far better story. I have recently gotten my hands on a new Samsung Moment on the Sprint network. Within [...]]]></description>
			<content:encoded><![CDATA[<p>Well my life has been busy as all get out and I do have a new post in the works however I&#8217;m taking a quick break because I have a new toy that makes for a far better story.</p>
<p>I have recently gotten my hands on a new Samsung Moment on the Sprint network.  Within the next few days, I will post all the gory details from this Android n00b and will be offering a comparison against the other smartphone I have, the Palm Pre.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.yourwarrantyisvoid.com/2010/04/01/site-news-i-have-a-new-toy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
