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
被浏览
251
abcd
abcd 认证专家 2024-11-14
我只是个路过的老年人~

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 认证专家 2024-11-14
Lover of the ocean, yachts and Arduino

Thank you!

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览