VPMachine - serial device emulator
What is it?
Sometimes you may need to emulate external device, connected through serial (COM) port to PC. Because, for example, you need to test your new program in various environments, or emulate wrong response from HW, or your soft is "Black Box" for you and you want to know how it's working. In case of it you may use VP Machine :). It's not complex and i'm sure you can do own, but also you can use VP Machine as FREE addition to Smart Sniffer.
How is working?
You have to load sniffed log in MPSL format into program, as result program will simply do recognition of requests from selected port and respond as real device. To make it work you have to have VMWare virtual machine (pipe-port), or any virtual pair of COM's - 1st for original soft, 2nd for VP Machine, or 2 PCs connected with NULL-Cable (NULL-Modem).
Also, you can redefine some responses, it may be used during "Black Box" investigation ;). After MPSL is loaded you will need to load rules which are in simple ini file:
[request]
resp=response
Sample:
[FF AA 4A 4B 4D]
resp=AA 05 32 AB
That will make program to respond to "FF AA 4A 4B 4D" as "AA 05 32 AB". You can have as many sections into 1 file as you want. Last found rule for same requests will overload previous. So it cannot emulate complex logic when for 1 request has 2 different responses.
Why MPSL file?
Because it's FREE addition to Smart Sniffer, however you're able to redefine hole logic by rules ;) |