Search found 133 matches

by marcidy
Sat Aug 20, 2022 10:19 pm
Forum: ESP32 boards
Topic: ESP32-S2 MQTT subscriber "OSError: [Errno 113] ECONNABORTED"
Replies: 17
Views: 15173

Re: ESP32-S2 MQTT subscriber "OSError: [Errno 113] ECONNABORTED"

ECONNABORTED is raised deep in lwip, and it's not necessarily the devices' fault, it could be anyone along the network's fault. I was struggling with this two days ago, though my symptom was a working websocket client on my desktop connected to a websocket server running on an esp32. It was ping-pon...
by marcidy
Thu Aug 18, 2022 2:59 am
Forum: ESP32 boards
Topic: E (100167) uart: uart_set_pin(559): tx_io_num error
Replies: 2
Views: 4082

Re: E (100167) uart: uart_set_pin(559): tx_io_num error

no problems on v1.19.1 using an ESP32 devkit-c-v4

Code: Select all

>>> from machine import UART
>>> u = UART(1, tx=19, rx=35, baudrate=115200)
>>> 
by marcidy
Sat Jul 30, 2022 1:01 am
Forum: ESP32 boards
Topic: socket settimeout problem.
Replies: 10
Views: 7403

Re: socket settimeout problem.

wow I am having a hard time reading. I see the GitHub note in the thread. sorry for the noise
by marcidy
Fri Jul 29, 2022 11:15 pm
Forum: ESP32 boards
Topic: socket settimeout problem.
Replies: 10
Views: 7403

Re: socket settimeout problem.

I intended to look more into this, but so far haven't been able to pick up the debugger and get at it. I don't see anything raised on github for this, which i think is appropriate in this case. The issue is definitely at the C code level *somewhere*. The connect method is fairly transparent: STATIC ...
by marcidy
Wed Jul 27, 2022 4:09 pm
Forum: ESP32 boards
Topic: socket settimeout problem.
Replies: 10
Views: 7403

Re: socket settimeout problem.

There's so much that can go wrong with local networking, are you 100% sure you are routing correctly, and everything happening on the address is correct? @marcidy: The problem here is the duration of connect() when trying to reach an non-existing host. ha, missed that, thanks for clarifying
by marcidy
Wed Jul 27, 2022 1:56 pm
Forum: ESP32 boards
Topic: socket settimeout problem.
Replies: 10
Views: 7403

Re: socket settimeout problem.

Try this example as-is:
https://github.com/micropython/micropyt ... _client.py

There's so much that can go wrong with local networking, are you 100% sure you are routing correctly, and everything happening on the address is correct?
by marcidy
Sat May 21, 2022 4:32 pm
Forum: ESP32 boards
Topic: Bad flash
Replies: 6
Views: 3712

Re: Bad flash

I can't help with expereince but there are a number of comments in esp-idf code and docs about chip support. you might want to double check the docs/ code in that component to be sure they have support for your proposed chips. This has some references to sizes above 32Mb for example: https://docs.es...
by marcidy
Tue May 17, 2022 10:14 pm
Forum: ESP32 boards
Topic: OSError(84,)
Replies: 16
Views: 4919

Re: OSError(84,)

good luck, i may have given you a new headache rather than solved your current one, please test it carefully. i consider this extremely low level access, and a foot-gun. At the same time, if all you need is a bunch of bytes from memory, this can do it. i intended it more of a debugging tool, but a t...
by marcidy
Mon May 16, 2022 11:45 pm
Forum: ESP32 boards
Topic: OSError(84,)
Replies: 16
Views: 4919

Re: OSError(84,)

OK, thanks for clarifying. You can also use machine.mem32 (or the 8 bit, or 16 bit variants) to directly read bytes / half-words / words from memory directly. The syntax is >>> print("{:04X}".format(machine.mem32[0x3ff54900])) so you could loop over the region and read the bytes also. not sure if th...
by marcidy
Mon May 16, 2022 8:01 pm
Forum: ESP32 boards
Topic: OSError(84,)
Replies: 16
Views: 4919

Re: OSError(84,)

well, that's is some progress at least try: esp32.Partition.writeblocks(block_num, chunk) except: pass Are you sure this isn't swallowing a problem? i am relatively lenient on try/except, so i'm not arguing from a purist point of view on bare excepts. i would definitely want to know if my data was w...