ble_app_barebone project

2 posts / 0 new
Last post
RandyYu
Offline
Last seen:2 years 8 months ago
加入:2015-01-28 08:49
ble_app_barebone project

Now I just use the sdk,I select the project of ble_app_barebone,and it's work well.but when I put my own sensor data to the struct of mnf_specific_data_ad_structure.I can't scan it.I don't know how to debug it,can you help me ? Thanks very much!

Device:
MT_dialog
Offline
Last seen:2 weeks 18 hours ago
Staff
加入:2015-06-08 11:34
Hi RandyYu,

Hi RandyYu,

I trust that you are using a generic BLE android application for testing this. Most probably your device doesn't advertise (you can check this by using the power profiler in case you have a pro kit and confirm that). A common reason for a not advertising device is that the advertising data are incorrect (most probably the bytes that define the length of each portion of your advertising string are wrong - that stack performs a validity check before advertising starts). You can set your code optimization to O1 or O2 (if there isn't much code added in the project) and run you project again, place a breakpoint to the app_add_ad_struct and check your advertising string in the cmd->info.host.adv_data struct if it is proper.

Thanks MT_dialog