View Single Post
Old Nov 2nd, 2013, 12:55   #1

Last Online: Apr 26th, 2021 20:50
Join Date: Oct 2008
Location: derby
Default Talking to Leonardo if running Linux/Ubuntu

Hi all,

I know it's a bit of a small audience but I thought I'd share a/the solution to getting a computer running linux to talk to leonardo via the AEB software. I've posted this on but thought I'd share with fellow Volvo owners, too.

Massive props to my brother-out-law, Tom Parkin, for nursing me through to getting Leonardo to talk to my laptop through Linux. The route cause was that Leonardo doesn't ask (the user) which port to use it asks the OS for a list of all serial ports. It was then sending a little "is anyone there" message out on the port to figure out where the ECU is attached. If wine doesn't know about any serial ports, the list it provides to Leonardo will be empty, and Leonardo will be out of luck.

Follow these steps and you'll be able to connect up your Ubuntu-running laptop just as you did/do with windows - I wanted to be windows-free for good and hence pursued the Linux option until fruition. Prerequisities to this are that you have wine installed and that you've therefore got the AEB programme installed.

First, we create a symbolic link called com1 that Wine will treat as a serial device. Do this by entering the following into a terminal in Ubuntu and pressing enter:

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1

Second, type in the following into the terminal to give you permission to use the USB/serial converter(!):

sudo usermod -aG dialout matt (where 'matt' is your username e.g Joe Bloggs)

Pop in this command, too, such that any confusion between com1 and COM1 is prevented:

ln -s /dev/ttyUSB0 ~/.wine/dosdevices/COM1

Now, restart the computer (logging off should suffice but restart just to be sure) and off you go - If I plug into the 'ECU' then fire up the AEB software it works perfectly for me every time.

Hope this helps others as it did me - I'm learning to love linux as the minority OS :-)
knobstar is offline   Reply With Quote