Utility to convert EMStudio json tables to FreeEMS firmware

A place for small project requests from the team to exist and grow into something fully fledged and useful to the masses.
Post Reply
User avatar
AiToR51
QFP80 - Contributor
Posts: 80
Joined: Sun Aug 21, 2011 6:26 pm
Location: Spain

Utility to convert EMStudio json tables to FreeEMS firmware

Post by AiToR51 »

This is an utility made in JAVA used to convert from json EMStudio exported tables to FreeEMS firmware .h files style.
CLI app.


-version 0.1 (first release):
- support for 3D Tables: VE, Lambda and Timing.
- tested with EMStudio StableTwo-84-gad3fd6e

-version 0.2:
- CLI option to don't use decimals (truncated)

...

-version 0.5:
- adapt output to Fred standard (download/file.php?id=1475)
-version 0.6:
- added new CLI option to see metaInfo of the json file loaded (download/file.php?id=1491)


SRC:
https://github.com/AiToR51/tableConvert ... io-freeems


use:
java -jar tableConverter(...).jar input.json [-noDecimals]

or

java -jar tableConverter(...).jar input.json [-noDecimals] > outputFile


screenshot:
Image


if anybody founds some errors or want new features, tell me. (or fix it :P as is open source)
Attachments
tableConverter-0.3-jar-with-dependencies.jar
(26.16 KiB) Downloaded 1064 times
tableConverter-0.1-SNAPSHOT-jar-with-dependencies.jar
(25.54 KiB) Downloaded 1077 times
tableConverter-0.2-jar-with-dependencies.jar
(26.07 KiB) Downloaded 1078 times
Last edited by AiToR51 on Wed Dec 11, 2013 9:11 am, edited 6 times in total.
Sierra XR4i 2.0T
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Utility to convert EMStudio json tables to FreeEMS firmw

Post by Fred »

Very nice work! Code is pretty easy to follow. Nice implementation choices. My main comment: axle no es correcto, tio, usar "axis" en su lugar.
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
AiToR51
QFP80 - Contributor
Posts: 80
Joined: Sun Aug 21, 2011 6:26 pm
Location: Spain

Re: Utility to convert EMStudio json tables to FreeEMS firmw

Post by AiToR51 »

perfect, I've changed it on last commit. Nothing more changed so no generated jar.
Sierra XR4i 2.0T
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Utility to convert EMStudio json tables to FreeEMS firmw

Post by Fred »

BTW, it's OK because this project is TINY, but you should NEVER check jars into SCM.
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
AiToR51
QFP80 - Contributor
Posts: 80
Joined: Sun Aug 21, 2011 6:26 pm
Location: Spain

Re: Utility to convert EMStudio json tables to FreeEMS firmw

Post by AiToR51 »

new version (0.5) added

new version (0.6) added.
Attachments
tableConverter-0.6-jar-with-dependencies.jar
(27.97 KiB) Downloaded 1349 times
tableConverter-0.5-jar-with-dependencies.jar
(26.67 KiB) Downloaded 1346 times
Sierra XR4i 2.0T
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Utility to convert EMStudio json tables to FreeEMS firmw

Post by Fred »

A few tweaks from me, and bump to 0.7, attached.
Attachments
tableConverter-0.7-jar-with-dependencies.jar
(27.66 KiB) Downloaded 1051 times
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!
Post Reply