• I'm hoping to use Bluetooth LE and my Bangle.js 2 to let my Linux laptop detect whether I'm it. I've read all kinds of Linux tutorials on using hcitool, gattttool, and other command-line tools, but I've never been able to get one of them to detect the watch. (It detects my phone and other devices just fine.) Does anyone know of a way to detect whether the watch is nearby on the Linux command line?

    Thanks for any clues.

  • Try https://www.espruino.com/Interfacing, it has gatttool demos. Also I would wrap the gatttool in the shell command timeout.

  • Thanks. I tried gatttool, but like the other tools, it never sees the Bangle.js 2. It sees countless other devices in the area, but not the watch. Curious.

  • hcitool lescan may show it if the watch is advertising. It is not advertising by default when something is connected to it but this can be changed (via whenConnected option of NRF.setAdvertising).

  • As @fanoush says - it may be your Bangle is already connected to something (like your phone) so is not advertising - but you can force it if you need to

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Detecting presence of Bangle.js 2 on Linux command line

Posted by Avatar for arthurgleckler @arthurgleckler

Actions