Why UART buffer = 4096 bytes?

發布於 2024-11-14 03:58:56

Subj.

What safe value I can reduce these parameters?

define TLS_UART_RX_BUF_SIZE 4096

define TLS_UART_TX_BUF_SIZE 4096

The HOSTIF option is disabled.

That's a lot for an Arduino core

查看更多

關注者
0
被浏覽
58
abcd
abcd 認證專家 4天前
我只是個路過的老年人~

These two values are the size of the transmit and receive buffs for the serial port, which are loop buffs used for buffering in the driver. If hostif is turned off, sending buffs is not used, only receiving buffs are used in the UART driver. Because it is a loop buff, the size can be adjusted according to the actual amount of data transmitted. The minimum value is not recommended to be less than 512.

2 個回答
AnatolSher
AnatolSher 認證專家 3天前
Lover of the ocean, yachts and Arduino

Thank you!

撰寫答案

請登錄後再發布答案,點擊登錄

發布
問題

分享
好友

手機
浏覽

掃碼手機浏覽