Search found 27 matches

by akolodner25
Sat Aug 17, 2024 4:40 pm
Forum: ESP-IDF
Topic: Arduino-component Serial.print doesn't work over USB CDC (ESP32-S3)
Replies: 2
Views: 2413

Re: Arduino-component Serial.print doesn't work over USB CDC (ESP32-S3)

Yes, eventually somebody helped me! Just forgot to update here. The forum post with the solution is viewtopic.php?f=13&t=30926
by akolodner25
Sat Nov 18, 2023 8:02 pm
Forum: ESP32 Arduino
Topic: [Solved?] Connecting to multiple BLE devices fails only the first time
Replies: 1
Views: 5049

Re: Connecting to multiple BLE devices fails only the first time

The issue turned out to be the BLE client which was connected to the ESP32 while it attempted to connect to the peripherals. Although the ESP32 is theoretically capable of supporting 6 simultaneous connections, for some reason things break when the client is connected during the connection to the pe...
by akolodner25
Thu Nov 16, 2023 7:01 pm
Forum: ESP32 Arduino
Topic: [Solved?] Connecting to multiple BLE devices fails only the first time
Replies: 1
Views: 5049

[Solved?] Connecting to multiple BLE devices fails only the first time

ESP32S3, 16MB flash, ESP-IDF v4 with Arduino, Bluedroid My dual-mode BLE code should read MAC addresses sent by a BLE client, then form its own 5 BLE client connections to the given MAC addresses, which are MetaMotionS IMU devices. It finds the devices successfully. However, when trying to connect, ...
by akolodner25
Mon Oct 23, 2023 1:06 am
Forum: ESP32 Arduino
Topic: How to Figure out Who's Hogging Memory?
Replies: 2
Views: 2683

Re: How to Figure out Who's Hogging Memory?

I did this, and I did eventually find where the memory leak was. However, it was tricky, as my app is multithreaded so it was hard to know whether a memory allocation happened during a section of code in one thread, or somewhere else in another. Obviously you could add logging to every thread, but u...
by akolodner25
Sun Oct 22, 2023 7:32 pm
Forum: ESP-IDF
Topic: Reducing VFS/FATFS Memory Usage
Replies: 1
Views: 1099

Reducing VFS/FATFS Memory Usage

I'm using Arduino for ESP32, and the SD library. I cannot get the memory usage below 10KB (with max 1 file open). I found that this memory is allocated by esp_vfs_fat_register . Is there any way to reduce the amount of memory it uses? 10KB seems excessive for a single file. Unfortunately changing fi...
by akolodner25
Sun Oct 22, 2023 6:25 pm
Forum: ESP32 Arduino
Topic: How to Figure out Who's Hogging Memory?
Replies: 2
Views: 2683

How to Figure out Who's Hogging Memory?

The latest release of ESP-IDF has a heap memory debugging hook feature*, that allows you to run a function every time memory allocation is performed and succeeds. However, this feature does not exist in v4.4, which means Arduino can't use it, since that requires ESP-IDF v4.4. My problem is that I ha...
by akolodner25
Thu Aug 24, 2023 3:40 pm
Forum: ESP32 Arduino
Topic: How to preserve integrity of a log file on SD card?
Replies: 1
Views: 1247

How to preserve integrity of a log file on SD card?

I'm writing a log file to an SD card. Right now, each entry has a fixed length (16 bytes). 1 data point is generated every second, and they're appended to the file en masse every 30 seconds. My issue is that if the device is turned off during the SD write (which is not visible to the user), the data...
by akolodner25
Tue Aug 15, 2023 2:19 pm
Forum: ESP32 Arduino
Topic: How to know if WiFi antenna is totally off?
Replies: 2
Views: 1484

Re: How to know if WiFi antenna is totally off?

Great, thank you! Good to have confirmation :D
by akolodner25
Mon Aug 14, 2023 7:32 pm
Forum: ESP32 Arduino
Topic: BLE Client Disconnect Also Disconnects Server Connection
Replies: 4
Views: 3120

Re: BLE Client Disconnect Also Disconnects Server Connection

Nope. Still happening. Still no idea why. I've just been living with it for now. :cry:
by akolodner25
Mon Aug 14, 2023 7:31 pm
Forum: ESP32 Arduino
Topic: How to know if WiFi antenna is totally off?
Replies: 2
Views: 1484

How to know if WiFi antenna is totally off?

I'm making an application that can be in one of two modes: BLE or WiFi. Since it will need to switch while running, I need to make sure that the WiFi functionality is really fully disabled, so it doesn't interfere with BLE (or cause security risks!). I use the WiFi library, and I turn it on and off ...