Search found 8 matches

by pinazawa
Thu Jun 20, 2019 8:45 pm
Forum: ESP32 boards
Topic: A replacement for _uart.wait_tx_done in esp32
Replies: 5
Views: 4481

A replacement for _uart.wait_tx_done in esp32

Good Evening, Many libraries that implement UART comunication in the PyBoard relies on the use of machine.UART.wait_tx_done(ms) to do delays in half or full duplex communications. https://docs.pycom.io/firmwareapi/pycom/machine/uart.html But micropython image for ESP32 (as far as I was able to seach...
by pinazawa
Thu Jun 20, 2019 8:24 pm
Forum: ESP32 boards
Topic: upip micropython-os do no work properly
Replies: 13
Views: 7058

Re: upip micropython-os do no work properly

@pythoncoder @roberthh and everybody Thanks a lot for the help. You are awesome haha Since ampy also implements this, I found their rmdir in the source code and did some tweeks to adapt it. it also relies on recursive calls. I was a bit insecure whether or not i should use recursivity in my esp32 du...
by pinazawa
Thu Jun 20, 2019 1:10 am
Forum: ESP32 boards
Topic: upip micropython-os do no work properly
Replies: 13
Views: 7058

Re: upip micropython-os do no work properly

Hey! Thanks for the response. Sorry for the delay... In my OTA design, I was trying to remove a hole tree of directories. I used the shutil lib method called rmtree, but it depends on os.walk (maybe another unix port?) >>> shutil.rmtree('new_app') Traceback (most recent call last): File "<stdin>", l...
by pinazawa
Tue Jun 11, 2019 7:34 pm
Forum: ESP32 boards
Topic: RuntimeError: Wifi Unknown Error 0x0005
Replies: 3
Views: 4563

Re: RuntimeError: Wifi Unknown Error 0x0005

Hey,

I got this error too. Solved it by first activating the interface, then doing everything else.

import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect('<your ESSID>', '<your password>')
...

Hope it helps!
by pinazawa
Tue Jun 11, 2019 7:30 pm
Forum: ESP32 boards
Topic: ESP32 Socket error 23
Replies: 3
Views: 3836

Re: ESP32 Socket error 23

I Think I figured it out: My ESP32 was running out of RAM memory. I printed the memory at each iteraction, and each time the memory was critically low, my esp32 started to throw error 23. I eliminated many counters and other RAM consumers, and apparently it came back to normality. I will update here...
by pinazawa
Tue Jun 11, 2019 7:20 pm
Forum: ESP32 boards
Topic: upip micropython-os do no work properly
Replies: 13
Views: 7058

upip micropython-os do no work properly

Hello, Im working on a simple OTA update for ESP32, and realized that uos , that comes with esp32 official micropython (i'm using esp32-20190611-v1.11-44-g8b18cfede.bin) , is rather limited. I searched a lot, and found out that there is a way to put a way bigger and better os library using upip. So ...
by pinazawa
Thu Apr 25, 2019 7:19 pm
Forum: ESP32 boards
Topic: ESP32 Socket error 23
Replies: 3
Views: 3836

Re: ESP32 Socket error 23

Just adding some info:

I have GC enabled in the code, and I have tried opening the sock and closing it afterward, and also creating the socket and deleting it from memory (using del sockobj). Both way enter the OsError 23 in the loop, although they should only return ETIMEOUT or something similar...
by pinazawa
Thu Apr 25, 2019 7:08 pm
Forum: ESP32 boards
Topic: ESP32 Socket error 23
Replies: 3
Views: 3836

ESP32 Socket error 23

Hello everyone! I'm having an issue with an application I'm developing using an ESP32 WROOM. The problem is the following: I'm trying to open a socket and communicate to a remote server that is offline during a certain period of time (from 06 AM to 06 PM). When the server is online, everything works...