This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cc2640 as iBeacon tx power issue

Other Parts Discussed in Thread: CC2640

Hi All:

  Now I'm using cc2640 as bluetooth iBeacon function.  I want to adjust the tx power, I'm little confused about how to adjust it. Here is the advertise_data in simpleBLEBroadcast program:

static uint8 advertData[] =
{
  // Flags; this sets the device to use limited discoverable
  // mode (advertises for 30 seconds at a time) instead of general
  // discoverable mode (advertises indefinitely)
  0x02,   // length of this data
  GAP_ADTYPE_FLAGS,
  //GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
  GAP_ADTYPE_ADV_INTERVAL,
 
#ifndef BEACON_FEATURE
 
  // three-byte broadcast of the data "1 2 3"
  0x04,   // length of this data including the data type byte
  GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific adv data type
  1,
  2,
  3

#else
    
  // 25 byte beacon advertisement data
  // Preamble: Company ID - 0x000D for TI, refer to www.bluetooth.org/.../company-identifiers
  // Data type: Beacon (0x02)
  // Data length: 0x15
  // UUID: 00000000-0000-0000-0000-000000000000 (null beacon)
  // Major: 1 (0x0001)
  // Minor: 1 (0x0001)
  // Measured Power: -59 (0xc5)
  0x1A, // length of this data including the data type byte
  GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific adv data type
  0x4C, // Company ID - Fixed
  0x00, // Company ID - Fixed
  0x02, // Data Type - Fixed
  0x15, // Data Length - Fixed
  0x00, // UUID - Variable based on different use cases/applications
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // UUID
  0x00, // Major
  0x00, // Major
  0x00, // Minor
  0x00, // Minor
  0xC5  // Power - The 2's complement of the calibrated Tx Power
    
#endif // !BEACON_FEATURE
};

What abou the value 0xC5? Should I just adjust the value to modify the tx power? Or I should use the funciton HCI_EXT_SetTxPowerCmd(HCI_EXT_TX_POWER_5_DBM) to adjust the tx Power?