var wifi = require("Wifi"); wifi.scan((ap)=>print(ap));

Posted on
Page
of 2
/ 2
Next

  • | |_ ___ ___ _ ||___ ___
    | |_ -| . | _| | | | | . |
    |
    |_| || |_|||_|_|

         |_| espruino.com
    

    2v12 (c) 2021 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0x1c chip 0x3016

    [ ]


    1 Attachment

    • 微信截图_20220220123240.png
  • Ok, so let's continue this here.

  • Will setup a ESP8266 with Espruino 2v12 and run some wifi test.

  • How to set

  • ESP 32 is OK but in esp8266 is [];


    1 Attachment

    • 微信图片_20220220195743.png
  • With latest software 2v12.40 on an esp8266-01 it works for me.


    1 Attachment

    • pic.png
  • Latest software is alway here to find .

  • no


    1 Attachment

    • 微信图片_20220225200628.png
  • [ ]


    1 Attachment

    • 微信图片_20220225200628.png
  • please share a picture of the board you use

  • My board is ok in arduino


    1 Attachment

    • 微信图片_20220225221355.jpg
  • Thanks for sharing. Please try the 4mb image.

  • This one


    1 Attachment

    • 12203919-EF2F-4BA0-8C74-E771D8855605.jpeg
  • address in 0x0? or in 0x1000?

  • help me to espruino_..._combined_4096.bin

  • look


    1 Attachment

    • 11.png
  • look


    1 Attachment

    • 11.png
  • no


    1 Attachment

    • 11.png
  • I have the same problem with the same board shown above. It seem that the WiFi is not working properly on WeMos Dev board (weak WiFI, maybe?) with Espruino. Please try with other board. I try on an old NodeMcu board and it went ok. I said, 'weak WiFi' because running scan with MicroPython on the WeMos board returned only a few AP where there should be plenty. Give it a try on another dev board other then WeMos.

  • it in arduino is OK!

  • My ROM is 32M字节

  • Ok, there is maybe a explanation for the different results: Espruino is using SDK ESP8266_NONOS_SDK-2.2.1.tar.gz and arduino using a newer one.

  • 我希望你能修它
    I hope you can fix it

  • 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.

  • @stumin Thanks for sharing your test results. Is it possible to share how you managed to compile with the SDK? Would like to run some device tests and then we could think about switching to this SDK.

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

var wifi = require("Wifi"); wifi.scan((ap)=>print(ap));

Posted by Avatar for 影之刃 @影之刃

Actions