osdk demo中payloads下面download_sample,运行后想要获取camera filelist...
已完成-
最新固件下字段检查不匹配,可以在OSDK代码中先将长度检查代码注释掉。 dji_file_mgr_impl.cpp ![](https://djisdksupport.zendesk.com/attachments/token/DypdhBhj5kkcI8tjZ7GWvtd9c/?name=image.png) -
麻烦将此处红框标注的地方用printf加个打印,并将完整的运行log以文档附上提供。 ![](https://djisdksupport.zendesk.com/attachments/token/lepqMvtoTctQGF3Ir0KzWG26a/?name=image.png) -
sudo ./bin/payloads_download_sample ./bin/UserConfig.txt
Read App ID
User Configuration read successfully.[1153672.125]STATUS/1 @ getDroneVersion, L1702: ret = 0
[1153672.125]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNBJ1900C008X
[1153672.125]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.93
[1153672.125]STATUS/1 @ functionalSetUp, L279: Shake hand with drone successfully by getting drone version.
[1153672.126]STATUS/1 @ legacyX5SEnableTask, L56: Legacy X5S Enable task created.
[1153673.126]STATUS/1 @ sendHeartbeatToFCTask, L1576: OSDK send heart beat to fc task created.
[1153673.326]STATUS/1 @ Control, L40: The control class is going to be deprecated.It will be better to use the FlightController class instead!
[1153673.326]STATUS/1 @ FileMgrImpl, L253: register download file callback handler successfully.
[1153673.345]STATUS/1 @ Firewall, L45: Firewall is initializing ...
[1153673.345]STATUS/1 @ Firewall, L65: osdk policy file updating(1) ......
[1153674.346]STATUS/1 @ Firewall, L73: osdk policy file updating(2) ......
[1153674.354]STATUS/1 @ RequestUploadPolicyFileHandle, L217: request upload policy file type:0
[1153674.354]STATUS/1 @ RequestUploadPolicyFileHandle, L234: Upload policy file info md5 checksum and version
[1153674.356]STATUS/1 @ RequestUploadPolicyFileHandle, L217: request upload policy file type:1
[1153674.356]STATUS/1 @ RequestUploadPolicyFileHandle, L254: request upload policy file data: 0 0 200
[1153674.358]STATUS/1 @ RequestUploadPolicyFileHandle, L217: request upload policy file type:1
[1153674.358]STATUS/1 @ RequestUploadPolicyFileHandle, L254: request upload policy file data: 1 200 175
[1153674.361]STATUS/1 @ RequestUploadPolicyFileHandle, L217: request upload policy file type:2
[1153674.361]STATUS/1 @ RequestUploadPolicyFileHandle, L282: request upload policy file success
[1153675.347]STATUS/1 @ firewallTask, L112: firewall task created ...
[1153675.365]STATUS/1 @ getDroneVersion, L1702: ret = 0
[1153675.365]STATUS/1 @ parseDroneVersionInfo, L1122: Device Serial No. = 1ZNBJ1900C008X
[1153675.365]STATUS/1 @ parseDroneVersionInfo, L1124: Firmware = 3.4.8.93
[1153675.392]STATUS/1 @ AdvancedSensing, L110: Start bulk channel for M300's liveview!
[1153675.393]STATUS/1 @ AdvancedSensing, L117: Create task for M300's liveview!
[1153675.396]STATUS/1 @ AdvancedSensing, L125: Start bulk channel for M300's perception
[1153675.396]STATUS/1 @ AdvancedSensing, L132: Create task for M300's advanced sensing!
[1153675.396]STATUS/1 @ AdvancedSensing, L135: Advanced Sensing init for the M300 drone
[1153675.396]STATUS/1 @ LiveViewImpl, L89: Finding if liveview stream is available now.
[1153676.197]STATUS/1 @ init, L254: Start advanced sensing initalization
[1153676.197]STATUS/1 @ activate, L1329: version 0x304085D[1153676.205]STATUS/1 @ activate, L1367: Activation successful
| [a] Download main camera filelist |
| [b] Download main camera filedata from case a |
| [q] Quit |
a
[1153678.031]STATUS/1 @ main, L85: Play back mode setting......
[1153678.031]STATUS/1 @ main, L89: Get liveview right......
[1153678.033]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
[1153678.033]STATUS/1 @ main, L93: Try to download file list .......
[1153678.106]STATUS/1 @ fileListMonitorTask, L137: OSDK download monitor task created.
[1153680.115]STATUS/1 @ printErrorCodeMsg, L936: Execute successfully.
[1153680.115]STATUS/1 @ main, L146: Sample end ...
[1153680.794]STATUS/1 @ OnReceiveDataPack, L909: [First pack] get the first pack
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(0)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(1)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(2)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(3)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(4)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(5)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(6)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(7)
[1153680.794]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(8)
[1153680.795]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(9)
[1153680.795]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(10)
[1153680.795]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(11)
[1153680.795]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(12)
[1153680.807]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(13)
[1153680.807]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(14)
[1153680.807]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(15)
[1153680.808]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(962) sessid(999) seq(16)| [a] Download main camera filelist |
| [b] Download main camera filedata from case a |
| [q] Quit |
[1153683.139]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(17)
[1153683.139]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(18)
[1153683.139]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(19)
[1153683.139]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(20)
[1153683.139]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(21)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(22)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(23)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(24)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(25)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(26)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(27)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(28)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(29)
[1153683.148]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(30)
[1153683.155]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(31)
[1153683.155]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(32)
[1153683.155]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(1003) sessid(999) seq(33)
[1153683.155]STATUS/1 @ OnReceiveDataPack, L914: rsp : version(1) headerlen(10) taskid(0) funcid(1) msgflag(0) msglen(313) sessid(999) seq(34)
[1153689.157]STATUS/1 @ fileListMonitorTask, L153: curTimeMs:1153689157 refreshTimeMs:1153683155
[1153689.157]ERRORLOG/1 @ fileListMonitorTask, L154: downloadMonitorTask timeout!! device type : 1 index: 0
[1153689.157]STATUS/1 @ SendAbortPack, L959: SendAbortPack
[1153689.158]STATUS/1 @ fileListReqCB, L34: ##[Download main camera file list] : ret = 255
[1153689.158]STATUS/1 @ fileListMonitorTask, L164: Finish req filelist task cause of timeout, reset downloadState to be DOWNLOAD_IDLE -
log看起来是有进到parseFileList中,机载计算机是什么平台?可以debug一下是不是在这里退出去了。我这边运行是正常的。 ![](https://djisdksupport.zendesk.com/attachments/token/cFhZKYymPB7VM6t3W2x1rDj3A/?name=image.png) 另外可以先将SD卡格式化一下,然后只拍一张照片试试。
请先登录再写评论。
评论
9 条评论