PROC BLE not advertising name

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

cross mob
ToVa_285016
Level 5
Level 5
100 replies posted 50 replies posted 50 questions asked

Hi,

   

I have my GAPP advertising set up with the local device name in full checked for the advertisement packet, but although CySmart finds the device, it cannot read the name, and neither can my custom android app.  

   

In the Android app, the name string should be 'RGB LED', but shows up as char '\u0002' which returns a garbage string.

   

Any ideas?

   

Thank you,
Tom

0 Likes
1 Solution
ToVa_285016
Level 5
Level 5
100 replies posted 50 replies posted 50 questions asked

Hi,

   

I got this to work by placing the name modification code in the correct location - AFTER the CyBLE_Start().

   

Regards,
Tom

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Are you modifying the advertisement name at some point?

   

Without seeing your project/settings it would be hard to guess the problem.

   

Double check you: set the name in the BLE component, the data in the advertisement packet looks correct (raw data that is), and that you aren't changing the value with software later.

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

Hi Tom,

   

Could you please share your project for us to test?

   

Thanks,
Anjana

0 Likes
ToVa_285016
Level 5
Level 5
100 replies posted 50 replies posted 50 questions asked

Hi,

   

I got this to work by placing the name modification code in the correct location - AFTER the CyBLE_Start().

   

Regards,
Tom

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

Hi Tom,

   

Yes , you should keep the changes in BLE adv data or device name only after BLE start.

   

Thanks,
Anjana

0 Likes