
7.6. Run the Bluetooth test modes . . . . . . . . . . . . . . . . . . . . . . . . . . 88
7.6.1. CMD_DTMSTART_REQ . . . . . . . . . . . . . . . . . . . . . . . . 88
7.6.2. CMD_DTM_REQ ............................ 88
7.6.2.1. Example: Transmission, 16 times 0x0F, channel 0 . . . . . . . 90
7.6.2.2. Example: Receiver, channel 0 . . . . . . . . . . . . . . . . . . . 91
7.6.2.3. Example: Transmission, carrier test, channel 0 . . . . . . . . . 92
7.6.2.4. Example: Set TX power to -4 dBm . . . . . . . . . . . . . . . . 92
7.6.2.5. Example: Set PHY to 2MBit mode . . . . . . . . . . . . . . . . 92
7.7. Switching GPIOs by remote control . . . . . . . . . . . . . . . . . . . . . . . 94
7.7.1. CMD_GPIO_LOCAL_WRITECONFIG_REQ . . . . . . . . . . . . . 94
7.7.1.1. Example: Configure two GPIOs to output high . . . . . . . . . . 95
7.7.2. CMD_GPIO_LOCAL_READCONFIG_REQ . . . . . . . . . . . . . 96
7.7.2.1. Example: Read the current GPIO configuration . . . . . . . . . 97
7.7.3. CMD_GPIO_REMOTE_WRITECONFIG_REQ . . . . . . . . . . . . 98
7.7.3.1. Example: Configure two GPIOs of the connected remote device
tooutputhigh............................ 99
7.7.4. CMD_GPIO_REMOTE_READCONFIG_REQ . . . . . . . . . . . . 100
7.7.4.1. Example: Read the current GPIO configuration of the connect-
edremotedevice.......................... 101
7.7.5. CMD_GPIO_REMOTE_WRITE_REQ . . . . . . . . . . . . . . . . . 102
7.7.5.1. Example: Set a remote output GPIO to low . . . . . . . . . . . 103
7.7.6. CMD_GPIO_REMOTE_READ_REQ . . . . . . . . . . . . . . . . . 104
7.7.6.1. Example: Read the values of remote GPIOs . . . . . . . . . . . 105
7.7.7. CMD_GPIO_LOCAL_WRITE_REQ . . . . . . . . . . . . . . . . . . 106
7.7.7.1. Example: Set a local output GPIO to low . . . . . . . . . . . . . 107
7.7.8. CMD_GPIO_LOCAL_READ_REQ . . . . . . . . . . . . . . . . . . 108
7.7.8.1. Example: Read the values of local GPIOs . . . . . . . . . . . . 109
7.7.9. CMD_GPIO_REMOTE_WRITECONFIG_IND . . . . . . . . . . . . 110
7.7.9.1. Example: Two GPIOs have been configured by the connected
remote device to output high . . . . . . . . . . . . . . . . . . . 110
7.7.10. CMD_GPIO_REMOTE_WRITE_IND . . . . . . . . . . . . . . . . . 111
7.7.10.1. Example: GPIOs have been written via remote access . . . . . 111
7.7.11. CMD_GPIO_LOCAL_WRITE_IND . . . . . . . . . . . . . . . . . . 112
7.7.11.1. Example: GPIOs of the remote device have been written by its
localhost .............................. 112
7.8. Othermessages ................................. 113
7.8.1. CMD_ERROR_IND........................... 113
7.9. Messageoverview ................................ 114
8. UserSettings - Module configuration values 118
8.1. FS_DeviceInfo: Read the chip type and OS version . . . . . . . . . . . . . . 118
8.1.1. Example1................................ 119
8.2. FS_FWVersion: Read the firmware version . . . . . . . . . . . . . . . . . . 120
8.2.1. Example1................................ 120
8.3. FS_MAC: Read the MAC address . . . . . . . . . . . . . . . . . . . . . . . . 121
8.3.1. Example1................................ 121
8.4. FS_BTMAC: Read the Bluetooth conform MAC address . . . . . . . . . . . 122
8.4.1. Example1................................ 122
Proteus-III reference manual version 1.3 © August 2020
www.we-online.com/wireless-connectivity 5