WIRELESS CONNECTIVITY & SENSORS
User manual Thyone-I
7.6.4. CMD_GPIO_REMOTE_GET_CONFIG_REQ
This command reads the current configuration of the free GPIOs of the addressed remote
device.
Format:
Start signal
Command
Length
Remote address
CS
0x02
0x2A
0x00 0x00
4 Bytes
1 Byte
Response (
CMD_GPIO_REMOTE_GET_CONFIG_CNF
Start signal
Command | 0x40
Length
CS
0x02
0x6A
0x01 0x00
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 configurations. The response from the remote
module is forwarded to the host as
CMD_GPIO_REMOTE_GET_CONFIG_RSP
Start signal
Command
Length
Remote
address
RSSI
Block
1
. . .
Block
n
CS
0x02
0xEA
2 Bytes
4 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
CMD_GPIO_REMOTE_GET_CONFIG_RSP block structure
Each
Block
has the following format:
Length
GPIO_ID
Function
Values
1 Byte
1 Byte
1 Byte
(Length - 2) Bytes
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
Function:
0x00:
GPIO disconnected
0x01:
GPIO works as input
0x02:
GPIO works as output
0x03:
GPIO works as PWM
Values:
• if
Function
is disconnected, Length is 0x02:
value field is not used in this block
Order code 2611011021000
60
Version 2.3 , July 2022