Other Parts Discussed in Thread: CC2650
Tool/software: Code Composer Studio
Hi TI experts,
I am testing now to support CW changing and to generate a specific test pattern(HCI_DIRECT_TEST_PAYLOAD_0x55).
so, I already added the related commands onto the simple_peripheral_application as below, and confirmed the operation on CC2650 Launchpad:
But, our custom board doesn't work. Of course, this board works well without the below code, that is, it advertises well as a general peripheral application.
At this time, no external serial communication with PC terminal.
------------------------------------------------------
ICall_registerApp(&selfEntity, &sem);
HCI_ResetCmd();
// simply changing DEFAULT_TX_POWER could be used in the file "bleUserConfig. default is HCI_EXT_TX_POWER_0_DBM(7).
// Single-ended output only has tx power values up to 2 dBm.
HCI_EXT_SetTxPowerCmd(HCI_EXT_TX_POWER_4_DBM); // 4dBm=2.5mW, 0dBm=1mw
#if 1
uint16 CW = CSReadUserKey();
if ( (CW >= 37) && (CW <= 39) )
{
// enable PTM
HCI_EXT_EnablePTMCmd();
ASM_NOP; ASM_NOP; ASM_NOP; ASM_NOP;
HCI_LE_TransmitterTestCmd(CW, 32, HCI_DIRECT_TEST_PAYLOAD_0x55);
ASM_NOP; ASM_NOP; ASM_NOP; ASM_NOP;
//HCI_LE_TestEndCmd();
}
#endif
Thanks in advance for your comments.
Ji-won Lee