Control method, device and equipment for power switch of unmanned aerial vehicle hangar and storage medium
By realizing remote monitoring and APN card control in the drone hangar, the cumbersome operation and insufficient operability of the hangar offline problem are solved, automatic detection and remote handling of abnormalities are realized, and the system reliability and fault handling capabilities are improved.
Patent Information
- Application Number
- CN202510251190.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-06
AI Technical Summary
During operation, drone hangars are prone to offline problems due to network instability, power supply failures and system abnormalities, resulting in cumbersome operation and lack of remote operability.
By sending HTTP requests to obtain monitoring data, receiving the data stream returned by the server, determining whether there is an abnormal event, and sending power-off and power-on restart instructions through the APN identification of the target hanger to realize remote switching control of the hanger.
It improves the remote operability of the drone hangar, realizes automatic detection and remote handling of abnormal events, simplifies the operation process, and improves the reliability and fault handling capabilities of the system.
Smart Images

Figure CN120109745A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of unmanned aerial vehicles, and in particular to a control method, device, equipment and storage medium for a power switch in a hangar of an unmanned aerial vehicle. Background Art
[0002] With the continuous advancement of artificial intelligence technology, the application scope of drones is expanding. However, in actual production and application scenarios, the deployment and operation of drones are limited by their inherent characteristics and external environmental conditions. At present, small and medium-sized drones generally rely on lithium batteries as a power source, but lithium batteries require regular and stable power supply due to material properties and performance limitations, which largely restricts the widespread application potential of drones.
[0003] In order to solve the challenges faced by drones during use, such as charging needs, maintenance and safe storage, the concept of drone hangars came into being. However, hangars also face offline problems caused by multiple factors such as network instability, power failure and system abnormalities during operation. Due to the large number of hangars, it is very cumbersome for operators to manually restart and go online after the hangar is offline.
[0004] Therefore, how to improve the remote operability of the UAV hangar is an urgent problem to be solved. Summary of the invention
[0005] The present application provides a control method, device, equipment and storage medium for a power switch of a drone hangar, so as to improve the remote operability of the drone hangar.
[0006] In a first aspect, the present application provides a method for controlling a power switch of a drone hangar, which is applied to a robotic process automation (RPA) device, and the method includes:
[0007] Sending a Hypertext Transfer Protocol (HTTP) request for acquiring monitoring data to a server, wherein the server is a monitoring device of a plurality of drone hangars, and the server and the plurality of drone hangars are connected to the same local area network;
[0008] Receive the data stream of the monitoring hangar returned by the server;
[0009] Determining whether there is an abnormal event based on the data stream and the stored historical data stream;
[0010] If there is an abnormal event, determine the target hangar where the abnormal event occurred;
[0011] A power-off instruction is sent to the target hangar through the network access technology APN identifier of the target hangar, and a power-on restart instruction is sent to the APN card of the target hangar after a preset delay time.
[0012] Optionally, determining whether an abnormal event occurs according to the data stream and the stored historical data streams includes:
[0013] Determine the normal operating range of each data according to the historical data flow;
[0014] comparing the data in the data stream with the normal operating range;
[0015] If the data in the data stream exceeds the normal operating range, it is determined that an abnormal event exists; otherwise, it is determined that no abnormal event exists.
[0016] Optionally, before sending the power-off instruction to the target hangar, the method further includes:
[0017] Pushing an abnormal message to a preset terminal device, wherein the abnormal message includes the target hangar and abnormal data corresponding to the abnormal event;
[0018] receiving an indication message returned by the terminal device, wherein the indication message is used to indicate whether to perform a restart operation on the target hangar;
[0019] Accordingly, sending a power-off instruction to the target hangar includes:
[0020] If the instruction message indicates to perform a restart operation on the target hangar, a power-off instruction is sent to the target hangar.
[0021] Optionally, the method further includes:
[0022] If the instruction message indicates to cancel the restart operation on the target hangar, the normal operating range is updated according to the abnormal data and the historical data stream.
[0023] Optionally, updating the normal operating range according to the abnormal data and the historical data stream includes:
[0024] For each item of data, determining a first quantity of data that is greater than the normal operating range and does not trigger a restart operation from the historical data stream;
[0025] determining from the abnormal data a second quantity that is greater than the normal operating range;
[0026] If the sum of the first number and the second number is greater than a preset number, the maximum data between the data corresponding to the first number and the data corresponding to the second number is used as the upper limit of the new normal operating range.
[0027] Optionally, after sending the power-on restart instruction, the method further includes:
[0028] Obtaining the status of the target hangar;
[0029] If the target hangar is in a startup state, obtaining operation data of the target hangar;
[0030] comparing the operating data with the normal operating range;
[0031] If the operating data is within the normal operating range, it is determined that the target hangar has recovered to a stable online state; otherwise, it is determined that the target hangar has recovered to an unstable online state.
[0032] Optionally, the content of the data stream is an HTML page, an XML configuration file and JSON data of the server monitoring system.
[0033] In a second aspect, the present application provides a control device for a power switch of a drone hangar, the device comprising:
[0034] A sending module, used for sending an HTTP request for acquiring monitoring data to a server, wherein the server is a monitoring device of a plurality of drone hangars, and the server and the plurality of drone hangars are connected to the same local area network;
[0035] A receiving module is used to receive the data stream of the monitoring hangar returned by the server;
[0036] an abnormality determination module, used to determine whether there is an abnormal event based on the data stream and the stored historical data stream;
[0037] A hangar determination module is used to determine the target hangar where the abnormal event occurs if there is an abnormal event;
[0038] The restart control module is used to send a power-off instruction to the APN card of the target hangar, and after a preset delay time, send a power-on restart instruction to the APN card of the target hangar.
[0039] In a third aspect, the present application provides an electronic device, including: a memory, a processor;
[0040] The memory stores computer-executable instructions;
[0041] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.
[0042] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementations of the first aspect.
[0043] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementations of the first aspect.
[0044] The control method, device, equipment and storage medium of the power switch of the drone hangar provided in the present application include: sending an HTTP request for obtaining monitoring data to a server, the server is a monitoring device of multiple drone hangars, and the server and the multiple drone hangars are connected to the same local area network; receiving the data stream of the monitoring hangar returned by the server; determining whether there is an abnormal event based on the data stream and the stored historical data stream; if there is an abnormal event, determining the target hangar where the abnormal event occurs; sending a power-off command to the target hangar through the network access technology APN identifier of the target hangar, and sending a power-on restart command to the APN card of the target hangar after a preset delay time. In this way, the RPA device can automatically detect the abnormality of the hangar remotely, and realize the remote switch control of the hangar when the abnormality is found; in addition, the user can also remotely operate the switch of the hangar equipment through the Web interface or mobile App. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0046] Figure 1 A schematic diagram of a control method provided in this application;
[0047] Figure 2 A flowchart of a first embodiment of a method for controlling a power switch of a drone hangar provided in the present application;
[0048] Figure 3 A flow chart of a second embodiment of a method for controlling a power switch of a drone hangar provided in the present application;
[0049] Figure 4 A schematic diagram of the hangar status monitoring system structure provided for this application;
[0050] Figure 5 A schematic diagram of the structure of a control device for a power switch of a drone hangar provided in this application;
[0051] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.
[0052] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] First, the terms involved in this application are explained:
[0055] Robotic Process Automation (RPA) is a technology that uses software robots (i.e. "robots") to automatically perform repetitive and regular tasks and processes. RPA technology can imitate the operations of human users, such as data entry, information extraction and report generation, thereby improving work efficiency, reducing manual intervention and lowering error rates.
[0056] Access Point Name (APN): refers to a hardware card (APN card) used in mobile devices (such as mobile phones, tablets or IoT devices) to ensure that the device can access the Internet or other network services through a wireless network. It usually contains configuration information related to the operator's network (such as data connection settings, IP address, etc.) to help the device connect to the appropriate network service. Through the APN card, the device can access the Internet, send text messages, make and receive calls, etc. through the cellular data network.
[0057] At present, in order to solve the charging needs, maintenance and safe storage of drones in the process of use, the concept of drone hangars has emerged. However, hangars also face offline problems caused by multiple factors such as network instability, power failure and system abnormalities during operation. For example, if the mobile phone screen freezes, it needs to be powered off and restarted to solve the problem.
[0058] In view of this, the present application proposes a control method for the power switch of a drone hangar, which can automatically detect faults in the drone hangar and, when the hangar is abnormal, power off and restart to ensure the normal operation of the hangar, thereby improving the reliability, remote operability and fault handling capabilities of the entire hangar control system.
[0059] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0060] Figure 1 A schematic diagram of a control method provided in this application, such as Figure 1 As shown in the figure, the drone hangar monitoring system monitors the status of multiple drone hangars, and the monitoring system server displays the data of each drone hangar. The monitoring system and multiple drone hangars are in the same intranet network environment. The RPA device is outside the intranet, which can be a user's mobile phone or computer. It can establish a connection with the monitoring system server, obtain data for judgment, and issue control instructions.
[0061] Figure 2 The flowchart of the control method of the power switch of the drone hangar provided by the present application is shown in the first embodiment. Figure 1 In the scenario, the control method includes the following steps:
[0062] S101. Send a Hypertext Transfer Protocol (HTTP) request for acquiring monitoring data to a server, where the server is a monitoring device for multiple drone hangars, and the server and the multiple drone hangars are connected to the same local area network.
[0063] The RPA device needs to connect to the monitoring system or control system in the hangar network through the initial URL. The initial URL is set by the developer in advance according to the hangar network architecture. By accessing this URL, the RPA can connect to the target server and obtain the relevant web page or API interface. For example, the initial URL can point to the console responsible for device status detection in the hangar network.
[0064] When RPA needs to establish a connection with the target server, it initiates an HTTP request. HTTP request is the main way for RPA to communicate with the hangar intranet server. This request needs to pass the security checks of the hangar intranet, such as firewalls, intrusion detection systems (IDS), etc., while avoiding triggering any security alarms. If the hangar's monitoring system requires authentication, RPA will log in according to the pre-configured username and password (or authentication methods such as API keys) to ensure successful access to the system.
[0065] When an HTTP request successfully passes the security check and reaches the target server, the server responds according to the request content. The RPA device needs to maintain a connection with the server until the necessary data is obtained. HTTP requests usually include a specified URL and a request method (such as GET). In some methods, the request contains request parameters to specify specific data content (for example, time range, monitoring items, etc.).
[0066] Specifically, an HTTP request may be a request to obtain a certain page, such as a page for obtaining a certain device status; or an API request, such as obtaining device monitoring data in JSON format.
[0067] S102, receiving the data stream of the monitoring hangar returned by the server.
[0068] The server responds to the request and returns the monitored data stream. The content of the data stream can be HTML pages, JSON or XML data. The specific content returned is related to the request content. The data stream includes at least one of the following data: voltage and current data of each hangar, system memory usage data (such as CPU usage, memory usage, hard disk read and write speed), network transmission data (such as bandwidth usage, packet loss rate, delay time) and drone flight data (such as drone landing point deviation, drone flight time). The data can also include the operating status of the device (such as whether it is online), environmental monitoring data (such as temperature and humidity, air pressure), the health status of the device (such as battery power, hardware temperature, operation log, etc.) and any alarm information (such as equipment failure, overload, abnormal temperature, etc.).
[0069] If it is in HTML format, RPA extracts the required monitoring information by parsing the page structure (such as DOM tree).
[0070] If it is in JSON format, RPA will parse the JSON data structure and extract key fields.
[0071] If it is in XML format, RPA will parse the XML nodes and extract relevant data.
[0072] The parsed data contains real-time information about hangar equipment, such as equipment status, sensor data, voltage, current, CPU load, network bandwidth, etc. RPA extracts key data based on preset monitoring indicators.
[0073] S103: Determine whether there is an abnormal event based on the data stream and the stored historical data stream.
[0074] Historical data stream refers to the monitoring data collected by the system over a period of time in the past. These data usually contain information such as status changes and performance trends of the equipment under normal working conditions.
[0075] The system compares the real-time monitoring data stream with the stored historical data stream to analyze whether there are sudden changes or abnormal trends. For example, if the temperature value of a drone hangar suddenly exceeds the normal range or the load of the equipment increases abnormally, the system will determine it as a potential abnormal event.
[0076] By using data analysis methods such as standard deviation analysis or mean analysis, or machine learning models (such as anomaly detection algorithms, time series analysis, etc.), the system can identify abnormal patterns in the data.
[0077] In a specific implementation, the developer predetermines the normal operating range for each item of data. When the data in the acquired data stream exceeds the normal operating range, it indicates that an abnormal event has occurred.
[0078] In another specific implementation, the developer predetermines the normal operating range for each data item, and the RPA device also has the ability to learn and adjust the normal operating range according to the user's operation. For example, when a certain data exceeds the initial normal operating range, but the user chooses to ignore the exception, the initial normal operating range can be updated based on the abnormal data.
[0079] S104. If an abnormal event occurs, determine the target hangar where the abnormal event occurs.
[0080] When an abnormal event is detected, the RPA device will locate the abnormal target hangar and abnormal time based on the abnormal data, as well as the specific type of abnormality that occurred.
[0081] After the anomaly is located, one method is to prompt the user of the anomaly and let the user choose whether to restart the hangar; in another method, the hangar is directly restarted.
[0082] S105, sending a power-off instruction to the target hangar through the network access technology APN identifier of the target hangar, and sending a power-on restart instruction to the APN card of the target hangar after a preset delay time.
[0083] The power-off command is sent to the target hangar through the APN identifier (Access Point Name) of the target hangar's network access technology. APN is used to identify access points in mobile communication networks. Usually each device (such as a drone hangar) has a unique APN identifier for communicating with the network.
[0084] The purpose of the power-off command is to cut off the power supply of the target hangar, reset the hangar, and solve abnormal problems caused by hangar freezing or freezing.
[0085] After a power outage, the system sets a preset delay time. This time can be adjusted according to the characteristics of the equipment and the required recovery time. The delay time helps the equipment to complete cooling, troubleshooting, or wait for the power to be completely disconnected before restarting.
[0086] After the delay time is over, the system sends a power-on restart command to the APN card of the target hangar. This command will restart the hangar equipment and enable the drone APP in the hangar equipment to restore the normal working state of the hangar equipment. After the hangar equipment is powered off, it can receive and execute the restart command, which depends on the power management and hardware self-start function inside the hangar equipment.
[0087] This embodiment provides a method for controlling the power switch of a drone hangar, the method comprising: sending an HTTP request for obtaining monitoring data to a server, the server is a monitoring device of multiple drone hangars, and the server and the multiple drone hangars are connected to the same local area network; receiving the data stream of the monitoring hangar returned by the server; determining whether there is an abnormal event based on the data stream and the stored historical data stream; if there is an abnormal event, determining the target hangar where the abnormal event occurs; sending a power-off command to the target hangar through the network access technology APN identifier of the target hangar, and sending a power-on restart command to the APN card of the target hangar after a preset delay time. In this way, the RPA device can automatically detect the abnormality of the hangar remotely, and realize the remote switch control of the hangar when the abnormality is found; in addition, the user can also remotely operate the switch of the hangar equipment through the Web interface or mobile App.
[0088] The following is an example of an RPA device detecting an abnormality.
[0089] Figure 3 The flowchart of the second embodiment of the control method of the power switch of the drone hangar provided by the present application is as follows: Figure 3 As shown, the following steps are included:
[0090] S201. Push an abnormal message to a preset terminal device, where the abnormal message includes abnormal data corresponding to the target hangar and the abnormal event.
[0091] The preset terminal can be a mobile phone or computer of a technician who needs to handle the abnormal message.
[0092] S202. Receive an indication message returned by the terminal device, where the indication message is used to indicate whether to perform a restart operation on the target hangar.
[0093] The user operates on the terminal device, responds to the exception message, and returns an indication of whether to restart.
[0094] If the instruction message indicates to perform a restart operation on the target hangar, a power-off instruction is sent to the target hangar.
[0095] S203. If the instruction message indicates to cancel the restart operation on the target hangar, update the normal operation range according to the abnormal data and the historical data stream.
[0096] If the restart operation is canceled, it means that the technicians believe that the abnormality does not affect the normal operation of the hangar, and it may be necessary to further dynamically adjust the initial normal operating range.
[0097] Each item in the abnormal data needs to be adjusted separately. For example, if the abnormal data indicates that both the network delay and the packet loss rate are abnormal, the normal operating range of the network delay is adjusted according to the network delay dynamic data in the abnormal data; the normal operating range of the packet loss rate is dynamically adjusted according to the packet loss rate data.
[0098] For each abnormal data, the specific steps are as follows:
[0099] S2041. Determine from the historical data stream a first quantity of data that is greater than a normal operating range and does not trigger a restart operation.
[0100] That is, the number of times an anomaly was identified but ignored by the user.
[0101] S2042. Determine a second quantity that is greater than a normal operating range from the abnormal data.
[0102] In this step, the number of times the user ignored each abnormal data in this abnormal data is determined. Under normal circumstances, each abnormality is ignored only once for each user feedback. However, in some cases, such as when the RPA device obtains data within the past 12 hours, there may be multiple abnormalities for each data. For example, a target hangar has 3 abnormalities in the take-off and landing point offset of drones. All abnormal information during this period is pushed to the user, and the user chooses to ignore all 3 abnormalities. Then the second number is 3.
[0103] S2043: If the sum of the first number and the second number is greater than a preset number, the maximum data between the data corresponding to the first number and the data corresponding to the second number is used as the upper limit of the new normal operating range.
[0104] Preset the update strategy that triggers the normal operating range, set the preset number, and trigger the update when the number of user ignores exceeds the preset number. For example, the preset number can be set to 5 times, 10 times, or 3 times. When the number of user ignores reaches the preset number, it means that the ignored data meets the user's expectations, and the largest data is used as the upper limit of the new normal operating range. Similarly, if the abnormality is lower than the lower limit, the smallest data is used as the lower limit of the new normal operating range.
[0105] In this way, the ability to identify anomalies can be improved, making the accuracy of identifying anomalies more in line with user expectations.
[0106] This application mainly involves three parts: hangar status monitoring, APN card remote control and fault recovery alarm system, aiming to improve the reliability, remote operability and fault handling capabilities of the switch control system.
[0107] 1. Hangar status monitoring
[0108] Figure 4 The schematic diagram of the hangar status monitoring system provided for this application is as follows: Figure 4 As shown in the figure, based on RPA technology, anomaly detection and processing strategies based on big data analysis and machine learning, through comprehensive monitoring of the hangar, abnormal conditions can be identified in real time and corresponding processing measures can be taken. Specific abnormal monitoring indicators and acquisition methods include the following: hangar error, intermittent offline logs, occasional image upload failures, short-term increase in packet loss rate, longer RTK fixed time, changes in drone flight time on the same route, large deviations in drone takeoff and landing positions, etc., further enhancing the safety and reliability of hangar operation.
[0109] RPA equipment mainly consists of the following five core parts:
[0110] ① Initial URL setting and target determination: Set the initial URL (Uniform Resource Locator) according to the hangar characteristics and monitoring requirements. Associate the initial URL with the hangar's network architecture, control system, and associated servers.
[0111] ②HTTP request: RPA uses HTTP request to ensure that the request can pass the security check smoothly and reach the target server without triggering any abnormal security alerts.
[0112] ③ Deep analysis: When the server responds to RPA's request and returns data, RPA starts deep analysis to obtain the hangar network connection status display page contained in the HTML page, the web interface of the power management system, etc., the XML file stores the configuration information of the hangar equipment, and the real-time feedback operation parameters of the hangar system contained in the JSON data.
[0113] ④Data extraction: RPA extracts targeted data based on pre-given hangar status monitoring indicators, including network connection bandwidth usage, packet loss rate, delay time and other data; power supply voltage fluctuation range, current size change trend and other data; as well as hangar system CPU usage, memory usage, hard disk read and write speed and feedback values of each key sensor; hangar offline and error logs, short-term increase in packet loss rate, RTK fixed duration and changes in drone flight duration on the same route, drone take-off and landing point offset errors, etc., to avoid system information redundancy.
[0114] ⑤ Intelligent link exploration: New links point to the submodule page of the hangar system, the monitoring interface of the backup server, or the management page of other devices that work with the hangar to a certain extent. By adding these new links to the queue to be crawled, RPA can continue to expand its monitoring scope and form a monitoring network that comprehensively covers all key links of the hangar.
[0115] RPA technology mainly realizes the following functions:
[0116] ① Hangar error reporting and intermittent offline log identification:
[0117] The system monitors the hangar log data in real time and uses a deep analysis algorithm to identify abnormal error information and intermittent offline records. By comparing with the normal operation mode, it can identify frequent errors or network interruptions. Specifically, it regularly obtains hangar logs and filters data based on timestamps to mark abnormal intervals and potential faults.
[0118] ② Detection of image upload failure and packet loss rate increase:
[0119] The hangar monitoring system will regularly extract metadata from the image files uploaded by the hangar, and determine the cause of the upload failure by detecting the packet loss rate, transmission delay and file integrity of the image transmission data stream. If the packet loss rate increases significantly in a short period of time, the system will activate the alarm mechanism and analyze and classify the factors that may affect the upload stability.
[0120] ③RTK fixed time variable length monitoring:
[0121] For hangars using RTK (Real-time Kinematic Positioning) systems, the system will continuously collect time data for RTK fixed states. If the RTK fixed time becomes longer, it may indicate abnormal satellite signal reception or system failure. This information is fed back in real time through a dedicated monitoring interface, and the system will further evaluate positioning accuracy and equipment status based on this information.
[0122] ④ Flight time change and take-off and landing position offset detection:
[0123] The hangar uses the drone flight log to analyze in real time whether there are abnormal fluctuations in the flight time of drones on the same route. If the flight time change trend is found to be inconsistent with historical data, it will be automatically marked as a potential anomaly. At the same time, the GPS data is used to monitor the deviation of the drone's takeoff and landing positions. If the deviation exceeds the predetermined range, the system will issue an alarm according to the set threshold and perform fault location analysis.
[0124] ⑤Data acquisition and anomaly analysis strategy:
[0125] All monitoring data will be collected in real time through pre-set sensors and network interfaces, and the RPA robot system will deeply analyze HTML pages, XML configuration files and JSON data to screen out operating parameters that are critical to the hangar status. These key data include but are not limited to network connection bandwidth, power supply status, equipment hardware load, etc., and further through algorithm analysis, combined with historical operating data and abnormal patterns, possible fault sources can be predicted and warned.
[0126] In the above hangar status monitoring system, RPA monitors data flow in real time, and the system uses data mining algorithms to distinguish between normal and abnormal states. For each abnormal event, the system will perform trend analysis based on historical data to identify whether there is potential equipment failure or external interference. Through intelligent algorithms, the system can adaptively adjust the abnormal recognition threshold to ensure the ability to respond to new failure modes.
[0127] In addition, the hangar status monitoring system not only focuses on the abnormal situation of a single parameter, but also integrates multi-dimensional data for correlation analysis. For example, a short-term increase in packet loss rate may be associated with factors such as RTK positioning delay and flight time change. Therefore, the system uses data fusion technology to perform correlation calculations on the data of different monitoring modules and generate a comprehensive fault assessment report. The report is fed back to the user to help the user assist in determining the type and scope of the fault.
[0128] 2: Remote control system based on APN card
[0129] To achieve accurate and efficient remote control of the drone hangar power supply. This application uses the APN card as the core component for receiving and transmitting information instructions. The solution mainly consists of three core parts:
[0130] ①APN card communication module: The APN card establishes a high-speed and stable communication channel with the remote control center through its built-in communication protocol and encryption mechanism, realizing real-time transmission of data and accurate delivery of instructions.
[0131] ② Command sending and receiving module: When the hangar status monitoring system detects an abnormal state of a hangar, it will immediately feed back this information to the remote control center. At this time, the command sending unit sends power-off and restart hangar drone app commands to the target hangar through the APN card according to the preset control logic.
[0132] ③ Delay control unit: Through reasonable delay settings, the system can effectively avoid the problem caused by premature reclosing of the power supply, thereby improving the success rate of fault handling. After the delay is over, the remote control system reaches the next instruction - sending a reclosing instruction to the hangar through the APN card to achieve a closed loop system. In actual applications, the delay time constant needs to be continuously optimized and adjusted according to dynamic information such as the hangar's operating status, fault type and frequency.
[0133] 3. Fault recovery and alarm system
[0134] The fault recovery and alarm system is an indispensable "safety net" and "alarm" in the entire hangar operation support system. While ensuring that the hangar can resume normal operation as soon as possible, it also notifies relevant personnel in time to further deal with potential problems. The specific design contents are as follows:
[0135] ① Status re-detection module: After the hangar and drone app are restarted, the fault recovery and alarm system works together with the hangar status monitoring system to collect the hangar's operating parameters again. By comparing with the parameter range of the normal operating state, a comprehensive assessment is made as to whether the hangar has truly returned to a stable online state.
[0136] ② Alarm trigger and notification module: If it is detected that the hangar fails to come back online, the alarm trigger unit is activated immediately. According to the preset alarm strategy, the unit sends detailed alarm information to relevant personnel through various communication methods (such as popping up a striking alarm window in the control center, sending SMS or email to management personnel, etc.). The alarm information contains the hangar's identification information, offline time, fault handling process and current status parameters, so that technicians can quickly and accurately perform subsequent manual intervention operations.
[0137] In summary, through the integrated hangar status monitoring system, remote control system and fault recovery system, potential anomalies can be analyzed and identified in real time, avoiding the limitation of traditional monitoring methods that can only analyze a single parameter, and comprehensively improving the efficiency and accuracy of equipment management. Combined with the full process design of fault detection, fault location and self-healing control, the fault detection and automatic recovery mechanism can detect and handle equipment failures in real time, reduce human intervention and operation delays, and effectively ensure the stability of the system.
[0138] Figure 5 A schematic diagram of a control device for a power switch of a drone hangar provided in this application, such as Figure 5 As shown, the control device 40 of the power switch of the drone hangar includes:
[0139] A sending module 401 is used to send an HTTP request for acquiring monitoring data to a server, where the server is a monitoring device of multiple drone hangars, and the server and the multiple drone hangars are connected to the same local area network;
[0140] Receiving module 402, used for receiving the data stream of monitoring hangar returned by the server;
[0141] An abnormality determination module 403, used to determine whether there is an abnormal event based on the data stream and the stored historical data stream;
[0142] A hangar determination module 404 is used to determine the target hangar where the abnormal event occurs if there is an abnormal event;
[0143] The restart control module 405 is used to send a power-off instruction to the APN card of the target hangar, and after a preset delay time, send a power-on restart instruction to the APN card of the target hangar.
[0144] Optionally, the abnormality determination module 403 is specifically used to:
[0145] Determine the normal operating range of each data according to the historical data flow;
[0146] comparing the data in the data stream with the normal operating range;
[0147] If the data in the data stream exceeds the normal operating range, it is determined that an abnormal event exists; otherwise, it is determined that no abnormal event exists.
[0148] Optionally, the sending module 401 is further used for:
[0149] Pushing an abnormal message to a preset terminal device, wherein the abnormal message includes the target hangar and abnormal data corresponding to the abnormal event;
[0150] receiving an indication message returned by the terminal device, wherein the indication message is used to indicate whether to perform a restart operation on the target hangar;
[0151] Accordingly, the restart control module 405 is specifically used for:
[0152] If the instruction message indicates to perform a restart operation on the target hangar, a power-off instruction is sent to the target hangar.
[0153] Optionally, the device further includes a detection and update module 406, configured to:
[0154] If the instruction message indicates to cancel the restart operation on the target hangar, the normal operating range is updated according to the abnormal data and the historical data stream.
[0155] Optionally, the detection and update module 406 is specifically used for:
[0156] For each item of data, determining a first quantity of data that is greater than the normal operating range and does not trigger a restart operation from the historical data stream;
[0157] determining from the abnormal data a second quantity that is greater than the normal operating range;
[0158] If the sum of the first number and the second number is greater than a preset number, the maximum data between the data corresponding to the first number and the data corresponding to the second number is used as the upper limit of the new normal operating range.
[0159] Optionally, the restart control module 405 is further used to:
[0160] Obtaining the status of the target hangar;
[0161] If the target hangar is in a startup state, obtaining operation data of the target hangar;
[0162] comparing the operating data with the normal operating range;
[0163] If the operating data is within the normal operating range, it is determined that the target hangar has recovered to a stable online state; otherwise, it is determined that the target hangar has recovered to an unstable online state.
[0164] The control device for the power switch of the drone hangar provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.
[0165] Figure 6 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0166] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0167] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0168] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.
[0169] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
[0170] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0171] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0172] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0173] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0174] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0175] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0177] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0178] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0179] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0180] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for controlling a power switch of an unmanned aerial vehicle hangar, characterized in that: Applied to a robotic process automation (RPA) device, the method includes: Sending a Hypertext Transfer Protocol (HTTP) request for acquiring monitoring data to a server, wherein the server is a monitoring device of a plurality of drone hangars, and the server and the plurality of drone hangars are connected to the same local area network; Receive the data stream of the monitoring hangar returned by the server; Determining whether there is an abnormal event based on the data stream and the stored historical data stream; If there is an abnormal event, determine the target hangar where the abnormal event occurred; A power-off instruction is sent to the target hangar through the network access technology APN identifier of the target hangar, and a power-on restart instruction is sent to the APN card of the target hangar after a preset delay time.
2. The method according to claim 1, characterized in that The determining whether there is an abnormal event according to the data stream and the stored historical data stream includes: Determine the normal operating range of each data according to the historical data flow; comparing the data in the data stream with the normal operating range; If the data in the data stream exceeds the normal operating range, it is determined that an abnormal event exists; otherwise, it is determined that no abnormal event exists.
3. The method according to claim 2, characterized in that Before sending the power-off instruction to the target hangar, the method further includes: Pushing an abnormal message to a preset terminal device, wherein the abnormal message includes the target hangar and abnormal data corresponding to the abnormal event; receiving an indication message returned by the terminal device, wherein the indication message is used to indicate whether to perform a restart operation on the target hangar; Accordingly, sending a power-off instruction to the target hangar includes: If the instruction message indicates to perform a restart operation on the target hangar, a power-off instruction is sent to the target hangar.
4. The method according to claim 3, characterized in that: The method further comprises: If the instruction message indicates to cancel the restart operation on the target hangar, the normal operating range is updated according to the abnormal data and the historical data stream.
5. The method according to claim 4, characterized in that The updating of the normal operating range according to the abnormal data and the historical data stream includes: For each item of data, determining a first quantity of data that is greater than the normal operating range and does not trigger a restart operation from the historical data stream; determining from the abnormal data a second quantity that is greater than the normal operating range; If the sum of the first number and the second number is greater than a preset number, the maximum data between the data corresponding to the first number and the data corresponding to the second number is used as the upper limit of the new normal operating range.
6. The method according to any one of claims 1 to 3, characterized in that: After sending the power-on restart instruction, the method further includes: Obtaining the status of the target hangar; If the target hangar is in a startup state, obtaining operation data of the target hangar; comparing the operating data with the normal operating range; If the operating data is within the normal operating range, it is determined that the target hangar has recovered to a stable online state; otherwise, it is determined that the target hangar has recovered to an unstable online state.
7. The method according to any one of claims 1 to 3, characterized in that: The content of the data stream is the HTML page, XML configuration file and JSON data of the server monitoring system.
8. A control device for a power switch of an unmanned aerial vehicle hangar, characterized in that: The device comprises: A sending module, used for sending an HTTP request for acquiring monitoring data to a server, wherein the server is a monitoring device of a plurality of drone hangars, and the server and the plurality of drone hangars are connected to the same local area network; A receiving module is used to receive the data stream of the monitoring hangar returned by the server; an abnormality determination module, used to determine whether there is an abnormal event based on the data stream and the stored historical data stream; A hangar determination module is used to determine the target hangar where the abnormal event occurs if there is an abnormal event; The restart control module is used to send a power-off instruction to the APN card of the target hangar, and after a preset delay time, send a power-on restart instruction to the APN card of the target hangar.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.