Fake FreeEMS Fred-Style

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

Fake FreeEMS Fred-Style

Post by Fred »

Numerous people have suggested building or have asked if it'd be worthwhile to build a fake FreeEMS PC app that utility apps such as tuners could talk to during development and/or testing and/or for people to play with online - I've always said "No, too much effort, too little reward."

The other night I came up with this fine idea:

Take a prerecorded packet stream from a real device. Parse it and build a library of ID primary keys and hash secondary keys. Create a tty device and listen for incoming packets. Have one small simple generic error handling and dispatch mechanism that validates incoming packets, grabs the ID and looks it up in the library, sends matching ID, hash, or just ID, and sends in the same sequence they were found in the original stream, if many of the same ID.

This would be easy to write, a day, max, and would be perfectly usable.

I won't be doing it, but someone else easily could, and they wouldn't need to have hw either.

Go forth!

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

Re: Fake FreeEMS Fred-Style

Post by Fred »

Urr, re hashes, the stream of generating reqs could be used to figure that out based on ordering.
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: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fake FreeEMS Fred-Style

Post by Fred »

This has been done!!! I'm eagerly awaiting the repo URL so that I can play with it :-)
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: Fake FreeEMS Fred-Style

Post by malcom2073 »

Here ya go:

https://github.com/malcom2073/freeemssim

It's ugly, probably crashes, and I probably won't be doing much dev on it, since EMStudio is my primary focus, but for the moment it does what I need.
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Fake FreeEMS Fred-Style

Post by Fred »

Thanks! :-)
malcom2073 wrote:it does what I need.
Key point! As a dev util, does it need to do anything else? I think not.
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