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.
| 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:
This byte contains command ID (command type). It should be set to 0x0E.
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.
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.
| 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:
Response ID (response type). This byte will contain 0x0E.
Echo byte copied from the corresponding command. It is used to associate the response with the specific command.
GPIO_ST_SUCCESS (0x00) – The ID number of the GPIO-24 adapter was successfully retrieved.
ID number of the spesific device.
These bytes are reserved for future usage.
For convenience GPIO_GET_DEV_ID_RSP structure is declared in reports.h file.