主题中讨论的其他器件:UNIFLASH
各位专家:
1) 1)我能够将数据发送到云。 现在、我要订阅服务器并从云接收数据。 如果有任何示例向我们展示了如何将云订阅到设备(基本上希望从设备接收数据到云)。
2) 2)我们如何从设备端了解服务器的连接/断开状态?
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.
各位专家:
1) 1)我能够将数据发送到云。 现在、我要订阅服务器并从云接收数据。 如果有任何示例向我们展示了如何将云订阅到设备(基本上希望从设备接收数据到云)。
2) 2)我们如何从设备端了解服务器的连接/断开状态?
Manish、您好!
您在程序中的哪个位置会收到 sl_error_fs_inval_token_security_alert 错误? 还是在 Uniflash 编程期间遇到该错误?
出于开发目的、您只需使用随 SDK 分发的运动场证书来对 MCU 二进制映像进行签名。 在生产过程中,您需要从受信任的根 CA 机构购买代码签名证书,因为出于安全原因,您无法使用游乐场证书。
此致、
Michael
您好、Michael、
根据您的回复、我使用了运动场证书、但现在我获得了该证书
41 8880 [OTA Agent T][prvParseJSONbyModel]提取的参数[ clientToken:0:**V2OTATEST01]
42 8880 [OTA Agent T][prvParseJSONbyModel]提取的参数[时间戳:1610081243]
43 8881 [OTA Agent T][prvParseJSONbyModel]提取的参数[ jobId:AFR_OTA-ota007 ]
44 8881 [OTA Agent T][prvParseJSONbyModel]提取的参数[协议:["MQTT"]
45 8882 [OTA Agent T][prvParseJSONbyModel]提取的参数[ streamname:AFR_OTA-f51cd2b1-2200-414c-a51c-72227136e047]
46 8882 [OTA Agent T][prvParseJSONbyModel]提取的参数[ filepath:/sys/mcuflashimg.bin ]
47 8882 [OTA Agent T][prvParseJSONbyModel]提取的参数[文件大小:389868]
48 8882 [OTA Agent T][prvParseJSONbyModel]提取的参数[文件 ID:0]
49 8883 [OTA Agent T][prvParseJSONbyModel]提取的参数[ certfile:tisigner.crt.der]
50 8883 [OTA Agent T][prvParseJSONbyModel]提取的参数[ SIG-SHA1-RSA:f5ce298e9ea2e7206a9cf827fb81e7...]
51 8884 [OTA Agent T][prvParseJobDoc]作业已接受。 正在尝试启动传输。
52 8885 [OTA Agent T][prvPAL_GetPlatformImageState] xFileInfo.Flags = 0250
53 8885 [OTA Agent T][prvPAL_GetPlatformImageState] eOTA_PAL_ImageState_Valid
54 9653 [IoT_thread][info ][demo][9653] State:WaitingForJob Received: 1 Queued:0 processed:0 Doped:0
55 10653 [IoT_thread][info ][demo][10653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
56 11653 [IoT_thread][info ][demo][11653] State:WaitingForJob Received: 1 Queued:0 processed:0 Doped:0
57 12653 [IoT_thread][info ][demo][12653] State:WaitingForJob Received:1 Queued:0 Processed:0 Doped:0
58 13653 [IoT_thread][info ][demo][13653]状态:WaitingForJob Received: 1 Queued:0 processed:0 Doped:0
59 14653 [IoT_thread][info ][demo][14653]状态:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
60 15653 [IoT_thread][info ][demo][15653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
61 16653 [IoT_thread][info ][demo][16653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
62 17653 [IoT_thread][info ][demo][17653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
63 18653 [IoT_thread][info ][demo][18653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
64 19653 [IoT_thread][info ][demo][19653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
65 20653 [IoT_thread][info ][demo][20653] State:WaitingForJob Received:1 Queued:0 Processed:0 Doped:0
66 21653 [IoT_thread][info ][demo][21653] State:WaitingForJob Received: 1 Queued:0 processed:0 Doped:0
67 22653 [IoT_thread][info ][demo][22653]状态:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
68 23653 [IoT_thread][info ][demo][23653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
69 24653 [IoT_thread][info ][demo][24653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
70 25653 [IoT_thread][info ][demo][25653] State:WaitingForJob Received: 1 Queued:0 processed:0 Doped:0
71 26653 [IoT_thread][info ][demo][26653] State:WaitingForJob Received:1 Queued:0 Processed:0 Doped:0
72 27653 [IoT_thread][info ][demo][27653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
73 28653 [IoT_thread][info ][demo][28653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
74 28819 [OTA Agent T][prvPAL_CreateFileForRx]接收文件已创建。 令牌:1952007250
75 28820 [OTA Agent T][prvPAL_GetPlatformImageState] sl_FsGetInfo 在/sys/mcuflashimg.bin 上失败(-10370)
76 28821 [OTA Agent T][prvSetDataInterface]数据接口设置为 MQTT。
77 28821 [OTA Agent T][prvProcessJobHandler]设置 OTA 数据接口。
78 28821 [OTA Agent T][prvExecuteHandler]调用了处理程序。 当前状态[WaitingForJob]事件[ReceivedJobDocument]新状态[CreatingFile]
79 28822 [OTA Agent T][INFO ][MQTT][28822](MQTT 连接20007790)订阅操作已计划。
80 28823 [OTA Agent T][INFO ][MQTT][28822](MQTT 连接20007790、订阅操作20009e20)等待操作完成。
81 29090 [pthread][SimpleLinkSockEventHandler 事件]:意外事件:2、套接字:0原因:0。
82 29091 [NetRecv]错误:-452套接字接收失败。
83 29653 [IoT_thread][info ][demo][29653] State:WaitingForJob Received:1 Queued:0 processed:0 Doped:0
您能不能说为什么会出现此错误、现在我已经厌倦了发现此问题、我几乎在 Github、AWS 论坛和许多地方都看不到任何答案。 请对此进行澄清