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