Avatar for AntiCat

AntiCat

Member since Feb 2015 • Last active Dec 2019
  • 14 conversations
  • 87 comments

Most recent activity

    • 31 comments
    • 2,064 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    Software is 2.04, the Hardware im using is a Puck from the Kickstarter campaign so 1.0e.

    Edit: Could Minify make a difference? It is off on my system. I not at home so I can’t test other options right now.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    I never submitted a PR for NFCvCard.js since it didn't felt polished enough (especially since the vcard hat to be < 220 bytes). So the detour of downloading and copying to module directory is necessary. I've just double-checked. Using the https://www.espruino.com/modules/NFCTag.­js and the NFCvCard.js from above still works for me...

    That sed I rarely have issues when the BLE connection is also open. What might also break the system is creating multiple instances of NFCTag by calling require("NFCvCard") multiple times without a reset (note an upload performs a reset, so that should be fine in your case).

    My RAW data ends up to be:

    tag._record = new Uint8Array([95, 112, 172, 11, 153, 120, 250, 81, 74, 3, 255, 255, 225, 17, 124, 15, 3, 135, 194, 12, 0, 0, 0, 117, 116, 101, 120, 116, 47, 120, 45, 118, 67, 97, 114, 100, 66, 69, 71, 73, 78, 58, 86, 67, 65, 82, 68, 10, 86, 69, 82, 83, 73, 79, 78, 58, 50, 46, 49, 10, 78, 58, 68, 111, 101, 59, 74, 111, 104, 110, 59, 59, 77, 114, 46, 10, 70, 78, 58, 74, 111, 104, 110, 32, 68, 111, 101, 10, 84, 69, 76, 59, 87, 79, 82, 75, 59, 86, 79, 73, 67, 69, 58, 40, 49, 49, 49, 41, 32, 53, 53, 53, 45, 49, 50, 49, 50, 10, 69, 77, 65, 73, 76, 58, 106, 111, 110, 100, 111, 101, 64, 101, 120, 97, 109, 112, 108, 101, 46, 99, 111, 109, 10, 69, 78, 68, 58, 86, 67, 65, 82, 68, 10, 254]);
    

    Except the first 10 bytes (unique device id) this data should be identical on your Puck.JS.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    Thank you for the explanation.

    I've looked at the interface libraries/fstorage/fstorage.h and at least the arguments are at a very low abstraction level. Even if we would reimplement it, I'm not sure if we could save storage.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    I've started to port old code that uses the (deprecated) Flash-Module to the Storage-Module.

    With the Flash-Module I could disable features like NET, GRAPHICS and thereby increase the Storage available to me. (As far as I know, the Flash-Module uses the pages between the executable and the reserved area).

    The Storage-Module, on the other hand, seems to use the pages defined by pages: 10.

    Can I simply increase pages and decrease flash_available by the same amount to move the free space from the Flash-Module to Storage-Module?
    What are the 2 pages reserved for FS for?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    Can you be a little more specific?

    The documentation for the NFCTag module is available here:
    https://www.espruino.com/NFCTag

    I've tested the library with iOS13 (now also featuring write!!!) using a recently released App (not by me): https://apps.apple.com/ch/app/nfc-tools/­id1252962749

    iOS is a little more picky than Android so tuning some static data is required:

    var data = new Uint8Array(16+872);
    data.set("\x00\x00\xE1\x10\x6D\x00\x03\x­00\xFE\x00", 0x0A);
    var tag = require("NFCTag").create(data);
    
  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    I'm not an expert but likely you will hit in cold temperatures the limitation of the CR2032 cell or almost any other battery first. The chemical process within a battery is significantly more temperature dependent as any other component.

    Next to the battery your only other concern should be condensation since it may lead to shorts or corrosion.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for AntiCat

    The button connects (if pressed) VCC (3.3V) to Ground producing a short.

    If you want to pull a pin to ground you should always use a resistor e.g. 10k and not tie it directly,
    see: https://en.wikipedia.org/wiki/Pull-up_re­sistor for details.
    Note: The article describes pull-up, but the same principle applies to pull down.

  • in The Place for Patreon Patrons
    Avatar for AntiCat

    It works now - thank your for resolving the issue so quickly.

Actions