Target task data processing method and system, electronic equipment and storage medium
By generating the target task data structure corresponding to the target communication protocol in the control device, and automatically determining the data analysis location, the problem that the data processing software needs to be modified as a whole after the communication protocol is changed is solved, and the software reuse rate and data processing efficiency are improved. Reduced costs and human resource consumption.
Patent Information
- Application Number
- CN202411217696.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-27
AI Technical Summary
In the field of automatic control technology, after the communication protocol between the control device and the terminal device is changed, the existing technology requires overall modification of the data processing software, resulting in time-consuming and labor-intensive, low software reusability, and reduced data processing speed and strong coupling. Poor maintenance.
By generating the target task data structure corresponding to the target communication protocol in the control device, and determining the data analysis location based on the structure, analyzing the target task data, automatically adapting to the communication protocol changes and reducing the software modification requirements.
It improves the reuse rate of control software, reduces R&D costs and human resource consumption, saves development time, and enhances data processing efficiency and system flexibility.
Smart Images

Figure CN119201093A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of task data processing, and in particular to a target task data processing method, system, electronic device and storage medium. Background Art
[0002] In the field of automatic control technology, there is usually a scenario where a control device controls a terminal device. The control device receives the target task data of the terminal device. Among them, the communication methods between the control device and the terminal device include 1553B, Ethernet, serial port, switch quantity, etc. Based on the preset clock frequency, the control task of the terminal device is completed through interface instructions. This control process has high real-time requirements on the operating system of the control device, and is usually completed using real-time operating systems such as vxworks and deltaOS.
[0003] The traditional method is to create multiple global variables and data buffers in the program of the data processing software used by the operating system of the control device. After the control device receives the target task data sent by the terminal device, it parses the target task data through the data processing software. If the communication protocol between the control device and the terminal device is changed, the data parsing position of the target task data specified in the original communication protocol will also change. At this time, the data processing software needs to be modified as a whole to accurately parse the target task data for the changed data parsing position. This method is time-consuming and labor-intensive, and the software reusability is low. In addition, the data processing software obtains the target task data from the data buffer and transmits it to each functional module for processing, which reduces the data processing speed. The modules are highly coupled and have poor maintainability, which can easily cause a situation where one hair moves the whole body.
[0004] Therefore, after the communication protocol between the control device and the terminal device is changed, the data processing software needs to be modified as a whole, which is time-consuming and labor-intensive. Low software reusability is an existing problem.
[0005] Application Contents
[0006] In view of this, the purpose of this application is to provide a target task data processing method, system, electronic device and storage medium to solve the above-mentioned problems, realize automatic determination of the data parsing location of the target task data, and parse the target task data, thereby saving human resources and improving software reuse rate.
[0007] In a first aspect, an embodiment of the present application provides a method for processing target task data, the method comprising:
[0008] The control device obtains the target task data sent by the terminal device;
[0009] The control device determines the target communication protocol corresponding to the target task data according to the target task data and the mapping relationship between the pre-configured task data and the communication protocol;
[0010] The control device generates a target task data structure corresponding to the target communication protocol; wherein the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol;
[0011] The control device determines the data parsing position of the target task data according to the target task data structure, and parses the target task data to obtain the target task data parsing result; wherein the target task data parsing result is used to characterize the content of the target task data, and the content of the target task data includes: a request to obtain the longitude of the terminal device at the tth moment and a request to obtain the latitude of the terminal device at the tth moment.
[0012] Preferably, the control device is in communication connection with a satellite signal receiver, and the satellite signal receiver is used to receive data sent by a satellite. The method further includes:
[0013] The control device receives the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment sent by the satellite signal receiver;
[0014] The control device plans the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment.
[0015] Preferably, the control device comprises: a control module and a communication module; the communication module comprises at least one of the following: a CAN module, an Ethernet module, a serial port module, a switch module, and a 1553B module;
[0016] The step of the control device planning the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment comprises:
[0017] The control module generates the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment based on the Kalman filter algorithm according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment;
[0018] The control module sends the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1 to the communication module through the message queue, so that the terminal device obtains the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1 through the communication module, and moves according to the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1.
[0019] Preferably, the control device further comprises: an interface module; and the method further comprises:
[0020] The control module obtains the instruction data sent by the interface module; wherein the instruction data includes at least one of the following: controlling the terminal device to shut down and controlling the terminal device to start up;
[0021] The control module controls the state of the terminal device according to the instruction data.
[0022] Preferably, the interface module is equipped with a display screen, and the method further comprises:
[0023] If the control device and / or the terminal device fails, the control module generates failure information of the control device and / or the terminal device;
[0024] The control module sends the fault information to the interface module through the message queue, so that the interface module displays the fault information through the display screen.
[0025] Preferably, the control device further comprises: a log recording module; and the method further comprises:
[0026] The control module sends the status of the control device and / or the terminal device to the log recording module through the message queue, so that the log recording module records the status of the control device and / or the terminal device.
[0027] Preferably, the control device further includes a clock module, and the method further includes:
[0028] The control module obtains an initialization signal sent by the clock module;
[0029] The control module initializes the control device according to the initialization signal.
[0030] The target task data processing method provided by this application brings the following beneficial effects:
[0031] The present application provides a target task data processing method, in which a control device generates a target task data structure corresponding to a target communication protocol, and determines the data parsing position of the target task data according to the target task data structure, so as to parse the target task data and obtain the target task data parsing result. When parsing the target task data structure, the method can flexibly modify the target task data structure according to the target communication protocol to adapt to different changes in the target communication protocol. Compared with the prior art, after the target communication protocol is changed, it is not necessary to modify the control software of the control device as a whole to adapt to the data parsing position of the target task data specified by the target communication protocol. The reuse rate of the control software is improved, the R&D cost is reduced, and human resources and development time are saved.
[0032] In a second aspect, the present application also provides a target task data processing system, the system comprising:
[0033] An acquisition module, used for acquiring target task data sent by the terminal device;
[0034] A data processing module, used for determining a target communication protocol corresponding to the target task data according to the target task data and a mapping relationship between the pre-configured task data and the communication protocol;
[0035] The data processing module is further used to generate a target task data structure corresponding to the target communication protocol; wherein the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol;
[0036] The data processing module is also used to determine the data parsing position of the target task data according to the target task data structure, and parse the target task data to obtain the target task data parsing result; wherein the target task data parsing result is used to characterize the content of the target task data, and the content of the target task data includes: requesting to obtain the longitude of the terminal device at the tth moment and requesting to obtain the latitude of the terminal device at the tth moment.
[0037] The target task data processing system provided in the embodiment of the present application has the same technical features as the target task data processing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0038] In a third aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the beneficial effects of any of the methods described above are achieved, which will not be repeated here.
[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures particularly pointed out in the description and the drawings.
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 A flowchart of a target task data processing method provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the structure of a control device provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0047] To facilitate understanding of this embodiment, the embodiments of the present application are described in detail below.
[0048] The present application embodiment provides a method for processing target task data, such as Figure 1 As shown, Figure 1 A flowchart of a target task data processing method provided in an embodiment of the present application. The method comprises the following steps:
[0049] S101, a control device obtains target task data sent by a terminal device.
[0050] Specifically, the control device uses vxworks or deltaOS operating system, both of which are real-time operating systems, support multi-task parallel processing, and have high real-time performance and high reliability. The terminal device is a drone or car navigation device. The control device can control and interact with the terminal device. The control device obtains the target task data sent by the terminal device and can further parse the target task data.
[0051] S102, the control device determines the target communication protocol corresponding to the target task data according to the target task data and a pre-configured mapping relationship between the task data and the communication protocol.
[0052] Specifically, the communication protocol is written into the control device and the terminal device by the staff before executing step S101. The following example illustrates this step. For example, the mapping relationship between the pre-configured task data and the communication protocol is shown in Table 1.
[0053]
[0054] Table 1
[0055] After the above communication protocol is changed to the target communication protocol, the order of the source IP, destination IP, message representation, message length, valid identifier, longitude, latitude, altitude and checksum of the above task data will also be changed to be consistent with the order specified by the target communication protocol. Therefore, the control device can determine the target communication protocol corresponding to the target task data according to the target task data and the pre-configured mapping relationship between the task data and the communication protocol.
[0056] S103, the control device generates a target task data structure corresponding to the target communication protocol.
[0057] Among them, the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol.
[0058] In this way, the target task data structure can accurately and orderly combine the various data parsing positions in the target task data according to the data parsing positions specified by the target communication protocol, so that the control device can parse the target task data, thereby improving the efficiency and accuracy of the control device in parsing the target task data.
[0059] S104, the control device determines the data parsing position of the target task data according to the target task data structure, and parses the target task data to obtain the target task data parsing result.
[0060] The target task data analysis result is used to characterize the content of the target task data, and the content of the target task data includes: a request to obtain the longitude of the terminal device at the tth moment and a request to obtain the latitude of the terminal device at the tth moment.
[0061] Specifically, when parsing the target task data, it is necessary to parse the data parsing position of the target task data specified by the target communication protocol in order to accurately parse the content of the target task data. The control device can parse the target task data according to the data parsing position marked by the target task data structure. When the target communication protocol is changed, the control device only needs to modify the data parsing position marked by the target task data structure of the control software according to the data parsing position specified by the changed target communication protocol, so as to accurately parse the content of the target task data. In the prior art, the control device parses the target task data at the data parsing position specified by the target communication protocol through the data processing software. If the target communication protocol is changed, the data parsing position specified by the target communication protocol will also be changed. At this time, the data processing software needs to be modified as a whole in order to accurately parse the target task data for the changed data parsing position. Compared with the prior art, this method only needs to modify the target task data structure to accurately parse the target task data. This method improves the reuse rate of the control software, reduces the complexity of the control software, reduces the number of lines of code for the staff to write the control software, and saves human resources.
[0062] The embodiment of the present application provides a method for processing target task data, wherein a control device generates a target task data structure corresponding to a target communication protocol, and determines the data parsing position of the target task data according to the target task data structure, so as to parse the target task data and obtain the target task data parsing result. When parsing the target task data structure, the method can flexibly modify the target task data structure according to the target communication protocol to adapt to different changes in the target communication protocol. Compared with the prior art, after the target communication protocol is changed, it is not necessary to modify the control software of the control device as a whole to adapt to the data parsing position of the target task data specified by the target communication protocol. The reuse rate of the control software is improved, the R&D cost is reduced, and human resources and development time are saved.
[0063] In one embodiment, the control device is in communication connection with a satellite signal receiver, and the satellite signal receiver is used to receive data sent by a satellite. The control device receives the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment sent by the satellite signal receiver; the control device plans the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment.
[0064] Specifically, in this method, after the control device obtains the target task data analysis result, it sends the target task data analysis result (request to obtain the longitude of the terminal device at the tth moment and request to obtain the latitude of the terminal device at the tth moment) to the satellite signal receiver. The satellite signal receiver sends the target task data analysis result to the satellite, and the satellite captures the longitude of the terminal device at the tth moment and the request to obtain the latitude of the terminal device at the tth moment, and sends them to the satellite signal receiver. The satellite signal receiver sends the longitude of the terminal device at the tth moment and the request to obtain the latitude of the terminal device at the tth moment sent by the satellite to the control device. The control device obtains the position of the terminal device at the tth moment according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment, and plans the movement route of the terminal device according to the position of the terminal device at the tth moment.
[0065] This method can monitor the location of the terminal device in real time so as to predict the location of the terminal device at time t+1 (next moment). This method can accurately plan the movement route of the terminal device at the next moment, ensuring the real-time and accuracy of the movement of the terminal device.
[0066] The following describes how the control device plans the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment. Figure 2 As shown, Figure 2 A schematic diagram of the structure of a control device provided in an embodiment of the present application. The control device 200 includes: a control module 201 and a communication module (not shown in the figure); the communication module includes at least one of the following: a CAN module 202, an Ethernet module 203, a serial port module 204, a switch module 205, and a 1553B module 206; the control module 201 generates the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment based on the Kalman filter algorithm according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment; the control module 201 sends the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment to the communication module through a message queue, so that the terminal device 300 obtains the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment through the communication module, and moves according to the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment.
[0067] Specifically, the Kalman filter algorithm in this method is an efficient recursive filter, which can accurately predict the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the tth moment according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment, so as to realize the real-time prediction of the movement (route) trajectory of the terminal device 300. This method divides the control device 200 into modules, that is, decouples the various modules of the control device 200, and different modules have different priorities. The control device 200 calls each module according to the priority of each module. Among them, the message queue can realize the decoupling between the control module 201, the CAN module 202, the Ethernet module 203, the serial port module 204, the switch module 205 and the 1553B module 206. When the communication module obtains the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment sent by the control module 201 through the message queue, it will not affect the reception of data sent by other modules, and the asynchrony of data acquisition is realized.
[0068] This method improves the real-time and accuracy of the route planning of the control device 200 for the terminal device 300. The setting of the message queue ensures the flexibility of data transmission between the control module 201 and the CAN module 202, Ethernet module 203, serial port module 204, switch module 205 and 1553B module 206 in the control device 200.
[0069] The following describes the control method of the control module 201 of the control device 200 on the terminal device 300. Figure 2 As shown, Figure 2 A schematic diagram of the structure of the control device provided in the embodiment of the present application. The control device 200 also includes: an interface module 207; the control module 201 obtains the instruction data sent by the interface module 207; the control module 201 controls the state of the terminal device 300 according to the instruction data; wherein the instruction data includes at least one of the following: controlling the terminal device 300 to turn off and controlling the terminal device 300 to turn on.
[0070] Specifically, the control module 201 is provided with a state machine, and the control module 201 processes the instruction data sent by the interface module 207 through the state machine. The control module 201 flexibly controls the state of the terminal device 300 according to the instruction data. For example, the terminal device 300 is a drone. The staff inputs the instruction data for controlling the terminal device 300 to be turned off in the interface module 207 of the control device 200. The interface module 207 sends the instruction data for controlling the terminal device 300 to be turned off to the state machine of the control module 201 of the control device 200, and the control module 201 sends the drone shutdown instruction to the drone through the state machine to control the drone to stop. The staff inputs the instruction data for controlling the terminal device 300 to be turned on in the interface module 207 of the control device 200. The interface module 207 sends the instruction data for controlling the terminal device 300 to be turned on to the state machine of the control module 201 of the control device 200, and the control module 201 sends the drone start instruction to the drone through the state machine to control the drone to start.
[0071] In this way, a state machine is set in the control module 201, and the command data sent by the interface module 207 is processed by the state machine, which can significantly improve the control efficiency and stability of the terminal device 300, while enhancing the scalability, maintainability and response speed of the control module 201.
[0072] The following describes the display method of the fault information of the control device 200 and / or the terminal device 300. Figure 2 As shown, Figure 2 A schematic diagram of the structure of the control device provided in the embodiment of the present application. The interface module 207 is equipped with a display screen. If a fault occurs in the control device 200 and / or the terminal device 300, the control module 201 generates fault information of the control device 200 and / or the terminal device 300; the control module 201 sends the fault information to the interface module 207 through a message queue, so that the interface module 207 displays the fault information through the display screen.
[0073] Specifically, during the data exchange between the control device 200 and the terminal device 300 and / or the control device 200 controlling the state of the terminal device 300, the control device 200 and / or the terminal device 300 may fail. At this time, the control module 201 generates failure information of the control device 200 and / or the terminal device 300 and sends it to the display screen of the interface module 207, so that the staff can judge whether the control device 200 or the terminal device 300 fails according to the failure information, or whether both the control device 200 and the terminal device 300 fail. The staff can also conduct in-depth research on the specific cause of the failure of the control device 200 and / or the terminal device 300 according to the failure information.
[0074] This method can enable the staff to find fault information of the control device 200 and / or the terminal device 300 in time, and perform fault troubleshooting on the control device 200 and / or the terminal device 300 according to the fault information, thereby ensuring the normal operation of the control device 200 and / or the terminal device 300.
[0075] The following describes a method for recording the state of the control device 200. Figure 2 As shown, Figure 2 A schematic diagram of the structure of the control device provided in the embodiment of the present application. The control device 200 also includes: a log recording module 208; the control module 201 sends the status of the control device 200 and / or the terminal device 300 to the log recording module 208 through a message queue, so that the log recording module 208 records the status of the control device 200 and / or the terminal device 300.
[0076] Specifically, the above-mentioned log recording module 208 records the status of the control device 200 and / or the terminal device 300, so that the staff can understand the various states of the control device 200 and / or the terminal device 300 in detail during the maintenance process of the control device 200 and / or the terminal device 300, and the state includes at least one of the following: the control device 200 and / or the terminal device 300 is down, the control device 200 and the terminal device 300 interact with data, and the software of the control device 200 and / or the terminal device 300 is upgraded.
[0077] In this manner, the log recording module 208 records the status of the control device 200 and / or the terminal device 300, so that the staff can timely understand the status changes of the control device 200 and / or the terminal device 300. In addition, when the staff performs maintenance on the control device 200 and / or the terminal device 300 in the future, they can also quickly find the cause of the fault according to the recorded status of the control device 200 and / or the terminal device 300. This manner improves the maintainability of the control device 200 and / or the terminal device 300.
[0078] In one embodiment, if Figure 2 As shown, Figure 2 The control device 200 further includes a clock module 209, and the control module 201 obtains an initialization signal sent by the clock module 209, and the control module 201 initializes the control device 200 according to the initialization signal.
[0079] Specifically, the clock module 209 sends an initialization signal to the control module 201 according to a preset frequency, and the control module 201 initializes the control device 200 according to the initialization signal sent by the clock module 209. The preset frequency is 4 to 16 MHZ.
[0080] In this method, the clock module 209 provides a unique timing reference for the control module 201. The clock module 209 has high stability and accuracy, so the initialization signal sent by the clock module 209 can ensure that the control device 200 is initialized at a stable time point, avoiding initialization errors or conflicts caused by time deviations.
[0081] Based on the above method embodiment, the present application embodiment provides a target task data processing system, which includes:
[0082] An acquisition module, used to acquire target task data sent by the terminal device 300;
[0083] A data processing module, used to determine the target communication protocol corresponding to the target task data according to the target task data and the mapping relationship between the pre-configured task data and the communication protocol;
[0084] The data processing module is further used to generate a target task data structure corresponding to the target communication protocol; wherein the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol;
[0085] The data processing module is also used to determine the data parsing position of the target task data according to the target task data structure, and parse the target task data to obtain the target task data parsing result; wherein the target task data parsing result is used to characterize the content of the target task data, and the content of the target task data includes: requesting to obtain the longitude of the terminal device 300 at the tth moment and requesting to obtain the latitude of the terminal device 300 at the tth moment.
[0086] The target task data processing system provided in the embodiment of the present application has the same technical features as the target task data processing method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0087] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned target task data processing method.
[0088] See also Figure 3 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned target task data processing method.
[0089] Further, Figure 3The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0090] Among them, the memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA (Industrial Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Enhanced Industry Standard Architecture) bus, etc. The above-mentioned bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0091] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0092] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned target task data processing method.
[0093] The computer program product of the target task data processing method, system and electronic device provided in the embodiments of the present application includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0094] In addition, in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances. 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 non-volatile computer-readable storage medium that can be executed by a processor. Based on this understanding, the technical solution of the present application is essentially 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, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0095] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0096] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A target task data processing method, characterized in that: The method comprises: The control device obtains the target task data sent by the terminal device; The control device determines the target communication protocol corresponding to the target task data according to the target task data and the mapping relationship between the pre-configured task data and the communication protocol; The control device generates a target task data structure corresponding to the target communication protocol; wherein the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol; The control device determines the data parsing position of the target task data according to the target task data structure, and parses the target task data to obtain the target task data parsing result; wherein the target task data parsing result is used to characterize the content of the target task data, and the content of the target task data includes: a request to obtain the longitude of the terminal device at the tth moment and a request to obtain the latitude of the terminal device at the tth moment.
2. The target task data processing method according to claim 1, characterized in that: The control device is in communication connection with a satellite signal receiver, and the satellite signal receiver is used to receive data sent by a satellite. The method further includes: The control device receives the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment sent by the satellite signal receiver; The control device plans the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment.
3. The target task data processing method according to claim 2, characterized in that: The control device comprises: a control module and a communication module; the communication module comprises at least one of the following: a CAN module, an Ethernet module, a serial port module, a switch module, and a 1553B module; The step of the control device planning the moving route of the terminal device according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment comprises: The control module generates the longitude of the terminal device at the t+1th moment and the latitude of the terminal device at the t+1th moment based on the Kalman filter algorithm according to the longitude of the terminal device at the tth moment and the latitude of the terminal device at the tth moment; The control module sends the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1 to the communication module through the message queue, so that the terminal device obtains the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1 through the communication module, and moves according to the longitude of the terminal device at time t+1 and the latitude of the terminal device at time t+1.
4. The target task data processing method according to claim 3 is characterized in that: The control device further includes: an interface module; the method further includes: The control module obtains the instruction data sent by the interface module; wherein the instruction data includes at least one of the following: controlling the terminal device to shut down and controlling the terminal device to start up; The control module controls the state of the terminal device according to the instruction data.
5. The target task data processing method according to claim 4 is characterized in that: The interface module is equipped with a display screen, and the method further comprises: If the control device and / or the terminal device fails, the control module generates failure information of the control device and / or the terminal device; The control module sends the fault information to the interface module through the message queue, so that the interface module displays the fault information through the display screen.
6. The target task data processing method according to claim 3 is characterized in that: The control device further includes: a log recording module; the method further includes: The control module sends the status of the control device and / or the terminal device to the log recording module through the message queue, so that the log recording module records the status of the control device and / or the terminal device.
7. The target task data processing method according to claim 3 is characterized in that: The control device further includes a clock module, and the method further includes: The control module obtains an initialization signal sent by the clock module; The control module initializes the control device according to the initialization signal.
8. A target task data processing system, characterized in that: The system comprises: An acquisition module, used for acquiring target task data sent by the terminal device; A data processing module, used for determining a target communication protocol corresponding to the target task data according to the target task data and a mapping relationship between the pre-configured task data and the communication protocol; The data processing module is further used to generate a target task data structure corresponding to the target communication protocol; wherein the data parsing position marked by the target task data structure corresponds one-to-one to the data parsing position specified by the target communication protocol; The data processing module is also used to determine the data parsing position of the target task data according to the target task data structure, and parse the target task data to obtain the target task data parsing result; wherein the target task data parsing result is used to characterize the content of the target task data, and the content of the target task data includes: requesting to obtain the longitude of the terminal device at the tth moment and requesting to obtain the latitude of the terminal device at the tth moment.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are executed.