Search found 22 matches

by FiwiDev
Mon Jul 29, 2024 10:19 pm
Forum: ESP32 Arduino
Topic: What do the acl_disconn_cmpl_stat error codes mean?
Replies: 4
Views: 1691

Re: What do the acl_disconn_cmpl_stat error codes mean?

gonna be a LOT more difficult to trace down the HCI error code, because no enum types are provided: https://github.com/espressif/esp-idf/blob/23e4823f17a8349b5e03536ff7653e3e584c9351/components/bt/host/bluedroid/stack/hcic/hcicmds.c#L192 You'd have to modify the code to add an assert and backtrace t...
by FiwiDev
Mon Jul 29, 2024 10:15 pm
Forum: ESP32 Arduino
Topic: What do the acl_disconn_cmpl_stat error codes mean?
Replies: 4
Views: 1691

Re: What do the acl_disconn_cmpl_stat error codes mean?

I am currently debugging an issue while trying to connect an ESP32 with a Meta Quest 3. The pairing is successful, but then is always terminated 3 seconds later. Setting the error log to verbose gives me: [ 41477][ I ][BluetoothSerial.cpp:609] esp_bt_gap_cb(): ESP_BT_GAP_ACL_DISCONN_CMPL_STAT_EVT A...
by FiwiDev
Tue Jul 23, 2024 4:44 pm
Forum: Hardware
Topic: ESP32-S3 input only pin?
Replies: 5
Views: 4623

Re: ESP32-S3 input only pin?

The S3 doesn't have input-only pins, so I think someone forgot to remove those texts. I'll file a ticket to get this fixed. Thanks for bringing this to our attention! Thanks for the clarification...but the docs still say "input only" in 2 places on this page (one shown here): Untitled.png https://d...
by FiwiDev
Mon Feb 26, 2024 2:54 pm
Forum: ESP32 Arduino
Topic: ESP32 with Ethernet and WiFiClientSecure
Replies: 3
Views: 10261

Re: ESP32 with Ethernet and WiFiClientSecure

You cannot use the WiFiClientSecure library with anything else--it's internally bound to the WiFi module. However, you can use a wrapper library that utilizes the exact same mbedTLS functionality under the hood--and assign it to any device library that implements Client. I personally suggest https:/...
by FiwiDev
Mon Feb 12, 2024 12:23 am
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Just for those who might want to tinker with the brown-out detector on their own, here is my sloppy test code for the ESP32-S2. LIKELY WILL NEED CHANGED IF YOU ARE USING A DIFFERENT ESP32 VARIANT! #include <Arduino.h> #include "hal/brownout_hal.h" // for adjusting brownout level #include "soc/rtc_cn...
by FiwiDev
Sun Feb 11, 2024 2:32 am
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

(5 farad 3.0v cap has an ESR of ~0.130R, whereas the 20 farad 3.0v cap has an ESR of ~0.050R.) Funny that a dedicated "5.5v 5F" ultracapacitor "module" costs 2-8x that of two discrete 2.7v 5F ultracaps though. Don't forget that 2x 5F, 0.13 Ohms in series is 2.5F, 0.26 Ohms. And you'd want to implem...
by FiwiDev
Sat Feb 10, 2024 8:44 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

@ Another potential option: "5V" ultracap (2x 2.5V in series) hooked up directly to 3V3 It is worth thinking about two 2.7v/3.0v ultracaps in series...that is, on the 5v rail , not the 3.3v rail. As 2x 5F capacitors are about the same cost as 1x 20F capacitor, that would be a win on the BOM level (i...
by FiwiDev
Sat Feb 10, 2024 2:24 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Start up and set the BOD to, say, 3.0V; when the BOD triggers (interrupt), do your shutdown/cleanup routine, then set BOD to 3.3V to reset the chip and hold it there until power comes back. If only the brown-out peripheral worked that way, I'd be in tall cotton. It's how I hoped/expected it to work...
by FiwiDev
Fri Feb 09, 2024 11:52 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

Another potential option: "5V" ultracap (2x 2.5V in series) hooked up directly to 3V3 That doesn't solve the problem of the ESP32 brown-out module being effectively useless. (Also worth noting that boost converter ICs are significantly cheaper than ultracaps: TPS61023 with true disconnect functiona...
by FiwiDev
Fri Feb 09, 2024 4:52 pm
Forum: ESP-IDF
Topic: ESP32-S2: need to adjust Brown Out Level at runtime
Replies: 15
Views: 6497

Re: ESP32-S2: need to adjust Brown Out Level at runtime

I've got a similar project, thanks for the idea about enabling/disabling the converter. In my case I think I'm going to have to add an external reset button. 15F of super-capacitor decays very slowly after the ESP32 shuts down, maybe hours around 2 volts. It prevents a normal restart when the power...