Search found 210 matches

by tve
Thu Jun 25, 2020 12:18 am
Forum: ESP32 boards
Topic: wifi latency
Replies: 5
Views: 210

Re: wifi latency

pythoncoder wrote:
Wed Jun 24, 2020 11:04 am
Do I take it that it has run for 2.5 weeks without a crash/WDT reboot?
Yup, uptime on both the reliability test baord and my weather station (which has much more activity but was last reprogrammed a day later) has been perfect so far.
by tve
Mon Jun 22, 2020 4:40 pm
Forum: ESP32 boards
Topic: wifi latency
Replies: 5
Views: 210

Re: wifi latency

I suspect that there are multiple issues you may be facing. I've been running an MQTT reliability test for 2-1/2 weeks now that sends an MQTT message round-trip over a TLS connection. So far it has logged 50 reconnections and exchanged over 2 million round-trip messages. I see a couple of round-trip...
by tve
Sun Jun 21, 2020 7:15 am
Forum: General Discussion and Questions
Topic: @micropython.viper causes ImportError
Replies: 4
Views: 154

Re: @micropython.viper causes ImportError

Can you please provide a complete example to reproduce the problem? I tried the following on an esp32 running MP 1.12: > cat test.py from machine import SPI, VSPI, Pin class Display(object): self.spi = SPI(VSPI, 40000000, sck=Pin(18), mosi=Pin(23), miso=Pin(19)) @micropython.viper def write_data(sel...
by tve
Sun Jun 21, 2020 7:09 am
Forum: ESP32 boards
Topic: modem sleep
Replies: 5
Views: 195

Re: modem sleep

You may be misunderstanding the way github works. The link I posted is to the pull request to incorporate the changes I made into the mainline. The changes are made in a branch on my fork, which is the normal way to develop new stuff. All this being said, the pull request is a bit stalled for a vari...
by tve
Sat Jun 06, 2020 3:44 pm
Forum: General Discussion and Questions
Topic: Avoiding "async def" creep
Replies: 21
Views: 1402

Re: Avoiding "async def" creep

You can't make a silk purse out of a sow's ear Anyway - by now I may have bored enough people with my pedantic posts. Still, I hope we can at least agree that the current situation is unfortunate: we have slow blocking code which can't be made concurrent (open/read/write/etc) and we have coroutines...
by tve
Wed Jun 03, 2020 6:10 am
Forum: Pyboard D-series
Topic: How to troubleshoot crashing PYBD
Replies: 2
Views: 131

Re: How to troubleshoot crashing PYBD

At risk of "teaching granny to suck eggs" if code is locking up solid the only recourse I've found is the old-fashioned way: lots of print statements so you can trace execution leading up to the crash, and/or disabling chunks of code in turn until you find the culprit. I was lucky, my MQTT micro-fr...
by tve
Tue Jun 02, 2020 10:52 pm
Forum: Pyboard D-series
Topic: How to troubleshoot crashing PYBD
Replies: 2
Views: 131

How to troubleshoot crashing PYBD

The PYBD is crashing on me and all I get is an error from the terminal program that USB (/dev/ttyACM0) is dead. E.g. SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?) How do I find out where the PYBD crashed? Something like a bac...
by tve
Tue Jun 02, 2020 8:12 am
Forum: General Discussion and Questions
Topic: Avoiding "async def" creep
Replies: 21
Views: 1402

Re: Avoiding "async def" creep

A case like we are discussing would put the onus on the user programmer to ensure that the "callback" terminated quickly. With these objects being separate, developers can give user a "nudge" towards fast termination by specifying a callback. Thanks for the thoughts. I went back and forth in my lib...