Skip to content

didim99/witrn-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WITRN driver

Driver for reading data from modern WITRN USB-meters such as U3, U3L, A2, and C4 (tested). A2L and C4L can also be supported theoretically but I don't have hardware for testing.

Supported hardware

Installation

Available on PyPI:

pip install witrn-driver

Driver can be installed as python package using pip install -e for local development.

Related projects

Examples

Sample output of exmaples/read_data.py:

Connect your device and press Enter
No kernel driver attached
Claimed device
Press Enter to stop reading

 packets |      rectime |       uptime |      V      A |     D+     D-
   23755 |  0:03:57.074 |  3:10:55.199 |  5.158  0.004 |  2.717  2.706

Good bye!

Limitations

Note! For Windows users, if you see message Device not found! when device is actually connected, try use zadig utility and replace the default driver for your WITRN device to libusb-*.

Note! For Linux users, to run this script under non-root user install udev rules:

$ sudo install --mode=0644 --target-directory=/etc/udev/rules.d/ udev/90-usbmeter.rules
$ sudo udevadm trigger

About

Driver for reading data from modern WITRN meters

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages