Data processing method and device, equipment, storage medium and program product

By converting high-precision positioning correction data into structured objects and encoding them, the problems of encoding complexity and protocol adaptability in the existing technology are solved, and efficient data encoding and decoding are achieved.

CN118713674APending Publication Date: 2024-09-27ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411102458.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the encoding process of high-precision positioning correction data is complicated, resulting in low efficiency, and it is difficult to adapt to the data structures of different protocols.

Method used

By obtaining the high-precision positioning correction number data to be encoded, determining its protocol type, converting it into a target structured object, and then encoding it to generate target binary data. The method includes obtaining the data to be encoded, determining the protocol type, object conversion and encoding, and is suitable for multiple protocols.

Benefits of technology

It effectively improves the coding efficiency, simplifies the coding process, can be applied to multiple protocols, and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713674A
    Figure CN118713674A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring to-be-coded high-precision positioning correction source data, and determining a protocol type of the high-precision positioning correction source data; performing object conversion on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object; the target structured object is coded, and target binary data corresponding to the high-precision positioning correction source data are obtained.According to the method and device, the high-precision positioning correction source data are converted into the structured object, the structured object is coded, the coding efficiency can be effectively improved, and the method and device can be suitable for different protocols.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer science, and in particular to a data processing method, apparatus, device, storage medium and program product. Background Art

[0002] In computer science, encoding is the process of converting data into a specific encoding format so that it can be processed, transmitted, or stored in a computer. Decoding is the process of converting the encoded data back to its original format. Data encoding and decoding is a necessary process for data exchange between computer systems.

[0003] At present, there are various high-precision positioning correction products, so the protocols are also diverse, such as orbit protocol, clock error protocol, phase deviation protocol, etc. The data structure of the protocol is relatively complex. In the actual encoding process, the protocol format is mainly hard-coded, and the traditional methods such as field-by-field logical judgment, offset identification, and data filling are adopted. The encoding process is relatively complex and leads to low efficiency. Summary of the invention

[0004] The embodiments of the present application provide a data processing method, apparatus, device, storage medium and program product, which can effectively improve encoding efficiency and can be applied to different protocols.

[0005] In a first aspect, an embodiment of the present application provides a data processing method, including:

[0006] Acquire high-precision positioning correction source data to be encoded, and determine the protocol type of the high-precision positioning correction source data;

[0007] Performing object conversion on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object;

[0008] The target structured object is encoded to obtain target binary data corresponding to the high-precision positioning correction source data.

[0009] In a possible implementation, the object conversion of the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object includes:

[0010] Determining a target structured object template corresponding to the high-precision positioning correction data source data according to a protocol type of the high-precision positioning correction data source data;

[0011] The high-precision positioning correction data source data is subjected to object conversion based on the target structured object template to obtain a corresponding target structured object.

[0012] In a possible implementation manner, determining the target structured object template corresponding to the high-precision positioning correction data source data according to the protocol type of the high-precision positioning correction data source data includes:

[0013] Determine, according to the protocol type of the high-precision positioning correction data source data, a preset attribute identifier corresponding to the protocol type;

[0014] Matching the attribute identifier corresponding to the high-precision positioning correction source data with the preset attribute identifier corresponding to the protocol type to determine a preset attribute identifier that matches the attribute identifier corresponding to the high-precision positioning correction source data;

[0015] The structured object template corresponding to the matched preset attribute identifier is determined as the target structured object template.

[0016] In a possible implementation, the target structured object template includes: a field metadata description corresponding to an attribute, the field metadata description is used to define the bit length, field sequence number, value range, and auxiliary information of the attribute; the object conversion of the high-precision positioning correction source data based on the target structured object template to obtain the corresponding target structured object includes:

[0017] The values ​​of the attributes corresponding to the high-precision positioning correction source data are filled into the corresponding positions of the target structured object template to generate the target structured object.

[0018] In a possible implementation manner, encoding the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data includes:

[0019] Based on the value of the bit length in the target structured object, the value of the field sequence number and the protocol identifier corresponding to the protocol type, the value of the attribute in the target structured object is encoded to obtain the target binary data corresponding to the high-precision positioning correction source data.

[0020] In a possible implementation manner, determining the protocol type of the high-precision positioning correction source data includes:

[0021] Obtaining the protocol identifier corresponding to the high-precision positioning correction data source data;

[0022] The protocol type of the high-precision positioning correction data source data is determined according to the protocol identifier corresponding to the high-precision positioning correction data source data.

[0023] In a possible implementation, it further includes:

[0024] Obtaining binary data to be decoded, and determining a protocol type corresponding to the binary data;

[0025] The binary data is decoded based on the protocol type to obtain a corresponding target structured object.

[0026] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0027] An acquisition unit, which acquires high-precision positioning correction source data to be encoded;

[0028] A processing unit, used to determine the protocol type of the high-precision positioning correction data source data;

[0029] An object conversion unit, used for performing object conversion on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object;

[0030] The encoding unit is used to encode the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0032] The memory stores computer-executable instructions;

[0033] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0035] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0036] The data processing method, apparatus, device, storage medium and program product provided in the embodiments of the present application obtain the high-precision positioning correction source data to be encoded, determine the protocol type of the high-precision positioning correction source data, and then perform object conversion on the high-precision positioning correction source data based on the type to obtain the corresponding target structured object; further encode the target structured object to obtain the target binary data corresponding to the high-precision positioning correction source data. By converting the high-precision positioning correction source data into a structured object and encoding the structured object, the encoding efficiency can be effectively improved and can be applicable to different protocols. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0038] Figure 1 A schematic diagram of a scenario of the data processing method provided in this application;

[0039] Figure 2 Schematic diagram of the data processing method provided for this application Figure 1 ;

[0040] Figure 3 A schematic diagram of data coding provided for this application;

[0041] Figure 4 Schematic diagram of the data processing method provided for this application Figure 2 ;

[0042] Figure 5 A schematic diagram of the structured object composition provided for this application;

[0043] Figure 6 A schematic diagram of data decoding provided for this application;

[0044] Figure 7 A schematic diagram of the structure of the data processing device provided by this application;

[0045] Figure 8 A schematic diagram of the structure of the electronic device provided in this application.

[0046] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0048] Figure 1 A schematic diagram of a scenario of the data processing method provided in this application, such as Figure 1As shown, the specific application scenario of the present application is server 101 and server 102, and the server 101 and server 102 are connected in communication. Server 101 obtains the high-precision positioning correction source data to be encoded and determines the protocol type of the high-precision positioning correction source data; server 101 inputs the source data into the object converter, and uses the object converter to perform object conversion on the high-precision positioning correction source data based on the protocol type, and outputs the target structured object; server 101 inputs the target structured object into the encoder, and uses the encoder to encode it to obtain the target binary data corresponding to the high-precision positioning correction source data. Server 101 sends the binary data to server 102, and server 102 inputs the binary data into the decoder, and uses the decoder to decode it, and outputs the target structured object, which effectively improves the efficiency of the data encoding and decoding process and improves the stability of the system.

[0049] In combination with the above scenarios, it can be seen that in the prior art, the high-precision positioning data encoding process is relatively complex to implement, resulting in a technical problem of low efficiency.

[0050] The data processing method provided in the present application can effectively improve the coding efficiency by converting high-precision positioning correction source data into structured objects and encoding the structured objects, and can be applicable to different protocols.

[0051] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0052] Figure 2 Schematic diagram of the data processing method provided for this application Figure 1 ,like Figure 2 As shown, the method includes:

[0053] Step 201, obtaining high-precision positioning correction source data to be encoded, and determining the protocol type of the high-precision positioning correction source data.

[0054] In this embodiment, high-precision positioning correction source data to be encoded is obtained, and the protocol type of the high-precision positioning correction source data is determined. The protocol types include: orbit protocol, clock error protocol, phase deviation protocol, code deviation protocol, ionosphere protocol, and troposphere protocol. Based on the different protocol types, the structure and format of the corresponding high-precision positioning correction source data are different.

[0055] Step 202: object conversion is performed on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object.

[0056] In this embodiment, the high-precision positioning correction data source data is converted into an object based on the protocol type of the high-precision positioning correction data source data. Figure 3 The high-precision positioning correction source data is input into the object converter, and the object converter is used to perform object conversion on the high-precision positioning correction source data based on the protocol type of the high-precision positioning correction source data, and output the target structured object. The target structured object is a target protocol structured object. The target protocol object abstracts the protocol into a data structure in a programming language, which is mainly an object-oriented programming language.

[0057] Step 203, encode the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data.

[0058] In this embodiment, the target structured object is encoded, see Figure 3 , the target structured object output by the object converter is input into the encoder, which is the target protocol encoder. The encoder is used to encode the target structured object and output the target binary data corresponding to the high-precision positioning correction source data, which is a binary stream.

[0059] The data processing method provided in the embodiment of the present application obtains the high-precision positioning correction source data to be encoded, determines the protocol type of the high-precision positioning correction source data, and then performs object conversion on the high-precision positioning correction source data based on the type to obtain the corresponding target structured object; further encodes the target structured object to obtain the target binary data corresponding to the high-precision positioning correction source data. By converting the high-precision positioning correction source data into a structured object and encoding the structured object, the encoding efficiency can be effectively improved and can be applicable to different protocols.

[0060] Figure 4 Schematic diagram of the data processing method provided for this application Figure 2 ,like Figure 4 As shown, in this embodiment Figure 2 Based on the embodiment, the data processing method is described in detail, and the method includes:

[0061] Step 401, obtain the high-precision positioning correction source data to be encoded, and determine the protocol type of the high-precision positioning correction source data.

[0062] In this embodiment, high-precision positioning correction source data to be encoded is obtained, and the protocol type of the high-precision positioning correction source data is determined. The protocol types include: orbit protocol, clock error protocol, phase deviation protocol, code deviation protocol, ionosphere protocol, and troposphere protocol. Based on the different protocol types, the structure and format of the corresponding high-precision positioning correction source data are different.

[0063] In a possible implementation, determining the protocol type of high-precision positioning correction source data includes:

[0064] Obtain the protocol identifier corresponding to the high-precision positioning correction data source data; determine the protocol type of the high-precision positioning correction data source data according to the protocol identifier corresponding to the high-precision positioning correction data source data.

[0065] In this embodiment, the protocol identifier corresponding to the high-precision positioning correction source data is obtained, a unique representation is set for each protocol in advance, and the protocol type of the high-precision positioning correction source data to be encoded is determined according to the protocol identifier.

[0066] Step 402: Determine the target structured object template corresponding to the high-precision positioning correction data source data according to the protocol type of the high-precision positioning correction data source data.

[0067] In this embodiment, a corresponding structured object template is configured in advance for each protocol type. There are multiple structured object templates corresponding to the same protocol type, such as attribute A and attribute B corresponding to the track protocol. The structured object templates corresponding to attribute A and attribute B respectively define the relevant information of the attributes in advance. According to the protocol type of the high-precision positioning correction data source, a structured object template matching the high-precision positioning correction data source is determined, and the template is the target structured object template corresponding to the high-precision positioning correction data source.

[0068] In a possible implementation, determining a target structured object template corresponding to the high-precision positioning correction data source data according to the protocol type of the high-precision positioning correction data source data includes:

[0069] According to the protocol type of the high-precision positioning correction source data, the preset attribute identifier corresponding to the protocol type is determined; the attribute identifier corresponding to the high-precision positioning correction source data is matched with the preset attribute identifier corresponding to the protocol type to determine the preset attribute identifier that matches the attribute identifier corresponding to the high-precision positioning correction source data; and the structured object template corresponding to the matched preset attribute identifier is determined as the target structured object template.

[0070] In this embodiment, the attributes corresponding to each protocol type are different. For example, the attributes corresponding to the orbit protocol are attribute A and attribute B, and the attributes corresponding to the clock error protocol are attribute A, attribute B, and attribute C. Attributes are pre-configured for each protocol type, and the protocol type is associated with its corresponding attribute identifier. The preset attribute identifier corresponding to the protocol type is determined according to the protocol type of the high-precision positioning correction source data. The attribute identifier can be an attribute name. The attribute identifier corresponding to the high-precision positioning correction source data to be encoded is matched with the preset attribute identifier corresponding to the protocol type. The preset attribute identifier that matches the high-precision positioning correction source data to be encoded is determined from multiple preset attribute identifiers, and the structured object template associated with the matching preset attribute identifier is determined as the target structured object template.

[0071] See also Figure 5 , a structured object template corresponding to a certain attribute, the structured object template includes: the field metadata description corresponding to the attribute, the field metadata description is used to define the relevant information of the attribute, including bit length, signed number / unsigned number, data type processor, auxiliary information, field sequence number, value range, among which, the auxiliary information includes: primary auxiliary field, secondary auxiliary field and auxiliary dictionary. The template also includes other descriptive information, which is configured according to actual needs and dynamically expands other metadata information according to the protocol structure.

[0072] Specifically, bit length: the bit length of a certain attribute of the target protocol structured object in the protocol. Signed number / unsigned number: a certain attribute of the target protocol structured object is expressed as a signed number or an unsigned number in the protocol. The data type processor is a processor used to process special data types in the protocol. Primary auxiliary field: the name of other attribute information that certain attributes of the target protocol structured object rely on during the encoding and decoding process. Secondary auxiliary field: the name of other attribute information that certain attributes of the target protocol structured object rely on during the encoding and decoding process. Auxiliary dictionary: enumerated dictionary information that certain attributes of the target protocol structured object rely on during the encoding and decoding process. Used for data conversion. Field sequence number: a number used to identify the order of attributes in the target protocol structured object in the protocol. The encoding and decoding process will dynamically parse the attribute information in the target protocol structured object according to this sequence number. Value range: used to identify the value range of the attribute in the target protocol structured object, used for verification and detection during the encoding / decoding process, and errors and alarms can be reported if the range is exceeded.

[0073] Step 403: perform object conversion on the high-precision positioning correction source data based on the target structured object template to obtain the corresponding target structured object.

[0074] Continue to see Figure 3The high-precision positioning correction source data is input into the object converter, and the object converter is used to perform object conversion on the high-precision positioning correction source data based on the target structured object template, and output the target structured object.

[0075] In a possible implementation, the target structured object template includes: a field metadata description corresponding to the attribute, the field metadata description is used to define the bit length, field sequence number, value range, and auxiliary information of the attribute; object conversion is performed on the high-precision positioning correction source data based on the target structured object template to obtain the corresponding target structured object, including:

[0076] Fill the values ​​of the attributes corresponding to the high-precision positioning correction source data into the corresponding positions of the target structured object template to generate the target structured object.

[0077] In this embodiment, the target structured object template includes: a field metadata description corresponding to the attribute, the field metadata description is used to define the bit length, field sequence number, value range, and auxiliary information of the attribute, and the auxiliary information includes: a primary auxiliary field, a secondary auxiliary field, and an auxiliary dictionary. The bit length, field sequence number, value range, and auxiliary information in the target structured object template are all pre-configured with corresponding values. For example, the bit length value of a certain attribute is 1, the field sequence number is 3, and the value range is 0-7. In the template: Bits(len = 1), FieldOrder(3), FloatRange(min = 0, max= 7), where Bits(len: 1) indicates that the bit length value is 1, FieldOrder(3) indicates that the field sequence number is 3, and FloatRange(min = 0, max = 7) indicates that the value range is 0-7.

[0078] Specifically, the value of the attribute corresponding to the high-precision positioning correction source data is filled into the corresponding position of the target structured object template, such as, filled into the corresponding position of "private" in the target, where private is used to define private attributes and generate the target structured object.

[0079] Step 404, encode the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data.

[0080] In this embodiment, the target structured object is encoded, see Figure 3 , the target structured object output by the object converter is input into the encoder, which is the target protocol encoder. The encoder is used to encode the target structured object and output the target binary data corresponding to the high-precision positioning correction source data, which is a binary stream.

[0081] In a possible implementation, encoding the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data includes:

[0082] Based on the value of the bit length in the target structured object, the value of the field sequence number and the protocol identifier corresponding to the protocol type, the value of the attribute in the target structured object is encoded to obtain the target binary data corresponding to the high-precision positioning correction source data.

[0083] In this embodiment, when encoding, the value of the bit length and the value of the field sequence number in the target structured object are read, and the value of the attribute in the target structured object is encoded based on the value of the bit length, the value of the field sequence number and the protocol identifier in the target structured object. Specifically, if there are multiple attributes, the multiple attributes are sorted from small to large according to the value of the field sequence number, the value of the bit length is used to determine the length of the attribute in the binary stream, and the protocol identifier is used to determine the protocol type corresponding to the binary stream, so as to obtain the target binary data corresponding to the high-precision positioning correction source data.

[0084] Optionally, the method further comprises:

[0085] Obtain the binary data to be decoded, determine the protocol type corresponding to the binary data; decode the binary data based on the protocol type to obtain the corresponding target structured object.

[0086] In this embodiment, the binary data to be decoded is obtained, and the protocol type corresponding to the binary data is determined. Specifically, the corresponding identification bit in the binary data is read to obtain the protocol identification, and the protocol type is determined according to the protocol identification. Figure 6 , input the binary data to be decoded into the decoder, use the decoder to decode the binary data based on the protocol type, output the target structured object, and obtain the value of the high-precision positioning correction source data from the target structured object. The structural information of the protocol object can be described based on the annotation mechanism of the programming language, and the annotation mechanism is used to describe the metadata of the protocol information, and then the reflection mechanism is used to obtain the metadata description of the protocol at runtime for encoding or decoding operations.

[0087] The data processing method provided in the embodiment of the present application can effectively improve the coding efficiency by converting the high-precision positioning correction source data into a structured object and encoding the structured object, and can be applied to different protocols. Moreover, the binary data is decoded based on the protocol type to improve the decoding efficiency.

[0088] Figure 7 A schematic diagram of the structure of the data processing device provided in this application, such as Figure 4As shown, the data processing device 70 provided in this embodiment includes: an acquisition unit 701, a processing unit 702, an object conversion unit 703, and an encoding unit 704.

[0089] The acquisition unit 701 is used to acquire the high-precision positioning correction source data to be encoded. The processing unit 702 is used to determine the protocol type of the high-precision positioning correction source data. The object conversion unit 703 is used to perform object conversion on the high-precision positioning correction source data based on the protocol type to obtain the corresponding target structured object. The encoding unit 704 is used to encode the target structured object to obtain the target binary data corresponding to the high-precision positioning correction source data.

[0090] In a possible implementation, the object conversion unit 703 is also used to determine the target structured object template corresponding to the high-precision positioning correction source data according to the protocol type of the high-precision positioning correction source data; and perform object conversion on the high-precision positioning correction source data based on the target structured object template to obtain the corresponding target structured object.

[0091] In a possible implementation, the object conversion unit 703 is also used to determine the preset attribute identifier corresponding to the protocol type according to the protocol type of the high-precision positioning correction source data; match the attribute identifier corresponding to the high-precision positioning correction source data with the preset attribute identifier corresponding to the protocol type to determine the preset attribute identifier that matches the attribute identifier corresponding to the high-precision positioning correction source data; and determine the structured object template corresponding to the matched preset attribute identifier as the target structured object template.

[0092] In a possible implementation, the object conversion unit 703 is further configured to fill the value of the attribute corresponding to the high-precision positioning correction source data into the corresponding position of the target structured object template to generate the target structured object.

[0093] In one possible implementation, the encoding unit 704 is also used to encode the value of the attribute in the target structured object based on the value of the bit length in the target structured object, the value of the field sequence number, and the protocol identifier corresponding to the protocol type, to obtain the target binary data corresponding to the high-precision positioning correction source data.

[0094] In a possible implementation, the processing unit 702 is further used to obtain a protocol identifier corresponding to the high-precision positioning correction source data; and determine the protocol type of the high-precision positioning correction source data according to the protocol identifier corresponding to the high-precision positioning correction source data.

[0095] The data processing device 70 further includes: a decoding unit.

[0096] The acquisition unit 701 is further used to acquire binary data to be decoded. The processing unit 702 is further used to determine the protocol type corresponding to the binary data. The decoding unit is used to decode the binary data based on the protocol type to obtain the corresponding target structured object.

[0097] The data processing device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0098] Figure 8 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 8 As shown, the electronic device 80 provided in this embodiment includes: at least one processor 801 and a memory 802. Optionally, the device 80 also includes a communication component 803. The processor 801, the memory 802 and the communication component 803 are connected via a bus 804.

[0099] In a specific implementation process, at least one processor 801 executes the computer-executable instructions stored in the memory 802, so that at least one processor 801 executes the above method.

[0100] The specific implementation process of the processor 801 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0101] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0102] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0103] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0104] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0105] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0106] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0107] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0108] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0109] 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.

[0110] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0111] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0112] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0113] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: include: Acquire high-precision positioning correction source data to be encoded, and determine the protocol type of the high-precision positioning correction source data; Performing object conversion on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object; The target structured object is encoded to obtain target binary data corresponding to the high-precision positioning correction source data.

2. The method according to claim 1, characterized in that The object conversion of the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object includes: Determining a target structured object template corresponding to the high-precision positioning correction data source data according to a protocol type of the high-precision positioning correction data source data; The high-precision positioning correction data source data is subjected to object conversion based on the target structured object template to obtain a corresponding target structured object.

3. The method according to claim 2, characterized in that The step of determining, according to the protocol type of the high-precision positioning correction data source data, a target structured object template corresponding to the high-precision positioning correction data source data comprises: Determine, according to the protocol type of the high-precision positioning correction data source data, a preset attribute identifier corresponding to the protocol type; Matching the attribute identifier corresponding to the high-precision positioning correction source data with the preset attribute identifier corresponding to the protocol type to determine a preset attribute identifier that matches the attribute identifier corresponding to the high-precision positioning correction source data; The structured object template corresponding to the matched preset attribute identifier is determined as the target structured object template.

4. The method according to claim 2, characterized in that: The target structured object template includes: a field metadata description corresponding to an attribute, wherein the field metadata description is used to define a bit length, a field sequence number, a value range, and auxiliary information of the attribute; The object conversion of the high-precision positioning correction source data based on the target structured object template to obtain the corresponding target structured object includes: The values ​​of the attributes corresponding to the high-precision positioning correction source data are filled into the corresponding positions of the target structured object template to generate the target structured object.

5. The method according to any one of claims 1 to 4, characterized in that: The encoding of the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data includes: Based on the value of the bit length in the target structured object, the value of the field sequence number and the protocol identifier corresponding to the protocol type, the value of the attribute in the target structured object is encoded to obtain the target binary data corresponding to the high-precision positioning correction source data.

6. The method according to any one of claims 1 to 4, characterized in that: The determining of the protocol type of the high-precision positioning correction source data includes: Obtaining the protocol identifier corresponding to the high-precision positioning correction data source data; The protocol type of the high-precision positioning correction data source data is determined according to the protocol identifier corresponding to the high-precision positioning correction data source data.

7. The method according to claim 1, characterized in that Also includes: Obtaining binary data to be decoded, and determining a protocol type corresponding to the binary data; The binary data is decoded based on the protocol type to obtain a corresponding target structured object.

8. A data processing device, characterized in that: include: An acquisition unit, which acquires high-precision positioning correction source data to be encoded; A processing unit, used to determine the protocol type of the high-precision positioning correction data source data; An object conversion unit, used for performing object conversion on the high-precision positioning correction source data based on the protocol type to obtain a corresponding target structured object; The encoding unit is used to encode the target structured object to obtain target binary data corresponding to the high-precision positioning correction source data.

9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.