
7.1.4. CMD_DISCONNECT_REQ . . . . . . . . . . . . . . . . . . . . . . 39
7.1.5. CMD_DISCONNECT_IND . . . . . . . . . . . . . . . . . . . . . . . 40
7.1.6. CMD_PHYUPDATE_REQ . . . . . . . . . . . . . . . . . . . . . . . 40
7.1.7. CMD_PHYUPDATE_IND . . . . . . . . . . . . . . . . . . . . . . . . 41
7.1.8. CMD_GETBONDS_REQ . . . . . . . . . . . . . . . . . . . . . . . . 41
7.1.8.1. Example1.............................. 42
7.1.9. CMD_DELETEBONDS_REQ . . . . . . . . . . . . . . . . . . . . . 42
7.1.9.1. Example1.............................. 43
7.1.9.2. Example2.............................. 43
7.1.10. CMD_ALLOWUNBONDEDCONNECTIONS_REQ . . . . . . . . . . 43
7.2. Transmit and receive data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7.2.1. CMD_DATA_REQ............................ 45
7.2.2. CMD_TXCOMPLETE_RSP . . . . . . . . . . . . . . . . . . . . . . 45
7.2.3. CMD_DATA_IND ............................ 45
7.3. Configuring the module and modifying the device settings . . . . . . . . . . 47
7.3.1. CMD_SET_REQ ............................ 47
7.3.1.1. Example1.............................. 48
7.3.1.2. Example2.............................. 48
7.3.2. CMD_GET_REQ ............................ 49
7.3.2.1. Example1.............................. 49
7.4. Manage the device state . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
7.4.1. CMD_GETSTATE_REQ . . . . . . . . . . . . . . . . . . . . . . . . 50
7.4.1.1. Example1.............................. 50
7.4.2. CMD_RESET_REQ........................... 51
7.4.3. CMD_SLEEP_REQ........................... 51
7.4.4. CMD_SLEEP_IND ........................... 52
7.4.5. CMD_FACTORYRESET_REQ . . . . . . . . . . . . . . . . . . . . . 52
7.4.6. CMD_UARTDISABLE_REQ . . . . . . . . . . . . . . . . . . . . . . 53
7.4.7. CMD_UARTENABLE_IND . . . . . . . . . . . . . . . . . . . . . . . 53
7.5. Run the Bluetooth test modes . . . . . . . . . . . . . . . . . . . . . . . . . . 55
7.5.1. CMD_DTMSTART_REQ . . . . . . . . . . . . . . . . . . . . . . . . 55
7.5.2. CMD_DTM_REQ ............................ 55
7.5.2.1. Example: Transmission, 16 times 0x0F, channel 0 . . . . . . . 57
7.5.2.2. Example: Receiver, channel 0 . . . . . . . . . . . . . . . . . . . 58
7.5.2.3. Example: Transmission, carrier test, channel 0 . . . . . . . . . 58
7.5.2.4. Example: Set TX power to -4 dBm . . . . . . . . . . . . . . . . 59
7.5.2.5. Example: Set PHY to 2MBit mode . . . . . . . . . . . . . . . . 59
7.6. Switching GPIOs by remote control . . . . . . . . . . . . . . . . . . . . . . . 60
7.6.1. CMD_GPIO_LOCAL_WRITECONFIG_REQ . . . . . . . . . . . . . 60
7.6.1.1. Example: Configure two GPIOs to output high . . . . . . . . . . 61
7.6.2. CMD_GPIO_LOCAL_READCONFIG_REQ . . . . . . . . . . . . . 62
7.6.2.1. Example: Read the current GPIO configuration . . . . . . . . . 63
7.6.3. CMD_GPIO_REMOTE_WRITECONFIG_REQ . . . . . . . . . . . . 64
7.6.3.1. Example: Configure two GPIOs of the connected remote device
tooutputhigh............................ 65
7.6.4. CMD_GPIO_REMOTE_READCONFIG_REQ . . . . . . . . . . . . 66
7.6.4.1. Example: Read the current GPIO configuration of the connect-
edremotedevice.......................... 67
7.6.5. CMD_GPIO_REMOTE_WRITE_REQ . . . . . . . . . . . . . . . . . 68
7.6.5.1. Example: Set a remote output GPIO to low . . . . . . . . . . . 69
Proteus-e reference manual version 0.3 © November 2021
www.we-online.com/wireless-connectivity 4