#power-supply #remote-control #serial #korad

bin+lib kwr103

Remote control Korad KWR103 programmable DC power supplies

1 unstable release

0.1.0 Jan 10, 2024

#1278 in Command line utilities

MIT/Apache

36KB
750 lines

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

Dependencies

~3–4.5MB
~84K SLoC