PSDK 示例程序 运行出错
已完成c demo运行时报错
[0.001][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.5.0-beta.0-build.1765
[0.381][adapter]-[Info]-[DjiAccessAdapter_Init:186) Identify aircraft series is Matrice 300 Series
[0.381][adapter]-[Info]-[DjiAccessAdapter_Init:206) Identify mount position type is Payload Port Type
[0.387][adapter]-[Info]-[DjiAccessAdapter_Init:301) Identity uart0 baudrate is 460800 bps
[0.393][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[1.429][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[2.429][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[3.429][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[4.429][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[5.429][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[6.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[7.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[8.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[9.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[10.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[11.430][adapter]-[Info]-[DjiPayloadNegotiate_Init:212) Waiting payload negotiate finished.
[14.372][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:470) Updating dji sdk policy file...
[15.372][core]-[Info]-[DjiIdentityVerify_UpdatePolicy:473) Update dji sdk policy file successfully
[16.410][infor]-[Info]-[DjiAircraftInfo_GetAdapterSerialNumber:680) Get serial number of Skyport V2 or X-Port is 39CDL320010301
[16.412][core]-[Info]-[DjiCore_Init:169) Identify AircraftType = Matrice 300 RTK, MountPosition = Payload Port NO1, SdkAdapterType = Skyport V2
[24.995][user]-[Error]-[DjiPlayback_GetFrameRateOfVideoFile:722) can not find frame rate.
[24.995][user]-[Error]-[UserCameraMedia_SendVideoTask:1271) get frame rate of video error: 0x00000100.
[25.003][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.011][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.019][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.027][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.035][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.044][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.052][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.060][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.068][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.076][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.084][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.092][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.100][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.108][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.116][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.124][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.132][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.140][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.149][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.157][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.165][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.173][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.181][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.189][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.197][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.205][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.209][sub]-[Warn]-[DjiDataSubscriptionDb2p_SubscribeSpecialTopic:185) Special handler for data subscription is full.
[25.209][user]-[Warn]-[UserGimbal_Task:395) Subscribe topic quaternion duplicate.
[25.213][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.221][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.229][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.237][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.245][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.253][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.261][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.270][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.278][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.286][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.294][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.302][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.310][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.318][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.326][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.334][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.342][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.350][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.359][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.367][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.375][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.383][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.391][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.399][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.407][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.415][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.423][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.431][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.439][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.447][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.455][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.464][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.472][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.480][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.488][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.496][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.504][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.512][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.520][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.528][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.536][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.545][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.553][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.561][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.569][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.577][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.585][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.593][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.601][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.609][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.617][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.625][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.634][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.642][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.650][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.658][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.666][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.674][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.682][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.690][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.698][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.706][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.714][user]-[Info]-[SetVolume:577) Set widget speaker volume: 30
[25.714][user]-[Warn]-[SetVolume:595) No audio device found, please add audio device and init speaker volume here!!!
[25.714][user]-[Error]-[UserCameraMedia_SendVideoTask:1300) open video file fail.
[25.717][upgrade]-[Info]-[DjiUpgrade_Init:120) Upgrade transfer type is common
[25.717][upgrade]-[Info]-[DjiUpgrade_EnableLocalUpgrade:138) Enable local upgrade
[25.718][core]-[Info]-[DjiCore_ApplicationStart:239) Start dji sdk application
不过中间有一次是连上Skyport V2
[0.001][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.5.0-beta.0-build.1765
[0.380][adapter]-[Info]-[DjiAccessAdapter_Init:186) Identify aircraft series is Matrice 300 Series
[0.380][adapter]-[Info]-[DjiAccessAdapter_Init:206) Identify mount position type is Payload Port Type
[0.387][adapter]-[Info]-[DjiAccessAdapter_Init:301) Identity uart0 baudrate is 460800 bps
[0.888][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 3, cmdSet = 60, cmdId = 61
[1.389][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 2, cmdSet = 60, cmdId = 61
[1.891][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 1, cmdSet = 60, cmdId = 61
[2.392][linker]-[Error]-[DjiCommand_SendAsyncHandle:887) Command async send error 0
[2.392][linker]-[Error]-[DjiCommand_SendSync:488) sendSync callback timeout
[2.392][infor]-[Error]-[DjiSdkAdapterType_GetOnPayloadPort:68) Get SDK adapter type command error
[2.392][adapter]-[Error]-[DjiPayloadNegotiate_Init:151) Get sdk adapter failed, errno:0x000000E1
[2.392][adapter]-[Error]-[DjiAccessAdapter_Init:312) Payload negotiate error, returnCode = 225
[2.392][adapter]-[Error]-[DjiAccessAdapter_Init:318) Payload negotiate error, returnCode = 225
[2.392][core]-[Error]-[DjiCore_Init:121) Access adapter init error, stat:225
[2.393][user]-[Error]-[main:130) Core init error
想问一下,这个问题要怎么解决?
-
飞机固件和skyport 固件均已是最新版本,分别是V07.00.0100和V01.03.0500,硬件连接是直接从环上的接口处引出来的线,这样子连接我们之前在另一块板子上跑过。现在的情况就是,硬件连接部分没动过,飞机这边也没动过,将负载换了一块嵌入式linux系统板就跑不起来了,日志内容很少,我就直接贴在连接图下方了
日志内容
[32m[0.001][core]-[Info]-[DjiCore_Init:101) Payload SDK Version : V3.5.0-beta.0-build.1765 [0m
[37m[0.002][utils]-[Debug]-[DjiCore_RootTask:131) work execution time: [0m
[37m[0.002][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms) [0m
[37m[0.002][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 0 [0m
[37m[0.002][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 0 0 [0m
[37m[0.021][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0 [0m
[37m[0.021][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0A06->0x0300 0x03FD [0m
[37m[0.041][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0A06->0x0300 0x03FD [0m
[37m[0.061][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0A06->0x0300 0x03FD [0m
[37m[0.081][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0A06->0x0300 0x03FD [0m
[37m[0.101][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0A06->0x0300 0x03FD [0m
[37m[0.124][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0 [0m
[37m[0.133][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0 [0m
[37m[0.133][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.153][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.173][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.193][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.213][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.236][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0 [0m
[37m[0.245][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0 [0m
[37m[0.245][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.265][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.285][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.305][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.326][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.348][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0 [0m
[37m[0.357][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0 [0m
[37m[0.357][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.364][linker]-[Debug]-[DjiProtocol_v1Unpack:213) V1-Recv: 0x0503->0x0507 0x03FD [0m
[37m[0.377][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x03FD [0m
[37m[0.380][linker]-[Debug]-[DjiLinker_DeInit:164) deinit linker success, protocol:2, channelId:0 [0m
[32m[0.380][adapter]-[Info]-[DjiAccessAdapter_Init:186) Identify aircraft series is Matrice 300 Series [0m
[32m[0.380][adapter]-[Info]-[DjiAccessAdapter_Init:206) Identify mount position type is Payload Port Type [0m
[37m[0.380][linker]-[Debug]-[DjiCommand_Init:157) config list channel id:2 [0m
[37m[0.386][linker]-[Debug]-[DjiLinker_Init:124) init linker success, protocol:2, channelId:0 [0m
[37m[0.386][linker]-[Debug]-[DjiCommand_Init:166) add linker node count:1 [0m
[32m[0.386][adapter]-[Info]-[DjiAccessAdapter_Init:301) Identity uart0 baudrate is 460800 bps [0m
[37m[0.386][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x3C3D [0m
[37m[0.386][linker]-[Debug]-[DjiCommand_SendAsync:435) Max wait ack item count is 32. [0m
[33m[0.887][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 3, cmdSet = 60, cmdId = 61 [0m
[37m[0.887][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x3C3D [0m
[37m[1.068][utils]-[Debug]-[DjiCore_RootTask:131) work execution time: [0m
[37m[1.068][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms) [0m
[37m[1.068][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 1 1 [0m
[37m[1.068][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 1 1 [0m
[37m[1.068][utils]-[Debug]-[DjiCore_RootTask:134) commandTask 0 0 [0m
[33m[1.389][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 2, cmdSet = 60, cmdId = 61 [0m
[37m[1.389][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x3C3D [0m
[33m[1.890][linker]-[Warn]-[DjiCommand_SendAsyncHandle:875) Command async send retry: index = 0, retryTimes = 1, cmdSet = 60, cmdId = 61 [0m
[37m[1.890][linker]-[Debug]-[DjiProtocol_v1Pack:122) V1-Send: 0x0507->0x0503 0x3C3D [0m
[37m[2.135][utils]-[Debug]-[DjiCore_RootTask:131) work execution time: [0m
[37m[2.135][utils]-[Debug]-[DjiCore_RootTask:132) name execution time (ms) max execution time (ms) [0m
[37m[2.135][utils]-[Debug]-[DjiCore_RootTask:134) recorderWork 0 1 [0m
[37m[2.135][utils]-[Debug]-[DjiCore_RootTask:134) flowControllerTask 1 1 [0m
[37m[2.135][utils]-[Debug]-[DjiCore_RootTask:134) commandTask 1 1 [0m
[31m[2.391][linker]-[Error]-[DjiCommand_SendAsyncHandle:887) Command async send error 0 [0m
[37m[2.391][linker]-[Debug]-[DjiCommand_SendAsyncHandle:906) Timeout func deal about: 0 ms [0m
[31m[2.391][linker]-[Error]-[DjiCommand_SendSync:488) sendSync callback timeout [0m
[31m[2.391][infor]-[Error]-[DjiSdkAdapterType_GetOnPayloadPort:68) Get SDK adapter type command error [0m
[31m[2.391][adapter]-[Error]-[DjiPayloadNegotiate_Init:151) Get sdk adapter failed, errno:0x000000E1 [0m
[31m[2.391][adapter]-[Error]-[DjiAccessAdapter_Init:312) Payload negotiate error, returnCode = 225 [0m
[31m[2.391][adapter]-[Error]-[DjiAccessAdapter_Init:318) Payload negotiate error, returnCode = 225 [0m
[31m[2.391][core]-[Error]-[DjiCore_Init:121) Access adapter init error, stat:225 [0m
[31m[2.391][user]-[Error]-[main:131) Core init error [0m -
咱们开发环境是不是有官方的拓展转接板,可以参考这个链接用开发套件中的拓展转接板试试。 Payload SDK开发环境(https://sdk-forum.dji.net/hc/zh-cn/articles/5154963094681)
请先登录再写评论。
评论
18 条评论