New guy alert...
I ordered a Puck.js for a new project I am working on and have installed the Espruino Hub onto a Raspberry Pi. I can access the IDE and I can access Node-RED but when I try to connect to the Puck I get 'No ports found'. I was able to use the nRF Toolbox to upgrade the firmware on the Puck.

"Neither the Online IDE espruino.com/ide nor the Chrome Web App will work to access Bluetooth Low Energy devices on Windows unless
you install the polyfill above. Please try the Native IDE first - this is by far the easiest option."

Perhaps I am misunderstanding how this all works. I installed Espruino Hub with the IDE and Node-RED on the Raspberry Pi and can access both through the web interface of the raspberry pi. The Bluetooth, I thought is running on the Pi since I am basically remotely running the IDE from there. Maybe I am mistaken and need to install more onto my Windows 10 PC to make this work.

Are you suggesting that I need to install more onto the Windows PC since that is not in the instructions that I read.

re: 'Are you suggesting that I need to install more onto the Windows
PC since that is not in the instructions that I read.'

Not necessarily. Just had a thought that as you were able to re-flash firmware, that communication to the Puck via Bluetooth BLE
could be verified using the Native IDE app <-> Puck

In that way, one could confirm that communication/connecting with the Puck was occurring, remove that wonderment from the equation,
then efforts could be focused on just the Pi.

ref from #1: 'Web Bluetooth not enabled'

So, to clarify, the Bluetooth issues were on the Pi only?

Would you be so kind as to provide the link for the 'Espruino Hub' documentation as search didn't provide that detail for me to follow along.

re: 'Perhaps I am misunderstanding how this all works'

Probably not. Gordon does an excellent job in documenting his tutorials, and I'm going to guess they have been tested a bazillion times,
okay maybe a gazillion?

His availability is sometimes limited on weekends, so thought that providing some pre-power-debug detail would help speed things up, rather than have to re-visit the same questions, once he and others are able to assist early next week.

re: 'but when I try to connect to the Puck I get 'No ports found''

This is a common error that is seen when attempting to access via Bluetooth BLE and using the wrong IDE. Just wanted to make sure
that the native app flavor was being used, . . . if that were the case.

Yes I think the issue is with the bluetooth on the Pi since I was able to access the Puck to do the firmware upgrade. I will take a look at installing the Native IDE and see if I can, well... see the Puck.

I had a Win10 PC that was supposed to be Bluetooth compatible, but in order to get communications going with the Puck, I eventually had to pick up a Bluetooth BLE dongle as the docs indicate to get that to work. Hope that's not too much of a Buzz-Kill should the same issue occur with the PC the native IDE is installed on.

Hi - sorry for the late reply on this... I'm not usually checking the forum at weekends. What you're doing all looks good to me. If you're doing stuff on the Pi there shouldn't be any issue with Windows at all.

Which type of Raspberry Pi did you install EspruinoHub on? Only the Pi 3 and Pi Zero W have Bluetooth built-in...

No worries on the reply. This is a new project for me so I am pushing through a bunch of hours while working the rest of the project I have for my company.

I was accessing the ide on the raspberry pi 3 and there were signs that the Bluetooth was up and running.

I am not sure if I have to pair the Puck to the Pi or to the PC. I was able to get the standalone IDE to work and find the Puck and have done a couple of quick examples using the magnetometer that way.

Unfortunately I am at the airport headed to Texas (early flight) and won’t be back to the office until Wednesday morning. I will update you once I get back and some more testing.

Thanks for the help. This looks like it might e perfect for our project.

The Pi 3 should work great with EspruinoHub, so no worries there. I think next step would be to check out that status page.

I am not sure if I have to pair the Puck to the Pi or to the PC.

The Puck needs pairing with the PC to work with the standalone IDE, but it doesn't need pairing with the Pi at all. Only thing to watch out for is you can only have one connection at a time - so if you're connected to the PC then the Pi won't be able to see the Puck... But that wouldn't have been an issue when you first tried.

Did you restart EspruinoHub after running setcap? At least we know the Pi can see Bluetooth devices.

EspruinoHub should have:

Starting scan...
Scanning started.

Near the top of the status screen, and yours doesn't seem to have that so there's been some issue initializing Bluetooth from Node. If it's not the permissions with setcap (which would be the most likely) then it might be how the Node.js library got installed.

Could you try doing:

cd EspruinoHub
rm -rf node_modules
npm install

and see if you get any errors? There will be some warnings about SKIPPING OPTIONAL DEPENDENCY ... xpc-connection at the end, but that's all you should have.

Well finally got some time to work on this project again. I bought a Pi Zero W and installed everything on it. I can run the software just like before but I still get no ports. I do however get the following when I look at status:

Found that perhaps I needed another source/library so I ran the following to take a shot.

$ sudo apt install libudev-dev

Once I did that there was some warning messages about deprecated modules and some skipping optional dependency but it got past the errors.

I started everything and under Status I could see Bluetooth items including the puck but when I ran the ide it said NO PORTS FOUND...OMG! I am sure it is something I am doing or not doing but I have followed the instructions 10 times and still...