<?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; Software Problems Help</title>
	<atom:link href="http://www.madox.net/blog/category/software-problems-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madox.net/blog</link>
	<description>Perversions of an Engineer</description>
	<lastBuildDate>Mon, 12 Jul 2010 12:16:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>EasySync USB-CAN Bus Adapter &#8211; Works great in Ubuntu after some fiddling</title>
		<link>http://www.madox.net/blog/2009/06/30/easysync-usb-can-bus-adapter-works-great-in-ubuntu-after-some-fiddling/</link>
		<comments>http://www.madox.net/blog/2009/06/30/easysync-usb-can-bus-adapter-works-great-in-ubuntu-after-some-fiddling/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 12:52:30 +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[CAN Bus]]></category>
		<category><![CDATA[Chumby]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Free Software Tips]]></category>
		<category><![CDATA[FTDI]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.madox.net/blog/?p=476</guid>
		<description><![CDATA[The toys just keep coming in!  Another one of those wallet killing impulsive orders whilst I was sick in bed last week just arrived today, a USB-CAN bus converter module by EasySync that promises a great interface and should work in Linux!  This will give a little bump start to my Mazda CAN Bus / [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_477" class="wp-caption aligncenter" style="width: 368px"><a href="http://www.madox.net/blog/wp-content/uploads/2009/06/CIMG2414A.JPG"><img class="size-medium wp-image-477" title="CIMG2414A" src="http://www.madox.net/blog/wp-content/uploads/2009/06/CIMG2414A-358x300.jpg" alt="Neat little package" width="358" height="300" /></a><p class="wp-caption-text">Neat little package</p></div>
<p>The toys just keep coming in!  Another one of those wallet killing impulsive orders whilst I was sick in bed last week just arrived today, a USB-CAN bus converter module by <a href="http://www.easysync.co.uk/" target="_blank">EasySync</a> that promises a great interface and should work in Linux!  This will give a little bump start to my <a href="http://www.madox.net/blog/mazda-can-bus/" target="_blank">Mazda CAN Bus</a> / <a href="http://www.madox.net/blog/2009/03/23/mchumby-mazdamadox-chumby/" target="_blank">mChumby</a> projects.</p>
<p><em>Note : EasySync UK&#8217;s online form doesn&#8217;t allow international shipping but a short E-mail or two managed that.  There is a US subsidiary with US and international shipping, but the international shipping rates on the US site is plain ridiculous [$68USD to ship a $88 device to Australia].</em></p>
<p><em>Note 2 : I hear the interface is mimicking the Lawicel CAN-USB interface&#8230;only hearsay&#8230;<br />
</em></p>
<p>Plugged it in &#8211; didn&#8217;t work.  Doh!  Took a peek at the manual and website, nothing on Linux other than &#8220;Linux drivers provided&#8221;&#8230; So much for the marketing material, guess I have to try make it work myself.  (Yes I got it working, read on for the quick run-down post aimed at helping others)</p>
<p><span id="more-476"></span></p>
<div id="attachment_478" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.madox.net/blog/wp-content/uploads/2009/06/CIMG2417A.JPG"><img class="size-medium wp-image-478" title="CIMG2417A" src="http://www.madox.net/blog/wp-content/uploads/2009/06/CIMG2417A-450x282.jpg" alt="Sneak peek inside the box" width="450" height="282" /></a><p class="wp-caption-text">Sneak peek inside the box</p></div>
<p>Now with the photos out of the way, a little bit of detective work is ahead of us&#8230; why doesn&#8217;t this thing work&#8230; I paid so much money for it to replace the qprotos adapter!</p>
<p>A little bit of lsusb (or cat /proc/bus/usb/devices if you&#8217;ve got usbdevfs) sleuthing later&#8230;</p>
<blockquote>
<pre>Bus 003 Device 004: ID 0403:fac6 Future Technology Devices International, Ltd
Device Descriptor:
 bLength                18
 bDescriptorType         1
 bcdUSB               2.00
 bDeviceClass            0 (Defined at Interface level)
 bDeviceSubClass         0
 bDeviceProtocol         0
 bMaxPacketSize0         8
 idVendor           0x0403 Future Technology Devices International, Ltd
 idProduct          0xfac6
 bcdDevice            6.00
 iManufacturer           1 EasySync
 iProduct                2 USB2-F-7001 CAN-Plus Adapter
 iSerial                 3 ESNFWLPL
 bNumConfigurations      1
 Configuration Descriptor:
 bLength                 9
 bDescriptorType         2
 wTotalLength           32
 bNumInterfaces          1
 bConfigurationValue     1
 iConfiguration          0
 bmAttributes         0x80
 (Bus Powered)
 MaxPower              150mA
 Interface Descriptor:
 bLength                 9
 bDescriptorType         4
 bInterfaceNumber        0
 bAlternateSetting       0
 bNumEndpoints           2
 bInterfaceClass       255 Vendor Specific Class
 bInterfaceSubClass    255 Vendor Specific Subclass
 bInterfaceProtocol    255 Vendor Specific Protocol
 iInterface              2 USB2-F-7001 CAN-Plus Adapter
 Endpoint Descriptor:
 bLength                 7
 bDescriptorType         5
 bEndpointAddress     0x81  EP 1 IN
 bmAttributes            2
 Transfer Type            Bulk
 Synch Type               None
 Usage Type               Data
 wMaxPacketSize     0x0040  1x 64 bytes
 bInterval               0
 Endpoint Descriptor:
 bLength                 7
 bDescriptorType         5
 bEndpointAddress     0x02  EP 2 OUT
 bmAttributes            2
 Transfer Type            Bulk
 Synch Type               None
 Usage Type               Data
 wMaxPacketSize     0x0040  1x 64 bytes
 bInterval               0
Device Status:     0x0000
 (Bus Powered)</pre>
</blockquote>
<p>Yup definitely a FTDI device, even with the FTDI vendor ID (Did I mention I love FTDI?).  Looks like EasySync decided they wanted their own unique product ID, unfortunately that means the vanilla ftdi_sio drive won&#8217;t pick it up without a little bit of coercing.</p>
<p>The little bit of coercing goes like&#8230;</p>
<blockquote><p><em>modprobe ftdi_sio vendor=0&#215;0403 product=0xfac6</em></p></blockquote>
<p>And bingo&#8230;</p>
<blockquote>
<pre>[ 6372.229046] usb 2-2: new full speed USB device using uhci_hcd and address 3
[ 6372.437247] usb 2-2: configuration #1 chosen from 1 choice
[ 6372.439834] ftdi_sio 2-2:1.0: FTDI USB Serial Device converter detected
[ 6372.439872] usb 2-2: Detected FT232RL
[ 6372.439934] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0</pre>
</blockquote>
<p>Using putty to connect to ttyUSB0 at 115200, and typing &#8220;H&#8221; followed by &#8220;Enter&#8221; gives us</p>
<blockquote>
<pre>=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.06.30 21:23:18 =~=~=~=~=~=~=~=~=~=~=~=
H
List of Supported Commands
O - Open CAN Channel
C - Close CAN Channel
t - Transmit Standard Frame
T - Transmit Extended Frame
F - Read Status Flag
V - USB2-F-7001 Version
N - Serial Number of USB2-F-7001
Z - TimeStamp Option On/Off
S - Set CAN Bit Rate
s - Set BRGCON Registers
m - Set Acceptance Mask
M - Set Acceptance Filter
B - Enter Bootload Mode
L - Set Listen Mode
E - Clear Buffers and Echo Char
R - Reset USB2-F-7001
H, ? or h - Help on USB2-F-7001 Commands</pre>
</blockquote>
<p>Only problem is that its Mac style line endings.  Even the append CR to LF option in putty is useless because the stream seems to be CR without LF&#8230;  Doesn&#8217;t hurt too much except displaying it is a bit annoying.</p>
<p>The EasySync USB-CAN adapter&#8217;s pinout is pretty much standard DB9 for CAN Bus and all I had to do was connect my existing J1962 (aka OBD-II aka DLC-2) cable on and onto the car I went.</p>
<p>A couple of short &#8220;S6&#8243; (500kbps) &#8220;L&#8221; (Open connection for listen mode) commands later, I had CAN data being spat back at me</p>
<blockquote>
<pre>t04680601FF0000000000
t04680601FF0000000000
t04680601FF0000000000
t04680601FF0000000000
t04680601FF0000000000
t20F8FFFF27104000FF01
t2118FFFF000040000001
t4B082710271027102710
t19080000000000000000</pre>
</blockquote>
<p>All is good&#8230;except I just deleted my Chumby Development Virtual Machine a few hours ago&#8230;ooops&#8230;another day before I use this neat little adapter for <a href="http://www.madox.net/blog/2009/03/23/mchumby-mazdamadox-chumby/" target="_blank">mChumby</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madox.net/blog/2009/06/30/easysync-usb-can-bus-adapter-works-great-in-ubuntu-after-some-fiddling/feed/</wfw:commentRss>
		<slash:comments>21</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>
