kwr103

Crates.iokwr103
lib.rskwr103
version0.1.0
sourcesrc
created_at2024-01-10 19:57:03.152483
updated_at2024-01-10 19:57:03.152483
descriptionRemote control Korad KWR103 programmable DC power supplies
homepagehttps://github.com/weinshec/kwr103
repositoryhttps://github.com/weinshec/kwr103
max_upload_size
id1095532
size61,952
Christoph Weinsheimer (weinshec)

documentation

README

KWR103

Remote control Korad KWR103 type programmable DC power supplies via serial/USB or ethernet/UDP.

Installation

Choose from the following options

  • Download the pre-compiled binary matching your target platform from the Releases page

  • Build the binary from source by cloning this repository and run cargo build --release

Usage

For library usage, please refer to the documention at docs.rs

For command line usage, please refer to the built-in help

❯ kwr103 help
Remote control Korad KWR103 programmable DC power supplies

Usage: kwr103 [OPTIONS] <COMMAND>

Commands:
  voltage  Set the output voltage
  current  Set the output current
  output   Turn power supply output 'on' or 'off'
  status   Show current output voltage and current
  info     Show system information
  dhcp     Turn DHCP 'on' or 'off'
  help     Print this message or the help of the given subcommand(s)

Options:
      --device <DEVICE>  Specify device for serial connection [example: /dev/ttyACM0]
      --ip <IP>          Specify IP address for ethernet connection [example: 192.168.1.195]
      --port <PORT>      UDP port for ethernet connected devices [default: 18190]
      --baud <BAUD>      Serial baud rate [default: 115200]
      --id <ID>          Optional RS485 device ID
  -h, --help             Print help
  -V, --version          Print version

Example usage:

❯ kwr103 status
Output: Off, Voltage[V]: 0.000, Current[A]: 0.000

❯ kwr103 output on
❯ kwr103 status
Output: On, Voltage[V]: 42.000, Current[A]: 0.131

Acknowledgments

The development of this crate is heavily inspired by Nicoretti/ka3005p

Commit count: 0

cargo fmt