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.

[参考译文] CC2652R7:将 CoAP 服务器功能添加到 RCP 示例

Guru**** 2439710 points
Other Parts Discussed in Thread: CC2652R7

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

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1230142/cc2652r7-to-add-coap-server-functionality-to-rcp-example

器件型号:CC2652R7

您好!

我想在 TI RCP 示例中添加一个 CoAP 服务器功能。
我只是将另一个具有 CoAP 服务器功能示例中的相关函数添加到了 TI RCP 示例中。

但是、我将得到如下所示的库参考错误。
如何在 CCS 中添加 CoAP 库?

谢谢。

Makefile:184:目标"Nama_rcp_lp_CC2652R7_tirtos7_ticlang.out"的配方失败

第一个引用的未定义
文件中的符号
---------------- ----------------
otCoapAddResource ./rcp.o
otCoapMessageGetCode ./rcp.o
otCoapMessageGetToken ./rcp.o
otCoapMessageGetTokenLength ./rcp.o
otCoapMessageInitResponse ./rcp.o
otCoapMessageSetPayloadMarker ./rcp.o
otCoapMessageSetToken ./rcp.o
otCoapNewMessage ./rcp.o
otCoapSendResponseWithParameters ./rcp.o
otCoapStart ./rcp.o
otEXPECT ./rcp.o
otEXPECT_ACTION ./rcp.o
otMessageAppend ./rcp.o
otMessageFree ./rcp.o

错误#10234-D:未解析的符号仍存在
错误#10010:链接期间遇到错误;未生成"nama rcp_lp_CC2652r7_tirtos7_ticlang.out"
tiarmclang:错误:tiarmlnk 命令失败、退出代码1 (使用-v 查看调用)
gmake[1]:***[NAMA_rcp_lp_CC2652R7_tirtos7_ticlang.out]错误1
gmake[1]:目标"辅助输出"由于错误而没有重新生成。
gmake:***[全部]错误2
Makefile:174:目标"全部"的食谱失败

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

    您好!

    RCP 应仅实现无线电(和 MAC)层、而 CoAP 是应用层结构。

    我建议 使用 CoAP 启用 RCP 的主机(例如 otbr-POSIX)、而不是 RCP 本身。

    在 otbr-POSIX 上、您可以运行类似"ot-ctl Coap"的命令 "

    谢谢。
    托比

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

    尊敬的 Toby:

    我在主机上安装了 otbr、在 CC2652R7上安装了 RCP、以使用 spinel 协议配置线程网络。
    但这里的问题是、我们通过 I2C 将板上的传感器连接到 RCP。

    因此、若要使用 CoAP 从 otbr 收集传感器数据、RCP 必须具有 CoAP 服务器。

    如果我查看 TI 示例、我可以看到 libopenthread_MTD.A 包含 CoAP。
    我只想创建与此类似的 CoAP 库、或者只将 CoAP 源添加到 RCP 示例中。
    我们在这方面征求您的意见。

    谢谢、jg