This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/TM4C1294NCPDT:为什么以固定间隔关闭和打开端口

Guru**** 2557630 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/940698/ccs-tm4c1294ncpdt-why-close-and-open-port-in-regular-intervals

器件型号:TM4C1294NCPDT

工具/软件:Code Composer Studio

在我们的应用中、我们使用了两个不同的端口来从服务器传输和接收数据。

我的设备与服务器持续连接、直到服务器关闭。

您能解释一下在这种情况下哪种更好的选择、定期打开和关闭端口、还是连续打开。

请允许我解释两种情况下的优缺点