90.remote-log
Function Overview
Cloud API opens the remote log function, hoping to reduce the human input and improve the efficiency when resolving the Dock problems and aircraft problems. Remote log supports the upload of Dock log and aircraft log. The cloud server requests the log file list from the device, and the device responds and uploads the file list.
Take the Demo of remote log for example, Users can get the log file list through the get the uploadable file list of the designated device interface and display the list on the Web page. Users select the log files in need, the cloud server starts the upload mission through the start the file upload interface and the device uploads the corresponding files. The mission can be canceled by file upload update during the uploading process. The progress of file uploading can be displayed on Web page through the file upload progress interface.
Object storage is used for the log file storage. If users have problems, you can download the log of that period from the cloud server and contact our after-sales colleagues through [email protected].
Note: Currently after the log starts to upload, pause the upload mission, restart after the pause, and reject the upload mission are not supported.
Interaction Sequence Diagram
sequenceDiagram
participant client as DJI Dock
participant app_server as Cloud Server
participant storage as Object Storage
app_server ->> client : Get the uploadable file list of the designated device<br/>Topic: thing/product/{gateway_sn}/services<br/>Method:fileupload_list
client ->> app_server : Device returns the log file list<br/>Topic: thing/product/{gateway_sn}/services_reply
app_server ->> client : Start the file upload<br/>Topic: thing/product/{gateway_sn}/services<br/>Method:fileupload_start
client -->> app_server : Device responses<br/>Topic: thing/product/{gateway_sn}/services_reply
app_server ->> client : Cancel the file upload(Optional)<br/>Topic: thing/product/{gateway_sn}/services<br/>Method:fileupload_update
activate client
client ->> storage : Log file upload
client ->> app_server : File upload progress report<br/>Topic: thing/product/{gateway_sn}/events<br/>Method:fileupload_progress
deactivate client
Detailed API Realization
Get the uploadable file list of the designated device
Start the file upload
Cancel the file upload
File upload progress
Last updated