(KW38 EVB)BLE Shell project : "gap txpower " command. Fail condition.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

(KW38 EVB)BLE Shell project : "gap txpower " command. Fail condition.

跳至解决方案
781 次查看
JungkyuHan1
Contributor I

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[])

0 项奖励
回复
1 解答
754 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

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:

Gavin_Jia_0-1685947129797.png

 

You can get this documentation and other guides provided by NXP here: After building the KW38 SDK, please download the SDK documentation.

Gavin_Jia_1-1685947469927.png

 

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

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
714 次查看
JungkyuHan1
Contributor I

Thanks , Pretty reasonable.

0 项奖励
回复
755 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

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:

Gavin_Jia_0-1685947129797.png

 

You can get this documentation and other guides provided by NXP here: After building the KW38 SDK, please download the SDK documentation.

Gavin_Jia_1-1685947469927.png

 

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

 

0 项奖励
回复