rasberry pi integration

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
MWPau
Master MS/Extra'er
Posts: 411
Joined: Thu Mar 03, 2011 6:24 pm

Re: rasberry pi integration

Post by MWPau »

If anyone is interested, im developing a dash display based on one of these: https://www.crystalfontz.com/product/CFA921TS
Its a compact 454Mhz ARM system (runs Linux) with a 5 inch 800x480 LCD and touch-screen.

This is the CFA921's smaller brother to give you an idea of the display package:
Image

The ARM SoC is a little underpowered (has no graphics processor), so im having to write a lot of the C graphics code, data-acq, etc myself for optimisation.
At the moment displaying 4 needle dial type gauges, pulling data from a MS3 over canbus it runs at ~15fps.
Toyota Celica GT4/Alltrac with 5S-GTE stroker (2.2L I4 turbo, high CR) on E85 w/FlexFuel.
MS3 + MS3X + KnockBoard + RTC + BT + DIY CAN-IO-Board + DIY CAN Digital Dash.
remsperso
Helpful MS/Extra'er
Posts: 35
Joined: Tue Nov 23, 2010 5:06 am

Re: rasberry pi integration

Post by remsperso »

I made my own try with a Olinuxino A20 from Olimex : https://www.olimex.com/Products/OLinuXi ... e-hardware
It is a powerfull board at a competitive price. I followed a tuto to install debian on the 4GB ssd, Tunerstudio works perfectly on it without lag. A rtc daughter board has to be added.
Debian boots with TS displaying live data on a round 60s. I have still some boot optimisation to do and working with a timed power supply. But I am on several projects and notre enough time...
freek corsa
MS/Extra Newbie
Posts: 31
Joined: Fri Feb 01, 2013 12:59 am
Location: Netherlands and Germany
Contact:

Re: rasberry pi integration

Post by freek corsa »

LT401Vette wrote:Yes, I know a guy that has been running it on a newer A7 based Pi and it is working quite well.
I have a Raspberry Pi B

Do you have more information on what to install to get it working?
Opel Corsa A1 C20NE 320 pk 480 Nm 700 kg.
Turbo Garrett T04E35 @ 1,4 bar
Injectors 470cc/min (Opel Z20LEH) Fuel: Octane 102
MegaSquirt 2 V3.0 PWM CL Idle, PWM CL Boostcontroller, 4-Coil near plug, Launch/Flatshift, internal Bluetooth
60ft 1.77 sec. 1/4m 11.8 sec. @ 190 km/h
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

I just got a Raspberry Pi B+ for Christmas. You know what I'm going to try and do with it :D Get my Firebird running a similar digital panel as my Skylark.

Also looking for any install or tech tips :D
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

TheSilverBuick wrote:I just got a Raspberry Pi B+ for Christmas. You know what I'm going to try and do with it :D Get my Firebird running a similar digital panel as my Skylark.

Also looking for any install or tech tips :D
I am getting hung up on the rxtx driver. This is my first real dive into Linux so I may be missing something basic. I'm running Raspberian right now. I've copied Tuner Studio 2.6.04 for Linux on it, I had to hard code(?) the folder paths into the TunerStudio.sh file to get Tuner Studio to start up. Here is where I am stuck. I've spent a couple hours trying to get the project to load, and it gets hung up when the gauges are supposed to be loaded up, which reading this thread indicates its hung up on the rxtx driver.

I've installed the latest java runtime and have tried copying "librxtxSerial-2.2pre1.so" from the '/usr/lib/jni' directory to the Tuner Studio one and then renamed it "librxtxSerial.so", and then copied that one into the TunerStudioMS/lib directory as well. I "thought" this was the fix, but it hasn't worked for me. Anyone know what I am missing?

Here are the files that were installed from oracle, am I not copying the right one? Or putting it in the wrong place? Need further edits to TunerStudio.sh?
Image

Help and guidance is appreciated :D
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: rasberry pi integration

Post by LT401Vette »

The TunerStudio.sh file shouldn't need any editing. If it is edited, you may need to post what you did or I'm not sure what it might be doing.

The proper librxtxSerial.so should be placed in the dir:
[TunerStudioInstallDir]/lib/
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

Hmm, for some reason it wouldn't start up until I put the folder path's into the .sh file. I'll delete out Tuner Studio and re-download it and try again.

Thanks for the confirmation on the file and where it needs to be.
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

I deleted out TunerStudio and re-downloaded it and it now opens without having to modify the sh file, but still having zero luck with the librxtxSerial.so file. I re-installed Java 8 (or at least tried, it said it was the same version and no update), and copied the librxtxSerial-2.2pre1.so file over and re-named it librxtxSerial.so . I feel like I'm just beating my head against a wall. I've got like 8 hours into it and still stuck at the same point :( What am I missing?? *sigh*
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
remsperso
Helpful MS/Extra'er
Posts: 35
Joined: Tue Nov 23, 2010 5:06 am

Re: rasberry pi integration

Post by remsperso »

Did you check rights on the .so file?
If you try running the .sh file in admin mode, is it better? :?
xrattiracer
Experienced MS/Extra'er
Posts: 301
Joined: Fri Aug 01, 2008 2:25 pm

Re: rasberry pi integration

Post by xrattiracer »

as another option, I just ordered an Odroid C1. same price as the raspberry pi, but vastly more powerful and capable. They have an optional 9" touchscreen as well (which will work with any hdmi source). I will evaluate this as a potential platform for a Qt/QML dash application.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: rasberry pi integration

Post by LT401Vette »

Are you sure it is the right .so for the Pi?
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

I tried all the *.so files in the folder, renamed as librxtxSerial.so, and none got it to the dashboard. The 'shortcut' librxtxSerial.so in the folder points to the librxtxSerial-2.2pre1.so file. Unless the B+ model uses a different driver not supplied by the java download, it should be the right one. I've been googling a dozen combinations of various words with Raspberry, Raspberian, B+, and RXTX, with little success of finding anything I haven't already tried. Its where I found to download the latest JRE(?, 8) from oracle.

I have changed the rights of access to the *.so file, but I have not looked at the TunerStudio.sh file since I re-downloaded it yesterday and it opening without modification. I will look into running it in an admin mode (if I wasn't already??).
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: rasberry pi integration

Post by LT401Vette »

It wouldn't be with the JRE. It is an RXTX file.
It should be compiled for an ARM processor.

This thread might help:
http://www.raspberrypi.org/forums/viewtopic.php?t=12452
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

That's the thread I've been reading and re-reading. I just spent the last hour and a half following it's various instructions again...

I'm getting a new SD card in the mail in the next day or so, I'm going to put a different linux operating system on it and try that out.
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

Four score and seven years later, progress! Thanks Phil. I'm still getting hung up on the repeated needs of Linux to have permissions granted to do things.

Image


Now to start some optimization. And the cluster I plan to make for the Firebird will not be this complex.
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
remsperso
Helpful MS/Extra'er
Posts: 35
Joined: Tue Nov 23, 2010 5:06 am

Re: rasberry pi integration

Post by remsperso »

I tried a year ago to run TS with a Pi board.
First issue were with system rights on .so file and .sh file.
Then, after connecting the Pi to the MS2, I measured a display time very long (several minutes).
Next, using a jimstim to change TPS sensor value, I saw a refresh time very long.
https://www.youtube.com/watch?v=S6tBFu_q0iY

The 2 last issues make me change my idea to work with a Pi : for me, a car monitoring has to boot and show GUI in less than 1 minute.
I'm now integrating a solution based on a Olimex Olinuxino https://www.olimex.com/Products/OLinuXi ... e-hardware :
- dual core CPU 1GHz
- GPU 400 MALI
- 1GB DDR3 RAM
- 4GB NAND flash (like SSD)
Image

I installed debian on the integrated flash, I still have to optimize but TS is fully operational on it in around 60s.

Difficulties concerns :
- installing Debian on flash,
- touch screen calibration,
- need of a RTC clock (available on the Olimex web site) because TS is checking datetime and will start only if it is valid,
- power supply to correctly send a shutdown signal to the card and let time to stop

That Olimex card is available at Amazon.com 100$ shipped :http://www.amazon.com/A20-OLINUXINO-MIC ... B00EBCP7VU

Remy
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

I have the B+ model that comes with twice the ram and from what I gather a bit more processing power for graphics. That being said, it still is a tad laggy in demo mode, but I haven't done anything to both the Pi or Tunerstudio. I'm going to make a gauge cluster that is far simpler than what my Skylark is using. It's going to be more readout and indicator lights on the Firebird than a full cluster replacement.

This is where I got the car computer for my Skylark, and where I'm looking at getting an intelligent power supply for the Pi. It'll be the last thing I buy due to cost. I'll have the whole thing installed and on a toggle (that I don't want to accidentally leave on and kill my battery over night!) before I purchase it, because if it doesn't work out for some reason or another, then I haven't spent that money.
http://store.mp3car.com/collections/our ... ors?page=1
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

Did a successful test drive in the car with the Raspberry Pi running and displaying Tuner Studio :yeah!: Thank you guys!

Now the fun to optimize the start up and resources begins!

(Thanks again Phil for answering my e-mail, I think I should be back down to 3 registered versions if you'd like to set it back)
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
TheSilverBuick
Experienced MS/Extra'er
Posts: 356
Joined: Thu Feb 02, 2012 9:08 am

Re: rasberry pi integration

Post by TheSilverBuick »

For some reason Tuner Studio is checking the registration online every time it starts up, so when I don't have the Rpi connected to the internet on start up Tuner Studio has a registration fit.

The message I get is:
"Unable to activate registration, failed to retrieve computer identification.
Unable to access hardware identifiers for this computer. Can not perform Activation."

If I connect it to the internet and restart Tuner Studio it starts up just fine. My tuning laptop doesn't have this issue, so I'm guessing it has to do with the Rpi's hardware settings or how the registration is saved on the Rpi.

What needs to be done so it doesn't need the internet to load up my custom dash?
"Hey, at least the Skylark proves that even a messy hack can patch together a reliable EFI system. I can't think of a time the MegaSquirt has left me stranded since installation ~100,000 miles ago."

Drag Week 2011, 2012 & 2015. - BB N/A - 1977 Skylark w/Buick 455 EFI and TKO-600!
remsperso
Helpful MS/Extra'er
Posts: 35
Joined: Tue Nov 23, 2010 5:06 am

Re: rasberry pi integration

Post by remsperso »

Does the pi have a rtc clock?
Post Reply