Raspberry Pi and MegaTunix

Questions specific to Megatunix - alternate tuning software that runs on unix and windows.
Note that Megatunix is obsolete.

Moderator: djandruczyk

Re: Raspberry Pi and MegaTunix

Postby djandruczyk » Thu Sep 06, 2012 5:13 am

UnaClocker wrote:Seems to me, Gnome is self destructing/imploding. What all in the gnome library is absolutely neccessary? Could you switch to QT, or just make it a generic X app with a slightly more primitive interface? Seems like a generic app would be lighter weight in the end, anyways, as it wouldn't have oodles of libraries compiled into it.


I utilize nothing from the special "gnome" libs, only the foundation libraries, glib, and GTK+, none of the special gnome specific things like libgnomeui,, dbus, and so on etc.

The GTK+/glib people changed the threading API drastically in glib-2.3x (mainly to be more cross platform compatible AFAICT) and introduced a LOT of instability because of that. They also seem to be hemorraging key developers (very unfortunate). glib 2.28 and older works just fine for Megatunix, as the problem seems to be entirely in glib-2.32.x which is what the current distributions are using.

I filed a bug with the gnome bugzilla (which covers glib) way back in May, but to no avail so far :(
https://bugzilla.gnome.org/show_bug.cgi?id=677154

Switching to another toolkit is NOT a trivial thing especially one that uses a different language (C++ vs C, yes they really ARE that different)

Have you ever tried coding for PURE X11? good luck with that, why do you think there's all these toolkits?
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: Raspberry Pi and MegaTunix

Postby bizzle » Fri Sep 14, 2012 4:26 am

Does anyone know if something like this http://adafruit.com/products/954?gclid= ... Qgodyk0A9w or http://adafruit.com/products/70 would work to connect the serial signal to usb?
bizzle
MS/Extra Newbie
 
Posts: 1
Joined: Fri Sep 14, 2012 3:39 am

Re: Raspberry Pi and MegaTunix

Postby matzz » Thu Jul 25, 2013 2:55 am

Yesterday I decided to try it again, so you can see fully working instrument panel on 7" TFT screen incar which is connected to MS via serial adapter. This was first try, later I got it working to load only instruments on cold boot without need of user input. Therefore, it peformed even faster and better. To me it seemed fair enough to use it everyday. Boot time, is a bit slow, I will look into it and try to remove unneeded programs and stuff from linux.

Video link : http://youtu.be/UQBiAqqNLtg
matzz
MS/Extra Newbie
 
Posts: 26
Joined: Mon Mar 14, 2011 12:54 pm

Re: Raspberry Pi and MegaTunix

Postby djandruczyk » Thu Jul 25, 2013 9:33 am

Very cool work!. Did you happen to document what steps you went through to get Mtx running on your pi, and what setup you're using?? (raspbian, or some other pi linux distro).
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: Raspberry Pi and MegaTunix

Postby matzz » Wed Jan 08, 2014 2:15 am

Totally did not think about documenting this. However, I could upload fully workable image with automatically booting to fullscreen and running gauges only. I have installed display into my car dash and it was running nicely.

At the moment I am unable to test it or show it because I've sold my ECU and probably soon buying MS3 extra for my project.

As I remember, I have commands and startup scripts. I can provide scripts and config files for fullscreen dash etc.
matzz
MS/Extra Newbie
 
Posts: 26
Joined: Mon Mar 14, 2011 12:54 pm

Re: Raspberry Pi and MegaTunix

Postby RZZZR » Sat May 17, 2014 7:29 am

i also tried to get megatunix running on my rpi but with no success...
i have done all the steps like the pages before...

after i try to start the program with "megatunix", i got the response "OpenGL not supported"...

anyone there who have an idea to fix this ?
the old build from sourceforge worked but i didn't see the gauges..
only black circles ..

my system:
RPi - B Model
actual raspian image running
RZZZR
MS/Extra Newbie
 
Posts: 4
Joined: Sat May 17, 2014 7:21 am

Re: Raspberry Pi and MegaTunix

Postby djandruczyk » Mon May 19, 2014 11:17 am

RZZZR wrote:i also tried to get megatunix running on my rpi but with no success...
i have done all the steps like the pages before...

after i try to start the program with "megatunix", i got the response "OpenGL not supported"...

anyone there who have an idea to fix this ?
the old build from sourceforge worked but i didn't see the gauges..
only black circles ..

my system:
RPi - B Model
actual raspian image running



OpenGL is only needed for the 3d projected table views, so if you did NOT want to use those you could comment out the OpenGL check and recompile..
main.c starting on line 80 comment out these lines: (add "//" in front of each line )
Code: Select all
    /* Check if OpenGL is supported. */                                         
    if (gdk_gl_query() == FALSE) {
        g_print("OpenGL not supported\n");
        return 0;
    }
    else
        gl_ability = TRUE;
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: Raspberry Pi and MegaTunix

Postby RZZZR » Mon May 19, 2014 9:57 pm

Thx man... i will try it later when i Come back home ;-)
RZZZR
MS/Extra Newbie
 
Posts: 4
Joined: Sat May 17, 2014 7:21 am

Re: Raspberry Pi and MegaTunix

Postby RZZZR » Tue May 20, 2014 10:45 am

d***! It works!
Tomorrow i will try it on my ms2 - but for now everything seems perfect.
Got a picture attached..
RZZZR
MS/Extra Newbie
 
Posts: 4
Joined: Sat May 17, 2014 7:21 am

Re: Raspberry Pi and MegaTunix

Postby RZZZR » Fri May 23, 2014 4:42 am

ok everything is running..

now i got a problem to change kPa to bar.. i see the radiobuttons,it but i can't operate them because they are not enabled..
is it my fault? are there any other options ?!

tried to figure it out with the manual but the link is broken :(
RZZZR
MS/Extra Newbie
 
Posts: 4
Joined: Sat May 17, 2014 7:21 am

Re: Raspberry Pi and MegaTunix

Postby djandruczyk » Fri May 23, 2014 5:33 am

RZZZR wrote:ok everything is running..

now i got a problem to change kPa to bar.. i see the radiobuttons,it but i can't operate them because they are not enabled..
is it my fault? are there any other options ?!

tried to figure it out with the manual but the link is broken :(


kpa to bar does NOT affect the dashboard style gauges, only the textual stuff in the Main UI.

If you want a analog gauge in bar units you'd have to create it (in gaugedesigner) and connect to to an appropriate source with dashdesigner. NOTE it's not necessary to have a source in "Bar", you can design the gauge to have a scale/tickmarks different form your datasource.
i.e. the datasource span is in kpa (0-250), create a gauge, set it's limits from 0-250, and set the tickmarks and labels to use whatever scale you want that lines up with a 0-250 kpa input (i.e. lay it out in bars, i.e. 0-2.5 bars)
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
User avatar
djandruczyk
MS/Extra Guru
 
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.

Re: Raspberry Pi and MegaTunix

Postby zukduk » Wed Jan 20, 2016 11:18 pm

Help.... I have loaded everything to my raspberry pi 2 b+ (raspien, megatunix, updates and all) When i open megatunix and do an interigation it reads my ecu ok but no firmware detected....I know its there because i set it up on windows and just recently started reading about the raspberry pi and purchased everything i needed to get started....(I DO NOT KNOW WHAT THE HE?? I AM DOING WITH LINUX...all new to me. But learnin!!!! I am running megasquirt 2 3.0 with B&G firm...and a stim 2.2 on raspberry pi ... some one please walk me thru this i am ready to get this installed in my buggy and fire up the engine(after sum tuning).........Thanxxx (DO NOT HATE ME FOR I AM STUPID).
zukduk
MS/Extra Newbie
 
Posts: 10
Joined: Sun Jul 31, 2011 10:03 am

Previous

Return to Megatunix (obsolete)

Who is online

Users browsing this forum: No registered users and 1 guest