Ok, that's embarrassing, sorry for bothering you .
I shouldn't try these things in the middle of the night.
I tested it and it's working fine now.
You're right, I should make it static, forgot about that. I didn't use malloc on purpose since this it's more efficient and I have enough stack space.
Search found 7 matches
- Wed Aug 16, 2023 3:02 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
- Tue Aug 15, 2023 4:56 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
Re: How to configure UART RX Timeout?
I now implemented you example and tried it out, but it doesn't work. Not sure why, but the while-loop is alway instantly left after exactly 120 bytes where received. I tried increasing the timeout but it feels like this doesn't change anything at all. This is my code: #define UART_RX_TIMEOUT 7000 #d...
- Sun Aug 13, 2023 8:36 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
Re: How to configure UART RX Timeout?
Looks pretty good, thank you, I will try that.
- Sat Aug 12, 2023 11:23 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
Re: How to configure UART RX Timeout?
Hello @MicroController, thanks for your help. I don't know the structure of the messages you're receiving, but if possible, I would advise to use the actual data received to determine when/where a message ends instead of relying on a timeout. I would also prefer it that way, but sadly in my opinion ...
- Wed Aug 09, 2023 6:26 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
Re: How to configure UART RX Timeout?
I have read this example a hundred times. Sadly it doesn't explain anything about how to catch and handle the RX Timeout Interrupt.
- Tue Aug 08, 2023 9:33 pm
- Forum: ESP-IDF
- Topic: How to configure UART RX Timeout?
- Replies: 11
- Views: 3797
How to configure UART RX Timeout?
Hello, I have a smartmeter which sends two MBUS frames every five seconds. When the two frames are sent via UART, I want to process them. Since I don't have much experience with UART and ESP I wanted to ask here. As far as I understand, the best way is to set UART_INTR_RXFIFO_TOUT and process the da...
- Sat Apr 01, 2023 10:11 pm
- Forum: ESP-IDF
- Topic: Problems with I2C timeout
- Replies: 1
- Views: 1320
Problems with I2C timeout
Hello, I'm pretty new to the IDF and I'm currently writing a i2c library for the sensor HTE501: https://www.epluse.com/fileadmin/data/product/hte501/datasheet_HTE501.pdf The normal readings work without problem, but I have problems with the single shot measurement. The sensor support two types to re...