<?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>twam.info &#187; Hardware</title>
	<atom:link href="http://www.twam.info/category/hardware/feed" rel="self" type="application/rss+xml" />
	<link>http://www.twam.info</link>
	<description>My computer, physics, electronics &#38; photography blog</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:49:27 +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>DYMO Rhino 4200 Beschriftungsgerät</title>
		<link>http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat</link>
		<comments>http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat#comments</comments>
		<pubDate>Wed, 18 Jan 2012 20:28:23 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=2228</guid>
		<description><![CDATA[Vor ein paar Tagen habe ich bei Reichelt elektronik das Beschriftungsgerät Rhino 4200 von DYMO entdeckt. Statt 89,95 € kostet es im Angebot in der Promotionszeit bis zum 30. März 2012 nur 79,95 € und es gibt noch Lithium-Ionen-Akku und Netzteil gratis dazu, so dass man keine sechs Mignon Batterien benötigt. Da ich in nächster [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_2240" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/attachment/img_4759" rel="attachment wp-att-2240"><img src="http://www.twam.info/wp-content/uploads/2012/01/IMG_4759-210x140.jpg" alt="Rhino 4200" title="Rhino 4200" width="210" height="140" class="size-medium wp-image-2240" /></a><p class="wp-caption-text">Rhino 4200</p></div>Vor ein paar Tagen habe ich bei <a href="http://www.reichelt.de">Reichelt elektronik</a> das Beschriftungsgerät <a href="http://global.dymo.com/deDE/Products/RHINO_4200.html">Rhino 4200</a> von <a href="http://global.dymo.com/deDE/Home/default.html">DYMO</a> entdeckt. Statt 89,95 € kostet es im <a href="http://www.reichelt.de/DYMO-Beschriftungsgeraete/DYMO-RHINO-4200P/index.html?ACTION=3&#038;GROUPID=4846&#038;ARTICLE=116286&#038;SHOW=1&#038;START=0&#038;OFFSET=16">Angebot</a> in der Promotionszeit bis zum 30. März 2012 nur 79,95 € und es gibt noch Lithium-Ionen-Akku und Netzteil gratis dazu, so dass man keine sechs <a href="http://de.wikipedia.org/wiki/Mignon_(Batterie)">Mignon Batterien</a> benötigt. Da ich in nächster Zeit einige Kabel verlegen und aufräumen möchte, war ich sehr angetan von der Möglichkeit Schrumpfschlauch zu bedrucken und auch spezielle Modi für Kabelfahnen und Schellen zu haben und habe gleich zugeschlagen.</p>
<p>Der Ersteindruck ist gut: Ein großes Display und die <a href="http://de.wikipedia.org/wiki/QWERTZ-Tastaturbelegung">QWERTZ</a>-Tastatur machen die Eingabe sehr komfortabel. <span id="more-2228"></span>Beim Einlegen des mitgelieferten 12mm Vinyl Bandes fragt mich das Gerät automatisch nach der Bandbreite und nach Auswahl der 12mm kann es losgehen. Ich versuche mich an einem &#8220;HALLO&#8221; zusammen mit einem Code 39 Barcode. Der erste Ausdruck überzeugt mich aber nicht wirklich. Ein weißer Strich zieht sich durch die Mitte und mit dem Finger kann man den Aufdruck etwas verwischen. Da es draußen relativ kalt war gebe ich dem Drucker ein paar Minuten Aufwärmzeit und probiere es erneut mit einem &#8220;TWAM.INFO&#8221;. Diesmal sieht es deutlich besser aus, wenn auch noch nicht zu 100% perfekt. Als letzter Test mit dem Vinyl Band probiere ich eines der technischen Symbole aus, die meines Erachtens sehr praktisch für die Dokumentation von Kabeln sind. Das <a href="http://de.wikipedia.org/w/index.php?title=Datei:High_voltage_warning.svg">&#8220;Vorsicht Hochspannung&#8221;-Symbol</a> lässt sich wunderbar erkennen, lediglich die Auflösung könnte etwas weniger verpixelt sein, aber vermutlich gibt das Druckwerk nicht mehr her.</p>
<div id="attachment_2239" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/attachment/img_4757" rel="attachment wp-att-2239"><img src="http://www.twam.info/wp-content/uploads/2012/01/IMG_4757-640x426.jpg" alt="Barcode und Symbol Test" title="Barcode und Symbol Test" width="640" height="426" class="size-large wp-image-2239" /></a><p class="wp-caption-text">Barcode und Symbol Test</p></div>
<p><div id="attachment_2237" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/attachment/img_4754" rel="attachment wp-att-2237"><img src="http://www.twam.info/wp-content/uploads/2012/01/IMG_4754-210x139.jpg" alt="Schrumpfschlauch" title="Schrumpfschlauch" width="210" height="139" class="size-medium wp-image-2237" /></a><p class="wp-caption-text">Schrumpfschlauch</p></div>Dann geht es weiter mit dem <a href="http://de.wikipedia.org/wiki/Schrumpfschlauch">Schrumpfschlauch</a>. Ich hab mir ein 19mm Band mitbestellt, welches für Kabeldurchmesser von 12.0-5.0 mm gedacht ist und ein Schrumpfverhältnis von 3:1 hat. Da <a href="http://fabian-amann.com/">Fabi</a> gerade da ist, drucke ich ihm ein &#8220;Fabi&#8221; auf den Schlauch. Es funktioniert, aber seltsamerweise kommt das Farbband mit aus dem Drucker heraus, der normalerweise in der Kartusche bleibt. Ich nehme die Kartusche heraus und man sieht hier irgendwas schief gelaufen ist: Das Farbband ist nicht richtig eingefädelt und nicht mit der &#8220;Aufräumrolle&#8221; verbunden. Ich werde den Schrumpfschlauch reklamieren und kann somit leider keine weiteren Tests damit machen. Dabei war genau diese Möglichkeit das, was mich am Drucker am meisten interessiert hat. Um den Schrumpfschlauch am Kabel zu testen, stecke ich ein <a href="http://de.wikipedia.org/wiki/Koaxialkabel">RG58</a> Kabel durch meinen Testdruck und bearbeite es mit dem Heißluftfön. Heraus kommt ein richtig schöne Kabelbeschriftung! Ich freue mich schon auf den hoffentlich einwandfreien Ersatzschrumpfschlauch!</p>
<div id="attachment_2238" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/attachment/img_4755" rel="attachment wp-att-2238"><img src="http://www.twam.info/wp-content/uploads/2012/01/IMG_4755-640x426.jpg" alt="Schrumpfschlauch" title="Schrumpfschlauch" width="640" height="426" class="size-large wp-image-2238" /></a><p class="wp-caption-text">Schrumpfschlauch</p></div>
<p>Als Alternative zum Schrumpfschlauch kann man Kabel auch mit der &#8220;Wire/Cable&#8221; oder &#8220;Flag&#8221; Funktion beschriften. Das Gerät fragt bei der &#8220;Wire/Cable&#8221; Funktion nach dem Kabeldurchmesser und man kann einstellen, in welche Richtung man beschriften möchte. Je nach Textlänge und Bandbreite macht die eine oder andere Richtung mehr Sinn. Ich habe mit einem 19mm Vinyl beide Richtungen ausprobiert. Bei Längsrichtung wird der Text schön groß und man ist in der Länge ziemlich unbeschränkt, allerdings reicht das 19mm Band schon bei meinem 5.8mm Kabel nicht ganz gerade. In der anderen Richtung ist der Text deutlich kleiner und man ist in der Textlänge auch beschränkt. Dafür wird das Kabel lang genug gedruckt, so das man es etwa eineinhalb mal drumwickeln kann. Die &#8220;Flag&#8221;-Funktion fragt nur nach einer Größe zwischen XS und XL und Fahnenlänge. Das Ergebnis hier ist relativ unspektakulär und hätte mit jedem anderen Beschriftungsgerät genauso ausgesehen.</p>
<div id="attachment_2241" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/attachment/img_4760" rel="attachment wp-att-2241"><img src="http://www.twam.info/wp-content/uploads/2012/01/IMG_4760-640x426.jpg" alt="Cable/Wire und Flag Funktion" title="Cable/Wire und Flag Funktion" width="640" height="426" class="size-large wp-image-2241" /></a><p class="wp-caption-text">Cable/Wire und Flag Funktion</p></div>
<p>Weiteres Highlight ist die &#8220;Module&#8221; und &#8220;Breaker&#8221; Funktion um zum Beispiel Patchpanels zu beschriften. Das werde ich allerdings erst bei Gelegenheit testen, wenn ich mein Patchpanel dann beschriften darf.</p>
<p>Für meine Sortierkästen habe ich auch noch ein Non-Adhesive Band mitbestellt. Leider funktioniert dieses auch nicht. Aus mir nicht ersichtlichen Gründen wird das Band nicht transportiert und der Drucker druckt somit auf der Stelle und kein Band kommt heraus.</p>
<p>Last but not least, muss der Akku auch mal aufgeladen werden. Hierbei gibt es bei mir ein dickes Minus für das Gerät. Steckt man das (im Angebot) mitgelieferte Netzteil ein und dem Lithium-Ionen-Akku zu laden fiept das Gerät sehr störend. Auch wenn dieses Fiepen beim normalen Arbeiten ohne Netzteil nicht auftritt, ist es doch sehr störend wenn es wieder aufgeladen werden muss. Hier sollte DYMO dringend nachbessern.</p>
<p><strong>Fazit</strong></p>
<p>Für den Preis hat der DYMO Rhino 4200 einiges zu bieten. Lediglich das Pfeifen beim Laden des Akkus und 2 nicht funktionierende Bänder (von insgesamt fünf Stück) trüben den Eindruck.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/dymo-rhino-4200-beschriftungsgerat/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I²C via USB on OS X using FT232H</title>
		<link>http://www.twam.info/hardware/i%c2%b2c-via-usb-on-os-x-using-ft232h</link>
		<comments>http://www.twam.info/hardware/i%c2%b2c-via-usb-on-os-x-using-ft232h#comments</comments>
		<pubDate>Sun, 23 Oct 2011 12:58:22 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[I²C]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=2174</guid>
		<description><![CDATA[Many sensor chips use the I²C bus, sometimes called TWI or SMBus, for communication. Most microcontrollers support I²C also natively and if not I can be implemented easily in software. Connecting I²C devices to a PC is much more difficult as soldering them onto the mainboard (where a SMBus can be found usually) is not [...]]]></description>
			<content:encoded><![CDATA[<p>Many sensor chips use the <a href="http://en.wikipedia.org/wiki/I%C2%B2C">I²C</a> bus, sometimes called TWI or SMBus, for communication. Most <a href="http://en.wikipedia.org/wiki/Microcontroller">microcontrollers</a> support I²C also natively and if not I can be implemented easily in software. Connecting I²C devices to a PC is much more difficult as soldering them onto the mainboard (where a <a href="http://en.wikipedia.org/wiki/System_Management_Bus">SMBus</a> can be found usually) is not a viable solution. Up to now I usually used a <a href="http://www.atmel.com/products/avr/default.asp?category_id=163&#038;family_id=607">Atmel AVR microcontroller</a> in teamwork with a <a href="http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232R.pdf">FT232R</a> (a standard USB&harr;RS232 converter).</p>
<p>The <a href="http://en.wikipedia.org/wiki/USB">USB</a> 2.0 successor of the FT232R, the <a href="http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT232H.pdf">FT232H</a>, has a Multi-Protocol Synchronous Serial Engine (MPSSE) included which is designed to support serial interfaces such as I²C, <a href="http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a> or <a href="http://en.wikipedia.org/wiki/Jtag">JTAG</a> at speeds up to 30 Mbps. This sounded to me as an interesting option to test I²C and SPI devices directly from my PC.<span id="more-2174"></span></p>
<p><a href="http://www.twam.info/hardware/i%c2%b2c-via-usb-on-os-x-using-ft232h/attachment/schematic" rel="attachment wp-att-2181"><img src="http://www.twam.info/wp-content/uploads/2011/10/schematic-210x173.png" alt="" title="Schematic" width="210" height="173" class="alignright size-medium wp-image-2181" /></a> In this post, I want to describe how I connected the FT232H using a <a href="http://www.ftdichip.com/Support/Documents/DataSheets/Modules/DS_UM232H.pdf">UM232H</a> development module to a <a href="http://datasheets.maxim-ic.com/en/ds/LM75.pdf">LM75</a> temperature sensor and read out the temperature on <a href="http://en.wikipedia.org/wiki/Mac_OS_X>OS X</a>. I used only the<br />
<a href="http://www.ftdichip.com/Drivers/D2XX.htm">D2XX</a> drivers as the <a href="http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/LibMPSSE-I2C.htm">LibMPSSE-I2C</a> is only available for Windows and Linux.</p>
<p>Connecting of the setup is rather easy: To use the UM232H in host-powered mode, we have to connect VIO and 3V3 and USB and 5V0. The LM75 is powered by the 3V3 line and needs also a connection to GND. The I²C clock line is on the LM75 on the SCL pin and on the UM232H on the AD0. The I²C data line is on the LM75 on the SDA pin and on the UM232 on the AD1 and AD2 pin (AD1 handles the output of the data and AD2 the input). Both, the I²C clock line and the I²C data line need a pull-up to 3V3. A value between 1kΩ and 10kΩ is fine for low frequencies (< 100 kHz). The address lines of the LM75 (A0,A1,A2) are all set to 3V3 to this example, resulting in an address of 0x9E for the LM75. </p>
<p>On the software side, we need to install the <a href="http://www.ftdichip.com/Drivers/D2XX.htm">D2XX</a> drivers. Download them and follow the instructions in the ReadMe file to install them. Download my C program <a href='http://www.twam.info/wp-content/uploads/2011/10/lm75.c'>lm75.c</a> and compile it with</p>
<pre>gcc -lftd2xx -o lm75 lm75.c</pre>
<p>If everything worked, a simple </p>
<pre>./lm75</pre>
<p>should list all FTDI devices found:</p>
<pre>Device 0 Serial Number - FTUBIQVH</pre>
<p>Now we can adress the device by its serial number and query it with</p>
<pre>./lm75 FTUBIQVH</pre>
<p>and get the temperature of the LM75:</p>
<pre>Temperature: 26.0 C</pre>
<p>If the query fails, the problem is usually that the virtual comport driver (VCP) is already occupying the device. Try to unload the driver with</p>
<pre>sudo kextunload /System/Library/Extensions/FTDIUSBSerialDriver.kext</pre>
<p>The code itself should be rather self-explanatory if your familiar with I²C. If not, here&#8217;s a short overview: The first lines setup the FT232H in MPSSE mode. A list of all the MPSSE commands understood by the FT232H can be found <a href="http://www.ftdichip.com/Support/Documents/AppNotes/AN_108_Command_Processor_for_MPSSE_and_MCU_Host_Bus_Emulation_Modes.pdf">here</a>. The we send a I²C start condition followed by the address of the LM75 with the write bit set and the adress 0&#215;00 (The temperature register, see <a href="http://datasheets.maxim-ic.com/en/ds/LM75.pdf">LM75 datasheet</a> for details). Next is a I²C restart condition followed by the address of the LM75 with the read bit set. Now we can read 2 bytes of data representing the temperature. To finalize the transaction we send an I²C stop condition.</p>
<p>This gets maybe a little clearer when we look at the transaction on the oscilloscope:</p>
<div id="attachment_2203" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/hardware/i%c2%b2c-via-usb-on-os-x-using-ft232h/attachment/i2c" rel="attachment wp-att-2203"><img src="http://www.twam.info/wp-content/uploads/2011/10/i2c-640x384.png" alt="I²C transaction" title="I²C transaction" width="640" height="384" class="size-large wp-image-2203" /></a><p class="wp-caption-text">I²C transaction</p></div>
<p>The yellow curve is the SCL line and the green curve shows the SDA line. In the upper panel we see the whole transaction consisting of 4 parts: Addressing the LM75 the first time with the write bit set, sending the address 0&#215;00, addressing the LM75 the second time with the read bit set and the 2 data bytes sent by the LM75. The lower panal is a zoom on the first block were the address the LM75 for the first time. We can see the I²C start condition where the SDA goes low while SCL is high and afterwards the clock changes nine times. The first eight cycles transmit the address of the LM75 which is 0x9E or 0b10011110. The last bit is the ACK by the slave. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/i%c2%b2c-via-usb-on-os-x-using-ft232h/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Steve Jobs at Apple Store Munich</title>
		<link>http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich</link>
		<comments>http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich#comments</comments>
		<pubDate>Sun, 16 Oct 2011 19:03:41 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Store]]></category>
		<category><![CDATA[München]]></category>
		<category><![CDATA[Steve Jobs]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=2153</guid>
		<description><![CDATA[When I was at the Apple Store Munich yesterday, some people where &#8220;drawing&#8221; a picture of Steve Jobs out of Post Its on the glass front of the Apple Store. You can find some information on the event on Apfeltech, MacRumors and a Facebook Page. Today, I came back to make some pictures of the [...]]]></description>
			<content:encoded><![CDATA[<p>When I was at the Apple Store Munich yesterday, some people where &#8220;drawing&#8221; a picture of Steve Jobs out of Post Its on the glass front of the Apple Store. You can find some information on the event on <a href="http://apfeltech.net/2011/10/tribut-an-steve-jobs-riesiges-portrait-aus-5-600-post-it-zettel-am-munchner-apple-store/">Apfeltech</a>, <a href="http://www.macrumors.com/2011/10/17/impressive-steve-jobs-tribute-made-out-of-4001-post-it-notes/">MacRumors</a> and a <a href="https://www.facebook.com/media/set/?set=a.2538537500784.143471.1174046364&#038;type=1">Facebook Page</a>. Today, I came back to make some pictures of the finished picture. So enjoy: <span id="more-2153"></span></p>
<p><a href="http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/attachment/img_4242" rel="attachment wp-att-2154"><img src="http://www.twam.info/wp-content/uploads/2011/10/IMG_4242-640x426.jpg" alt="" title="Steves Jobs at Apple Store Munich" width="640" height="426" class="aligncenter size-large wp-image-2154" /></a></p>
<p><a href="http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/attachment/img_4243" rel="attachment wp-att-2155"><img src="http://www.twam.info/wp-content/uploads/2011/10/IMG_4243-426x640.jpg" alt="" title="Steves Jobs at Apple Store Munich" width="426" height="640" class="aligncenter size-large wp-image-2155" /></a></p>
<p><a href="http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/attachment/img_4246" rel="attachment wp-att-2157"><img src="http://www.twam.info/wp-content/uploads/2011/10/IMG_4246-426x640.jpg" alt="" title="Steves Jobs at Apple Store Munich" width="426" height="640" class="aligncenter size-large wp-image-2157" /></a></p>
<p><a href="http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/attachment/img_4245" rel="attachment wp-att-2156"><img src="http://www.twam.info/wp-content/uploads/2011/10/IMG_4245-426x640.jpg" alt="" title="Steves Jobs at Apple Store Munich" width="426" height="640" class="aligncenter size-large wp-image-2156" /></a></p>
<p><a href="http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/attachment/img_4251" rel="attachment wp-att-2158"><img src="http://www.twam.info/wp-content/uploads/2011/10/IMG_4251-426x640.jpg" alt="" title="Steves Jobs at Apple Store Munich" width="426" height="640" class="aligncenter size-large wp-image-2158" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/apple/stevejobs_at_apple_store_munich/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simultaneity in the AirPlay Universe</title>
		<link>http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe</link>
		<comments>http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe#comments</comments>
		<pubDate>Wed, 28 Sep 2011 19:59:14 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Airplay]]></category>
		<category><![CDATA[Apple TV]]></category>
		<category><![CDATA[iMac]]></category>
		<category><![CDATA[SPDIF]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=2103</guid>
		<description><![CDATA[Most Apple products support the streaming of audio (and some even video) data through the network to AirPlay enabled devices like Apple TV, AirPort Express or third vendor products. Apple advertises the AirPlay technology with: [...], you can stream your tunes to more than one room simultaneously, [...]. AirPlay works over Wi-Fi or an Ethernet [...]]]></description>
			<content:encoded><![CDATA[<p>Most <a href="http://www.apple.com">Apple</a> products support the streaming of audio (and some even video) data through the network to<br />
<a href="http://www.apple.com/itunes/airplay/">AirPlay</a> enabled devices like <a href="http://www.apple.com/appletv/">Apple TV</a>, <a href="http://www.apple.com/airportexpress/">AirPort Express</a> or third vendor products. Apple advertises the AirPlay technology with:<br />
<blockquote>[...], you can stream your tunes to more than one room simultaneously, [...]. AirPlay works over Wi-Fi or an Ethernet connection, or a combination of both.</p></blockquote>
<p>But how simultan can these devices stream under real world conditions? I tried to address this issue with two 2nd generation Apple TVs and an <a href="http://www.apple.com/imac/">iMac</a> Streaming through Wi-Fi and <a href="http://en.wikipedia.org/wiki/Gigabit_Ethernet">Gigabit Ethernet</a>. It proved to be a difficult task to measure this precisely!<span id="more-2103"></span></p>
<p>The 2nd generation Apple TV has only an optical <a href="http://en.wikipedia.org/wiki/TOSLINK">TOSLINK</a> audio output and a <a href="http://en.wikipedia.org/wiki/HDMI">HDMI</a> output, there is no way to get the analog audio signal directly. My first idea to compare the <a href="http://en.wikipedia.org/wiki/S/PDIF">S/PDIF</a> data streams was difficult. It was required to convert the data stream to electrical signals to be able to analyse them with my oscilloscope. As the fiber optic receiving modules TORX* from <a href="http://www.toshiba.de/">Toshiba</a> are dependent from the power supply the signal wasn&#8217;t 100% identical. I also discarded my second idea to use simple S/PDIF-to-<a href="http://en.wikipedia.org/wiki/RCA_connector">RCA</a> connectors. There are either cheap and of questionable quality or rare and expensive and could also have an impact on the measurement. So I decided another way to go:</p>
<p><div id="attachment_2121" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe/attachment/scope_41" rel="attachment wp-att-2121"><img src="http://www.twam.info/wp-content/uploads/2011/09/scope_41-210x126.png" alt="Screenshot of RAW S/PDIF data" title="Screenshot of RAW S/PDIF data" width="210" height="126" class="size-medium wp-image-2121" /></a><p class="wp-caption-text">Screenshot of RAW S/PDIF data</p></div>I connected the iMac and the 2 Apple TVs using optical TOSLINK cables to 3 <a href="http://media.digikey.com/pdf/Data%20Sheets/Toshiba%20PDFs/TORX177PL,F,T.pdf">TORX177PL</a>. They were powered with 5V using a <a href="http://en.wikipedia.org/wiki/Power_Supply#Programmable_power_supply">programmable power supply</a>. The output signal was grabbed with my <a href="http://www.twam.info/electronics/agilent-dso-x3014a">Agilent DSO-X 3014A</a> which saved the data to an USB stick in RAW Format. Then the data was copied to my iMac and post-processed using a self-written program which extracts the S/PDIF stream from the RAW data file, decodes it and writes the actual audio data to an output file. As the oscilloscope recorded the signal of all 3 sources at the same time it is possible to make statements about the relative times.</p>
<p>I did all the measurements using a 10 minute 16 bit uncompressed <a href="http://en.wikipedia.org/wiki/Audio_Interchange_File_Format">AIFF</a> file with a 50 Hz tone using a 48000 kHZ sample rate to have the same conditions for all measurements. The 50 Hz tone has a periodicity of 20 ms, which was the maximum time frame I was able to measure at one measurement. If I would have chosen larger time frames, the time resolution wouldn&#8217;t be enough to decode the S/PDIF signal without errors. As I would not be able to measure time delays of more than 20 ms with that method I did several test measurements with music audio data and the delay was always below 20 ms.</p>
<p>The following picture shows an example measurement after decoding the S/PDIF data stream. The red signal comes from the optical output of the iMac, the green signal from an Apple TV connected by WiFi and the blue signal from an Apple TV connected by Ethernet.</p>
<p><a href="http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe/attachment/scope_22" rel="attachment wp-att-2124"><img src="http://www.twam.info/wp-content/uploads/2011/09/scope_22.png" alt="Example measurement" title="Example measurement" width="640" height="480" class="aligncenter size-full wp-image-2124" /></a></p>
<p>As we chose an exact 50 Hz sine tone it was easy to fit the time differences with <a href="http://www.gnuplot.info/">gnuplot</a>. We also fitted the time difference in reference to the iMac. In this example the green curve from the WiFi connected Apple TV has a delay of 0.42 ms and the blue curve from the Ethernet connected Apple TV has a delay of 1.39 ms.</p>
<p>We did a total of 30 measurements: 10 with both Apple TV connected to WLAN, 10 with one Apple TV connected to WLAN and the other one connected to LAN and 10 with both Apple TV connected to LAN. The following figure shows a summary of the time delays measured. After 10 measurements, when the connection was changed, both Apple TVs were restarted a reselected in iTunes as additional speakers. It&#8217;s strange to see, that the devices connected to Ethernet have longer delays than those connected to WiFi.</p>
<p><a href="http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe/attachment/data" rel="attachment wp-att-2135"><img src="http://www.twam.info/wp-content/uploads/2011/09/data.png" alt="Time delays" title="Time delays" width="640" height="480" class="aligncenter size-full wp-image-2135" /></a></p>
<p>This cannot be seen that easily in music audio data as the next example shows. As both Apple TV devices output the data as a 48 kHZ S/PDIF stream whereas the iMac produces an 44.1 kHZ S/PDIF stream the signal is a little bit different, but in this example it&#8217;s easy to see, that Apple TV connected to Ethernet is about 0.1 ms before the iMac whereas the Apple TV connected to WiFi is about 0.3 ms behind.</p>
<p><a href="http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe/attachment/scope_50-2" rel="attachment wp-att-2137"><img src="http://www.twam.info/wp-content/uploads/2011/09/scope_501.png" alt="WiFi/Ethernet comparison" title="WiFi/Ethernet comparison" width="640" height="480" class="aligncenter size-full wp-image-2137" /></a></p>
<p>In summary it can be said, that the latency between the different sources is less than 2 ms which is in my opinion a rather good value compared to how easy this thing is to install. Just plug it in and it just works, independent from the connection over Ethernet of WiFi.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/apple/simultaneity-in-the-airplay-universe/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reiner SCT RFID basis Leser &#8211; Teardown</title>
		<link>http://www.twam.info/hardware/reiner-sct-rfid-basis-leser-teardown</link>
		<comments>http://www.twam.info/hardware/reiner-sct-rfid-basis-leser-teardown#comments</comments>
		<pubDate>Sat, 04 Dec 2010 17:27:32 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[nPA]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1697</guid>
		<description><![CDATA[Im Rahmen des Konjunkturpakets II investiert der Bund bis zu 24 Mio. Euro in die kostenlose Ausgabe von sogenannten &#8220;IT-Sicherheitkits&#8221;. Diese enthalten eine RFID Kartenleser zur Nutzung des neuen Personalausweises am PC. Eine Möglichkeit an einen solchen kostenlosen USB Leser zu kommen war sich heute eine Computer-Bild für 3.70 € zu kaufen. Dieser lag heute [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1700" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2010/12/Reiner-SCT-RFID-basis.jpg"><img class="size-medium wp-image-1700" title="Reiner SCT RFID basis" src="http://www.twam.info/wp-content/uploads/2010/12/Reiner-SCT-RFID-basis-210x210.jpg" alt="Reiner SCT RFID basis" width="210" height="210" /></a><p class="wp-caption-text">Reiner SCT RFID basis</p></div>
<p>Im Rahmen des Konjunkturpakets II investiert der Bund bis zu 24 Mio. Euro in die kostenlose Ausgabe von sogenannten &#8220;IT-Sicherheitkits&#8221;. Diese enthalten eine RFID Kartenleser zur Nutzung des<a href="http://www.personalausweisportal.de/"> neuen Personalausweises</a> am PC. Eine Möglichkeit an einen solchen kostenlosen USB Leser zu kommen war sich heute eine <a href="http://www.computerbild.de/">Computer-Bild</a> für 3.70 € zu kaufen. Dieser lag heute ein Leser der Firma <a href="http://www.reiner-sct.com/">Reiner SCT</a> bei. Da ich bisher schon sehr gute Erfahrungen mit herkömmlichen Chipkartenlesern dieser Firma gemacht habe, entschloss ich mich also schweren Herzens eine Computer-Bild zu kaufen.<span id="more-1697"></span></p>
<p>Aus Interesse habe ich den Kartenleser dann zu Hause erstmal zerlegt. Wie erwartet findet sich dort natürlich eine relativ große Antenne zur Datenübertragung zum Ausweis (Außerdem muss der Ausweis auch über diese Antenne mit Strom versorgt werden). </p>
<p class="ad"><script type="text/javascript"><!--
google_ad_client = "ca-pub-1085036481882245";
/* Reiner SCT */
google_ad_slot = "6874552245";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Ansonsten ist kaum Technik im Innern zu finden, da dieser Leser weder ein Display noch eine Tastatur (zur PIN Eingabe) hat.</p>
<div id="attachment_1698" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/12/Platine-oben.jpg"><img class="size-large wp-image-1698" title="Oberseite der Platine im Kartenleser" src="http://www.twam.info/wp-content/uploads/2010/12/Platine-oben-640x427.jpg" alt="Oberseite der Platine im Kartenleser" width="640" height="427" /></a><p class="wp-caption-text">Oberseite der Platine im Kartenleser</p></div>
<div id="attachment_1699" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/12/Platine-unten.jpg"><img class="size-large wp-image-1699" title="Unterseite der Platine im Kartenleser" src="http://www.twam.info/wp-content/uploads/2010/12/Platine-unten-640x426.jpg" alt="Unterseite der Platine im Kartenleser" width="640" height="426" /></a><p class="wp-caption-text">Unterseite der Platine im Kartenleser</p></div>
<p><br id="__mce" /></p>
<p>Testen kann man den Leser leider erst in ein paar Tagen, wenn es dann eine neue Version der <a href="https://www.ausweisapp.bund.de">AusweisApp</a> gibt. Dank Sicherheitslücken in der ersten Version, muss man sich nämlich zur Zeit noch etwas gedulden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/reiner-sct-rfid-basis-leser-teardown/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Installing additional SSD in Mid-2010 27&#8243; iMac</title>
		<link>http://www.twam.info/hardware/apple/installing-additional-ssd-in-mid-2010-27-imac</link>
		<comments>http://www.twam.info/hardware/apple/installing-additional-ssd-in-mid-2010-27-imac#comments</comments>
		<pubDate>Thu, 21 Oct 2010 19:30:12 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iMac]]></category>
		<category><![CDATA[SSD]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1623</guid>
		<description><![CDATA[The 27&#8243; version of the Mid-2010 iMac is available with an additional 256 GB Solid State Drive for a small extra fee of $750. As I already owned an 160 GB Intel X25 G2 SSD I wanted to use this in my new iMac as well. There is several information on the web, how to [...]]]></description>
			<content:encoded><![CDATA[<p>The 27&#8243; version of the Mid-2010 iMac is available with an additional 256 GB Solid State Drive for a small extra fee of $750. As I already owned an <a href="http://www.intel.com/design/flash/nand/mainstream/index.htm">160 GB Intel X25 G2 SSD</a> I wanted to use this in my new iMac as well. There is several information on the web, how to replace the hard disk or the optical drive with a SDD, but information about adding a SSD without losing the hard drive and the optical drive is very rare.</p>
<div id="attachment_1629" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2010/10/spare-parts.jpg"><img class="size-medium wp-image-1629" title="spare parts" src="http://www.twam.info/wp-content/uploads/2010/10/spare-parts-210x139.jpg" alt="" width="210" height="139" /></a><p class="wp-caption-text">spare parts</p></div>
<p>The problem is, that all iMac which haven&#8217;t been ordered with the built-in SDD miss the mounting option for the SDD and the cables. So you have to order them separately. Fortunately <a href="http://www.applecomponents.com">http://applecomponents.com</a> has them in stock. You will need three parts:</p>
<ul>
<li>The power cable <a href="http://applecomponents.com/items/922-9531_cable-ac-dc-power-backlight-sata-ssd/0000004774?pn=1&amp;s=922-9531">922-9531</a> with connectors for logic board, LED backlight, hard disk and SDD which replaces the old power cable.</li>
<li>The mounting kit <a href="http://applecomponents.com/items/922-9485_pressure-wall-optical-ssd-mxm/0000004776?pn=1&amp;s=922-9485">922-9485</a> for the SSD which will replace a small plastic part</li>
<li>The SATA data cable <a href="http://applecomponents.com/items/922-9538_cable-ssd-hdd-data/0000004775?pn=1&amp;cmp=0172">922-9538</a> which connects the SSD with the logic board</li>
</ul>
<p><span id="more-1623"></span>This will be a total of $57 plus shipping (I paid about 72 € in total with shipping to Germany plus 13 € taxes at the customs). Besides of that you will need four very flat screws to tighten the SSD to the mounting kit. As tools you should have</p>
<ul>
<li>a T10 Torx screwdriver</li>
<li>a Phillips #2 screwdriver (to open the memory bay)</li>
<li>two paperclips</li>
<li>two suction cups</li>
<li>a pair of tweezers</li>
<li>something to clean the LCD</li>
</ul>
<p>The whole installation isn&#8217;t very difficult if you act very careful and keep a log of every screws and cable where they came from. It is very useful if you get a friend of yours to help you, as the display and the logic board are very heavy. I had some help from <a href="http://www.nature-in-focus.de">Steve</a>, who&#8217;s Job it was to take all the pictures you see in this guide (Thanks a lot for the help!) and help with the organisation of all the screws and boards and he was my 3rd and 4th hand whenever needed.</p>
<p class="ad"><script type="text/javascript"><!--
google_ad_client = "ca-pub-1085036481882245";
google_ad_slot = "2369500656";
google_ad_width = 468;
google_ad_height = 15;
//--></script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Before starting, open the memory bay of the iMac on the lower side:</p>
<div id="attachment_1673" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/memory-bay.jpg"><img class="size-large wp-image-1673" title="memory bay" src="http://www.twam.info/wp-content/uploads/2010/10/memory-bay-640x388.jpg" alt="" width="640" height="388" /></a><p class="wp-caption-text">memory bay</p></div>
<p>At first, you have to open the iMac and remove the display. It might be a good idea to lay down the iMac on a towel or something to avoid scratches in the aluminium:</p>
<div id="attachment_1632" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/suction-cups.jpg"><img class="size-large wp-image-1632" title="suction cups at iMac display glass" src="http://www.twam.info/wp-content/uploads/2010/10/suction-cups-640x426.jpg" alt="" width="640" height="426" /></a><p class="wp-caption-text">suction cups at iMac display glass</p></div>
<p>Put the mac this way, so the top of the iMac will face towards you. Position the two suction cups in the upper left and right corner (You&#8217;ll get these in every do-it-yourself store. I paid about 7 € for each). The display is fixed with small magnets, so no screws. Pull up the suction cups upwards to lift the glass up to about 45 degrees. The pull the whole glass towards you to remove it entirely from the iMac. There are a few metal clips connecting the display with the lower part of the iMac. Store the display in a safe position, for example on the floor using your original iMac wrapping:</p>
<div id="attachment_1634" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/display-glass.jpg"><img class="size-large wp-image-1634" title="display glass in on iMac wrapping" src="http://www.twam.info/wp-content/uploads/2010/10/display-glass-640x426.jpg" alt="" width="640" height="426" /></a><p class="wp-caption-text">display glass in on iMac wrapping</p></div>
<p>To remove the display you have to remove 4 screws at each side of the LCD screen:</p>
<div id="attachment_1645" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/display-screws.jpg"><img class="size-large wp-image-1645" title="display screws at one side" src="http://www.twam.info/wp-content/uploads/2010/10/display-screws-640x244.jpg" alt="" width="640" height="244" /></a><p class="wp-caption-text">display screws at one side</p></div>
<p>To lift up the LCD we built a small tool using two paperclips:</p>
<div id="attachment_1636" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/paper-clip.jpg"><img class="size-large wp-image-1636 " title="tools made of paperclips to lift LCD" src="http://www.twam.info/wp-content/uploads/2010/10/paper-clip-640x427.jpg" alt="" width="640" height="427" /></a><p class="wp-caption-text">tools made of paperclips to lift LCD</p></div>
<p>Now put the paperclips tools under the edges of the display and pull it a few centimeters upwards. Then put something between the display and case to fit it in the upper position:</p>
<div id="attachment_1639" class="wp-caption aligncenter" style="width: 521px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-lift.jpg"><img class="size-large wp-image-1639" title="Lifting the LCD" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-lift-511x640.jpg" alt="" width="511" height="640" /></a><p class="wp-caption-text">Lifting the LCD</p></div>
<p>Before the LCD can be removed, there are four cables which have to be disconnect. The first one is connected to the LCD back-light board in the lower right corner:</p>
<div id="attachment_1646" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight-sync-cable.jpg"><img class="size-large wp-image-1646" title="LCD backlight sync cable" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight-sync-cable-640x392.jpg" alt="" width="640" height="392" /></a><p class="wp-caption-text">LCD backlight sync cable</p></div>
<p>Be careful as this cable was stuck on the back of the iMac and so we could lift the LCD only for a few centimeters. We removed the cable from the bottom with a pair of tweezers and the lifted to LCD to about ten to fifteen centimeters. Then it was easy to unplug the cable.</p>
<p>The next cable is the data cable to the LCD. You have to squeeze the to display connector arms together and the pull to remove the cable:</p>
<div id="attachment_1643" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-data-cable.jpg"><img class="size-large wp-image-1643" title="LCD data cable" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-data-cable-640x312.jpg" alt="" width="640" height="312" /></a><p class="wp-caption-text">LCD data cable</p></div>
<p>Now we need to remove the LCD temperature sensor next to the data cable:</p>
<div id="attachment_1644" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-temperature-connector.jpg"><img class="size-large wp-image-1644" title="LCD temperature connector" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-temperature-connector-640x312.jpg" alt="" width="640" height="312" /></a><p class="wp-caption-text">LCD temperature connector</p></div>
<p>The last one is the LCD back-light cable connected to the LCD back-light board on the right side:</p>
<div id="attachment_1647" class="wp-caption aligncenter" style="width: 582px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight-cable1.jpg"><img class="size-large wp-image-1647" title="LCD backlight cable" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight-cable1-572x640.jpg" alt="" width="572" height="640" /></a><p class="wp-caption-text">LCD backlight cable</p></div>
<p>After all cables connected to the LCD have been removed, we can remove it from the iMac and put it somewhere in a safe place. Now we have a look at everything inside the iMac:</p>
<div id="attachment_1649" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/displayless-iMac.jpg"><img class="size-large wp-image-1649" title="displayless iMac" src="http://www.twam.info/wp-content/uploads/2010/10/displayless-iMac-640x431.jpg" alt="" width="640" height="431" /></a><p class="wp-caption-text">displayless iMac</p></div>
<p>In the lower right we can see the LCD back-light next to the power supply. In the lower middle is the hard disk and the AirPort card located. On the left there is the optical drive and the whole upper part is the logic board. We will have to remove nearly everything as we need to insert the SSD mount below the heat sink between the hard disk and the optical drive.</p>
<p>We start by remove the hard disk. Unplug the 3 cables (power, SATA data and temperature sensor) and <b>remember the position of the temperature sensor cable</b> (You&#8217;ll need it later). Before lifting the hard disk we have to remove 2 screws:</p>
<div id="attachment_1650" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/hard-disk.jpg"><img class="size-large wp-image-1650" title="hard disk" src="http://www.twam.info/wp-content/uploads/2010/10/hard-disk-640x363.jpg" alt="" width="640" height="363" /></a><p class="wp-caption-text">hard disk</p></div>
<p>Now lift up the hard disk in the lower part and then pull it towards you to remove it. The next step is to remove the optical drive. After removing the 4 screws,</p>
<div id="attachment_1651" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/optical-drive.jpg"><img class="size-large wp-image-1651" title="optical drive" src="http://www.twam.info/wp-content/uploads/2010/10/optical-drive-640x501.jpg" alt="" width="640" height="501" /></a><p class="wp-caption-text">optical drive</p></div>
<p>remove the combined power/data cable from the drive and  the temperature sensor from the logic board.</p>
<div id="attachment_1652" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/optical-drive-temperature-sensor.jpg"><img class="size-large wp-image-1652" title="optical drive temperature sensor" src="http://www.twam.info/wp-content/uploads/2010/10/optical-drive-temperature-sensor-640x474.jpg" alt="" width="640" height="474" /></a><p class="wp-caption-text">optical drive</p></div>
<p>After removing the optical drive remove the screw from the fan next to it and unplug the cable from the fan. It is located beneath the ribbon cable to the RMT I/O connector:</p>
<div id="attachment_1654" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/fan.jpg"><img class="size-large wp-image-1654" title="fan" src="http://www.twam.info/wp-content/uploads/2010/10/fan-640x522.jpg" alt="" width="640" height="522" /></a><p class="wp-caption-text">fan</p></div>
<p>Now the continue on the lower right side by removing the power supply. There are four screws and two connectors which need to be disconnected:</p>
<div id="attachment_1655" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/power-supply.jpg"><img class="size-large wp-image-1655" title="power supply" src="http://www.twam.info/wp-content/uploads/2010/10/power-supply-640x593.jpg" alt="" width="640" height="593" /></a><p class="wp-caption-text">power supply</p></div>
<p>The LCD backlight next to the power supply has also four screws, but only one cable:</p>
<div id="attachment_1656" class="wp-caption aligncenter" style="width: 617px"><a href="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight.jpg"><img class="size-large wp-image-1656" title="LCD backlight" src="http://www.twam.info/wp-content/uploads/2010/10/LCD-backlight-607x640.jpg" alt="" width="607" height="640" /></a><p class="wp-caption-text">LCD backlight</p></div>
<p>Now remove the two plastic parts located between the power supply, the LCD back-light and the heat sink (Sorry, I didn&#8217;t take a separate picture of them). Then it&#8217;s time to remove the AirPort card. Unplug the two antenna connectors by pulling the upwards (should be very easy) and disconnect the cable to the AirPort on the logic board. You have to remove the sticky tape and the pull the connector upwards. Then remove the two screws fixing the AirPort and remove it:</p>
<div id="attachment_1659" class="wp-caption aligncenter" style="width: 365px"><a href="http://www.twam.info/wp-content/uploads/2010/10/AirPort-card.jpg"><img class="size-large wp-image-1659" title="AirPort card" src="http://www.twam.info/wp-content/uploads/2010/10/AirPort-card-355x640.jpg" alt="" width="355" height="640" /></a><p class="wp-caption-text">AirPort card</p></div>
<p>Under the black apple logo on the front of the iMac there is an infrared receiver hiding. After unplugging the connector on the logic board, pull to remove the infrared receiver board.</p>
<div id="attachment_1660" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/IR-connector.jpg"><img class="size-large wp-image-1660" title="IR connector" src="http://www.twam.info/wp-content/uploads/2010/10/IR-connector-640x512.jpg" alt="" width="640" height="512" /></a><p class="wp-caption-text">IR connector</p></div>
<p>The last step is to remove the logic board. There are eight screws to remove:</p>
<div id="attachment_1661" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/logic-board-screws.jpg"><img class="size-large wp-image-1661" title="logic board screws" src="http://www.twam.info/wp-content/uploads/2010/10/logic-board-screws-640x362.jpg" alt="" width="640" height="362" /></a><p class="wp-caption-text">logic board screws</p></div>
<p>Now unplug all left over cables to the logic board. The RMT I/O connector in the upper left corner:</p>
<div id="attachment_1662" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/RMT-I-O.jpg"><img class="size-large wp-image-1662" title="RMT I/O" src="http://www.twam.info/wp-content/uploads/2010/10/RMT-I-O-640x477.jpg" alt="" width="640" height="477" /></a><p class="wp-caption-text">RMT I/O</p></div>
<p>The SD card reader below the RMT I/O connector:</p>
<div id="attachment_1663" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/SD.jpg"><img class="size-large wp-image-1663" title="SD card reader" src="http://www.twam.info/wp-content/uploads/2010/10/SD-640x602.jpg" alt="" width="640" height="602" /></a><p class="wp-caption-text">SD card reader</p></div>
<p>The microphone connector between the RMT I/O and the SD card reader connector:</p>
<div id="attachment_1664" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/microphone.jpg"><img class="size-large wp-image-1664" title="microphone connector" src="http://www.twam.info/wp-content/uploads/2010/10/microphone-640x476.jpg" alt="" width="640" height="476" /></a><p class="wp-caption-text">microphone connector</p></div>
<p>And the two speaker connectors right of the microphone connector. Notice that right speaker connector has five pins where as the left speaker connector has only four pins. You won&#8217;t be able to mix them later <img src='http://www.twam.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> :</p>
<div id="attachment_1665" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/speaker.jpg"><img class="size-large wp-image-1665" title="speaker connectors" src="http://www.twam.info/wp-content/uploads/2010/10/speaker-640x589.jpg" alt="" width="640" height="589" /></a><p class="wp-caption-text">speaker connectors</p></div>
<p>In the upper right corner you will find the connector for the power button:</p>
<div id="attachment_1667" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/power-button.jpg"><img class="size-large wp-image-1667" title="power button connector" src="http://www.twam.info/wp-content/uploads/2010/10/power-button-640x487.jpg" alt="" width="640" height="487" /></a><p class="wp-caption-text">power button connector</p></div>
<p>And two centimeters right of it the CPU fan connector:</p>
<div id="attachment_1668" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/CPU-fan.jpg"><img class="size-large wp-image-1668" title="CPU fan connector" src="http://www.twam.info/wp-content/uploads/2010/10/CPU-fan-640x473.jpg" alt="" width="640" height="473" /></a><p class="wp-caption-text">CPU fan connector</p></div>
<p>In the lower end of the logic board are the skin temperature sensor:</p>
<div id="attachment_1669" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/skin-temperature.jpg"><img class="size-large wp-image-1669" title="skin temperature sensor" src="http://www.twam.info/wp-content/uploads/2010/10/skin-temperature-640x456.jpg" alt="" width="640" height="456" /></a><p class="wp-caption-text">skin temperature sensor</p></div>
<p>And a bit left of it are several sensors. You need to disconnect the hard disk fan, camera and Bluetooth connector. The hard disk temperature sensors doesn&#8217;t have to be disconnected as we already removed the other end of the cable from the hard disk.</p>
<div id="attachment_1670" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/misc.-connectors.jpg"><img class="size-large wp-image-1670" title="hard disk fan, camera and bluetooth connector" src="http://www.twam.info/wp-content/uploads/2010/10/misc.-connectors-640x426.jpg" alt="" width="640" height="426" /></a><p class="wp-caption-text">hard disk fan, camera and bluetooth connector</p></div>
<p>The last remaining connector should be the AMB temperature sensor:</p>
<div id="attachment_1671" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/AMB-temperature-sensors.jpg"><img class="size-large wp-image-1671" title="AMB temperature sensor" src="http://www.twam.info/wp-content/uploads/2010/10/AMB-temperature-sensors-640x375.jpg" alt="" width="640" height="375" /></a><p class="wp-caption-text">hard disk fan, camera and bluetooth connector</p></div>
<p>Now you should be able to remove the logic board by lifting it a little bit at the lower side and then pulling it towards you. Be care as there are some cables on the lower side of the board (power cable, HDD data cable). Now your iMac (if you still want to call it iMac <img src='http://www.twam.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) should look like:</p>
<div id="attachment_1674" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/empty-imac.jpg"><img class="size-large wp-image-1674" title="empty imac" src="http://www.twam.info/wp-content/uploads/2010/10/empty-imac-640x450.jpg" alt="" width="640" height="450" /></a><p class="wp-caption-text">empty imac</p></div>
<p>In the next step we remove the plastic part where the SSD mount will fit in:</p>
<div id="attachment_1676" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/old-mount-without-SSD.jpg"><img class="size-large wp-image-1676" title="old mount without SSD" src="http://www.twam.info/wp-content/uploads/2010/10/old-mount-without-SSD-640x426.jpg" alt="" width="640" height="426" /></a><p class="wp-caption-text">old mount without SSD</p></div>
<p>You have to remove one screws and to remove a little bit of the sticky tape from the cables which are routed over the plastic. The pull the plastic upwards and remove it. The plastic is glue on the bottom of the iMac so you will have to pull a little more intense.</p>
<p>Now you will need to get four very flat screws to mount the SSD into the new plastic mount:</p>
<div id="attachment_1677" class="wp-caption aligncenter" style="width: 573px"><a href="http://www.twam.info/wp-content/uploads/2010/10/SSD-mount.jpg"><img class="size-large wp-image-1677" title="SSD mount" src="http://www.twam.info/wp-content/uploads/2010/10/SSD-mount-563x640.jpg" alt="" width="563" height="640" /></a><p class="wp-caption-text">SSD mount</p></div>
<p>Test if the screws are flat enough so that new mount sits perfectly. Now install the mount in the position of the old mount and route the thin cable below the mount. Tighten it with the screw from the old mount. Before reinstalling the logic board we have to swap the power cable and to install the new SSD SATA data cable:</p>
<div id="attachment_1678" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/logic-board-power-cable.jpg"><img class="size-large wp-image-1678" title="logic board power cable" src="http://www.twam.info/wp-content/uploads/2010/10/logic-board-power-cable-640x440.jpg" alt="" width="640" height="440" /></a><p class="wp-caption-text">logic board power cable</p></div>
<div id="attachment_1679" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2010/10/SSD-cables.jpg"><img class="size-medium wp-image-1679" title="SSD cables" src="http://www.twam.info/wp-content/uploads/2010/10/SSD-cables-210x137.jpg" alt="" width="210" height="137" /></a><p class="wp-caption-text">SSD cables</p></div>
<p>The straight connector of the SATA data cable must be inserted in the logic board. Now we can reassemble everything:</p>
<ol>
<li>Insert the logic board and check that all cable you removed are not hidden somewhere under the board.</li>
<li>Plug in the SSD data connector into the SSD and plug in the power connector into the SSD. There are two SATA power connectors on the power cable. The middle one with four pins has to be used for the HDD drive and the other one with only two pins for the SSD.</li>
<li>Tighten the logic board with the eight screws you removed and route the power and SATA cables correctly.</li>
<li>Connect all the connectors to the logic board:
<ol>
<li>RMT I/O</li>
<li>SD card reader</li>
<li>microphone</li>
<li>left/right speaker</li>
<li>power button</li>
<li>CPU fan</li>
<li>skin fan</li>
<li>camera</li>
<li>Bluetooth</li>
<li>AMB temperature sensors</li>
</ol>
</li>
<li>Reinsert the infrared receiver board the connect it to the logic board</li>
<li>Put back the two plastic parts from the power supply and LCD back-light</li>
<li>Connect the power cable to the LCD back-light, glue it to the bottom of the case and tighten the LCD back-light</li>
<li>Connect the power cable and the other cable to the power supply and tighten it</li>
<li>Install AirPort card and check that the power cable is correctly routed beneath it. Plug in the two antennas.</li>
<li>Insert the fan in the upper left corner and connect it.</li>
<li>Insert the optical drive and connect the data cable and the temperature sensor.</li>
<li>Connect the power cable, the SATA data cable and the temperature sensor to the hard disk. Tighten it.</li>
</ol>
<p>Now everything should look the before as you removed the display. Now its time to mount the display. Put it on the upper end of the case with an angle of about 45 degrees and while lowering it connect the four connectors:</p>
<ol>
<li>LCD back-light</li>
<li>LCD temperature sensor</li>
<li>LCD data cable</li>
<li>LCD back-light sync</li>
</ol>
<p>Put the display entirely down and fix it with the eight screws. Before putting back the glass panel try to remove dust on the display panel and the back of glass. Last, but not least close the memory bay.</p>
<p>Now, pray, and press the power button. If you&#8217;ve everything correctly your iMac should boot and you should see the SSD drive in the disk utility:</p>
<div id="attachment_1680" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/disk-utility.jpg"><img class="size-large wp-image-1680" title="disk utility" src="http://www.twam.info/wp-content/uploads/2010/10/disk-utility-640x426.jpg" alt="" width="640" height="426" /></a><p class="wp-caption-text">disk utility</p></div>
<p>If you got mixed up with all the different screws, this may help you:</p>
<div id="attachment_1682" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/screws-I.jpg"><img class="size-large wp-image-1682" title="screws I" src="http://www.twam.info/wp-content/uploads/2010/10/screws-I-640x315.jpg" alt="" width="640" height="315" /></a><p class="wp-caption-text">screws I</p></div>
<div id="attachment_1684" class="wp-caption aligncenter" style="width: 650px"><a href="http://www.twam.info/wp-content/uploads/2010/10/screws-II.jpg"><img class="size-large wp-image-1684" title="screws II" src="http://www.twam.info/wp-content/uploads/2010/10/screws-II-640x317.jpg" alt="" width="640" height="317" /></a><p class="wp-caption-text">screws II</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/apple/installing-additional-ssd-in-mid-2010-27-imac/feed</wfw:commentRss>
		<slash:comments>135</slash:comments>
		</item>
		<item>
		<title>Geotagging mit dem iPhone</title>
		<link>http://www.twam.info/hardware/iphone/geotagging-mit-dem-iphone</link>
		<comments>http://www.twam.info/hardware/iphone/geotagging-mit-dem-iphone#comments</comments>
		<pubDate>Sun, 03 Oct 2010 14:41:39 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[GPS]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1593</guid>
		<description><![CDATA[Nachdem meine neue DSLR Kamera kein GPS mit eingebaut hat, habe ich nach einer anderen Möglichkeit gesucht, meine Bilder mit GeoTags zu versehen. In AppStore bin ich mit GeotagPhotos fündig geworden. Das Programm macht genau das was, was ich möchte: Im Hintergrund die Position per GPS mitloggen. Zu Hause kann ich das ganze dann als [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1594" class="wp-caption alignright" style="width: 210px"><a href="http://www.twam.info/wp-content/uploads/2010/10/geotagphotos.png"><img src="http://www.twam.info/wp-content/uploads/2010/10/geotagphotos-200x300.png" alt="" title="GeotagPhotos" width="200" height="300" class="size-medium wp-image-1594" /></a><p class="wp-caption-text">GeotagPhotos</p></div>Nachdem meine neue DSLR Kamera kein GPS mit eingebaut hat, habe ich nach einer anderen Möglichkeit gesucht, meine Bilder mit GeoTags zu versehen. In AppStore bin ich mit <a href="http://itunes.apple.com/de/app/geotag-fotos/id355503746?mt=8">GeotagPhotos</a> fündig geworden. Das Programm macht genau das was, was ich möchte: Im Hintergrund die Position per GPS mitloggen. Zu Hause kann ich das ganze dann als GPX Datei per eMail auf meinen PC übertragen. Die GPX kann dann direkt in <a href="http://www.apple.com/aperture/">Aperture</a> (oder fast jeder anderen Bildbearbeitungs/verwaltungssoftware) importiert werden. Die Photos werden dann anhand der Uhrzeit mit den GPS-Track abgeglichen und korrekt mit GeoTags versehen.</p>
<p>Bei meinen heutigen Photospaziergang hat das ganze wunderbar funktioniert. Im Gegensatz zu meinem früherer GPS Tracker, dem <a href="http://www.i-gotu.com/">i-gotU</a>, scheinen die Routen auch deutlich gleichmäßiger zu sein, da die Software nur neue Punkte speichert wenn man eine einstellbare Mindestdistanz vom alten Punkt entfernt ist.</p>
<p>Ich kann die Software bisher also uneingeschränkt empfehlen, und da ich mein iPhone eh immer dabei habe, ist das sogar praktischer als ein extra GPS Tracker. Besser wirds eigentlich nur wenn die Kamera dann mal das GPS selber integriert hat.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/iphone/geotagging-mit-dem-iphone/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>iOS 4.1 introducing HDR on iPhone 4</title>
		<link>http://www.twam.info/hardware/iphone/ios-4-1-introducing-hdr-on-iphone-4</link>
		<comments>http://www.twam.info/hardware/iphone/ios-4-1-introducing-hdr-on-iphone-4#comments</comments>
		<pubDate>Wed, 08 Sep 2010 17:54:13 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[HDR]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Photo]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1343</guid>
		<description><![CDATA[Today, Apple released iOS Version 4.1 for all newer iPhone/iPod devices. It introduces HDR for the built-in camera application. The make in HDR image, the application actually takes three pictures.  One with the correction exposure, another one which is over exposed and the last one which is under exposed. The HDR image is then automatically [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Apple released iOS Version 4.1 for all newer iPhone/iPod devices. It introduces <a href="http://en.wikipedia.org/wiki/High_dynamic_range_imaging">HDR</a> for the built-in camera application. The make in HDR image, the application actually takes three pictures.  One with the correction exposure, another one which is over exposed and the last one which is under exposed. The HDR image is then automatically generated from these three images.<span id="more-1343"></span></p>
<p>The main advantage of HDR pictures, that a greater dynamic range of luminances can be represented. For example I took this picture of <a href="http://en.wikipedia.org/wiki/Entringen">Entringen</a>:<a href="http://en.wikipedia.org/wiki/Entringen"><br />
</a></p>
<div id="attachment_1345" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2010/09/entringen_normal.jpg"><img class="size-large wp-image-1345" title="Entringen - normal mode" src="http://www.twam.info/wp-content/uploads/2010/09/entringen_normal-560x418.jpg" alt="" width="560" height="418" /></a><p class="wp-caption-text">Entringen - normal mode</p></div>
<div id="attachment_1344" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2010/09/entringen_hdr.jpg"><img class="size-large wp-image-1344" title="Entringen - HDR mode" src="http://www.twam.info/wp-content/uploads/2010/09/entringen_hdr-560x418.jpg" alt="" width="560" height="418" /></a><p class="wp-caption-text">Entringen - HDR mode</p></div>
<p>The normal mode picture is very dark in the lower region of the picture as the sky has some bright spots. The HDR mode picture doesn&#8217;t show this problem. The problem of taking three pictures one after another is that non-static scenes can change between the pictures. As an example I took a picture of a flag waving in the wind:</p>
<div id="attachment_1350" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2010/09/flag_normal.jpg"><img class="size-large wp-image-1350" title="Flag - normal mode" src="http://www.twam.info/wp-content/uploads/2010/09/flag_normal-560x418.jpg" alt="" width="560" height="418" /></a><p class="wp-caption-text">Flag - normal mode</p></div>
<div id="attachment_1349" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2010/09/flag_hdr.jpg"><img class="size-large wp-image-1349" title="Flag - HDR mode" src="http://www.twam.info/wp-content/uploads/2010/09/flag_hdr-560x418.jpg" alt="" width="560" height="418" /></a><p class="wp-caption-text">Flag - HDR mode</p></div>
<p>The normal mode picture is fine, but the HDR mode picture shows the contours of the flag of the over and under exposed pictures.</p>
<p>As the iPhone saves the HDR and normal mode pictures at the same time, it is a nice to have feature.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/iphone/ios-4-1-introducing-hdr-on-iphone-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>US International on OS X</title>
		<link>http://www.twam.info/hardware/us-international-on-os-x</link>
		<comments>http://www.twam.info/hardware/us-international-on-os-x#comments</comments>
		<pubDate>Thu, 26 Aug 2010 16:23:56 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=1335</guid>
		<description><![CDATA[Last year I promoted the US International keyboard layout as the ultimate solution for english keyboards. A weeks ago, I started using OS X on my MacBook (It had been running Gentoo Linux before) and so I wanted to use the US International keyboard layout within OS X. At first I was enthusiastic when I [...]]]></description>
			<content:encoded><![CDATA[<p>Last year I promoted the US International keyboard layout as the ultimate solution for english keyboards. A weeks ago, I started using OS X on my MacBook (It had been running <a href="http://www.gentoo.org/">Gentoo Linux</a> before) and so I wanted to use the US International keyboard layout within OS X. At first I was enthusiastic when I saw the &#8220;U.S. International &#8211; PC&#8221; layout in the Language &amp; Text settings, but after a few seconds I realised that this wasn&#8217;t the layout I was looking for.</p>
<p>After some googling I found <a href="http://scripts.sil.org/ukelele">Ukulele</a>, a nice editor for creating custom keyboard layouts for OS X. So I created my own US International keyboard. I use the &#8220;USA International (ALtGr dead keys)&#8221; layout from GNOME as my draft, because I&#8217;m used to it. It has a very few differences to the US International layout described on <a href="http://en.wikipedia.org/wiki/Keyboard_layout#United_States">Wikipedia</a>. <span id="more-1335"></span> Here&#8217;s a screenshot of it:</p>
<div id="attachment_1336" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2010/08/us_international.png"><img class="size-large wp-image-1336" title="US International (AltGr dead keys) keyboard layout from GNOME" src="http://www.twam.info/wp-content/uploads/2010/08/us_international-560x178.png" alt="" width="560" height="178" /></a><p class="wp-caption-text">US International (AltGr dead keys) keyboard layout from GNOME</p></div>
<p>If you want to try, it is very easy to install:</p>
<ul>
<li>Download <a href="http://www.twam.info/wp-content/uploads/2010/08/U.S.%20International%20wo%20dead%20keys.keylayout">U.S. International wo dead keys.keylayout</a> to /Library/Keyboard Layouts on your Mac</li>
<li>Select &#8220;U.S. International w/o dead keys&#8221; in the Language &amp; Text section of the System Preferences</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/us-international-on-os-x/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>keyboard layouts &#8211; US International as ultimate solution?</title>
		<link>http://www.twam.info/hardware/keyboard-layouts-us-international-as-ultimate-solution</link>
		<comments>http://www.twam.info/hardware/keyboard-layouts-us-international-as-ultimate-solution#comments</comments>
		<pubDate>Tue, 01 Sep 2009 22:02:23 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[keyboard layout]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=897</guid>
		<description><![CDATA[As I grew up in Germany my keyboard layout has always been the QWERTZ based German keyboard layout. The main difference between QWERTY keyboard layouts is that the Z and Y keys are swapped and most special characters are moved to third level as the German language uses umlaut (diacritic) characters like ä, ö and [...]]]></description>
			<content:encoded><![CDATA[<p>As I grew up in <a href="http://en.wikipedia.org/wiki/Germany">Germany</a> my keyboard layout has always been the <a href="http://en.wikipedia.org/wiki/Keyboard_layout#QWERTZ">QWERTZ</a> based <a href="http://en.wikipedia.org/wiki/Keyboard_layout#Germany_and_Austria_.28but_not_Switzerland.29">German keyboard layout</a>. The main difference between <a href="http://en.wikipedia.org/wiki/Keyboard_layout#QWERTY">QWERTY</a> keyboard layouts is that the <span class="key">Z</span> and <span class="key">Y</span> keys are swapped and most special characters are moved to third level as the German language uses <a href="http://en.wikipedia.org/wiki/Umlaut_%28diacritic%29">umlaut</a> (diacritic) characters like ä, ö and ü and the <a href="http://en.wikipedia.org/wiki/Typographic_ligature">ligature</a> <a href="http://en.wikipedia.org/wiki/%C3%9F">ß</a>.</p>
<div id="attachment_900" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2009/09/german.png"><img class="size-full wp-image-900" title="German keyboard layout" src="http://www.twam.info/wp-content/uploads/2009/09/german.png" alt="German keyboard layout" width="560" height="187" /></a><p class="wp-caption-text">German keyboard layout © Wikimedia Commons</p></div>
<p>This is very handy for writing German text but if you program in programming languages like C, C++, Perl, PHP, &#8230; where brackets like [] and {} and slash/backslash are frequently used it&#8217;s a pain to use it. So I decided to change to the <a href="http://en.wikipedia.org/wiki/Keyboard_layout#United_States">US keyboard layout</a>, which I thought is the best choice as it is very popular. The problem was, that typing umlaut characters is very circumstantial as there is no standard method. <span id="more-897"></span></p>
<p>Most Linux users tend to assign combinations like <span class="key">Alt</span> + <span class="key">A</span> for typing Ä using <a href="http://www.xfree86.org/4.2.0/xmodmap.1.html">xmodmap</a>, but I wanted to use a standard way which would work on all operating systems and wouldn&#8217;t be a solution I&#8217;m the only person using it. After some googling I found the <a href="http://en.wikipedia.org/wiki/Keyboard_layout#United_States">US international keyboard</a> layout which puts nearly all commonly used characters with diacritical marks on a third level of the keyboard which can be accessed by the <span class="key">Alt Gr</span> key (usually the right <span class="key">Alt</span> key).</p>
<div id="attachment_899" class="wp-caption aligncenter" style="width: 570px"><a href="http://www.twam.info/wp-content/uploads/2009/09/us-international.png"><img class="size-full wp-image-899" title="US-International keyboard layout" src="http://www.twam.info/wp-content/uploads/2009/09/us-international.png" alt="US-International keyboard layout" width="560" height="187" /></a><p class="wp-caption-text">US-International keyboard layout © Wikimedia Commons</p></div>
<p>At first it was unfamiliar as ä,ö and ü are not on the third level of <spanclass="key">a</span>,<span class="key">o</span> and <span class="key">u</span> but <span class="key">q</span>,<span class="key">p</span> and <span class="key">y</span>. But after a few days working of it this wasn&#8217;t a problem anymore.</p>
<p>In the meantime I replaced all my keyboards to keyboard with US (international) layout and I&#8217;m not regretting it at any point. I even ordered a MacBook with a US (international) layout. The only problem is when a I have to fix some computers from time to time from family &amp; friends who use still a German keyboard layout <img src='http://www.twam.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So which keyboard layout are <strong>you</strong> using and why?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/keyboard-layouts-us-international-as-ultimate-solution/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone as modem: internet tethering</title>
		<link>http://www.twam.info/hardware/iphone/iphone-tethering</link>
		<comments>http://www.twam.info/hardware/iphone/iphone-tethering#comments</comments>
		<pubDate>Thu, 25 Jun 2009 13:54:18 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tethering]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=550</guid>
		<description><![CDATA[The iPhone OS 3.0 software update includes lots of new features, one called &#8220;Internet tethering&#8221;. It mean that you can use your iPhone as a modem to connect to the internet via GPRS or UMTS. My mobile provider O2 has a Internet flat rate for 10 € a month with UMTS speed for the first [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_551" class="wp-caption alignright" style="width: 150px"><a href="http://www.twam.info/wp-content/uploads/2009/06/tethering_info.png"><img class="size-medium wp-image-551" title="tethering info" src="http://www.twam.info/wp-content/uploads/2009/06/tethering_info-200x300.png" alt="tethering info" width="140" height="210" /></a><p class="wp-caption-text">tethering info</p></div>
<p>The <a href="http://www.apple.com/iphone/softwareupdate/">iPhone OS 3.0 software</a> update includes lots of new features, one called &#8220;Internet tethering&#8221;. It mean that you can use your iPhone as a modem to connect to the internet via GPRS or UMTS. My mobile provider <a href="http://www.o2online.de">O2</a> has a Internet flat rate for 10 € a month with UMTS speed for the first 200 MB and after this it is throttled to GPRS speed. So I asked in the local shop if it&#8217;s legal to use it with my laptop and they told me that it is. So I searched for some information how to set this up, and it&#8217;s very easy.<span id="more-550"></span></p>
<p>You only need to setup the correct information on the iPhone how to connect to the Internet. There&#8217;s <a href="http://www.apple.com/iphone/softwareupdate/">.mobileconfig generator</a> on <a href="http://www.iphone-notes.de">iphone-notes.de</a>: Just select your carrier and the information will be send to your email address. Open this mail on your iPhone and confirm to install the settings. Now you can enable Internet tethering in your settings. To use it, just plug in the USB cable (it&#8217;s also possible to use tethering via Bluetooth) and Windows Vista will automatically install drivers and do the rest for you.</p>
<div id="attachment_552" class="wp-caption alignright" style="width: 150px"><a href="http://www.twam.info/wp-content/uploads/2009/06/tethering_home.png"><img class="size-medium wp-image-552" title="tethering info on home screen" src="http://www.twam.info/wp-content/uploads/2009/06/tethering_home-200x300.png" alt="tethering info on home screen" width="140" height="210" /></a><p class="wp-caption-text">tethering info on home screen</p></div>
<p>If everything is set up, your iPhone will show a blue bar on the home and info screen informing you that it supplies Internet tethering.</p>
<p>It ran a quick flash speed test and it got about <strong>156 kbps download</strong> and <strong>23 kbps upload speed</strong> but here at home I have only GPRS connection. So this is not the ultimate replacement for an cable or DSL connection, but a cheap fallback and a nice-to-have feature while being on the road. <img src='http://www.twam.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_553" class="wp-caption alignleft" style="width: 157px"><a href="http://www.twam.info/wp-content/uploads/2009/06/tethering_vista.png"><img class="size-medium wp-image-553" title="tethering connection in Windows Vista" src="http://www.twam.info/wp-content/uploads/2009/06/tethering_vista-210x250.png" alt="tethering connection in Windows Vista" width="147" height="175" /></a><p class="wp-caption-text">tethering connection in Windows Vista</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/iphone/iphone-tethering/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;OCZ miniPCI-Express SSD (SATA)&#8221; without miniPCI-Express</title>
		<link>http://www.twam.info/hardware/ocz-minipci-express-ssd-sata-without-minipci-express</link>
		<comments>http://www.twam.info/hardware/ocz-minipci-express-ssd-sata-without-minipci-express#comments</comments>
		<pubDate>Thu, 11 Jun 2009 12:27:09 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SSD]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=524</guid>
		<description><![CDATA[I few days ago I found the OCZ miniPCI-Express SSD (SATA) by chance. On the website it claims to be an SSD with up to 110 MB/s read and up 51 MB/s write speed PCIe interface 16 GB or 32 GB size So this is much faster than my 40 MB/s 8GB CF Card I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_525" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/06/top.jpg"><img class="size-medium wp-image-525" title="OCZSSDMPES-16G" src="http://www.twam.info/wp-content/uploads/2009/06/top-210x92.jpg" alt="OCZSSDMPES-16G top side" width="210" height="92" /></a><p class="wp-caption-text">OCZSSDMPES-16G top side</p></div>
<p>I few days ago I found the <a href="http://www.ocztechnology.com/products/flash_drives/ocz_minipci_express_ssd-sata_">OCZ miniPCI-Express SSD (SATA)</a> by chance. On the website it claims to be an SSD with</p>
<ul>
<li>up to 110 MB/s read and up 51 MB/s write speed</li>
<li>PCIe interface</li>
<li>16 GB or 32 GB size</li>
</ul>
<p>So this is much faster than my 40 MB/s 8GB CF Card I&#8217;m currently using for my server and it&#8217;s much cheaper. <a href="http://www.amazon.de/OCZ-Mini-PCIe-SSD-16GB-S-ATA/dp/B00284AIW6/twam_de">Amazon</a> sells the 16 GB version for 57.50 EUR.</p>
<p>So I ordered one, but I got disappointed:<span id="more-524"></span></p>
<div id="attachment_527" class="wp-caption alignright" style="width: 219px"><a href="http://www.twam.info/wp-content/uploads/2009/06/size_comparison.jpg"><img class="size-medium wp-image-527" title="size comparison with WLAN card" src="http://www.twam.info/wp-content/uploads/2009/06/size_comparison-209x178.jpg" alt="size comparison with WLAN card" width="209" height="178" /></a><p class="wp-caption-text">size comparison with wifi card</p></div>
<p>The first problem was, that the card was longer than the standard <a href="http://en.wikipedia.org/wiki/PCI_Express#PCI_Express_Mini_Card">miniPCI-Express</a> Card (I only new about 2 different miniPCI-Express sizes: the standard size of 30x56mm and a half size of 30×31.9 mm) and so it doesn&#8217;t fit in my adapter card to use it in a normal <a href="http://en.wikipedia.org/wiki/PCI_Express">PCI-Express</a> slot.</p>
<p>So I had to remove that slot bracket and use a wire to fix the SSD to the adapter as the standard mounting holes couldn&#8217;t be used. I installed the card in the PCI-Express slot and connected the USB pins of the adapter to the USB port (miniPCI-Express slots provide additional USB and SMBus headers). It booted my PCI but neither BIOS nor operating systems (Linux 2.6, Windows Vista) did find any new PCI devices.</p>
<div id="attachment_526" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/06/ssd_adapter.jpg"><img class="size-medium wp-image-526" title="SSD in miniPCI-Express to PCI-Express adapter" src="http://www.twam.info/wp-content/uploads/2009/06/ssd_adapter-210x152.jpg" alt="SSD in miniPCI-Express to PCI-Express adapter" width="210" height="152" /></a><p class="wp-caption-text">SSD in miniPCI-Express to PCI-Express adapter</p></div>
<p>So I googled a little bit, and found that <a href="http://en.wikipedia.org/wiki/ASUS_Eee_PC">Asus EEE PC</a> uses SSD cards like this in some models and that other vendors than OCZ offers replacement modules for them. I even found a <a href="http://forum.eeeuser.com/viewtopic.php?id=60108#p530798">pin assignment</a> for the internal SATA/IDE port of those models using an miniPCI-Express connector (but <strong>not</strong> using miniPCI-Express). I checked my SSD card and found that exactly the same pins are used here. So I disassembled an old hard disk to use it&#8217;s SATA connectors and soldered the pins of the connector to the pins of the SSD card.</p>
<p>After installing the card in my PC and powering up, now there was a red power LED lightened up, so this looked promising, but neither BIOS nor operating systems did find any new SATA devices. So I thought back of the problems when connection RS232 devices when TX and RX on each devices have a different meaning and you have to cross connect them (like cross-over cables for Ethernet). So I crossed RX and TX lines, but this wasn&#8217;t a good idea: As soon as I powered on the PC there some smoke signals coming from the SSD chip which didn&#8217;t agree with my cabling. <img src='http://www.twam.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So my conclusion: <strong>Don&#8217;t buy this SSD</strong>. It doesn&#8217;t have an miniPCI-Express interface and so it won&#8217;t work on normal miniPCI-Express slots. Maybe it will work in some netbooks providing a special slot for them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/ocz-minipci-express-ssd-sata-without-minipci-express/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CHOST: i586 vs. i486 on AMD Geode LX</title>
		<link>http://www.twam.info/hardware/chost-i586-vs-i486-on-amd-geode-lx</link>
		<comments>http://www.twam.info/hardware/chost-i586-vs-i486-on-amd-geode-lx#comments</comments>
		<pubDate>Mon, 25 May 2009 18:27:01 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[CHOST]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=510</guid>
		<description><![CDATA[On my blog post about Installing Gentoo on ALIX.3D3 Mart Raudsepp made an interesting comment: He pointed out, that on AMD Geode CPUs it might be better to use i486 CHOST instead of my used i586, because the CPU is more like a i486 as far as instruction scheduling and times go. This sounded interesting, [...]]]></description>
			<content:encoded><![CDATA[<p>On my blog post about <a href="http://www.twam.info/linux/gentoo/installing-gentoo-on-alix3d3">Installing Gentoo on ALIX.3D3 </a>Mart Raudsepp made an interesting <a href="http://www.twam.info/linux/gentoo/installing-gentoo-on-alix3d3/comment-page-1#comment-67">comment</a>: He pointed out, that on AMD Geode CPUs it might be better to use i486 CHOST instead of my used i586, because the CPU is more like a i486 as far as instruction scheduling and times go.</p>
<p>This sounded interesting, so I googled for some benchmark test to measure differences. I found <a href="http://www.tux.org/~mayer/linux/bmark.html">nbench</a>, which measures performance by executing some typical algorithms and compares them to a Pentium 90 based system. So I installed it and run on the i586 CHOST system, then rebuild it completely to i486 CHOST and run it again.<span id="more-510"></span> The differences are not that huge, but on some algorithms they&#8217;re measurable:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/05/i486_i586_comparison.png"><img class="aligncenter size-full wp-image-513" title="i486 &amp; i586 CHOST comparison" src="http://www.twam.info/wp-content/uploads/2009/05/i486_i586_comparison.png" alt="i486 &amp; i586 CHOST comparison" width="580" height="450" /></a></p>
<p>The first 13 bars are the different algorithms. The main difference is on the string sort, which is heavily memory dependent. That last 3 rows are a index based on the algorithms. Here is main difference on memory index, as the normalized version shows very clear (positive values mean that i486 is faster):</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/05/i486_i586_comparison_normalized.png"><img class="aligncenter size-full wp-image-514" title="i486 &amp; i586 CHOST comparison (normalized)" src="http://www.twam.info/wp-content/uploads/2009/05/i486_i586_comparison_normalized.png" alt="i486 &amp; i586 CHOST comparison (normalized)" width="580" height="450" /></a></p>
<p>As there is no significant disadvantage of the i486 CHOST, this seems to be the choice. <img src='http://www.twam.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If anybody has other (free) benchmarks to suggest, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/chost-i586-vs-i486-on-amd-geode-lx/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>GPIO on ALIX.3D3</title>
		<link>http://www.twam.info/linux/gpio-on-alix3d3</link>
		<comments>http://www.twam.info/linux/gpio-on-alix3d3#comments</comments>
		<pubDate>Sun, 17 May 2009 13:41:35 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[Kernel]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=497</guid>
		<description><![CDATA[The AMD CS5536 Geode companion on the ALIX.3D3 board has several general purpose input/output pins. Most of them have different functions as well, and there are some registers to set if they should be used as special function GPIO pins. The ALIX.3D3 uses 4 GPIO pins for 3 LEDs and 1 mode switch. Accessing the [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022,00.html">AMD CS5536</a> Geode companion on the ALIX.3D3 board has several general purpose input/output pins. Most of them have different functions as well, and there are some registers to set if they should be used as special function GPIO pins. The ALIX.3D3 uses 4 GPIO pins for 3 LEDs and 1 mode switch. <a href="http://www.twam.info/hardware/alix/leds-on-alix3d3">Accessing the leds</a> is very easy using the leds-alix2 driver, but they can be addressed as GPIO as well. There is already a driver for the GPIO pins in the kernel named cs5535_gpio.c, but it uses a non standard interface to communicate with kernel. So, I wrote a new kernel driver using the GPIO interface.<span id="more-497"></span></p>
<p>Installating is very easy: Download the patch (<a href="http://www.twam.info/wp-content/uploads/2009/05/gpio.patch">GPIO drivers for AMD CS5535/CS5536 (Kernel 2.6.30-rc6)</a>), patch it and compile the kernel:</p>
<pre>wget http://www.twam.info/wp-content/uploads/2009/05/gpio.patch -O /root/gpio.patch
cd /usr/src/linux
patch -p1 &lt; /root/gpio.patch</pre>
<p>Now run kernel configuration and select</p>
<pre>Device Drivers  ---&gt;
   [*] GPIO Support  ---&gt;
   [*]   /sys/class/gpio/... (sysfs interface)
   &lt;*&gt;   AMD CS5535/CS5536 (Geode Companion Device)</pre>
<p>Compile the kernel and reboot. If you go to <em>/sys/class/gpio</em> there should be a file name <em>gpiochip0</em>. Now we can enable some pins and test them. By</p>
<pre>echo 6 &gt; /sys/class/gpio/export</pre>
<p>we tell the kernel, that we want to use pin 6 from userspace. Pin 6 is connected to led. Now we configure pin 6 as an output by</p>
<pre>echo out &gt; /sys/class/gpio/GPIO6/direction</pre>
<p>Now we can toggle the values by</p>
<pre>echo 1 &gt; /sys/class/gpio/GPIO6/value
sleep 1
echo 0 &gt; /sys/class/gpio/GPIO6/value</pre>
<div id="attachment_501" class="wp-caption alignright" style="width: 147px"><a href="http://www.twam.info/wp-content/uploads/2009/05/alix_modeswitch.jpg"><img class="size-medium wp-image-501" title="ALIX.3D3: modeswitch pins" src="http://www.twam.info/wp-content/uploads/2009/05/alix_modeswitch-196x300.jpg" alt="ALIX.3D3: modeswitch pins" width="137" height="210" /></a><p class="wp-caption-text">ALIX.3D3: modeswitch pins</p></div>
<p>Notice, that the LED is connected to 3.3V, so setting value to 0 it will be lit. The other LEDs are connected to pin 25 &amp; pin 27. On pin 24 is a switch connected. We can read the value by enabling the pin, setting it as an input and reading the value:</p>
<pre>echo 24 &gt; /sys/class/gpio/export
echo in &gt; /sys/class/gpio/GPIO24/direction
cat /sys/class/gpio/GPIO24/value</pre>
<p>As the pin has an internal pull up, it will show 1 if the switch isn&#8217;t pressed or installed. If you press the switch or connect to the metal pins, it will result in 0.</p>
<p>Don&#8217;t forget to unexport all pins after when you&#8217;re done:</p>
<pre>echo 6 &gt; /sys/class/gpio/unexport
echo 24 &gt; /sys/class/gpio/unexport</pre>
<p><strong>Any feedback on the driver is welcome!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/linux/gpio-on-alix3d3/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Using Geode&#8217;s AES engine on ALIX.3D3</title>
		<link>http://www.twam.info/hardware/alix/using-geodes-aes-engine-on-alix3d3</link>
		<comments>http://www.twam.info/hardware/alix/using-geodes-aes-engine-on-alix3d3#comments</comments>
		<pubDate>Wed, 13 May 2009 17:08:45 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LUKS]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=491</guid>
		<description><![CDATA[The AMD Geode LX800 CPU has an on-chip AES 128-bit crypto accelerations block and a true random number generator. Using this block for encryption and decryption is a lot faster than software implemented algorithms and it unloads the CPU. There are two main purposes where en/decryption is needed: Storing files Communication over network (IPSEC, OpenVPN, [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022,00.html">AMD Geode LX800</a> CPU has an on-chip AES 128-bit crypto accelerations block and a true random number generator. Using this block for encryption and decryption is a lot faster than software implemented algorithms and it unloads the CPU. There are two main purposes where en/decryption is needed:</p>
<ul>
<li>Storing files</li>
<li>Communication over network (IPSEC, OpenVPN, WPA2, &#8230;)</li>
</ul>
<p>I&#8217;ll focus on the first point in this article using <a href="http://en.wikipedia.org/wiki/LUKS">LUKS</a> (Linux Unified Key Setup).</p>
<p><span id="more-491"></span>To use LUKS and the crypto block, some kernel adjustments have to be made:</p>
<pre>Device Drivers  ---&gt;
   [*] Multiple devices driver support (RAID and LVM)  ---&gt;
   &lt;*&gt;   Device mapper support
   &lt;*&gt;     Crypt target support

-*- Cryptographic API  ---&gt;
   -*- Cryptographic algorithm manager
   -*- CBC support
   {*} ECB support
   {*} AES cipher algorithms
   &lt;*&gt; AES cipher algorithms (i586)
   -*-   MD5 digest algorithm
   &lt;*&gt; SHA224 and SHA256 digest algorithm
   [*] Hardware crypto devices  ---&gt;
   &lt;*&gt;   Support for the Geode LX AES engine</pre>
<p>If you want to test with and without crypto acceleration, I recommend compiling the last one as a module. After compiling and rebooting we have to install LUKE userspace tools:</p>
<pre>emerge -v cryptsetup</pre>
<p>That&#8217;s all. Now we&#8217;re ready to test. As we want to bandwidth limitation from a slow CF card or USB stick, we create a memory loopback device for testing purposes with a size of 128 MB:</p>
<pre>mkdir /tmp/tmpfs
mount -t tmpfs none /tmp/tmpfs -o size=130m
dd if=/dev/zero of=/tmp/tmpfs/test.img count=131072 bs=1024
losetup /dev/loop1 /tmp/tmpfs/test.img</pre>
<p>The tmpfs ramdisk is with intent 130MB large, as the maximum default value is 50% of RAM and with that 128 MB wouldn&#8217;t fit in.</p>
<p>At first, we want to measure software AES performance. For this, we have to assure, that the driver for the crypto block is not loaded. You can get a list of all loaded modules with</p>
<pre>lsmod</pre>
<p>If there&#8217;s geode_aes listed, remove it by</p>
<pre>rmmod geode_aes</pre>
<p>Now we can create a LUKS device by</p>
<pre>cryptsetup -y --cipher aes --key-size 128 luksFormat /dev/loop1</pre>
<p>Mind the key size of 128 bit as the Geode crypto block is only capable of 128 bit keys. You have to confirm this command with a uppercase YES and entering the passphrase twice:</p>
<pre>Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Command successful.</pre>
<p>Now we can open the container. Run</p>
<pre>cryptsetup luksOpen /dev/loop1 test</pre>
<p>and enter the previous set passphrase:</p>
<pre>Enter LUKS passphrase:
key slot 0 unlocked.
Command successful.</pre>
<p>The container is now under /dev/mapper/test and we can do some write test by running dd:</p>
<pre>dd if=/dev/zero of=/dev/mapper/test bs=16384</pre>
<p>After a few seconds, dd will terminate, complaining no space left:</p>
<pre>dd: writing `/dev/mapper/test': No space left on device
8160+0 records in
8159+0 records out
133689344 bytes (134 MB) copied, 18.574 s, 7.2 MB/s</pre>
<p>That&#8217;s OK. We can read here there 7.2 MB/s throughput with crypto block. After closing the container with</p>
<pre>cryptsetup luksClose test</pre>
<p>we can load the crypto block driver by</p>
<pre>modprobe geode_aes</pre>
<p>and can run the same commands as above. We&#8217;ll get a</p>
<pre>dd: writing `/dev/mapper/test': No space left on device
8160+0 records in
8159+0 records out
133689344 bytes (134 MB) copied, 4.88397 s, 27.4 MB/s</pre>
<p>noticing that we&#8217;ve got a 27.4 MB/s throughput now! This also works with <a href="http://de.wikipedia.org/wiki/ESSIV">ESSIV</a> as well. It&#8217;s a bit slower, but more secure. You can to alter the luksFormat to use it:</p>
<pre>cryptsetup -y --cipher aes-cbc-essiv:sha256 --key-size 128 luksFormat /dev/loop1</pre>
<p>I measured 7.0 MB/s without and 24.0 MB/s with crypto block. After all testing don&#8217;t forget to remove the loopback device and umount the ramdisk:</p>
<pre>losetup  -d /dev/loop1
umount /tmp/tmpfs/
rmdir /tmp/tmpfs</pre>
<p>Now you can setup your real crypto disk. You might want to initialize your partition with random data before creating the luksContainter. <em>dd</em> is once again your friend:</p>
<pre>dd if=/dev/urandom of=/dev/XXX bs=1M</pre>
<p>Concerning the use of the crypto block for network encryption: By chance it noticed that if I use WPA2 with AES the geode_aes has a 2 in the used row of lsmod:</p>
<pre>Module                  Size  Used by
lib80211_crypt_ccmp     4808  2
ipw2200               115904  0
libipw                 22792  1 ipw2200
geode_aes               5464  2
lib80211                4568  3 lib80211_crypt_ccmp,ipw2200,libipw</pre>
<p>So it seems, like WPA2 is using this as well. If you know a method to confirm this, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/alix/using-geodes-aes-engine-on-alix3d3/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Installing heat sink on ALIX.3D3</title>
		<link>http://www.twam.info/hardware/alix/installing-heat-sink-on-alix3d3</link>
		<comments>http://www.twam.info/hardware/alix/installing-heat-sink-on-alix3d3#comments</comments>
		<pubDate>Mon, 11 May 2009 17:34:47 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[Temperature]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=474</guid>
		<description><![CDATA[A few days ago, while I was compiling some stuff on my ALIX.3D3, I discovered a very high CPU temperature by chance: M/B Temp:    +59 C  (low  =    +0 C, high =   +70 C) CPU Temp:  +71.1 C  (low  =  +0.0 C, high = +70.0 C)   ALARM I downloaded the datasheet of the AMD Geode [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, while I was compiling some stuff on my ALIX.3D3, I discovered a very high CPU temperature by chance:</p>
<pre>M/B Temp:    +59 C  (low  =    +0 C, high =   +70 C)
CPU Temp:  +71.1 C  (low  =  +0.0 C, high = +70.0 C)   ALARM</pre>
<div id="attachment_476" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/alix3d3_heatsink.jpg"><img class="size-medium wp-image-476" title="Alix.3D3 with heatsink" src="http://www.twam.info/wp-content/uploads/2009/05/alix3d3_heatsink-210x130.jpg" alt="Alix.3D3 with heat sink" width="210" height="130" /></a><p class="wp-caption-text">Alix.3D3 with heat sink</p></div>
<p>I downloaded the <a href="http://www.amd.com/files/connectivitysolutions/geode/geode_lx/33234H_LX_databook.pdf">datasheet</a> of the <a href="http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022,00.html">AMD Geode LX800</a> CPU to check which temperatures are OK. On page 598 I found that my model (ALXD800EEXJ2VD) is fine for temperatures from 0 °C to 85 °C. Anyway I looked in my spare part box if I could find a suitable heat sink and fortunately I found a 40mm x 40mm x 9mm one. So I ordered some <a href="http://www.arcticsilver.com/arctic_silver_thermal_adhesive.htm">thermal adhesive</a> and installed it.</p>
<p><span id="more-474"></span></p>
<p>To see the advantage of it, I did some measurements. I compiled <a href="http://pages.sbcglobal.net/redelm/">cpuburn </a>and let it ran with and without heat sink. I tried with and without the case. All measurements were made with a <a href="http://www.intel.com/support/wireless/wlan/pro2915abg/">Intel 2915AGB</a> WiFi card and a SanDisk 4 GB Extreme III Compact Flash card installed. Room temperature was between 23.8 °C and 24.5 °C.</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/05/temp_cpu1.png"><img class="aligncenter size-full wp-image-484" title="ALIX.3D3 CPU temperature" src="http://www.twam.info/wp-content/uploads/2009/05/temp_cpu1.png" alt="ALIX.3D3 CPU temperature" width="580" height="300" /></a>After some start time it&#8217;s possible to see that temperature differences between the with heat sink and without heat sink curves is about 4 °C. After running the board for about an hour with 100% CPU load with the case, temperature was about 66.6 °C. That&#8217;s about 4 °C less than the measured 71.1 °C in the screenshot above.</p>
<p>So installing the heat sink results in only about 4 °C temperature difference, but installation was very simple and cheap.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/alix/installing-heat-sink-on-alix3d3/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding RS232 to Linksys WRT610N</title>
		<link>http://www.twam.info/hardware/adding-rs232-to-linksys-wrt610n</link>
		<comments>http://www.twam.info/hardware/adding-rs232-to-linksys-wrt610n#comments</comments>
		<pubDate>Sat, 09 May 2009 09:12:53 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RS232]]></category>
		<category><![CDATA[WRT610N]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=459</guid>
		<description><![CDATA[Today I received my new Linksys Router. It&#8217;s WRT610N with two wifi cards inside. One for traditional 2.4 GHz 802.11b/g/n and one for 5 GHz 802.11a/n. I&#8217;m planning to use OpenWRT or some other non standard firmware on it, so I wanted to add the RS232 console port I had on my old WRT54GS. Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Today I received my new Linksys Router. It&#8217;s <a href="http://www.linksysbycisco.com/US/en/products/WRT610N">WRT610N</a> with two wifi cards inside. One for traditional 2.4 GHz 802.11b/g/n and one for 5 GHz 802.11a/n. I&#8217;m planning to use OpenWRT or some other non standard firmware on it, so I wanted to add the RS232 console port I had on my old WRT54GS. Here&#8217;s how to use it:</p>
<p><span id="more-459"></span>First, we have to remove 4 screws on the bottom of the case. You&#8217;ll need a T10 TORX screwdriver for them.</p>
<div id="attachment_461" class="wp-caption aligncenter" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/screws.jpg"><img class="size-medium wp-image-461" title="WRT610N: 4 screws on the bottom" src="http://www.twam.info/wp-content/uploads/2009/05/screws-210x136.jpg" alt="4 screws on the bottom" width="210" height="136" /></a><p class="wp-caption-text">4 screws on the bottom</p></div>
<p>You we have to lift the cover. It has 11 points to snap in which have to carefully unsnap with a small screwdriver. It started in the middle of the front and unsnapped one from each side and so on.</p>
<div id="attachment_466" class="wp-caption aligncenter" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/cover_snaps.jpg"><img class="size-medium wp-image-466" title="WRT610N: Snap points on the cover" src="http://www.twam.info/wp-content/uploads/2009/05/cover_snaps-210x128.jpg" alt="Snap points on the cover" width="210" height="128" /></a><p class="wp-caption-text">Snap points on the cover</p></div>
<p>After unplugging the six antenna cables (Remember where each has been plugged into) you should be able to remove the board. On the bottom you should see 5 contacts in the upper left corner. It has the follow pin assignments:</p>
<table border="0">
<tbody>
<tr>
<th>PIN</th>
<th>Signal</th>
</tr>
<tr>
<td>1</td>
<td>+3.3V</td>
</tr>
<tr>
<td>2</td>
<td>RS232 TX</td>
</tr>
<tr>
<td>3</td>
<td>RS232 RX</td>
</tr>
<tr>
<td>4</td>
<td>?</td>
</tr>
<tr>
<td>5</td>
<td>GND</td>
</tr>
</tbody>
</table>
<p>I soldered a wire to pin 1,2,3 and 5 and run them in one of the holes in the bottom of the case.</p>
<div id="attachment_468" class="wp-caption aligncenter" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/rs232-pins.jpg"><img class="size-medium wp-image-468" title="WRT610N: RS232 pins" src="http://www.twam.info/wp-content/uploads/2009/05/rs232-pins-210x169.jpg" alt="RS232 pins" width="210" height="169" /></a><p class="wp-caption-text">RS232 pins</p></div>
<p>The TX/RX pins have 3.3V level signals. To connect them to a standard RS232 port they have to be ±12V. The conversion is very easy, as there are several standard ICs for this purpose. I used an MAX3233 chip. It&#8217;s <a href="http://datasheets.maxim-ic.com/en/ds/MAX3233E-MAX3235E.pdf">datasheet</a> shows a typical application on page 12:</p>
<div id="attachment_469" class="wp-caption aligncenter" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/max3233.png"><img class="size-medium wp-image-469" title="MAX3233: Typical application" src="http://www.twam.info/wp-content/uploads/2009/05/max3233-210x265.png" alt="MAX3233: Typical application" width="210" height="265" /></a><p class="wp-caption-text">MAX3233: Typical application</p></div>
<p>I connected pin4 to TX, pin 6 to RX, pin 9/10 to +3.3V and pin 5/18 to GND. On the PC side you have to use a standard D-SUB9 female connector. Connected pin 5 of the connector to GND, pin 2 of the connector to pin 7 of the chip and pin 3 of the connector to pin 8 of the chip. That&#8217;s all.</p>
<p>Now start your favorite terminal program, set it to 115200 8N1 and power on the Linksys. It should print something like</p>
<pre>CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Wed Jun 25 19:11:21 CST 2008 (ljh@team2-complier)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

Initializing Arena
Initializing PCI. [normal]
PCI bus 0 slot 0/0: vendor 0x14e4 product 0x0800 (flash memory, rev 0x02)
PCI bus 0 slot 1/0: vendor 0x14e4 product 0x471f (ethernet network, rev 0x02)
PCI bus 0 slot 2/0: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x10, rev 0x02)
PCI bus 0 slot 2/1: vendor 0x14e4 product 0x471a (USB serial bus, interface 0x20, rev 0x02)
PCI bus 0 slot 3/0: vendor 0x14e4 product 0x471b (USB serial bus, rev 0x02)
PCI bus 0 slot 4/0: vendor 0x14e4 product 0x0804 (PCI bridge, rev 0x02)
PCI bus 0 slot 5/0: vendor 0x14e4 product 0x0816 (MIPS processor, rev 0x02)
PCI bus 0 slot 6/0: vendor 0x14e4 product 0x471d (IDE mass storage, rev 0x02)
PCI bus 0 slot 7/0: vendor 0x14e4 product 0x4718 (network/computing crypto, rev 0x02)
PCI bus 0 slot 8/0: vendor 0x14e4 product 0x080f (RAM memory, rev 0x02)
PCI bus 0 slot 9/0: vendor 0x14e4 product 0x471e (class 0xfe, subclass 0x00, rev 0x02)
Initializing Devices.

No DPN
This is a Parallel Flash
Boot partition size = 262144(0x40000)
Partition information:
boot    #00   00000000 -&gt; 0003FFFF  (262144)
trx     #01   00040000 -&gt; 0004001B  (28)
os      #02   0004001C -&gt; 007F7FFF  (8093668)
nvram   #03   007F8000 -&gt; 007FFFFF  (32768)
Partition information:
boot    #00   00000000 -&gt; 0003FFFF  (262144)
trx     #01   00040000 -&gt; 007F7FFF  (8093696)
nvram   #02   007F8000 -&gt; 007FFFFF  (32768)
PCI bus 0 slot 1/0: pci_map_mem: attempt to map 64-bit region tag=0x800 @ addr=18010004
PCI bus 0 slot 1/0: pci_map_mem: addr=0x18010004 pa=0x18010000
ge0: BCM5750 Ethernet at 0x18010000
CPU type 0x2901A: 300MHz
Total memory: 65536 KBytes

Total memory used by CFE:  0x80700000 - 0x807A60E0 (680160)
Initialized Data:          0x8073A2E0 - 0x8073E570 (17040)
BSS Area:                  0x8073E570 - 0x807400E0 (7024)
Local Heap:                0x807400E0 - 0x807A40E0 (409600)
Stack Area:                0x807A40E0 - 0x807A60E0 (8192)
Text (code) segment:       0x80700000 - 0x8073A2E0 (238304)
Boot area (physical):      0x007A7000 - 0x007E7000
Relocation Factor:         I:00000000 - D:00000000

Boot version: v4.2
The boot is CFE</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/adding-rs232-to-linksys-wrt610n/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LEDs on ALIX.3D3</title>
		<link>http://www.twam.info/hardware/alix/leds-on-alix3d3</link>
		<comments>http://www.twam.info/hardware/alix/leds-on-alix3d3#comments</comments>
		<pubDate>Fri, 08 May 2009 17:43:13 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=443</guid>
		<description><![CDATA[As most of the ALIX boards, the ALIX.3D3 has 3 general purpose LEDs. There is kernel support for them, but there are problems when the board has a Award BUIS as the ALIX.3D3. After reading the datasheet of the AMD CS5536 Geode companion about initialisation and use of the general purpose pins I got it [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_444" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/alix_leds.jpg"><img class="size-medium wp-image-444" title="LEDs on ALIX.3D3" src="http://www.twam.info/wp-content/uploads/2009/05/alix_leds-210x163.jpg" alt="LEDs on ALIX.3D3" width="210" height="163" /></a><p class="wp-caption-text">LEDs on ALIX.3D3</p></div>
<p>As most of the ALIX boards, the ALIX.3D3 has 3 general purpose LEDs. There is kernel support for them, but there are problems when the board has a Award BUIS as the ALIX.3D3. After reading the <a href="http://www.amd.com/files/connectivitysolutions/geode/geode_lx/33238G_cs5536_db.pdf">datasheet</a> of the <a href="http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022,00.html">AMD CS5536</a> Geode companion about initialisation and use of the general purpose pins I got it finally running!<span id="more-443"></span></p>
<p>There are 2 problems with Award BIOS. On the one hand it contains no parseable string referring to the board, so the auto detection of the board in driver doesn&#8217;t work and the initialisation of at least 1 LEDs is wrong. The first problem is easy to solve, by forcing the kernel to load the driver. For the second problem I wrote a small kernel patch (see Update at the end of the post): <a href="http://www.twam.info/wp-content/uploads/2009/05/led.patch">leds-alix2 kernel patch for 2.6.29</a></p>
<p>So how to get them running? First of all we need to patch the Linux kernel and then active support. Download the <a href="http://www.twam.info/wp-content/uploads/2009/05/led.patch">patch</a> to your box and run</p>
<pre>wget http://www.twam.info/wp-content/uploads/2009/05/led.patch -O /root/leds-alix2.patch
cd /usr/src/linux
patch -p1 &lt; /root/leds-alix2.patch</pre>
<p>Now run kernel configuration and select</p>
<pre>Device Drivers  ---&gt;
   [*] LED Support  ---&gt;
      &lt;*&gt;   LED Class Support
            *** LED drivers ***
      &lt;*&gt;   LED Support for ALIX.2 and ALIX.3 series
            *** LED Triggers ***
      [*]   LED Trigger support
      &lt;*&gt;     LED Timer Trigger
      &lt;*&gt;     LED Heartbeat Trigger
      &lt;*&gt;     LED Default ON Trigger</pre>
<p>compile the kernel and adjust the kernel boot line by adding <em>leds-alix2.force=1</em> to force the kernel to load the driver. If you use GRUB append it to the kernel line in /boot/grub.menu.lst:</p>
<pre>kernel /boot/vmlinuz root=/dev/sda2 lxfb.mode_option=1280x1024@60 leds-alix2.force=1</pre>
<p>After rebooting, dmesg should show something like</p>
<pre>[    2.819802] leds_alix2: forced to skip BIOS test, assume system has ALIX.2 style LEDs
[    2.833003] Registered led device: alix:1
[    2.845860] Registered led device: alix:2
[    2.858804] Registered led device: alix:3</pre>
<p>and you should be able to able to switch on/off the LEDs for example by</p>
<pre>echo 1 &gt; /sys/class/leds/alix\:3/brightness
sleep 5
echo 0 &gt; /sys/class/leds/alix\:3/brightness</pre>
<p>LED 3 should lit up for 5 seconds. If it&#8217;s working it&#8217;s time to test some triggers. Try</p>
<pre>echo heartbeat &gt; /sys/class/leds/alix\:2/trigger</pre>
<p>LED 2 should blink like:   pulse &#8211; short pause &#8211; pulse &#8211; long pause &#8211; pulse &#8211; short pause &#8211; &#8230;</p>
<p>Another trigger is timer:</p>
<pre>echo timer  &gt; /sys/class/leds/alix\:1/trigger
echo 1000 &gt; /sys/class/leds/alix\:1/delay_on
echo 100 &gt; /sys/class/leds/alix\:1/delay_on</pre>
<p>should activate the LED for 1000ms and then switch it off for 100ms and start again. I enabled this 2 triggers and made a simple demo video:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.youtube.com/v/n6ErdNEuLfo&amp;hl=de&amp;fs=1" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/n6ErdNEuLfo&amp;hl=de&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/n6ErdNEuLfo&amp;hl=de&amp;fs=1" allowscriptaccess="always" allowfullscreen="true" data="http://www.youtube.com/v/n6ErdNEuLfo&amp;hl=de&amp;fs=1"></embed></object></p>
<p><strong>Update</strong>: In kernel 2.6.31 the patch isn&#8217;t required anymore, as it was <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2216c6e83ccbc9d34f541621ff23f510cd8a256f">accepted</a> in the mainline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/alix/leds-on-alix3d3/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Adding additional I²C sensors to ALIX.3D3</title>
		<link>http://www.twam.info/hardware/alix/adding-additional-i2c-sensors-to-alix3d3</link>
		<comments>http://www.twam.info/hardware/alix/adding-additional-i2c-sensors-to-alix3d3#comments</comments>
		<pubDate>Thu, 07 May 2009 20:02:03 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[Alix]]></category>
		<category><![CDATA[ALIX.3D3]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sensor]]></category>
		<category><![CDATA[Temperature]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=429</guid>
		<description><![CDATA[The manual of the ALIX.3D3 board mentions a lot of pin descriptions of all pin headers on the board. J8 interfaces the SMBus of the AMD CS5536 Geode companion (which is compatible to I²C if bus speed is below 100kHz, see Maxim’s Appnote for detailed comparison). So why not add additional I²C sensors. As an [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_431" class="wp-caption alignright" style="width: 220px"><a href="http://www.twam.info/wp-content/uploads/2009/05/smbus.jpg"><img class="size-medium wp-image-431" title="J8: SMBus" src="http://www.twam.info/wp-content/uploads/2009/05/smbus-210x157.jpg" alt="J8: SMBus" width="210" height="157" /></a><p class="wp-caption-text">J8: SMBus</p></div>
<p>The <a href="http://www.alix-box.info/wiki/images/Alix2.pdf">manual</a> of the ALIX.3D3 board mentions a lot of pin descriptions of all pin headers on the board. J8 interfaces the <a href="http://www.smbus.org/">SMBus</a> of the <a href="http://www.amd.com/us-en/ConnectivitySolutions/ProductInformation/0,,50_2330_9863_13022,00.html">AMD CS5536</a> Geode companion (which is compatible to <a href="http://de.wikipedia.org/wiki/I%C2%B2C">I²C</a> if bus speed is below 100kHz, see <a href="http://www.maxim-ic.com/appnotes.cfm/appnote_number/476">Maxim’s Appnote</a> for detailed comparison). So why not add additional I²C sensors. As an example I connected an <a href="http://www.national.com/ds/LM/LM75.pdf">LM75</a> temperature sensor.</p>
<p>First of all we need to add some pin headers to J8 found on board next to the USB port. <span id="more-429"></span>The pin assignment can be found on page 18 of the <a href="http://www.alix-box.info/wiki/images/Alix2.pdf">manual</a>:</p>
<table border="0">
<tbody>
<tr>
<th>PIN</th>
<th>signal</th>
<th>descriptions</th>
</tr>
<tr>
<td>1</td>
<td>+3.3V</td>
<td>power supply</td>
</tr>
<tr>
<td>2</td>
<td>SMB_SCL</td>
<td>SMBus/I²C clock</td>
</tr>
<tr>
<td>3</td>
<td>SMB_SDA</td>
<td>SMBus/I²C data</td>
</tr>
<tr>
<td>4</td>
<td>GND</td>
<td>ground</td>
</tr>
</tbody>
</table>
<p>We have to connect these four lines with the power (pin 8), SDA (pin 1), SCL (pin 2) and ground (pin 4) of the LM75 chip. A0, A1 and A2 have to be connected either to GND or power. The level on these pins configure the slave address of the device. I connected all of them with GND. The typical application example found in the <a href="http://www.national.com/ds/LM/LM75.pdf">datasheet</a> advises an 100 nF capacitor between pin 4 and pin 8 close to the chip:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/05/lm75.png"><img class="aligncenter size-full wp-image-428" title="LM75: Typical application" src="http://www.twam.info/wp-content/uploads/2009/05/lm75.png" alt="LM75: Typical application" width="400" height="280" /></a></p>
<p>If soldered the LM75 (a smd chip) to an adapter and connected everything on a bread board:</p>
<p><a href="http://www.twam.info/wp-content/uploads/2009/05/lm75_wired.jpg"><img class="aligncenter size-medium wp-image-436" title="LM75 wired on bread board" src="http://www.twam.info/wp-content/uploads/2009/05/lm75_wired-210x196.jpg" alt="LM75 wired on bread board" width="210" height="196" /></a></p>
<p>If everything is connected it&#8217;s time to add software support. I assume you already installed the onboard temperature sensors descriped in my <a href="http://www.twam.info/hardware/alix/temperature-sensor-on-alix3d3">previous article</a>. So, only support for the LM75 is need in the kernel:</p>
<pre>Device Drivers  ---&gt;
   &lt;*&gt; Hardware Monitoring support  ---&gt;
      &lt;*&gt;   National Semiconductor LM75 and compatibles</pre>
<p>After compiling and rebooting you can run <em>sensors</em> again. It should show up the new device:</p>
<pre>lm75-i2c-0-48
Adapter: CS5536 ACB0
temp:      +30.0 C  (high = +80.0 C, hyst = +75.0 C)</pre>
<p>So connecting additional sensors is very easy (when they&#8217;re support in the kernel).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/alix/adding-additional-i2c-sensors-to-alix3d3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ultimative iPhone geek application</title>
		<link>http://www.twam.info/hardware/iphone/ultimative-iphone-geek-application</link>
		<comments>http://www.twam.info/hardware/iphone/ultimative-iphone-geek-application#comments</comments>
		<pubDate>Wed, 06 May 2009 22:14:54 +0000</pubDate>
		<dc:creator>twam</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Geek]]></category>

		<guid isPermaLink="false">http://www.twam.info/?p=420</guid>
		<description><![CDATA[&#8220;Ever wished you could swing your iPhone around like a lightsaber?&#8221; This questions is the start of the description of Lightsaber Unleashed &#8211; a must-have application for every geek. You enable/disable your lightsaber by clicking on the lightsaber, while your iPhone emits sound effects from your phone&#8217;s speaker. When you swing around your the sound [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_421" class="wp-caption alignright" style="width: 150px"><a href="http://www.twam.info/wp-content/uploads/2009/05/lightsaber.jpg"><img class="size-medium wp-image-421" title="Lightsaber Unleashed" src="http://www.twam.info/wp-content/uploads/2009/05/lightsaber-200x300.jpg" alt="Lightsaber Unleashed" width="140" height="210" /></a><p class="wp-caption-text">Lightsaber Unleashed</p></div>
<p>&#8220;Ever wished you could swing your iPhone around like a lightsaber?&#8221;</p>
<p>This questions is the start of the description of <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=283265667&amp;mt=8">Lightsaber Unleashed</a> &#8211; a must-have application for every geek.</p>
<p>You enable/disable your lightsaber by clicking on the lightsaber, while your iPhone emits sound effects from your phone&#8217;s speaker. When you swing around your the sound effect&#8217;s too. It&#8217;s very funny and for free!</p>
<p>So, I&#8217;m looking for someone to duel!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.twam.info/hardware/iphone/ultimative-iphone-geek-application/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

