Search found 19 matches

by Ravenholem
Fri Jun 07, 2024 5:38 pm
Forum: ESP-IDF
Topic: Does HTTPD offer anyway to see the RAW header?
Replies: 1
Views: 290

Re: Does HTTPD offer anyway to see the RAW header?

I found a solution though, I think it is very weird you can not access this information directly through the API I copied this structure from esp_httpd_priv.h which I could not figure out how to included in my main.c. struct httpd_req_aux { struct sock_db *sd; /*!< Pointer to socket database */ char...
by Ravenholem
Thu Jun 06, 2024 10:10 pm
Forum: ESP-IDF
Topic: Does HTTPD offer anyway to see the RAW header?
Replies: 1
Views: 290

Does HTTPD offer anyway to see the RAW header?

Hello, So I'm porting over my janky little HTTP server library I home brewed. It fully functions with IOS captive portal and when I try to port that code to the HTTPD server it does not function exactly as it should. It does about 95% like it should but then just keeps reloading the page over and ov...
by Ravenholem
Thu Jun 06, 2024 10:05 pm
Forum: ESP-IDF
Topic: Dedicated GPIO - Assembly code for reading pin
Replies: 10
Views: 1016

Re: Dedicated GPIO - Assembly code for reading pin

ESP32-S3: static uint32_t read_dedic_gpio() { uint32_t r; asm volatile ( "EE.GET_GPIO_IN %[r]" : [r] "=r" (r) ); return r; } Alternatively, #include "hal/dedic_gpio_cpu_ll.h" uint32_t input = dedic_gpio_cpu_ll_read_in(); I have not used ASM for GPIO pins but does it give a boost in speed compared t...
by Ravenholem
Wed Feb 07, 2024 2:12 pm
Forum: ESP-IDF
Topic: I2C Read returns incorrect data while Physical Bus has correct Data.
Replies: 3
Views: 801

Re: I2C Read returns incorrect data while Physical Bus has correct Data.

I have tried lowering the i2c clock to 50khz and 25khz and still getting incorrect values returned from the i2c. On the physical Bus the data is correct.
by Ravenholem
Tue Feb 06, 2024 9:35 pm
Forum: ESP-IDF
Topic: I2C Read returns incorrect data while Physical Bus has correct Data.
Replies: 3
Views: 801

I2C Read returns incorrect data while Physical Bus has correct Data.

I am experiencing a situation very similar to https://esp32.com/viewtopic.php?t=35508 https://esp32.com/viewtopic.php?t=30427 I am reading data from a DPS310 sensor. I read from it every 1 second. On average the device runs for 2+ to 3+ hours and then I get an Assert thrown because the value read fr...
by Ravenholem
Fri Jan 26, 2024 1:51 pm
Forum: Hardware
Topic: Using I2C causes issues with MCPWM Capture.
Replies: 0
Views: 591

Using I2C causes issues with MCPWM Capture.

Hello everyone! So while working on a project I came across something I can't seem to explain. The Scope of work is as follows: I retrieve data from a sensor over I2C. (I use this library https://github.com/UncleRus/esp-idf-lib to help make things easier) Using MCPWM Capture 0, I capture a PWM input...
by Ravenholem
Wed Oct 11, 2023 2:02 pm
Forum: ESP-IDF
Topic: ESP-IDF TWAI Queue implementation advice
Replies: 2
Views: 1901

Re: ESP-IDF TWAI Queue implementation advice

Hello, Have you gotten any further with these questions or concepts? I am also in your same shoes. I am trying to find the best way to implement TWAI for RX. I'm pretty confident that the way I'm doing it isn't the cleanest way to handle twai RX but it was what I originally follow from a example. Wh...
by Ravenholem
Sun Aug 13, 2023 1:56 am
Forum: Hardware
Topic: Is there a way to reset an RMT channel if the buffer has been filled?
Replies: 10
Views: 12027

Re: Is there a way to reset an RMT channel if the buffer has been filled?

I found that changing conf0.idle_thres will make RMT on my ESP32-D0WD-V3 leave Wait state and resume RX. uint32_t status = RMT.status_ch[RMT_CHANNEL_0]; int state = (status >> RMT_STATE_CH0_S) & RMT_STATE_CH0_V; if(state == 4) { //4 is "Wait" state ESP_LOGI(TAG, "rmt status %x", RMT.status_ch[RMT_C...
by Ravenholem
Sat Aug 12, 2023 9:08 pm
Forum: General Discussion
Topic: Does anyone have a good solution for measuring a continues PWM signal?
Replies: 3
Views: 2657

Re: Does anyone have a good solution for measuring a continues PWM signal?

I haven't tried with PWM, but I did use RMT peripheral on the ESP32 to receive a multi-channel PPM signal from an RC receiver. I guess with PWM it should be even easier. Can you describe the issues you ran to when trying to use RMT to receive PWM? Thank you for taking time to respond. I have gotten...
by Ravenholem
Tue Aug 08, 2023 12:18 pm
Forum: General Discussion
Topic: Does anyone have a good solution for measuring a continues PWM signal?
Replies: 3
Views: 2657

Does anyone have a good solution for measuring a continues PWM signal?

Hello, I have been trying to come up with a good clean way to measure PWM input to my device. I need both Frequency and Pulse width. On the normal ESP32 I was able to use MCPWM but on the C3 and S2 the MCPWM does not exist. I have tried to experiment with RMT and it hasn't went as well as I expected...