I have an app based on SimpleBLEPeripheral with general discoverable mode turned on. This is running on a custom CC2650 board with the RF section identical to the CC2650EM-7ID board (also using the same PCB etched antenna).
When I call HCI_EXT_SetTxPowerCmd() it seems to have no affect when measured using the RSSI on an iPhone and the achievable connection range using that phone (I know this isn't scientific but going from 0dBm to 5dBm I would expect to notice some change).
In the notes it says it can only be called in StandBy mode, so I using the following code in BLE_taskFxn:
uint8_t advertize = 0;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof(uint8_t), &advertize);
HCI_EXT_SetTxPowerCmd(HCI_EXT_TX_POWER_4_DBM); //4 dBm=2.5mW, 0 dBm=1mw
Is turning the advertising off sufficient to go into StandBy mode? Does there need to be a delay before before calling HCI_EXT_SetTxPowerCmd()?
Also HCI_EXT_SetRxGainCmd() doesn't seem to be defined, is this function available on the CC2650?