<?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>Hungry Hacker &#187; Featured</title>
	<atom:link href="http://www.hungryhacker.com/topics/features/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hungryhacker.com</link>
	<description>The Hungry Hacker&#039;s Explanation of Everything</description>
	<lastBuildDate>Mon, 05 Sep 2011 03:44:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>S/PDIF Output on Asus K8S-LA &#8220;Salmon&#8221;</title>
		<link>http://www.hungryhacker.com/hw/spdif-output-on-asus-k8s-la-salmon/</link>
		<comments>http://www.hungryhacker.com/hw/spdif-output-on-asus-k8s-la-salmon/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 19:46:09 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[pcm]]></category>
		<category><![CDATA[soldering]]></category>

		<guid isPermaLink="false">http://test.hungryhacker.com/?p=29</guid>
		<description><![CDATA[Ever since I got a PlayStation 2 and found the joy of games that support Pro Logic II, I&#8217;ve had a thing for surround sound. It&#8217;s like this perverse fixation that gives me a boner every time &#8211; you haven&#8217;t played games like Need for Speed: Underground 2 or Ace Combat 5 until you&#8217;ve played them with Pro Logic II. Seriously, the effect is that dramatic.
The PS3 is even better because most games support Dolby Digital 5.1 native &#8211; the PS2 lacked the processing power to generate this signal dynamically, ...]]></description>
			<content:encoded><![CDATA[<p>Ever since I got a PlayStation 2 and found the joy of games that support Pro Logic II, I&#8217;ve had a thing for surround sound. It&#8217;s like this perverse fixation that gives me a boner every time &#8211; you haven&#8217;t played games like <a href="http://fwaggle.org/lnk/nfsu2">Need for Speed: Underground 2</a> or <a href="http://fwaggle.org/lnk/acecombat5">Ace Combat 5</a> until you&#8217;ve played them with Pro Logic II. Seriously, the effect is that dramatic.</p>
<p>The PS3 is even better because most games support Dolby Digital 5.1 native &#8211; the PS2 lacked the processing power to generate this signal dynamically, only pre-rendered cut-scenes had Dolby Digital.</p>
<p>I started out modest &#8211; an old &#8220;Paramount&#8221; Pro Logic decoder, which I eventually traded in for a Yamaha 5.1 receiver. This thing is great &#8211; it&#8217;ll fill up a huge room with modest speakers no trouble at all, and it&#8217;s been in our &#8220;great room&#8221; since we moved out here. Unfortunately, our &#8220;nice TV&#8221; broke permanently, and we shut off our satellite TV in favor of streaming NetFlix&#8230; meaning my beautiful receiver was relegated to my younger brothers in law playing PS2 on it.</p>
<p>This morning I decided enough of that, I&#8217;d bring it up here and use it in our bedroom. Story time over: I decided to see if I could hack digital output from my HP Pavilion a1213w desktop. I checked the motherboard, it&#8217;s an Asus K8S-LA &#8220;Salmon&#8221; board&#8230; bit of a piece of shit really, but it does the job.</p>
<p><a class="flickr-image alignleft" title="S/PDIF on Asus K8S-LA" href="http://www.flickr.com/photos/fwaggle/4411082135/"><img src="http://farm5.static.flickr.com/4034/4411082135_c568a9d310_t.jpg" alt="S/PDIF on Asus K8S-LA" /></a>It sports a RealTek (ugh!) on-board audio with 5.1 output. Awesome &#8211; but no digital output in sight. Searching for the manual, I found an S/PDIF output on the board which requires a <a href="http://fwaggle.org/lnk/spdif">daughter-board to give you a coaxial/ToSLink output</a>. Check eBay &#8211; ~$20&#8230; fffffuuuuuu that.</p>
<p>A quick Google search shows plenty of <a href="http://www.frontx.com/pro/p1062_030.html">other folks hacking their own</a> so I decided to give it a shot. Ratting through my box of parts, I came up with a 4-pin CD-ROM-Audio cable from years gone past and cut it apart. I also dug out an RCA cable (I went with Coaxial for the PC since my PS3 will be using the only available ToSLink socket on the receiver) and cut it up too.</p>
<p><a class="flickr-image alignright" title="S/PDIF on Asus K8S-LA" href="http://www.flickr.com/photos/fwaggle/4411847904/"><img src="http://farm3.static.flickr.com/2702/4411847904_e316e404cc_t.jpg" alt="S/PDIF on Asus K8S-LA" /></a>A simple hack really. Pins 1+2 are ground and digital-out respectively, with the third pin being +5vdc for powering the bits for ToSLink communication&#8230; irrelevant for my purposes. I carefully cut the connector to a little larger than the three-pin connector, then used a Dremel with a sanding wheel to smooth it to a perfect three-pin shape. I pulled the unused extra wire out, since I didn&#8217;t want to accidentally short my mobo&#8217;s +5vdc. I had the black wire on the GND pin and the white on the S/PDIF pin (see diagram at left) and it was a simple matter of soldering colors to colors to connect the RCA. Route it out the back of my PC and into my receiver.</p>
<p><a class="flickr-image alignleft" title="lolrealtek" href="http://www.flickr.com/photos/fwaggle/4411874930/"><img src="http://farm3.static.flickr.com/2724/4411874930_d51acd17c7_t.jpg" alt="lolrealtek" /></a>Digging through the RealTek control panel&#8217;s &#8220;Multi-Channel Sound Manager&#8221;, the instant I clicked &#8220;Enable Digital Output&#8221; the PCM light came on my receiver and I&#8217;m good to go. Turn off all the DSP shit the kids had turned on, and my iTunes output is so manly I need chest hair supplements to keep up.</p>
<p><strong>Update:</strong> Okay so apparently my RealTek card can&#8217;t output Dolby Pro Logic II (or even anything remotely close to surround sound) over S/PDIF &#8211; PCM is it (and PCM is limited to two channels). According to <a href="http://forums.overclockers.com.au/showthread.php?t=418833">a thread on Overclockers</a>, most sound cards are limited like this&#8230; if you want surround sound in games, you&#8217;re stuck using the analog outputs and the 6ch input on my receiver.</p>
<p>So I scrounged up some 3.5mm to RCA cables, and hooked it up&#8230; and low and behold I have full surround on games like <a href="http://fwaggle.org/lnk/l4d">Left4Dead</a>. I press the 6ch button on my remote, and I&#8217;m switching back to digital output, so I can take advantage of my receiver&#8217;s vastly superior DAC for music. Not optimal, but the best I can probably do without a heinously expensive Pro Logic II capable sound card. <img src='http://www.hungryhacker.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hungryhacker.com/hw/spdif-output-on-asus-k8s-la-salmon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto: JTAG interface on a Dish 3700 Receiver</title>
		<link>http://www.hungryhacker.com/hw/jtag-dish-3700-receiver/</link>
		<comments>http://www.hungryhacker.com/hw/jtag-dish-3700-receiver/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 17:55:17 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[dish]]></category>
		<category><![CDATA[dss]]></category>
		<category><![CDATA[soldering]]></category>

		<guid isPermaLink="false">http://test.hungryhacker.com/?p=32</guid>
		<description><![CDATA[I picked up this receiver in a box of stuff at a yard sale for $2.  We have DirecTV service here, so I was left wondering what the hell I  could do with such an archaic device. A quick search shows up that  apparently I can&#8217;t get the card activated any more. From dabbling with various embedded environments, I was  familiar with a JTAG  interface and I learned that this box indeed has one.
So what can we do with this? I&#8217;m led to believe that ...]]></description>
			<content:encoded><![CDATA[<p>I picked up this receiver in a box of stuff at a yard sale for $2.  We have DirecTV service here, so I was left wondering what the hell I  could do with such an archaic device. A quick search shows up that  apparently I can&#8217;t get the card activated any more. From dabbling with various embedded environments, I was  familiar with a <a href="http://en.wikipedia.org/wiki/JTAG">JTAG  interface</a> and I learned that this box indeed has one.</p>
<p>So what can we do with this? I&#8217;m led to believe that Dish hackers  use this interface to take a snapshot of the firmware on the dish and  replace parts of it as they need to. We&#8217;ll go into no such nonsense &#8211;  under fear of the DMCA &#8211; however I don&#8217;t believe that discussion of or  probing the JTAG interface falls under such legislation, unless I  receive a letter from a company involved. So here we go:</p>
<h2>You will need:</h2>
<ul>
<li>5 100ohm resistors, at least 1/4 watt.</li>
<li>Category 5, or some other kind of signal cable</li>
<li>A female DB-25 connector</li>
<li>Some software to read the JTAG interface on the parallel port</li>
</ul>
<p>You will also obviously need a soldering iron and some proficiency  in using it. We&#8217;re not dealing with any SMT devices or anything here,  the pin holes are quite large and should pose little difficulty for  anyone that&#8217;s ever soldered anything before in their life. You will want  your cable long enough to reach from the box to the back of your PC. In  my case, I simply chickened out and cut up a printer cable, but  OrganizedChaos used Cat5 with success.</p>
<p>It became obvious that I would have been able to access the JTAG  port from outside the case, without even opening it &#8211; I assume this is  so that Dish can test and possibly program the boxes before they leave  the factory. The JTAG pins are pins 184-190 on the CPU (as can be  referenced from the <a href="http://www.datasheetarchive.com/search.php?q=STI5500">datasheet  found at Datasheet Archive</a>). The traces are absolutely tiny, so it  takes some serious time to follow them to the correct pads &#8211; an ohmeter  with tiny probes speeds things up considerably.</p>
<p>In our case, we won&#8217;t be powering the JTAG interface &#8211; we&#8217;ll  simply plug the unit in, leave it off, and let the standby power supply  the juice necessary for our probing. I imagine this would be much more  reliable than trying to supply 3.3v from our parallel port.</p>
<p>The first thing I did was source 5 100ohm resistors. I managed to  find two in an ATX power supply, and another four off the board of a  television set. I needed the extra one because I broke one swinging it  around on the PCB. I straightened the legs out, and soldered one  resistor into each of the pads that require them.</p>
<p>In the diagram below, I&#8217;m labeling each of the pins going down in  two pairs from what I&#8217;m assuming is the &#8220;#1 pin&#8221; (the one closest to the  angle that&#8217;s been chopped off the box on the PBC). This pin layout is  not the standard 20-pin JTAG! I was probably pretty lucky I traced the  tracks and didn&#8217;t just assume it was standard, because I&#8217;m sure I&#8217;d  either have killed my printer port or the dish box (the former being the  bigger deal) if I&#8217;d just blindly hooked it up. By the way, if you check  out the full-size photo to the right, the pins are highlighted in  mouseover notes for your information.</p>
<p><a href="http://www.flickr.com/photos/fwaggle/1010860186/"><img class="alignleft" src="http://farm2.static.flickr.com/1125/1010860186_8bdc0e5f33_m.jpg" alt="" width="240" height="180" /></a><code>N/C	DB25<br />
N/C	DB24<br />
N/C	DB23<br />
N/C	DB22<br />
DB02	DB21<br />
DB03	DB20<br />
DB04	DB19<br />
DB13	N/C<br />
N/C	N/C<br />
DB05	N/C</code></p>
<p>You will notice that pins 19-25 are connected to the grounded pins  on the JTAG interface &#8211; this probably isn&#8217;t necessary, one would  probably suffice (I&#8217;m pretty sure pins 18-25 are all connected at your  PC&#8217;s parallel port), I just got frisky with the soldering iron. Pins 2,  3, 4, 5 and 13 are where the action is, so you&#8217;ll want to make sure the  connections through the resistors are pretty good. OC put his resistors  on the DB25 connector, I put mine on the board, either way&#8230; doesn&#8217;t  matter.</p>
<p><a href="http://www.flickr.com/photos/fwaggle/1012431334/"><img class="alignright" src="http://farm2.static.flickr.com/1228/1012431334_7af1eb920c_m.jpg" alt="" width="240" height="167" /></a>Once everything&#8217;s soldered up, plug the DB25 cable into your PC,  then plug the box in but don&#8217;t turn it on. You&#8217;ll need some software &#8211;  after googling around I found some software called jKeys which seems to work pretty good. I should point out that it&#8217;s often used  for theft of service and I&#8217;d really rather steer clear of that on this  website &#8211; do not email me about trying to steal Dish Network TV.</p>
<p>Once you point your software at the parallel port, you should be  able to find out all kinds of nifty information about the device. I&#8217;m  led to believe JTAG supports in-circuit debugging&#8230; we&#8217;re actually  toying with the idea of playing around with a Dish x700 &#8220;hello world&#8221;  application, because looking at the datasheets for the STi5500 CPU the  OSD modules seem pretty trivial to operate.</p>
<p>But for now, we can experiment with all kinds of neat functions  that JTAG allows. Happy hacking!</p>
<h2>Update: 2007-08-11</h2>
<p>I&#8217;ve gone ahead and hosted Jkeys anyway, but I want to make it  clear that I don&#8217;t support theft of service. The reason I&#8217;ve included it  is because I haven&#8217;t yet found another (free) way of programming the  flash after you build something using the STi5500 toolkit. So far I&#8217;ve  not yet managed to even so much as get the LED to flash, but I did  manage to resurrect the box after I thought I&#8217;d bricked it.</p>
<p>I&#8217;m also including a nifty program called JTango.  It&#8217;s a JTAG program again, but it&#8217;s used for in-circuit debugging. At  least, that&#8217;s what I gather, I couldn&#8217;t make it work with Windows XP.  I&#8217;ve included the driver that&#8217;s allegedly supposed to fix the  &#8220;Privileged Instruction&#8221; error, but it didn&#8217;t work for me. If you figure  it out, please do let me know.</p>
<p>Now it&#8217;s time to hit up more documentation and see if I can at  least make the freakin&#8217; box flash it&#8217;s LED or something&#8230; at least  something to tell me it&#8217;s working. <img src='http://www.hungryhacker.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.hungryhacker.com/hw/jtag-dish-3700-receiver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing a broken USB Graphics Tablet</title>
		<link>http://www.hungryhacker.com/hw/fixing-a-broken-usb-graphics-tablet/</link>
		<comments>http://www.hungryhacker.com/hw/fixing-a-broken-usb-graphics-tablet/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 11:01:29 +0000</pubDate>
		<dc:creator>fwaggle</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[soldering]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://test.hungryhacker.com/?p=35</guid>
		<description><![CDATA[I picked up my Jam Studio graphics  tablet a good few years back for the price of $10. Make no mistake  about it, these are a low-priced budget tablet, and they perform about  that too. Anyway, a while ago our pet rats got a hold of the cord, and  chewed it in two pieces. I threw away the end, but I tossed the tablet  into a box and kept it for a few years and I finally dug it out  yesterday.
I tore it apart, ...]]></description>
			<content:encoded><![CDATA[<p>I picked up my Jam Studio <a href="http://hungryhacker.com/exit.html?ebaysearch=graphics+tablet">graphics  tablet</a> a good few years back for the price of $10. Make no mistake  about it, these are a low-priced budget tablet, and they perform about  that too. Anyway, a while ago our pet rats got a hold of the cord, and  chewed it in two pieces. I threw away the end, but I tossed the tablet  into a box and kept it for a few years and I finally dug it out  yesterday.</p>
<p>I tore it apart, and soon realized that there was way too many  wires, and none of them were standard color codes. This is because it  has a weird dongle that you can attach a DB-9 serial plug onto instead  of a USB. Next I noticed the Cypress Semiconductor USB controller  sitting on the board. I managed to track down the data sheet to it, and  enumerate which pins were which. Tracing these back to the cable I get:</p>
<p><a href="http://www.flickr.com/photos/fwaggle/256780436/"><img class="alignright" src="http://farm1.static.flickr.com/108/256780436_59d99689cd_m.jpg" alt="" width="240" height="180" /></a></p>
<table>
<tbody>
<tr>
<th>Pin</th>
<th>USB Wire</th>
<th>Original Wire</th>
<th>Function</th>
</tr>
<tr>
<td>E13</td>
<td>Black</td>
<td>Black</td>
<td>Ground</td>
</tr>
<tr>
<td>E16</td>
<td>Green</td>
<td>Orange</td>
<td>Data +</td>
</tr>
<tr>
<td>E18</td>
<td>White</td>
<td>Green</td>
<td>Data -</td>
</tr>
<tr>
<td>E21</td>
<td>Red</td>
<td>Lt Grey</td>
<td>+5VDC</td>
</tr>
</tbody>
</table>
<p>If you want, you can tie E17 to the shield &#8211; or E17 to USB black,  and E13 to the shield of the USB cable (the original cable is unshielded  however).</p>
<h2>Installing the Drivers on Windows XP</h2>
<p>This part sucks &#8211; it&#8217;s not very intuitive at all. I&#8217;ve found it  easiest to install the driver prior to plugging in the tablet, otherwise  you have to do some juggling to get it to ever function. Instructions:</p>
<ul>
<li>Download <a href="http://hungryhacker.com/articles/haxedhardware/misc/jamstudio_tablet/jamstudio-tablet-win95-98-me-2000-xp.zip">jamstudio-tablet-win95-98-me-2000-xp.zip</a> and extract it to a folder someplace. This mightn&#8217;t be necessary, but I  did it anyway so I could burn the driver to a CD just in case.</li>
<li>Run setup.exe from inside the driver folder, and follow the  instructions. This will install the driver (but not attach it to the  hardware in Windows XP) and the control panel applet.</li>
<li>Plug your tablet in. Windows XP will detect the tablet, but it  won&#8217;t function yet.</li>
<li>Under Device Manager (Right-click on My Computer, choose  properties, Hardware tab, then choose Device Manager), look for the two  devices that represent the tablet. They should be something like USB  Human Interface Device and HID-compliant device. Open up HID-compliant  device.</li>
<li>Under the Driver tab, choose Update Driver. Tell it you want to  select the driver yourself, and eventually you&#8217;ll convince Windows you  really do want to select the driver yourself. By this time, it should  pop up the list of similar devices, one of which should be KBGear Jam  Studio Digitizer. Select it, then dismiss all dialogs.</li>
<li>On both my computers, the digitizer now worked for positioning  but didn&#8217;t reckognize mouse clicks from the pen touch. If your&#8217;s does  this too, simply open the control panel applet and toggle the settings  to heavier then back to light. Experiment with these settings.</li>
</ul>
<p>So there you have it. A cheap ass tablet, salvaged thanks to the  fact that the semiconductor company who made it&#8217;s controller saw fit to  put the information on the Internet for all to see.</p>
<h2>Links</h2>
<ul>
<li>Download <a href="http://hungryhacker.com/articles/haxedhardware/misc/jamstudio_tablet/jamstudio-tablet-win95-98-me-2000-xp.zip">KBGear  JamStudio Tablet Driver</a> for Windows 95/98/ME/2K/XP.</li>
<li>Download the <a href="http://www.delcom-eng.com/downloads/CY7C63000A.pdf#search=%22cy7c63001a%22">Datasheet  for CY7C63001Am USB controller</a>.</li>
<li>Search for a decent <a href="http://hungryhacker.com/exit.html?ebaysearch=graphics+tablet">Graphics  Tablet</a> on eBay.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hungryhacker.com/hw/fixing-a-broken-usb-graphics-tablet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

