WIRELESS CONNECTIVITY & SENSORS
User manual Thyone-I
GPIO_ID:
ID of the GPIO, see chapter
Value:
• if
Function
is output or input
0x00:
The remote GPIO is LOW.
0x01:
The remote GPIO is HIGH.
0xFF:
Failed reading remote GPIO value.
• if
Function
is PWM
0xFF:
Failed reading remote GPIO value.
Other:
Ratio (0x00=0%,. . . , 0xFE=100%)
7.6.8.1. Example: Read the values of remote GPIOs
Read the value of the GPIOs with GPIO_ID
0x01
and
0x02
of the remote device with address
0x6C000002:
Start signal
Command
Length
Remote address
Block
1
CS
0x02
0x2C
0x07 0x00
0x02 0x00 0x00 0x6C
0x02
0x01 0x02
0x46
The local module responds with a
followed by a
to indicate receipt of the packet over UART and completion transmission respectively. 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 | 0x40
Length
Remote
address
RSSI
Block
1
Block
2
CS
0x02
0xEC
0x07 0x00
0x02 0x00
0x00 0x6C
0xCE
0x02
0x01
0x00
0x02
0x02
0x01
0x47
Successfully read the values of the remote GPIOs with GPIO_ID
0x01
(GPIO is LOW) and
0x02
(GPIO is HIGH).
Order code 2611011021000
69
Version 2.3 , July 2022