• Hi Gordon,

    I really appreciate your efforts!

    I tried your modified Web IDE, and of course something has changed.
    And it it really faster.

    Now it finds the Puck but still cannot connect.
    When starting the Web IDE, console log looks like this:

    We have chrome.serial - not using 'serialport' module
    Disable Web Bluetooth as we have Winnus instead
    serial_audio: Audio Sample rate : 48000
    serial_audio: Audio Serial Baud 9600 Bit time 5
    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,"BOAR­D_JSON_URL":"http://www.espruino.com/jso­n","CODE":"var  on = false;\nsetInterval(function() {\n  on = !on;\n  LED1.write(on);\n}, 500);","COMPILATION":true,"COMPILATION_U­RL":"http://www.espruino.com:32766","DIS­ABLE_CODE_HINTS":false,"ENABLE_Testing":­false,"ENV_ON_CONNECT":true,"FONT_SIZE":­12,"MINIFICATION_DeadCode":true,"MINIFIC­ATION_LEVEL":"","MINIFICATION_Literal":t­rue,"MINIFICATION_Mangle":true,"MINIFICA­TION_Unreachable":true,"MINIFICATION_Unu­sed":true,"MODULE_AS_FUNCTION":false,"MO­DULE_EXTENSIONS":".min.js|.js","MODULE_M­INIFICATION_LEVEL":"ESPRIMA","MODULE_PRO­XY_ENABLED":false,"MODULE_PROXY_PORT":""­,"MODULE_PROXY_URL":"","MODULE_URL":"htt­ps://www.espruino.com/modules","OFFLINE_­DATA":"","OFFLINE_DATA_DOWNLOAD":"","OFF­LINE_DATA_UPLOAD":"","OFFLINE_ENABLED":f­alse,"RESET_BEFORE_SEND":true,"SAVE_ON_S­END":0,"SERIAL_AUDIO":"0","SERIAL_TCPIP"­:"","SERIAL_THROTTLE_SEND":false,"SET_TI­ME_ON_WRITE":false,"SHOW_CODE_LINK_ICON"­:false,"SHOW_WEBCAM_ICON":0,"STORE_LINE_­NUMBERS":true,"Sound_Error":"","Sound_In­fo":"","Sound_Success":"","Sound_Warning­":"","Speak_Error":false,"Speak_Info":fa­lse,"Speak_Success":false,"Speak_Warning­":false,"UI_MODE":"Normal","WEBCAM_CONST­RAINTS":0}
    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 Bluetooth LE
      - Initialising Serial Windows Bluetooth LE
      - Initialising Serial Web Audio
      - Initialising Serial Web Bluetooth
    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 SetTime
    Loaded code from storage.
    Noble: stateChange -> poweredOn
    

    And clicking on connect field, it scans and offers the Puck.js for connection!
    (It displays the MAC address as its name and in the second line (smaller) "Puck.js 3172".

    But then ....

    Noble: Starting scan
    Web Bluetooth available, but Windows Web Bluetooth is broken in <=60 - not using it
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    Noble: Found UART device: Puck.js 3172 ff:cd:8a:a3:31:72
    >>> Connecting...
    Set Slow Write = true
    Noble: Stopping scan (openSerial)
    BT> Connecting
    BT> ERROR Connecting
    ERROR: Unable to open device (connectionInfo=undefined)
    ERROR: [notify_error] Connection Failed.
    >>> Connection Failed.
    

    I also tried this with several firmware versions of the Puck.js.
    I tried 1v95 (official), but also 1v94, 1v95.153 (latest) and 1v95.157, they all behaved the same.
    Having WinUSB driver installed on PC all the time.

    Thought I saw some similar problems in this form, but perhaps not exactly the same.
    Maybe there is a solution now, somehow, probably its just a little change of whatsoever.

    Any more advice for me?

    Best regards,
    squyrrel

About

Avatar for squyrrel @squyrrel started