• Wemos NodeMCU V3 is a nice dev board. It is ashamed that Espruino WiFi is not
    working on it. I've managed to compile Espruino with SDK 3.0.6-dev(865fa65). The
    SDK used with Arduino. But sadly, still problem with Espruino WiFi.


    Wemos NodeMCU V3 ESP8266

    process.env
    ={
    VERSION: "2v12.58",
    GIT_COMMIT: "f148c737",
    BOARD: "ESP8266_ME",
    FLASH: 0, STORAGE: 196608, RAM: 81920,
    SERIAL: "d8f15b07-1f41",
    CONSOLE: "Serial1",
    MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
    EXPTR: 1073648148 }

    var esp=require("ESP8266")

    esp.getState()
    ={
    sdkVersion: "3.0.6-dev(865fa65)",
    cpuFrequency: 80, freeHeap: 12752, maxCon: 10,
    flashMap: "4MB:512/512",
    flashKB: 4096,
    flashChip: "0x20 0x4016"
    }

    var wifi=require('Wifi')

    wifi.stopAP()

    wifi.getStatus()
    ={
    mode: "off",
    station: "off",
    ap: "disabled",
    phy: "11n",
    powersave: "ps-poll",
    savedMode: "off"
    }

    wifi.scan((w)=>print(w))
    [ ]

    wifi.getStatus()
    ={
    mode: "sta",
    station: "off",
    ap: "disabled",
    phy: "11n",
    powersave: "ps-poll",
    savedMode: "off"
    }

    wifi.scan((w)=>print(w))
    [ ]


    now on another board. AI ESP-12S ESP8266

    process.env
    ={
    VERSION: "2v12.58",
    GIT_COMMIT: "f148c737",
    BOARD: "ESP8266_ME",
    FLASH: 0, STORAGE: 196608, RAM: 81920,
    SERIAL: "e8db849c-4951",
    CONSOLE: "Serial1",
    MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
    EXPTR: 1073648148 }
    var esp=require("ESP8266")

    esp.getState()
    ={
    sdkVersion: "3.0.6-dev(865fa65)",
    cpuFrequency: 80, freeHeap: 12752, maxCon: 10,
    flashMap: "4MB:512/512",
    flashKB: 4096,
    flashChip: "0xd8 0x4016"
    }
    var wifi=require('Wifi')

    wifi.scan((w)=>print(w))
    [
    { "rssi": -84, "channel": 1,

    "authMode": "wpa2", 
    "isHidden": false, 
    "ssid": "NextGenTel_6332", 
    "mac": "60:03:a6:2e:63:32"
    

    },
    ...
    ...
    { "rssi": -81, "channel": 11,

    "authMode": "wpa2", 
    "isHidden": false, 
    "ssid": "Telenor7783gre", 
    "mac": "b8:ec:a3:53:24:83"
    

    }
    ]

    So newer SDK does not solve the problem. I think it is a hardware problem. Can the chip did not get enough power during WiFi operation. I say this because I got brown out when using Espruino on ESP32 hub without external power.

  • 是不是设置功率参数问题
    是不是设置功率参数问题
    Is there a problem with setting power parameters

About

Avatar for 影之刃 @影之刃 started