I am testing ble functions with KW38 EVB; using sample project of [BLE shell].
Test command is "gap txpower [adv/conn] [powerLevel]"
According to source code, powerLevel should be -127 ~ 127.
but the value of powerLevel between 30~127, always (FAIL)
Anybody tell me the specific condition(or reason) of FAIL?
---------------------------------------------------------
PowerLevel -127~20 : Success
PowerLevel 30~127 : FAIL <------------- This point.
PowerLevel under -127 : Error
PowerLevel over 127 : Error
---------------------------------------------------------
BLE Shell>gap txpower adv -50
--> GAP Event: Success!
BLE Shell>gap txpower adv 30
--> GAP Event: Failed!
BLE Shell>gap txpower adv 30
--> GAP Event: Failed!
BLE Shell>gap txpower adv 20
--> GAP Event: Success!
BLE Shell>gap txpower adv -127
--> GAP Event: Success!
BLE Shell>gap txpower adv -128
--> An error has occurred!
BLE Shell>gap txpower adv -129
--> An error has occurred!
BLE Shell>gap txpower conn 30
--> GAP Event: Failed!
BLE Shell>gap txpower conn 20
--> GAP Event: Success!
BLE Shell>gap txpower conn -125
--> GAP Event: Success!
BLE Shell>gap txpower conn -128
--> An error has occurred!
======================================
#define mShellMinTxPower_c (-127)
#define mShellMaxTxPower_c (127)
static int8_t ShellGap_SetTxPower(uint8_t argc, char * argv[])
已解决! 转到解答。
Hi @JungkyuHan1 ,
Sorry for my late reply.
I reproduced the problem you mentioned on my side. On the frdm-kw38 board, this is expected. We can consult the section 5.19.5.3 RSSI Monitor in the Bluetooth Low Energy Demo Applications User's Guide. It is explained as follows:
You can get this documentation and other guides provided by NXP here: After building the KW38 SDK, please download the SDK documentation.
And the location of this guide is here for you to view: SDK_doc_Root_Path\docs\wireless\Bluetooth\Bluetooth Low Energy Demo Applications User's Guide.pdf.
Hope you are doing well!
Best regards,
Gavin
Hi @JungkyuHan1 ,
Sorry for my late reply.
I reproduced the problem you mentioned on my side. On the frdm-kw38 board, this is expected. We can consult the section 5.19.5.3 RSSI Monitor in the Bluetooth Low Energy Demo Applications User's Guide. It is explained as follows:
You can get this documentation and other guides provided by NXP here: After building the KW38 SDK, please download the SDK documentation.
And the location of this guide is here for you to view: SDK_doc_Root_Path\docs\wireless\Bluetooth\Bluetooth Low Energy Demo Applications User's Guide.pdf.
Hope you are doing well!
Best regards,
Gavin