piTest
|
Command to open a list of all piTest options. |
-d
|
Retrieves the device list. |
-v <var_name>
|
Displays information for a variable. |
-V
|
Displays version information for this program. |
-1
|
Executes the following read command only once. |
-q
|
Executes the following read command silently and only shows the value.
Can also be used to suppress the spinner output during a firmware update.
|
-r <var_name> f
|
Reads the value of a variable.
The length of the variable as defined in PiCtory is respected.
The optional parameter f defines the format: h for hex, d for decimal (default), and b for binary.
The value is displayed cyclically every second until Ctrl+C is pressed.
|
-r o,l,f
|
Reads l bytes starting from offset o .
The optional parameter f defines the format: h for hex, d for decimal (default), and b for binary.
The value is displayed cyclically every second until Ctrl+C is pressed.
|
-w <variable name>,v
|
Writes the value v to the variable <variable name> .
The length of the variable as defined in PiCtory is respected.
|
-w o,l,v
|
Writes l bytes with the value v (in decimal) to offset o .
The length must be 1, 2, or 4.
|
-g o,b
|
Retrieves bit b (0-7) from the byte at offset o .
The value is displayed cyclically every second until Ctrl+C is pressed.
|
-s o,b,0/1
|
Sets bit b (0-7) of the byte at offset o to 0 or 1.
|
-R a,b
|
Resets counter and encoder values to 0.
a is the address of a RevPi DIO or RevPi DI as shown in the device list (option -d). b is a bitfield defining which counters/encoders to reset.
|
-C <address>
|
Retrieves the relay wear counters of a RevPi RO.
<address> is the address of a RevPi RO as shown in the device list (option -d).
|
-f
|
Starts the firmware update process.
When used, the firmware is only updated if the new version is newer than the one currently running on the expansion module.
This behavior can be changed with the --force option.
|
--module <address>
|
Specifies the address <address> of the expansion module to be used with the following option
This option can be used with the -f option to update a specific expansion module.
|
--force
|
Forces an expansion module update, even if the firmware version is the same or older than the version currently running on the expansion module.
This option can be used with the -f option and requires the target address of the expansion module (option --module ).
|
--assume-yes
|
Does not prompt for confirmation when updating firmware with -f .
To be effective, this option must be specified before the -f option.
|
-l
|
Listens for events, such as a piControl reset initiated by another process.
With this option, the exit status of piTest no longer indicates whether the command failed, but instead reflects the event that was caught.
|
-S
|
Stops cyclic synchronization of the process image with connected RevPi I/O modules and RevPi Gateways.
This allows values in the process image to be manually set using the -w option, simulating values as if they were received from connected expansion modules.
|
-x
|
Resets the control process. |
-h
|
Displays a summary of the options. |