First let me explain what I am trying to do:
I have UART0 running on default pins and have its driver installed with buffers for both RX and TX. No event queue. This works.
Now what I need: some warning on RX timeout! (Do not care about FIFO full and friends).
It seams that default driver does not have an event for TOUT (that's why I have not created an event queue). So I guess interrupt is the way to go, right?
An interrupt that simple use xSemaphoreGiveFromISR on rx timeout will be all I need.
I understand that I must first use uart_isr_free to release current interrupt handler and use uart_isr_register to enable mine.
But isn't this going to break the UART driver previously installed? Do I have to manage TX/RX buffers by myself if I decide to use a custom interrupt? If so, why do people still use uart_driver_install before releasing it?
I have found VERY FEW examples on UART interrupt and despite they set rx_timeout_thresh they all seam to be ignoring it once inside the interrupt code (apart of cleaning it).
Can someone please point me to one real documentation/example for the timeout feature?
Thanks!
Lost on UART RX timeout
Return to “General Discussion”
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- 全国大学生物联网设计竞赛乐鑫答疑专区
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Google [Bot] and 119 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.