
2 General description
This chapter is based on a test setup with two Proteus-III radio modules. "Module 1" is
the one, whose GPIOs are configured and controlled. It can be run without host controller.
"Module 2" is the remote device which sends the commands for GPIO control via radio to
"Module 1". It must be controlled via host controller "Host 2" to send the correct commands.
Instead of the remote Proteus-III "Module 2", another remote device such as a smart phone
can also be used.
Chapter
contains an example, where the Proteus-III "Module 1" is controlled by another
Proteus-III "Module 2". Chapter
shows the example, where the Proteus-III "Module 1" is
controlled by a smart phone.
The full description of the necessary UART commands can be found in the
Proteus-III manual, where the radio commands are described in detail in the
application note "ANR009 Proteus-III Advanded Developer Guide".
2.1 Remote GPIO configuration
To use the remote GPIO control feature of the Proteus-III "Module 1", the GPIOs of interest
must be configured first. This configuration defines the GPIO function of the pin. Either an
output pin, or an input pin with/without pull resistor.
To do so, the remote device "Module 2" must setup a Bluetooth
®
LE connection to the
radio module "Module 1" and send a
CMD_GPIO_REMOTE_WRITECONFIG_REQ
command via
Bluetooth
®
LE thereafter (see figure
The configuration is stored in flash memory, such that it is retained even after a device
restart.
It can be read back by the remote device "Module 2" using the
CMD_GPIO_REMOTE_READCONFIG_
REQ
command (see figure
After the configuration has been done, the configured GPIOs are ready to be controlled.
ANR020 Proteus-III version 1.0
© July 2020
www.we-online.com/wireless-connectivity
5