Connect the scope via USB, and issue the python getshot.py >foo.bin
command.
You should do this as root / Administrator as it manipulates USB directly.
In case of an "Image transfer error, try again" message, just keep trying,
after 10 or so attempts, it starts to work, and continues to do so, until the
scope is connected to the PC.
If the exit value is 0, and no output is printed on stderr, the binary
screenshot is ready in the foo.bin
file. It can be converted to PNG by
issuing the following command.
python pd2png.py foo.bin foo.png
An optional third parameter can be used to specify a colormap, which transforms the 4-bit image to RGB values. The default is monochrome, but the format is straightforward enought for everyone to create new and better ones. A colormap file must contain at least 16 lines, each containing three numbers (red, green, and blue values 0-255) separated by comma.
The whole project is licensed under MIT license.
- Python 2.x (tested with 2.7)
- PyUSB 1.0 (http://sourceforge.net/projects/pyusb/)