[W600-PICO] Issues with MicroPython v1.20.0 #12367
-
Hi, I have updated Wemos W600-PICO to the latest available version from https://github.com/robert-hh/Shared-Stuff/blob/master/w600_firmware/wm_w600_WEMOS_W600.fls built by @robert-hh (thank you, again, for this!) I have performed the updating routine as usual, erased and then flashed the module using w600tool.py. The firmware reports on the startup:
I tried to erase again, re-flash, it didn't help. I tried on a couple of W600-PICO, the same behavior. Interesting, I can upload & download files without any problem, and test programs run properly as well, except the network, though. Not sure if it relates to this issue or not, but the module can't connect to my home network anymore. There is a simple test that doesn't work, connect() never returns:
It never returns because it is waiting for the connections status to be connected, but it doesn't happen. To get more information what is going on, I wrote this code:
When this code is running, it is printing the status of the connection. As expected, it is a series of code 1 ("connecting in progress"), but then suddenly it returns code 4 ("other problems"). See codes here: https://docs.micropython.org/en/latest/library/network.WLAN.html#network.WLAN.status
It takes 15-25 seconds to get this error. What is weird: as soon as I run this code, I can see a new device connected to my router (in its admin console), and the router assigns a proper IP, and it shows an excellent signal. After the code 4 is printed, the device is marked as disconnected on the router's list. I tried on a couple of W600-PICO, the same behavior. Also, I have tried the same code on ESP32, ESP8266 (S2, D1 mini, etc.), Micropython v1.20, everything works as expected. If I use AP on W600-PICO, it works just fine. I can configure it, I see it in available WiFi networks, I can connect to it, no problem whatsoever. So, it seems the network does work on the module, but for some reason when it connects as STA to the router, it doesn't realize that the connection has been already established (and waiting for something else from the router?). MP v1.19_ doesn't report any issues on the same hardware. The question is: has anyone else faced these issues? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 6 replies
-
I can confirm the issue. Reason: Due to recent updates of the firmware base the code size increased and now file system and code overlap. I will push new versions during the day with smaller code (by removing the frozen python script pye.py). |
Beta Was this translation helpful? Give feedback.
-
The firmware files are updated. In my test here there error is gone, and connecting WiFi works well. |
Beta Was this translation helpful? Give feedback.
-
This error message about the file system should not appear. I do not see it here on my Wemos W600 board with the same firmware than your's. You could try to re-create the file system with:
This code is usually executed on boot when no file system is found or cannot be mounted. |
Beta Was this translation helpful? Give feedback.
-
I tried to replicate youir observation. Took a WEMOS W600 Pico, uploaded the file wm_w600_WEMOS_W600.fls from the web site using w600tool.py with the Linux command line: Running Some figures: |
Beta Was this translation helpful? Give feedback.
-
As part of the recent firmware updates, must of the 'u'-prefixed modules lost their 'u'- So |
Beta Was this translation helpful? Give feedback.
-
Found the respective commit and the change needed to make Edit. Thanks for using, trying and testing. That reveals open topics and is very helpful. |
Beta Was this translation helpful? Give feedback.
-
Have you noted that there is much more memory available now? That might be another reason to change to 1.20. (with the W600). |
Beta Was this translation helpful? Give feedback.
-
Oh, yes, the available memory is twice as much with v1.20:
This is nice. For my needs, it means a longer time to keep collected data before transmission. |
Beta Was this translation helpful? Give feedback.
The firmware files are updated. In my test here there error is gone, and connecting WiFi works well.