You are here

GPIO_SET_DEV_ID (0x0D)

The GPIO_SET_DEV_ID command sets ID of the GPIO-24 adapter. ID is the value which identifies the specific GPIO-24 adapter, if several devices are connected to the same PC. ID is stored in internal EEPROM memory of the adapter and can be retrieved with the help of GPIO_GET_DEV_ID command.

GPIO_SET_DEV_ID Command

Go to Response

Byte 0 GPIO_SET_DEV_ID Command ID (0x0D).
Byte 1 ECHO Echo to associate a command with the response.
Byte 2 DEV_ID ID number of a specific device.
Bytes 3..7 Reserved Reserved (must be 0).

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

Byte 0: GPIO_SET_DEV_ID (0x0D)

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

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.

Byte 2: DEV_ID

ID number of the specific device.

Bytes 3..7: Reserved

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

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

GPIO-24 adapter sends GPIO_SET_DEV_ID response after command execution.

GPIO_SET_DEV_ID Response

Go to Command

Byte 0 GPIO_SET_DEV_ID Response ID (0x0D).
Byte 1 ECHO Echo to associate a command with the response.
Byte 2 ST Command execution status.
Bytes 3..7 Reserved Reserved

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

Byte 0: GPIO_SET_DEV_ID (0x0D)

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

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 of the GPIO-24 adapter was successfully set.

Bytes 3..7: Reserved

These bytes are reserved for future usage.

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