Search found 11 matches

by italocjs
Sun Jul 09, 2023 9:52 pm
Forum: ESP32 Arduino
Topic: Phone detection through WiFi
Replies: 2
Views: 1376

Re: Phone detection through WiFi

Hey there, looking at the code i didnt immediately found what is causing the issue, but i had a couple of ideas that i think it would also work. Personally i think it would be easier to work with tasks instead of interrupts. ESP32 has freertos embedded Ex task 1 control the wifi connection, this inc...
by italocjs
Wed May 03, 2023 2:47 pm
Forum: ESP32 Arduino
Topic: esp crashing but not rebooting
Replies: 1
Views: 1166

Re: esp crashing but not rebooting

About the reason the crash was happening: I was processing some commands within the SerialBluetooth callback, this was probably causing an delay or stack issue and causing the weird issue. To fix it i've created an queue, and the only thing the callback does now is copy the rx buffer to this queue. ...
by italocjs
Wed May 03, 2023 2:43 pm
Forum: ESP32 Arduino
Topic: freertos mutex semaphore crashing
Replies: 6
Views: 3800

Re: freertos mutex semaphore crashing

Update: Found an case where the function crashed and exited without returning the semaphore first, this was causing the issue. Thanks for the tips.
by italocjs
Mon Apr 03, 2023 5:40 pm
Forum: ESP32 Arduino
Topic: esp crashing but not rebooting
Replies: 1
Views: 1166

esp crashing but not rebooting

Hi, why when this crash happens the esp32 does not reboot as usual? is there some kind of setting which i could change to make sure that i does reboot? or would be best to make a separated hardware watchdog? (already tried to find the crash cause here https://www.esp32.com/viewtopic.php?f=19&t=32432...
by italocjs
Mon Apr 03, 2023 5:32 pm
Forum: ESP32 Arduino
Topic: Search box not working?
Replies: 0
Views: 549

Search box not working?

I'm receiving error 500 (screenshot attached) when trying to use the search function in this forum. tried using vpn and changing to a secondary network without any luck
by italocjs
Tue Mar 28, 2023 5:06 pm
Forum: ESP32 Arduino
Topic: freertos mutex semaphore crashing
Replies: 6
Views: 3800

Re: freertos mutex semaphore crashing

This one is taking my sleep, lol :cry: I still believe that the issue happens when more than one "thing" is trying to access the i2c bus, but unfortunately i cant find out who to blame! every function that access i2c are inside its own task, which is protected by the same shared semaphore. and i che...
by italocjs
Fri Mar 03, 2023 4:38 pm
Forum: ESP32 Arduino
Topic: freertos mutex semaphore crashing
Replies: 6
Views: 3800

Re: freertos mutex semaphore crashing

Hello ESP_Sprite, thanks for the suggestion, i believe it was indeed corruption duo access conflict during void setup() phase, while i was setting the last modules up, the first ones already had they tasks running, causing competition to access the i2c, conflicting with the setup_functions which wer...
by italocjs
Thu Mar 02, 2023 5:26 pm
Forum: ESP32 Arduino
Topic: freertos mutex semaphore crashing
Replies: 6
Views: 3800

freertos mutex semaphore crashing

Hello!, I have 5 tasks accessing the multiple devices under the same i2c bus, to avoid conflict i have added semaphore on them, but i am still getting these errors (originating from different tasks): ERROR 1: assert failed: xQueueGenericSend queue.c:832 (pxQueue->pcHead != ((void *)0) || pxQueue->u....
by italocjs
Tue Oct 25, 2022 12:46 pm
Forum: ESP32 Arduino
Topic: Why my ESP32 burned?
Replies: 2
Views: 2311

Re: Why my ESP32 burned?

There are a couple of possible reasons i can think of: - Does your relay board has an optocoupler? its important to keep the output eletrically isolated from the relay, it draws way too much current for the output, and its a good idea having an diode to protect against switching surges (reference ht...
by italocjs
Mon Oct 24, 2022 10:33 pm
Forum: ESP32 Arduino
Topic: Interrupt change has a 38us delay
Replies: 1
Views: 1233

Interrupt change has a 38us delay

I'm making a simple program to measure for how long a pin stays on, and i'm getting ~42us delay on interrupt change routine exemplified below, any ideas on how to improve this code? Outside the interrupt i'm running a calculation formula once every second, inside the main loop, which reads instant_c...