Dear TI experts.
according to the previous discussion:CC2340R5: how to modify the tx power at CC2340 run time. - Bluetooth forum - Bluetooth®︎ - TI E2E support forums
now, I am using the simplelink_lowpower_f3_sdk_7_20_00_29 to verify the change of tx power at run time.
Chip is Rev.B.
IDE:CCS 12.3
In the same module, I used smart rf studio to generate CW with a specific TX Power and used hard code to set the TX power through HCI and generate CW waves.
I compared the smart rf studio and hard code methods.
Currently, I have 2 questions.
1. Use the hard code to call HCI_EXT_SetTxPowerDbmCmd(8,1) and then HCI_EXT_ModemTestTxCmd(1,19); the power will be very low, but if you choose HCI_EXT_SetTxPowerDbmCmd(7,1) it will be close to the 7dbm-0.3~0.4dbm of smart rf studio.
2. In addition to the 8dbm problem, I compared the setting power of smart rf studio with the hard code method. The CW power generated by using hard code will be lower than smart rf studio by about 0.3~0.4dBm.
The picture below uses smart rf studio to set 8dBm and the actual spectrum signal.
The picture below uses hard code to set 8dBm and the actual spectrum signal.
/**************add by weli for CW test begin****************/
GAP_TerminateLinkReq(Connection_getConnhandle(0), HCI_DISCONNECT_REMOTE_USER_TERM);
GapAdv_disable(peripheralAdvHandle_1);
HCI_EXT_SetTxPowerDbmCmd(8,1);
HCI_EXT_ModemTestTxCmd(1,19);
while(1)
/***************add by weli for CW test end*****************/
We can see that when using HCI_EXT_SetTxPowerDbmCmd(8,0), the power will be very low.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The picture below uses smart rf studio to set 7dBm and the actual spectrum signal.
The picture below uses hard code to set 7dBm and the actual spectrum signal.
/**************add by weli for CW test begin****************/
GAP_TerminateLinkReq(Connection_getConnhandle(0), HCI_DISCONNECT_REMOTE_USER_TERM);
GapAdv_disable(peripheralAdvHandle_1);
HCI_EXT_SetTxPowerDbmCmd(7,1);
HCI_EXT_ModemTestTxCmd(1,19);
while(1)
/***************add by weli for CW test end*****************/
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The picture below uses smart rf studio to set 6dBm and the actual spectrum signal.
The picture below uses hard code to set 6dBm and the actual spectrum signal.
/**************add by weli for CW test begin****************/
GAP_TerminateLinkReq(Connection_getConnhandle(0), HCI_DISCONNECT_REMOTE_USER_TERM);
GapAdv_disable(peripheralAdvHandle_1);
HCI_EXT_SetTxPowerDbmCmd(6,1);
HCI_EXT_ModemTestTxCmd(1,19);
while(1)
/***************add by weli for CW test end*****************/
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The picture below uses smart rf studio to set 0dBm and the actual spectrum signal.
The picture below uses hard code to set 0dBm and the actual spectrum signal.
/**************add by weli for CW test begin****************/ GAP_TerminateLinkReq(Connection_getConnhandle(0), HCI_DISCONNECT_REMOTE_USER_TERM); GapAdv_disable(peripheralAdvHandle_1); HCI_EXT_SetTxPowerDbmCmd(0,1); HCI_EXT_ModemTestTxCmd(1,19); while(1) /***************add by weli for CW test end*****************/
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I summarized the results of using smart rf and code as shown in the table below.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Regarding the above issues, can Ti experts provide some advice?
Thanks.