Menu

WiFi issues with 127-07

2022-04-28
2022-05-24
  • Leonard Royles

    Leonard Royles - 2022-04-28

    Hi Robert,
    on a new build, ESP32 mounted on PCB with just TSL2591 connected. Fed via USB to laptop. Tried 127-07 and no wifi connection. Arduino monitor shows
    err: /log_config.jsn file. Create defaults.
    LC: /home_config.jsn NOT found
    init I2C
    init: TSL2591
    init STATIONPOINTMODE
    try alt ssid/pwd pair
    err: start WiFi: Reboot
    ets Jun 8 2016 00:22:57

    then just repeats the reboot over and over.

    I tried a simple wifi / blink and that established wifi connection and blinked so knew chip was probably OK. Copy / pasted credentials back into 127-07 but still same.
    Tried old firmware 125-63 (had to add ESP32Time) and worked. Connected, Win app and webserver all working.
    Unfortunately I just got lost trying to see what the differences between these versions might be.
    Any ideas to check?
    Thanks
    Len

     
  • brownrb

    brownrb - 2022-04-28

    try alt ssid/pwd pair
    err: start WiFi: Reboot
    ets Jun 8 2016 00:22:57
    indicates it could not login to your network

    things to check
    1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?
    2. the ssid and password info is in the firmware file controllerconfig.h
    3. After programming the firmware, DID you upload the data sketch files? If not then it cannot boot

    I see you are running station mode so it is these lines

    // -------------------------------------------------------------------------
    // STATIONPOINTMODE CONFIGURATION
    // -------------------------------------------------------------------------
    #if (CONTROLLERMODE == STATIONPOINTMODE)
    // When the mySQM+ controller is configured for STATIONPOINTMODE, these default
    // settings will be applied.
    
    // YOUR LOCAL NETWORK SSID AND PASSWORD
    // This is the Name and Password credentials used to log on to your local
    // network. You will need to change these.
    char mySSID[64] = "mysqmplus";
    char myPASSWORD[64] = "mysqmplus";
    
    // Alternative network credentials if initial details above did not work
    char mySSID_1[64]     = "FireFox";                // alternate network id
    char myPASSWORD_1[64] = "AllYeWhoEnter";          // alternate network id
    
     

    Last edit: brownrb 2022-04-28
  • Leonard Royles

    Leonard Royles - 2022-04-28

    From above: 1. is readwificonfig enabled? is it is did you create the required wificonfig.jsn file?

    Was enabled in both versions 127-07 and 125-63. Commented out in 127-07 and now connects. How do I create wificonfig.jsn file? I assumed it was automatically created?

    Windows App now retains data, with 125-63 it didn't.

    Items 2. & 3. were all correct.

     
  • brownrb

    brownrb - 2022-04-28

    create it with a text editor
    save it in the data folder as wificonfig.json
    then use the data sketch upload in arduino IDE
    OR
    use the upload feature of the web server, navigate to the file, and selected upload it

    this is what it looks like
    {"mySSID":"FIREFOX","myPASSWORD":"boomchugachug","mySSID_1":"redHot","myPASSWORD_1":"splinter_6"}

    from the pdf -

     

    Last edit: brownrb 2022-04-28
  • Leonard Royles

    Leonard Royles - 2022-04-29

    OK thanks for that!

     
  • Ryan Parle

    Ryan Parle - 2022-05-22

    I thought that i had the same problem, so i carried out the above changes and the ESP32 connected to my WIFI, however after rebooting the device it will no longer connect to my home WiFi, It will however connect to a mobile hotspot from my smartphone without any issues. any suggestions on what might be the issue?

     
  • brownrb

    brownrb - 2022-05-23

    check that your controllerconfig.h file. has stationmode and readwificonfig enabled

    // to work as a station accessing an existing AP, uncomment next line
    #define CONTROLLERMODE STATIONPOINTMODE
    
    // to enable reading SSID and PASSWORD
    // from SPIFFS file wificonfig.json at boot time, uncomment next line
    #define READWIFICONFIG 1
    

    Ensure that the wificonfig.json is correctly named and in the /data folder
    Ensure that the wifi credentials in that file are correct

    Reprogram the controller
    use the sketch upload so that the /data files are updated

     
  • Ryan Parle

    Ryan Parle - 2022-05-23

    Tried all of that on multiple attempts and nothing would work, I'm 100% sure credentials are correct as they were copy and pasted from the router admin page, tried changing SSID and pswd on the router to something very simple to rule out an error in the credentials, but it just will not connect to it, eventually gave up and set up another WiFi access point, it will connect to that without any issues. in the long term I'll need an access point close to where the mySQM+ will be installed anyway so this just pushed me along a bit.

     
  • brownrb

    brownrb - 2022-05-24

    It could be the accesspoint

    I say that because I use multiple accesspoints. On one of them, it locks out the mySQM+ controller when I forget to upload the wificonfig file and the controller then keeps rebooting.

    Then I correct and upload the file, I cannot reconnect at all. It takes 24 hrs before it will let the controller connect.

    Regards
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.