Can I use Web IDE without Bluetooth?

Posted on
  • Can I use Web IDE on Linux desktop to connect to Bangle.js 2 if I don't have Bluetooth?

    Compatible Bluetooth USB dongles seems to be quite expensive (over 50 €), so I'd prefer to not have to buy one.

  • If you have bluetooth phone you can use IDE relay https://www.espruino.com/ide/relay/ and connect over wi-fi

    As for 50EUR bluetooth - this one works for me just fine in Linux https://www.aliexpress.com/item/40003298­92796.html

  • Yes, just to back up what @fanoush says:

    I develop on a Linux desktop all day every day, and I use a £5 BLE dongle and it works great. There's a list of modules I personally tested at http://www.espruino.com/Quick+Start+BLE#­requirements

    With a reasonably up to date distro it should just work out the box (although you still have to enable an option in Chrome to enable it).

    But yes, the relay is an option too. It's not quite as nice to use, but it's a great way to get things working.

  • Unfortunately that list only contains minor brands which don't seem to be sold here in Finland and shipping costs are huge. For example cheapest price I could find for that "Plugable USB-BT4LE" was around 50 € when shipping+customs is included.

    @fanoush Thanks, that seems to ship to Finland with low cost (just has 5 weeks shipping time).

  • Just to confirm: So Bangle.js 2 uses USB only for charging and doesn't support data over USB and apps can only be installed via Bluetooth (either directly or using that relay)?

  • Yes.

  • what about those 2 middle contacts? where these are connected to?

  • doesn't support data over USB

    There is no USB in that cable. There is SWD debug port there so there is a way how it could possibly work but you would need additional hardware (and software) to connect over SWD and make some sort of USB COM port available via that. And then the IDE could connect over that in future. But for now there is nothing and bluetooth is and always will be easier to use.

    As for that additional hardware it could be even some existing Espruino device with USB like Espruino Pico or anything else reprogrammable with USB (like $4 Raspberry Pico or $4 STLink V2 clone dongle from Aliexpress or $3 CMSIS DAPLink dongle).

    With proper sofware in the dongle and espruino one could have virtual Serial object in memory (wrapping Segger RTT buffer) and read/write it over swd and pass the data as usb serial port.

  • For sourcing BLE dongles: Maybe do a search for ones available to you in Finland for a sensible price and post some links up here. Then we can tell you if they're ok.

    what about those 2 middle contacts? where these are connected to?

    https://www.espruino.com/Bangle.js2#hard­ware-swd

  • I bought "Asus USB-BT400" which was on sale locally and managed to get that working with my Debian 11 and Chromium.

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

Can I use Web IDE without Bluetooth?

Posted by Avatar for malaire @malaire

Actions