7.7.3. CMD_GPIO_REMOTE_WRITECONFIG_REQ
This command configures the free GPIOs of the connected remote device. This is necessary
to allow remote GPIO control. As the configuration is stored in flash, it is retained after
restarting the device. This command can be run successfully only if the remote device is
connected via Bluetooth
®
LE.
The flash memory used to store these settings has a limited count of write
cycles of minimum 10.000. Try to avoid performing periodic
as each command will use one write cycle.
Format:
Start signal
Command
Length
Block
1
. . .
Block
n
CS
0x02
0x28
2 Bytes
x Bytes
x Bytes
1 Byte
Response (
CMD_GPIO_REMOTE_WRITECONFIG_CNF
Start signal
Command | 0x40
Length
Status
Block
1
. . .
Block
n
CS
0x02
0x68
2 Bytes
1 Byte
x Bytes
x Bytes
1 Byte
Status:
0x00:
Request received and processed
0x01:
Operation failed
0xFF:
Operation not permitted
CMD_GPIO_REMOTE_WRITECONFIG_REQ block structure
Each
Block
has the following format:
Length
GPIO_ID
Function
Value
0x03
1 Byte
1 Byte
1 Byte
Length:
Length of the subsequent bytes in this block
GPIO_ID:
ID of the GPIO, see chapter
Function:
0x01:
GPIO works as input
0x02:
GPIO works as output
Value:
Proteus-III reference manual version 1.3
© August 2020
www.we-online.com/wireless-connectivity
98