Page 1 of 1

Fake FreeEMS Fred-Style

Posted: Mon Jun 18, 2012 8:48 am
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.

Re: Fake FreeEMS Fred-Style

Posted: Mon Jun 18, 2012 8:49 am
by Fred
Urr, re hashes, the stream of generating reqs could be used to figure that out based on ordering.

Re: Fake FreeEMS Fred-Style

Posted: Sun Jun 24, 2012 11:23 pm
by Fred
This has been done!!! I'm eagerly awaiting the repo URL so that I can play with it :-)

Re: Fake FreeEMS Fred-Style

Posted: Mon Jun 25, 2012 12:35 am
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.

Re: Fake FreeEMS Fred-Style

Posted: Mon Jun 25, 2012 8:44 am
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.