Search found 11 matches

by JL1946
Sun Dec 31, 2023 8:02 pm
Forum: ESP-MDF
Topic: problem with simple esp_mesh_send command
Replies: 6
Views: 12898

Re: problem with simple esp_mesh_send command

Hello: I know that I'm late to the party but I had the same problem and solved it this way: 1. I have set the server ip as 10.0.0.1 2. since ESP32 is little-endian, I had to reverse the array mip_t SOURCE_IPV4_PORT = {0}; uint8_t temp_ip[4] = {1, 0, 0, 10}; // Host Server ip actually is 10.0.0.1 ent...
by JL1946
Tue Aug 10, 2021 5:17 am
Forum: ESP-IDF
Topic: Reading output GPIO pin logic state
Replies: 6
Views: 25338

Re: Reading output GPIO pin logic state

Many thanks to @flodis for your code snippet. It worked for me... I implement a timer to toggle the Blue Led on a Esp32 Dev Board... My Code is as follows: #define BLINK_GPIO 2 void blink_blue_led() { gpio_num_t pin = (gpio_num_t)(BLINK_GPIO & 0x1F); int state = 0; if (GPIO_REG_READ(GPIO_ENABLE_REG)...
by JL1946
Fri Mar 05, 2021 10:30 pm
Forum: ESP-IDF
Topic: Button Debounce routine
Replies: 5
Views: 10139

Re: Button Debounce routine

Good idea... I will incorporate the change... Thanks
by JL1946
Wed Mar 03, 2021 7:41 pm
Forum: ESP-IDF
Topic: Button Debounce routine
Replies: 5
Views: 10139

Re: Button Debounce routine

Each button press pulls the input low. I cannot eliminate the interrupt disable because if you look at an oscilloscope picture of a typical button press (See the attachment), you see that there are multiple transitions from high->low->high BEFORE a solid LOW, and since the time between the transitio...
by JL1946
Tue Mar 02, 2021 6:19 pm
Forum: ESP-IDF
Topic: Button Debounce routine
Replies: 5
Views: 10139

Button Debounce routine

I implemented a debounce algorithm in my ESP32 code and would like to have some comments/ideas on the implementation. I am using 2 ESP32s (1 handles wifi while the other handles bluetooth classic). the wifi device has 3 inputs that change state with buttons and control 4 outputs which are interrupts...
by JL1946
Wed Jan 06, 2021 6:19 pm
Forum: ESP-IDF
Topic: Bluetooth SNIFF Mode Disconnect Issue
Replies: 1
Views: 2490

Re: Bluetooth SNIFF Mode Disconnect Issue

I made a change to the project that has apparently cleaned up a lot of problems for me. I disabled the Bluetooth/wifi coexistence in the sdkconfig. From reading the Espressif docs, I realized that using coexistence imposes limits on the RF communication protocol. When I disabled the coexistence mech...
by JL1946
Tue Jan 05, 2021 4:57 pm
Forum: ESP-IDF
Topic: Bluetooth SNIFF Mode Disconnect Issue
Replies: 1
Views: 2490

Bluetooth SNIFF Mode Disconnect Issue

From what I understand, when the ESP32 is connected as an a2dp source to an a2dp sink (bluetooth speaker) the ESP32 is acting as the Master and the Speaker is the Slave. From the Bluetooth Specification, my understanding is that after sending a music/sound wav file to the speaker, the Master tries t...
by JL1946
Wed Mar 04, 2020 6:13 pm
Forum: ESP-IDF
Topic: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?
Replies: 41
Views: 65071

Re: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?

I think that what is missing here is the fact that the ESP32 has only 1 radio and 1 antenna. Therefore, the channels selected for STA Mode and AP Mode have to be the same. Different Channels will not work. The same goes for ESP NOW/MESH implementations. My suggestion would be that, on start-up, defi...
by JL1946
Wed Nov 27, 2019 10:06 pm
Forum: ESP-IDF
Topic: SPI Slave: Example not work with other devices
Replies: 1
Views: 4153

Re: SPI Slave: Example not work with other devices

By now, you have figured out that the error is in the Tx_length which is supposed to indicate the number of BITS being transmitted. You indicate a char of 128 bytes and a length of 128 - this should be 128*8 (Bytes*Bits). That is why your Receive Buffer is almost Empty - the sender is transmitting j...
by JL1946
Sat Mar 23, 2019 4:06 pm
Forum: General Discussion
Topic: ESP32 Uart ISRs and misinformation
Replies: 0
Views: 1954

ESP32 Uart ISRs and misinformation

It seems to me that ISR (Interrupt Service Routine aka interrupt handler) code which is intended to capture uart data is not all-that-it-can-be. Some people claiming to be "embedded developers" post code to these forums and even write blogs to demonstrate their expertise, but end up confusing the fo...