Wifi problem with espruino 2.01

Posted on
  • Hello,

    I am seeing a message that I believe comes from the lower level wifi interface after espruino idles for a while.

    wifi.connect(wifi_options.ssid, { password: wifi_options.password },
      e => { print("WIFI: " + e); }
    );
    wifi.on('connected', () => {
      print('WIFI:', wifi.getIP());
      setTimeout(() => { httpServer(); }, 1000);
    });
    wifi.on('disconnected', () => {
      print("WIFI: Reconnecting...");
      setTimeout(() => { wifi.connect(wifi_options.ssid, {password: wifi_options.password}); }, 5000);
    });
    
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v01 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >
    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    >ets Jun  8 2016 00:22:57
    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2588
    load:0x40078000,len:7192
    load:0x40080000,len:5288
    entry 0x40080278
    E (28) boot: ota data partition invalid, falling back to factory
    E (517) spiram: SPI RAM enabled but initialization failed. Bailing out.
    WARNING: Wifi:startMDNS - espressif
    WIFI: null
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    >Date.now()
    =16948.5
    {
      "method": "GET",
      "host": "",
      "path": "/",
      "pathname": "/",
      "search": null, "port": null, "query": null }
    >E (56743709) event: post event to user fail!
    E (56746550) event: post event to user fail!
    E (56749390) event: post event to user fail!
    E (56752231) event: post event to user fail!
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WIFI: Reconnecting...
    WARNING: Wifi:startMDNS - espressif
    WARNING: Wifi:stopMDNS
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    ERROR: Socket listen failed
    Uncaught InternalError: Unable to create socket
     at line 3 col 17
    server.listen(80)
                    ^
    in function "httpServer" called from line 1 col 12
    httpServer()
               ^
    in function called from system
    {
      "method": "GET",
      "host": "",
      "path": "/",
      "pathname": "/",
      "search": null, "port": null, "query": null }
    WIFI: Reconnecting...
    WARNING: Wifi:startMDNS - espressif
    WARNING: Wifi:stopMDNS
    WIFI: {
      "ip": "192.168.25.8",
      "netmask": "255.255.255.0",
      "gw": "192.168.25.1",
      "mac": "84:0d:8e:20:3d:1c"
     }
    ERROR: Socket listen failed
    Uncaught InternalError: Unable to create socket
     at line 3 col 17
    server.listen(80)
                    ^
    in function "httpServer" called from line 1 col 12
    httpServer()
               ^
    in function called from system
    > 
    
  • There has been a problem with wifi for all versions following espruino_2v00.42 (due to espressif's SDK 3.1) . Feel free to follow along here https://github.com/espruino/Espruino/issues/1571. I don't think a stable wifi release has been cut yet, as I just tried the latest and I'm seeing the same results. @Wilberforce and @JumJum have been making good progress though!

  • I noticed that trying to connect to ESP_203D1D with my desktop computer makes espruino fail.

    Happened as soon as I tried to connect:

    abort() was called at PC 0x40084b1f on core 0

    or the normal error we see:
    E (36210) event: post event to user fail!
    E (39052) event: post event to user fail!
    E (41894) event: post event to user fail!
    E (44737) event: post event to user fail!

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

Wifi problem with espruino 2.01

Posted by Avatar for barbiani @barbiani

Actions