
2.2 Remote control
To control a GPIO via remote device, first setup a Bluetooth
®
LE connection to the radio
module "Module 1" and send the respective commands,
CMD_GPIO_REMOTE_WRITE_REQ
for
setting GPIO output values (see figure
), or
CMD_GPIO_REMOTE_READ_REQ
for reading GPIO
values (see figure
In case a host controller is connected to "Module 1", each time the GPIOs are written to
via remote connection, the local host is informed using a
CMD_GPIO_REMOTE_WRITE_IND
mes-
sage.
Module
1
Host 1
Module
2
Host 2
CMD_GPIO_REMOTE_WRITE_CNF
CMD_GPIO_REMOTE_WRITE_REQ
C
M
D
_G
P
IO
_R
EM
O
TE
_W
R
IT
E
_C
N
F
C
M
D
_G
P
IO
_R
EM
O
TE
_W
R
IT
E
_R
EQ
GPIO
1
0
Wire
Radio
CMD_GPIO_REMOTE_WRITE_IN D
Figure 5: Set the output value of a GPIO via remote device
Module
1
Host 1
Module
2
Host 2
CMD_GPIO_REMOTE_READ_CNF
CMD_GPIO_REMOTE_READ_REQ
C
M
D
_G
P
IO
_R
EM
O
TE
_R
EA
D
_C
N
F
C
M
D
_G
P
IO
_R
EM
O
TE
_R
EA
D
_
R
EQ
GPIO
1
0
Wire
Radio
Figure 6: Read the input value of a GPIO via remote device
ANR020 Proteus-III version 1.0
© July 2020
www.we-online.com/wireless-connectivity
9