Search found 11 matches

by gibzwein
Sun Feb 14, 2021 12:05 pm
Forum: ESP-IDF
Topic: gpio_install_isr_service() returns ESP_ERR_NOT_FOUND
Replies: 5
Views: 9502

Re: gpio_install_isr_service() returns ESP_ERR_NOT_FOUND

Hi,
have You solved this issue? I have the same.
Regards
by gibzwein
Tue Jan 12, 2021 7:38 pm
Forum: ESP-IDF
Topic: UART read timeout looks not working
Replies: 8
Views: 6216

Re: UART read timeout looks not working

Hi
I added
  1. uart_get_buffered_data_len(UART_NUM_1, (size_t*)&rxBytes);
but get same results. Additionally, an error occurs E (32137) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
Best regards
by gibzwein
Tue Jan 12, 2021 12:36 pm
Forum: ESP-IDF
Topic: UART read timeout looks not working
Replies: 8
Views: 6216

Re: UART read timeout looks not working

Hi,
thank You for reply.
My version is ESP-IDF v4.1-dev-474-g2e6398aff-dirty
Best regards
by gibzwein
Mon Jan 11, 2021 2:02 pm
Forum: ESP-IDF
Topic: UART read timeout looks not working
Replies: 8
Views: 6216

Re: UART read timeout looks not working

Any help?
by gibzwein
Sat Jan 09, 2021 12:35 pm
Forum: ESP-IDF
Topic: UART read timeout looks not working
Replies: 8
Views: 6216

UART read timeout looks not working

Hello, I am connected to communication line. Device is sending two frames of bytes with gap between. I use code: #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_log.h" #include "driver/uart.h" #include "string.h" #include "driver/gpio.h" static const i...
by gibzwein
Sat Jul 04, 2020 7:38 pm
Forum: General Discussion
Topic: [SOLVED] UART response too late
Replies: 9
Views: 8876

Re: UART response too late

I found the solution here:
viewtopic.php?t=3751
I had to make struck like above
Result:
screen11.png
screen11.png (39.15 KiB) Viewed 8724 times
Thank You very much.
Regards
by gibzwein
Sat Jul 04, 2020 7:25 pm
Forum: General Discussion
Topic: [SOLVED] UART response too late
Replies: 9
Views: 8876

Re: UART response too late

Probably I found the solution.
Now testing.
by gibzwein
Sat Jul 04, 2020 6:37 pm
Forum: General Discussion
Topic: [SOLVED] UART response too late
Replies: 9
Views: 8876

Re: UART response too late

Oh, ESP_Sprite thank You as well.
by gibzwein
Sat Jul 04, 2020 6:27 pm
Forum: General Discussion
Topic: [SOLVED] UART response too late
Replies: 9
Views: 8876

Re: UART response too late

PeterR, thank You for reply. Asking for 1 byte: uint8_t data[1]; while (1) { int len = uart_read_bytes(UART_NUM_2, data, 1, 1); uart_write_bytes(UART_NUM_2, (const char *)data, len); } Result: screen8.png Added FIFO Tresh uart_intr_config_t uart_intr = { .rxfifo_full_thresh = 1}; // // .rx_timeout_t...
by gibzwein
Sat Jul 04, 2020 5:08 am
Forum: General Discussion
Topic: [SOLVED] UART response too late
Replies: 9
Views: 8876

Re: UART response too late

Thank you very much PeterR for your answer.
The upper signal is RX the lower TX as You assumed.
I can't change the baudrate, data is read from the connected device and sent alternately.
Could you please explain how to reduce latency?