Uasyncio Support
-
@robert-hh Thank you.
-
@jmarcelino Thank you. I look forward to that.
-
@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?
-
@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. -
@jmarcelino Sometimes it seems that well known software companies do the public large scale beta test by calling it a release.
-
@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
-
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?
-
@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. -
@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 -
@martijnthe I have to check that again. As far I recalled, I tested the wrap-around situations.
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