Raspberry Pi and MegaTunix

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

Moderator: djandruczyk

djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

UnaClocker wrote:Tried out MegaTunix for a couple minutes before leaving for work. I've definitely got to get some video of this now. It loads instantly! Click the icon and it's UP. Definitely a winner with performance like that. Unfortunately, it seems a bit unstable? I chose MS3 and it crashed. Maybe that mode isn't ready yet? I reloaded with the MS2-Extra setting, and it crashed again when I tried to fire up a dashboard. (the Honda one, fwiw).
Also, your GIT instructions don't mention the "sudo ldconfig" command which is required, but it is mentioned in the Ubuntu instructions.

thanks for the info, I'll take a look at those issues tonite. Feel free to file issues at the issue tracker at http://megatunix.com/tracker
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
squirrelgripper
Helpful MS/Extra'er
Posts: 77
Joined: Sun May 02, 2004 6:58 pm
Location: Little Rock, AR

Re: Raspberry Pi and MegaTunix

Post by squirrelgripper »

Saw this $74 competitor to the Raspberry Pi and thought of y'all: http://www.redmondpie.com/this-74-usb-d ... -sandwich/

It drops to 70 bones with free shipping when 5 or more are purchased (groupbuy!):
http://www.aliexpress.com/product-fm/56 ... 0101&vd=30
Looks like it might also take a 32gb MicroSD card. However, between the
immediately upgrade your hall to front the digital.

and
share game amusement and Website read
, it's hard to say for sure :D

Specs seem impressive, basically 2 x the processor speed and 2 x the RAM when compared with the Raspberry Pi.

Here's the specs for the hard of reading;
1. Use Allwinner A10/1.5GHZ Cortex-AB high speed
processor Core frequency reach 1.5GMHZ ,Coretex-A10 is the most
advanced core.
2.With 3D Graphical processor
3.Use 512M (slect 1GB) DDR3 high capacity memory.
4.With WIFI 802.1b/g/n Wireless to get rid of the wire bond
5.Support the latest HTML5 ,Flash10.3 ,etc, network standard.
6.Support Full HD 1080P/2160P.
MK802 provide a USB2.0 HOST high speed data interface,and T-Flash card slot ,You may direct connect with USB device for playback high definition movies. up to 1080p/2160p.
7. The mass application /games, will bring you best experience.
8.Various extension ports, support connecting wireless mouse,keyboard, can be install
more memory cards to extend more capacity.
9.Accessory: Mini box,power adapter,HDMI cable(Micro to standard),USB cable,USB adapter(Mini USB to USB female port),manual
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

Meh, there have long been plenty of ARM boards out there. BeagleBoard/BeagleBone, SheevaPlug, numerous Chinese tablets, etc.. The Raspberry Pi just has such an insane price point, it's like why wouldn't you get one? It's barely more expensive than an Arduino. Some of the MS display devices I've seen people build have cost more than the Pi AND VGA screen combo I mentioned, and they aren't just computers.
But hey, I think the Pi's will blaze the trail that many many other ARM devices will follow. For now, it's great that the Pi is so popular, it'll make it easier for developers to target the specific hardware that the Pi has, and optimize to run efficiently on that specific hardware.
Brian
'84 Dodge Rampage
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

Any progress on this? Can I provide crash logs or anything to help with the debug? I can put it up on my network and you can ssh -X into it if you'd like to try fixes in realtime.
I can't load any dashboards since moving to the GIT version. The GIT version lists MS3, but won't load that project. Selecting the MS2 projects and then telling it to work offline, it doesn't show any base tunes to choose from like the sourceforge version had..
Brian
'84 Dodge Rampage
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

UnaClocker wrote:Any progress on this? Can I provide crash logs or anything to help with the debug? I can put it up on my network and you can ssh -X into it if you'd like to try fixes in realtime.
I can't load any dashboards since moving to the GIT version. The GIT version lists MS3, but won't load that project. Selecting the MS2 projects and then telling it to work offline, it doesn't show any base tunes to choose from like the sourceforge version had..
Ssh access would really help. See if you can get gdb installed first. Doing use Ms3 yet as that is just a stub and not functional yet.
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
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

MS3 support works in git, DON'T get too excited though, its only for realtime vars, dashboard and backup/restore. No tabs have been created yet, they'll be forthcoming eventually.

Tested only so far on Ubuntu Lucid 10.04 32 bit, you mileage may vary on other variants, please report issues found.
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
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

I mentioned my idea of doing this already. Googled it and found that I'm not alone, here's a thread about adding the Microchip CAN bus-SPI controller to a RPi: http://www.raspberrypi.org/phpBB3/viewt ... =41&t=2298
Cool thing is that MCP2515 (and I think there's another chip that goes with it) is only like $3, and it's through hole, so it's really easy to solder up on a protoboard. Pretty surprising to find out there's Linux kernel support for that chip too. So once someone comes up with some drivers for it, it'll come up as a network interface. MTx already supports pulling it's data from a remote network source, I suspect it would take some very minor mods to that code to get it pulling it from a network CAN bridge.. Thus freeing the serial port on the MS to be used with a laptop for tuning, while the Pi continues it's meager existance as a dashboard.. ;) Full of win. :)
Brian
'84 Dodge Rampage
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

Any luck tracking down the GLib error that's preventing the dash from coming up? Still boggles my mind how fast MTx comes up on this system. I should get some video.. :) The video would be much cooler if I had gauges to show.. It's gotta be something between the old version I ran initially, and this Git version, because Gauges worked in that version.
Brian
'84 Dodge Rampage
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

http://youtu.be/KcLYkFeIlyc Video of MTx and TS on the Pi. Bit of a long boring video.. But man, look at how fast MTx loads!
Brian
'84 Dodge Rampage
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

UnaClocker wrote:Any luck tracking down the GLib error that's preventing the dash from coming up? Still boggles my mind how fast MTx comes up on this system. I should get some video.. :) The video would be much cooler if I had gauges to show.. It's gotta be something between the old version I ran initially, and this Git version, because Gauges worked in that version.

I'm still working on it. I found a couple of major memory leaks/corruptions issues that have been committed/pushed (though a lot of debug printf's are turned on in that). The "pthread_setspecific" error still eludes me, but the authors of glib completely rewrote the threading implementation in glib-2.32, which is what you have on the 'pi as well as recent ubuntu/debian releases, and ALL of those exhibit the same failures periodically with calls that open a filechooser dialog. (I'm suspecting a glib fault here, but can't prove it conclusively yet).

I forgot that you can set the dash you want via a COMMAND LINE FLAG, so use 'megatunix -D list' to get a list, then choose the one you want. "megatunix -D Default_Dash" or for a DASH ONLY view with no other windows use: megatunix -D Default_Dash -rsmq

Use megatunix --help to see all the possible command line options I leave it up to you to figure out what the rsmq means, --help will explain all.
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
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

The current Mtx git release (76ef000c08cc362a5c58952167031394c34c323a) can talk to ms3-pre1.1beta24 (and only that one of the pre-1.1 series for now). The only stuff functional at this moment is dashboards, though not all runtime data is supported yet, as the rtv stream grew a LOT since the 1.0.x series (296 bytes to 408 bytes). Should have clean recovery from serial dropouts, ecu power-cycles and so on. NOTE: a lot of debug code is still turned out, so it's normal for it to spit out a lot of stuff on the command line during startup and shutdown.

More stuff to be forthcoming soon.
Debug/testable windows binaries at http://preludelinux.hopto.org/Output/windows/?C=M;O=D
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
matthart
MS/Extra Newbie
Posts: 2
Joined: Fri Jun 22, 2012 2:27 am

Re: Raspberry Pi and MegaTunix

Post by matthart »

Hi there,

I don't actually have my megasquirt ECU yet, but I've got my Pi and have built the latest git checkout of megatunix, very impressive!

I plan to use Megatunix as a dashboard so am running it with command line options to go straight into fullscreen dash. This seems to work fine, but is there some way to start Megatunix without having to click "Go offline", then Load an ECU profile, then get a popup asking me to load an ECU backup? Ideally I can just give it some command-line switch that goes straight into the dash and asks for nothing else.
Also, without an actual ECU, I just get needles that sit still. Is there a demo-mode to make them move around so I can see how smooth the rPi is rendering them?

Again, top piece of software, is there a donations page to show some appreciation for the efforts of the author?

Regards,
Matt
matthart
MS/Extra Newbie
Posts: 2
Joined: Fri Jun 22, 2012 2:27 am

Re: Raspberry Pi and MegaTunix

Post by matthart »

You'll have to excuse the ignorance of background knowledge of this request, but could the Megatunix dash output be switchable to use a framebuffer device rather than X as I imagine this would make it much much faster on the rPi?
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

matthart wrote:You'll have to excuse the ignorance of background knowledge of this request, but could the Megatunix dash output be switchable to use a framebuffer device rather than X as I imagine this would make it much much faster on the rPi?
Not really trivial to do. You'd have better success asking the Xorg developers to improve the suport for the graphics engine on the 'pi. Framebuffer support requires the ENTIRE graphical toolkits that megatunix depends on to work properly and completely on the framebuffer.
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
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

I benchmarked my Pi with and without X running, same benchmark program. I saw virtually no change in performance at all. I saw FAR more improvement overclocking from 700MHz to 1GHz.. And holy cow does enabling the FPU (Using Raspbian) make a HUGE difference, like 5x faster or more in floating point benchmark tests. I've got to imagine there is floating point (numbers with a decimal point) math involved in drawing gauges on the screen.
Brian
'84 Dodge Rampage
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

matthart wrote:Hi there,

I don't actually have my megasquirt ECU yet, but I've got my Pi and have built the latest git checkout of megatunix, very impressive!

I plan to use Megatunix as a dashboard so am running it with command line options to go straight into fullscreen dash. This seems to work fine, but is there some way to start Megatunix without having to click "Go offline", then Load an ECU profile, then get a popup asking me to load an ECU backup? Ideally I can just give it some command-line switch that goes straight into the dash and asks for nothing else.
Also, without an actual ECU, I just get needles that sit still. Is there a demo-mode to make them move around so I can see how smooth the rPi is rendering them?

Again, top piece of software, is there a donations page to show some appreciation for the efforts of the author?

Regards,
Matt
Not really for offline. Offline mode requires user input for the ECU type/firmware as well as a backup to at least refresh the controls to a useful state. Still needles in offline are normal. I have a TODO item for playback of a log that would also drive the dash, but its still a TODO item as it requires some special work to make it possible and even then, only in some cases.

Yes there is extensive floating point stuff in the gauges, as well as the datalog/runtime variable processing.
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
matzz
MS/Extra Newbie
Posts: 31
Joined: Mon Mar 14, 2011 12:54 pm

Re: Raspberry Pi and MegaTunix

Post by matzz »

Are there any updates or bypass methods about that glib error ? I'm also experiencing problems durning dash startup.
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: Raspberry Pi and MegaTunix

Post by djandruczyk »

matzz wrote:Are there any updates or bypass methods about that glib error ? I'm also experiencing problems durning dash startup.
The bypass is to use an older distribution. I haven't found a solution to the GLIB issue, to me it seems liek a GLIB bug, but it entirely possible its a very subtle threading bug in Mtx that triggers the fault later, making it extraordinarily difficult to find and fix.

Have you tested current megatunix git code, as tehre was one fix there that triggered a GLIB fault but in a different area, though that fix may have possibly affected the offline mode code.
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
UnaClocker
Super MS/Extra'er
Posts: 1933
Joined: Fri May 07, 2004 12:59 pm
Location: Tacoma, WA
Contact:

Re: Raspberry Pi and MegaTunix

Post by UnaClocker »

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.
Brian
'84 Dodge Rampage
matzz
MS/Extra Newbie
Posts: 31
Joined: Mon Mar 14, 2011 12:54 pm

Re: Raspberry Pi and MegaTunix

Post by matzz »

djandruczyk wrote:
matzz wrote:Are there any updates or bypass methods about that glib error ? I'm also experiencing problems durning dash startup.
The bypass is to use an older distribution. I haven't found a solution to the GLIB issue, to me it seems liek a GLIB bug, but it entirely possible its a very subtle threading bug in Mtx that triggers the fault later, making it extraordinarily difficult to find and fix.

Have you tested current megatunix git code, as tehre was one fix there that triggered a GLIB fault but in a different area, though that fix may have possibly affected the offline mode code.
I'll give it a try behind real MS later tonight to see if it is only offline mode problem. With this test we could confirm, that it's Mtx problem.

I'm trying to use older glib for compiling, but it seems, et quite a headache to do this.

UnaCloker what distro were you running durning that video on youtube ?
Post Reply