Device Discovery over time.

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

cross mob
Anonymous
Not applicable

We are trying to make the ble device always discover-able. I thought by setting:

bleprofile_Discoverable(MANDATORY_DISCOVERABLE, wvdAppState->blewvd_hostinfo.bdAddr);

It would do that, but it appears to disappear over time. Are there any other reasons such as going to sleep or something that would cause this ble device to stop advertising? I'm not currently aware of any sleep modes getting set.

Can somebody also define the behaviors involved with each of these discovery modes? So far I have not found anywhere that defines what they do when applied.

    NO_DISCOVERABLE              = 0,

    LOW_DIRECTED_DISCOVERABLE    = 1,

    HIGH_DIRECTED_DISCOVERABLE   = 2,

    LOW_UNDIRECTED_DISCOVERABLE  = 3,

    HIGH_UNDIRECTED_DISCOVERABLE = 4,

    MANDATORY_DISCOVERABLE       = 0xFF, //without NVRAM checking and start high undirected adv

0 Likes
1 Solution

For WICED Smart 2.2.3 SDK, we can configure the advertisement parameters in the app_cfg, like we can set the adv parameters in hello_sensor_cfg of hello_sensor project.

For advertising infinite function, please try followed setttings:

1. Set the high_undirect_adv_duration in app_cfg like set to 1000

2. Restart the adv while adv stopped or connection down:  bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, hello_sensor_hostinfo.bdaddr);

View solution in original post

5 Replies
ShengY_96
Employee
Employee
10 sign-ins 5 sign-ins Welcome!

What's the chip part number?  What's the IDE/SDK version?

Generally we can configure the BLE advertising parameters in the wiced_app_cfg.c file,

we need to set the advertisement time(like .high_duty_conn_duration) to infinite to make the ble device always discoverable.

0 Likes
Anonymous
Not applicable

Cyble-013025-eval rev3 board WICED Smart 2.2.3

0 Likes
Anonymous
Not applicable

where is wiced_app_cfg.c located, i couldn't find it in any of the project folders.

0 Likes

For WICED Smart 2.2.3 SDK, we can configure the advertisement parameters in the app_cfg, like we can set the adv parameters in hello_sensor_cfg of hello_sensor project.

For advertising infinite function, please try followed setttings:

1. Set the high_undirect_adv_duration in app_cfg like set to 1000

2. Restart the adv while adv stopped or connection down:  bleprofile_Discoverable(HIGH_UNDIRECTED_DISCOVERABLE, hello_sensor_hostinfo.bdaddr);

Anonymous
Not applicable

OK, I had to change it in the BLE_PROFILE_CFG struct in my main project it looks like.

0 Likes