Avatar for MyBlueBoo


Member since Dec 2016 • Last active Jan 2017
  • 2 conversations

Most recent activity

  • in Puck.js
    Avatar for MyBlueBoo

    Or if you're interested in what's been done but not yet released, you can see it here: github.com/espruino/Espruino/blob/master­/ChangeLog

    Fair enough. Seems quite a lot of changes over last few months so it is important for people to upgrade to 1.90 asap.


  • in Puck.js
    Avatar for MyBlueBoo


    So I flashed my PuckJS firmware to 1.90 following the instructions given. Pity I had to use my phone to do it, there ought to be a way to do it from the IDE or from the command line.

    But I noticed that in the zip binary you are told to download there is no changelog. So where is the changelog for the firmware documented? I would like to know what new or deprecated features are changes and what bugs there were that have been squashed.

    Anyone know where to find the details on this?


  • in Puck.js
    Avatar for MyBlueBoo

    What about running node server.js?

    Woo hoo! Now why is that not in the faq? What is cool is it even tells you your device is not compatible and asks you to set the correct one.

    node server.js
    Thu Jan 05 2017 10:46:30 GMT+0000 (GMT) Server is listening on port 8080
    noble warning: adapter does not support Bluetooth Low Energy (BLE, Bluetooth Smart).
                   Try to run with environment variable:
                   [sudo] NOBLE_HCI_DEVICE_ID=x node ...

    So NOBLE_HCI_DEVICE_ID=1 node server.js


    Thank you so much. It was getting quite frustrating and I really think this sort of thing needs to be put into the documentation for the IDE.

    Excellent now I can start with earnest tinking with my Pucks I have a few specific idea I need to test.

    Thanks once again!!

  • in Puck.js
    Avatar for MyBlueBoo

    Yeah.. I did that.. I even managed to connect to the PuckJS using bluetoothctl.

    [bluetooth]# devices
    Device F8:37:BB:11:74:A7 Puck.js 74a7
    [bluetooth]# connect F8:37:BB:11:74:A7
    Attempting to connect to F8:37:BB:11:74:A7
    [CHG] Device F8:37:BB:11:74:A7 Connected: yes
    Connection successful

    Sadly, Chrome like the braindead piece of software it is does not see that there is a device already connected to the default device and continues to try and probe hci0 and seeing nothing.

    I have tried building the IDE from git and got a little further by just removing the requirement of winnus from the package.json file.

    it 'installed' fine. But when I do npm start

    npm start
    espruino-web-ide@0.65.11 start /home/user/devel/git/EspruinoWebIDE
     nw .
      Usage: nw-gyp <command> [options]
      where <command> is one of:
        - build - Invokes `make` and builds the module
        - clean - Removes any generated build files and the "out" dir
        - configure - Generates a Makefile for the current module
        - rebuild - Runs "clean", "configure" and "build" all at once
        - install - Install node development files for the specified node version.
        - list - Prints a listing of the currently installed node development files
        - remove - Removes the node development files for the specified version
    nw-gyp@3.4.0  /usr/local/lib/node_modules/nw-gyp

    However, now I have some sort of weird incompatibility with node-gyp and whatever build file it uses.

    nw configure .
    gyp info it worked if it ends with ok
    gyp info using nw-gyp@3.4.0
    gyp info using node@4.6.1 | linux | x64
    gyp ERR! configure error 
    gyp ERR! stack Error: Invalid version number: undefined
    gyp ERR! stack     at getNodeDir (/usr/local/lib/node_modules/nw-gyp/lib/­configure.js:71:25)
    gyp ERR! stack     at /usr/local/lib/node_modules/nw-gyp/lib/c­onfigure.js:43:7
    gyp ERR! stack     at /usr/local/lib/node_modules/nw-gyp/lib/c­onfigure.js:460:9
    gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
    gyp ERR! stack     at emitTwo (events.js:87:13)
    gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack     at maybeClose (internal/child_process.js:829:16)
    gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
    gyp ERR! stack     at emitOne (events.js:77:13)
    gyp ERR! stack     at Socket.emit (events.js:169:7)
    gyp ERR! System Linux 4.8.0-2-amd64
    gyp ERR! command "/usr/bin/nodejs" "/usr/local/bin/nw" "configure" "."
    gyp ERR! cwd /home/user/devel/git/EspruinoWebIDE
    gyp ERR! node -v v4.6.1
    gyp ERR! nw-gyp -v v3.4.0
    gyp ERR! not ok 

    To be honest I would feel happier if I was trying to debug a C++ program because nodejs gives me a headache.


  • in Puck.js
    Avatar for MyBlueBoo

    The winnus bit failed, but that's optional and for windows only

    Hmm I was under the impression nodejs was cross platform. I mean what is winnus used for and is there a Linux equivalent to it I can add to the build options?

    I will see if I can convince Chrome to play nice but seems non-trivial alas.

    Thanks anyway, I put this question in Espruino because it was an IDE problem not an puck one per se. I can communicate to the puck from my phone, that is not so convienient though.

    Thanks again.

  • in Puck.js
    Avatar for MyBlueBoo

    Hi there,

    So tried building EspruinoWebIDE from git and it fails because of a newer version of nodejs.

    See attached file.

    Also the Chrome app does not see my 2nd BLE adapter which is hci1. The adapter can see the PuckJS but the webide does not because it using hci0 be default.

    hcitool -i hci1 lescan
    LE Scan ...
    F8:37:BB:11:74:A7 Puck.js 74a7
    F8:37:BB:11:74:A7 (unknown)

    Any idea how to solve these problems?