Bluefruit advertisement.complete_name not showing

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
gallaugher
 
Posts: 267
Joined: Tue Aug 14, 2018 12:42 pm

Bluefruit advertisement.complete_name not showing

Post by gallaugher »

Hi,
I've upgraded a device that had been showing:
advertisement.complete_name
with a specific device name, like:
advertisement.complete_name = "ProfGsTie"

ble.start_advertising(advertisement)

When I upgraded to CircuitPython 6.3.0, all of a sudden this code doesn't seem to show the complete_name in the Bluefruit app. Instead it just shows some generic CIRCUITPY.
I've tried turning off bluetooth, turning it back on on tbe iOS device, quitting and restarting the app, even restarting the device. Still no luck.
Even more strange, when I run the Bluefruit Connect app on an iPad or macOS, I don't see the device there at all, even though I have the same standard settings as the iPhone (image below).
Any thoughts on what I might be doing wrong? Thanks! John
Bluetooth Connect Image.png
Bluetooth Connect Image.png (366.67 KiB) Viewed 111 times

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluefruit advertisement.complete_name not showing

Post by mikeysklar »

What hardware are you running on for the BLE controller?

When you upgraded to 6.3.0 did you also trash the /lib folders and replace all the necessary libraries with the 6.3.0 current release?

In case something else has changed does it work with short_name?

Code: Select all

advertisement.short_name
https://circuitpython.readthedocs.io/pr ... ising.html

User avatar
kevinjwalters
 
Posts: 1025
Joined: Sun Oct 01, 2017 3:15 pm

Re: Bluefruit advertisement.complete_name not showing

Post by kevinjwalters »

I see you only have two out of four bars in signal strength, has that changed with the upgrade? Have you got same RSSI filtering value set when you use other devices? Doesn't seem likely that changes here would affect the long name but there was talk about adding control over transmit power GitHub: adafruit/circuitpython: Add transmit power control to BLE #2818.

User avatar
kevinjwalters
 
Posts: 1025
Joined: Sun Oct 01, 2017 3:15 pm

Re: Bluefruit advertisement.complete_name not showing

Post by kevinjwalters »

I asked and that didn't go into 6.3.0 via https://github.com/adafruit/circuitpyth ... nt-8652910

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: Bluefruit advertisement.complete_name not showing

Post by tannewt »

Did you forget the device in iOS? The host OSes tend to cache info. The device name is also fetched over GATT once the connection is established and will override the name from the advertisement. I think the Adapter class has a way to set the name for the GATT response.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”