Windows 7 : device is visible but connection failed

Posted on
Page
of 2
Prev
/ 2
  • Great! Glad you got something working! And Archlinux has bluez 5.43 out of the box?

    I still don't understand why it's being so picky on Windows though - others have had the same problems as you too.

  • Yes, Arch has this out of the box.

  • Hi guys.
    I have a case where my device is visible but I do not have any web bluetooth button appearing in the Native IDE. Here is the console output:

    We have chrome.serial - not using 'serialport' module
    'winnus' module not found, no Windows Bluetooth Low Energy Error: The specified module could not be found. \\?\C:\Program Files\EspruinoIDE\node_modules\winnus\build\Release\winnus.node
    serial_audio: Audio Sample rate : 44100
    serial_audio: Audio Serial Baud 9600 Bit time 4.59375
    Web Bluetooth available, but Windows Web Bluetooth is broken in <=56 - not using it
    GET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":"9600","BLOCKLY_EXTENSIONS":"|bluetooth|robot|","BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS":false,"BLUETOOTH_LOW_ENERGY":true,"BOARD_JSON_URL":"http://www.espruino.com/json","CODE":"console.log(\"Hello\");","COMPILATION":true,"COMPILATION_URL":"http://www.espruino.com:32766","ENABLE_Testing":false,"ENV_ON_CONNECT":true,"FONT_SIZE":12,"MINIFICATION_DeadCode":true,"MINIFICATION_LEVEL":"","MINIFICATION_Literal":true,"MINIFICATION_Mangle":true,"MINIFICATION_Unreachable":true,"MINIFICATION_Unused":true,"MODULE_AS_FUNCTION":false,"MODULE_EXTENSIONS":".min.js|.js","MODULE_MINIFICATION_LEVEL":"ESPRIMA","MODULE_URL":"http://www.espruino.com/modules","NPM_MODULES":false,"RESET_BEFORE_SEND":true,"SAVE_ON_SEND":0,"SERIAL_AUDIO":"0","SERIAL_TCPIP":"","SERIAL_THROTTLE_SEND":false,"SET_TIME_ON_WRITE":false,"SHOW_CODE_LINK_ICON":false,"SHOW_RELOAD_ICON":false,"SHOW_WEBCAM_ICON":0,"STORE_LINE_NUMBERS":true,"Sound_Error":"","Sound_Info":"","Sound_Success":"","Sound_Warning":"","Speak_Error":false,"Speak_Info":false,"Speak_Success":false,"Speak_Warning":false,"UI_MODE":"Normal","WEB_BLUETOOTH":false}
    Initialising SettingsConsole
    Initialising Utils
    Initialising Config
    Initialising Notifications
    Initialising Status
    Initialising App
    Initialising File
    Initialising Code
    Initialising Serial
      - Initialising Serial Chrome Serial
      - Initialising Serial Chrome Socket
      - Initialising Serial Noble
      - Initialising Serial Audio
    Initialising Terminal
    Initialising CodeWriter
    Initialising Modules
    Initialising Env
    Initialising Flasher
    Initialising EditorBlockly
    Initialising EditorJavaScript
    Initialising Send
    Initialising MenuPortSelector
    Initialising MenuSettings
    Initialising MenuFlasher
    Initialising SettingsAbout
    Initialising SettingsFlasher
    Initialising BoardJSON
    Initialising VersionChecker
    Initialising Compiler
    Initialising Assembler
    Initialising GetGitHub
    Initialising NPMModules
    Initialising ExamplePlugin
    Initialising Unicode
    Initialising SaveOnSend
    Initialising Minify
    Initialising Tutorial
    Initialising Webcam
    Initialising FontSize
    Initialising UiMode
    Initialising URLHandler
    Initialising CodeLink
    Initialising Project
    Initialising Testing
    Initialising Notification_Sound
    Initialising Tern
    Initialising Debugger
    Initialising Tour
    Initialising SettingsProfile
    Initialising HelpLinks
    Loaded code from storage.
    noble starting scan
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    Found device:  f8:1a:18:1b:ba:f7
    Found device: jpthingy f8:1a:18:1b:ba:f5
    noble stopping scan
    noble starting scan
    

    The device is a Nordic "Thingy" based on NRF52. I don't use Puck.js because I temporarily lost it . . .

    I tried with both CSR and Broadcom based BLE dongles, same result. In both cases the IDE finds the device but when I select a port, no Bluetooth port appears. Check box Connect over Bluetooth Smart (BTLE) via 'noble' is checked. Espruino Native IDE version is win64_0v65.9. Any idea?

  • There wouldn't be 'Web Bluetooth' appearing in the native IDE - any discovered devices would be shown in the 'Select a Port' menu.

    It looks from the log like Bluetooth via noble is working well enough that it's detecting some devices - just I guess not the Nordic 'Thingy'. Are you sure it's actually flashed with the Espruino firmware and working? Can it be seen with something like the 'nRF connect' app?

  • The Nordic 'Thingy' has been renamed jpthingy.
    Yes I flashed the espruino_1v92.111_nrf52832.hex firmware via a J-LINK debugger, but I wonder if I should have flashed the ZIP archive instead of the .hexonly... ?!?

  • Nope, flashing the hex file is the correct way of doing things, but if you flashed the hex file and it hasn't renamed itself Espruino NRF52832DK then the flashing hasn't worked.

    That'd be why it's not appearing in the IDE anyway. I'm not sure if anyone's had it running on the Thingy yet - it might end up being more difficult than just flashing the DK's file.

  • OK the problem was the device flashing process, not the BLE adapter itself. For a reason, the J-Flash Lite tool did not flash the NRF52 the first time.
    After some tests, both my CSR and Broadcom based BLE dongles are working fine :-)

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

Windows 7 : device is visible but connection failed

Posted by Avatar for Artiom @Artiom

Actions