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.

CCS / CC2650:How to change preamble under 1mbps in Private mode

Part Number: CC2650


Tool/software: Code Composer Studio

I want to simulation beacon data using private mode, and I have one quetions to be resolved

question:  how to change the preamble

                I have to create beacon format data without ble protocol stack。beacon preamble  data is 0xAA. I want to check which parameter to modify this value. 

       

   this struct  can  be set befor sending  data under 1mbps.         

   

      another struct  can be set  preamble under 100kbsp

  • Hi,

    It seems like you are using the BLE PHY for 1mbps with proprietary APIs. Is this correct?
    Are you using CMD_PROP_RADIO_SETUP to setup the radio in this mode and do you have a working RF link?

    Please share your settings and we can recommend suitable options.

    Regards,
  • thank you for your reply
    I use the imps api rfc_CMD_BLE5_RADIO_SETUP_s which factory direct supported befor I doing that。beacuse Existing api from sdk does not have a suitable api.
    I share my 1mpbs settting fist then I share my 100kbsp setting. my 100kpbs and 1mbps mode communication is ok currently。
    1mbps
    1. first set RF_cmdBle5RadioSetup
    rfc_CMD_BLE5_RADIO_SETUP_t RF_cmdBle5RadioSetup =
    {
    .commandNo = 0x1820,
    .status = 0x0000,
    .pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
    .startTime = 0x00000000,
    .startTrigger.triggerType = 0x0,
    .startTrigger.bEnaCmd = 0x0,
    .startTrigger.triggerNo = 0x0,
    .startTrigger.pastTrig = 0x0,
    .condition.rule = 0x1,
    .condition.nSkip = 0x0,

    #ifdef _1_MBPS
    .defaultPhy.mainMode = 0x0,
    #endif

    #ifdef _2_MBPS
    .defaultPhy.mainMode = 0x1,
    #endif
    .defaultPhy.mainMode = 0x1,
    .defaultPhy.coding = 0x0,
    .__dummy0 = 0x00,
    .config.frontEndMode = 0x0,
    .config.biasMode = 0x0,
    .config.analogCfgMode = 0x0,
    .config.bNoFsPowerUp = 0x0,
    .txPower = 0x9330,
    .pRegOverrideCommon = 0x0,
    .pRegOverride1Mbps = pOverrides1Mbps,
    .pRegOverride2Mbps = 0x0,
    .pRegOverrideCoded = 0x0,
    };
    2. open rf using RF_open
    RF_open(&rfObject, &RF_ble, (RF_RadioSetup*)&RF_cmdBle5RadioSetup, &rfParams);
    3. set rate 1mps .set power

    RF_cmdBle5RadioSetup.defaultPhy.mainMode = 0x0; //1mps rate

    RF_cmdBle5RadioSetup.txPower = ** //set power
    4. set syncWord
    using __RFC_STRUCT set syncWord


    500kpbs
    1. first set rfc_CMD_PROP_RADIO_SETUP_t
    rfc_CMD_PROP_RADIO_SETUP_t RF_cmdPropRadioSetup =
    {
    .commandNo = CMD_PROP_RADIO_SETUP,
    .status = 0x0000,
    .pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
    .startTime = 0x00000000,
    .startTrigger.triggerType = 0x0,
    .startTrigger.bEnaCmd = 0x0,
    .startTrigger.triggerNo = 0x0,
    .startTrigger.pastTrig = 0x0,
    .condition.rule = 0x1,
    .condition.nSkip = 0x0,
    .modulation.modType = 1, //0: FSK 1: GFSK
    .modulation.deviation = 744,
    .symbolRate.preScale = 15,
    .symbolRate.rateWord = 327680,
    .rxBw = 10,
    .preamConf.nPreamBytes = 0x4,
    .preamConf.preamMode = 0x0,
    .formatConf.nSwBits = 32,
    .formatConf.bBitReversal = 0x0,
    .formatConf.bMsbFirst = 0x1,
    .formatConf.fecMode = 0x0,
    .formatConf.whitenMode = 0x0,
    .config.frontEndMode = 0x0,
    .config.biasMode = 0x0,
    .config.analogCfgMode = 0x0,
    .config.bNoFsPowerUp = 0x0,
    .txPower = 0x3161, //0x3161 = 0dB
    .pRegOverride = pOverrides,
    };

    2. open rf using RF_open
    RF_open(&rfObject, &RF_prop, (RF_RadioSetup*)&RF_cmdPropRadioSetup, &rfParams);

    3. set rate 1mps .
    RF_cmdPropRadioSetup.symbolRate.preScale = 15;
    RF_cmdPropRadioSetup.symbolRate.rateWord = 65536;
    RF_cmdPropRadioSetup.modulation.modType = 0x0;
    RF_cmdPropRadioSetup.modulation.deviation = 744;
    RF_cmdPropRadioSetup.rxBw = 9;


    4.set power
    RF_cmdPropRadioSetup.txPower = rf_power_table[i].tx_power_value;

    5.set syncWord
    using __RFC_STRUCT set syncWord
    RF_cmdPropTxAdv.syncWord = syncWord;
  • Can you please share the TX and RX settings for 1mbps too.
  • I am closing this thread since there has not been any activity for some time. Please re-open if the problem is still not solved.

    Regards,

  • I am closing this thread since there has not been any activity for some time. Please re-post if the problem is still not solved.

    Regards,