FreeEMS-Tuner Development Diary - Comments

Aaron Barnes' wxPython based FreeEMS tuning tool. No longer maintained and out of date with the protocol requirements.
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

Any chance of something like :

Code: Select all

file log = new file("data/app.log");
String suffix = log.getLastModifiedTime();
log.rename(log.name + suffix + ".log");

log.write a stack of messages now
:-)

or maybe just time stamp them each time you write one? that makes a lot more sense

Code: Select all

file log = new file("data/app." system.getcurrenttimeinmillis() + ".log");

log.write a stack of messages now
yes, i like that better :-)

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
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by sry_not4sale »

Question for Fred re datalogging...

Does the ecu only create log messages when a serial connection is made? Does the state of datalogging reset to none when a serial connection is detached?

Is there a packet I can send to see the datalogging status?


e.g. can I assume that when the tuner first connects that datalogging will be turned off?
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

In order :

* No, any time async is turned on.
* No, the ECU has no idea whether or not there is someone listening and will just do what it is configured to do, be quiet, or spew logs.
* Yes, but I forget which one. I can find out for you if you like.
* No, this is a bad assumption to make.

My turn! :-)

* Do these questions mean you have your board up and running?
* Why do you care what it is doing datalog wise?

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
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by sry_not4sale »

Fred wrote:In order :

* No, any time async is turned on.
* No, the ECU has no idea whether or not there is someone listening and will just do what it is configured to do, be quiet, or spew logs.
* Yes, but I forget which one. I can find out for you if you like.
* No, this is a bad assumption to make.

My turn! :-)

* Do these questions mean you have your board up and running?
* Why do you care what it is doing datalog wise?

Fred.
Thanks :)

No, it is not up and running yet, but I am getting back into writing code for the tuner.

I'll have a look for the datalog status packet

Cheers
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by sry_not4sale »

sry_not4sale wrote:I'll have a look for the datalog status packet

Cheers
No luck :(

Code: Select all

/* Datalog request packets */
#define requestBasicDatalog      400
#define responseBasicDatalog    401 /* Defined because it can be used both synchronously and asynchronously */
#define requestConfigurableDatalog  402
#define responseConfigurableDatalog  403 /* Defined because it can be used both synchronously and asynchronously */
#define setAsyncDatalogType      404
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

Shows how unsuitably tired I was last night... I went looking through the switch statement instead of checking the header first... lol. As promised, will attempt to do something on this later today.

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
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

revive crashed worker threads
Better to stop them from crashing in the first place? :-)

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
sry_not4sale
LQFP144 - On Top Of The Game
Posts: 568
Joined: Mon Mar 31, 2008 12:47 am
Location: New Zealand, land of the long white burnout
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by sry_not4sale »

Yeah good point actually, I really need to sort out a global exception handler
Owner / Builder: 1983 Mazda Cosmo 12at (1200cc 2-rotor turbo) coupe [SPASTK]
165hp @ 6psi standard - fastest production car in japan Oct 82
User avatar
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

Also read up about a much nicer (and looks to be better performing) method of processing frames in binary streams in Python! Will start a thread about it soon, although I think some comprehensive test coverage of the existing serial processing code is in order first.
I second that, and although it IS an issue speed wise, perhaps the practical stuff like table read/write/burn and real time display are more important right now? time frames are suddenly very short ;-)
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
Fred
Moderator
Posts: 15433
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: FreeEMS-Tuner Development Diary - Comments

Post by Fred »

Hopefully orders of magnitude ;-)
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