PINE64
Bluetooth: When discoverable? When pairable? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineTime (https://forum.pine64.org/forumdisplay.php?fid=134)
+--- Forum: General Discussion on PineTime (https://forum.pine64.org/forumdisplay.php?fid=135)
+--- Thread: Bluetooth: When discoverable? When pairable? (/showthread.php?tid=14668)



Bluetooth: When discoverable? When pairable? - DrPlamsa - 08-16-2021

Hello all:

I just got my PineTime 4 days ago. Very nice bit of kit!

Where can I find somewhere that documents under what circumstances the PineTime is discoverable (advertises) and under what circumstances the PineTime is pairable?

Based on some experimentation, after a reset (button held for 10 seconds), the PineTime advertises and can be paired. Then, after a few minutes, it stops advertising and can not be paired.

However, looking through the InfiniTime source https://github.com/JF002/InfiniTime/, it would seem to read that there is *no* limit on the amount of time that the PineTime advertises. Take a look at these two comments, for example:
./src/components/ble/NimbleController.cpp:
"// For now, the advertising is restarted as soon as it ends. There may be a race condition that prevent the advertising from restarting reliably."
"// We already have a bond with the peer, but it is attempting to establish a new secure link.  This app sacrifices security for convenience: just throw away the old bond and accept the new link."

These comments make it sound like the PineTime never stops advertising, and never stops being available to pair (even when already paired!)