getIPInfo() resets board

Posted on
  • Using ESP-12 module, flashing
    s3.voneicken.com/espruino/espruinĀ­o_1v84.tve_master_9aa07bc_esp8266.tgz

    per
    https://github.com/tve/EspruinoDocs/blob/master/tutorials/ESP8266_Flashing.md

    I get the following output (the <\r><\n> was added by the serial console I use)

    
    >wifi=require("Wifi")<\r><\n>
    =function () { [native code] }<\r><\n>
    >wifi.connect("TwilightZone",{password:"passwordgoeshere"},function(err){if(err)console.log(err);else console.log("connected!");})<\r><\n>
    =undefined<\r><\n>
    ><\b>connected!<\r><\n>
    >wifi.setDHCPHostname("ESPBoard0")<\r><\n>
    =undefined<\r><\n>
    >wifi.getStatus()<\r><\n>
    ={ <\r><\n>
      "mode": "sta+ap", <\r><\n>
      "station": "connected", <\r><\n>
      "ap": "enabled", <\r><\n>
      "phy": "11n", <\r><\n>
      "powersave": "ps-poll", <\r><\n>
      "savedMode": "off"<\r><\n>
     }<\r><\n>
    >wifi.getIPInfo()<\r><\n>
    <\r><\n>
     ets Jan  8 2013,rst cause:1, boot mode:(3,7)<\r><\n>
    <\r><\n>
    load 0x40100000, len 1396, room 16 <\r><\n>
    tail 4<\r><\n>
    chksum 0x89<\r><\n>
    load 0x3ffe8000, len 776, room 4 <\r><\n>
    tail 4<\r><\n>
    chksum 0xe8<\r><\n>
    load 0x3ffe8308, len 540, room 4 <\r><\n>
    tail 8<\r><\n>
    chksum 0xc0<\r><\n>
    csum 0xc0<\r><\n>
    <\r><\n>
    2nd boot version : 1.4(b1)<\r><\n>
      SPI Speed      : 80MHz<\r><\n>
      SPI Mode       : QIO<\r><\n>
      SPI Flash Size & Map: 32Mbit(512KB+512KB)<\r><\n>
    jump to run user1 @ 1000<\r><\n>
    <\r><\n>
    {l??sl??<27>[?7l<\r><\n>
     _____                 _ <\r><\n>
    |   __|___ ___ ___ _ _|_|___ ___ <\r><\n>
    |   __|_ -| . |  _| | | |   | . |<\r><\n>
    |_____|___|  _|_| |___|_|_|_|___|<\r><\n>
              |_| http://espruino.com<\r><\n>
     1v84.tve_master_9aa07bc Copyright 2015 G.Williams<\r><\n>
    WARNING: the esp8266 port is in beta!<\r><\n>
    Flash map 4MB:512/512, manuf 0xef chip 0x4016<\r><\n>
    <\r><\n>
    >
    
    

    Any idea what's going on?

    It's powered off of an LD33V regulator with input and output caps per datasheet, and a second set of caps right across Vcc and Gnd (0.1uf and 1uf)powered from a 5V bench supply.

  • There have been some changes in ESP8266-port, to make it more general. This works for me:
    wifi.getIP(function(data){console.log("IPInfo",data.ip);});
    wifi.getStatus(function(data){console.log("ConnStatus",data);});
    Actual docu is available on @tve : http://s3.voneicken.com/espruino/functions.html#t_Wifi
    Since Gordon takes some days off, this will make its way to actual docu next year.
    There is some more info in "Espruino on ESP8266"-board in this forum, including link to actual version. Seems to me your version is an older one (?)

    From my best knowledge, reset looks like a misaligned text(error message for unknown command in a class) in flash. In my actual version this does'nt come up anymore.

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

getIPInfo() resets board

Posted by Avatar for DrAzzy @DrAzzy

Actions