Avatar for citizen12123

citizen12123

Member since Apr 2017 • Last active Apr 2017
  • 1 conversations
  • 10 comments

Most recent activity

  • in ESP8266
    Avatar for citizen12123

    Thank you everybody for your time trying to help out.

    What I mean to say here is that esp-open-rtos works just fine at this moment. As soon as I flash it with Espruino I encounter the wifi problem.

    @MaBe I've already tried changing to b/g/n - doesn't improve anything.

  • in ESP8266
    Avatar for citizen12123

    Hello @MaBe,
    I did and it does the same thing - returns an empty array.

    >require("Wifi").scan(function(arrayOfAc­essPoints){print(arrayOfAcessPoints);});­  
    =undefined
    [  ]
    
  • in ESP8266
    Avatar for citizen12123

    Ordered 3 Wemos d1 minis from different suppliers. Will see how they perform while this remains a mystery...

  • in ESP8266
    Avatar for citizen12123

    Enabled WiFi logging

    >esp8266.printLog()
    89478> wifi.on(#ondisconnected)
     89575> reconnect
     91698> scandone
     91699> no simple found, reconnect after 1s
     91699> Wifi event: disconnected from ssid simple, reason beacon_timeout (201) status=no_ap_found
     91702> wifi.on(#ondisconnected)
     91799> reconnect
    

    Nothing terribly useful. Just checked Micropython on this board - WiFi works great.

  • in ESP8266
    Avatar for citizen12123

    @Ollie do you mean shorting the antenna connector? Tried that out of desperation and also flashed espruino_1v85_esp8266_combined_512.bin - issue remains.

  • in ESP8266
    Avatar for citizen12123

    Yes - the WiFi details are correct. "simple" is the actual SSID and also is the password. I did try your code snippet.

    I would like to point out, that WiFi credentials get set properly:

    >wifi.getDetails()
    ={
      "status": "no_ap_found",
      "ssid": "simple",
      "password": "12345678",
      "rssi": 0, "savedSsid": null }
    

    Looks like it's unable to use the radio at all somehow.

    >wifi.scan(function(ap){print(ap);});
    =undefined
    [  ]
    >var esp8266 = require("ESP8266");
    =function () { [native code] }
    >esp8266.printLog()
    292141> reconnect
    294267> scandone
    294267> no simple found, reconnect after 1s
    294367> reconnect
    296493> scandone
    296493> no simple found, reconnect after 1s
    296593> reconnect
    298717> scandone
    298717> no simple found, reconnect after 1s
    298817> reconnect
    =undefined
    > 
    

    Oh dear what a riddle.

  • in ESP8266
    Avatar for citizen12123

    @Wilberforce I have added the antenna - getting the same result. esp-open-rtos works fine with and without the antenna though.

    @CrashingDutchman It's being powered through USB out of my laptop - same power source as with esp-open-rtos. Just tried powering it with 12V 1A adapter - didn't see any improvement. Also erased and re-flashed using the new power source.

    What else can we try? :D

  • in ESP8266
    Avatar for citizen12123

    Here's what it does after wifi.connect():

    >esp8266.printLog()
    988179> reconnect
    990305> scandone
    990305> no simple found, reconnect after 1s
    990405> reconnect
    992531> scandone
    992531> no simple found, reconnect after 1s
    992632> reconnect
    994758> scandone
    994758> no simple found, reconnect after 1s
    994858> reconnect
    =undefined
    

    At least it's trying... Okay.

    >wifi.scan(function(ap){print(ap);});
    =undefined
    [  ]
    >
    >esp8266.printLog()
     74724> mode : sta(5c:cf:7f:de:6a:74)
     74725> add if0
     76851> scandone
    =undefined
    
  • in ESP8266
    Avatar for citizen12123

    Compiled my own firmware from latest source - same result.
    Also, wifi.scan() returns an empty object. I have a few APs around for sure.

    >wifi.scan(function(ap){print(ap);});
    =undefined
    [  ]
    

    Tried with esp_init_data_default.bin at 0x3FC000 and without it. I'm also erasing before every flash.

Actions