Espruino Web IDE: Timed out receiving file

Posted on
  • Hi all,
    I'm using "GPS Recorder v0.12" on my Bangle.js, but cannot transfer the data to my PC.
    Using Edge Version 85.0.564.51 with the Espruino Web IDE, I'm pairing fine, but downloading data with the storage icon and selecting the file results in "Timed out receiving file".
    It seems to work for small files though.
    Is there any limit on the data size, or is the time-out value adjustable?
    Thanks & regards
    Matthias

  • Hi Matthias,

    There's usually a limit of 30s or so in the IDE I think - right now it's not configurable.

    Have you tried offloading the data direct using https://banglejs.com/apps/ ?

    • Connect (top right)
    • Go to 'My Apps'
    • Click the upload icon next to 'GPS Recorder'
    • You can then grab your data and save it as GPX/KML

    Would that do you, or did you need to get at the raw data for some reason?

  • Hi Gordon,
    thanks for your quick reply. You are right, downloading via the apps page works. I didn't notice this.

    Wouldn't it be nice to transfer any data to/from bangle.js without special app support, regardless of the data size?
    Using the browser UI is hardly scriptable, so is there a way to transfer data using a command-line solution?

    Thanks & regards
    Matthias

  • Wouldn't it be nice to transfer any data to/from bangle.js without special app support, regardless of the data size?

    Yes - there's actually an issue open for it here so hopefully it'll get sorted soon: https://github.com/espruino/EspruinoWebI­DE/issues/234

    is there a way to transfer data using a command-line solution?

    Yes - it's as easy as opening a Bluetooth LE 'Nordic UART' connection

    https://www.espruino.com/Interfacing#blu­etooth-le

    and then uploading something like:

    `\x03\x10(function() {
          var f = require("Storage").open(${JSON.stringify­(filename)},"r");
          Bluetooth.println(f.getLength());
          var l = f.readLine();
          while (l!==undefined) { Bluetooth.print(l); l = f.readLine(); }
          Bluetooth.print("\xFF");
        })()\n`
    

    There are the Espruino CLI tools, but they don't support this kind of thing with Storage at the moment

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

Espruino Web IDE: Timed out receiving file

Posted by Avatar for user118435 @user118435

Actions