• Hello everyone,

    I started messing around with my 2 pucks when they first arrived. Everything worked rather good these days, but I was on Windows 7 that time.

    Now I'm using the same hardware (with same built-in bluetooth adapter) with Ubuntu.
    I have updated bluez to 5.45 and enabled the flag in chrome. But when clicking the orange connect button, it just says No ports found.
    I can pair both pucks though.

    After these failures I tried to set up my RaspberryPi 3 as an espruino server. But I got a similar result there too. Installed bluez 5.45 and espruino-web-ide via NPM. But IDE says No ports found.
    When pairing the puckjs while espruino-server is running it logs: noble: unknown peripheral dd361c4c702e connected! But this didn't change the result.

    Maybe someone has an idea whats going wrong here. Tried rebooting all devices, resetted the pucks and flashed firmware 1v92 and 1v89 to the pucks.

    Thanks in advance

  • On std Linux: so when you go to https://www.espruino.com/ide/ and click connect you don't see a Web Bluetooth option - just No Ports Found? Can you go to 'settings' in the top right, then 'console', then copy/paste everything it says in here?

    Also, can you go to https://www.puck-js.com/go and see if it says you have Web Bluetooth enabled or not? I guess it's possible that there's some issue (Chrome does need a complete restart after changing the flags...).

    Something I noticed you said is that you paired the devices on Linux first? Unlike on Windows, you don't need to pair beforehand on Linux. In fact, pairing might cause the Pucks to connect to the system, which might then leave them unavailable to connect to the application itself (or any device).

    Just to be sure, when using the Raspberry Pi I'd disable bluetooth on the main Linux PC.

  • Sorry, the 'no ports found' in https://www.espruino.com/ide/ was totally my fault. If you do a full refresh of the webpage then it should be fixed now.

  • Thanks for the fast reply Gordon.

    No problem, I will definetly check the https://www.espruino.com/ide/ with Web Bluetooth again. Unfortunately I won't be able to try it before the weekend.

    When I visit https://www.puck-js.com/go it states that Web Bluetooth is enabled. I wasn't really sure if pairing is necassary... So I definetly tried with and without pairing. But good to know it's not needed... Might check that again too.

    Another note: I managed to get the pucks working with EspruinoHub and NodeRed on the Raspberry Pi.
    But I may also send you some logs next weekend.

  • Hi @Gordon,

    I would like to have the latest espruino-web-ide on Raspberry Pi 3.

    I have a Raspberry Pi 2 with BlueZ 5.23 and espruino-web-ide version 0.65.9 successfully running.

    I make it running successfully with BlueZ 5.46 espruino-web-ide version 0.65.9 , but not with the latest 0.66.1 version.

    The issue that I encounter with the latest version is that devices cannot be found during the scan and no ports found message appeared.

    Thank you!

  • Hi,

    Are you running espruino-server or espruino-web-ide? You should try with espruino-server as the web-ide package is notoriously difficult to get the bluetooth NPM packages installed for.

    Also, you'll need to have run the command sudo setcap cap_net_raw+eip $(eval readlink -fwhich node) before first starting espruino-server, to give it permissions to access BLE

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

No ports found in Web IDE on Ubuntu/ Raspberry PI with espruino server

Posted by Avatar for user78765 @user78765