Giter VIP home page Giter VIP logo

ut2xxx's Introduction

Simple DSO

This program is useful with UNI-T digital storage oscilloscopes UT2XXX or UT3XXX. It's intended to be a replace for original software, which doesn't work under Linux.

Requires pyQT5, QT 5, python 3, libusb and usb python module.

If your device is not found, you can add VID and PID to vid_pid.txt file and restart program. VID and PID is in decimal NOT hexadecimal !

https://sourceforge.net/p/simpledso/wiki/Home/

This woks with a UTD2202CE

Install Ubuntu 20.08 TLS

sudo apt-get install python-qt5

sudo apt install pyqt5-dev-tools

sudo pip3 install pyusb


sudo pip install pyuic5-tool

Install udev rules

99-uni-t.rules

Run

Start with some debug output.

./simpleDSO.py -v


INFO: DSO remote app is starting ...
INFO: DSO remote app started.
INFO: Loaded VID/PIDS are:
INFO: VIDs -> [22102, 22102, 22103, 22102]
INFO: PIDs -> [2098, 2098, 2002, 2100]
INFO: Found UNI-T DSO on USB:
INFO: idVendor: 22102
INFO: idProduct: 2100
INFO:     Alternate Setting: 0
INFO:       Interface class: 255
INFO:       Interface sub class: 0
INFO:       Interface protocol: 0
INFO:       Endpoint: 0x82
INFO:         Type: 2
INFO:         Max packet size: 512
INFO:         Interval: 0
INFO:       Endpoint: 0x6
INFO:         Type: 2
INFO:         Max packet size: 512
INFO:         Interval: 0
INFO: Dbg: Device is presented
INFO: Dbg: device opened

Screenshots

Get a bitmap from DSO.

Screenshot

Get live data from DSO.

Screenshot

lsusb -v

Bus 001 Device 013: ID 5656:0834 Uni-Trend Group Limited DSO          
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
idVendor           0x5656 Uni-Trend Group Limited
idProduct          0x0834 
bcdDevice            0.00
iManufacturer           1 DSO    
iProduct                2 DSO          
iSerial                 0 
bNumConfigurations      1
Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0020
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x40
    (Missing must-be-set bit!)
    Self Powered
    MaxPower              100mA
    Interface Descriptor:
    bLength                 9
    bDescriptorType         4
    bInterfaceNumber        0
    bAlternateSetting       0
    bNumEndpoints           2
    bInterfaceClass       255 Vendor Specific Class
    bInterfaceSubClass      0 
    bInterfaceProtocol      0 
    iInterface              0 
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x06  EP 6 OUT
        bmAttributes            2
        Transfer Type            Bulk
        Synch Type               None
        Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            0 
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0        64
bNumConfigurations      1

ut2xxx's People

Contributors

mandl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ut2xxx's Issues

Pipe error

Hi,
I'm getting the following error:

`Inf: DSO remote app is starting `...`
Inf: DSO remote app started.
Wrn: Exception in reading VID/PID -> invalid literal for int() with base 10: ''
Inf: Loaded VID/PIDS are:
Inf: VIDs ->  [22102, 17224]
Inf: PIDs ->  [2098, 21815]
Inf: Found UNI-T DSO on USB:
Inf:  idVendor: 17224
Inf:  idProduct: 21815
    Alternate Setting: 0
      Interface class: 255
      Interface sub class: 128
      Interface protocol: 55
      Endpoint: 0x82
        Type: 2
        Max packet size: 64
        Interval: 0
      Endpoint: 0x2
        Type: 2
        Max packet size: 64
        Interval: 0
      Endpoint: 0x81
        Type: 3
        Max packet size: 8
        Interval: 0
Dbg: Device is presented
Dbg: device opened
Dbg: getting product ID
Dbg: getting manufacturer
Dbg: device configured
Dbg: interface claimed
Wrn: Thread end.
Err: Exception in thread: [Errno 32] Pipe error
`

Rules are added to udev rules.d and updated with relevant PID and VID. Any advice on how to proceed?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.