systemget: Show Hardware Setup

The system configuration of the hardware interfaces is read out and changed via the command line using systemget and systemset. All changes are persisted, i.e. a configuration is retained after a reboot of the entire system.

Synopsis

Usage: ./systemget [options]‚
Client app connecting to ‘Black-Box’ device for test purposes.
Options:
-h, --help

Displays help on commandline options.

--help-all

Displays help, including generic Qt options.

-v, --version

Displays version information.

-a, --address <host>

Host address of the gateway [localhost].

-p, --port <port>

Port of the gateway [51955].

-f, --frequency <period>

Frequency (period) of sending in ms [1000]

--debug

Report additional debug info in log.

-s, --severity <level>

Max severity (fatal|error|warning|info|debug|verbose) of log message.

Examples

The configuration of the hardware interfaces of the device can be queried with the following instruction ./systemget -a blackbox2 -f 0 -s info. The output is displayed on the console as shown in the following example.

2024-05-22 15:52:05.822 NONE  Press Ctrl-C to abort application.
2024-05-22 15:52:05.823 INFO  Try to connect to blackbox2@51955...
2024-05-22 15:52:05.836 INFO  Client is connected...
2024-05-22 15:52:05.837 INFO  Session identifier 8, protocol version 0
2024-05-22 15:52:05.841 INFO  Black-Box: 'the-black-box' - Fri May 17 09:24:37 2024 UTC
2024-05-22 15:52:05.841 INFO  Pin0:Unknown
2024-05-22 15:52:05.841 INFO  Pin1:Unknown
2024-05-22 15:52:05.841 INFO  Pin2:Unknown
2024-05-22 15:52:05.841 INFO  Pin3:Unknown
2024-05-22 15:52:05.842 INFO  Pin4:Unknown
2024-05-22 15:52:05.842 INFO  Pin5:Unknown
2024-05-22 15:52:05.842 INFO  Pin6:Unknown
2024-05-22 15:52:05.842 INFO  Pin7:Unknown
2024-05-22 15:52:05.842 INFO  Pin8:Unknown
2024-05-22 15:52:05.842 INFO  Pin9:Unknown
2024-05-22 15:52:05.842 INFO  Pin10:Unknown
2024-05-22 15:52:05.842 INFO  Pin11:Unknown
2024-05-22 15:52:05.842 INFO  Pin12:Unknown
2024-05-22 15:52:05.842 INFO  Pin13:Unknown
2024-05-22 15:52:05.842 INFO  Pin14:Unknown
2024-05-22 15:52:05.842 INFO  Pin15:Unknown
2024-05-22 15:52:05.842 INFO  Pin16:Unknown
2024-05-22 15:52:05.842 INFO  Pin17:Analog Input
2024-05-22 15:52:05.842 INFO  Pin18:Analog Input
2024-05-22 15:52:05.842 INFO  Pin19:Unknown
2024-05-22 15:52:05.842 INFO  Pin20:Falling Edge Interrupt
2024-05-22 15:52:05.843 INFO  Pin21:Digital Output
2024-05-22 15:52:05.843 INFO  Pin22:Analog Input
2024-05-22 15:52:05.843 INFO  Pin23:Digital Output
2024-05-22 15:52:05.843 INFO  Pin24:Unknown
2024-05-22 15:52:05.843 INFO  Pin25:Unknown
2024-05-22 15:52:05.843 INFO  Pin26:Unknown
2024-05-22 15:52:05.843 INFO  Pin27:Unknown
2024-05-22 15:52:05.843 INFO  Pin28:Unknown
2024-05-22 15:52:05.843 INFO  Pin29:Unknown
2024-05-22 15:52:05.843 INFO  Pin30:Unknown
2024-05-22 15:52:05.843 INFO  Pin31:Unknown
2024-05-22 15:52:05.843 INFO  PWM Frequency: 1220.7 Hz (0/65535)
2024-05-22 15:52:05.843 INFO  Channel0:Unknown
2024-05-22 15:52:05.843 INFO  Channel1:Unknown
2024-05-22 15:52:05.843 INFO  Channel2:Unknown
2024-05-22 15:52:05.843 INFO  Channel3:Unknown
2024-05-22 15:52:05.843 INFO  I2C 0:Unknown
2024-05-22 15:52:05.843 INFO  I2C 1:Unknown
2024-05-22 15:52:05.843 INFO  SPI:Unknown
2024-05-22 15:52:05.844 INFO  UART 0:Unknown
2024-05-22 15:52:05.844 INFO  UART 1:Unknown
2024-05-22 15:52:05.844 INFO  CAN:Unknown

In this example only the pins 17 and 18 are configured as analog input. The pins 20 - 23 are the integrated pins with fixed functionality. The device is personalized as ‘the-black-box’ and the configuration was updated last on May, 17th.