• Ok - thanks. That's perfect!

    So... good news and bad news. The bad news is that it doesn't recognise your BLE adaptor - I mentioned before that it has to talk directly to the adaptor, and it doesn't recognise that one as one it can talk to.

    I'd be pretty sure that a CSR-based adaptor would work though (once Zadig is run).

    However, if you're happy to do a little poking around I think it can be fixed with your current adaptor.

    • If you look in Program Files/EspruinoIDE there should be a file called package.nw
    • Rename it to package.zip and unzip it into that directory (so not into a subdirectory called package)
    • If you run the IDE it should still work
    • Open the file node_modules/bluetooth-hci-socket/lib/us­b.js in the EspruinoIDE directory
    • Find the line that says:

      this._usbDevice = usb.findByIds(0x0a5c, 0x21e8) || usb.findByIds(0x19ff, 0x0239) || usb.findByIds(0x0a12, 0x0001) || usb.findByIds(0x0b05, 0x17cb) || usb.findByIds(0x8087, 0x07dc);
      

    and replace it with:

        this._usbDevice = 
          usb.findByIds(0x0CF3,0xE300) || // Qualcomm Atheros QCA61x4 
          usb.findByIds(0x0a5c, 0x21e8) || // Broadcom BCM20702A0
          usb.findByIds(0x0a5c, 0x21ec) || // Broadcom BCM20702A0
          usb.findByIds(0x19ff, 0x0239) || // Broadcom BCM20702A0
          usb.findByIds(0x0a12, 0x0001) || // CSR
          usb.findByIds(0x0b05, 0x17cb) || // ASUS BT400
          usb.findByIds(0x8087, 0x07dc) || // Intel 7260
          usb.findByIds(0x0489, 0xe07a);   // Broadcom BCM20702A1
    

    And if you run it now it should start working (hopefully!).

About

Avatar for Gordon @Gordon started