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.

[参考译文] TM4C1294NCPDT:TFTP 服务器实现

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/886139/tm4c1294ncpdt-tftp-server-implementation

器件型号:TM4C1294NCPDT

我们在应用程序中使用 Tiva tm4c1294控制器、我们使用 SD 卡作为 csv 或 txt 文件格式的数据日志、因此我们需要通过 LAN 电缆从 PC 读取此 sdcard 文件、因此为此、我们需要使用 ti rtos (NDK)的 TFTP 服务器应用示例代码。 我是 tftp 中的新用户,因此可以提供有关此方面的指导。

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

    尊敬的 Anushka:

    NDK 没有内置 TFTP 服务器功能。 中提供了显式支持 TFTP 的唯一内置功能 /src/ti/ndk/nettools/tftp、但 API 的这一部分仅支持从 TFTP 服务器检索文件。

    但是、您可以使用 NDK 和 SD 驱动程序编写自己的服务器。 SDK 中有三个 SD 示例: fatsdfatsDraw 和  sl绘图。 您可以利用 SD 驱动程序 API 以及 tcpecho 应用程序中的功能通过 LAN 发送消息。

    您当前如何访问 SD 卡上的数据?

    最棒的
    Brandon