Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    gpy wlan connect problem after deepsleep

    Scheduled Pinned Locked Moved GPy
    4 Posts 2 Posters 106 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kjm
      last edited by

      Even though I'm careful to wlan.disconnect() and wlan.deinit() prior to a 60s deepsleep my gpy won't reconnect with the new wlan=WLAN() I create on waking up, I have to do a machine.reset() instead. Have I run foul of some sort of wifi lease in the router I'm trying to connect to? Any thoughts on how to get a new connection after a deepsleep without a reset?

      1 Reply Last reply Reply Quote 0
      • K Offline
        kjm
        last edited by kjm

        Further to this problem with wlan after a deepsleep. The gpy in question is using 1.20.1.r1 with littleFS. After I reflashed the same firmware with FAT, wlan connections are possible after a deepsleep. So something about littleFS prevents wlan connections after a deepsleep.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jcaron @kjm
          last edited by

          @kjm or it might be some leftover configuration or other file that caused and issue and got deleted when you changed the file system.

          You may want to re-try with littleFS to confirm whether that is indeed the case.

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            kjm @jcaron
            last edited by kjm

            @jcaron You're right! Put it back to littleFS & now I can get a wlan connection after a deepsleep. Troubles me, given that I do a full flash erase with pycom-fwtool-cli.exe -p COM3 erase_all everytime I change the file system. But there must have been something lurking in flash blocking wlan connections after a deepsleep.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom