opc_version - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > configuration
DESCRIPTION
The opc_version utility is used to interrogate, update or delete the firmware version and serial number of an attached optical particle counter (OPC).
The report is updated automatically each time the particulates_sampler command is run. The report is persisted in the host's filesystem, enabling it to be read by the configuration utility.
Note that, although support is provided for multiple named version reports, the configuration utility will only access unnamed (solitary) version reports.
SYNOPSIS
opc_version.py [-n NAME] [{ -s | -d }] [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-n NAME, --name=NAME | the name of the OPC |
-s, --set | read from OPC and save to file |
-d, --delete | delete the file |
-v, --verbose | report narrative to stderr |
EXAMPLES
./opc_version.py -s
DOCUMENT EXAMPLE - OUTPUT
{"serial": "177336702", "firmware": "OPC-N3 Iss1.1 FirmwareVer=1.17a...........................BS"}
FILES
~/SCS/conf/opc_version.json