bin/microspec_emulator.py¶
Example Usage¶
Note
You probably never need to run this, unless you really need to turn on debugging trace on the emulator in order to see what you’re sending to it. Usually, specifying emulator=True is enough to use the emulator, in the simple and expert API.
Also, this will only work on Mac OSX and Linux systems, not on Windows.
Longwinded example¶
dir=`mktemp -d`
socat PTY,raw,echo=0,link=$dir/microspec.software PTY,raw,echo=0,link=$dir/microspec.hardware &
microspec_emulator.py -f $dir/microspec.hardware
# Then connect interface to $dir/microspec.software file
# And stop the socat background command, and clean up the $dir and it’s contents