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.

[参考译文] RM48L952:RM48L952

Guru**** 2481885 points
Other Parts Discussed in Thread: RM48L952, DP83640

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/705183/rm48l952-rm48l952

器件型号:RM48L952
主题中讨论的其他器件: DP83640
您好!

我将 RM48L952与 PHY DP83640相连。

我有一个为 Web 服务器编写的 LWIP 驱动程序。

但我需要 TCP/IP 或 UDP 通信代码。

此致、

伊曼纽尔

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

    这是 UDP 的示例。 仅供参考

    struct pbuf *Tx;
    uint16_t length=0;
    字符 msg[5];

    _enable_IRQ ();
    EMAC_LwIP_Main (emacAddress);
    IP4_ADDR (&src、192、168、0、12);
    IP4_ADDR (&dst、192、168、0、10);
    IP4_ADDR (网络掩码、255、255、255、0);
    IP4_ADDR (&GW、192、168、0、1);
    pc=udp_new();
    error=udp_bind (PCB、&src、port_no);
    error=udp_connect (PCB、&D、port_no);
    长度= 5;
    tx=pbuf_alloc (PBUF_transport、length、PBUF_RAM);
    Tx->NEX=0;
    tx->len=tx->t_tlen=length;
    memcpy (Tx->PAYLOAD, msg, Tx->len);
    udp_sendto (PCB、Tx、&dst、port_no);
    pbuf_free (Tx);
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的王先生:

    感谢您的回复、
    我会检查并返回给您。

    此致、
    伊曼纽尔
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我没有简单的 TCP 测试用例、例如 TCP 回波等
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    尊敬的王先生:

    我已经尝试移植代码。 但是、由于未定义 src、dst、netamsk、port_no、我收到错误。

    此外、函数 EMAC_LwIP_Main (emacAddress)正在执行许多服务器配置。

    我需要使用 UDP 发送数据和接收数据之类的应用。

    此致、
    伊曼纽尔
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    src 和 dst 是源和目的 IP 地址。 PORT_NUM 是 UDP 的端口号、例如7000。 我没有正常工作的 UDP 项目。