psu_conf - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > configuration
DESCRIPTION
The psu_conf utility is used to specify whether a South Coast Science power supply (PSU) board is present and if so, which model is provided. Three models are currently available:
- MobileV1 - I2C - PZHBt1 or PZHBt2 interface
- MobileV2 - I2C - PZHBt1 or PZHBt2 interface
- OPCubeV1 - I2C - charger is PCA9534A at 0x38
- OPCubeV1.1 - I2C - charger is PCA9849 at 0x20
- OsloV1 - serial port
- PrototypeV1 - serial port
A battery pack may also be specified. A warning is given if a battery is specified for a PSU that does not use one, or if a battery is not specified for one that does.
Note that the psu_monitor process must be restarted for changes to take effect.
SYNOPSIS
psu_conf.py { [-p PSU_MODEL] [-b BATT_MODEL] [-t { 0 | 1 }] [-i REPORTING_INTERVAL] | -d } [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-p PSU_MODEL, --psu-model=PSU_MODEL | set PSU model { MobileV1 | MobileV2 | OPCubeV1 | OPCubeV1.1 | OsloV1 | PrototypeV1 } |
-b BATT_MODEL, --batt-model=BATT_MODEL | set battery model { PackV1 } |
-t IGNORE_THRESHOLD, --ignore-threshold=IGNORE_THRESHOLD | ignore power threshold (default false) |
-i REPORTING_INTERVAL, --reporting-interval=REPORTING_INTERVAL | PSU monitor reporting interval |
-d, --delete | delete the PSU configuration |
-v, --verbose | report narrative to stderr |
EXAMPLES
./psu_conf.py -p OsloV1 -i 10
DOCUMENT EXAMPLE
{"model": "MobileV2", "batt-model": "PackV1", "ignore-threshold": true, "reporting-interval": 10}
FILES
~/SCS/conf/psu_conf.json