Remote Gpio Control - We PROTEUS-III User Manual

Hide thumbs Also See for PROTEUS-III:
Table of Contents

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Proteus-III

11. Remote GPIO control

The Proteus-III allows to control free GPIOs via remote access. Chapter 7.7 contains the de-
scription of the necessary commands.
To use the remote GPIO control feature of the Proteus-III, the GPIOs of interest must be con-
figured first. This can be done in two ways. Either by the local host (see figure 12 ), when the
®
radio module is in idle mode (not connected via Bluetooth
LE), or via the connected remote
device (see figure 13 ).
In case of the local host, it must send a CMD_GPIO_LOCAL_WRITECONFIG_REQ command to the
®
radio module via UART . In case of the remote device, it must setup a Bluetooth
LE connec-
tion to the remote device first and send a CMD_GPIO_REMOTE_WRITECONFIG_REQ command to the
®
radio module via Bluetooth
LE afterwards.
The configuration is stored in flash memory, such that it is retained also after a device restart.
It can be reset to default by using the CMD_FACTORYRESET_REQ command.
The configuration can be also read out using the respective commands, CMD_GPIO_LOCAL_
READCONFIG_REQ via local host or CMD_GPIO_REMOTE_READCONFIG_REQ via remote device.
If the configuration has been done, the configured GPIOs can be controlled by the local host
controller or by any remote device.
To control a GPIO via local host controller just send the respective commands, CMD_GPIO_
LOCAL_WRITE_REQ for setting GPIO output values (see figure 16 ), or CMD_GPIO_LOCAL_READ_REQ
for reading GPIO values (see figure 17 ). Each time the GPIOs are written via local host, the
connected remote device is informed using a CMD_GPIO_LOCAL_WRITE_IND message.
®
To control a GPIO via remote device, first setup a Bluetooth
LE connection to the radio mod-
ule and send the respective commands, CMD_GPIO_REMOTE_WRITE_REQ for setting GPIO output
values (see figure 18 ), or CMD_GPIO_REMOTE_READ_REQ for reading GPIO values (see figure 19 ).
Each time the GPIOs are written via remote connection, the local host is informed using a
CMD_GPIO_REMOTE_WRITE_IND message.
Order code 2611011024000
181
Version 1.8 , July 2022
www.we-online.com/wcs

Advertisement

Table of Contents
loading

This manual is also suitable for:

Proteus-iii-spi26110110240102611011024000

Table of Contents