Search found 24 matches

by Snedig
Wed Nov 29, 2023 3:58 pm
Forum: ESP-IDF
Topic: external 32khz crystal
Replies: 5
Views: 14246

Re: external 32khz crystal

Sorry for necroing this thread, but I was wondering whether it is possible to generate such a crystal output to GPIO to another pin? We are having some crystal troubles, but our units are fully potted, so GPIO25 is not available. I could ideally use pin 16, 17 or 23, but I also have access to pins 0...
by Snedig
Mon Jun 27, 2022 5:25 pm
Forum: ESP-IDF
Topic: esp_http_client - How to POST Chunked Data?
Replies: 3
Views: 8707

Re: esp_http_client - How to POST Chunked Data?

I wanted to post a reply for anyone else doiung this as I had a lot of trouble with sending chunked encoding, so hopefully it will help someone else out:) The issue that was tripping me up was that my transfers all seemed to fail, and it turns out I was sending the length as decimal numbers - they n...
by Snedig
Mon Aug 09, 2021 5:52 am
Forum: ESP-MDF
Topic: LR mode in mesh
Replies: 4
Views: 26301

Re: LR mode in mesh

I am using LR mode in mesh, I initialize it in the mesh block after wifi_init like so: wifi_init_config_t config = WIFI_INIT_CONFIG_DEFAULT(); ESP_ERROR_CHECK(esp_wifi_init(&config)); ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &ip_event_handler, NULL)); ESP_ERROR_CHECK...
by Snedig
Wed Apr 28, 2021 12:12 pm
Forum: ESP-IDF
Topic: Clone running firmware over mesh
Replies: 6
Views: 7176

Re: Clone running firmware over mesh

Hi, Sorry about the late reply, I hadn't checked the forum for a while. My code for the checking is this: for (i = 0; i <= last_chunk_no; i++) { if (mesh_ota_log[i].written) { ESP_ERROR_CHECK_WITHOUT_ABORT(esp_partition_read(ota_partition, OTA_CHUNK_SIZE * i, &check_ota_buffer, mesh_ota_log[i].chunk...
by Snedig
Thu Apr 22, 2021 6:49 am
Forum: ESP-IDF
Topic: ESP-MESH creating orphaned network segments
Replies: 1
Views: 1892

ESP-MESH creating orphaned network segments

Hi, I am using ESP WIFI MESH for an autonomous system with 83 nodes. I do not have physical access to the system, but I have made an OTA function that works fairly well, so I am able to remotely update the software. The network is set up with a fixed root and no router, and is using self organized. ...
by Snedig
Tue Mar 23, 2021 11:12 pm
Forum: ESP-IDF
Topic: ESP-MESH without a router
Replies: 12
Views: 14421

Re: ESP-MESH without a router

For the tree topology, I am pretty sure I went with an unmodded example and it worked as expected. Here's my entire code for MESH init that works for me with no router settings, beware, there may be some surplus stuff that isn't necessary, and it's no comment country, but it might give you a tip. My...
by Snedig
Thu Mar 18, 2021 7:46 am
Forum: ESP-IDF
Topic: ESP MESH invalid state seems to cause lockup
Replies: 6
Views: 8075

ESP MESH invalid state seems to cause lockup

Hi, I've been using ESP MESH for some time, but recently a strange problem has surfaced. Sometimes my devices get hung up with the following messages: I (19:45:13.501) mesh_net: <GOT ROOT ADDRESS> addr:f0:08:d1:85:ea:ed I (12983903) mesh: 5080<assoc>parent layer:1, channel:1, rssi:-78, assoc:1, rssi...
by Snedig
Mon Mar 15, 2021 4:02 pm
Forum: ESP-IDF
Topic: ESP-MESH without a router
Replies: 12
Views: 14421

Re: ESP-MESH without a router

Hi Magnetuz, I found out that the manual networking does not work in chain topology, the networking IE info that is broadcast from the AP's is not the same size as for tree. I've made a Github issue for this. For me, manual networking did work in tree topology, but for chain I had to do auto network...
by Snedig
Sat Jan 02, 2021 7:06 am
Forum: ESP-IDF
Topic: Memory leak in mesh_stop()?
Replies: 1
Views: 2799

Re: Memory leak in mesh_stop()?

Here is a deeper trace of the queue that is never freed: 92 bytes (@ 0x3ffe4624) allocated CPU 0 ccount 0xf05736e0 caller 0x40090a9e:0x40090d4b:0x400f2a54:0x40113def:0x400ded6e:0x400db4d0 0x40090a9e: xQueueGenericCreate at C:/Users/prebe/esp-idf/esp-idf/components/freertos/queue.c:407 0x40090d4b: xQ...
by Snedig
Fri Jan 01, 2021 5:03 pm
Forum: ESP-IDF
Topic: Memory leak in mesh_stop()?
Replies: 1
Views: 2799

Memory leak in mesh_stop()?

HI, I've been working with ESP-MESH in ESP-IDF for some time, but I'm having a hard time because I need to turn off the mesh periodically (I only synchronize with the mesh a couple of times a day). Originally I tried to simply do: Disconnect: ESP_ERROR_CHECK_WITHOUT_ABORT(esp_mesh_set_self_organized...