Feature request bluetooth / offline mode? #4800
Replies: 1 comment
-
Posted at 2022-06-03 by user140377 I just tested it on firmware 2v13, when "connectable" is no, I could really not connect. For GPS: I don't see the connection here with electromagnetic waves or privacy. Posted at 2022-06-04 by uname Unfortunately I am not aware of it, I am with the latest available firmware espruino_2v13.123_banglejs2.zip So something wakes up the ability to reconnect without going through the "bluetooth" menu and making it connectable. Something is not working as it should. I will confirm that for GPS, if you don't use apps that require it, it seems to stay dormant. Posted at 2022-06-04 by user140377 I'm not sure if I fully understood you, but since sounds like a bug. However in my last test, "make connectable" work. For the accessibility someone could create a widget like the close widget but instead of closing it could toggle bluetooth power. Posted at 2022-06-04 by uname Before I went to sleep, I set the bangle with "make connectable -> no" and in the morning when I picked it up again, it connected to the app loader https://espruino.github.io/BangleApps/ without any problems. MAYBE some commonly used generic app like the launcher or the alarm app, the only two apps I may have used afterwards, "re-enable" bluetooth. Posted at 2022-06-05 by user140377 Could it be that there already was a connection when you set make connectable=no and the connection persisted over night? Also, directly below the "make connectable" option there is "BLE". I would try this one. According to the description it really turns off BT, disabling incoming & outgoing connections. Posted at 2022-06-05 by uname Initially, yes, there was a connection and the Bluetooth did not turn off (which was not good anyway). The next day the problem showed up as described above, at most I'll have used the launcher and fixed the alarm (maybe). Posted at 2022-06-07 by @gfwilliams It'd be great if you could post up the contents of your Looking at the code, it should set Posted at 2022-06-07 by uname I have now put my hand back on the bangle. I broke the connections, set "make connectable = no" and reconnected immediately without any problems with the IDE. The files you asked for are attached Thank you. Matteo. Attachments: Posted at 2022-06-08 by @gfwilliams Ok, thanks. I've just looked at this and everything seems ok to me, and I tried here on a watch and it seems to work as expected. However...
What happens if you:
So I guess there are multiple issues here:
Posted at 2022-06-08 by uname I tried what you asked, there were no active connections but I checked, the icon was already grayed out, set "make connectable = no", reverified the grayed out icon, went back to the initial clock screen and reconnected without any problems from chrome. I confirm that setting "make connectable = no" with an active connection breaks my connection. I previously used Garmin because it's one of the few that allows you to disconnect bluetooth and "turn it into an offline device." I am trying to achieve this same result, it's not important to me how. Is it possible that there is some scheduling that reactivates bluetooth after a while? Posted at 2022-06-08 by @gfwilliams Wow, ok, that is strange. And I tried it here and it's fine. One thing that could be an issue - I saw you mentioned you were on firmware 2v13.123? Maybe try and update to latest again? 2v13.123 did have an issue that could cause some code to fail, and if the boot code failed before ... although I'd have thought if you were connected with the IDE you'd have seen some errors in the console.
Not by default, but what apps do you have installed? You can get a list from the App Loader's It's entirely possible one of those would try and wake up bluetooth. Posted at 2022-06-08 by uname I am now with firmware 2v13.142, I will try a firmware update and maybe even a reset with the default apps to see if without "additional" apps I get the same results. Is there any way to see, connected to the IDE, if an app activates bluetooth? Thank you for your time ! Posted at 2022-06-09 by uname I confirm that a reset solves the problem, with the default apps everything works as it should and bluetooth once "off" stays off. Posted at 2022-06-09 by @gfwilliams Great! Please let me know if you find out what's causing the issue! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2022-06-03 by uname
What I'm missing is a menu entry to enable/disable sensors and connections.
In detail bluetooth, both for a matter of electromagnetic waves but as far as I'm concerned for a matter of privacy and also GPS.
Even if I indicate "Make connectable > no" the bangle shortly after, it comes back with bluetooth enabled.
I would like to be able to use it "offline" in certain cases.
I think of the android dropdown with the various options to enable/disable bluetooth, location, wifi, etc., and it seems like a great thing that allows so much control.
Otherwise an entry to take it offline....
@gfwilliams you had explained some steps for bangle 1 but I couldn't get anything satisfactory...
Beta Was this translation helpful? Give feedback.
All reactions