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

    Uasyncio Support

    Scheduled Pinned Locked Moved Comments & Feedback
    uasynciowipy3.0asynciomicropythonsockets
    13 Posts 6 Posters 2.5k Views 7 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.
    • robert-hhR Offline
      robert-hh @jmarcelino
      last edited by

      @jmarcelino There is basic supprot for uasyncio in 1.17.3.b1 and some earlier versions. However that does not match the state of uasyncio in the micropython.org branch.
      Interesting, that 1.9.3 is about to be integrated. Micropython.org will advance to 1.9.4 in the next days, I heard.

      D 1 Reply Last reply Reply Quote 2
      • D Offline
        donikuy @robert-hh
        last edited by

        @robert-hh Thank you.

        1 Reply Last reply Reply Quote 0
        • D Offline
          donikuy @jmarcelino
          last edited by

          @jmarcelino Thank you. I look forward to that.

          1 Reply Last reply Reply Quote 0
          • S Offline
            soulsurfer @jmarcelino
            last edited by

            @jmarcelino I'm new here, so this may count as a dumb question, but when do you expect your testing to be complete and 1.9.3 to become available?

            Do you perform some sort of "public beta test" before an official release?

            J 1 Reply Last reply Reply Quote 1
            • J Offline
              jmarcelino @soulsurfer
              last edited by

              @soulsurfer
              Not a dumb question at all. Historically there haven't been a public beta tests before but I'm not sure what are the plans for this one. Currently it's in internal testing only.

              robert-hhR S 2 Replies Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @jmarcelino
                last edited by

                @jmarcelino Sometimes it seems that well known software companies do the public large scale beta test by calling it a release.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  timh @jmarcelino
                  last edited by

                  @jmarcelino I am really looking forward to this. uasyncio would seem a much better tool for addressing a range of desired of behaviour on these devices without lot's of threads/timers/mutex's etc...

                  T

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    soulsurfer @jmarcelino
                    last edited by

                    You are very kind @jmarcelino!

                    Another possibly dumb question, bearing in mind that I've just parachuted in here from the "C++ embedded Linux" world.

                    In an endeavour to discover the current state of play with uasyncio I selected the "development" option in the latest version of Pycom Firmware Update. That seemed to deliver the "stable" version though.

                    Then I headed over to GitHub, cloned pycom-micropython-sigfox and built my own firmware. uasyncio still didn't seem to be anywhere to be seen. A bit more poking around on GitHub revealed that it could be found in micropython-lib instead. Rather than open that can of worms at this juncture I thought I'd seek advice first.

                    Is it likely to be worth my while experimenting with incorporating that version of asyncio into pycom-micropython-sigfox, or would I be better off waiting for you guys to do the job properly? If the latter, how long do you think it will take before that process is complete?

                    robert-hhR 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @soulsurfer
                      last edited by

                      @soulsurfer That's the lib which is existing, from the genuine micropython in the micropython.org branch. You may use it, it requires uasyncio, uasyncio.core, uasyncio.queues and uasyncio.synchro.
                      In uasyncio.core you have to make a small change in line 73: in the call to ticks_diff() you have to swap the parameters.
                      I did just make a few basic trials, like running a coroutine.

                      M 1 Reply Last reply Reply Quote 1
                      • M Offline
                        martijnthe @robert-hh
                        last edited by

                        @donikuy @robert-hh another thing to watch out for:
                        ticks_diff() does not handle wrap-arounds, so after 12.42 days of uptime the scheduler will malfunction in very weird ways!
                        https://github.com/pycom/pycom-micropython-sigfox/issues/231

                        robert-hhR 1 Reply Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @martijnthe
                          last edited by

                          @martijnthe I have to check that again. As far I recalled, I tested the wrap-around situations.

                          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