dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
915 stars 632 forks source link

File list and file download requests thread safety #835

Closed MH2033 closed 3 years ago

MH2033 commented 3 years ago

Can startReqFileList and startReqFileData be called from different threads at the same time? Also is it ok to make new requests before the last one is finished?

dji-dev commented 3 years ago

Agent comment from DJI SDK in Zendesk ticket #54904:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #54904:

Dear developer ,

Thank you for contacting DJI.

Because startReqFileList and startReqFileData will access the camera's SD card, and about the file protection, it is not recommended to use multiple threads to access at the same time, it may cause access errors or file damage.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

°°°

MH2033 commented 3 years ago

Thank you for your response. What about sequential calls? For instance calling startReqFileData on a file and then in the next line calling the same function on another file

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #54904:

Dear developer ,

Thank you for contacting DJI.

It is feasible, if the access fails occasionally, it can be delayed appropriately.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

°°°