Task state supervision system and method for low-altitude airspace flight activity

By combining the Kafka message queue and state machine modules, the module authority dispersion and coupling problems of the mission status supervision system in low-altitude airspace flight activities are solved, real-time synchronization and visualization of mission status are achieved, and the system response efficiency and user experience are improved.

CN120673629AActive Publication Date: 2025-09-19CRSC INST OF SMART CITY RES &DESIGN
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510868591.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-09-19
Estimated Expiration
2045-06-26

AI Technical Summary

Technical Problem

In low-altitude flight activities, the existing technology has problems in the mission status monitoring system, such as dispersed module write permissions, distributed status judgment logic, tight system coupling, and undecoupled message channels, which lead to consistency risks, delayed responses and poor user experience.

Method used

The Kafka message queue module is used as a unified message bus, combined with the state machine module to judge the task status, and real-time push is achieved through the WebSocket service module to build an efficient task status supervision system, ensuring the unique control source of data and real-time update of the front end. By introducing the WebSocket mechanism to replace the polling data update mechanism to replace polling, the "front-end indication task application field" is constructed, and the "technical application phrase" is adopted: This patent can be applied to the task status supervision system and method of low-altitude airspace flight activities, involving the field of low-altitude airspace control technology.

Benefits of technology

It achieves real-time synchronization and visualization of mission status, improves the system's response efficiency and user experience, and ensures data consistency and security. It is suitable for mission approval, flight status change management, and airspace command synchronization in low-altitude flight activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120673629A_ABST
    Figure CN120673629A_ABST
Patent Text Reader

Abstract

The invention provides a task state supervision system and method for low-altitude airspace flight activities, and the system comprises an instruction issuing module which is used for obtaining a user front-end input and packaging the user front-end input into a standard instruction message; the Kafka message queue module is used for receiving and storing standard instruction messages and instruction messages and state messages from a back end and external equipment; the state machine module is used for subscribing all instruction type messages in real time, judging the flight task based on the instruction type messages and selecting whether to update the flight task state or not according to a judgment result; the WebSocket service module is used for receiving the state flow notice from the state machine module and pushing the state flow notice to the front-end display module in real time; and the front-end display module is used for dynamically updating the front-end visual page in real time according to the state transfer notification. The system is suitable for task approval, flight state change management, airspace instruction synchronization, user interface dynamic display and other core business scenes in low-altitude flight activities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of low-altitude airspace control, and in particular to a mission status monitoring system and method for low-altitude airspace flight activities. Background Art

[0002] With the advancement of low-altitude airspace opening policies, the frequency of flight missions for drones and other low-altitude aircraft is increasing. Monitoring, synchronizing, and visualizing their mission status have become crucial components of flight safety. Traditional systems typically rely on the front-end to periodically poll back-end databases or obtain mission status information through REST APIs. These systems have long update cycles and delayed responses, making them unable to meet the real-time, high-density, and complex linkage requirements of low-altitude operations.

[0003] Currently, the more similar implementation solutions include: 1. Status push through message middleware (such as MQTT), which is suitable for small-scale device notifications; 2. Some systems use Redis publish-subscribe mechanism or database triggers, but they have problems with scalability and stability in scenarios with high task density and frequent state concurrency; 3. Some high-frequency businesses use WebSocket direct connection push, but they lack a unified event middle platform, and status generation is severely coupled with front-end subscription.

[0004] And the existing technology still has the following defects: 1. Module write permissions are dispersed, allowing multiple backend services to directly modify flight plan data in the database. This can cause mission status to be repeatedly overwritten by different services, posing a serious consistency risk. 2. The state judgment logic is distributed across multiple modules and lacks unified rules, resulting in inaccurate execution condition judgments and illegal states in task flows. 3. The system generally relies on front-end polling database to implement task status update notifications, which limits the refresh frequency, causes page response lags, and leads to poor user experience; 4. The modules are tightly coupled, the message channels are not decoupled, and the interface reusability is poor, making it difficult to adapt to complex business collaboration and subsequent functional expansion. Summary of the Invention

[0005] The purpose of the present invention is to provide a mission status monitoring system and method for low-altitude airspace flight activities, aiming to solve the above-mentioned problems in the prior art.

[0006] An embodiment of the present invention provides a mission status monitoring system for low-altitude airspace flight activities, including: The instruction issuing module is connected to the Kafka message queue module, and is used to obtain the user's front-end input, encapsulate the front-end input into a standard instruction message, and transmit it to the Kafka message queue module; A Kafka message queue module, connected to the instruction issuing module and the state machine module, is used to receive and store the standard instruction messages as well as instruction messages and status messages from the backend and external devices; A state machine module is connected to the Kafka message queue module and the WebSocket service module, and is used to subscribe to all instruction messages in the Kafka message queue module in real time, judge the flight mission based on the instruction messages, and choose whether to update the flight mission status according to the judgment result; A WebSocket service module is connected to the state machine module and the front-end display module, and is used to receive state flow notifications from the state machine module and push the state flow notifications to the front-end display module in real time; The front-end display module is connected to the WebSocket service module and is used to dynamically update the front-end visualization page in real time according to the status flow notification.

[0007] An embodiment of the present invention provides a method for supervising mission status of low-altitude airspace flight activities, comprising: The command issuing module obtains the user's front-end input, encapsulates the front-end input into a standard command message, and transmits it to the Kafka message queue module; Receive and store the standard instruction messages and instruction messages and status messages from the backend and external devices through the Kafka message queue module; Subscribe to all instruction messages in the Kafka message queue module in real time through the state machine module, judge the flight mission based on the instruction messages, and decide whether to update the flight mission status based on the judgment result; Receive the state flow notification from the state machine module through the WebSocket service module, and push the state flow notification to the front-end display module in real time; The front-end display module dynamically updates the front-end visualization page in real time according to the status flow notification.

[0008] An embodiment of the present invention also provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the above-mentioned method for mission status supervision of low-altitude airspace flight activities.

[0009] An embodiment of the present invention also provides a computer-readable storage medium, on which an implementation program for information transmission is stored. When the program is executed by a processor, the steps of the above-mentioned mission status supervision method for low-altitude airspace flight activities are implemented.

[0010] The use of the embodiments of the present invention may include the following beneficial effects: The embodiments of the present invention propose a flight mission control and status visualization system based on Kafka message bus drive, combined with state machine judgment and WebSocket push mechanism. The system is suitable for core business scenarios such as mission approval, flight status change management, airspace command synchronization, and dynamic display of user interface in low-altitude flight activities, providing effective technical support for low-altitude operation management. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 2. It is a schematic diagram of a mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention; Figure 2 Schematic diagram of the task status transfer and feedback system architecture according to an embodiment of the present invention; Figure 3 is a task state flow chart of an embodiment of the present invention; Figure 4 It is a flow chart of a method for supervising mission status of low-altitude airspace flight activities according to an embodiment of the present invention. DETAILED DESCRIPTION

[0013] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this document.

[0014] System Example According to an embodiment of the present invention, a mission status monitoring system for low-altitude airspace flight activities is provided. Figure 1 FIG. 1 is a schematic diagram of a mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention. Figure 1 As shown, the mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention specifically includes: The instruction issuing module 10 is connected to the Kafka message queue module, and is used to obtain the user's front-end input, encapsulate the front-end input into a standard instruction message, and transmit it to the Kafka message queue module; Wherein, the instruction issuing module does not make any modification to the database when encapsulating the front-end input; Kafka message queue module 12, connected to the instruction issuing module and the state machine module, for receiving and storing the standard instruction messages as well as instruction messages and status messages from the backend and external devices; The state machine module 14 is connected to the Kafka message queue module and the WebSocket service module, and is used to subscribe to all instruction messages in the Kafka message queue module in real time, judge the flight mission based on the instruction messages, and choose whether to update the flight mission status based on the judgment result. Specifically, it is used to: Monitor all instruction messages in the Kafka message queue module in real time, and make a comprehensive judgment on the flight mission based on the instruction messages and the real-time aircraft data cached in Redis according to the flight plan lifecycle flow rules. If the flight mission meets the requirements, the flight mission status is transferred, the updated flight mission status is synchronized to MySQL, and a corresponding status transfer notification is generated; the status transfer notification is sent to the WebSocket service module; If the flight mission does not meet the requirements, an error message indicating the status is incorrect will be returned, and the original status of the flight mission will remain unchanged. The instruction messages include the standard instruction messages and instruction messages from the backend and external devices; The comprehensive judgment of the flight mission includes verifying whether the format of the instruction message is correct and judging whether the flight mission complies with the business logic; A WebSocket service module 16 is connected to the state machine module and the front-end display module, and is used to receive state flow notifications from the state machine module and push the state flow notifications to the front-end display module in real time; The front-end display module 18 is connected to the WebSocket service module and is used to dynamically update the front-end visualization page in real time according to the status flow notification.

[0015] The following is a specific example of a mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention. Figure 2 As shown, the above technical solution of the embodiment of the present invention is described in detail.

[0016] In order to meet the requirements of high-frequency interaction, state synchronization and safe control of low-altitude flight mission control system, the embodiment of the present invention optimizes the design of the traditional front-end and back-end framework, and constructs a "front-end command-issuing Kafka message flow State judgment control Data consistency update The system emphasizes a single source of control for task status, a secure data writing path, and millisecond-level visual feedback. It mainly includes the following core modules: 1. Command Distribution Module (Front-end User Interaction): Users submit flight missions, airspace requests, or control commands through the front-end interface. The system encapsulates user input into standard command messages and writes them to a designated Kafka channel. This module only generates command events and does not directly modify the database, ensuring that data modifications are uniformly controlled by back-end logic.

[0017] 2. Kafka message queue module: Kafka serves as the system's "transfer station" and "message bus." It is responsible for carrying all instructions and status messages from front-end users, back-end service modules (such as route planning, real-time traffic assessment, etc.), drones, or other systems, thereby decoupling the front-end and back-end modules and avoiding concurrency conflicts and call blocking.

[0018] 3. State Machine Module (Mission Control Core): The state machine module is the core judgment and execution control unit of the entire system. It is responsible for continuously subscribing to all command messages in Kafka and combining these messages with real-time aircraft data cached in Redis for judgment. This module not only analyzes whether the command format is correct but also comprehensively determines whether it conforms to business logic, such as whether the mission already exists, whether the current aircraft status allows execution, and whether the airspace has been approved. Only when the flight plan lifecycle flow rules are met will the flight plan status be transferred and the updated flight plan status will be synchronized to MySQL through the database interface. If the flight mission is illegal, an error message "Incorrect status" will be returned, and the original mission status will be maintained.

[0019] 4. WebSocket Service Module (Real-time Status Push): The WebSocket module establishes a persistent connection between the server and each front-end page, waiting for new status updates from the state machine module. When the state machine updates a mission's status, generating new state transition information—for example, from "pending" to "executing"—the WebSocket module instantly pushes this change to the front-end browser page. This design avoids the traditional front-end reliance on database polling, significantly improving the system's real-time performance.

[0020] 5. Front-end Display Module (Status Visualization Terminal): Built with Vue 3 and the Cesium framework, the front-end visualization interface provides real-time display of mission status. All high-performance front-end components receive real-time status updates via the WebSocket module. WebSocket drives updates and automatically refreshes the interface based on the updated information. For example, when a mission status changes from "pending" to "in progress," the flight plan list will update its status label, the "Pre-Tactical Traffic Management" list will automatically delete the mission record, and the aircraft icon will automatically move based on real-time position data.

[0021] The key points of the embodiments of the present invention are: 1. Single source of state control: The architecture ensures that control commands are written only to Kafka, and flight plan status is maintained solely by the state machine module. This closed-loop mechanism effectively avoids state overwrite issues caused by multiple modules modifying the database simultaneously, ensuring the consistency and traceability of flight plan data.

[0022] 2. Kafka event-driven: Kafka is used as a unified bus for commands and status events to achieve asynchronous communication, responsibility isolation, and high-concurrency processing between system modules, forming a highly cohesive and low-coupling scalable task control architecture.

[0023] 3. Joint judgment between state machine and cache: The state judgment logic is centralized in the state machine module. By integrating cached information such as real-time aircraft status in Redis, rapid verification and legitimacy validation of mission execution conditions are achieved, improving decision-making accuracy and response efficiency.

[0024] 4. WebSocket real-time push mechanism and front-end linkage refresh: Each status update in the system triggers the server-side WebSocket push mechanism, ensuring that flight mission status changes are synchronized to multiple front-end visual components within milliseconds, significantly improving the feedback efficiency of user operations.

[0025] Preferably, the Kafka module in the embodiment of the present invention can be replaced by other message middleware (such as RabbitMQ, RocketMQ), which can also realize message decoupling and asynchronous communication functions. However, Kafka is superior in terms of high throughput, partitioning mechanism, data persistence, etc., and the Kafka ecosystem is more adaptable to large-scale state event flow; WebSocket services can be replaced by SSE or HTTP2 push mechanisms, and the server can also notify the front-end of status updates. However, these solutions are inferior to WebSocket in terms of multi-client concurrent support, connection stability, and two-way interaction capabilities. The centralized control idea of ​​the state machine module can be replaced by a mechanism in which multiple modules make independent judgments and then coordinate updates. However, such a solution is prone to data status maintenance conflicts and is difficult to ensure the consistency and security of the flight mission execution path.

[0026] like Figure 3 As shown, the application examples of the solution of the embodiment of the present invention are as follows: After the user submits the flight mission on the front end, the instruction is written to Kafka; the state machine module monitors Kafka messages and combines the Redis cache to make status judgments; after judging the legitimacy, the state machine updates the MySQL database status; after the status changes, a notification is generated and pushed to the front end page in real time by the WebSocket module; the front end display module receives and updates the status visualization interface.

[0027] In summary, the beneficial effects of the embodiments of the present invention include: 1. Build a task flow logic where "the front end only generates commands and the state is controlled only by the state machine", unify the database write exit, and ensure state uniqueness and closed execution loop; 2. Establish a centralized message-driven architecture based on Kafka to achieve high concurrency and low coupling of command transmission and state flow between modules within the system; 3. Introducing the WebSocket mechanism to replace polling-based data refresh, achieving millisecond-level push notifications of flight mission status changes and instant synchronization with the front-end interface; 4. The state machine module integrates Redis cache information to quickly determine the status of the aircraft and verify its legitimacy, thereby improving the efficiency and accuracy of task processing.

[0028] Method Example According to an embodiment of the present invention, a method for supervising mission status of low-altitude airspace flight activities is provided. Figure 4 FIG. 1 is a flow chart of a method for supervising mission status of low-altitude airspace flight activities according to an embodiment of the present invention. Figure 4 As shown, the mission status supervision method for low-altitude airspace flight activities according to an embodiment of the present invention specifically includes: Step S401: The command issuing module obtains user front-end input, encapsulates the front-end input into a standard command message, and transmits it to the Kafka message queue module; Wherein, the instruction issuing module does not make any modification to the database when encapsulating the front-end input; Step S402: Receive and store the standard instruction message and instruction messages and status messages from the backend and external devices through the Kafka message queue module; Step S403: Subscribe to all instruction messages in the Kafka message queue module in real time through the state machine module, judge the flight mission based on the instruction messages, and choose whether to update the flight mission status according to the judgment result, which specifically includes: The state machine module monitors all instruction messages in the Kafka message queue module in real time, and makes a comprehensive judgment on the flight mission based on the instruction messages and the real-time aircraft data cached in Redis according to the flight plan lifecycle flow rules. If the flight mission meets the requirements, the flight mission status is transferred, the updated flight mission status is synchronized to MySQL, and a corresponding status transfer notification is generated; the status transfer notification is sent to the WebSocket service module; If the flight mission does not meet the requirements, an error message indicating the status is incorrect will be returned, and the original status of the flight mission will remain unchanged. The instruction messages include the standard instruction messages and instruction messages from the backend and external devices; The comprehensive judgment of the flight mission includes verifying whether the format of the instruction message is correct and judging whether the flight mission complies with the business logic; Step S404: receiving a state transition notification from the state machine module through the WebSocket service module, and pushing the state transition notification to the front-end display module in real time; Step S405: The front-end display module dynamically updates the front-end visualization page in real time according to the status flow notification.

[0029] The embodiment of the present invention is a method embodiment corresponding to the above-mentioned system embodiment. The specific operation of each step can be understood by referring to the description of the system embodiment, and will not be repeated here.

[0030] In summary, the embodiments of the present invention specifically include the following beneficial effects: 1. State data consistency: The architecture constructed in this embodiment of the present invention ensures that all control instructions are written only to Kafka, and the flight plan status in the database is maintained only by the state machine module. This prevents multiple modules from concurrently modifying the flight plan, eliminating data overwriting, conflicts, and confusion. 2. Mission Judgment Accuracy: Mission command judgment is unified into the state machine module, and combined with the real-time aircraft status cached in Redis for rapid verification, improving the accuracy and security of command execution; 3. Real-time status push: Using WebSocket channels instead of polling, flight mission status updates are pushed to the front-end instantly, achieving synchronous refresh of multiple components related to the flight plan, with response time controlled in milliseconds; 4. Module decoupling: Kafka serves as a unified message channel, connecting control command processing, status judgment, and front-end display. Each module has clear responsibilities and does not interfere with each other, making it easy to maintain and expand.

[0031] Device Example 1 An embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps described in the method embodiment when executed by the processor.

[0032] Device Example 2 An embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored. When the program is executed by a processor, the steps described in the method embodiment are implemented.

[0033] The computer-readable storage medium in this embodiment includes, but is not limited to, ROM, RAM, magnetic disk, or optical disk.

[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A mission status monitoring system for low-altitude airspace flight activities, characterized by include: The instruction issuing module is connected to the Kafka message queue module, and is used to obtain the user's front-end input, encapsulate the front-end input into a standard instruction message, and transmit it to the Kafka message queue module; A Kafka message queue module, connected to the instruction issuing module and the state machine module, is used to receive and store the standard instruction messages as well as instruction messages and status messages from the backend and external devices; A state machine module is connected to the Kafka message queue module and the WebSocket service module, and is used to subscribe to all instruction messages in the Kafka message queue module in real time, judge the flight mission based on the instruction messages, and choose whether to update the flight mission status according to the judgment result; A WebSocket service module is connected to the state machine module and the front-end display module, and is used to receive state flow notifications from the state machine module and push the state flow notifications to the front-end display module in real time; The front-end display module is connected to the WebSocket service module and is used to dynamically update the front-end visualization page in real time according to the status flow notification.

2. The system according to claim 1, wherein: The instruction issuing module does not make any modifications to the database when encapsulating the front-end input.

3. The system according to claim 1, wherein: The state machine module is specifically used for: Monitor all instruction messages in the Kafka message queue module in real time, and make a comprehensive judgment on the flight mission based on the instruction messages and the real-time aircraft data cached in Redis according to the flight plan lifecycle flow rules. If the flight mission meets the requirements, the flight mission status is transferred, the updated flight mission status is synchronized to MySQL, and a corresponding status transfer notification is generated; the status transfer notification is sent to the WebSocket service module; If the flight mission does not meet the requirements, an error message indicating an incorrect status will be returned, and the original status of the flight mission will remain unchanged.

4. The system according to claim 3, characterized in that The instruction messages include the standard instruction messages and instruction messages from the backend and external devices; The comprehensive judgment of the flight mission includes verifying whether the format of the instruction message is correct and judging whether the flight mission complies with the business logic.

5. A mission status monitoring method for low-altitude airspace flight activities, characterized in that include: The command issuing module obtains the user's front-end input, encapsulates the front-end input into a standard command message, and transmits it to the Kafka message queue module; Receive and store the standard instruction messages and instruction messages and status messages from the backend and external devices through the Kafka message queue module; Subscribe to all instruction messages in the Kafka message queue module in real time through the state machine module, judge the flight mission based on the instruction messages, and decide whether to update the flight mission status based on the judgment result; Receive the state flow notification from the state machine module through the WebSocket service module, and push the state flow notification to the front-end display module in real time; The front-end display module dynamically updates the front-end visualization page in real time according to the status flow notification.

6. The method according to claim 5, characterized in that The instruction issuing module does not make any modifications to the database when encapsulating the front-end input.

7. The method according to claim 5, characterized in that The state machine module subscribes to all instruction messages in the Kafka message queue module in real time, and judges the flight mission based on the instruction messages. The decision of whether to update the flight mission status according to the judgment result specifically includes: The state machine module monitors all instruction messages in the Kafka message queue module in real time, and makes a comprehensive judgment on the flight mission based on the instruction messages and the real-time aircraft data cached in Redis according to the flight plan lifecycle flow rules. If the flight mission meets the requirements, the flight mission status is transferred, the updated flight mission status is synchronized to MySQL, and a corresponding status transfer notification is generated; the status transfer notification is sent to the WebSocket service module; If the flight mission does not meet the requirements, an error message indicating an incorrect status will be returned, and the original status of the flight mission will remain unchanged.

8. The method according to claim 7, characterized in that The instruction messages include the standard instruction messages and instruction messages from the backend and external devices; The comprehensive judgment of the flight mission includes verifying whether the format of the instruction message is correct and judging whether the flight mission complies with the business logic.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method for mission status supervision of low-altitude airspace flight activities as described in any one of claims 5 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an implementation program for information transmission, and when the program is executed by the processor, the steps of the mission status supervision method for low-altitude airspace flight activities as described in any one of claims 5 to 8 are implemented.

Citation Information

Patent Citations

  • Flight safety management and control service method

    CN105913693A

  • Flight information management system

    CN119479379A

  • Multi-datacenter message queue

    US20160337465A1