A method for creating and pushing inspection instructions for drones based on SSH service framework
Through the UAV patrol instruction push creation method based on the SSH service framework, the problem of security risks of drone data transmission is solved, a safer and more flexible power grid data push solution is realized, and the stability of power grid patrol operations is improved. Security.
Patent Information
- Application Number
- CN202210630313.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-06
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2042-06-06
AI Technical Summary
The data generated by drones during power grid inspection operations need to be continuously transmitted to the control management center wirelessly, which poses security risks, especially under the interference of hidden sabotage or hostile forces, steals or destroys important operating data of the power grid, affecting the stability of the power grid. run.
Adopting the UAV patrol instruction push creation method based on the SSH service framework, establishing an SSH service framework in IDE development tools and wireless communication technology, configuring data push services and control parameters, introducing AOP's Schema data structure, creating sections and defining Point-in-time, implement data updates and execution, combine JDK management tools to manage thread pools, optimize task processing and cache queues, and ensure system security and stability.
It provides a safer, flexible and efficient UAV inspection instruction push solution, standardizes and unifies multi-stage push service management, reduces the difficulty of system coupling, and improves the security and stability of power grid data transmission.
Abstract
Description
Technical Field
[0001] The present application belongs to the field of power grid drone inspection control technology, and in particular, relates to a method for creating and pushing drone inspection instructions based on an SSH service framework. Background Art
[0002] With the rapid development of drone inspection technology, drones are increasingly used in distribution network inspection operations, engineering surveys, disaster assessments and other projects. As an important resource for maintaining industrial production and daily learning work, the safety and stability of electricity are becoming increasingly important. Limited by the drone's own data storage and maintenance capabilities and the real-time requirements of power grid operations, the relevant data generated by drone operations need to be continuously transmitted to the control and management center via wireless transmission. This poses a security risk to hidden saboteurs or hostile forces who interfere with the stable operation of the power grid and steal or destroy important power grid operation data. Summary of the invention
[0003] The purpose of this application is to provide a method for creating a drone inspection instruction push based on an SSH service framework, which is mainly used to establish and manage the drone inspection operation instruction push process.
[0004] To achieve the above objectives, this application adopts the following technical solutions.
[0005] The present invention provides a method for creating a drone inspection command push based on an SSH service framework, comprising the following steps:
[0006] Step 1: Establish the SSH service framework
[0007] Based on IDE development tools and wireless communication technology, an SSH service framework is established with a base station as the server (fixed or movable base station) and a drone as the client;
[0008] Step 2: Configure the data push service
[0009] Based on the data push requirements of the network distribution drone inspection, the data service is declared in the SSH service configuration, which specifically means: setting the data service name in the SSH service configuration file, declaring the service class, and defining the service data mapping and path, the matching principle of the data mapping and path, and the matching priority of the data mapping and path in a distinguishable way;
[0010] Step 3: Configure the push service control parameters:
[0011] Define cross-domain execution parameters according to the requirements of drone joint inspection or online networking; define execution configuration parameters of remote scripts or cross-domain scripts according to the requirements of drone function configuration; define service debugging methods and debugging parameters according to the requirements of system testing;
[0012] Step 4: Control the overall system operation parameters in the push service configuration:
[0013] Determine the maximum number of batch requests based on the actual performance of the server and the restriction requirements for DOS attacks; determine the maximum number of service threads based on the actual performance of the server and the restriction requirements for clients in the system;
[0014] Step 5: Introduce the Schema data structure in the push task
[0015] Introduce the AOP-based Schema data structure in the push task, and create aspects for data update and execution, specifically including: start the AOP mode in the push configuration, create a namespace, declare the aspect service for the push task, declare the entry point according to the key nodes involved in the current push task, and define the entry feedback action; the entry feedback action is used to return a predetermined value according to the execution result after the entry action is executed; the predetermined value is used as the impact weight of the push service execution plan.
[0016] A further improvement or preferred implementation scheme of the aforementioned method for pushing and creating UAV inspection instructions based on the SSH service framework, in step 1, the establishment of the SSH service framework includes: defining the basic message format and execution standard for establishing a TCP connection, determining the SSH service version and negotiated connection method between the base station and the UAV; determining the server and client session keys and ID authentication procedures, and creating an optional authentication scheme for client authentication.
[0017] A further improvement or preferred implementation scheme of the aforementioned drone inspection command push creation method based on the SSH service framework, in step 3, in particular, in the process of defining cross-domain execution parameters, it is necessary to configure the rules of the class to be called, convert the class to be called so that it can be recognized by the server, and introduce it through the service tag.
[0018] A further improvement or preferred implementation scheme of the aforementioned method for creating a drone inspection command push based on the SSH service framework. In step 4, as a preferred implementation scheme, the JDK management tool can be used to construct a thread pool using its declaration function, and the command push task is executed by calling the function. At the same time, in order to avoid the passive occupation of threads by tasks, it is necessary to define activity maintenance parameters, which are used to record the idle time of each task thread. When the idle time of the task thread reaches a preset value, the task thread is destroyed or cached. During the cache processing, a buffer work queue is established to arrange unassigned tasks or task threads that need to be cached, and the tasks in the cache queue are filled into the work thread in sequence according to the preset queuing strategy.
[0019] A further improvement or preferred implementation scheme for the aforementioned method for pushing and creating drone inspection instructions based on the SSH service framework, in step 4, in the aforementioned process, when the number of tasks exceeds the executable or cache capacity, it is necessary to perform selection and deletion processing. For the high-weight tasks selected in this process, first contact the client corresponding to the task target. If the contact is successfully established, fill it into the first task in the cache queue, move the tasks in the cache queue back in sequence, and delete the last task in the cache queue.
[0020] A further improvement or preferred implementation scheme of the aforementioned method for pushing and creating drone inspection instructions based on the SSH service framework, in step 5, during the specific implementation process, the initial parameters for entry are declared in the SSH service configuration file, and client and server entry connection rules are established; the entry control service panel is accessed in the control interface of the server, and the remotely callable service class is mounted to the corresponding control area of the entry control service panel.
[0021] A further improvement or preferred implementation scheme of the aforementioned method for pushing and creating UAV inspection instructions based on the SSH service framework, in step 5, declaring the initial entry parameters includes: declaring a bean object in the SSH service configuration file, the bean object pointing to the class declared as a slice; declaring the execution order between cross-cutting points and core points in the SSH service configuration, and introducing entry points.
[0022] Its beneficial effects are:
[0023] The method for creating drone inspection instructions based on the SSH service framework in this application is based on the SSH push service framework, combined with aop data structure and mapping configuration steps, and while standardizing and unifying the management mode of multi-segment push services, it introduces a multi-point entry method, providing a more free, flexible and secure inspection instruction push solution and push task execution structure. DETAILED DESCRIPTION
[0024] The present application is described in detail below in conjunction with specific embodiments.
[0025] It should be noted that the drones (clients) referred to in this application mainly refer to various types of flying drones, ground drones and other equipment used to perform remote or automated operation tasks. The base stations (servers) refer to fixed base stations such as ground command facilities or mobile operation platforms such as mobile command vehicles, air warning management systems, etc. In addition to describing the necessary management and control schemes, the steps may involve the processing of some basic data or data flows. The specific steps and control methods are standardized and mature technical solutions in this application and the framework system it relies on. The configuration and implementation plan cannot be changed and can be directly obtained through the standard protocol documents of the corresponding service framework. Therefore, they will not be described in detail in this article.
[0026] The method for creating a drone inspection command push based on the SSH service framework of this application mainly includes the following steps:
[0027] Step 1: Steps to establish the SSH service framework
[0028] Based on IDE development tools and wireless communication technology, an SSH service framework is established with base stations as servers (fixed or movable base stations) and drones as clients. The SSH service framework, namely the Secure Shell service, is a service framework with strong authentication protection functions in existing technology centers. Its core framework results and execution modes are determined by the Secure Shell protocol, including but not limited to basic data such as version negotiation, basic key and algorithm negotiation, session request mode, and interactive session mode. The basic content of these basic data has been stabilized.
[0029] On the basis of the above, in order to make the operation process of the service framework more in line with the requirements of continuous command control and data transmission of multiple clients (multiple drone devices) in this application, in this step, the content of establishing the SSH service framework also includes: defining the basic message format and execution standard for establishing a TCP connection, determining the SSH service version and negotiation connection method between the base station and the drone; determining the server and client session keys and ID authentication procedures, and creating an optional authentication scheme for client authentication;
[0030] Step 2: Configure the data push service
[0031] Based on the data push requirements of the network distribution drone inspection, the data service is declared in the SSH service configuration, which specifically means: setting the data service name in the SSH service configuration file, declaring the service class, and defining the service data mapping and path, the matching principle of the data mapping and path, and the matching priority of the data mapping and path in a distinguishable way;
[0032] Step 3: Configure the push service control parameters:
[0033] Define cross-domain execution parameters according to the requirements of drone joint inspection or online networking; define execution configuration parameters of remote scripts or cross-domain scripts according to the requirements of drone function configuration; define service debugging methods and debugging parameters according to the requirements of system testing;
[0034] In particular, when defining cross-domain execution parameters, you need to configure the rules for the classes to be called, convert the classes to be called so that they can be recognized by the server, and introduce them through service tags;
[0035] Step 4: Control the overall system operation parameters in the push service configuration:
[0036] Determine the maximum number of batch requests based on the actual performance of the server and the restriction requirements for DOS attacks; determine the maximum number of service threads based on the actual performance of the server and the restriction requirements for clients in the system;
[0037] As a preferred implementation scheme, the JDK management tool can be used to construct a thread pool using its declaration function, and tasks can be pushed by calling function execution instructions. At the same time, in order to avoid the passive occupation of threads by tasks, it is necessary to define activity maintenance parameters, which are used to record the idle time of each task thread. When the idle time of a task thread reaches a preset value, the task thread is destroyed or cached. In the cache processing process, a buffer work queue is established to arrange unassigned tasks or task threads that need to be cached, and the tasks in the cache queue are filled into the work thread in sequence according to the preset queuing strategy.
[0038] In the above process, when the number of tasks exceeds the executable or cache capacity, it is necessary to select and delete them. For the high-weight tasks selected in this process, first contact the client corresponding to the task target. If the contact is successfully established, fill it into the first task in the cache queue, move the tasks in the cache queue back in sequence, and delete the last task in the cache queue;
[0039] Step 5: Introduce the Schema data structure in the push task
[0040] Introduce the Schema data structure based on AOP in the push task, and create aspects for data update and execution, specifically including: start the AOP mode in the push configuration, create a namespace, declare the aspect service for the push task, declare the entry point according to the key nodes involved in the current push task, and define the entry feedback action; the entry feedback action is used to return a predetermined value according to the execution result after the entry action is executed; the predetermined value is used as the impact weight of the push service execution plan;
[0041] During the specific implementation process, the initial parameters of the cut-in are declared in the SSH service configuration file, and the cut-in connection rules between the client and the server are established; the cut-in control service panel is accessed on the control interface of the server, and the service class that can be remotely called is mounted to the corresponding control area of the cut-in control service panel;
[0042] Declaring the initial parameters of the entry includes: declaring a bean object in the SSH service configuration file, wherein the bean object points to the class declared as a slice; declaring the execution order between the crosscut point and the core point in the SSH service configuration, and introducing the entry point;
[0043] It should be noted that in the AOP-based Schema data structure, based on the aspect-oriented theory, the push service class is mainly defined as an aspect, the entry point is used to match the implementation of all data update operations, and the notification declaration is used to determine the execution weight of the service and update; in the actual implementation process, each aspect and entry point is independent of each other in the implementation space, while the weight of the execution order is related, so as to improve the system coupling capability and reduce the difficulty of implementation.
Claims
1. A method for creating and pushing inspection instructions for drones based on the SSH service framework. It is characterized in that The steps include: Step 1. Steps to establish the SSH service framework Based on IDE development tools and wireless communication technology, an SSH service framework is established with the base station as the server and the drone as the client; Step 2. Steps to configure data push service Based on the data push requirements of the network distribution drone inspection, the data service is declared in the SSH service configuration, which specifically means: setting the data service name in the SSH service configuration file, declaring the service class, and defining the service data mapping and path, the matching principle of the data mapping and path, and the matching priority of the data mapping and path in a distinguishable way; Step 3. Steps to configure push service control parameters: Define cross-domain execution parameters according to the requirements of drone joint inspection or online networking; define execution configuration parameters of remote scripts or cross-domain scripts according to the requirements of drone function configuration; define service debugging methods and debugging parameters according to the requirements of system testing; Step 4. Steps to control the overall system operating parameters in the push service configuration: Determine the maximum number of batch requests based on the actual performance of the server and the restriction requirements for DOS attacks; determine the maximum number of service threads based on the actual performance of the server and the restriction requirements for clients in the system; In step 4, a JDK management tool is used to construct a thread pool using its declaration function, and tasks are pushed by calling function execution instructions. At the same time, in order to avoid the passive occupation of threads by tasks, an activity maintenance parameter needs to be defined. The parameter is used to record the idle time of each task thread. When the idle time of a task thread reaches a preset value, the task thread is destroyed or cached. In the cache processing process, a buffer work queue is established to arrange unassigned tasks or task threads that need to be cached, and the tasks in the cache queue are filled into the work thread in sequence according to the preset queuing strategy. Step 5. Introduce the Schema data structure in the push task Introduce the Schema data structure based on AOP in the push task, and create aspects for data update and execution, specifically including: start the AOP mode in the push configuration, create a namespace, declare the aspect service for the push task, declare the entry point according to the key nodes involved in the current push task, and define the entry feedback action; the entry feedback action is used to return a predetermined value according to the execution result after the entry action is executed; the predetermined value is used as the impact weight of the push service execution plan; Declaring the initial parameters of the entry includes: declaring a bean object in the SSH service configuration file, wherein the bean object points to the class declared as a slice; declaring the execution order between the crosscut point and the core point in the SSH service configuration, and introducing the entry point; In step 4, in the aforementioned process, when the number of tasks exceeds the executable or cache capacity, for the high-weight tasks selected in this process, first contact is made with the client corresponding to the task target. If the contact is successfully established, it is filled into the first task in the cache queue, and the tasks in the cache queue are moved back in sequence, and the last task in the cache queue is deleted.
2. According to the method for pushing and creating a drone inspection instruction based on the SSH service framework according to claim 1, It is characterized in that In step 1, establishing the SSH service framework includes: defining the basic message format and execution standard for establishing a TCP connection, determining the SSH service version and negotiated connection method between the base station and the drone; determining the server and client session keys and ID authentication procedures, and creating an optional authentication scheme for client authentication.
3. According to the method for pushing and creating a drone inspection instruction based on the SSH service framework according to claim 1, It is characterized in that In step 3, during the process of defining cross-domain execution parameters, it is necessary to configure the rules of the class to be called, convert the class to be called so that it can be recognized by the server, and introduce it through the service tag.
4. According to the method for pushing and creating a drone inspection instruction based on the SSH service framework according to claim 1, It is characterized in that In step 5, the initial parameters for entry are declared in the SSH service configuration file, and client and server entry connection rules are established; the entry control service panel is accessed in the control interface of the server, and the remotely callable service class is mounted to the corresponding control area of the entry control service panel.
Citation Information
Patent Citations
Method and system for cross-system remote deployment of service system
CN107992337A
Method for designing software reliability engineering integrated environment framework
CN109032945A
Method for remotely operating linux server based on SSH protocol
CN110569473A
Field data recovery system and method based on unmanned aerial vehicle
CN112947590A
Micro-service application cross-network communication method, device, system and equipment
CN113301116A
