-
• #2
Someone correct me if I'm wrong... but I believe what's happening here is that during the bootloader the bluetooth hardware is initialised before espruino starts to run, the fact that your other device had stored the bluetooth mac address means that it detects, recognises and shows up the device during this process. Then once it boots the bluetooth is disabled.
This is how you can flash and update the device when it powers up/doesn't boot. I expect the bootloader code could be changed to not activate bluetooth at all, but would make it less user friendly if it needed to be bootable to be able to flash.
I guess/expect that code could be added to set a permanent flag that the bootloader could read during initialisation (although I've not looked at the bootloader code), but again that would open the possibility of ending up with a non-flashable device. -
• #3
Do you have just the default apps on your Bangle, or do you have any other apps installed?
When the Bangle first boots, yes, it may show up on Bluetooth for a split second, however when swapping between apps with
Loading...
as you note, I'm pretty sure that the bluetooth advertising settings will be honoured.What you may be seeing is a slight blip of advertising right after you initially exited the Settings app, while the 'Updating boot0' message was on the screen? But after that I'd hope it was ok.
-
• #4
Yes, I have other apps installed.
But I'm sure that it was
Loading...
on the screen when Bangle became discoverable. And I did some experiments to find that it won't advertise itself until I swap app (withLoading
). However, the time window is usually short. If I try to connect to Bangle, the connection will fail and refreshing the bluetooth list will cause it to disappear. So my little theory is that, maybe bluetooth was turned on for a short time, before being turned off due to setting ? -
• #5
Thanks - I just checked and even on a factory install I do see one advertising message pop up as you say.
It shouldn't be enough to connect to the Bangle with, but I'll look into it as it shouldn't happen - the boot code doesn't tell it to start advertising and just resetting the device shouldn't make it start to advertise.
-
• #6
Thank you so much for your prompt action!
Hello,
I notice that even if I have turned off bluetooth BLE in the setting, sometimes, my computer can still discover the Banglejs2 by bluetooth. I can associate this with the "loading" message. When I open/exit an app and the "loading" message is shown, Banglejs2 becomes discoverable. I think it can be a privacy issue because the watch still broadcasts its presence while the bluetooth is supposed to be off. Is there a way to reliably turn off bluetooth ?
Steps to reproduce (you may need another device to scan for bluetooth devices):