Search found 39 matches

by ltmerlin
Sun Mar 29, 2020 12:54 pm
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamReader not found ?
Replies: 17
Views: 7067

Re: uasyncio - StreamReader not found ?

Yes in the tagged release v1.12 StreamReader and StreamWriter are present, but I am talking about the latest Micropython commit where PR5332 ( https://github.com/micropython/micropython/pull/5332 ) was merged. And there is no StreamReader nor StreamWriter. Is it the intention to leave it out in the ...
by ltmerlin
Sat Mar 28, 2020 7:27 pm
Forum: Programs, Libraries and Tools
Topic: multi uart commuication via asyncio
Replies: 8
Views: 4367

Re: multi uart commuication via asyncio

Thank you Peter for your reply. I will stick with your fast_io variant for now. I had hoped that the new asyncio version had solved the slow I/O. I am planning a major revamp of my async repo to accommodate the new version, but it will take a few weeks to get this done. Most of the tutorial examples...
by ltmerlin
Sat Mar 28, 2020 4:34 pm
Forum: Programs, Libraries and Tools
Topic: multi uart commuication via asyncio
Replies: 8
Views: 4367

Re: multi uart commuication via asyncio

Thank you for your answer tve!
I'm using the classes StreamReader(uart, {}) and StreamWriter(uart) as seen in Peter Hinch's tutorial code: https://github.com/peterhinch/micropyth ... r/auart.py. Any idea how this would translate into the new Asyncio version?
by ltmerlin
Sat Mar 28, 2020 10:24 am
Forum: Programs, Libraries and Tools
Topic: multi uart commuication via asyncio
Replies: 8
Views: 4367

Re: multi uart commuication via asyncio

Concurrent reading and writing to two uarts is easy using the stream mechanism but you'll have to develop your own protocol. If images are of fixed size this should help. I think you'll need to run code on the OpenMV boards to determine when an updated image needs to be sent to the Pyboard. Your pr...
by ltmerlin
Sat Mar 28, 2020 10:14 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - StreamReader not found ?
Replies: 17
Views: 7067

Re: uasyncio - StreamReader not found ?

I built the latest Micropython with the new uasyncio.
Can we still use uasyncio.StreamReader(uart) or uasyncio.StreamWriter(uart, {}) ? Or what is the right way to do this with the new Stream class?
by ltmerlin
Wed Feb 19, 2020 2:22 pm
Forum: Other Boards
Topic: nrf52480 build and flash
Replies: 7
Views: 7864

Re: nrf52480 build and flash

Great, how did you fix it? Inside your Micropython git clone directory create a new board directory for the custom port named NRF52840: cd /micropython/ports/nrf/boards mkdir NRF52840 containing: /* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * ...
by ltmerlin
Wed Feb 19, 2020 10:56 am
Forum: Other Boards
Topic: nrf52480 build and flash
Replies: 7
Views: 7864

Re: nrf52480 build and flash

Thanks for your answer, I have managed to built and flash the Adafruit nrf52480 with micropython instead of circuitpython. (Used the https://github.com/Microsoft/uf2/blob/master/utils/uf2conv.py to created the uf2 after using the regular makefile ) Now before starting with bluetooth programming I ha...
by ltmerlin
Tue Feb 18, 2020 3:58 pm
Forum: Other Boards
Topic: nrf52480 build and flash
Replies: 7
Views: 7864

nrf52480 build and flash

Has anyone succeeded in building and flashing Micropython for the Adafruit Feather nrf52480? So far there is no board in the ports. I successfully built micropython for the pca10056 (since the Adafruit Feather nrf52480 is based on this one) make BOARD=pca10056 SD=s140 sd Flashing the device using th...
by ltmerlin
Thu Jan 30, 2020 9:49 pm
Forum: Programs, Libraries and Tools
Topic: Control exact polling rates using uasyncio
Replies: 16
Views: 6752

Re: Control exact polling rates using uasyncio

Thank you Kevin for this info! I will look into the uart implementation in the firmware and try to find the size. A ring-buffer seems a good choice, but I’m not sure how I still can be certain that we won’t access fragments of the buffer at the same time. The piece of memory holding the pointer is s...