Search found 712 matches

by kevinkk525
Tue Apr 28, 2020 6:53 am
Forum: ESP8266 boards
Topic: SOLVED: File download interrupted by RTOS message
Replies: 8
Views: 359

Re: File download interrupted by RTOS message

I'm sure it's not the message itself that is interrupting your download. The message indicates that the wifi reconnects during your download and therefore the download fails. I don't know the reason for this. But you could try disabling wifi sleep according to https://docs.micropython.org/en/latest/...
by kevinkk525
Mon Apr 27, 2020 9:02 pm
Forum: ESP8266 boards
Topic: Get return elements from task async function
Replies: 15
Views: 601

Re: Get return elements from task async function

Yes, that is the workround. You can't install V3 by copying Python files because it relies on C modules. You have to have a firmware build which supports it. The c file is optional last time I checked and it works in Unix by copying the files. Of course it would impact performance and ram usage if ...
by kevinkk525
Mon Apr 27, 2020 12:33 pm
Forum: ESP8266 boards
Topic: Get return elements from task async function
Replies: 15
Views: 601

Re: Get return elements from task async function

Yes, that is the workround. You can't install V3 by copying Python files because it relies on C modules. You have to have a firmware build which supports it. The c file is optional last time I checked and it works in Unix by copying the files. Of course it would impact performance and ram usage if ...
by kevinkk525
Sun Apr 26, 2020 6:25 pm
Forum: ESP8266 boards
Topic: Get return elements from task async function
Replies: 15
Views: 601

Re: Get return elements from task async function

For retrieve uasyncio v3.0 lib version, i can download it at https://github.com/micropython/micropyt ... d/uasyncio) and put inside "/lib/" directory as module on ESP8266.. Or frozen it before compile new custom firmware, right? This might be one way but the better way would be to enable uasyncio b...
by kevinkk525
Sun Apr 26, 2020 6:23 pm
Forum: ESP8266 boards
Topic: Get return elements from task async function
Replies: 15
Views: 601

Re: Get return elements from task async function

@kevinkk525 I have but I don't know what these sizes tell you about fitting on small boards as I have no experience of them: Not completely sure but I always assumed that the size of firmware-combined.bin is the actual firmware size. The difference between the module size and the firmware would be ...
by kevinkk525
Sun Apr 26, 2020 5:46 am
Forum: ESP8266 boards
Topic: Get return elements from task async function
Replies: 15
Views: 601

Re: Get return elements from task async function

You can try to build the firmware yourself with uasyncio included.
My firmware builds were always a lot smaller than 1M so I'm not sure why uasyncio would be dropped for the 1M firmware but I haven't yet built a firmware for the esp8266 with the new uasyncio.
by kevinkk525
Sat Apr 25, 2020 5:16 pm
Forum: Other Boards
Topic: [Windows / Linux] Error: 'module' object has no attribute 'Pin'
Replies: 4
Views: 317

Re: [Windows / Linux] Error: 'module' object has no attribute 'Pin'

The Unix port of micropython does not have that because it has no hardware pins.
If you want to use the Unix build for debugging, you will have to provide a "fake" machine module implementation.
by kevinkk525
Fri Apr 17, 2020 5:53 am
Forum: General Discussion and Questions
Topic: Can there be 2 python programs running at the same time?
Replies: 8
Views: 446

Re: Can there be 2 python programs running at the same time?

Easy example: mqtt uses sockets but multiple asyncio tasks can send messages. Each send operation might need multiple steps with "await" in between but the currently sending task has to prevent other asyncio tasks from using the socket until the transmission is finished. Therefore a lock is used.
by kevinkk525
Thu Apr 16, 2020 7:30 am
Forum: General Discussion and Questions
Topic: Multiple Onewire bus connections
Replies: 4
Views: 203

Re: Multiple Onewire bus connections

ajocius wrote:
Thu Apr 16, 2020 5:48 am
However, once number of devices increased to 11 I started to get no readings from several sensors.
Try pull-up with only ~1.3k