You are here

GPIO_GET_FW_VER (0x0B)

The GPIO_GET_FW_VER command retrieves the version of the GPIO-24 adapter firmware. Version number consists of three parts: major, minor and sub-minor. Major part is the main version number. It is incremented after fundamental changes in the ideology or architecture of the program. Minor part is the number of program release. It is incremented after minor changes in the functionality, capabilities or interface improvements. Sub-minor part is the number of assembly. It is incremented after correction of defects or errors in the program.

Byte 0 GPIO_GET_FW_VER Command ID (0x0B).
Byte 1 ECHO Echo to associate a command with the response.
Bytes 2..7 Reserved Reserved (must be 0).

Command is an 8-byte array of the following format:

Byte 0: GPIO_GET_FW_VER (0x0B)

This byte contains command ID (command type). It should be set to 0x0B.

Byte 1: ECHO

This byte is used to associate a response received from GPIO-24 adapter with a specific command. Response will contain exactly the same value in its echo byte.

Bytes 2..7: Reserved

These bytes are reserved for future usage and must be set to 0.

For convenience GPIO_GET_FW_VER_CMD structure is declared in reports.h file.

GPIO-24 adapter sends GPIO_GET_FW_VER response after command execution. The firmware version is specified inside the response.

GPIO_GET_FW_VER Response

Go to Command

Byte 0 GPIO_GET_FW_VER Response ID (0x0B).
Byte 1 ECHO Echo to associate a command with the response.
Byte 2 ST Command execution status.
Bytes 3 MAJOR Major part of the firmware version.
Bytes 4 MINOR Minor part of the firmware version.
Bytes 5 SUB_MINOR Sub-minor part of the firmware version.
Bytes 6..7 Reserved Reserved

Response is an 8-byte array of the following format:

Byte 0: GPIO_GET_FW_VER (0x0B)

Response ID (response type). This byte will contain 0x0B.

Byte 1: ECHO

Echo byte copied from the corresponding command. It is used to associate the response with the specific command.

Byte 2: ST

Status of the command execution:

  • GPIO_ST_SUCCESS (0x00) – GPIO-24 adapter firmware version has been successfully retrieved.

Byte 3: MAJOR

Major part of the firmware version. It is the main version number and is incremented after fundamental changes in the ideology or architecture of the program.

Byte 4: MINOR

Minor part of the firmware version. It is the number of program release and is incremented after minor changes in the functionality, capabilities or interface improvements.

Byte 5: SUB-MINOR

Sub-minor part of the firmware version. It is the number of assembly and is incremented after correction of defects or errors in the program.

Bytes 6..7: Reserved

These bytes are reserved for future usage.

For convenience GPIO_GET_FW_VER_RSP structure is declared in reports.h file.