<?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>Madox.NET &#187; Firefox</title>
	<atom:link href="http://www.madox.net/blog/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madox.net/blog</link>
	<description>Perversions of an Engineer</description>
	<lastBuildDate>Mon, 30 Jan 2012 12:21:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Reverse Engineering the Mazda CAN Bus – Part 2</title>
		<link>http://www.madox.net/blog/2009/10/24/reverse-engineering-the-mazda-can-bus-%e2%80%93-part-2/</link>
		<comments>http://www.madox.net/blog/2009/10/24/reverse-engineering-the-mazda-can-bus-%e2%80%93-part-2/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 13:03:48 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Perverse Applications of Science...]]></category>
		<category><![CDATA[CAN Bus]]></category>
		<category><![CDATA[Chumby]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Mazda]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=545</guid>
		<description><![CDATA[This is probably the most ridiculous way to reverse engineer something to date&#8230; a Chumby, an EasySync CAN Sniffer, PHP and JavaScript&#8230; but it works. Instead of designing and building my own daughter-board for the Chumby, I bought an EasySync CAN USB converter which only has one CAN interface [and its not worth buying two].  [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_546" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.madox.net/blog/wp-content/uploads/2009/10/Screenshot-CAN-Bus-Sniffer-Mozilla-Firefox.png"><img class="size-medium wp-image-546" title="Screenshot-CAN Bus Sniffer - Mozilla Firefox" src="http://www.madox.net/blog/wp-content/uploads/2009/10/Screenshot-CAN-Bus-Sniffer-Mozilla-Firefox-450x421.png" alt="HTML Can Sniffer" width="450" height="421" /></a><p class="wp-caption-text">HTML Can Sniffer</p></div>
<p>This is probably the most ridiculous way to <a href="http://www.madox.net/blog/2008/11/17/reverse-engineering-the-mazda-can-bus-part-1/" target="_blank">reverse engineer</a> something to date&#8230; a <a href="http://www.chumby.com/">Chumby</a>, an <a href="http://www.madox.net/blog/2009/06/30/easysync-usb-can-bus-adapter-works-great-in-ubuntu-after-some-fiddling/" target="_blank">EasySync CAN Sniffer</a>, PHP and JavaScript&#8230; but it works.</p>
<p><span id="more-545"></span></p>
<p>Instead of designing and building my own daughter-board for the Chumby, I bought an EasySync CAN USB converter which only has one CAN interface [and its not worth buying two].  This means I will have to use the Mazda&#8217;s MS-CAN bus only [That's where the fuel/trip computer information is].  Only one problem, I didn&#8217;t pay much attention to the MS-CAN bus before and the MS-CAN bus isn&#8217;t as interesting as the HS-CAN.</p>
<p>So new mission to find out what else is on the MS-CAN bus now.  Problem is, the nature of the information on the MS-CAN is different to the HS-CAN.  For example, something like Speed on the HS-CAN was pretty easy to decipher from just logging the data then plotting again.  Trying to figure out &#8216;door open&#8217; for example on the MS-CAN is a lot hard this way.</p>
<p>I needed a tool to help me decipher the secrets of the MS-CAN, and I ended up writing (copy and pasting from old code) a ridiculous combination of PHP scripts for the chumby, a JavaScript/HTML front end.  All done and tested in 2 hours (lots of copy and pasting&#8230;) it works quite well.</p>
<h2>How it works</h2>
<ul>
<li>A background PHP script talks to the EasySync converter and reads the CAN messages that is being sent on the bus and makes this available to another data retrieval PHP script via sessions.</li>
<li>The front end HTML/Javascript combination calls upon the data retrieval PHP, which feeds it XML on the messages for example the CAN Identifer and the timestamp.</li>
<li>The XML is parsed and is rendered into a table for display, data is refreshed at periodic intervals.</li>
<li>The Javascript compares the XML values with the already rendered values before updating to detect a change in value.  If there is a change, the background of the &#8216;byte&#8217; field changes.</li>
<li>A keypress monitor allows the user to &#8216;reset&#8217; the changed background colours.</li>
<li>Code attached below if you want to peek at the mess&#8230;</li>
</ul>
<h2>How I used it</h2>
<p>Basically sat in the car with the sniffer running and trying various combinations to see which bit/byte changed.  e.g. Run sniffer, open a door, see message &#8217;433&#8242; byte &#8217;0&#8242; change colour, write down what changed, reset fields, open another door/do something else.</p>
<p>There were a few useful fields that I found/reconfirmed.  Nothing too interesting though and alot is disappointing.  For example there is information regarding headlight high beam being on, but not just normal headlights.  I suppose that&#8217;s because the high beam is displayed on the instrument panel whilst normal headlights doesn&#8217;t display/do anything.</p>
<p>Another disappointing thing is that the &#8216;ass/arse sensor&#8217; (that&#8217;s what I call the passenger seat detection gizmo) is only a boolean signal&#8230;no pressure sensing in it at all.  Would have been useful if it was an analogue signal, could have been good for the mChumby display &#8211; &#8220;Warning, the girl on the passenger seat weighs 87kg, do not go on another date&#8221;.</p>
<p>I&#8217;ll be updating the new information to the <a href="http://www.madox.net/blog/2008/11/17/reverse-engineering-the-mazda-can-bus-part-1/" target="_blank">Mazda CAN Bus</a> page in the next couple of days&#8230; check back then to see what&#8217;s new.</p>
<p><a href="http://www.madox.net/blog/wp-content/uploads/2009/10/cansniffer.zip">Download cansniffer.zip</a> (There&#8217;s still a bug with the timestamp I&#8217;m too lazy to fix&#8230; disclaimer this is hobby/crappy code <img src='http://www.madox.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2009/10/24/reverse-engineering-the-mazda-can-bus-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 &#8211; Jaunty Jackalope AMD64 (64 bit)</title>
		<link>http://www.madox.net/blog/2009/04/24/ubuntu-904-jaunty-jackalope-amd64-64-bit/</link>
		<comments>http://www.madox.net/blog/2009/04/24/ubuntu-904-jaunty-jackalope-amd64-64-bit/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 10:40:17 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Problems Help]]></category>
		<category><![CDATA[Software Tips & Tricks]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Free Software Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=317</guid>
		<description><![CDATA[I&#8217;ve finally made the jump and using the AMD64 version of Ubuntu as my primary installation.  There are a couple of tricky things to deal with, primarily with closed sourced applications such as Adobe Flash Plugin and Skype which are two applications I need to use. How to install Adobe Flash Plugin 64 Bit for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally made the jump and using the AMD64 version of Ubuntu as my primary installation.  There are a couple of tricky things to deal with, primarily with closed sourced applications such as Adobe Flash Plugin and Skype which are two applications I need to use.</p>
<h2>How to install Adobe Flash Plugin 64 Bit for Ubuntu 9.04</h2>
<p>A lot of the tutorials/guides online will tell you to use nspluginwrapper or similar.  Adobe has released an &#8216;alpha&#8217; version of their 64 bit player which is pretty stable so far&#8230;</p>
<p>Download it from :-<a href="http://labs.adobe.com/downloads/flashplayer10.html" target="_blank">http://labs.adobe.com/downloads/flashplayer10.html</a></p>
<p>Unpack the archive and copy the only file to the Firefox plugins folder in &#8216;<em>/usr/lib/firefox-addons/plugins</em>&#8216; :-</p>
<blockquote><p>sudo cp libflashplayer.so /usr/lib/firefox-addons/plugins</p></blockquote>
<h2>How to install Skype 64 bit for Ubuntu 9.04</h2>
<p>You would think you could just go to www.skype.com and ask for a download and it&#8217;ll be like the Adobe site detecting that you have a 64 bit system right?  Wrong (at time of writing).  Annoyingly that&#8217;ll just let you download an i386 package!</p>
<p>You could manually remedy this by downloading the AMD64 .deb package from :-<br />
<a href="http://www.skype.com/go/getskype-linux-ubuntu-amd64" target="_blank">http://www.skype.com/go/getskype-linux-ubuntu-amd64</a></p>
<h2>Everything else?</h2>
<p>So far the respositories have been kind to me&#8230; but i&#8217;ll update if I run into any other troubles <img src='http://www.madox.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Voila happy 64 bit Ubuntu&#8217;ing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2009/04/24/ubuntu-904-jaunty-jackalope-amd64-64-bit/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Java not working on Firefox 3.0.4 in Ubuntu 8.10 Intrepid Ibex?</title>
		<link>http://www.madox.net/blog/2008/11/19/java-not-working-on-firefox-304-in-ubuntu-810-intrepid-ibex/</link>
		<comments>http://www.madox.net/blog/2008/11/19/java-not-working-on-firefox-304-in-ubuntu-810-intrepid-ibex/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:26:12 +0000</pubDate>
		<dc:creator>Madox</dc:creator>
				<category><![CDATA[Software Problems Help]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=32</guid>
		<description><![CDATA[Well it was just nagging me, and for anyone who runs into this problem here&#8217;s the solution (to the ever moving Firefox path problem) cd /usr/lib/firefox-3.0.4/plugins sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so Assuming you already had the sun-java packages (anyway if not just get it).]]></description>
			<content:encoded><![CDATA[<p>Well it was just nagging me, and for anyone who runs into this problem here&#8217;s the solution (to the ever moving Firefox path problem)</p>
<blockquote><p>cd /usr/lib/firefox-3.0.4/plugins</p>
<p>sudo ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so</p></blockquote>
<p>Assuming you already had the sun-java packages (anyway if not just get it).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2008/11/19/java-not-working-on-firefox-304-in-ubuntu-810-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

