wiced_bt_ble_scan is 8100 (pending)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hi118
Level 3
Level 3
10 replies posted 10 sign-ins 5 questions asked

Implemented "wiced_bt_ble_scan" based on [ble_wifi_onboarding].

But the return value of "wiced_bt_ble_scan" is always 8100 (pending).

The content of p_scan_result in the callback registered with "wiced_bt_ble_scan" is also NULL.

What do you think is causing this?

# I am using STM32 Connectivity Expansion Pack 1.1.0.

0 Likes
1 Solution
hi118
Level 3
Level 3
10 replies posted 10 sign-ins 5 questions asked

I have found that there is no problem with 8100 being returned from wiced_bt_ble_scan(), so I will close this question for now.


About the return of wiced_bt_ble_scan() I overlooked the following that was mentioned in the reference.

wiced_result_t
WICED_BT_PENDING : if successfully initiated
WICED_BT_BUSY : if already in progress
WICED_BT_ILLEGAL_VALUE : if parameter(s) are out of range
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command
WICED_BT_WRONG_MODE : if the device is not up.

View solution in original post

0 Likes
3 Replies
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hello @hi118 

Can you please let us know the parameters used for wiced_bt_ble_scan ? 

Also please let us know where are you calling this function in your code.

Which IFX device are you using? 

Regards,

Anjana

0 Likes

Hi @AnjanaM_61 

>Can you please let us know the parameters used for wiced_bt_ble_scan ? 
The arguments for wiced_bt_ble_scan() are as follows.
 ・BTM_BLE_SCAN_TYPE_HIGH_DUTY
 ・
WICED_TRUE
 ・hello_client_scan_result_cback

>Also please let us know where are you calling this function in your code.
Referencing hello_client, set a timer with wiced_init_timer() at the end of application_init() and call it after confirming that wiced_bt_ble_scan_type_t is her BTM_BLE_SCAN_TYPE_NONE in the timer callback.

>Which IFX device are you using? 
・STM32H747I-DISCO
 STM32H747I-DISCO STMicroelectronics | Mouser
・LBEE0ZZ1WE-TEMP
 LBEE0ZZ1WE-TEMP Murata Electronics | Mouser
・Wi-Fi/BT module: 1DX M.2 Module
 1LV M.2 Module - Embedded Artists

Regards,
hi118

0 Likes
hi118
Level 3
Level 3
10 replies posted 10 sign-ins 5 questions asked

I have found that there is no problem with 8100 being returned from wiced_bt_ble_scan(), so I will close this question for now.


About the return of wiced_bt_ble_scan() I overlooked the following that was mentioned in the reference.

wiced_result_t
WICED_BT_PENDING : if successfully initiated
WICED_BT_BUSY : if already in progress
WICED_BT_ILLEGAL_VALUE : if parameter(s) are out of range
WICED_BT_NO_RESOURCES : if could not allocate resources to start the command
WICED_BT_WRONG_MODE : if the device is not up.

0 Likes