Avatar for Thomas

Thomas

Member since Dec 2016 • Last active Jun 2017
  • 3 conversations
  • 7 comments

Most recent activity

  • in Puck.js
    Avatar for Thomas

    @Gordon You're absolutely right, I didn't notice that Chrome automatically restored the app after I logged in.

    It works perfectly now, thanks for the quick response!

  • in Puck.js
    Avatar for Thomas

    I've tried to connect to Puck.js from a newly reset Windows 10 laptop. Pairing was no problem but the Web IDE (native, v65.9) keeps saying "NO PORTS FOUND".

    It does however show up in the Settings app as well as in the Device Manager under "Bluetooth".

    What I tried already:

    1. Unpair and pair
    2. Update Windows (including Creators Update)
    3. Reinstall Web IDE
    4. Update firmware on Puck.js to v92
    5. Several restarts of both devices

    I also tried some methods to list all connected serial ports but always got back an empty list.

    What could be the problem? What else could I try?

    Here is the console output:

    We have chrome.serial - not using 'serialport' module
    serial_audio: Audio Sample rate : 48000
    serial_audio: Audio Serial Baud 9600 Bit time 5
    No navigator.bluetooth - Web Bluetooth not enabled
    GET chrome.storage.sync = undefined
    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 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 SetTime
    Initialising Unicode
    Initialising Minify
    Initialising SaveOnSend
    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
    Initialising Offline
    No code in storage.
    GET chrome.storage.local.OFFLINE_DATA = 0 bytes
    

    Thanks
    Thomas

  • in Puck.js
    Avatar for Thomas

    My thought was to keep the name "Web IDE" but extending it when referring to a specific version. e.g. "Web IDE - Chrome", "Web IDE - Online" and "Web IDE - Native"

    But I'm curious: Why couldn't you use Bluetooth in the Chrome App? According to these docs it's supported on Windows. It even mentions LE (exactly once) at inquiryTxPower.

  • in Puck.js
    Avatar for Thomas

    Now I see the problem: I followed the links and landed on espruino.com/Web+IDE from espruino.com/Puck.js+Quick+Start#windows­. For some reason the embedded YouTube video doesn't show up for me, so because of the big white space I thought the page was over. Should have checked the scroll bar...
    I assumed "native" referred to a specific Chrome app since I have some Chrome apps that can access native features, like USB devices.
    Perhaps it would be a good idea to change the link on the /Puck.js+Quick+Start#windows to /Web+IDE#as-a-native-application

    Now I've installed the correct native app and paired the device (Button is called "Pair" in Windows 10, no longer "Connect" as in the instructions) it works.

    Thanks for the help.
    I've created 2 Pull Requests on GitHub to address the two points in the docs that confused me.

    One last confusing point is that the native app is still referred to as "Web IDE". I understand it's probably the exact same thing in an app shell (like Electron). But seeing as there are 3 versions of the Web IDE right now (online, Chrome app and native) you might consider more using specific names where appropriate.

  • in Puck.js
    Avatar for Thomas

    I just wanted to inform you that the default URL on my Puck.js pointed to https://puck-js.com/go?a=xx:xx:xx:xx:xx:­xx but the SSL certificate is only valid for www.puck-js.com

    Not really a big deal but perhaps useful for the next batch.

    Chrome on desktop (Windows 10) actually redirects automatically to http://www.puck-js.com with the following console message:

    Redirecting navigation puck-js.com -> http://www.puck-js.com because the server presented a certificate valid for http://www.puck-js.com but not for puck-js.com. To disable such redirects launch Chrome with the following flag: --force-fieldtrials=SSLCommonNameMismatc­hHandling/Disabled/

  • in Puck.js
    Avatar for Thomas

    I just discovered the "Console" tab in the Web IDE settings. Here's the log:

    We have chrome.serial - not using 'serialport' module
    serial_audio: Audio Sample rate : 44100
    serial_audio: Audio Serial Baud 9600 Bit time 4.59375
    No navigator.bluetooth - Web Bluetooth not enabled
    GET chrome.storage.sync = undefined
    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 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 FileReload
    Initialising CodeLink
    Initialising Project
    Initialising Testing
    Initialising Notification_Sound
    Initialising Tern
    Initialising Debugger
    Initialising Tour
    Initialising SettingsProfile
    Initialising HelpLinks
    No code in storage.
    
  • in Puck.js
    Avatar for Thomas

    I just got my Puck.js and tried to connect to my laptop running Windows 10, but it doesn't show up in CLI using

    espruino --list
    

    or WebIDE (neither Chrome App nor native). It does however show up in Bluetooth Settings. I can even successfully pair it, but that has no effect.

    Am I missing something?

    Here some data about my system (just tell me if you need more):

    • Windows 10.0.14393 Home 64-bit
    • Chrome 54.0.2840.99 m (64-bit)
    • Python 2.7.12
    • NodeJS v6.9.1
    • NPM 3.10.8
Actions