Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ rd-usb Public
forked from kolinger/rd-usb

Web GUI for RuiDeng USB testers (UM34C, UM24C, UM25C)

License

Notifications You must be signed in to change notification settings

N2NUO/rd-usb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web GUI for RuiDeng USB testers (UM34C, UM24C, UM25C)

Simple web GUI written in Python 3. Measurements are stored in sqlite database. Tables and graphs are supported. Live preview and graphing is also available.

Tested on UM34C/UM24C/UM25C.

Based on https://github.com/sebastianha/um34c

Requirements

  • USB meter needs to be connected as serial port
    • Pairing with Windows Settings works fine. After successful installation some serial ports are installed in Device Manager. In my case two. One of them works.
    • On Linux rfcomm can be used

Installation

Binaries (Win x64 only)

  1. Download from releases
  2. Extract archive
  3. Run executable and web server will be shortly spawned on address http://127.0.0.1:5000
  4. Application will be probably blocked by Microsoft SmartScreen. For unblock click More info and Run anyway. I don't have certificate for signing and application does not have any reputation so Microsoft will block by default.

Source code

  1. Python 3.4 or newer is required
  2. Download from github or git clone https://github.com/kolinger/rd-usb.git
  3. Install requirements pip install -r requirements.txt
  4. Run with python web.py - this will spawn web server on http://127.0.0.1:5000, port can be changed with first argument: python web.py 5555

On Windows python can be found in Python's installation folder. For example replace python with C:\Python37\python.exe web.py and pip with C:\Python37\python.exe -m pip install -r requirements.txt.

On Linux use python3 and pip3.

Usage

  1. Find your serial port (in Device Manager) and fill serial port input.
  2. Name your session. For example 'testing some power bank'. This is used to seperate multiple measurements from each other.
  3. Select sample rate. Faster sample rate will result in more accurate data but also will create a lot more data. For short measurements use faster sample rate. For longer use slower rate. Choose carefuly.
  4. Click Connect
  5. Connection will be hopefully successful and you will see measurements in log. Otherwise read log for error messages.

setup

Graphs

tables

Tables

tables

Development

Building binaries

  1. Install pyinstaller: pip install pyinstaller
  2. Generate binary with provided spec file: pyinstaller pyinstaller.spec
  3. Binaries will be saved in dist directory

About

Web GUI for RuiDeng USB testers (UM34C, UM24C, UM25C)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 50.5%
  • JavaScript 23.1%
  • HTML 22.8%
  • CSS 3.6%