CLI tool for the Odroid Smart Power 1
Find a file
2024-08-30 14:53:56 +02:00
build Initial commit 2024-08-30 11:49:53 +02:00
src Add data readout capabilities 2024-08-30 14:53:56 +02:00
.gitignore Add functions to read version and status 2024-08-30 13:55:44 +02:00
LICENSE Create LICENSE 2024-08-30 11:58:50 +02:00
README.md Add data readout capabilities 2024-08-30 14:53:56 +02:00

CLI Program for Odroid Smart Power V1

This is a command line interface program for controlling the Odroid Smart Power V1

This is a discontunued product, but I've had one laying around for a decade and I wanted an easy way to interface with it through a linux terminal

Usage

The program takes two arguments:

Path to the device descriptor

And a command

You need to find out what device file that corresponds to your PSU when you connect it, usually something like /dev/hidrawX

Commands

onoff : Toggles power

startstop : Toggles power logging

status : Returns the status of the PSU

version : Returns the FW version

data: Returns output voltage, current, power and consumed energy

Building

As for now, just build the binary with this command:

gcc -g src/smartpowercli.c -o build/smartpowercli