PSDK只能在无人机开机第一次启动程序可以DjiCore_Init成功,关掉程序再次DjiCore_Init总是失败。
已完成PSDK只能在无人机开机第一次启动程序可以DjiCore_Init成功,关掉程序再次DjiCore_Init总是失败。总是报错“[adapter]-[Info]-[DjiAccessAdapter_Init:145) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.”
详细日志:
[0.500][user]-[Info]-[Initialize:276) Init Dji Core
[0.501][core]-[Info]-[DjiCore_Init:92) Payload SDK Version : V3.1.0-beta.0-build.1501
[0.504][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[0.504][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[0.504][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 0
[0.504][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 0 0
[0.521][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.522][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.542][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.562][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.582][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.602][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.623][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.633][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.633][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.653][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.674][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.694][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.714][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.734][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.745][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.745][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.766][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.786][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.806][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.826][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.847][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.857][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.858][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.878][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.898][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.918][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.938][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.960][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.971][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.971][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.991][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.012][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.032][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.052][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.073][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.083][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.083][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.103][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.124][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.144][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.164][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.185][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.195][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.195][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.215][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.236][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.256][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.276][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.297][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.308][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.308][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.328][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.348][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.368][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.388][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.409][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.419][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.420][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.440][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.460][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.480][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.500][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.521][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.532][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.532][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.552][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.572][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.582][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[1.582][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[1.582][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 0
[1.582][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 1 1
[1.592][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.613][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.633][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.643][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.643][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.664][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.684][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.704][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.724][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.745][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[1.756][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.756][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.776][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.796][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.816][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.837][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.857][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[1.868][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.868][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.888][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.909][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.929][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.949][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.969][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[1.981][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.981][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.001][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.022][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.042][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.062][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.083][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[2.093][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[2.093][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.113][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.133][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.154][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.174][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[2.194][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[2.195][adapter]-[Info]-[DjiAccessAdapter_Init:145) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.
[2.257][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.257][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.277][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.297][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.317][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.337][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.358][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.369][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.369][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.389][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.409][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.430][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.450][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.471][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.481][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.481][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.501][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.521][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.541][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.562][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.582][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.593][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.593][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.613][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.633][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.653][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.659][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[2.659][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[2.659][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 1 1
[2.659][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 0 1
[2.674][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.694][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.706][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.707][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.727][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.747][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.767][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.787][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[2.808][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.819][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.820][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.840][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.860][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.880][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.900][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.921][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[2.931][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[2.931][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.951][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.971][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[2.991][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.012][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.032][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[3.043][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[3.044][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.064][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.084][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.104][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.124][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.145][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[3.157][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[3.157][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.178][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.198][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.218][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.238][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.260][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[3.270][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[3.270][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.290][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.310][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.330][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.350][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[3.371][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[3.381][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[3.381][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.402][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.422][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.442][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.462][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.483][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[3.493][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[3.493][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.513][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.533][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.554][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.574][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.595][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[3.605][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[3.605][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.625][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.646][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.666][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.686][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.707][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[3.717][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[3.717][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.735][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[3.735][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[3.735][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 1
[3.735][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 0 1
[3.738][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.758][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.778][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.799][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.819][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[3.831][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[3.831][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.852][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.872][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.892][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.912][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[3.933][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[3.933][adapter]-[Info]-[DjiAccessAdapter_Init:145) Try identify UART0 connection failed. Probably because SDK adapter or aircraft not finish init or UART connect error.
而第一次成功的日志是:
[0.501][user]-[Info]-[Initialize:276) Init Dji Core
[0.503][core]-[Info]-[DjiCore_Init:92) Payload SDK Version : V3.1.0-beta.0-build.1501
[0.508][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[0.508][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[0.508][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 0
[0.508][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 0 0
[0.527][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.527][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.547][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.567][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.587][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.608][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.628][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.640][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.640][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.660][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.660][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.660][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.680][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.680][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.700][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.701][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.720][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.720][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.740][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[0.741][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.754][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.754][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.774][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.794][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.814][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.835][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.855][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.867][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.867][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.887][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.907][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.927][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.947][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.968][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[0.979][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[0.979][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[0.999][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.019][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.039][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.060][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xE5->0x65 0x03FD
[1.080][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.091][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.091][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.111][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.132][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.152][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.172][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.193][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.204][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.204][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.220][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.225][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.240][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.245][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.260][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.265][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.280][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.285][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.302][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.303][linker]-[Debug]-[DjiProtocol_v1Unpack:150) protocol frame length error
[1.306][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.317][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.318][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.338][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.358][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.378][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.399][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.419][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.431][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.431][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.451][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.471][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.491][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.512][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.532][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.544][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0
[1.544][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.564][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.584][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.592][utils]-[Debug]-[DjiCore_RootTask:131) work execution time:
[1.593][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms)
[1.593][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 0
[1.593][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 1 1
[1.604][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.625][linker]-[Debug]-[DjiProtocol_v1Pack:115) V1-Send: 0xCA->0x03 0x03FD
[1.645][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0
[1.656][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.656][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.661][linker]-[Debug]-[DjiProtocol_sdkUnpack:218) protocol frame length error
[1.676][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.681][linker]-[Debug]-[DjiProtocol_sdkUnpack:218) protocol frame length error
[1.696][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.716][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.720][linker]-[Debug]-[DjiProtocol_sdkUnpack:218) protocol frame length error
[1.737][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.758][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[1.768][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:1, channelId:0
[1.768][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.783][linker]-[Debug]-[DjiProtocol_sdkUnpack:275) SDK-Recv: 0x03->0x0A 0x0200
[1.784][linker]-[Debug]-[DjiProtocol_sdkUnpack:275) SDK-Recv: 0x03->0x0A 0x0000
[1.788][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.804][linker]-[Debug]-[DjiProtocol_sdkUnpack:275) SDK-Recv: 0x03->0x0A 0x0200
[1.806][linker]-[Debug]-[DjiProtocol_sdkUnpack:275) SDK-Recv: 0x03->0x0A 0x0000
[1.806][linker]-[Debug]-[DjiProtocol_sdkUnpack:275) SDK-Recv: 0x03->0x0A 0x0203
[1.809][linker]-[Debug]-[DjiProtocol_sdkPack:182) SDK-Send: 0xCA->0x03 0x0000
[1.809][utils]-[Debug]-[DjiSdkVersionAck_Parse:173) Device Serial No. = 1ZNBHC400C00LG
[1.809][utils]-[Debug]-[DjiSdkVersionAck_Parse:175) Firmware = 3.4.8.96
[1.809][utils]-[Info]-[DjiSdkVersionAck_Parse:183) Identify aircraft serial number = 1ZNBHC400C00LG, Firmware = 3.4.8.96
[1.820][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:1, channelId:0
[1.820][adapter]-[Info]-[DjiAccessAdapter_Init:154) Identify aircraft series is Matrice 300 Series
[1.820][adapter]-[Info]-[DjiAccessAdapter_Init:171) Identify mount position type is Extension Port Type
-
看报错就是串口初始化错误,是直接跑的PSDK sample吗?跑多个程序确认一下串口端口是不是被占用了。可以在串口初始化注册函数中debug一下,看初始化是不是有成功。 hal_uart.c 
请先登录再写评论。
评论
3 条评论