Method, device, electronic device and storage medium for processing display data

By analyzing the finger display data frame header and determining the structure information, the finger display system is compatible with multiple data protocols, solving the problem of customized development in the existing technology, and improving the applicability of the finger display system and Data access compatibility.

CN114328877BActive Publication Date: 2024-12-27CHINA ELECTRONICS CORP 6TH RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111672482.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-12-27
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The existing reference system has problems such as deep customization, long task preparation time, and poor data access compatibility due to the differences in data protocols adopted by different transmission sites.

Method used

By acquiring the frame header of the indicator data for analysis, determining the structure information of the data domain, determining the data type and analysis method based on the structure information, realizing the analysis of the data domain, and thus no need to customize the development of data processing software for different data protocols, realizing the definition Multi-protocol compatible for the display system.

Benefits of technology

It improves the applicability of the finger display system, simplifies the data processing process, reduces task preparation time, and enhances the data interconnection, interoperability and interoperability capabilities between different transmitting sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328877B_ABST
    Figure CN114328877B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and storage medium for processing finger display data, the method is applied to a finger display system, including: obtaining finger display data, the finger display data includes a frame header and a data field; parsing the frame header to determine the structural information of the data field, the structural information is used to characterize the combination form of the data in the data field; determining the data type and parsing method of the data field based on the structural information; parsing the data field according to the data type and the parsing method. Through the above method, there is no need to customize and develop data processing software for different data protocols, and the finger display system can be compatible with various data protocols, which improves the applicability of the finger display system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular, to a method, device, electronic device and storage medium for display data processing. Background Art

[0002] As my country's space launches have entered the construction stage from the early exploration stage, the launch missions have shown a blowout growth trend. At the same time, the continuous development of launch vehicle technology and the continuous application of more new measurement and control equipment have put forward more stringent requirements and standards for the launch site support capabilities. In order to realize the rapid switching and deployment of command and display data (command display data) between different measurement and control schemes and different mission models, the data processing software, as an important background service software of the command and display system (command display system), needs to make corresponding adjustments to the data processing method. Due to the differences in data protocols used by different launch sites, it is necessary to customize and develop corresponding data processing software for each data protocol, and install the data processing software customized for each data protocol on the command and display system, so as to realize the interconnection, intercommunication and interoperability of command and display data between different launch sites. Therefore, the existing command and display system has the problems of deep customization, long mission preparation time and poor data access compatibility. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for processing finger display data, so as to improve the applicability of a finger display system.

[0004] In a first aspect, the present application provides a method for processing finger display data, which is applied to a finger display system, and the method includes: acquiring finger display data, the finger display data including a frame header and a data field; parsing the frame header to determine structural information of the data field, the structural information being used to characterize the combination form of data in the data field; determining a data type and a parsing method of the data field based on the structural information; and parsing the data field according to the data type and the parsing method.

[0005] In the embodiment of the present application, first, the finger display data is obtained, the frame header of the finger display data is parsed, and the structural information corresponding to the data field of the finger display data is determined. Then, based on the structural information, the data type and parsing method of the data field of the finger display data are determined. Then, according to the determined data type and parsing method, the data field of the finger display data is parsed. Through the above method, there is no need to customize and develop data processing software for different data protocols. The finger display system can be compatible with various data protocols, which improves the applicability of the finger display system.

[0006] In an optional embodiment, the determining the data type and parsing method of the data field based on the structural information includes: determining multiple protocol numbers included in the data field and data corresponding to the multiple protocol numbers according to the structural information; for each protocol number, determining a corresponding protocol model from a preset protocol template library, the protocol model including the data type and parsing method corresponding to the protocol number; accordingly, parsing the data field according to the data type and the parsing method includes: parsing the data corresponding to the corresponding protocol number in the data field according to the data type and the parsing method corresponding to each protocol number.

[0007] In an optional implementation, the data field includes a first protocol sequence number, first data corresponding to the first protocol sequence number, a second protocol sequence number, and second data corresponding to the second protocol sequence number, and the structural information includes: the number of data bits of the protocol sequence number is N, and the method of determining the multiple protocol sequence numbers included in the data field and the data corresponding to the multiple protocol sequence numbers one by one according to the structural information includes: determining that the first N bits in the data field are the first protocol sequence number according to the number of data bits; determining a first protocol model from a preset protocol template library according to the first protocol sequence number, the first protocol model including a data length L of the first data, a data type of the first data, and a parsing method for the first data; determining the first protocol model according to the first protocol sequence number ... The length of the first data determines that the data from the N+1th bit to the N+Lth bit in the data domain is the first data corresponding to the first protocol sequence number; according to the data bits, the data from the N+L+1th bit to the N+L+Nth bit in the data domain is determined to be the second protocol sequence number; according to the second protocol sequence number, a second protocol model is determined from a preset protocol template library, the second protocol model including a data length M of the second data, a data type of the second data and a parsing method of the second data; according to the length of the second data, the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data domain is determined to be the second data corresponding to the second protocol sequence number, wherein N, M and L are natural numbers greater than 0.

[0008] In an optional embodiment, the protocol model also includes a parameter dictionary ID. After parsing the data domain according to the data type and the parsing method, the method also includes: matching a corresponding parameter dictionary from a preset parameter dictionary library according to the parameter dictionary ID, the parameter dictionary being used to characterize attribute information of the data corresponding to the protocol serial number; and caching the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number.

[0009] In the embodiment of the present application, a mapping relationship between the protocol template and the parameter dictionary is established through the parameter dictionary ID, and the parameter dictionary represents the attribute information of the data corresponding to the protocol serial number. After the indication system parses the indication data, it matches the corresponding parameter dictionary from the preset parameter dictionary library according to the parameter dictionary ID in the protocol template, thereby determining the actual meaning represented by the indication data, and caching the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number. In this way, it is convenient to query the actual meaning of the data corresponding to the protocol serial number in the future.

[0010] In an optional embodiment, the protocol model also includes a topic model ID. After caching the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number, the method also includes: determining a topic model from a preset topic model library based on the topic model ID, and the topic model includes: a data interface for forwarding the data corresponding to the protocol serial number; and forwarding the parsed data corresponding to the protocol serial number according to the data interface.

[0011] In an embodiment of the present application, a mapping relationship between a protocol template and a topic model is established through a topic model ID, the parsed data is packaged according to the topic model ID in the protocol model, and then a data interface is determined according to the topic model corresponding to the topic model ID, and the parsed data packaged according to the topic model ID is forwarded through the data interface, thereby realizing efficient flow of indication data.

[0012] In an optional implementation, the topic model further includes: one or more of: generation method, measured object, topic name, data sender, and publishing status.

[0013] In an optional embodiment, the data types include: single-value parameters, multi-value parameters, state parameters, instruction parameters, source code and telemetry parameters; the parsing methods include: single-precision floating-point parsing method, multi-precision floating-point parsing method, integer data parsing method, string parsing method and bit operation parsing method.

[0014] In a second aspect, the present application provides a finger display data processing device, which is applied to a finger display system, and the device includes: an acquisition module, which is used to acquire finger display data, and the finger display data includes a frame header and a data field; a frame header parsing module, which is used to parse the frame header and determine the structural information of the data field, and the structural information is used to characterize the combination form of the data in the data field; a determination module, which is used to determine the data type and parsing method of the data field based on the structural information; a data field parsing module, which is used to parse the data field according to the data type and the parsing method.

[0015] In an optional embodiment, the determination module is specifically used to determine the multiple protocol numbers included in the data domain and the data corresponding to the multiple protocol numbers according to the structural information; for each protocol number, a corresponding protocol model is determined from a preset protocol template library, and the protocol model includes the data type and parsing method corresponding to the protocol number; accordingly, the data domain parsing module is specifically used to parse the data corresponding to the corresponding protocol number in the data domain according to the data type and parsing method corresponding to each protocol number.

[0016] In an optional implementation, the data domain includes a first protocol sequence number, first data corresponding to the first protocol sequence number, a second protocol sequence number, and second data corresponding to the second protocol sequence number, and the structural information includes: the number of data bits of the protocol sequence number is N, and the determination module is specifically used to determine that the first N bits in the data domain are the first protocol sequence number according to the number of data bits; determine a first protocol model from a preset protocol template library according to the first protocol sequence number, the first protocol model including a data length L of the first data, a data type of the first data, and a parsing method for the first data; determine the number of bits in the data domain from the Nth bit according to the length of the first data The data from the N+L+1th bit to the N+Lth bit is the first data corresponding to the first protocol sequence number; according to the data bits, it is determined that the data from the N+L+1th bit to the N+L+Nth bit in the data domain is the second protocol sequence number; according to the second protocol sequence number, a second protocol model is determined from a preset protocol template library, the second protocol model including a data length M of the second data, a data type of the second data and a parsing method for the second data; according to the length of the second data, it is determined that the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data domain is the second data corresponding to the second protocol sequence number, wherein N, M and L are natural numbers greater than 0.

[0017] In an optional embodiment, the protocol model also includes a parameter dictionary ID, and the device also includes a parameter dictionary matching module, which is used to match a corresponding parameter dictionary from a preset parameter dictionary library according to the parameter dictionary ID, and the parameter dictionary is used to characterize the attribute information of the data corresponding to the protocol serial number; a cache module, which is used to cache the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number.

[0018] In an optional embodiment, the protocol model also includes a topic model ID, and the device also includes a topic model matching module, which is used to determine the topic model from a preset topic model library based on the topic model ID, and the topic model includes: a data interface for forwarding data corresponding to the protocol serial number; and a forwarding module, which is used to forward the parsed data corresponding to the protocol serial number according to the data interface.

[0019] In an optional implementation, the topic model further includes: one or more of: generation method, measured object, topic name, data sender, and publishing status.

[0020] In an optional embodiment, the data types include: single-value parameters, multi-value parameters, state parameters, instruction parameters, source code and telemetry parameters; the parsing methods include: single-precision floating-point parsing method, multi-precision floating-point parsing method, integer data parsing method, string parsing method and bit operation parsing method.

[0021] In a third aspect, the present application provides an electronic device comprising: a processor, a memory and a bus; the processor and the memory communicate with each other through the bus; the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute a method as described in any of the foregoing embodiments.

[0022] In a fourth aspect, the present application provides a storage medium having computer program instructions stored thereon, and when the computer program instructions are read and executed by a computer, the method described in any one of the aforementioned implementation modes is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A flowchart of a method for processing finger data provided in an embodiment of the present application;

[0025] Figure 2 A structural block diagram of a finger display data processing device provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0027] Icons: 200 - indicates data processing device; 201 - acquisition module; 202 - frame header parsing module; 203 - determination module; 204 - data domain parsing module; 300 - electronic device; 301 - processor; 302 - communication interface; 303 - memory; 304 - bus. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0029] See also Figure 1 , Figure 1 A flowchart of a finger display data processing method provided in an embodiment of the present application, the finger display data processing method is applied to a finger display system, and the finger display data processing method may include the following steps:

[0030] Step 101: Acquire indication data.

[0031] Step 102: Parse the frame header to determine the structure information of the data field.

[0032] Step 103: Determine the data type and parsing method of the data field based on the structure information.

[0033] Step 104: Parse the data field according to the data type and parsing method.

[0034] The finger display data processing method provided in the present application is applied to the finger display system, and the finger display system is connected to multiple other systems. Among them, the other systems may be control systems of different launch sites. The control systems of different launch sites send the finger display data generated by themselves to the finger display system. Since different launch sites use different data protocols, in order to achieve the interconnection, intercommunication and interoperability of finger display data between different launch sites, the finger display data generated by different launch sites are first sent to the finger display system. The finger display system uses the finger display data processing method provided in the present application to process and parse the finger display data of different data protocols, and determines the structural information of the data field of the finger display data by parsing the frame header of the finger display data; determines the data type and parsing method of the data field based on the structural information, and then parses the data field according to the determined data type and parsing method.

[0035] The above method is introduced in detail below.

[0036] Step 101: Acquire indication data.

[0037] In the embodiment of the present application, first, the indication data is obtained. In the embodiment of the present application, a data format is proposed, and the data format is a frame header and a data field. Among them, the frame header stores a variety of frame header information, and by parsing the frame header, it is convenient to implement the subsequent steps of the embodiment of the present application.

[0038] Optionally, the frame header information may also include various information used for verification. For example, the frame header information may include source verification information for verifying the source of the finger display data; destination verification information for verifying the destination of the finger display data; time settlement information for performing time settlement on the finger display data; and frame continuation verification information for performing sequence verification on the finger display data to ensure that each data frame is received in a preset order.

[0039] It can be understood that the above-mentioned frame header information is only an example provided in the embodiment of the present application. The present application does not specifically limit the type of verification included in the frame header information. Those skilled in the art can select different verification information as the frame header information according to actual needs.

[0040] Optionally, the indication and display data may include: life support information, measurement and control information, power generation and measurement information, ground support information, meteorological information and communication information, etc.

[0041] Life support information refers to the astronauts' physiological support information, including: astronauts' heart rate, blood pressure, respiration and other physiological information, which are collected by the physiological support equipment on the rocket.

[0042] Measurement and control information refers to the measurement and control information generated by rockets, satellites and other aircraft during measurement and control coordination and actual combat missions.

[0043] The test information includes rocket overall network test information and satellite overall network test information, that is, the test information and status information generated during the rocket and satellite test and launch process.

[0044] The launch ground support information refers to the status information of ground facilities and equipment that needs to be closely monitored during the launch test mission.

[0045] Meteorological information includes short-term forecasts, actual weather conditions and other information of concern to commanders provided by the meteorological department of the launch site.

[0046] Communication information is the comprehensive monitoring of the communication network situation to realize the monitoring information of the entire communication network system including the transmission layer, business bearing layer and data layer.

[0047] It can be understood that the above-mentioned various types of information are the data in the data domain.

[0048] It should be noted that the above-mentioned indication data is only an example provided in the embodiment of the present application, and the indication data may also include video surveillance information, decision analysis information, auxiliary command information, etc. The present application does not specifically limit the type of information included in the indication data.

[0049] Step 102: Parse the frame header to determine the structure information of the data field.

[0050] In the embodiment of the present application, after acquiring the finger display data, the frame header of the finger display data is parsed to determine the structural information of the data domain. Specifically, after acquiring a frame of finger display data, the frame header of the frame of finger display data is parsed. The frame header information includes structural information, which represents the combination form of the data in the data domain.

[0051] For the convenience of explanation, steps 103 and 104 are introduced together.

[0052] Step 103: Determine the data type and parsing method of the data field based on the structure information.

[0053] Step 104: Parse the data field according to the data type and parsing method.

[0054] In the embodiment of the present application, after parsing the frame header of the pointing and displaying data, the structural information of the data field is determined, and the data type and parsing method of the data field are determined based on the structural information. After the pointing and displaying system determines the data type and parsing method of the data in the data field, the data field is parsed according to the determined data type and parsing method.

[0055] As an optional implementation, the above step 103 may include the following content:

[0056] A plurality of protocol sequence numbers included in the data field and data corresponding to the plurality of protocol sequence numbers are determined according to the structural information.

[0057] For each protocol serial number, a corresponding protocol model is determined from a preset protocol template library, and the protocol model includes a data type and a parsing method corresponding to the protocol serial number.

[0058] Accordingly, the above step 104 may include the following contents:

[0059] The data corresponding to the corresponding protocol sequence number in the data field is parsed according to the data type and parsing method corresponding to each protocol sequence number.

[0060] It can be understood that since the processing principle for each frame of finger display data is the same, for the convenience of description and understanding, the above step 103 is described below by taking a certain frame of finger display data as an example.

[0061] As an optional implementation, the above-mentioned determining the multiple protocol sequence numbers included in the data field and the data corresponding to the multiple protocol sequence numbers one by one according to the structure information may include the following steps:

[0062] The first step is to determine a first protocol model from a preset protocol template library according to the first protocol sequence number, where the first protocol model includes a data length L of the first data, a data type of the first data, and a parsing method of the first data;

[0063] The second step is to determine, based on the length of the first data, that the data from the N+1th bit to the N+Lth bit in the data field is the first data corresponding to the first protocol sequence number;

[0064] The third step is to determine, based on the data bits, that the data from the N+L+1th bit to the N+L+Nth bit in the data field is the second protocol sequence number;

[0065] Step 4: Determine a second protocol model from a preset protocol template library according to the second protocol sequence number, where the second protocol model includes a data length M of the second data, a data type of the second data, and a parsing method of the second data;

[0066] The fifth step is to determine, based on the length of the second data, that the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data field is the second data corresponding to the second protocol sequence number.

[0067] In the embodiment of the present application, the data field of the indication data includes a first protocol sequence number, first data corresponding to the first protocol sequence number, a second protocol sequence number and second data corresponding to the second protocol sequence number, and the structural information includes: the number of data bits of the protocol sequence number is N.

[0068] The data field can be understood as a number of bits of data. The indication system determines that the number of data bits of the protocol sequence number is N based on the structural information. Therefore, the 1st to Nth bits in the data field represent the first protocol sequence number. The indication system first determines the first protocol sequence number based on the 1st to Nth bits in the data field, and then determines the first protocol template from the preset protocol template library based on the first protocol sequence number. The first protocol template stores the data length L of the first data, the data type of the first data, and the parsing method of the first data. The indication system determines the data from the N+1th to the N+Lth bits in the data field as the first data corresponding to the first protocol sequence number based on the data length L of the first data.

[0069] After determining the first data, since the number of data bits of the protocol sequence number is N, the data from the N+L+1th to the N+L+Nth bits in the data field represents the second protocol sequence number. The indication system determines the second protocol sequence number based on the data from the N+L+1th to the N+L+Nth bits in the data field, and then determines the second protocol template from the preset protocol template library based on the second protocol sequence number. Similar to the first protocol template, the second protocol template stores the data length M of the second data, the data type of the second data, and the parsing method of the second data. The indication system determines the data from the N+L+N+1th to the N+L+N+Mth bits in the data field as the second data corresponding to the second protocol sequence number based on the data length M of the second data.

[0070] In the above manner, the indication system determines the first protocol sequence number, the first data corresponding to the first protocol sequence number, the second protocol sequence number and the second data corresponding to the second protocol sequence number included in the data field according to the structural information.

[0071] Since the first protocol template includes not only the data length L of the first data but also the data type of the first data and the parsing method of the first data, the indication system determines the first data according to the data length L of the first data and then parses the first data according to the data type of the first data and the parsing method of the first data. Similarly, after the indication system determines the second data according to the data length M of the second data, it parses the second data according to the data type of the second data and the parsing method of the second data.

[0072] It should be noted that the above N, M, and L are all natural numbers greater than 0. The present application does not impose any specific restrictions on the specific values ​​of N, M, and L, and they can be flexibly set according to actual conditions.

[0073] It can be understood that a protocol template library is pre-stored in the finger display system, and a number of protocol templates are stored in the protocol template library, and one protocol template corresponds to a protocol serial number. The structural information in the frame header of the finger display data represents the number of data bits occupied by the protocol serial number in the data field. The protocol serial number and the data corresponding to the protocol serial number are arranged in sequence to form the data field of the finger display data. The number of data bits, data type and parsing method of the data corresponding to the protocol serial number are stored in the protocol template corresponding to the protocol serial number. After obtaining the finger display data, first determine the first protocol serial number according to the structural information of the finger display data frame header, determine the corresponding protocol template according to the first protocol serial number, and then determine the data corresponding to the first protocol serial number and the corresponding data type and parsing method according to the protocol template, and parse the data according to the data type and parsing method.

[0074] Then, the second protocol number is determined again according to the structure information, the corresponding protocol template is determined according to the second protocol number, and the data corresponding to the second protocol number and the corresponding data type and parsing method are determined according to the protocol template, and the data is parsed according to the data type and parsing method. The above process is repeated to parse the data field of the indication data.

[0075] Optionally, the data type may include: single-value parameters, multi-value parameters, state parameters, instruction parameters, and source code and telemetry parameters. Parsing methods may include: single-precision floating-point parsing methods, multi-precision floating-point parsing methods, integer data parsing methods, string parsing methods, and bit operation parsing methods. It should be noted that the above data types and parsing methods can be combined with each other. For example, the parsing method for a single-value parameter may be any one of a single-precision floating-point parsing method, a multi-precision floating-point parsing method, an integer data parsing method, a string parsing method, and a bit operation parsing method. In addition, the single-precision floating-point parsing method, the multi-precision floating-point parsing method, the integer data parsing method, the string parsing method, and the bit operation parsing method can be understood as five types of parsing methods, and each type of parsing method may include one or more specific parsing methods.

[0076] It should be noted that in the actual application process, the indication system pre-stores a standardized parsing method library corresponding to various parsing methods. After determining the data type and parsing method of a certain data in the data domain, the corresponding parsing method is matched from the standardized parsing method library, and the data is parsed according to the parsing method. For the specific parsing process of various parsing methods, refer to the existing technology and will not be elaborated here.

[0077] As an optional implementation, the protocol model also includes a parameter dictionary ID. After parsing the data field according to the data type and the parsing method, the indication data processing method provided by the present application also includes:

[0078] Match the corresponding parameter dictionary from the preset parameter dictionary library according to the parameter dictionary ID;

[0079] The data corresponding to the cache protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number.

[0080] In the embodiment of the present application, the parameter dictionary is used to characterize the attribute information of the data corresponding to the protocol sequence number. Specifically, the parameter dictionary may include the following contents:

[0081]

[0082] It should be noted that each parameter dictionary ID corresponds to a parameter dictionary.

[0083] Through the parameter dictionary ID, a mapping relationship between the protocol template and the parameter dictionary is established. The parameter dictionary represents the attribute information of the data corresponding to the protocol serial number. After the indication system parses the indication data, it matches the corresponding parameter dictionary from the preset parameter dictionary library according to the parameter dictionary ID in the protocol template, thereby determining the actual meaning represented by the indication data, and caching the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number. This facilitates subsequent inquiries about the actual meaning of the data corresponding to the protocol serial number.

[0084] As an optional implementation, the protocol model further includes a subject model ID. After caching the data corresponding to the protocol sequence number and the parameter dictionary of the data corresponding to the protocol sequence number, the method further includes:

[0085] Determine a topic model from a preset topic model library according to the topic model ID, the topic model including: a data interface for forwarding data corresponding to the protocol sequence number;

[0086] The data corresponding to the parsed protocol sequence number is forwarded according to the data interface.

[0087] In an embodiment of the present application, for the data corresponding to a certain protocol serial number in the data domain, after the indication system completes the parsing of the data, it determines the topic model corresponding to the topic model ID from the preset topic model library according to the topic model ID in the protocol model. The topic model includes: a data interface for forwarding the data corresponding to the protocol serial number. In actual application, after the indication system parses the data, it needs to send the parsed data to other devices through the corresponding data interface for display. A topic model library is established in advance, and the topic model library corresponds to several topic models, and each topic model corresponds to a topic model ID. A topic model ID can correspond to multiple parameter dictionary IDs. Since the parameter dictionary ID corresponds to the data in the data domain of the indication data, when the data corresponding to a certain protocol serial number is parsed, it can be matched to a topic model ID through the parameter dictionary ID of the data, and then the data interface is determined according to the topic model corresponding to the topic model ID, and the data corresponding to the parsed protocol serial number is forwarded through the data interface.

[0088] Through the topic model ID, a mapping relationship between the protocol template and the topic model is established. Since there is also a mapping relationship between the protocol template and the parameter dictionary, a mapping relationship among the protocol template, the parameter template and the topic model is formed. The embodiment of the present application packages the parsed data according to the topic model ID in the protocol model, and then determines the data interface according to the topic model corresponding to the topic model ID, and forwards the parsed data packaged according to the topic model ID through the data interface, thereby realizing the efficient flow of the display data.

[0089] As an optional implementation, the topic model also includes: one or more of: generation method, measured object, topic name, data sender, and publishing status. For example, the topic model may include the following:

[0090]

[0091]

[0092] It should be noted that each topic model ID corresponds to a topic model. In the topic model, the topic name is used to describe the content represented by the topic, so that subsequent commanders can determine the actual meaning of the data corresponding to the topic.

[0093] As an optional implementation, a specific form of an agreement template is provided below:

[0094]

[0095]

[0096] It should be noted that each protocol serial number corresponds to a protocol template.

[0097] Among them, the calculation ID and calculation method are used to determine the data type and parsing method. Each parsing method is numbered in advance, and the number corresponding to the number is the calculation ID. The name corresponding to the parsing method is the calculation method. In this embodiment, in addition to the parameter dictionary ID, topic model ID, data length, calculation ID and calculation method mentioned in the above embodiment, the protocol template also includes other attributes or processing strategies of the data, such as: upper limit, lower limit, cache strategy, storage strategy, storage parameters, etc.

[0098] In summary, the embodiment of the present application provides a method for processing finger display data. First, finger display data is acquired, the frame header of the finger display data is parsed, and the structural information corresponding to the data field of the finger display data is determined. Then, the data type and parsing method of the data field of the finger display data are determined based on the structural information. Then, the data field of the finger display data is parsed according to the determined data type and parsing method. Through the above method, there is no need to customize and develop data processing software for different data protocols. The finger display system can be compatible with various data protocols, which improves the applicability of the finger display system.

[0099] Based on the same inventive concept, the present application also provides a finger display data processing device. Figure 2 , Figure 2 This is a structural block diagram of a finger display data processing device provided in an embodiment of the present application. The finger display data processing device is configured in a finger display system. The finger display data processing device 200 may include:

[0100] The acquisition module 201 is used to acquire the indication data, wherein the indication data includes a frame header and a data field;

[0101] The frame header parsing module 202 is used to parse the frame header to determine the structure information of the data field, where the structure information is used to represent the combination form of the data in the data field;

[0102] A determination module 203, configured to determine a data type and a parsing method of the data field based on the structure information;

[0103] The data domain parsing module 204 is used to parse the data domain according to the data type and the parsing method.

[0104] In an optional embodiment, the determination module is specifically used to determine the multiple protocol numbers included in the data domain and the data corresponding to the multiple protocol numbers according to the structural information; for each protocol number, a corresponding protocol model is determined from a preset protocol template library, and the protocol model includes the data type and parsing method corresponding to the protocol number; accordingly, the data domain parsing module is specifically used to parse the data corresponding to the corresponding protocol number in the data domain according to the data type and parsing method corresponding to each protocol number.

[0105] In an optional implementation, the data domain includes a first protocol sequence number, first data corresponding to the first protocol sequence number, a second protocol sequence number, and second data corresponding to the second protocol sequence number, and the structural information includes: the number of data bits of the protocol sequence number is N, and the determination module is specifically used to determine that the first N bits in the data domain are the first protocol sequence number according to the number of data bits; determine a first protocol model from a preset protocol template library according to the first protocol sequence number, the first protocol model including a data length L of the first data, a data type of the first data, and a parsing method for the first data; determine the number of bits in the data domain from the Nth bit according to the length of the first data The data from the N+L+1th bit to the N+Lth bit is the first data corresponding to the first protocol sequence number; according to the data bits, it is determined that the data from the N+L+1th bit to the N+L+Nth bit in the data domain is the second protocol sequence number; according to the second protocol sequence number, a second protocol model is determined from a preset protocol template library, the second protocol model including a data length M of the second data, a data type of the second data and a parsing method for the second data; according to the length of the second data, it is determined that the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data domain is the second data corresponding to the second protocol sequence number, wherein N, M and L are natural numbers greater than 0.

[0106] In an optional embodiment, the protocol model also includes a parameter dictionary ID, and the device also includes a parameter dictionary matching module, which is used to match a corresponding parameter dictionary from a preset parameter dictionary library according to the parameter dictionary ID, and the parameter dictionary is used to characterize the attribute information of the data corresponding to the protocol serial number; a cache module, which is used to cache the data corresponding to the protocol serial number and the parameter dictionary of the data corresponding to the protocol serial number.

[0107] In an optional embodiment, the protocol model also includes a topic model ID, and the device also includes a topic model matching module, which is used to determine the topic model from a preset topic model library based on the topic model ID, and the topic model includes: a data interface for forwarding data corresponding to the protocol serial number; and a forwarding module, which is used to forward the parsed data corresponding to the protocol serial number according to the data interface.

[0108] In an optional implementation, the topic model further includes: one or more of: generation method, measured object, topic name, data sender, and publishing status.

[0109] In an optional embodiment, the data types include: single-value parameters, multi-value parameters, state parameters, instruction parameters, source code and telemetry parameters; the parsing methods include: single-precision floating-point parsing method, multi-precision floating-point parsing method, integer data parsing method, string parsing method and bit operation parsing method.

[0110] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device 300 of an embodiment of the present application, and the electronic device 300 includes: at least one processor 301, at least one communication interface 302, at least one memory 303 and at least one bus 304. Among them, the bus 304 is used to realize the direct connection and communication of these components, the communication interface 302 is used to communicate signaling or data with other node devices, and the memory 303 stores machine-readable instructions executable by the processor 301. When the electronic device 300 is running, the processor 301 communicates with the memory 303 through the bus 304, and the machine-readable instructions are called by the processor 301 to execute the data processing method as indicated above.

[0111] The processor 301 can be an integrated circuit chip with signal processing capabilities. The above-mentioned processor 301 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. It can implement or execute various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0112] The memory 303 may include but is not limited to random access memory (RAM), read only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable read-only memory (EEPROM), etc.

[0113] Understandably, Figure 3 The structure shown is for illustration only. The electronic device 300 may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in can be implemented by hardware, software or a combination thereof. In the embodiment of the present application, the electronic device 300 can be, but is not limited to, a physical device such as a desktop computer, a laptop computer, a smart phone, a smart wearable device, a vehicle-mounted device, etc., and can also be a virtual device such as a virtual machine. In addition, the electronic device 300 is not necessarily a single device, but can also be a combination of multiple devices, such as a server cluster, etc.

[0114] In addition, an embodiment of the present application further provides a computer storage medium, on which a computer program is stored. When the computer program is executed by a computer, the steps of the data processing method indicated in the above embodiment are executed.

[0115] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0116] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0117] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0118] It should be noted that if the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including a number of instructions to enable 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 medium includes: 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.

[0119] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0120] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for processing finger display data, characterized in that: Applied to the finger display system, the method comprises: Acquire indication data, wherein the indication data includes a frame header and a data field; Parsing the frame header to determine structural information of the data field, where the structural information is used to characterize a combination form of data in the data field; Determine the data type and parsing method of the data field based on the structural information; Parsing the data field according to the data type and the parsing method; Wherein, determining the data type and parsing method of the data field based on the structural information includes: Determine, according to the structure information, a plurality of protocol sequence numbers included in the data field and data corresponding to the plurality of protocol sequence numbers one by one; For each protocol serial number, a corresponding protocol model is determined from a preset protocol template library, wherein the protocol model includes a data type and a parsing method corresponding to the protocol serial number; Accordingly, parsing the data field according to the data type and the parsing method includes: Parsing the data corresponding to the corresponding protocol sequence number in the data field according to the data type and parsing method corresponding to each protocol sequence number; The data field includes a first protocol sequence number, first data corresponding to the first protocol sequence number, a second protocol sequence number, and second data corresponding to the second protocol sequence number; the structure information includes: the number of data bits of the protocol sequence number is N; and the method of determining the multiple protocol sequence numbers included in the data field and the data corresponding to the multiple protocol sequence numbers one by one according to the structure information includes: Determine, according to the number of data bits, that the first N bits in the data field are the first protocol sequence number; Determine a first protocol model from a preset protocol template library according to the first protocol sequence number, wherein the first protocol model includes a data length L of the first data, a data type of the first data, and a parsing method of the first data; Determine, according to the length of the first data, that the data from the N+1th bit to the N+Lth bit in the data field is the first data corresponding to the first protocol sequence number; Determine, according to the data bits, that the data from the N+L+1th bit to the N+L+Nth bit in the data field is the second protocol sequence number; Determine a second protocol model from a preset protocol template library according to the second protocol sequence number, wherein the second protocol model includes a data length M of the second data, a data type of the second data, and a parsing method of the second data; According to the length of the second data, it is determined that the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data field is the second data corresponding to the second protocol sequence number, wherein N, M, and L are natural numbers greater than 0.

2. The method according to claim 1, characterized in that: The protocol model also includes a parameter dictionary ID. After parsing the data field according to the data type and the parsing method, the method further includes: Matching a corresponding parameter dictionary from a preset parameter dictionary library according to the parameter dictionary ID, wherein the parameter dictionary is used to characterize attribute information of the data corresponding to the protocol sequence number; The data corresponding to the protocol sequence number and the parameter dictionary of the data corresponding to the protocol sequence number are cached.

3. The method according to claim 2, characterized in that The protocol model also includes a subject model ID. After caching the data corresponding to the protocol sequence number and the parameter dictionary of the data corresponding to the protocol sequence number, the method also includes: Determine a topic model from a preset topic model library according to the topic model ID, the topic model comprising: a data interface for forwarding data corresponding to the protocol sequence number; The data corresponding to the protocol sequence number after parsing is forwarded according to the data interface.

4. The method according to claim 3, characterized in that The topic model also includes: one or more of: generation method, measured object, topic name, data sender and publishing status.

5. The method according to any one of claims 1 to 4, characterized in that: The data types include: single-value parameters, multi-value parameters, state parameters, instruction parameters, source code and telemetry parameters; The parsing methods include: a single-precision floating-point parsing method, a multi-precision floating-point parsing method, an integer data parsing method, a character string parsing method and a bit operation parsing method.

6. A finger display data processing device, characterized in that: Applied to a finger display system, the device comprises: An acquisition module, used for acquiring indication data, wherein the indication data includes a frame header and a data field; A frame header parsing module, used to parse the frame header to determine the structural information of the data field, wherein the structural information is used to characterize the combination form of the data in the data field; A determination module, used to determine the data type and parsing method of the data field based on the structural information; A data domain parsing module, used to parse the data domain according to the data type and the parsing method; The determining module is specifically used to determine the multiple protocol serial numbers included in the data field and the data corresponding to the multiple protocol serial numbers one by one according to the structural information; For each protocol serial number, a corresponding protocol model is determined from a preset protocol template library, wherein the protocol model includes a data type and a parsing method corresponding to the protocol serial number; Accordingly, parsing the data field according to the data type and the parsing method includes: Parsing the data corresponding to the corresponding protocol sequence number in the data field according to the data type and parsing method corresponding to each protocol sequence number; The determination module is specifically configured to determine, based on the number of data bits, that the first N bits in the data field are the first protocol sequence number; Determine a first protocol model from a preset protocol template library according to the first protocol sequence number, wherein the first protocol model includes a data length L of the first data, a data type of the first data, and a parsing method of the first data; Determine, according to the length of the first data, that the data from the N+1th bit to the N+Lth bit in the data field is the first data corresponding to the first protocol sequence number; Determine, according to the data bits, that the data from the N+L+1th bit to the N+L+Nth bit in the data field is the second protocol sequence number; Determine a second protocol model from a preset protocol template library according to the second protocol sequence number, wherein the second protocol model includes a data length M of the second data, a data type of the second data, and a parsing method of the second data; According to the length of the second data, it is determined that the data from the N+L+N+1th bit to the N+L+N+Mth bit in the data field is the second data corresponding to the second protocol sequence number, wherein N, M, and L are natural numbers greater than 0.

7. An electronic device, characterized in that: include: processor, memory, and bus; The processor and the memory communicate with each other via the bus; The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 5 by calling the program instructions.

8. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are read and executed by a computer, the method according to any one of claims 1 to 5 is executed.