Data processing method and device based on equipment protocol and electronic equipment

By obtaining and analyzing spacecraft equipment protocol documents, generating or analyzing equipment data, and realizing data transmission through dynamic scripts, the development and maintenance of integrated equipment monitoring system in measurement, operation and control is solved, and the flexibility and reliability of equipment data processing is improved.

CN120128643APending Publication Date: 2025-06-10SHAANXI XINGYI SPACE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510319271.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-10

AI Technical Summary

Technical Problem

In the prior art, it is difficult to develop the monitoring system of integrated measurement, operation and control equipment, and it is difficult to maintain it in the later stage, mainly due to the wide variety of equipment and inconsistent communication protocols.

Method used

By obtaining the spacecraft's equipment protocol documents, including protocol structure information and parameter information, the device data is generated or parsed based on this information, and the device data is transmitted through dynamic scripts.

Benefits of technology

It realizes flexible adaptation to different devices and protocols, accurately control and manage equipment data, improves the flexibility and reliability of equipment data processing, and simplifies equipment management and data exchange.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120128643A_ABST
    Figure CN120128643A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device based on an equipment protocol, electronic equipment and a storage medium, and relates to the technical field of spacecraft engineering. The method comprises the following steps: acquiring an equipment protocol document of a spacecraft; wherein the equipment protocol document comprises protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used for indicating a data frame structure of equipment data corresponding to the spacecraft, and the parameter information is used for generating or analyzing a parameter value of a corresponding data node in the equipment data; obtaining a dynamic script corresponding to the device protocol document, and realizing transmission of the device data based on the dynamic script; wherein the dynamic script is a pre-developed script file based on the equipment protocol document and is used for generating or analyzing the equipment data. The flexibility and reliability of equipment data processing are improved, and powerful support is provided for equipment management and data exchange.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of spacecraft engineering, and in particular, to a data processing method, apparatus, electronic device, and storage medium based on a device protocol. Background Art

[0002] The integrated measurement, operation, and control device is a highly integrated device in the aerospace field. It integrates multiple functions such as measurement, operation, and control, and realizes the efficient and precise management and operation of spacecraft or other aerospace equipment. In high-density space launch missions, it is necessary to ensure that the integrated measurement, operation, and control device maintains stable performance during long-term operation. Therefore, it is particularly important to manage the health status of the integrated measurement, operation, and control device to make it highly stable and reliable.

[0003] In related technologies, problems such as high development difficulty and difficult later maintenance of the device monitoring system are caused by monitoring and managing the health status of the integrated measurement, operation, and control device, regularly checking and maintaining it to timely discover and solve problems, so as to ensure that the device is always in the best operating state. However, due to the large variety of current devices, each device has its specific functions and operation methods, and the communication protocols of these devices are not unified. Summary of the Invention

[0004] In view of this, the embodiments of the present disclosure propose a data processing method, apparatus, electronic device, and computer-readable storage medium based on a device protocol to solve problems such as high development difficulty and difficult later maintenance of the device monitoring system in related technologies.

[0005] According to a first aspect of the present disclosure, there is provided a data processing method based on a device protocol, including: obtaining a device protocol document of a spacecraft; wherein the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate the data frame structure of device data corresponding to the spacecraft, and the parameter information is used to generate or parse parameter values of corresponding data nodes in the device data; obtaining a dynamic script corresponding to the device protocol document, and implementing the transmission of the device data based on the dynamic script; wherein the dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse the device data.

[0006] According to a second aspect of the present disclosure, there is provided a data processing apparatus based on a device protocol, including: a configuration document acquisition module for acquiring a device protocol document of a spacecraft; wherein the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate the data frame structure of device data corresponding to the spacecraft, and the parameter information is used to generate or parse parameter values of corresponding data nodes in the device data; a device data processing module for acquiring a dynamic script corresponding to the device protocol document and implementing the transmission of the device data based on the dynamic script; wherein the dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse the device data.

[0007] According to a third aspect of the present disclosure, there is provided an electronic device, including: a processor; and a memory storing a program, wherein the program includes instructions that, when executed by the processor, cause the processor to execute the above-mentioned data processing method based on a device protocol.

[0008] According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the above-mentioned data processing method based on a device protocol.

[0009] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:

[0010] In the data processing method based on a device protocol provided by the exemplary embodiment of the present disclosure, a device protocol document of a spacecraft is acquired; wherein the above-mentioned device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the above-mentioned protocol structure information is used to indicate the data frame structure of device data corresponding to the spacecraft, and the above-mentioned parameter information is used to generate or parse parameter values of corresponding data nodes in the device data; a dynamic script corresponding to the device protocol document is acquired, and the transmission of the device data is implemented based on the dynamic script; wherein the above-mentioned dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse the device data. By writing the protocol structure information and parameter information of the device into the device protocol document and generating or parsing the device data based on the device protocol document during the data transmission process, the exemplary embodiment of the present disclosure can flexibly adapt to the requirements of different devices and protocols, achieve precise control and management of the device data, improve the flexibility and reliability of the device data processing, and provide strong support for device management and data exchange. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In the following description of the exemplary embodiments with reference to the accompanying drawings, more details, features, and advantages of the present disclosure are disclosed. In the drawings:

[0012] Figure 1 The flowchart of a data processing method based on a device protocol according to an exemplary embodiment of the present disclosure is shown;

[0013] Figure 2 The schematic block diagram of a data processing apparatus based on a device protocol according to an exemplary embodiment of the present disclosure is shown;

[0014] Figure 3 The structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. Detailed implementation manners

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0016] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0017] As used herein, the term "including" and its variants are open-ended, that is, "including but not limited to". The term "based on" is "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of the functions executed by these devices, modules or units or their interdependent relationships.

[0018] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly stated in the context, it should be understood as "one or more".

[0019] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0020] Embodiments of the present disclosure provide a data processing method, apparatus, electronic device, and storage medium based on a device protocol. The solutions of the present disclosure will be described below with reference to the accompanying drawings.

[0021] Embodiments of the present disclosure first provide a data processing method based on a device protocol. Refer to Figure 1 As shown, the data processing method based on the device protocol specifically includes the following steps:

[0022] S110: Obtain the device protocol document of the spacecraft; wherein, the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate the data frame structure of the device data corresponding to the spacecraft, and the parameter information is used to generate or parse the parameter values of the corresponding data nodes in the device data;

[0023] S120: Obtain the dynamic script corresponding to the device protocol document, and implement the transmission of the device data based on the dynamic script; wherein, the dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse the device data.

[0024] In the data processing method based on the device protocol provided by the exemplary embodiment of the present disclosure, by writing the protocol structure information and parameter information of the device into the device protocol document, and generating or parsing the device data based on the device protocol document during the data transmission process, it is possible to flexibly adapt to the requirements of different devices and protocols, achieve precise control and management of the device data, improve the flexibility and reliability of the device data processing, and provide strong support for device management and data exchange.

[0025] Next, in another embodiment, the above steps will be described in more detail.

[0026] In step S110, obtain the device protocol document of the spacecraft; wherein, the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate the data frame structure of the device data corresponding to the spacecraft, and the parameter information is used to generate or parse the parameter values of the corresponding data nodes in the device data.

[0027] In the embodiments of the present application, the above-mentioned spacecraft refers to various aircraft that operate in space according to the laws of celestial mechanics and perform specific tasks such as exploring, developing, and utilizing space and celestial bodies. Exemplarily, the above-mentioned spacecraft can be space vehicles such as satellites, detectors, and rockets.

[0028] In the embodiments of the present application, the above device data is data sent to the above spacecraft or data received from the above spacecraft. Exemplarily, the device data sent to the spacecraft may be command data for controlling the spacecraft to perform a specific task, and the device data received from the spacecraft may be various data such as telemetry and remote sensing generated during the operation of the spacecraft.

[0029] In the embodiments of the present application, the above device protocol document is a pre-configured document for generating device data or parsing device data. Exemplarily, the device protocol document includes the above protocol structure information and parameter information.

[0030] In the embodiments of the present application, the above protocol structure information is used to indicate the data frame structure of the above device data. Exemplarily, the protocol structure information includes the hierarchical structure and node information of the protocol, and specifically may include information such as the description details of the protocol, hierarchical structure information, association relationships between protocols, processing methods, relationships between nodes, relationships between parameters, and correlations with scripts. During the process of generating or parsing device data, first read the corresponding device protocol configuration information, and then process it according to the hierarchical structure, including node processing and script processing, and finally output the required result data.

[0031] In the embodiments of the present application, exemparily, the hierarchical structure of the data frame structure of the above device data may be as follows: the first level of the data frame structure of the device data may include data nodes such as source address, target address, information category, date, data field, etc.; among them, taking the above data field as an example, the second level of the data frame structure of the device data may include data nodes such as unit identifier, channel validity identifier, and unit parameter setting command under the data field; further, taking the above unit parameter setting command as an example, the third level structure of the data frame structure of the device data may include specific parameters under the above unit parameter setting command.

[0032] In the embodiments of the present application, the above protocol structure information is stored in a unified format. Through a standardized configuration method, it is not only convenient to read and modify device data, but also can simplify the protocol copying and modification work between similar devices. By adopting a common data exchange format, it is beneficial to realize version control of the protocol, as well as migration and sharing of configuration information between different platforms, providing a solid foundation for the scalability and interoperability of device protocol configuration, improving the efficiency of the data processing process, reducing the error probability caused by inconsistent configuration, and thus ensuring the stability and reliability of device communication.

[0033] In the embodiments of the present application, the above parameter information is used to record the detailed parameter information in the current device protocol. In the data processing flow, it can be used to generate or parse the parameter values of the corresponding data nodes in the above device data. Exemplarily, the above parameter information may include information such as the name, location, type, endianness attribute of the parameter, and the alarm threshold of the parameter. In the data processing flow, when reaching a specific data node, the parameter information related to the node will be read, and the corresponding parameter script will be executed to complete the calculation and processing of the result data.

[0034] In the embodiments of the present application, the above protocol structure information configuration provides the structure and logical framework required for processing device data, and the above device parameter information configuration provides the necessary parameter details for each data node, making the data processing process both orderly and precise. These two configuration informations together ensure the accuracy and efficiency of device data processing. Through such a design, it can flexibly adapt to the requirements of different devices and protocols, and achieve precise control and management of device data.

[0035] In step S120, a dynamic script corresponding to the device protocol document is obtained, and device data transmission is implemented based on the dynamic script; wherein, the above dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse device data.

[0036] In the embodiments of the present application, the above dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse device data in the data processing flow of the device. That is, the above protocol structure information is used to record the association information between the hierarchical levels of the data frame structure of the device data. Through the combination form of the hierarchical structure and the dynamic script, the configuration of the protocol structure information is realized. Thus, when processing a specific data node, the corresponding dynamic script can be called, the hierarchical structure and node information of the protocol can be obtained by reading the pre-set protocol configuration information, and according to the hierarchical information between the data nodes and the context parameter information, the parameter value of the current data node can be dynamically calculated, completing the generation or parsing of the parameter value of the current data node, realizing the configuration of the protocol structure information and the dynamic generation of data, and enabling the device to perform flexible protocol processing according to actual needs. In addition, in order to optimize performance, the embodiments of the present application can also perform pre-compilation processing on the above dynamic script and cache the results, thereby avoiding repeated compilation and repeated calculation of the same script, and improving the processing efficiency and the overall performance of the system.

[0037] Specifically, when the above device data is the data sent to the spacecraft, the transmission of device data based on dynamic scripts can be implemented as follows: read the parameter information corresponding to the data nodes in the order of execution configured in advance; run the dynamic script based on the parameter information to generate the parameter values corresponding to the data nodes; splice the parameter values of the data nodes according to the hierarchical order of the data frame structure to generate device data, and transmit the device data to the spacecraft.

[0038] When the device data is the data received from the spacecraft, the transmission of device data based on dynamic scripts can be implemented as follows: read the flag bits in the data frame structure of the device data, and determine the protocol structure information corresponding to the device data based on the flag bits; sequentially read the parameter values corresponding to the data nodes according to the hierarchical order of the data frame structure of the device data, and run the dynamic script to parse the parameter values; push the parsed device data to the display page; the display page is used to display the device data. Among them, the above flag bits are used to uniquely identify the data type of the device data, and through this data type, the hierarchical structure corresponding to the device data can be uniquely determined, so that the corresponding dynamic script can be called to parse the device data.

[0039] Exemplarily, the pushing of the parsed device data to the display page can be implemented as follows: obtain parameter subscription information; determine target data from the parsed device data based on the parameter subscription information, and push the target data to the display page. Among them, the above target data is the data subscribed by the data subscriber through the above parameter subscription information.

[0040] In the embodiment of the present application, the visualization of device protocol parsing is realized by pushing the target data to the display page. The above data subscriber can flexibly configure and completely view the source data and the parsed result data of the corresponding nodes according to the hierarchical structure of the protocol, greatly enhancing the transparency and operability, and providing a more intuitive and convenient debugging and analysis tool.

[0041] In addition, in the embodiment of the present application, in the process of calling the dynamic script to generate or parse the specific parameter information of the device data, the required parameter data can be automatically extracted according to the specific requirements of different device parameters, improving the accuracy and processing efficiency of data processing.

[0042] In an embodiment of the present application, device basic information can also be configured. Exemplarily, the configuration process can be implemented as follows: receiving the basic information of the spacecraft; the basic information includes the device identification information of the spacecraft, and the device identification information is used to identify the spacecraft; classifying and storing the device protocol documents corresponding to the spacecraft in the system storage area based on the basic information. Specifically, each device manufacturer can provide the basic information of the device and classify and store the device protocol documents with high similarity of the same type, so that most of the similar basic work can be reduced when re-developing the device protocols of the same type. Among them, in addition to the device identification information, the above basic information can also include key information such as device name, device type, device identification word, device communication method, device manufacturer, device production date, and device instruction manual. By configuring and storing the basic information of each device, subsequent management and use are facilitated, duplicate work is reduced, and processing efficiency is improved.

[0043] Exemplarily, the process of parsing the device data can be implemented as follows: obtaining the device identification information of the spacecraft; querying the device protocol document of the spacecraft from the system storage area based on the device identification information; parsing the device data based on the device protocol document and the dynamic script. That is, when receiving or sending device data, query the device protocol information according to the corresponding device type; generate or parse the corresponding device parameters according to the corresponding device protocol information, and receive and send the device data according to the device communication method, so as to realize the unified management and processing of device data reception and transmission.

[0044] In an embodiment of the present application, the dynamic generation and parsing function of device data is implemented based on protocol layer configuration, protocol basic information configuration, and protocol node information. Specifically, when receiving or generating device data, screen and identify the information of the current device, and select the corresponding protocol configuration according to the device type; based on the protocol layer structure of the device, further parse the data of each layer of the device. Among them, the above layer data includes multiple node information, and the nodes have multiple types, including data nodes, ordinary nodes, verification nodes, parent nodes, and child nodes, etc., and each node contains different script configurations; when a specific node is parsed, the script engine will execute the script configuration in the node and calculate the parameter value of the node, and the parameter value will be used to display the device data or generate the device data according to the protocol configuration. In the above process, for each type of node, specific built-in processing logic will be executed, which can ensure the unity of device protocol parsing.

[0045] In the data processing method based on device protocols provided by the exemplary embodiments of the present disclosure, by writing the protocol structure information and parameter information of the device into the device protocol document, and generating device data or parsing device data based on the device protocol document during the data transmission process, it is possible to flexibly adapt to the requirements of different devices and protocols, achieve precise control and management of device data, improve the flexibility and reliability of device data processing, and provide strong support for device management and data exchange.

[0046] The above mainly introduces the solution provided by the embodiments of the present invention from the perspective of the method. To implement the above functions, it includes the corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed herein, the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0047] The embodiments of the present invention can divide the functional modules of the data processing device based on device protocols according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present invention is illustrative, only a logical function division, and there can be other division methods in actual implementation.

[0048] Correspondingly, the embodiments of the present disclosure also provide a data processing device based on device protocols. Referring to Figure 2 As shown, the data processing device 200 based on device protocols may include a configuration document acquisition module 210 and a device data processing module 220, where:

[0049] The configuration document acquisition module 210 can be used to acquire the device protocol document of the spacecraft; wherein, the above device protocol document includes the protocol structure information and parameter information corresponding to the spacecraft; the above protocol structure information is used to indicate the data frame structure of the device data corresponding to the spacecraft, and the above parameter information is used to generate or parse the parameter values of the corresponding data nodes in the device data;

[0050] The device data processing module 220 can be used to obtain the dynamic script corresponding to the device protocol document and implement the transmission of device data based on the dynamic script; wherein, the above-mentioned dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse device data.

[0051] In the embodiment of the present application, the above-mentioned configuration document acquisition module is further used to: obtain the basic information of the spacecraft; the above-mentioned basic information includes the device identification information of the spacecraft, and the device identification information is used to identify the spacecraft; classify and store the device protocol documents corresponding to the spacecraft in the system storage area based on the above-mentioned basic information.

[0052] In the embodiment of the present application, the above-mentioned configuration document acquisition module is further used to: obtain the device identification information of the spacecraft; query the device protocol document of the spacecraft from the system storage area based on the device identification information.

[0053] In the embodiment of the present application, the above-mentioned device data includes the data sent to the spacecraft and the data received from the spacecraft.

[0054] In the embodiment of the present application, the above-mentioned device data processing module is specifically used to: when the device data is the data sent to the spacecraft, sequentially read the parameter information corresponding to the data nodes based on the pre-configured execution order; run the dynamic script based on the parameter information to generate the parameter values corresponding to the data nodes; splice the parameter values of the data nodes according to the hierarchical order of the data frame structure to generate device data, and transmit the device data to the spacecraft.

[0055] In the embodiment of the present application, the above-mentioned device data processing module is specifically used to: when the device data is the data received from the spacecraft, read the flag bit in the data frame structure of the device data, and determine the protocol structure information corresponding to the device data based on the flag bit; sequentially read the parameter values corresponding to the data nodes according to the hierarchical order of the data frame structure of the device data, and run the dynamic script to parse the parameter values; push the parsed device data to the display page; the above-mentioned display page is used to display the device data.

[0056] In the embodiment of the present application, the above-mentioned device data processing module is specifically used to: obtain the parameter subscription information; determine the target data from the parsed device data based on the parameter subscription information, and push the target data to the display page.

[0057] In addition, the specific implementation details of the above-mentioned device protocol-based data processing device have been described in detail at the corresponding position of the device protocol-based data processing method, so they will not be elaborated here.

[0058] Figure 3 It is a schematic structural diagram of an electronic device in the embodiments of the present disclosure. Specifically refer to the following Figure 3, which shows a schematic structural diagram of the electronic device 300 suitable for implementing the embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0059] As Figure 3 shown, the electronic device 300 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 301, which may perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage device 308 into the random access memory (RAM) 303 to implement the device protocol-based data processing method of the embodiments as described in the present disclosure. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other through a bus 304. The input / output (I / O) interface 305 is also connected to the bus 304.

[0060] Generally, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device 300 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 3 the electronic device 300 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.

[0061] Particularly, according to the embodiments of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart, so as to implement the device protocol-based data processing method as described above. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiments of the present disclosure are executed.

[0062] It should be noted that the above-mentioned computer-readable medium in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of a computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0063] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (Hyper Text Transfer Protocol), and can be interconnected with digital data communication in any form or medium (for example, a communication network). Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (for example, the Internet), and end-to-end networks (for example, ad hoc end-to-end networks), as well as any currently known or future-developed network.

[0064] The above-mentioned computer-readable medium can be included in the above-mentioned electronic device; it can also exist separately without being assembled into the electronic device.

[0065] The above-mentioned computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to:

[0066] Obtain the device protocol document of the spacecraft; wherein, the above-mentioned device protocol document includes the protocol structure information and parameter information corresponding to the spacecraft; the above-mentioned protocol structure information is used to indicate the data frame structure of the device data corresponding to the spacecraft, and the above-mentioned parameter information is used to generate or parse the parameter values of the corresponding data nodes in the device data;

[0067] Obtain the dynamic script corresponding to the device protocol document, and implement the transmission of device data based on the dynamic script; wherein, the above-mentioned dynamic script is a script file pre-developed based on the device protocol document, and is used to generate or parse device data..

[0068] Optionally, when the above one or more programs are executed by the electronic device, the electronic device can also execute the other steps described in the above embodiments.

[0069] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include, but are not limited to, object-oriented programming languages - such as Java, Smalltalk, C++, and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or may be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).

[0070] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0071] The units involved in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of a unit does not constitute a limitation on the unit itself.

[0072] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, the types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0073] In the context of the present disclosure, a machine-readable medium may be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0074] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0075] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Likewise, although several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0076] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A data processing method based on a device protocol, characterized in that: include: Acquire a device protocol document of the spacecraft; wherein the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate a data frame structure of device data corresponding to the spacecraft, and the parameter information is used to generate or parse parameter values ​​of corresponding data nodes in the device data; A dynamic script corresponding to the device protocol document is obtained, and the transmission of the device data is implemented based on the dynamic script; wherein the dynamic script is a script file pre-developed based on the device protocol document, and is used to generate or parse the device data.

2. The data processing method based on device protocol according to claim 1, characterized in that: The method further comprises: Acquire basic information of the spacecraft; the basic information includes device identification information of the spacecraft, and the device identification information is used to identify the spacecraft; Based on the basic information, the device protocol documents corresponding to the spacecraft are classified and stored in the system storage area.

3. The data processing method based on device protocol according to claim 2, characterized in that: The device protocol document of the spacecraft is obtained, including: Acquiring the device identification information of the spacecraft; The device protocol document of the spacecraft is queried from the system storage area based on the device identification information.

4. The data processing method based on device protocol according to claim 1, characterized in that: The device data includes data sent to the spacecraft and data received from the spacecraft.

5. The data processing method based on device protocol according to claim 4, characterized in that: When the device data is data sent to the spacecraft, the step of transmitting the device data based on the dynamic script includes: Read the parameter information corresponding to the data nodes in sequence according to a pre-configured execution order; Run the dynamic script based on the parameter information to generate parameter values ​​corresponding to the data nodes; The parameter values ​​of the data nodes are spliced ​​based on the hierarchical order of the data frame structure to generate the device data, and the device data is transmitted to the spacecraft.

6. The data processing method based on device protocol according to claim 4, characterized in that: When the device data is data received from the spacecraft, the step of transmitting the device data based on the dynamic script includes: Reading a flag bit in the data frame structure of the device data, and determining the protocol structure information corresponding to the device data based on the flag bit; Reading the parameter values ​​corresponding to the data nodes in sequence based on the hierarchical order of the data frame structure of the device data, and running the dynamic script to parse the parameter values; The parsed device data is pushed to a display page; the display page is used to display the device data.

7. The data processing method based on device protocol according to claim 6, characterized in that: The pushing the parsed device data to the display page includes: Get parameter subscription information; Target data is determined from the parsed device data based on the parameter subscription information, and the target data is pushed to the display page.

8. A data processing method based on a device protocol, characterized in that: include: A configuration document acquisition module is used to acquire a device protocol document of a spacecraft; wherein the device protocol document includes protocol structure information and parameter information corresponding to the spacecraft; the protocol structure information is used to indicate a data frame structure of device data corresponding to the spacecraft, and the parameter information is used to generate or parse parameter values ​​of corresponding data nodes in the device data; The device data processing module is used to obtain the dynamic script corresponding to the device protocol document and realize the transmission of the device data based on the dynamic script; wherein the dynamic script is a script file pre-developed based on the device protocol document and is used to generate or parse the device data.

9. An electronic device, comprising: processor; and a memory storing a program, wherein the program comprises instructions for causing the processor to execute the method according to any one of claims 1-7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.