EMStudio, YATA(Yet Another Tuning Application)(was FreeTune)

Mike's cross-platform FreeEMS tuning application, written in C++ using QT. With Mike's natural coding talent and Fred's intimate requirement knowledge it went from concept to full tuning capability in just 8 weeks!
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

EMStudio, YATA(Yet Another Tuning Application)(was FreeTune)

Post by malcom2073 »

So I started working a bit on a Qt/c++ based datalog/live display application for FreeEMS. I eventually want to also work tuning into this application.

I started playing around with this about a week ago, fiddling around with just playing back logs with a lot of help from Fred fortunately, which made it go very quickly. He did a bit of explaining about the serial protocol involved, so with that and the OLV source code for value reference I managed to get the ability to listen to live data integrated. The serial code wasn't quite working properly though, and Fred tried it a couple of times for me without success. I happened to be in the Phoenix AZ area, and seank-efi graciously offered to let me stop by and check out his FreeEms setup. Once I got there, he showed me the hardware and let me attempt to connect to it on the bench with my application. Some thorough debugging later and I got live data to read properly! We took a video of the software running next to his dev board on top of the car http://www.youtube.com/watch?v=ZeYnkznv ... e=youtu.be

Seeing this, made me even more enthusiastic about FreeEms and pretty much sealed the deal for me using this in my car. So I've decided to continue development of FreeTune, and hopefully have it become a truly useful cross platform datalogging and tuning application.

Official name is now EMStudio, and official website is http://www.emstune.com (emstudio.com was taken damnit)

Windows 32bit installer: (Recommend getting that latest, always at the top)
http://mikesshop.net/EMStudio/

Source code:
http://github.com/malcom2073/emstudio

Website:
http://www.emstune.com

If I haven't gotten to putting the notice in by the time this post gets read, it is, and always will be GPLv2. I may extract the base communications library to be lgpl if I see a need, but at the moment it will remain a core part of the main application.

And as another note, until further notice, master branch is considered unstable, until I have an actual stable code base to go off of, then I'll branch off for development. I expect that's going to be a month or so. Feel free to hit me up here or on irc (mal|lappy) if you're interested in using it, or just give it a shot. I can't guarantee it won't ruin your tune or corrupt your memory until it's considered stable, but if you talk to me first I can probably advise you as to the dos and don'ts. Eg: don't use the "write ram block" button, it's not correctly set up yet!!, course there isn't one yet but that sort of thing.
Last edited by malcom2073 on Sat Jun 16, 2012 12:26 am, edited 3 times in total.
User avatar
Kennybug
QFP80 - Contributor
Posts: 79
Joined: Sat Mar 31, 2012 6:01 pm
Location: Hong Kong
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Kennybug »

excellent to hear about the new tune/log app! :D :D :D
malcom2073 wrote:Seeing this, made me even more enthusiastic about FreeEms
So am I. :lol2: :lol2:
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Fred »

malcom2073 wrote: I can't guarantee it won't ruin your tune or corrupt your memory
I can! Well, at least the memory part. You can't access memory directly, only through my gateway with lots of checks. You'd have to get quite (un)lucky to send garbage to a main table AND have it make it in successfully.

New name idea: 24Tuner why? Because you wrote the working base in 24 hours :-o

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Spudmn
LQFP112 - Up with the play
Posts: 232
Joined: Thu Feb 10, 2011 12:27 am
Location: Auckland, NZ

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Spudmn »

Hi Malcom2073

Great job.

One tip for people trying to compile it.

do

EDIT: Do NOT do the -project qmake execution, it is not necessary most of the time and can/will break your build. Fred.

Code: Select all

 qmake -project << don't do this, normally.
qmake
 make
If you get this error

Code: Select all

fatal error: QDeclarativeItem: No such file or directory
then you need to add

Code: Select all

QT += declarative
to the freetune.pro file.

I don't know why qmake doesn't add this automatically.

I think that you will also need at least QT 4.7. I am testing it on 4.8.


Great work. Keep it up.

Lots of cool graphs please. Data logging is my bag baby :D

edit: added qmake
Last edited by Fred on Tue Jul 10, 2012 3:32 am, edited 3 times in total.
Reason: Clarify code snippet validity.
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by malcom2073 »

Spudmn wrote:Hi Malcom2073

Great job.
Thanks! :-D
Spudmn wrote: One tip for people trying to compile it.

do

Code: Select all

 qmake -project
 make
If you get this error

Code: Select all

fatal error: QDeclarativeItem: No such file or directory
then you need to add

Code: Select all

QT += declarative
to the freetune.pro file.

I don't know why qmake doesn't add this automatically.
That's my bad, I'll fix that. Not sure why it's assumed on my machine, but it should be there regardless.
Spudmn wrote:I think that you will also need at least QT 4.7. I am testing it on 4.8.
Right, at least 4.7.0. I use 4.8.0 as well
Spudmn wrote: Great work. Keep it up.

Lots of cool graphs please. Data logging is my bag baby :D
Thanks again! graphs are pretty low on the list, since OLV will be able to load logs that you take with FreeTune.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Fred »

IMO: Tuner should focus on tuning, gauges/bar graphs, on/off lights, overlays, real time stuff. Log viewer/post analysis should do fancy display of old data over time. OLV will eventually grow into something fairly powerful for looking at recorded data. I think it dilutes a tuner to handle that too.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by malcom2073 »

Development Windows binaries will be built here: http://mikesshop.net/FreeTune/

I can't guarantee they will work, so talk to me before trying one, they're automatically built as I commit changes in the development branch.
User avatar
Kennybug
QFP80 - Contributor
Posts: 79
Joined: Sat Mar 31, 2012 6:01 pm
Location: Hong Kong
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Kennybug »

Installed in winxp32. a VC++ library was missing.
need install this as well
http://www.microsoft.com/en-us/download ... px?id=5555
malcom2073
LQFP112 - Up with the play
Posts: 211
Joined: Tue May 01, 2012 4:17 pm
Location: Shrewsbury PA
Contact:

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by malcom2073 »

Kennybug wrote:Installed in winxp32. a VC++ library was missing.
need install this as well
http://www.microsoft.com/en-us/download ... px?id=5555
Good catch, forgot to mention that. I'll see about adding that to the installer.
User avatar
Dan
LQFP144 - On Top Of The Game
Posts: 1204
Joined: Tue Mar 02, 2010 2:33 pm
Location: Australia

Re: FreeTune, YATA (Yet Another Tuning Application)

Post by Dan »

and for those like me who have 64-bit windows!

http://www.microsoft.com/en-us/download ... x?id=14632
Post Reply