You are here

GPIO_GET_DEV_ID (0x0E)

The GPIO_GET_DEV_ID command retrieves ID of the GPIO-24 adapter. ID is the value which idetifies the specific GPIO-24 adapter, if several devices are connected.

GPIO_GET_DEV_ID Command

Go to Response

Byte 0 GPIO_GET_DEV_ID Command ID (0x0E).
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_DEV_ID (0x0E)

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

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_DEV_ID_CMD structure is declared in reports.h file.

GPIO-24 adapter sends GPIO_GET_DEV_ID response after command execution. Device ID is specified inside the response.

GPIO_GET_DEV_ID Response

Go to Command

Byte 0 GPIO_GET_DEV_ID Response ID (0x0E).
Byte 1 ECHO Echo to associate a command with the response.
Byte 2 ST Command execution status.
Byte 3 DEV_ID ID number of the specific device.
Bytes 4..7 Reserved Reserved.

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

Byte 0: GPIO_GET_DEV_ID (0x0E)

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

Byte 1: ECHO

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

Byte 2: ST
  • GPIO_ST_SUCCESS (0x00) – The ID number of the GPIO-24 adapter was successfully retrieved.

Byte 3: DEV_ID

ID number of the spesific device.

Bytes 4..7: Reserved

These bytes are reserved for future usage.

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