7.7.5. CMD_GPIO_REMOTE_WRITE_REQ
This command writes 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 pins
before and the remote device is connected via Bluetooth
®
LE.
Format:
Start signal
Command
Length
Block
1
. . .
Block
n
CS
0x02
0x29
2 Bytes
x Bytes
x Bytes
1 Byte
Response (
Start signal
Command | 0x40
Length
Status
Block
1
. . .
Block
n
CS
0x02
0x69
2 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
Status:
0x00:
Request received and processed
0x01:
Operation failed
0xFF:
Operation not permitted (i.e. no device connected via Bluetooth
®
LE)
CMD_GPIO_REMOTE_WRITE_REQ 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
GPIO_ID:
ID of the GPIO, see chapter
Value:
0x00:
Set GPIO to low
0x01:
Set GPIO to high
CMD_GPIO_REMOTE_WRITE_CNF block structure
Each
Block
has the following format:
Length
GPIO_ID
Status
0x02
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
102