Skip to content

A Rust library and CLI application for Powenetics v2 power measurement devices.

License

Notifications You must be signed in to change notification settings

KIT-OSGroup/powenetics-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powenetics-v2

Library and CLI application for power and energy measurements using the Powenetics v2 device. Written in Rust. Tested only on Linux. Should work on Windows, too (I guess).

Usage

TL;DR

$ cargo build
$ target/debug/powenetics-v2 --csv power.csv /dev/ttyACM0

Detailed Usage

Connect the Powenetics v2 device via USB. Powenetics v2 communicates via Serial-over-USB, so you will have to figure out the right serial port. Running powenetics-v2 without any arguments will print a list of available serial ports where the right one is typically (probably not on Windows) marked as "USB". Depending on your Linux distribution, it might be necessary to configure the appropriate file permissions for accessing the port. Physical replugging is required in case any error occurs as there is no other way to reset the device.

$ powenetics-v2 --help
Powenetics v2 command line tool

Usage: powenetics-v2 [OPTIONS] [PORT]

Arguments:
  [PORT]  Serial port name or path (run without arguments for list of available ports)

Options:
      --csv <path>  Write measurement data to CSV file
  -h, --help        Print help

Output

Currently only CSV file output is supported. Output consists of voltage (mV), current (mA), and accumulated energy (nJ) for each channel. Powenetics v2 provides ~1000 updates per second. Measurement data is provided for the following channels (in this order):

  • ATX 3.3V
  • ATX 5V Standby
  • ATX 12V
  • ATX 5V
  • EPS 12V #1
  • ATX12VO 12V Standby
  • EPS 12V #3
  • EPS 12V #2
  • PCIe 12V #3
  • PCIe 12V #2
  • PCIe Slot 3.3V
  • PCIe Slot 12V
  • PCIe 12V #1

About

A Rust library and CLI application for Powenetics v2 power measurement devices.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages