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.

[参考译文] LP-CC1352P7:wfantund CoAP 客户端脚本错误

Guru**** 2393285 points
Other Parts Discussed in Thread: CC1352P7

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

https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1369033/lp-cc1352p7-wfantund-coap-client-script-errors

器件型号:LP-CC1352P7
主题中讨论的其他器件:Wi-SUNCC1352P7

工具与软件:

尊敬的 TI 工程师:

这是我的设置:

  • BeaglePlay 与 BeaglePlay Debian OS 2023十月作为边界路由器主机
  • 板载 CC1352P7已刷写 CCS Wi-SUN 更广义路由器固件
  • 刷写为片外 OAD CoAP wi-sun 路由器节点的 CC2352P7-1 LaunchPad
  • CCS 12.7.1、SDK 也是最新的7.40.00.77

我可以从 BeaglePlay 主机 ping CoAP 路由器节点。

但是、当我发出命令或命令时

sudo /usr/local/ti-wisunfantund/coap-client-scripts/run_coap_get.sh 2020:abcd:::212:4b00:14f9:675c

Starting the COAP Process with IP Address 2020:abcd::212:4b00:14f9:675c
coap-client -m get coap://[2020:abcd::212:4b00:14f9:675c]/led -o c.bin
/usr/local/ti-wisunfantund/coap-client-scripts/run_coap_get.sh: 21: [: 1: unexpected operator
/usr/local/ti-wisunfantund/coap-client-scripts/run_coap_get.sh: 35: [: 1: unexpected operator
/usr/local/ti-wisunfantund/coap-client-scripts/run_coap_get.sh: 21: [: 2: unexpected operator
/usr/local/ti-wisunfantund/coap-client-scripts/run_coap_get.sh: 35: [: 2: unexpected operator

如何纠正它们?

此致,
提米

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

    您好、Timmy、

    是否使用 sh 运行 run_coap_get.sh 脚本?

    类似这样:sh run_coap_get.sh 2020:abcd:0000:0000:0212:4b00:14f7:d2e6

    此致、

    亚瑟

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

    我使用 bash shell 运行脚本、结果成功。