I am running into similar problems on a esp32-s2. As soon as I start to send UDP packets within short intervals, I get OSError 12 and random drop-outs.
I have not been able to debug the problem, e.g. I get the same results on different firmwares (both v1.16 and v1.17) and different code structures I am using.
: I was looking into memory issues of both micropython and the RTOS, which I can't see as the problem. See the output of these commands. I get a reliable fail after the 3rd UDP package sent within a very short period of time, independent of what I try.
Code: Select all
[(8148, 96, 0, 96), (179144, 58056, 32768, 56360), (14864, 208, 0, 208)]
1996176
S88 event with UDP package sent for: address 1 on Pin(2): False
[(8148, 96, 0, 96), (179144, 57756, 32768, 56184), (14864, 208, 0, 208)]
1995792
S88 event with UDP package sent for: address 2 on Pin(3): False
[(8148, 96, 0, 96), (179144, 57856, 32768, 56184), (14864, 208, 0, 208)]
1995408
S88 event with UDP package sent for: address 3 on Pin(4): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1995024
ERROR - S88 event with UDP package sent for: address 4 on Pin(5): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1994576
ERROR - S88 event with UDP package sent for: address 5 on Pin(6): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1994128
ERROR - S88 event with UDP package sent for: address 6 on Pin(7): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1993680
ERROR - S88 event with UDP package sent for: address 7 on Pin(8): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1993232
ERROR - S88 event with UDP package sent for: address 8 on Pin(9): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1992784
ERROR - S88 event with UDP package sent for: address 99 on Pin(10): False
[(8148, 96, 0, 96), (179144, 57904, 32768, 56184), (14864, 208, 0, 208)]
1992336
ERROR - S88 event with UDP package sent for: address 999 on Pin(11): False