Puck.js v2.22 update

Posted on
  • Hi, I've just flashed the firmware on my new puck.js to the latest 2.22 and it's come back with the name "Fail LD2", even though the flash appeared to work and it seems to be working fine. The issue I had with the ble connection dropping when the accelerometer went past 90 degrees seems to have been fixed. Did note that when I reset after the flash, the red led blinked a number of times on power up.

    Any ideas? Tried it via the mobile app and the Web IDE.

  • Hi!

    Yes, I think that's fine. Most likely your battery is a bit on the flat side?

    Firmwares from the past year or so run a self-test the first time they're flashed to the device. If you take the battery out and re-add it the Puck will start as normal with the correct name on Bluetooth.

    The Fail LD2 message refers to the test of LED2 (the green LED). The Puck applies a small resistance and measures the forward voltage across the LED to check it's within range (connected, and not obviously the wrong colour). If the battery voltage is too low the value reported ends up wrong though, so that's probably what you're seeing

  • Thanks Gordon, surprising though as I only got the puck yesterday with a brand new battery.

  • Just put a meter on the battery and it's at 2.99V.

  • That's odd - definitely should be fine then! I guess it's possible that when it tested it your finger was over it and added extra resistance or something like that.

    We do test them here so it must have passed the test at that point. As long as the green LED can light up you're fine though.

  • Hi, I've rewound to v2.21 and it's behaving as expected on power on, one single red flash. With v2.22 it gave me 6 red flashes and an extremely brief flash of the blue and green before that. When I look for it in the Web IDE, in the pairing window it shows up as Puck.js 73f5 but once paired it's calling it Fail LD2 again. So I think there's an issue with the v2.22 firmware and also the advertised name now.

  • Here's the screen shot....


    1 Attachment

    • PuckJs.png
  • Puck.js 73f5 but once paired it's calling it Fail LD2 again.

    once connected not paired? This can be IDE issue, It caches the name from previous connections (with 2.22) so may show this even if it is fine now with 2.21.

  • In the device selector window it says it's already paired. Is there a way to make web bluetooth forget a device?

    Does this extract from the logs help?

    Connecting...
    Set Slow Write = true ('Throttle Send'='Auto')
    BT> Starting device chooser
    Connecting to FAIL LD2
    BT> Device Name: FAIL LD2
    BT> Device ID: 5e3GbrcINKkhJY5dIBCB5A==
    Connected to BLE
    BT> Connected
    Configuring BLE...
    BT> Got service
    Configuring BLE....
    BT> RX characteristic:{}
    Configuring BLE....
    Configuring BLE.....
    BT> TX characteristic:{}
    Configuring BLE.....
    Set Slow Write = false (forced)
    BLE configured. Receiving data...
    Connected [object Object]
    Found a prompt... great!
    Sending...
    ---> "\u0010print(\"<\",\"<<\",JSON.stringify(process.env),\">>\",\">\")\n"
    Sent
    BT> Received packet of length 50 - assuming increased MTU
    Receiving...
    Got "< << {\"VERSION\":\"2v21\",\"GIT_COMMIT\":\"8f3a9cb52\",\"BOARD\":\"PUCKJS\",\"RAM\":65536,\"FLASH\":524288,\"HWVERSION\":2.1,\"STORAGE\":40960,\"SERIAL\":\"fbd1a859-37e74de9\",\"CONSOLE\":\"Bluetooth\",\"MODULES\":\"Flash,Storage,heatshrink,net,dgram,http,NetworkJS,crypto,neopixel\",\"EXPTR\":400424} >> >\r\n>"

    [notify_info] Found PUCKJS, 2v21
    Loading https://www.espruino.com/json/PUCKJS.json
    Board JSON loaded
    Firmware >1.43 supports faster writes over USB
    Set Slow Write = false ('Throttle Send'='Auto')
    FIRMWARE: Current 2v21, Available 2v22
    New Firmware 2v22 available
    [notify_info] New Firmware available (2.21 installed, 2v22 available)
    Device found {"portName":"FAIL LD2"}
    [success] Connected to Web Bluetooth, FAIL LD2
    Connected to Web Bluetooth, FAIL LD2

  • Just answered my own question by closing the Web IDE and opening a new one! Should have thought of that first....

  • Sorry, I just looked into this and you're correct - it's a firmware issue.

    Just the self-test code (that's repeatedly checking LED1 against what it expects for LED2). I'll get a fix in now.

  • Ok, please can you re-update your firmware to 2v22? That should fix it.

    Since it's been such a short time since I did the 2v22 release I've just changed the release itself rather than doing a new one.

  • Yep, that seems much better. Thanks.

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

Puck.js v2.22 update

Posted by Avatar for user158205 @user158205

Actions