WIRELESS CONNECTIVITY & SENSORS
User manual Thyone-I
7.6.8. CMD_GPIO_REMOTE_READ_REQ
This command reads the free GPIOs of the remote device. This command can be only run
successfully if the respective pins of the remote device have been configured as output or input
pins before.
Format:
Start signal
Command
Length
Remote address
Block
1
CS
0x02
0x2C
2 Bytes
4 Bytes
x Bytes
1 Byte
Response (
Start signal
Command | 0x40
Length
CS
0x02
0x6C
2 Bytes
1 Byte
1 Byte
This response is followed by a
to indicate the completion of the packet
transmission. If the packet was correctly received by the remote module, it responds with a
confirmation message containing the GPIO values. The response from the remote module is
forwarded to the host as
Start signal
Command
Length
Remote
address
RSSI
Block
1
. . .
Block
n
CS
0x02
0xEC
2 Bytes
4 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
CMD_GPIO_REMOTE_READ_REQ block structure
The
Block
has the following format:
Length
GPIO_ID
1
. . .
GPIO_ID
n
1 Bytes
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
CMD_GPIO_REMOTE_READ_RSP block structure
Each
Block
has the following format:
Length
GPIO_ID
Value
0x02
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
Order code 2611011021000
68
Version 2.3 , July 2022