CN112702068A - Coded data processing method, device, equipment and storage medium - Google Patents

Coded data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112702068A
CN112702068A CN202011566437.3A CN202011566437A CN112702068A CN 112702068 A CN112702068 A CN 112702068A CN 202011566437 A CN202011566437 A CN 202011566437A CN 112702068 A CN112702068 A CN 112702068A
Authority
CN
China
Prior art keywords
data
nrz
code
bit
leading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011566437.3A
Other languages
Chinese (zh)
Other versions
CN112702068B (en
Inventor
刘均
郭黎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202011566437.3A priority Critical patent/CN112702068B/en
Publication of CN112702068A publication Critical patent/CN112702068A/en
Application granted granted Critical
Publication of CN112702068B publication Critical patent/CN112702068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/13Linear codes
    • H03M13/19Single error correction without using particular properties of the cyclic codes, e.g. Hamming codes, extended or generalised Hamming codes

Landscapes

  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Dc Digital Transmission (AREA)

Abstract

A coded data processing method, a device, equipment and a storage medium are provided, wherein the method comprises the steps of analyzing first leading data and effective coded data from NRZ coded data after the obtained NRZ coded data is determined to be an effective signal, and converting the effective coded data into differential Manchester code data based on the first leading data and a preset data conversion rule; and the differential Manchester code data can be collected through a serial port, so that the change rule of the signal state can be more intuitively reflected in the data collection process. The encoded data can be directly compared for ease of application.

Description

Coded data processing method, device, equipment and storage medium
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing encoded data.
Background
At present, common data coding modes comprise a non-return-to-zero (NRZ) coding mode, and data obtained by coding in the NRZ coding mode can only be collected through a logic analyzer, so that the NRZ coding data cannot be directly compared in some application scenes, and data rules are conveniently found and effectively utilized.
Therefore, the prior art has the problem of inconvenient application caused by the fact that NRZ coded data cannot be directly compared.
Disclosure of Invention
The present application aims to provide an encoded data processing method, apparatus, device and storage medium, and aims to solve the problem of inconvenient application caused by the fact that NRZ encoded data cannot be directly compared in the prior art.
A first aspect of an embodiment of the present application provides an encoded data processing method, including:
acquiring non-return-to-zero NRZ coded data;
judging whether the NRZ coded data is a valid signal or not;
if yes, analyzing first leading data and effective coded data from the NRZ coded data;
and converting the effective coding data into differential Manchester code data according to the first leading data and a preset data conversion rule.
In an optional implementation manner, the determining whether the NRZ encoded data is a valid signal specifically includes:
and determining whether the non-return-to-zero NRZ coded data is a valid signal according to preset second leading data and the first leading data in the non-return-to-zero NRZ coded data.
In an optional implementation manner, the determining whether the NRZ encoded data is a valid signal according to preset second preamble data and the first preamble data in the NRZ encoded data includes:
judging whether the first leading data and the second leading data are the same;
if yes, determining the non-return-to-zero NRZ coded data as a valid signal;
and if not, determining that the NRZ coded data is an invalid signal.
In an optional implementation manner, converting the valid encoding data into differential Manchester code data according to the first preamble data and a preset data conversion rule includes:
respectively and sequentially acquiring every two NRZ codes according to the arrangement sequence of the NRZ codes in the effective coding data;
and respectively and sequentially converting each two-bit NRZ codes into differential Manchester code data according to the first leading data.
In an optional implementation manner, sequentially converting each two-bit NRZ code obtained according to the first preamble data into differential man code data respectively includes:
aiming at any selected two-bit NRZ codes, comparing the first NRZ code in the two-bit NRZ codes with the last NRZ code in the first leading data;
and determining to convert the arbitrary two-bit NRZ code into differential Manchester code data of corresponding levels according to the comparison result.
In an optional implementation manner, determining to convert the arbitrary two-bit NRZ code into differential man code data of a corresponding level according to the comparison result includes:
judging that the first NRZ code is the same as the last NRZ code in the arbitrary two NRZ codes;
if the NRZ codes are the same, determining to convert the arbitrary two-bit NRZ codes into differential Manchester code data of high level;
and if the NRZ codes are not the same, determining to convert the arbitrary two-bit NRZ codes into differential Manchester code data of low level.
In an alternative implementation, the last NRZ encoding of the first preamble data includes a high level or a low level.
A second aspect of the embodiments of the present application provides an encoded data processing apparatus, including:
the acquisition module is used for acquiring non-return-to-zero NRZ coded data;
the judging module is used for judging whether the non-return-to-zero NRZ coded data is a valid signal or not;
the analysis module is used for analyzing first leading data and effective coding data from the non-return-to-zero NRZ coding data when the non-return-to-zero NRZ coding data is an effective signal;
and the conversion module is used for converting the effective coded data into differential Manchester code data according to the first leading data and a preset data conversion rule.
In an optional implementation manner, the determining module is specifically configured to:
and determining whether the non-return-to-zero NRZ coded data is a valid signal according to preset second leading data and the first leading data in the non-return-to-zero NRZ coded data.
In an optional implementation manner, the determining module includes:
a first judging unit, configured to judge whether the first leading data is the same as the second leading data;
a first determining unit configured to determine that the NRZ encoded data is a valid signal when the first preamble data is the same as the second preamble data;
a second determining unit, configured to determine that the NRZ encoded data is an invalid signal when the first preamble data is different from the second preamble data.
In an optional implementation manner, the conversion module includes:
the obtaining unit is used for respectively and sequentially obtaining each two-bit NRZ codes according to the arrangement sequence of the NRZ codes in the effective coding data;
and the conversion unit is used for sequentially converting each two-bit NRZ code into differential Manchester code data according to the first leading data.
In an optional implementation manner, the conversion unit includes:
a comparing subunit, configured to compare, for any two selected NRZ codes, a first NRZ code in the any two selected NRZ codes with a last NRZ code in the first preamble data;
and the first determining subunit is used for determining to convert the arbitrary two-bit NRZ code into differential Manchester code data of corresponding levels according to the comparison result.
In an optional implementation manner, the determining subunit includes:
a judging subunit, configured to judge whether the first NRZ code and the last NRZ code in the arbitrary two-bit NRZ code are the same;
a second determining subunit, configured to determine, if the first bit NRZ code is the same as the last bit NRZ code in the arbitrary two-bit NRZ code, to convert the arbitrary two-bit NRZ code into differential man code data of a high level;
and a third determining subunit, configured to determine to convert the arbitrary two-bit NRZ code into low-level differential mancode data when the first-bit NRZ code is different from the last-bit NRZ code in the arbitrary two-bit NRZ code.
In an alternative implementation, the last NRZ encoding of the first preamble data includes a high level or a low level.
A third aspect of the present application provides an encoding data processing apparatus comprising:
a memory for storing an encoded data conversion program;
a processor for implementing the encoded data processing method according to the first aspect when executing the encoded data conversion program.
A fourth aspect of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the encoded data processing method as described in the first aspect above.
Compared with the prior art, the first aspect of the application has the following beneficial effects: after the obtained NRZ coded data is determined to be an effective signal, first leading data and effective coded data are analyzed from the NRZ coded data, and the effective coded data are converted into differential Manchester code data based on the first leading data and a preset data conversion rule; and the differential Manchester code data can be collected through a serial port, so that the change rule of the signal state can be more intuitively reflected in the data collection process. The encoded data can be directly compared for ease of application.
It can be understood that the second aspect to the fourth aspect of the present application have the same advantageous effects as the first aspect of the present application, compared with the prior art, and are not described herein again.
Drawings
Fig. 1 is a schematic flow chart of an implementation of a coded data conversion method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of an encoding data conversion device according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an encoding data conversion device according to a third embodiment of the present application.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be understood that the terms "first," "second," "third," and the like in the description of the present application and in the appended claims, are used for distinguishing between descriptions that are not intended to indicate or imply relative importance.
It should also be appreciated that reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a schematic implementation flow diagram of a coded data conversion method according to a first embodiment of the present application. The coded data conversion method provided by the present embodiment may be performed by a coded data conversion apparatus. The encoding data conversion device can include, but is not limited to, an independent server, a cloud server cluster or a data analysis device in various application scenarios. The details are as follows:
s101, non-return-to-zero NRZ coded data is obtained.
In an embodiment of the present application, the non-return-to-zero NRZ encoded data includes first preamble data and NRZ encoded data. The first leading data is used for judging whether the non-return-to-zero NRZ coded data is a valid signal or an invalid signal, and the non-return-to-zero NRZ coded data comprises a valid signal or an invalid signal.
Illustratively, the first preamble data is 0b0110011001100101, if the first preamble data is the same as the preset second preamble data, the NRZ encoded data is determined to be a valid signal, and if the first preamble data is not the same as the preset second preamble data, the NRZ encoded data is determined to be an invalid signal.
S102, judging whether the NRZ coded data is an effective signal or not.
Specifically, in the embodiment of the present application, if the NRZ encoded data is a valid signal, the first preamble data and the valid encoded data are parsed from the NRZ encoded data.
For example, the determining whether the NRZ encoded data is a valid signal may include: and determining whether the non-return-to-zero NRZ coded data is a valid signal according to preset second leading data and the first leading data in the non-return-to-zero NRZ coded data.
Specifically, whether the first leading data is the same as the second leading data is judged, if the first leading data is the same as the second leading data, the NRZ encoded data is determined to be an effective signal, and the NRZ encoded data is analyzed to obtain the first leading data and the effective encoded data. The valid encoded data is NRZ encoded data following the first preamble data. And if the first leading data is different from the second leading data, determining that the non-return-to-zero NRZ coded data is an invalid signal, and when the non-return-to-zero NRZ coded data is the invalid signal, not analyzing the non-return-to-zero NRZ coded data.
S103, converting the effective coded data into differential Manchester code data according to the first leading data and a preset data conversion rule.
Illustratively, the last bit NRZ encoding of the first preamble data includes a high level or a low level. In this embodiment, converting the valid encoded data into differential man code data according to the first preamble data and a preset data conversion rule may include: respectively and sequentially acquiring every two NRZ codes according to the arrangement sequence of the NRZ codes in the effective coding data; and respectively and sequentially converting each two-bit NRZ codes into differential Manchester code data according to the first leading data.
Specifically, sequentially converting each two acquired NRZ codes into differential man code data according to the first preamble data, may include: aiming at any selected two-bit NRZ codes, comparing the first NRZ code in the two-bit NRZ codes with the last NRZ code in the first leading data; and determining to convert the arbitrary two-bit NRZ code into differential Manchester code data of corresponding levels according to the comparison result.
Further, determining the differential man code data converting the arbitrary two-bit NRZ code into the corresponding level according to the comparison result may include: if the first bit NRZ code is the same as the last bit NRZ code in the arbitrary two bit NRZ codes, determining to convert the arbitrary two bit NRZ codes into differential Manchester code data with high level; and if the first micro NRZ code is different from the last NRZ code in the arbitrary two-bit NRZ codes, determining that the arbitrary two-bit NRZ codes are converted into differential Manchester code data with low level.
For example, if the last NRZ of the first preamble data is encoded as high level 1 and the first NRZ of any two-bit NRZ encoding is encoded as high level 1, the any two-bit NRZ encoding is converted into high level differential code data 1; and if the last NRZ code of the first leading data is high level 1 and the first NRZ code in any two-bit NRZ codes is low level 0, converting the any two-bit NRZ codes into low level differential code data 0.
As can be seen from the above analysis, in the encoded data processing method provided in this embodiment of the present application, after determining that the obtained NRZ encoded data is an effective signal, first leading data and effective encoded data are analyzed from the NRZ encoded data, and the effective encoded data is converted into differential raman code data based on the first leading data and a preset data conversion rule; and the differential Manchester code data can be collected through a serial port, so that the change rule of the signal state can be more intuitively reflected in the data collection process. The encoded data can be directly compared for ease of application.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Based on the encoded data conversion method provided by the above embodiment, an embodiment of an apparatus for implementing the above method embodiment is further provided in the embodiment of the present invention.
As shown in fig. 2, fig. 2 is a schematic diagram of an encoding data processing apparatus according to a second embodiment of the present application. Modules are included for performing the steps in the embodiment of fig. 1. Please refer to fig. 1 for the related description of the corresponding embodiment. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 2, the encoding data processing apparatus 200 includes:
an obtaining module 201, configured to obtain non-return-to-zero NRZ encoded data;
a judging module 202, configured to judge whether the NRZ encoded data is a valid signal;
a parsing module 203, configured to parse first preamble data and valid encoded data from the NRZ encoded data when the NRZ encoded data is a valid signal;
and the conversion module 204 is configured to convert the valid encoded data into differential Manchester code data according to the first leading data and a preset data conversion rule.
In an optional implementation manner, the determining module 202 is specifically configured to:
and determining whether the non-return-to-zero NRZ coded data is a valid signal according to preset second leading data and the first leading data in the non-return-to-zero NRZ coded data.
In an optional implementation manner, the determining module includes:
a first judging unit, configured to judge whether the first leading data is the same as the second leading data;
a first determining unit configured to determine that the NRZ encoded data is a valid signal when the first preamble data is the same as the second preamble data;
a second determining unit, configured to determine that the NRZ encoded data is an invalid signal if the first preamble data is different from the second preamble data.
In an optional implementation manner, the conversion module 204 includes:
the obtaining unit is used for respectively and sequentially obtaining each two-bit NRZ codes according to the arrangement sequence of the NRZ codes in the effective coding data;
and the conversion unit is used for sequentially converting each two-bit NRZ code into differential Manchester code data according to the first leading data.
In an optional implementation manner, the conversion unit includes:
a comparing subunit, configured to compare, for any two selected NRZ codes, a first NRZ code in the any two selected NRZ codes with a last NRZ code in the first preamble data;
and the first determining subunit is used for determining to convert the arbitrary two-bit NRZ code into differential Manchester code data of corresponding levels according to the comparison result.
In an optional implementation manner, the determining subunit includes:
a judging subunit, configured to judge that the first NRZ code in the arbitrary two-bit NRZ code is the same as the last NRZ code, and determine to convert the arbitrary two-bit NRZ code into differential man code data of a high level;
a second determining subunit, configured to determine, if the first bit NRZ code is the same as the last bit NRZ code in the arbitrary two-bit NRZ code, to convert the arbitrary two-bit NRZ code into differential man code data of a high level;
and a third determining subunit, configured to determine to convert the arbitrary two-bit NRZ code into low-level differential mancode data when the first-bit NRZ code is different from the last-bit NRZ code in the arbitrary two-bit NRZ code.
In an alternative implementation, the last NRZ encoding of the first preamble data includes a high level or a low level.
It should be noted that, because the contents of information interaction, execution process, and the like between the modules are based on the same concept as the method embodiment shown in fig. 1 of the present application, specific functions and technical effects thereof may be referred to specifically in the method embodiment section, and are not described herein again.
Fig. 3 is a schematic diagram of an encoding data processing apparatus according to a fourth embodiment of the present application. As shown in fig. 3, the encoding data processing apparatus 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32, such as an encoded data processing program, stored in said memory 31 and executable on said processor 30. The steps in the method embodiment described above with respect to fig. 1 are implemented when the computer program 32 is executed by the processor 30. Alternatively, the processor 30 implements the functions of the modules 201 to 204 shown in fig. 2 when executing the computer program 32.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 32 in the encoding data processing device 3. For example, the computer program 32 may be divided into an acquisition module, a determination module, an analysis module, and a conversion module (module in a virtual device), and each module specifically functions as follows:
the acquisition module is used for acquiring non-return-to-zero NRZ coded data;
the judging module is used for judging whether the non-return-to-zero NRZ coded data is a valid signal or not;
the analysis module is used for analyzing first leading data and effective coded data from the non-return-to-zero NRZ coded data if the non-return-to-zero NRZ coded data is an effective signal;
and the conversion module is used for converting the effective coded data into differential Manchester code data according to the first leading data and a preset data conversion rule.
The encoding data processing device 3 may include, but is not limited to, a processor 30, a memory 31. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the encoding data processing apparatus 3 and does not constitute a limitation of the encoding data processing apparatus 3 and may include more or fewer components than shown, or some components may be combined, or different components, for example the vehicle may also include input output devices, network access devices, buses, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the encoding data processing apparatus 3, such as a hard disk or a memory of the encoding data processing apparatus 3. The memory 31 may also be an external storage device of the encoded data processing apparatus 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the encoded data processing apparatus 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the encoded data processing apparatus 3. The memory 31 is used to store the computer program and other programs and data required by the encoding data processing apparatus 3. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. In the embodiments, each functional unit and each module may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for processing encoded data, comprising:
acquiring non-return-to-zero NRZ coded data;
judging whether the NRZ coded data is a valid signal or not;
if yes, analyzing first leading data and effective coded data from the NRZ coded data;
and converting the effective coding data into differential Manchester code data according to the first leading data and a preset data conversion rule.
2. The method of claim 1, wherein said determining whether said NRZ encoded data is a valid signal comprises:
and determining whether the non-return-to-zero NRZ coded data is a valid signal according to preset second leading data and the first leading data in the non-return-to-zero NRZ coded data.
3. The method of claim 2, wherein said determining whether said NRZ encoded data is a valid signal based on a predetermined second preamble and said first preamble of said NRZ encoded data comprises:
judging whether the first leading data is the same as the second leading data;
if yes, determining the non-return-to-zero NRZ coded data as a valid signal;
and if not, determining that the NRZ coded data is an invalid signal.
4. The method as claimed in any one of claims 1 to 3, wherein converting the valid encoded data into differential Manchester code data according to the first preamble data and a preset data conversion rule comprises:
respectively and sequentially acquiring every two NRZ codes according to the arrangement sequence of the NRZ codes in the effective coding data;
and respectively and sequentially converting each two-bit NRZ codes into differential Manchester code data according to the first leading data.
5. The method of claim 4, wherein sequentially converting each two-bit NRZ code obtained according to the first preamble data into differential man code data respectively comprises:
aiming at any selected two-bit NRZ codes, comparing the first NRZ code in the two-bit NRZ codes with the last NRZ code in the first leading data;
and determining to convert the arbitrary two-bit NRZ code into differential Manchester code data of corresponding levels according to the comparison result.
6. The method of claim 5, wherein determining the differential Manchester code data for converting the arbitrary two-bit NRZ code into the corresponding level according to the comparison result comprises:
judging whether the first bit NRZ code is the same as the last bit NRZ code in the arbitrary two-bit NRZ codes;
if the NRZ codes are the same, determining to convert the arbitrary two-bit NRZ codes into differential Manchester code data of high level;
and if the NRZ codes are not the same, determining to convert the arbitrary two-bit NRZ codes into differential Manchester code data of low level.
7. The method of claim 1, wherein the last bit NRZ encoding of the first preamble data comprises a high level or a low level.
8. An encoding data processing apparatus characterized by comprising:
the acquisition module is used for acquiring non-return-to-zero NRZ coded data;
the judging module is used for judging whether the non-return-to-zero NRZ coded data is a valid signal or not;
the analysis module is used for analyzing first leading data and effective coding data from the non-return-to-zero NRZ coding data when the non-return-to-zero NRZ coding data is an effective signal;
and the conversion module is used for converting the effective coded data into differential Manchester code data according to the first leading data and a preset data conversion rule.
9. An encoding data conversion apparatus, characterized by comprising:
a memory for storing an encoded data conversion program;
a processor for implementing the coded data conversion method of any one of claims 1 to 7 when executing the coded data conversion program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out a method of coded data conversion according to any one of claims 1 to 7.
CN202011566437.3A 2020-12-25 2020-12-25 Method, device, equipment and storage medium for processing coded data Active CN112702068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011566437.3A CN112702068B (en) 2020-12-25 2020-12-25 Method, device, equipment and storage medium for processing coded data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566437.3A CN112702068B (en) 2020-12-25 2020-12-25 Method, device, equipment and storage medium for processing coded data

Publications (2)

Publication Number Publication Date
CN112702068A true CN112702068A (en) 2021-04-23
CN112702068B CN112702068B (en) 2024-04-02

Family

ID=75510844

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566437.3A Active CN112702068B (en) 2020-12-25 2020-12-25 Method, device, equipment and storage medium for processing coded data

Country Status (1)

Country Link
CN (1) CN112702068B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320900B1 (en) * 1998-10-30 2001-11-20 Compaq Computer Corporation Methods and arrangements for transmitting high speed data over reduced bandwidth communication resources
WO2004111718A1 (en) * 2003-06-16 2004-12-23 Danmarks Tekniske Universitet Mach-zehnder electro-optical modulator configured to perform xor operation
JP2006262454A (en) * 2005-02-18 2006-09-28 Matsushita Electric Ind Co Ltd Clock reproducing method and manchester decoding method
US20110038428A1 (en) * 2009-08-12 2011-02-17 Sony Corporation Encoding apparatus, information processing apparatus, encoding method, and data transmission method
JP2011061525A (en) * 2009-09-10 2011-03-24 Renesas Electronics Corp Receiver and semiconductor device based on asynchronous communication using manchester code
CN201839287U (en) * 2010-10-18 2011-05-18 天津光电通信技术有限公司 Remote transmission circuit for asynchronous serial data
CN102394655A (en) * 2011-10-31 2012-03-28 中国兵器工业集团第二一四研究所苏州研发中心 Manchester code converting method on MIC bus
US20140212142A1 (en) * 2012-07-12 2014-07-31 Massachusets Institute Of Technology Underwater optical communication system
CN105389865A (en) * 2014-09-05 2016-03-09 深圳光启智能光子技术有限公司 Digital signal sending method capable of shortening sending time, digital signal receiving method and mobile terminal
CN107302361A (en) * 2014-03-06 2017-10-27 深圳市道通科技股份有限公司 General TPMS data encoding formaies conversion method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320900B1 (en) * 1998-10-30 2001-11-20 Compaq Computer Corporation Methods and arrangements for transmitting high speed data over reduced bandwidth communication resources
WO2004111718A1 (en) * 2003-06-16 2004-12-23 Danmarks Tekniske Universitet Mach-zehnder electro-optical modulator configured to perform xor operation
JP2006262454A (en) * 2005-02-18 2006-09-28 Matsushita Electric Ind Co Ltd Clock reproducing method and manchester decoding method
US20110038428A1 (en) * 2009-08-12 2011-02-17 Sony Corporation Encoding apparatus, information processing apparatus, encoding method, and data transmission method
JP2011061525A (en) * 2009-09-10 2011-03-24 Renesas Electronics Corp Receiver and semiconductor device based on asynchronous communication using manchester code
CN201839287U (en) * 2010-10-18 2011-05-18 天津光电通信技术有限公司 Remote transmission circuit for asynchronous serial data
CN102394655A (en) * 2011-10-31 2012-03-28 中国兵器工业集团第二一四研究所苏州研发中心 Manchester code converting method on MIC bus
US20140212142A1 (en) * 2012-07-12 2014-07-31 Massachusets Institute Of Technology Underwater optical communication system
CN107302361A (en) * 2014-03-06 2017-10-27 深圳市道通科技股份有限公司 General TPMS data encoding formaies conversion method and device
CN105389865A (en) * 2014-09-05 2016-03-09 深圳光启智能光子技术有限公司 Digital signal sending method capable of shortening sending time, digital signal receiving method and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LINGZHI GE: "Investigation of XOR operation in all-optical system with NRZ, RZ and Manchestermodulation formats", 《2009 ASIA COMMUNICATIONS AND PHOTONICS CONFERENCE AND EXHIBITION (ACP)》, pages 466 - 481 *
王奇: "基于CPLD的曼彻斯特编码技术", 《微型机与应用》, pages 39 - 42 *

Also Published As

Publication number Publication date
CN112702068B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN108363737B (en) Data format conversion method, device and equipment
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN110012002B (en) Message analysis method and device, server and computer readable storage medium
CN109814524B (en) Vehicle diagnosis method, device and system
CN110166463B (en) Message transmission conversion method and device
CN111354099B (en) Data processing method, data processing device and diagnostic equipment
CN112147983B (en) Vehicle diagnosis method and device, electronic equipment and storage medium
CN112346775B (en) Index data general processing method, electronic device and storage medium
CN111273891A (en) Business decision method and device based on rule engine and terminal equipment
CN103036641A (en) Method and system of data exchange and deserialization method
CN111460098A (en) Text matching method and device and terminal equipment
CN113177015B (en) Frame header-based serial port communication method and serial port chip
CN112732982A (en) Fault code storage method and device, terminal equipment and readable storage medium
CN113032358B (en) Water affair data processing method and device and terminal equipment
CN112702068A (en) Coded data processing method, device, equipment and storage medium
CN111242256B (en) Information verification method, device and terminal
CN113162628A (en) Data encoding method, data decoding method, terminal and storage medium
CN114461418A (en) Inter-process communication method and device and electronic equipment
CN114003731A (en) Heterogeneous data processing method, device, server and storage medium
CN113099271A (en) Video auxiliary information encoding and decoding methods and electronic equipment
CN112711584A (en) Data checking method, checking device, terminal equipment and readable storage medium
CN112783971A (en) Transaction recording method, transaction query method, electronic device and storage medium
CN111953384B (en) Communication address sending method and device, electric energy meter and storage medium
CN113395327B (en) Data processing method, device, electronic equipment and medium
CN110119337A (en) A kind of data analysing method, device and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant