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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
745 Views
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 Kudos
Reply
1 Solution
718 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
678 Views
JungkyuHan1
Contributor I

Thanks , Pretty reasonable.

0 Kudos
Reply
719 Views
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 Kudos
Reply