Skip to content

dnet/ut2025b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FLOSS Python driver for UNI-T UT2025B scopes

Flattr Button

Usage

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.

License

The whole project is licensed under MIT license.

Dependencies

About

FLOSS Python driver for UNI-T UT2025B scopes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages