@mark.lamneck Thanks for posting your findings. Posting on the ESP32 forums more often than not feels like shouting into a void--so thanks for posting what you found.
I definitely agree that the RS-485 support in the ESP32 infra is quite half-baked, at least when compared to other platforms--but as ...
Search found 24 matches
- Wed Oct 29, 2025 9:52 pm
- Forum: Hardware
- Topic: Uart in 485 mode
- Replies: 2
- Views: 3256
- Sat Dec 14, 2024 5:55 pm
- Forum: General Discussion
- Topic: TX UART open drain mode
- Replies: 3
- Views: 3449
Re: TX UART open drain mode
#include "hal/gpio_hal.h"
gpio_hal_context_t hal = {.dev = GPIO_HAL_GET_HW(GPIO_PORT_0)};
gpio_hal_od_enable(&hal, tx_io_num);
I'm working on implementing half-duplex bidirectional UART communication on a single GPIO line with an original ESP32. Setup fixes for single-line UART have been ...
- Mon Jul 29, 2024 10:19 pm
- Forum: ESP32 Arduino
- Topic: What do the acl_disconn_cmpl_stat error codes mean?
- Replies: 4
- Views: 2783
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 ...
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 ...
- Mon Jul 29, 2024 10:15 pm
- Forum: ESP32 Arduino
- Topic: What do the acl_disconn_cmpl_stat error codes mean?
- Replies: 4
- Views: 2783
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 ...
- Tue Jul 23, 2024 4:44 pm
- Forum: Hardware
- Topic: ESP32-S3 input only pin?
- Replies: 5
- Views: 7005
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 ...
- Mon Feb 26, 2024 2:54 pm
- Forum: ESP32 Arduino
- Topic: ESP32 with Ethernet and WiFiClientSecure
- Replies: 3
- Views: 13911
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 ...
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 ...
- Mon Feb 12, 2024 12:23 am
- Forum: ESP-IDF
- Topic: ESP32-S2: need to adjust Brown Out Level at runtime
- Replies: 15
- Views: 12074
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 ...
#include <Arduino.h>
#include "hal/brownout_hal.h" // for adjusting brownout level
#include "soc/rtc ...
- Sun Feb 11, 2024 2:32 am
- Forum: ESP-IDF
- Topic: ESP32-S2: need to adjust Brown Out Level at runtime
- Replies: 15
- Views: 12074
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 ...
- Sat Feb 10, 2024 8:44 pm
- Forum: ESP-IDF
- Topic: ESP32-S2: need to adjust Brown Out Level at runtime
- Replies: 15
- Views: 12074
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 ...
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 ...
- Sat Feb 10, 2024 2:24 pm
- Forum: ESP-IDF
- Topic: ESP32-S2: need to adjust Brown Out Level at runtime
- Replies: 15
- Views: 12074
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 ...