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/TM4C129XNCZAD:Tiva4C 上的 UDP 广播消息

Guru**** 2405325 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/949075/ccs-tm4c129xnczad-udp-broadcast-messaging-on-tiva4c

器件型号:TM4C129XNCZAD

工具/软件:Code Composer Studio

我想在上实现 UDP 广播:PC 将向 TIVA4C MCU 广播一些数据包。 到目前为止、我已经能够使用我的 PC 和 Tiva 之间的 UDP 消息传递使用 udp_echo.c 示例进行通信。 但该示例似乎不适用于 UDP 广播。 回调函数 void udp_echo_recv (void *arg、struct udp_pcb * pcb、struct pbuf * p、struct
ip_addr * addr、u16_t 端口)只需忽略从 PC 发送的任何广播消息。

我是否需要在堆栈中启用任何配置?

谢谢你