Avatar for user88194

user88194

Member since Mar 2018 • Last active Apr 2018
  • 5 conversations
  • 10 comments

Most recent activity

    • 2 comments
    • 84 views
  • Avatar for user88194

    Hi all,

    Is there any example in Espruino that shows a file upload to a webserver? Basically I am trying to speed test my access point/router by uploading a file and measure how long it took to upload a file and then how long it took it to download a same file. Any leads to an example project will be much appreciated.

    Thanks

  • in ESP32
    Avatar for user88194

    That worked! Thank you for explaining the issue.

  • in ESP32
    Avatar for user88194

    I tried this and then saved using save().
    However, LCD shows some dots but no text

    function start(){
    g.clear();
    g.drawString("test",0,0);
    g.flip();
    }
    
    
    E.on('init', function() { 
    // I2C
    I2C1.setup({scl:D4,sda:D5});
    var g = require("SSD1306").connect(I2C1, start);
    });
    
    
  • in ESP32
    Avatar for user88194

    Hi all,

    I am trying to save a simple code but it does not save.
    I used this command on Windows terminal to flash the ESP32 wemos oled (attached pic) board:

    esptool.py --chip esp32 --port COM3 --baud 921600 write_flash --flash_size=detect 0x1000 bootloader.bin 0x10000 espruino_esp32.bin 0x8000 partitions_espruino.bin
    esptool.py v2.3.1
    Connecting........_
    Chip is ESP32D0WDQ6 (revision 1)
    Features: WiFi, BT, Dual Core
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    Changed.
    Configuring flash size...
    Auto-detected Flash size: 4MB
    Compressed 12272 bytes to 7603...
    Wrote 12272 bytes (7603 compressed) at 0x00001000 in 0.1 seconds (effective 1008.3 kbit/s)...
    Hash of data verified.
    Compressed 929184 bytes to 520002...
    Wrote 929184 bytes (520002 compressed) at 0x00010000 in 8.5 seconds (effective 871.0 kbit/s)...
    Hash of data verified.
    Compressed 3072 bytes to 136...
    Wrote 3072 bytes (136 compressed) at 0x00008000 in 0.0 seconds (effective 2063.6 kbit/s)...
    Hash of data verified.
    
    Leaving...
    Hard resetting via RTS pin...
    

    The I used Eepruino web IDE on Windows changed the baud to setting to highest (115200)

    When I connect to ESP32 I get this error message. However it seems to work fine.

    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    flash read err, 1000
    ets_main.c 371
    ets Jun  8 2016 00:22:57
    rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0x00
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0008,len:8
    load:0x3fff0010,len:1932
    ho 0 tail 12 room 4
    load:0x40078000,len:10012
    load:0x40080000,len:252
    entry 0x40080034
    ERROR: jswrap_wifi_restore: esp_wifi_connect: 10
    Loading 2736 bytes from flash...
    >
    

    when I uploade the code I get this warning:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     1v96 (c) 2017 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >WARNING: jshI2CSetup: driver installed, sda: 5 sdl: 4 freq: 50000,
    =undefined
    > 
    

    this is test code:

    function start(){
    g.clear();
    g.drawString("test",0,0);
    g.flip();
    }
    
    // I2C
    I2C1.setup({scl:D4,sda:D5});
    var g = require("SSD1306").connect(I2C1, start);
    
    

    When I save() it does not save

    >save()
    =undefined
    Compacting Flash...
    Calculating Size...
    Writing..
    Compressed 80000 bytes to 6860
    WARNING: jshI2CSetup: driver installed, sda: 5 sdl: 4 freq: 50000,
    > 
    

    I disconnect and then reconnect ESP32 board but nothing shows up on oLED.
    Any insight?

    Thanks very much.

    • 9 comments
    • 249 views
  • in Puck.js, Pixl.js and MDBT42
    Avatar for user88194

    Thank you very much Gordon for great products as well as a great support. I will do my part to support the Espruino by buying even more official hardware.
    :-)

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

    Hello,

    It appears Puck.JS does not have on board LFXO, If I connect one 32khz crystal to pins do I need to change settings somewhere?

    How about nRF52DK? It already has a LFXO. What settings I need to change to start saving power even if it is not much difference between RC XO (<5uA).

    Thanks

    https://devzone.nordicsemi.com/f/nordic-­q-a/14214/how-much-current-consumption-w­hen-we-use-internal-32k-rc

Actions