Search found 216 matches

by tve
Sun May 31, 2020 6:08 pm
Forum: General Discussion and Questions
Topic: Avoiding "async def" creep
Replies: 21
Views: 15242

Re: Avoiding "async def" creep

Good luck to you. I sincerely hope others are not led into fear of async by this. It is easy stuff; LOL. Async is anything but easy. There are lots of issues around atomicity, about deadlock, and about resource consumption (to name 3 topics) that are anything but simple. You also say that asyncio i...
by tve
Sat May 30, 2020 5:13 pm
Forum: ESP32 boards
Topic: Why is software I2C faster than hardware I2C?
Replies: 3
Views: 4171

Re: Why is software I2C faster than hardware I2C?

The hardware i2c just has higher per transaction overhead...
by tve
Sat May 30, 2020 5:04 pm
Forum: General Discussion and Questions
Topic: _thread dies when loosing network connection and socket throws oserror - GIL deadlock?
Replies: 6
Views: 3455

Re: _thread dies when loosing network connection and socket throws oserror - GIL deadlock?

Do you have a small complete example to reproduce the problem? I'd be interested in looking into it.
by tve
Sat May 30, 2020 4:49 pm
Forum: General Discussion and Questions
Topic: ram needed during import far exceeds ram needed after
Replies: 4
Views: 2355

Re: ram needed during import far exceeds ram needed after

Which platform are you using?
Which version of MicroPython?
Can you provide a transcript showing the problem and error message?
by tve
Wed May 27, 2020 3:00 pm
Forum: ESP32 boards
Topic: Why is software I2C faster than hardware I2C?
Replies: 3
Views: 4171

Re: Why is software I2C faster than hardware I2C?

I can't tell from your message what you're measuring when you speak about speed. Did you hook up an oscilloscope and measure the clock frequency or do you measure elapsed time for a specific set of I2C transactions? If the latter, please post your test code.
by tve
Wed May 27, 2020 5:20 am
Forum: General Discussion and Questions
Topic: _thread module status/documentation?
Replies: 6
Views: 4054

Re: _thread module status/documentation?

The threads are supported but there's very little around them. I believe that almost everyone is focused on asyncio, which is a much better way to do most of the things threads are used for, IMHO. My experience with uasyncio is fairly limited, could you shed a light on why asyncio is better than th...
by tve
Wed May 27, 2020 3:57 am
Forum: General Discussion and Questions
Topic: _thread module status/documentation?
Replies: 6
Views: 4054

Re: _thread module status/documentation?

The threads are supported but there's very little around them. I believe that almost everyone is focused on asyncio, which is a much better way to do most of the things threads are used for, IMHO. I've been toying with using threads to solve very focused problems, such as a TLS connect blocking for ...
by tve
Tue May 26, 2020 4:16 pm
Forum: Programs, Libraries and Tools
Topic: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT
Replies: 10
Views: 8635

Re: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT

A very nice project! I especially like the OTA over mqtt option, something my project is definitely missing on the esp32. Thanks! The OTA puts a lot of stress on everything, in particular memory. It ends up being close to 1000 1400-byte messages... There's a definite reliability/speed tradeoff with...
by tve
Tue May 26, 2020 3:55 pm
Forum: Programs, Libraries and Tools
Topic: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT
Replies: 10
Views: 8635

Re: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT

You did it! Congratulations TVE! I will be putting this through the paces this week for sure. This is something I really wanted for a long time. I've been scrapping together other things in order to make it work but now, can't wait to try this out. Again, thank you! :D Thanks, let me know about the...
by tve
Tue May 26, 2020 3:48 pm
Forum: Programs, Libraries and Tools
Topic: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT
Replies: 10
Views: 8635

Re: MQBoard - Micro-Framework for MicroPython Boards Managed via MQTT

I have been avoiding MQTT due to network reliability risk of having to relay on single WiFi AP and single non redundant broker. You shouldn't be conflating MQTT and WiFi. Yes, a single Wifi access point is a single point of failure, but with the esp32, unless you add bluetooth, that's regardless of...