A mission status monitoring system and method for low altitude airspace flight activities

By combining Kafka message queues and state machine modules, the problems of fragmented module permissions and delayed response in the task status monitoring system for low-altitude airspace flight activities were solved, enabling real-time, accurate, and consistent updates of task status, and improving the system's scalability and user experience.

CN120673629BActive Publication Date: 2025-12-30CRSC INST OF SMART CITY RES &DESIGN
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies for mission status monitoring systems in low-altitude airspace flight activities suffer from problems such as dispersed module write permissions, distributed status judgment logic, tight system coupling, and delayed response, which cannot meet the real-time, high-density, and complex linkage requirements of low-altitude operations.

Method used

The system employs a Kafka message queue module as a unified message bus, combines a state machine module for task status determination, and uses a WebSocket service module for real-time push notifications. The front-end display module performs dynamic updates, thus building an efficient task status monitoring system.

Benefits of technology

It achieves a single source of control over task status, millisecond-level response time, and accuracy and consistency in task flow, thereby improving user experience and system scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120673629B_ABST
    Figure CN120673629B_ABST
Patent Text Reader

Abstract

The application provides a task state supervision system and method for low-altitude airspace flight activities, the system of the application comprises: an instruction issuing module, which is used for encapsulating standard instruction messages after obtaining user front-end input; a Kafka message queue module, which is used for receiving and storing standard instruction messages and instruction messages and state messages from the back end and external devices; a state machine module, which is used for subscribing to all instruction messages in real time, judging a flight task based on the instruction messages, and selecting whether to update the flight task state according to the judgment result; a WebSocket service module, which is used for receiving state flow notification from the state machine module and pushing the state flow notification to a front-end display module in real time; and a front-end display module, which is used for dynamically updating a front-end visual page in real time according to the state flow notification. The system is suitable for core business scenarios such as task approval, flight state change management, airspace instruction synchronization and user interface dynamic display 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 particularly to a task status supervision system and method for low-altitude airspace flight activities. Background Art

[0002] With the advancement of the low-altitude airspace opening policy, the flight missions of low-altitude aircraft such as unmanned aerial vehicles are becoming increasingly frequent, and the supervision, synchronization, and visualization of their task status have become an important part of flight safety assurance. Traditional systems usually obtain task status information by polling the backend database at regular intervals or through REST APIs at the front end, with a long update cycle and a lagging response, which cannot meet the requirements of real-time, high-density, and complex联动 low-altitude operation scenarios.

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

[0004] Moreover, the existing technologies still have the following several defects:

[0005] 1. The module write permissions are decentralized, and multiple backend services can directly modify the flight plan data in the database, resulting in the task status being possibly repeatedly overwritten by different services, with serious consistency risks;

[0006] 2. The state judgment logic is distributed in multiple modules, lacking unified rules, resulting in inaccurate execution condition judgment and illegal states easily occurring in task flow;

[0007] 3. The system generally relies on the front-end polling of the database to implement task status update notifications, with limited refresh frequency, lagging page response, and poor user experience;

[0008] 4. The coupling between modules is tight, the message channels are not decoupled, and the interface reusability is poor, making it difficult to adapt to complex business collaboration and subsequent function expansion. Summary of the Invention

[0009] The purpose of the present invention is to provide a task status supervision system and method for low-altitude airspace flight activities, aiming to solve the above problems in the existing technologies.

[0010] An embodiment of the present invention provides a task status supervision system for low-altitude airspace flight activities, which includes:

[0011] It should be noted that there is an unclear "联动" in the original text. It may need to be further clarified according to the specific context for a more accurate translation.The instruction issuance module is connected to the Kafka message queue module. It is used to obtain user front-end input, encapsulate the front-end input into a standard instruction message, and then transmit it to the Kafka message queue module.

[0012] The Kafka message queue module, connected to the instruction issuance 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.

[0013] The state machine module is connected to the Kafka message queue module and the WebSocket service module. It is used to subscribe to all instruction messages in the Kafka message queue module in real time, and to judge the flight mission based on the instruction messages. Based on the judgment result, it selects whether to update the flight mission status.

[0014] The WebSocket service module is connected to the state machine module and the front-end display module. It is used to receive state transition notifications from the state machine module and push the state transition notifications to the front-end display module in real time.

[0015] 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 based on the state transition notification.

[0016] This invention provides a method for monitoring mission status during low-altitude airspace flight activities, comprising:

[0017] The module obtains user front-end input through the instruction issuance module, encapsulates the front-end input into a standard instruction message, and then transmits it to the Kafka message queue module.

[0018] The Kafka message queue module receives and stores the standard instruction messages, as well as instruction messages and status messages from the backend and external devices.

[0019] 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, and decides whether to update the flight mission status based on the judgment result.

[0020] The WebSocket service module receives state transition notifications from the state machine module and pushes these notifications to the front-end display module in real time.

[0021] The front-end display module dynamically updates the front-end visualization page in real time based on the status transition notification.

[0022] This invention also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the above-described mission status monitoring method for low-altitude airspace flight activities.

[0023] This invention also provides a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor, implements the steps of the above-described mission status monitoring method for low-altitude airspace flight activities.

[0024] The following beneficial effects can be achieved by adopting the embodiments of the present invention: The embodiments of the present invention propose a flight mission control and status visualization system based on Kafka message bus driving, combined with state machine judgment and WebSocket push mechanism. The system is applicable to 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. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in one or more embodiments of this specification or in 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 recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a schematic diagram of a mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention;

[0027] Figure 2 This is a schematic diagram of the task status transition and feedback system architecture according to an embodiment of the present invention;

[0028] Figure 3 This is a flowchart illustrating the task state transition according to an embodiment of the present invention;

[0029] Figure 4 This is a flowchart of a mission status monitoring method for low-altitude airspace flight activities according to an embodiment of the present invention. Detailed Implementation

[0030] 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 with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.

[0031] System Implementation Examples

[0032] According to embodiments of the present invention, a mission status monitoring system for low-altitude airspace flight activities is provided. Figure 1 This is a schematic diagram of a mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention, such as... 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:

[0033] The instruction issuance module 10 is connected to the Kafka message queue module and is used to obtain user front-end input, encapsulate the front-end input into a standard instruction message, and then transmit it to the Kafka message queue module.

[0034] The instruction issuing module does not modify the database when encapsulating the front-end input.

[0035] Kafka message queue module 12 is connected to the instruction issuing module and the state machine module, and is used to receive and store the standard instruction messages as well as instruction messages and status messages from the backend and external devices;

[0036] The state machine module 14, connected to the Kafka message queue module and the WebSocket service module, is used to subscribe to all instruction-type messages in the Kafka message queue module in real time, and to judge the flight mission based on the instruction-type messages. Based on the judgment result, it selects whether to update the flight mission status. Specifically, it is used for:

[0037] The system 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 system flows the flight mission status, synchronizes the updated flight mission status to MySQL, and generates a corresponding status flow notification; the system then sends the status flow notification to the WebSocket service module.

[0038] If the flight mission does not meet the requirements, return an error message indicating an incorrect status and maintain the original status of the flight mission.

[0039] The instruction messages include standard instruction messages as well as instruction messages from the backend and external devices;

[0040] The comprehensive judgment of the flight mission includes verifying whether the format of the instruction messages is correct and judging whether the flight mission conforms to the business logic.

[0041] WebSocket service module 16 is connected to the state machine module and the front-end display module, and is used to receive state transition notifications from the state machine module and push the state transition notifications to the front-end display module in real time.

[0042] 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 state flow notification.

[0043] The following describes the specific details of the mission status monitoring system for low-altitude airspace flight activities according to an embodiment of the present invention, such as... Figure 2 As shown, the above technical solutions of the embodiments of the present invention will be described in detail.

[0044] To meet the requirements of high-frequency interaction, status synchronization, and safety controllability of low-altitude flight mission management systems, this invention optimizes the traditional front-end and back-end framework, constructing a system consisting of "front-end command issuance..." Kafka message flow State judgment control Data consistency update The system employs a highly efficient architecture comprised of real-time push notifications and displays. It emphasizes a single source of control over task status, a secure data write path, and millisecond-level visual feedback, and primarily includes the following core modules:

[0045] 1. Command Issuance Module (Front-end User Interaction): Users submit flight missions, request airspace, or issue control commands through the front-end interface. The system encapsulates the user input into standard command messages and writes them uniformly to the designated command channel in Kafka. This module only generates command events and does not directly modify the database, ensuring that data modification operations are uniformly controlled by the back-end logic.

[0046] 2. Kafka Message Queue Module: Kafka acts as the system's "transfer station" and "message bus," 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. It decouples the front-end and back-end modules, avoiding concurrency conflicts and call blocking.

[0047] 3. State Machine Module (Task 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 instruction messages in Kafka and jointly judging these messages with the real-time aircraft data cached in Redis. This module not only analyzes whether the instruction format is correct, but also comprehensively judges whether it conforms to business logic, such as whether the task already exists, whether the current aircraft status allows execution, and whether the airspace has been approved. Only when the flight plan lifecycle transition rules are met will the flight plan status transition, and the updated flight plan status will be synchronized to MySQL through the database interface. When the flight task is invalid, it will return an error message "Status error" and then keep the original task status unchanged.

[0048] 4. WebSocket Service Module (Real-time Status Push): The WebSocket module establishes a long-lived connection between the server and each front-end page, waiting for new status update messages from the state machine module. When the state machine updates the flight mission status, it generates new state transition information, such as changing from "pending execution" to "in execution," and the WebSocket module immediately pushes the change message to the front-end browser page. This design avoids the traditional method of relying on polling the database, significantly improving the system's real-time performance.

[0049] 5. Front-end Display Module (Status Visualization Terminal): The front-end visualization page is built based on Vue 3 and the Cesium framework, responsible for the real-time display of flight mission status. All highly real-time front-end components receive status updates in real time via the WebSocket module, are driven by WebSocket updates, and automatically refresh the interface based on the updated content. For example, when the flight mission status changes from "Pending" to "In Progress," the flight plan list will synchronously update the status label, the "Pre-Tactical Traffic Management" related list will automatically delete the mission record, and the aircraft icon will automatically move according to real-time location data.

[0050] The key to the embodiments of the present invention lies in:

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

[0052] 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 loosely coupled scalable task control architecture.

[0053] 3. Joint judgment of 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, the task execution conditions can be quickly verified and validated, which improves the accuracy of decision-making and response efficiency.

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

[0055] Preferably, the Kafka module in this embodiment of the invention can be replaced by other message middleware (such as RabbitMQ and RocketMQ) and can also achieve message decoupling and asynchronous communication functions. However, Kafka is superior in terms of high throughput, partitioning mechanism, and data persistence, and the Kafka ecosystem is more suitable for large-scale state event flow.

[0056] WebSocket services can be replaced by SSE or HTTP2 push mechanisms, which can also be used to notify the front end of server status updates. However, these solutions are not as good as WebSocket in terms of multi-client concurrency support, connection stability, and bidirectional interaction capabilities.

[0057] The centralized control approach 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 state maintenance conflicts and makes it difficult to guarantee the consistency and safety of the flight mission execution path.

[0058] like Figure 3 As shown, an application example of the solution in this embodiment of the invention is as follows:

[0059] After a user submits a flight mission on the front end, the command is written to Kafka; the state machine module listens for Kafka messages and performs a status check in conjunction with the Redis cache; if the check is valid, the state machine updates the MySQL database status; after a status change, 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.

[0060] In summary, the beneficial effects of the embodiments of the present invention include:

[0061] 1. Construct a task flow logic where "the front end only generates commands and the state is only controlled by the state machine," unify the database write exit point, and ensure the uniqueness of the state and the execution loop;

[0062] 2. Establish a centralized message-driven architecture based on Kafka to achieve high concurrency and loose coupling in command transmission and state transition between modules within the system;

[0063] 3. Introduce the WebSocket mechanism to replace polling-based data refresh, enabling millisecond-level push notifications of flight mission status changes and real-time synchronization with the front-end interface;

[0064] 4. By unifying Redis cache information through the state machine module, the system can quickly determine and verify the validity of the aircraft's status, thereby improving task processing efficiency and accuracy.

[0065] Method Implementation Examples

[0066] According to embodiments of the present invention, a method for monitoring mission status for low-altitude airspace flight activities is provided. Figure 4 This is a flowchart of a mission status monitoring method for low-altitude airspace flight activities according to an embodiment of the present invention, as follows: Figure 4 As shown, the mission status monitoring method for low-altitude airspace flight activities according to an embodiment of the present invention specifically includes:

[0067] Step S401: Obtain user front-end input through the instruction issuance module, encapsulate the front-end input into a standard instruction message, and transmit it to the Kafka message queue module;

[0068] The instruction issuing module does not modify the database when encapsulating the front-end input.

[0069] Step S402: Receive and store the standard instruction messages, as well as instruction messages and status messages from the backend and external devices, through the Kafka message queue module;

[0070] Step S403 involves subscribing to all instruction-type messages in the Kafka message queue module in real time through the state machine module, judging the flight mission based on the instruction-type messages, and deciding whether to update the flight mission status based on the judgment result. Specifically, this includes:

[0071] 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 transition rules. If the flight mission meets the requirements, the flight mission status is transitioned, the updated flight mission status is synchronized to MySQL, and a corresponding status transition notification is generated; the status transition notification is sent to the WebSocket service module.

[0072] If the flight mission does not meet the requirements, return an error message indicating an incorrect status and maintain the original status of the flight mission.

[0073] The instruction messages include standard instruction messages as well as instruction messages from the backend and external devices;

[0074] The comprehensive judgment of the flight mission includes verifying whether the format of the instruction messages is correct and judging whether the flight mission conforms to the business logic.

[0075] Step S404: Receive state transition notification from the state machine module through the WebSocket service module, and push the state transition notification to the front-end display module in real time;

[0076] Step S405: The front-end display module dynamically updates the front-end visualization page in real time according to the status transition notification.

[0077] The embodiments of the present invention are method embodiments corresponding to the system embodiments described above. The specific operations of each step can be understood by referring to the description of the system embodiments, and will not be repeated here.

[0078] In summary, the embodiments of the present invention specifically include the following beneficial effects:

[0079] 1. State data consistency: The architecture constructed in this embodiment of the invention can ensure that all control commands are written only to Kafka, and the state of the flight plan in the database is maintained by only the state machine module, avoiding multiple modules from modifying the flight plan concurrently and eliminating data overwriting, conflict and disorder problems;

[0080] 2. Accuracy of task judgment: The judgment of task instructions is uniformly centralized in the state machine module, and combined with the real-time status of the aircraft cached in Redis for rapid verification, thereby improving the correctness and security of instruction execution;

[0081] 3. Real-time status push: The WebSocket channel is used instead of polling. When the flight mission status is updated, it is immediately pushed to the front end, realizing the synchronous refresh of multiple components related to the flight plan, and the response time is controlled in milliseconds.

[0082] 4. Module decoupling: Kafka, as a unified message channel, connects control command processing, status judgment, and front-end display. Each module has a clear responsibility and does not interfere with each other, which facilitates maintenance and expansion.

[0083] Device Example 1

[0084] This invention provides an electronic device, including: 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, performs the steps described in the method embodiment.

[0085] Device Example 2

[0086] This invention provides a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor, performs the steps described in the method embodiment.

[0087] The computer-readable storage media described in this embodiment include, but are not limited to, ROM, RAM, disk, or optical disk.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 The application comprises the following: An instruction issuing module connected with the Kafka message queue module, used for obtaining user front-end input and encapsulating the front-end input into a standard instruction message before transmitting it to the Kafka message queue module; The Kafka message queue module connected with the instruction issuing module and the state machine module, used for receiving and storing the standard instruction message and instruction messages and state messages from the back-end and external devices; The state machine module connected with the Kafka message queue module and the WebSocket service module, used for subscribing to all instruction messages in the Kafka message queue module in real time, judging the flight task based on the instruction messages, and selecting whether to update the flight task state according to the judgment result, specifically for: Real-time monitoring of all instruction messages in the Kafka message queue module, and comprehensive judgment of the flight task according to the instruction messages and the real-time aircraft data cached in Redis through the flight plan life cycle flow conversion rule, if the flight task meets the requirements, the flight task state is converted, the updated flight task state is synchronized to MySQL, and the corresponding state conversion notification is generated; the state conversion notification is sent to the WebSocket service module; If the flight task does not meet the requirements, an error prompt of incorrect state is returned, and the original state of the flight task remains unchanged; The WebSocket service module connected with the state machine module and the front-end display module, used for receiving the state conversion notification from the state machine module and pushing the state conversion notification to the front-end display module in real time; The front-end display module connected with the WebSocket service module, used for real-time dynamic updating of the front-end visual page according to the state conversion notification.

2. The system of claim 1, wherein, The instruction issuing module does not modify the database when encapsulating the front-end input.

3. The system of claim 1, wherein, The instruction messages include the standard instruction messages and instruction messages from the back-end and external devices; The comprehensive judgment of the flight task includes verification of the correctness of the format of the instruction messages and judgment of whether the flight task meets the business logic.

4. A method for mission status supervision of low altitude airspace flight activities, characterized by The application comprises the following: Obtaining user front-end input through the instruction issuing module and encapsulating the front-end input into a standard instruction message before transmitting it to the Kafka message queue module; Receiving and storing the standard instruction message and instruction messages and state messages from the back-end and external devices through the Kafka message queue module; Subscribing to all instruction messages in the Kafka message queue module in real time through the state machine module, judging the flight task based on the instruction messages, and selecting whether to update the flight task state according to the judgment result, specifically including: The state machine module monitors all instruction messages in the Kafka message queue module in real time, and comprehensively judges the flight task according to the instruction messages and the cached real-time aircraft data in Redis through the flight plan life cycle flow conversion rule, if the flight task meets the requirements, the flight task state is converted, the updated flight task state is synchronized to MySQL, and the corresponding state conversion notification is generated; the state conversion notification is sent to the WebSocket service module; If the flight task does not meet the requirements, an error prompt of state error is returned, and the original state of the flight task remains unchanged; The WebSocket service module receives the state conversion notification from the state machine module, and pushes the state conversion notification to the front-end display module in real time; The front-end display module updates the front-end visual page in real time according to the state conversion notification.

5. The method of claim 4, wherein, The instruction issuing module does not modify the database when encapsulating the front-end input.

6. The method of claim 4, wherein, The instruction messages include the standard instruction messages and the instruction messages from the back-end and external devices. The comprehensive judgment of the flight task includes verifying whether the format of the instruction messages is correct and judging whether the flight task meets the business logic.

7. An electronic device, comprising: Comprise: A memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the steps of the task state monitoring method for low-altitude airspace flight activities according to any one of claims 4-6.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores an information transmission implementation program, and the program is executed by the processor to implement the steps of the task state monitoring method for low-altitude airspace flight activities according to any one of claims 4-6.

Citation Information

Patent Citations

  • Flight safety management and control service method

    CN105913693A

  • Flight information management system

    CN119479379A