monocle-micropython icon indicating copy to clipboard operation
monocle-micropython copied to clipboard

Bluetooth: allow to change the bluetooth name

Open josuah opened this issue 2 years ago • 4 comments

This was requested by an user who wanted to adjust the name of the Bluetooth interface.

josuah avatar Sep 27 '23 20:09 josuah

Bluetooth central devices wouldn't like this. They often cache the name so random name changes would create weird behavior. Usually, the fix is to reboot the Bluetooth central, but unless the users know about this, it might cause frustration because they might not be able to connect or scan properly etc

siliconwitch avatar Oct 20 '23 13:10 siliconwitch

I did not think of these issues, this might be better to be something for custom firmware then. Thank you for the feedback!

josuah avatar Oct 20 '23 16:10 josuah

Bluetooth central devices wouldn't like this. They often cache the name so random name changes would create weird behavior. Usually, the fix is to reboot the Bluetooth central, but unless the users know about this, it might cause frustration because they might not be able to connect or scan properly etc

The assumption on my part is that most people aren't connecting to their devices by name because that could be problematic from the start due to duplicate names, spoofing etc.

I think this is a reasonable ask since the monocle is being discovered either by scanning for the GUID on characteristics (immutable), or the MAC address (also immutable).

Also for security reasons its a good idea to allow users to do this.

P.S - Are there any settings on the monocle that accept persistent changes today?

louisbarrett avatar Oct 20 '23 23:10 louisbarrett

P.S - Are there any settings on the monocle that accept persistent changes today?

That would need to be a custom build: https://github.com/brilliantlabsAR/monocle-micropython/blob/main/main.c#L742

josuah avatar Oct 23 '23 11:10 josuah