I use a full rx threshold of 55, but tried with other values and the same problem. HW RX FIFO is 128 bytes.
Also tried to slow the baudrate to give more time to the FIFO but overflows too.
Search found 7 matches
- Mon Mar 04, 2024 6:05 pm
- Forum: ESP-IDF
- Topic: RS485 + Wifi. uart_read_bytes() reads less bytes than requested
- Replies: 2
- Views: 1277
- Mon Mar 04, 2024 11:00 am
- Forum: ESP-IDF
- Topic: RS485 + Wifi. uart_read_bytes() reads less bytes than requested
- Replies: 2
- Views: 1277
RS485 + Wifi. uart_read_bytes() reads less bytes than requested
I have a custom ESP32 board which polls 4Mbit/s data to other ESP32 custom board via custom RS485 protocol at baudrate of 115200*120. Then it has to send that data via wifi TCP socket. I am using only core 0, as core 1 is full busy with a task that does SPI transfers to an ADC. I spawn two tasks one...
- Mon Dec 04, 2023 10:50 am
- Forum: ESP-IDF
- Topic: Wifi to Ethernet TCP performance issue
- Replies: 0
- Views: 3502
Wifi to Ethernet TCP performance issue
Hello, I have a setup with a custom esp32 board that generates ~270kB/s of data and sends it through tcp socket via wifi to an Olimex ESP32-Gateway rev G. The Olimex forwards this data to a server via TCP socket over Ethernet. If I only do the part of receiving data (not forwarding to ethernet), it ...
- Mon Oct 03, 2022 11:16 am
- Forum: ESP-IDF
- Topic: UART read losing bytes
- Replies: 1
- Views: 1859
UART read losing bytes
Hello, I am writing a code on an Olimex ESP32 Gateway that sends a command to a board and receives data from the board through rs485 with a baudrate of 115200 * 100. The data received is about 3 kB foreach command. After sending the command, the code delays 3.5ms (enough for the whole 3kB arrive). A...
- Thu Mar 24, 2022 4:17 pm
- Forum: ESP-IDF
- Topic: UART conflicts with SPI
- Replies: 1
- Views: 1795
Re: UART conflicts with SPI
Solved.
I had the UART task in the APP CPU and the SPI task in the PRO CPU. Changed the affinity and now the SPI keeps reading all time while UART is transmitting.
Maybe UART driver interrupts PRO CPU?
I had the UART task in the APP CPU and the SPI task in the PRO CPU. Changed the affinity and now the SPI keeps reading all time while UART is transmitting.
Maybe UART driver interrupts PRO CPU?
- Tue Mar 22, 2022 2:58 pm
- Forum: ESP-IDF
- Topic: UART conflicts with SPI
- Replies: 1
- Views: 1795
UART conflicts with SPI
Hello, I have an application in an esp32 using the IDF framework. In one core runs a task reading an ADC via SPI non stop. On the other core there is a task that wakes up every 10ms that sends via RS485 the data read from the ADC on the other core. The problem is that when UART is transmitting the d...
- Fri Dec 03, 2021 1:48 pm
- Forum: ESP-IDF
- Topic: SPI master driver time between transactions
- Replies: 2
- Views: 3836
SPI master driver time between transactions
Hello, I am writing a test program to read from an ADC through the IDF SPI Master driver. I am using polling transmissions without DMA. This is the code I am using: uint16_t val; spi_transaction_t trans = {}: trans.flags = SPI_TRANS_USE_TXDATA; trans.length = 16; trans.rx_buffer = &val; ESP_ERROR_CH...