OK, well I was able to connect.
For the benefit of others, this is what I did:
First, I checked the bluetooth adapter in my laptop was capable of BLE:
hciconfig -a
...
HCI Version: 4.1 (0x7) REvision: 0x0
This tells me it is.
Next I checked my version of bluetoothd:
bluetoothd --version
5.47
That tells me I'm ok there.
Next I restarted my bluetooth service:
sudo /etc/init.d/bluetooth restart
[ ok ] Restarting bluetooth (via systemctl): bluetooth.service.
Next I started following this tutorial: https://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/
hcitool dev
Devices:
hci0 64:6E:69:BA:A2:58
sudo hcitool lescan
LE Scan ...
C2:20:44:79:31:EE Puck.js 31ee
So my laptop can see my Puck!
Next I tried connecting with gatttool:
sudo gatttool --device=C2:20:44:79:31:EE -I
[C2:20:44:79:31:EE][LE]> connect
Attempting to connect to C2:20:44:79:31:EE
Error: connect error: Connection refused (111)
So I tried using btmgmt:
sudo btmgmt le on
hci0 Set Low Energy complete, settings: powered connectable discoverable bondable ssp br/edr le secure-conn
I still saw the connection refused. but restarting the bluetooth service and attempting gatttool again, this time with the -t random option saw success:
sudo gatttool --device=C2:20:44:79:31:EE -I -t random
[C2:20:44:79:31:EE][LE]> connect
Attempting to connect to C2:20:44:79:31:EE
Connection successful
I could then follow the tutorial above, access primary services and characteristics successfully.
Then I tried the web IDE again and lo and behold the Puck shows up. A few more attempts and I was able to connect to it...
Hope that helps someone.
OK, well I was able to connect.
For the benefit of others, this is what I did:
First, I checked the bluetooth adapter in my laptop was capable of BLE:
This tells me it is.
Next I checked my version of bluetoothd:
That tells me I'm ok there.
Next I restarted my bluetooth service:
Next I started following this tutorial: https://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/
So my laptop can see my Puck!
Next I tried connecting with gatttool:
So I tried using btmgmt:
I still saw the connection refused. but restarting the bluetooth service and attempting gatttool again, this time with the -t random option saw success:
I could then follow the tutorial above, access primary services and characteristics successfully.
Then I tried the web IDE again and lo and behold the Puck shows up. A few more attempts and I was able to connect to it...
Hope that helps someone.