- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cyble-013025-eval rev3 board WICED Smart 2.2.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
where is wiced_app_cfg.c located, i couldn't find it in any of the project folders.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I had to change it in the BLE_PROFILE_CFG struct in my main project it looks like.