Method and apparatus for data interaction between drone PAD and web terminals and server

By employing a multi-factor authentication method involving both the drone's PAD and web interfaces with the server, the computational complexity and resource consumption issues associated with data interaction between the drone device and the server are resolved, achieving efficient and secure data exchange.

CN116233099BActive Publication Date: 2026-05-26STATE GRID FUJIAN ELECTRIC POWER RES INST +3
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
STATE GRID FUJIAN ELECTRIC POWER RES INST
Filing Date
2022-12-29
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing drone devices have complex computational interactions with servers, consume a lot of computing resources, have low frame rates, and video stabilization algorithms may cause image jitter, which cannot meet the data interaction requirements.

Method used

By using TCP and WebSocket connections and employing multiple authentication methods, including signature comparison, token verification, and business logic validation, port usage is reduced, machine resources are saved, and efficient data interaction between the drone PAD and Web client and the server is achieved.

Benefits of technology

It enables efficient data interaction between the drone's PAD and Web terminals and the server, reducing port usage and machine resource consumption, and ensuring secure data exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233099B_ABST
    Figure CN116233099B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for data interaction between a drone's PAD and web-based terminals and a server. The method includes: after establishing a connection between the drone's PAD and the server, sending parameter information to the server; after successful authentication by the server, receiving and storing or forwarding private data information sent by the drone's PAD; and after establishing a connection between the drone's web-based terminal and the server, sending parameter information to the server; the server performing token verification, signature verification, and business logic verification to complete authentication; after successful authentication by the server, receiving and forwarding response information sent by the drone's web-based terminal. This invention effectively avoids malicious request attacks and bandwidth waste, saving machine resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method and apparatus for data interaction between a UAV PAD (Portable Android device) and a Web (World Wide Web) terminal and a server. Background Technology

[0002] This section is intended to provide background or context for the embodiments of the invention set forth in the claims. The description herein is not an admission that it is prior art simply because it is included in this section.

[0003] In the field of data transmission and interaction between various drone devices and servers, existing technologies are computationally complex and resource-intensive. Publicly available algorithms are mostly implemented based on CPUs (Central Processing Units), resulting in low frame rates. In addition, some algorithms (such as the video stabilizer algorithm provided by NVIDIA) can cause abnormal image jitter after processing relatively stable input video footage, failing to meet the current needs of data interaction between various drone devices and servers. Summary of the Invention

[0004] This invention provides a method for data interaction between a drone PAD and a server, which reduces port usage, saves machine resources, and efficiently and conveniently enables data interaction between the drone PAD and the server, achieving secure data communication. The drone PAD successfully establishes a connection with the server via TCP (Transfer Control Protocol). This method is applied to the server and includes:

[0005] Receive the first authentication request sent by the drone PAD terminal. The first authentication request carries first parameter information, which includes a first signature.

[0006] Assemble the first parameter information to generate a second signature, and compare the second signature with the first signature; after the comparison is consistent, detect the drone's live streaming status based on the first parameter information; when the drone's live streaming status is live, generate a first token and send the first token to the drone's PAD terminal;

[0007] Receive private data information sent by the drone PAD, including a second token;

[0008] The second token is compared with the first token; if they match, the private data information is stored.

[0009] This invention also provides a device for data interaction between a drone PAD and a server, which reduces port usage, saves machine resources, and efficiently and conveniently enables data interaction between the drone PAD and the server, achieving secure data communication. The drone PAD successfully establishes a connection with the server via TCP. This device is applied to the server and includes:

[0010] The first receiving module is used to receive the first authentication request sent by the drone PAD after success. The first authentication request carries first parameter information, which includes a first signature.

[0011] The comparison and sending module is used to assemble the first parameter information to generate a second signature, and compare the second signature with the first signature; after the comparison is consistent, the drone live broadcast status is detected according to the first parameter information; when the drone live broadcast status is live, a first token is generated and the first token is sent to the drone PAD terminal;

[0012] The second receiving module is used to receive private data information sent by the drone PAD terminal, and the private data information includes a second token;

[0013] The comparison and storage module is used to compare the second token with the first token; after the comparison matches, it stores private data information.

[0014] This invention also provides a method for data interaction between a drone's web application and a server, which reduces port usage, saves machine resources, and efficiently and conveniently enables data interaction between the drone's web application and the server, achieving secure data exchange. The method involves the drone's web application successfully establishing a connection with the server via WebSocket. The method is applied to the server and includes:

[0015] Receive a second authentication request sent by the drone's web client. The second authentication request carries second parameter information, which includes a third signature and a third token obtained from the server after the drone's web client successfully logs in.

[0016] The system checks if the third token is valid. After confirming the validity of the third token, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. If the comparison matches, it checks the drone's live streaming status based on the second parameter information. If the drone's live streaming status is "live streaming", it checks if the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone's PAD.

[0017] The system receives the response information assembled by the drone's PAD based on the second parameter information, authenticates the response information, and forwards the response information to the drone's web client for rendering after successful authentication.

[0018] This invention also provides a device for data interaction between a drone's web application and a server, which reduces port usage, saves machine resources, and efficiently and conveniently enables data interaction between the drone's web application and the server, achieving secure data exchange. The drone's web application successfully establishes a connection with the server via WebSocket. This device is applied to the server and includes:

[0019] The third receiving module is used to receive the second authentication request sent by the drone's web client. The second authentication request carries second parameter information, which includes a third signature and a third token obtained from the server after the drone's web client successfully logs in.

[0020] The detection and forwarding module is used to detect whether the third token is valid. After confirming that the third token is valid, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. After the comparison is consistent, it detects the drone's live broadcast status based on the second parameter information. When the drone's live broadcast status is live, it detects whether the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone's PAD.

[0021] The authentication and forwarding module is used to receive the response information assembled by the drone PAD based on the second parameter information, authenticate the response information, and forward the response information to the drone web client for rendering after successful authentication.

[0022] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-described method for data interaction between the UAV PAD terminal and the Web terminal and the server.

[0023] This invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned method for data interaction between the UAV PAD and Web terminals and the server.

[0024] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-described method for data interaction between the UAV PAD terminal and the Web terminal and the server.

[0025] In this embodiment of the invention, compared with the prior art, after the drone PAD successfully establishes a TCP connection with the server, the server receives a first authentication request sent by the drone PAD. The first authentication request carries first parameter information, including a first signature. The server assembles the first parameter information to generate a second signature and compares the second signature with the first signature. If the comparison matches, the server detects the drone's live streaming status based on the first parameter information. If the drone's live streaming status is "live streaming," a first token is generated and sent to the drone PAD. The server receives private data information sent by the drone PAD, including a second token. The server compares the second token with the first token. If the comparison matches, the server stores the private data information. Thus, after the drone PAD establishes a TCP connection with the server and sends the first parameter information, the server performs multi-factor authentication. After successful multi-factor authentication, the server stores the private data information sent by the PAD. This not only reduces port usage and saves machine resources, but also efficiently and conveniently realizes data interaction between the drone PAD and the server, and achieves secure data interoperability.

[0026] In this embodiment of the invention, compared with the prior art, after the drone's web client successfully establishes a connection with the server via WebSocket, the server receives a second authentication request sent by the drone's web client. The second authentication request carries second parameter information, including a third signature and a third token obtained by the drone's web client from the server after successful login. The server checks whether the third token is valid. After confirming the validity of the third token, the server assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. If the comparison matches, the server checks the drone's live streaming status based on the second parameter information. If the drone's live streaming status is "live streaming," the server checks whether the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, the server forwards the second parameter information to the drone's PAD. The server receives the response information assembled by the drone's PAD based on the second parameter information, authenticates the response information, and forwards the response information to the drone's web client for rendering after successful authentication. Thus, by adding multiple authentication methods—token verification, signature verification, and business logic verification—in the data interaction between the drone's web client and the server, not only is port usage reduced and machine resources saved, but data interaction between the drone's PAD and the server is also realized efficiently and conveniently, and secure data interoperability is also achieved. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0028] Figure 1 This is a flowchart illustrating the data interaction method between the UAV PAD and the server in an embodiment of the present invention.

[0029] Figure 2 This is an example diagram illustrating the detection of drone live streaming status based on the first parameter information in an embodiment of the present invention;

[0030] Figure 3 This is a flowchart of the data interaction method between the UAV web client and the server in an embodiment of the present invention;

[0031] Figure 4 This is an example diagram illustrating how the server detects the validity of a third token in an embodiment of the present invention.

[0032] Figure 5 This is a schematic diagram of the data interaction device between the drone PAD and the server in an embodiment of the present invention;

[0033] Figure 6 This is a schematic diagram of the data interaction device between the drone's web client and the server in an embodiment of the present invention. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0035] To address the technical problems existing in the prior art, this invention proposes a method for data interaction between a drone PAD and a server, which reduces port usage, saves machine resources, and efficiently and conveniently enables data interaction between the drone PAD and the server, achieving secure data exchange. Figure 1 This is a flowchart of the data interaction method between the drone PAD and the server in an embodiment of the present invention, as shown below. Figure 1 As shown, the drone's PAD successfully established a connection with the server via TCP. This method is applied to the server and includes:

[0036] Step 101: The server receives a first authentication request sent by the drone PAD terminal. The first authentication request carries first parameter information, which includes a first signature.

[0037] Step 102: The server assembles the first parameter information to generate a second signature and compares the second signature with the first signature; after the comparison is consistent, the server detects the drone's live streaming status based on the first parameter information; when the drone's live streaming status is "live streaming", the server generates a first token and sends the first token to the drone's PAD terminal.

[0038] Step 103: The server receives private data information sent by the drone PAD, which includes a second token.

[0039] Step 104: The server compares the second token with the first token; if they match, the server stores the private data information.

[0040] In one embodiment, the first parameter information further includes:

[0041] One or any combination of the following: drone serial number, timestamp in seconds, and fixed salt;

[0042] The first signature is generated based on one or any combination of the drone's SN (Serial Number), timestamp in seconds, and a fixed salt.

[0043] In practice, after the drone PAD successfully establishes a connection with the server via TCP, it sends a first authentication request to the server. This first authentication request carries first parameter information, including a first signature. Upon receiving the first authentication request, the server assembles the first parameter information to generate a second signature and compares it with the received first signature. If they match, the process proceeds to the next step; otherwise, it exits. The server uses the received first parameter information to check if the drone has applied for live streaming. If it confirms that the drone is live streaming, the process proceeds to the next step; otherwise, it exits. After successful authentication, the server generates a first token and returns it to the drone PAD. The drone PAD sends private data information to the server, including a second token. The server compares the second token with the first token. If they match, the server stores the private data information and forwards it later; otherwise, it exits.

[0044] In practice, after the drone PAD successfully establishes a connection with the server via TCP, it sends the first parameter information to the server. The first parameter information includes the first signature, as well as one or any combination of the drone SN, the timestamp in seconds, and a fixed salt. The first signature can be generated based on one or any combination of the drone SN, the timestamp in seconds, and the fixed salt.

[0045] Figure 2 This is an example diagram illustrating the detection of drone live streaming status based on the first parameter information in an embodiment of the present invention, such as... Figure 2As shown, in this embodiment of the invention, detecting the live streaming status of a drone based on the first parameter information may include:

[0046] Step 201: Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD terminal applied for live streaming; the live streaming record information includes: drone SN and drone live streaming status;

[0047] Step 202: Determine the drone's live streaming status based on the live streaming record information.

[0048] In practice, after receiving the parameter information, the server compares the live streaming record information stored on the server when the drone PAD applied for live streaming with the drone's SN. If the drone's live streaming status is "live streaming", the next step is performed; otherwise, a verification failure is returned to the drone PAD.

[0049] In one embodiment, when the drone is in live streaming status, a TCP authentication token based on the drone's serial number (SN) is generated, and the mapping between the first token and the drone's SN is recorded.

[0050] In practice, the server generates a first token and a TCP authentication tag based on the drone's serial number (SN), and records the mapping between the first token and the drone's SN; the generated first token is sent to the drone's PAD for secondary verification between the drone's PAD and the server; the generated TCP authentication tag based on the drone's SN is used for secondary verification between the drone's web interface and the server; and the drone's PAD sends private data information to the server.

[0051] In one embodiment, the private data information further includes: drone flight control information and / or drone PAD terminal information.

[0052] In practice, after receiving the private data information, the server compares the second token in the private data information with the first token. If the comparison is consistent, it means that the drone SN corresponding to the first token exists, and that the drone's TCP authentication is successful. At the same time, it also means that the drone's communication with the server is secure and normal.

[0053] Figure 3 This is a flowchart of the data interaction method between the UAV web client and the server in an embodiment of the present invention, as shown below. Figure 3 As shown, after the drone successfully establishes a connection with the server via WebSocket on the web interface, the method includes:

[0054] Step 301: The server receives a second authentication request sent by the drone's web client. The second authentication request carries second parameter information, which includes a third signature and a third token obtained from the server after the drone's web client successfully logs in.

[0055] Step 302: The server checks whether the third token is valid. After confirming that the third token is valid, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. After the comparison is consistent, it checks the drone's live streaming status based on the second parameter information. When the drone's live streaming status is live, it checks whether the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone's PAD.

[0056] Step 303: The server receives the response information assembled by the drone PAD based on the second parameter information, authenticates the response information, and forwards the response information to the drone Web client for rendering after successful authentication.

[0057] In practice, after the web client successfully establishes a connection with the server via WebSocket, it sends a second authentication request to the server. This request carries second parameter information, including a third signature and a third token obtained from the server after the drone's web client successfully logs in. Upon receiving the third token, the server checks its validity. If valid, it proceeds to the next step; otherwise, it exits. The server then assembles the second parameter information to generate a fourth signature and compares it with the received third signature. If they match, it proceeds to the next step; otherwise, it exits. The server checks if the drone is currently live-streaming. If confirmed, it proceeds to the next step; otherwise, it exits. Based on the received second parameter information, the server checks if the drone and server have completed TCP authentication. If confirmed, it proceeds to the next step; otherwise, it exits. The server forwards the second parameter information sent by the drone's web client to the drone's PAD. The drone's PAD receives the second parameter information, assembles it to generate a response, and sends it to the server. The server authenticates the received response. If authentication is successful, the server forwards the response to the drone's web client and renders it. Figure 4 This is an example diagram illustrating how the server detects the validity of a third token in an embodiment of the present invention. Figure 4 As shown in this embodiment of the invention, the server detecting the third token may include:

[0058] Step 401: The server retrieves the fourth token generated when the drone successfully logged in via the web interface;

[0059] Step 402: Compare the fourth token with the third token; if they match, the third token is confirmed to be valid.

[0060] In one embodiment, the second parameter information further includes:

[0061] Flight route request, pod request, UAV serial number, channel number, timestamp in seconds, fixed salt, or any combination thereof;

[0062] The third signature is generated based on one or any combination of the following: route request, pod request, UAV serial number, channel number, timestamp seconds, and fixed salt.

[0063] In one embodiment, detecting the drone live streaming status based on the second parameter information includes:

[0064] Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status;

[0065] The drone's live streaming status is determined based on the live streaming record information.

[0066] In one embodiment, the response information includes: flight path results, pod results, and a first token generated by the server and sent to the drone PAD when the drone is in live streaming status;

[0067] Authentication of response information includes:

[0068] Based on the first token in the response information and the recorded mapping between the first token and the drone SN, determine whether there is a drone SN corresponding to the first token;

[0069] After successful authentication, the response information will be forwarded to the drone's web interface for rendering, including:

[0070] Upon confirming the existence of a drone SN corresponding to the first token, the response information is assembled into the drone SN and forwarded to the drone web client for rendering.

[0071] Figure 5 This is a schematic diagram of the apparatus in the method for data interaction between the drone PAD and the server in an embodiment of the present invention, as shown below. Figure 5 As shown, the drone's PAD successfully established a connection with the server via TCP. The device includes:

[0072] The first receiving module 501 is used to receive a first authentication request sent by the UAV PAD terminal. The first authentication request carries first parameter information, which includes a first signature.

[0073] The comparison and sending module 502 is used to assemble the first parameter information to generate a second signature, compare the second signature with the first signature; after the comparison is consistent, detect the drone live broadcast status according to the first parameter information; when the drone live broadcast status is live, generate a first token and send the first token to the drone PAD terminal;

[0074] The second receiving module 503 is used to receive private data information sent by the drone PAD terminal, the private data information including the second token;

[0075] The comparison and storage module 504 is used to compare the second token with the first token; after the comparison matches, it stores private data information.

[0076] In one embodiment, the first parameter information further includes:

[0077] One or any combination of the following: drone serial number, timestamp in seconds, and fixed salt;

[0078] The first signature is generated based on one or any combination of the drone's serial number (SN), timestamp in seconds, and a fixed salt.

[0079] In one embodiment, the comparison sending module 502 is further configured to:

[0080] Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status;

[0081] The drone's live streaming status is determined based on the live streaming record information.

[0082] In one embodiment, the comparison sending module 502 is specifically used for:

[0083] When the drone is in live streaming status, a TCP authentication token based on the drone's serial number (SN) is generated, and the mapping between the first token and the drone's SN is recorded.

[0084] In one embodiment, the private data information further includes: drone flight control information and / or drone PAD terminal information.

[0085] Figure 6 This is a schematic diagram of the apparatus in the method for data interaction between a drone's web client and a server in an embodiment of the present invention, such as... Figure 6 As shown, the drone's web interface successfully established a connection with the server via WebSocket. The device includes:

[0086] The third receiving module 601 is used to receive the second authentication request sent by the drone's web terminal. The second authentication request carries second parameter information, which includes a third signature and a third token obtained from the server after the drone's web terminal successfully logs in.

[0087] The detection and forwarding module 602 is used to detect whether the third token is valid. After confirming that the third token is valid, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. After the comparison is consistent, it detects the drone's live broadcast status based on the second parameter information. When the drone's live broadcast status is live, it detects whether the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone's PAD.

[0088] The authentication and forwarding module 603 is used to receive the response information assembled by the drone PAD terminal based on the second parameter information, authenticate the response information, and forward the response information to the drone web terminal for rendering after successful authentication.

[0089] In one embodiment, the detection and forwarding module 602 is specifically used for:

[0090] The server searches for the fourth token generated when the drone successfully logs in via the web interface.

[0091] The fourth token is compared with the third token; if they match, the third token is confirmed to be valid.

[0092] In one embodiment, the second parameter information further includes:

[0093] Flight route request, pod request, UAV serial number, channel number, timestamp in seconds, fixed salt, or any combination thereof;

[0094] The third signature is generated based on one or any combination of the following: route request, pod request, UAV serial number, channel number, timestamp seconds, and fixed salt.

[0095] In one embodiment, the detection and forwarding module 602 is specifically used for:

[0096] Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status;

[0097] In one embodiment, the response information includes: flight path results, pod results, and a first token generated by the server and sent to the drone PAD when the drone is in live streaming status;

[0098] The authentication and forwarding module 603 is specifically used for:

[0099] Based on the first token in the response information and the recorded mapping between the first token and the drone SN, determine whether there is a drone SN corresponding to the first token;

[0100] Upon confirming the existence of a drone SN corresponding to the first token, the response information is assembled into the drone SN and forwarded to the drone web client for rendering.

[0101] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the above-mentioned method for data interaction between the UAV PAD terminal and the Web terminal and the server.

[0102] This invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned method for data interaction between the UAV PAD terminal and the Web terminal and the server.

[0103] This invention also provides a computer program product, which includes a computer program that, when executed by a processor, implements the above-mentioned method for data interaction between the UAV PAD terminal and the Web terminal and the server.

[0104] In summary, in this embodiment of the invention, compared with the prior art, after the drone PAD successfully establishes a TCP connection with the server, the server receives a first authentication request sent by the drone PAD. The first authentication request carries first parameter information, including a first signature. The server assembles the first parameter information to generate a second signature and compares the second signature with the first signature. If the comparison is consistent, the server detects the drone's live streaming status based on the first parameter information. If the drone's live streaming status is "live streaming," a first token is generated and sent to the drone PAD. The server receives private data information sent by the drone PAD, including a second token. The server compares the second token with the first token. If the comparison is consistent, the server stores the private data information. Thus, after the drone PAD establishes a TCP connection with the server and sends the first parameter information, the server performs multi-factor authentication. After successful multi-factor authentication, the server stores the private data information sent by the PAD. This not only reduces port usage and saves machine resources, but also efficiently and conveniently realizes data interaction between the drone PAD and the server, and achieves secure data interoperability.

[0105] In this embodiment of the invention, compared with the prior art, after the drone's web client successfully establishes a connection with the server via WebSocket, the server receives a second authentication request sent by the drone's web client. The second authentication request carries second parameter information, including a third signature and a third token obtained by the drone's web client from the server after successful login. The server checks whether the third token is valid. After confirming the validity of the third token, the server assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. If the comparison matches, the server checks the drone's live streaming status based on the second parameter information. If the drone's live streaming status is "live streaming," the server checks whether the drone and the server have completed TCP authentication. After confirming that TCP authentication has been completed, the server forwards the second parameter information to the drone's PAD. The server receives the response information assembled by the drone's PAD based on the second parameter information, authenticates the response information, and forwards the response information to the drone's web client for rendering after successful authentication. Thus, by adding multiple authentication methods—token verification, signature verification, and business logic verification—in the data interaction between the drone's web client and the server, not only is port usage reduced and machine resources saved, but data interaction between the drone's PAD and the server is also realized efficiently and conveniently, and secure data interoperability is also achieved.

[0106] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0107] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0108] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0109] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0110] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for data interaction between a UAV PAD end and a Web end and a server, characterized in that, The drone PAD establishes a connection with the server via TCP, and the method is applied to the server, including: The system receives a first authentication request sent by the drone's PAD terminal. The first authentication request carries first parameter information, which includes a first signature. The first signature is generated based on the remaining information in the first parameter information, excluding the first signature. Assemble the first parameter information to generate a second signature, and compare the second signature with the first signature; After the comparison is consistent, the drone's live streaming status is detected based on the first parameter information; when the drone's live streaming status is "live streaming", a first token is generated and sent to the drone's PAD terminal; Receive private data information sent by the drone PAD, including a second token; The second token is compared with the first token; if they match, the private data information is stored. The drone's web interface establishes a connection with the server via WebSocket. The system receives a second authentication request sent from the drone's web client. The second authentication request carries second parameter information, which includes a third signature. The third signature is generated based on the remaining information in the second parameter information, excluding the third signature. The third token is obtained from the server after the drone successfully logs in via the web client. The system checks whether the third token is valid. After confirming the validity of the third token, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. If the comparison is consistent, it checks the drone's live streaming status based on the second parameter information. If the drone's live streaming status is "live streaming", it checks whether the drone PAD and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone PAD. The system receives the response information assembled by the drone's PAD based on the second parameter information, authenticates the response information, and forwards the response information to the drone's web client for rendering after successful authentication.

2. The method as described in claim 1, characterized in that, The first parameter information also includes: The drone's serial number (SN), timestamp in seconds, or fixed salt, or any combination thereof.

3. The method as described in claim 2, characterized in that, The drone's live streaming status is detected based on the first parameter information, including: Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status; The drone's live streaming status is determined based on the live streaming record information.

4. The method as described in claim 1, characterized in that, Also includes: When the drone is in live streaming status, a TCP authentication token based on the drone's serial number (SN) is generated, and the mapping between the first token and the drone's SN is recorded.

5. The method as described in claim 1, characterized in that, Private data information also includes: drone flight control information, and / or PAD identification information on the drone PAD.

6. The method as described in claim 1, characterized in that, Detecting the validity of a third token includes: Find the fourth token generated when the drone successfully logs in via the web interface; The fourth token is compared with the third token; if they match, the third token is confirmed to be valid.

7. The method as described in claim 1, characterized in that, The second parameter information also includes: Flight route request, pod request, UAV serial number, channel number, timestamp in seconds, fixed salt, or any combination thereof.

8. The method as described in claim 7, characterized in that, The drone's live streaming status is detected based on the second parameter information, including: Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status; The drone's live streaming status is determined based on the live streaming record information.

9. The method as described in claim 1, characterized in that, The response information includes: flight path results, pod results, and the first token generated and sent by the server to the drone PAD when the drone is in live streaming status; Authentication of response information includes: Based on the first token in the response information and the recorded mapping between the first token and the drone SN, determine whether there is a drone SN corresponding to the first token; After successful authentication, the response information will be forwarded to the drone's web interface for rendering, including: Upon confirming the existence of a drone SN corresponding to the first token, the response information is assembled into the drone SN and forwarded to the drone web client for rendering.

10. A device for data interaction between a drone's PAD terminal and Web terminal and a server, characterized in that, The drone's PAD establishes a connection with the server via TCP. The device is applied to the server and includes: The first receiving module is used to receive a first authentication request sent by the UAV PAD terminal. The first authentication request carries first parameter information, which includes a first signature. The first signature is generated based on the remaining information in the first parameter information excluding the first signature. The comparison and sending module is used to assemble the first parameter information to generate a second signature, and compare the second signature with the first signature; after the comparison is consistent, the drone live broadcast status is detected according to the first parameter information; when the drone live broadcast status is live, a first token is generated and the first token is sent to the drone PAD terminal; The second receiving module is used to receive private data information sent by the drone PAD terminal, and the private data information includes a second token; The comparison and storage module is used to compare the second token with the first token; after the comparison matches, it stores private data information. The drone's web interface establishes a connection with the server via WebSocket. The third receiving module is used to receive the second authentication request sent by the UAV Web client. The second authentication request carries second parameter information, which includes one or any combination of the third signature, flight path request, pod request, UAV SN, channel number, timestamp in seconds, and fixed salt. The third signature is generated based on one or any combination of the flight path request, pod request, UAV SN, channel number, timestamp in seconds, and fixed salt. The third token is obtained from the server after the UAV Web client successfully logs in. The detection and forwarding module is used to detect whether the third token is valid. After confirming that the third token is valid, it assembles the second parameter information to generate a fourth signature and compares the fourth signature with the third signature. After the comparison is consistent, it detects the drone's live streaming status based on the second parameter information. When the drone's live streaming status is live, it detects whether the drone PAD and the server have completed TCP authentication. After confirming that TCP authentication has been completed, it forwards the second parameter information to the drone PAD. The authentication and forwarding module is used to receive the response information assembled by the drone PAD based on the second parameter information, authenticate the response information, and forward the response information to the drone web client for rendering after successful authentication.

11. The apparatus as claimed in claim 10, characterized in that, The first parameter information also includes: The drone's serial number (SN), timestamp in seconds, or fixed salt, or any combination thereof.

12. The apparatus as claimed in claim 11, characterized in that, The comparison and sending module is specifically used for: Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status; The drone's live streaming status is determined based on the live streaming record information.

13. The apparatus as claimed in claim 10, characterized in that, The comparison and sending module is also used for: When the drone is in live streaming status, a TCP authentication token based on the drone's serial number (SN) is generated, and the mapping between the first token and the drone's SN is recorded.

14. The apparatus as claimed in claim 10, characterized in that, Private data information also includes: drone flight control information, and / or drone PAD terminal information.

15. The apparatus as claimed in claim 10, characterized in that, The detection and forwarding module is specifically used for: Find the fourth token generated when the drone successfully logs in via the web interface; The fourth token is compared with the third token; if they match, the third token is confirmed to be valid.

16. The apparatus as claimed in claim 10, characterized in that, The detection and forwarding module is specifically used for: Based on the drone's serial number (SN), locate the live streaming record information stored on the server when the drone's PAD requested the live stream; the live streaming record information includes: drone SN and drone live streaming status; The drone's live streaming status is determined based on the live streaming record information.

17. The apparatus as claimed in claim 10, characterized in that, The response information includes: flight path results, pod results, and the first token generated and sent by the server to the drone PAD when the drone is in live streaming status; The authentication and forwarding module is specifically used for: Based on the first token in the response information and the recorded mapping between the first token and the drone SN, determine whether there is a drone SN corresponding to the first token; Upon confirming the existence of a drone SN corresponding to the first token, the response information is assembled into the drone SN and forwarded to the drone web client for rendering.

18. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1-9.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1-9.