Search found 5 matches

by lrb@lrb.no
Thu Jan 21, 2021 4:32 pm
Forum: MicroPython pyboard
Topic: Threading on PyBoard 1.1
Replies: 7
Views: 3273

Re: Threading on PyBoard 1.1

Thank you Peter,
So 8 functions with stream mechanism is your recommendation.
I'll give it a try :)
/Lars
by lrb@lrb.no
Thu Jan 21, 2021 11:17 am
Forum: MicroPython pyboard
Topic: Threading on PyBoard 1.1
Replies: 7
Views: 3273

Re: Threading on PyBoard 1.1

Thank you pythoncoder! I've done a simple test of the Queue implementation and it seems to be working very well! A question, might be a little off topic: Currently I have four uart with external electronics for RS232, and I need to read and write to all. In my python program for rpi I used two class...
by lrb@lrb.no
Wed Jan 20, 2021 10:41 am
Forum: General Discussion and Questions
Topic: Something like Threading/Queue in MicroPython?
Replies: 8
Views: 10871

Re: Something like Threading/Queue in MicroPython?

lukesky333 wrote:
Wed Mar 13, 2019 8:00 am
I want to read data from two serial connections simulatneously.
Did you solve this? I'm looking into a similar task: reading and writing four serial ports, having a main handler that responds to received data and decides where to send the data.
/Lars
by lrb@lrb.no
Wed Jan 20, 2021 9:55 am
Forum: MicroPython pyboard
Topic: Threading on PyBoard 1.1
Replies: 7
Views: 3273

Re: Threading on PyBoard 1.1

Thank you Jimmo!
I'll look into that.
The reasons for using multiprocessing in my original program for RPI was the possibility to use Queues.
If using uasyncio, can you give a hint how to implement something similar?
/Lars
by lrb@lrb.no
Tue Jan 19, 2021 12:03 pm
Forum: MicroPython pyboard
Topic: Threading on PyBoard 1.1
Replies: 7
Views: 3273

Threading on PyBoard 1.1

Hi, I have a PyBoard 1.1 and I plan to use this with a multithreading program The program has been developed on a Rpi and is working well on rpi. My PyBoard: MicroPython v1.13 on 2020-09-02; PYBv1.1 with STM32F405RG I see there are one firmware download marked "threading: v1.13-274-g49dd9ba1a (lates...