CN108667757A - Manchester code sampling processing method, module and decoder - Google Patents

Manchester code sampling processing method, module and decoder Download PDF

Info

Publication number
CN108667757A
CN108667757A CN201710187377.6A CN201710187377A CN108667757A CN 108667757 A CN108667757 A CN 108667757A CN 201710187377 A CN201710187377 A CN 201710187377A CN 108667757 A CN108667757 A CN 108667757A
Authority
CN
China
Prior art keywords
code element
value
manchester
sampled
sampling
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.)
Pending
Application number
CN201710187377.6A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201710187377.6A priority Critical patent/CN108667757A/en
Publication of CN108667757A publication Critical patent/CN108667757A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L25/00Baseband systems
    • H04L25/38Synchronous or start-stop systems, e.g. for Baudot code
    • H04L25/40Transmitting circuits; Receiving circuits
    • H04L25/49Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems
    • H04L25/4904Transmitting circuits; Receiving circuits using code conversion at the transmitter; using predistortion; using insertion of idle bits for obtaining a desired frequency spectrum; using three or more amplitude levels ; Baseband coding techniques specific to data transmission systems using self-synchronising codes, e.g. split-phase codes
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M5/00Conversion of the form of the representation of individual digits
    • H03M5/02Conversion to or from representation by pulses
    • H03M5/04Conversion to or from representation by pulses the pulses having two levels
    • H03M5/06Code representation, e.g. transition, for a given bit cell depending only on the information in that bit cell
    • H03M5/12Biphase level code, e.g. split phase code, Manchester code; Biphase space or mark code, e.g. double frequency code
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0041Arrangements at the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

A kind of Manchester code sampling processing method of offer of the embodiment of the present invention, module and decoder, belong to communication technique field.The method includes:N times sampling is carried out to the current half code element of Manchester code with the first clock frequency, obtains N number of sampled value of current half code element, the first clock frequency is N × 2 times that Manchester code transmits clock frequency, N > 1;If more than half sampled values is an identical numerical value in N number of sampled value, it is determined that the virtual value of current half code element is the identical numerical value.The method to the current half code element of Manchester code with the first clock frequency of the transmission clock frequency of 2N times of Manchester code by carrying out multiple repairing weld processing, obtain the larger virtual value of the possibility of current half code element, Manchester code to effectively increase decoding end receives accuracy, and accordingly improves the Manchester code decoding accuracy of decoding end.

Description

Manchester code sampling processing method, module and decoder
Technical field
The present embodiments relate to communication technique field more particularly to a kind of Manchester code sampling processing method, modules And decoder.
Background technology
Manchester code, also known as split phase code (Split Phase Code), belong to synchronised clock coding techniques, often by physics Layer is used for encoding the clock and data of synchronous bit stream.Manchester code is the saltus step by level come to binary data " 0 " and " 1 " is encoded, i.e., in a clock cycle, level saltus step from high to low indicates " 0 ", from low to high saltus step table Show " 1 ";Or level saltus step from high to low indicates " 1 ", saltus step from low to high indicates " 0 ".
Wherein, a level saltus step corresponds to 1 all-key member or 2 " half code elements " in Manchester code.Namely Say that 1 all-key member includes 2 " half code elements " in Manchester code, the value of half code element takes " 0 " or " 1 ", and half code element " 0 " indicates low electricity Flat, half code element " 1 " indicates high level.For example, all-key member " 01 " indicates that level saltus step from low to high, all-key member " 10 " indicate level Saltus step from high to low.
Manchester code in network communication field using relatively broad, when in use, usually first coding side pair two into Data processed are encoded, and decoding end is then reached in a manner of serial transmission, and use is decoded by decoding end.But due to Man Chesi Special code can be influenced in transmission process by factors such as signal interferences, and the level for being sometimes prone to generate some (a little) half code element exists The phenomenon that being fluctuated in one clock cycle is dropped so as to cause the Manchester code of decoding end to receive accuracy It is low, and then the Manchester code decoding accuracy of decoding end is caused also accordingly to reduce.
Invention content
In view of this, Manchester code sampling processing method, module and decoder provided in an embodiment of the present invention, with so that The above-mentioned problems in the prior art is solved less.
The first aspect of the embodiment of the present invention provides a kind of Manchester code sampling processing method, and the Manchester code is adopted Sample processing method includes:
A n times sampling) is carried out to the current half code element of Manchester code with the first clock frequency, obtains the N of current half code element A sampled value, the first clock frequency are N × 2 times that Manchester code transmits clock frequency, N > 1;
B) if sampled value more than half in N number of sampled value is an identical numerical value, it is determined that currently half code element is effective Value is the identical numerical value.
Optionally, in a specific embodiment of the invention, step B is specially:If more than half sampling in N number of sampled value Value is an identical numerical value, it is determined that the virtual value of current half code element is the identical numerical value, otherwise abandons current half code element.
Optionally, in an of the invention specific embodiment, when N=4, step B is further:
Step B1, if it is an identical numerical value to have 3 sampled values in 4 sampled values, it is determined that current half code element Virtual value is the identical numerical value.
Optionally, in a specific embodiment of the invention, further include after step B:It determines new current half code element, and turns It is continued to execute to the initial position of this method.
The second aspect of the embodiment of the present invention provides a kind of Manchester code sampling processing module, and the Manchester code is adopted Sample processing module includes:Half code element sampling unit and sampled value processing unit, half code element sampling unit and sampled value processing unit Connection;
Half code element sampling unit is used to carry out n times sampling to the current half code element of Manchester code with the first clock frequency, N number of sampled value of current half code element is obtained, the first clock frequency is N × 2 times that Manchester code transmits clock frequency, N > 1;
If sampled value processing unit is used to judge that sampled value more than half in N number of sampled value is an identical numerical value, Determine that the virtual value of current half code element is the identical numerical value.
Optionally, in a specific embodiment of the invention, if sampled value processing unit is specifically used for judging 4 samplings It is an identical numerical value to have 3 sampled values in value, it is determined that the virtual value of current half code element is the identical numerical value.
Optionally, in a specific embodiment of the invention, the Manchester code sampling processing module further includes:Redirect place Manage unit;Processing unit is redirected to connect with half code element sampling unit and sampled value processing unit respectively;Processing unit is redirected to be used for After the virtual value that sample processing unit determines current half code element, new current half code element is determined, so that half code element sampling unit N times sampling is carried out to new current half code element with the first clock frequency, obtains N number of sampled value of new current half code element.
A kind of Manchester code decoder, the Manchester code decoder packet are provided in terms of third of the embodiment of the present invention Include above-mentioned Manchester code sampling processing module;Manchester code sampling processing module is for identified current by it in real time The virtual value of half code element exports.
Optionally, in a specific embodiment of the invention, the Manchester code decoder further includes:Synchronization character detects mould Block and decoder module;Synchronization character detection module is connect with Manchester code sampling processing module and decoder module respectively;
Synchronization character detection module be used for according to Manchester code sampling processing module transfer come continuous half code element it is effective Value detects pre-determined synchronization word, if it is detected that pre-determined synchronization word, it is determined that synchronous Manchester code data flow success;
If decoder module detects pre-determined synchronization word for synchronization character detection module, to graceful thorough after pre-determined synchronization word This special code data stream is decoded.
By above technical scheme as it can be seen that the embodiment of the present invention passes through with the transmission clock frequency of 2N times of Manchester code First clock frequency carries out multiple repairing weld processing to the current half code element of Manchester code, and the possibility for obtaining current half code element is larger Virtual value, the Manchester code to effectively increase decoding end receives accuracy, and accordingly improves the graceful thorough of decoding end This special code decodes accuracy.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in inventive embodiments can also obtain according to these attached drawings for those of ordinary skill in the art Obtain other attached drawings.
Fig. 1 is the Manchester code sampling processing method flow diagram that the embodiment of the present invention one provides.
Fig. 2 is Manchester code sampling processing function structure chart provided by Embodiment 2 of the present invention.
Fig. 3 A are the Manchester code decoder architecture figure that the embodiment of the present invention three provides.
Fig. 3 B are the structure chart of the decoder module 33 in the embodiment of the present invention three.
Fig. 4 is that some electronics for the Manchester code sampling processing method that the application execution embodiment of the present invention one provides are set Standby hardware architecture diagram.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality It is a part of the embodiment of the embodiment of the present invention to apply example only, instead of all the embodiments.Based on the implementation in the embodiment of the present invention Example, the every other embodiment that those of ordinary skill in the art are obtained should all belong to the range of protection of the embodiment of the present invention.
[embodiment one]
Fig. 1 is the Manchester code sampling processing method flow diagram that the embodiment of the present invention one provides.As shown in Figure 1, described Manchester code sampling processing method method includes:
S11 carries out n times sampling to the current half code element of Manchester code with the first clock frequency, obtains current half code element N number of sampled value, the first clock frequency be Manchester code transmit clock frequency N × 2 times, N > 1.
For example, Manchester code is held with transmitting clock frequency 10MHz serial transmissions to sampling (decoding), due to Manchester 2 " half code element " (i.e. 2) constitute 1 all-key member in code, therefore to carry out n times sampling to one " half code element ", then should incite somebody to action First clock frequency set of sampling end is N × 2 times of the transmission clock frequency 10MHz of Manchester code, i.e. the first clock frequency The value of rate is (10M × 2N) Hz.In practical applications, the more accurate of the current half code element of Manchester code come is transmitted in order to obtain N should be set as the integer more than 1, i.e., at least to be sampled 2 times or more to current half code element by true virtual value, usually sample 4 times i.e. It can.Wherein, the first clock frequency can be obtained by being divided to system clock frequency.
S12, if sampled value more than half in N number of sampled value is an identical numerical value, it is determined that current half code element has Valid value is the identical numerical value.
In this step, N number of sampled value is judged, if the sampled value for having more than half is an identical number, The considerations of identical numerical value is set to the virtual value of current half code element, is mainly based upon Great possibility.By taking N=3 as an example, 3 In a sampled value, have 2 be " 1 ", 1 be " 0 ", then by more than half (about 66.67%) the i.e. possibility of accounting rate in sampled value compared with Big " 1 " is determined as the virtual value of current half code element, and " 1 " is the identical numerical value herein.By taking N=4 as an example, sampled at 4 In value, there is that 3 sampled values are " 0 ", 1 sampled value is " 1 ", then by more than half (75%) the i.e. possibility of accounting rate in sampled value compared with Big " 0 " is determined as the virtual value of current half code element, and " 0 " is the identical numerical value herein.It does so, deposits than in the prior art Possibility using accounting rate be less than half numerical value it is much higher as the accuracy of the virtual value of current half code element.
Optionally, if there is no more than half sampled values being an identical numerical value in N number of sampled value, then it is assumed that work as first half The virtual value of symbol malfunctions, and current half code element can be done to discard processing, and can do alarm or the processing that reports an error.If that is, described N number of More than half sampled values is an identical numerical value in sampled value, it is determined that the virtual value of current half code element is the identical numerical value, otherwise Abandon current half code element.By taking N=4 as an example, if having in 4 sampled values, 2 sampled values are " 0 ", 2 sampled values are " 1 ", can be recognized Virtual value for current half code element is " 0 " as the possibility for " 1 " (being 50%), or it is also assumed that current coding Member virtual value be not " 0 " and be not " 1 " possibility it is same.Therefore, in order to ensure current symbol virtual value it is correct Rate should give up current half code element, and can report an error or alert process.
In, N can take the integer more than or equal to 2.Such as when N=2, " more than half " then refer to 2;When N=3, " mistake Half " 2 or 3 are then referred to;When N=4, " more than half " then refer to 3 or 4;When N=5, " more than half " then refer to 3,4 or 5;When N=6, " more than half " then refer to 4,5 or 6;And so on, it can obtain when N is qualified numerical value, the specific number of " more than half " meanings Value.Wherein, if N be 2, it is " more than half " be 2 or N be 3, it is " more than half " be 2, since the number of sampled value is less, although passing through step The accuracy rate of the virtual value of the obtained current half code elements of S12 is higher by much compared with the prior art, but accuracy rate is high not enough;If N >=5, " more than half " to pass through the standard of the virtual value of the obtained current half code elements of step S12 although sampled value number is more for N-1 True rate is higher by much compared with the prior art, but may therefore cause to judge that number is more and increases the processing load of system.So N generally takes 4 preferably, can make the accuracy rate of the virtual value of obtained current half code element compared with prior art height in this way, simultaneously Therefore it excessively will not increase the processing load of system again.
For step S12, below by taking N=4 as an example, the realization side for the virtual value for determining current half code element is discussed in detail Formula:
4 sampled values are judged successively according to sampling sequencing, if encountering satisfaction wherein there are 3 sampled values It is equal when being an identical numerical value, then can directly determine that the virtual value of current half code element is the identical number, referring to following table.Its In, when encountering first three sampled value and being an identical numerical value (by taking " 0 " as an example, when being " 1 " similarly), then can directly will " 0 " really It is set to the virtual value of current half code element, without carrying out judgement processing to the 4th sampled value again, therefore is equivalent to improve and sentence The efficiency of disconnected processing, correspondingly decreases the processing load of system.
1st sampled value 1st sampled value 1st sampled value 1st sampled value The virtual value of current half code element
1 1 1 It does not make a decision 1
1 1 0 1 1
1 0 1 1 1
0 1 1 1 1
0 0 0 It does not make a decision 0
0 0 1 0 0
0 1 0 0 0
1 0 0 0 0
Specifically, in 4 sampled values of current half code element, if 1. preceding 3 sampled values are " 1 ", no matter the 4th adopt Sample value is how many, i.e., no longer carries out judgement processing to the 4th sampled value, directly determines that the virtual value of current half code element is " 1 ".② If preceding 3 sampled values are " 0 ", no matter the 4th sampled value is how many, i.e., no longer carries out judgement processing to the 4th sampled value, Directly determine that the virtual value of current half code element is " 0 ".3. if preceding 3 sampled values are " 1 " " 1 " " 0 ", should be sampled according to the 4th Value judges:If the 4th sampled value is " 1 ", it is determined that the virtual value of current half code element is " 1 ";Optionally, if the 4th Sampled value is " 0 ", then since the accounting rate of " 0 " in sampled value and " 1 " is 50%, it is determined that the virtual value of current half code element goes out Mistake does discard processing to current half code element, and can report an error or alert process.4. if preceding 3 sampled values are " 0 " " 0 " " 1 ", It should be judged according to the 4th sampled value:If the 4th sampled value is " 0 ", determine that the virtual value of current half code element is " 0 ";It is optional Ground, if the 4th sampled value is " 1 ", since the accounting rate of " 0 " in sampled value and " 1 " is 50%, it is determined that current half code element Virtual value error, discard processing is done to current half code element, and can report an error or alert process.5. if preceding 2 sampled values are " 1 " " 0 " should then be judged according to the 3rd, the 4th sampled value:When the 3rd and the 4th sampled value are " 1 ", just determination is worked as The virtual value of preceding half code element is " 1 ";When the 3rd and the 4th sampled value are " 0 ", just the virtual value of determining current half code element is “0”;Otherwise then since the accounting rate of " 0 " in sampled value and " 1 " is 50%, it is thus determined that the virtual value of current half code element goes out Mistake does discard processing to current half code element, and can report an error or alert process.6. if preceding 2 sampled values are " 0 " " 1 ", root is answered Judged according to the 3rd, the 4th sampled value:When the 3rd and the 4th sampled value are " 1 ", current half code element is just determined Virtual value is " 1 ";When the 3rd and the 4th sampled value are " 0 ", just the virtual value of determining current half code element is " 0 ";Otherwise then Since the accounting rate of " 0 " in sampled value and " 1 " is 50%, it is thus determined that the virtual value error of current half code element, to working as first half Symbol does discard processing, and can report an error or alert process.Wherein, the 1. with the 2. kind judge processing mode due to not needing pair 4th sampled value is judged, therefore treatment effeciency wants higher.
Optionally, further include after step S12:
S13 determines new current half code element, and goes to step S11 and continue to execute.
After being handled current half code element according to step S11, S12, a new current half code element should be determined, such as The adjacent half code element that next transmission of current half code element comes can be determined as new current half code element, and gone to step S11 is continued to execute.Thus, the virtual value for transmitting each half code element come can be handled, it is graceful thorough to improve Reliability, the accuracy of this special code.
The Manchester code sampling processing method that the present embodiment one provides, when by transmission with 2N times of Manchester code First clock frequency of clock frequency carries out multiple repairing weld processing to the current half code element of Manchester code, and obtain current half code element can The larger virtual value of energy property, the Manchester code to effectively increase decoding end receives accuracy, and accordingly improves decoding The Manchester code at end decodes accuracy.
[embodiment two]
Fig. 2 is Manchester code sampling processing function structure chart provided by Embodiment 2 of the present invention.As shown in Fig. 2, described Manchester code sampling processing module includes:Half code element sampling unit 21 and sampled value processing unit 22.Half code element sampling unit 21 connect with sampled value processing unit 22.
Half code element sampling unit 21 is used to carry out n times to the current half code element of Manchester code with the first clock frequency to adopt Sample, obtains N number of sampled value of current half code element, and the first clock frequency is N × 2 times that Manchester code transmits clock frequency, N > 1。
If sampled value processing unit 22 is used to judge that sampled value more than half in N number of sampled value is an identical numerical value, Then determine that the virtual value of current half code element is the identical numerical value.
Optionally, if sampled value processing unit 22 is additionally operable to judge that more than half sampled values is not present in N number of sampled value When being an identical numerical value, then current half code element is abandoned.
Optionally, 4 N.
Optionally, if sampled value processing unit 22 is specifically used for judging to have in 4 sampled values 3 sampled values being one Identical numerical value, it is determined that the virtual value of current half code element is the identical numerical value.
Optionally, sampled value processing unit 22 is further used for according to sampling sequencing successively to 4 sampled values Judged, met when there are 3 sampled values to be an identical numerical value in 4 sampled values if meeting, directly determined and work as first half The virtual value of symbol is the identical numerical value.
Optionally, the Manchester code sampling processing module further includes redirecting processing unit 23.Redirect processing unit 23 It is connect respectively with half code element sampling unit 21 and sampled value processing unit 22.Processing unit 23 is redirected in sample processing unit After 22 determine the virtual value of current half code element, new current half code element is determined, so that half code element sampling unit is with the first clock frequency Rate carries out n times sampling to new current half code element, obtains N number of sampled value of new current half code element.
For example, next adjacent half code element of current half code element can be determined as new to work as first half code by redirecting processing unit 23 Member is handled by sampled value processing unit 21.
The Manchester code sample processing unit that the present embodiment two provides is particularly used in described in execution embodiment one Manchester code sampling processing method, realization principle, function, purposes etc. are similar with embodiment one, and details are not described herein.
[embodiment three]
Fig. 3 A are the Manchester code decoder architecture figure that the embodiment of the present invention three provides.As shown in Figure 3A, described graceful thorough This special code decoder includes the Manchester code sampling processing module 31 in embodiment two.Manchester code sampling processing module 31 For the virtual value of its identified current half code element to be exported in real time.
Optionally, Manchester code decoder further includes synchronization character detection module 32 and decoder module 33.Synchronization character is examined Module 32 is surveyed to connect with Manchester code sampling processing module 31 and decoder module 33 respectively.
Manchester code sampling processing module 31 in real time exports the virtual value of its identified current half code element to same Walk word detection module.
Synchronization character detection module 32 be used for according to Manchester code sampling processing module 31 transmit come continuous half code element RMS to DC goes out pre-determined synchronization word, if it is detected that pre-determined synchronization word, it is determined that synchronous Manchester code data flow success.
Decoder module 33 is used for after synchronization character detection module 32 detects pre-determined synchronization word, after pre-determined synchronization word Manchester code data flow is decoded.
As shown in Figure 3B, optionally, decoder module 33 includes:Character conversion unit 33A and CRC (Cyclic Redundancy Check, cyclic redundancy check) detection unit 33B.Character conversion unit 33A connects with CRC detection units 33B It connects.
Character conversion unit 33A is used for for turning into line character to the Manchester code data flow after pre-determined synchronization word Processing is changed such as serioparallel exchange.
CRC detection units 33B is used for carrying out cyclic redundancy school by the data obtained by character conversion unit 33A conversion process It tests, if verifying successfully, exports corresponding effective word.
Optionally, the Manchester code decoder further includes frequency division module 34.Frequency division module 34 is adopted with Manchester code Sample processing module 31 connects.
Frequency division module 34 is for dividing system clock, to provide first to Manchester code sampling processing module 31 Clock frequency.
Optionally, the Manchester code decoder further includes digit counter module 35.Position count processing module 35 with it is same Word detection module 32 is walked to connect.
Digit counter module 35 is used for after synchronization character detection module detects pre-determined synchronization word, to the pre-determined synchronization word Manchester code data flow later is counted.
The Manchester code decoder that the present embodiment three provides, by the Manchester code sampling processing module to graceful thorough This special code carries out sampling processing, has obtained the higher Manchester code of reliability, accuracy, and then may make the decoder to graceful The decoding accuracy of Che Site codes further increases.
Fig. 4 is that some electronics for the Manchester code sampling processing method that the application execution embodiment of the present invention one provides are set Standby hardware architecture diagram.As shown in figure 4, the electronic equipment includes:One or more processors 410 and memory 420, In Fig. 4 by taking a processor 410 as an example.
The equipment for executing the Manchester code sampling processing method can also include:Input unit 430 and output fill Set 440.
Processor 410, memory 420, input unit 430 and output device 440 can pass through bus or other modes It connects, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the Manchester code sampling processing in the embodiment of the present application Corresponding program instruction/the module of method.Processor 410 by operation be stored in non-volatile software program in memory 420, Instruction and module, the various function application to execute server and data processing, that is, realize that the Manchester code is adopted Sample processing method.
Memory 420 may include storing program area and storage data field, wherein storing program area can store operation system System, the required application program of at least one function;Storage data field can store according to embodiments of the present invention two or three offers Manchester code sampling processing module uses created data etc..In addition, memory 420 may include high random access Memory 420, can also include nonvolatile memory 420, a for example, at least magnetic disk storage 420, flush memory device or Other non-volatile solid state memories 420.In some embodiments, it includes remote relative to processor 410 that memory 420 is optional The memory 420 of journey setting, these remote memories 420 can pass through network connection to the Manchester code sampling processing mould Block.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can receive the number or character information of input, and generate and the code information handling device User setting and function control related key signals input.Input unit 430 may include pressing the equipment such as module.
One or more of modules are stored in the memory 420, when by one or more of processors When 410 execution, the Manchester code sampling processing method is executed.
The said goods can perform the method that the corresponding embodiment of the application is provided, and have the corresponding function module of execution method And advantageous effect.The not technical detail of detailed description in the present embodiment, reference can be made to the side that the corresponding embodiment of the application is provided Method.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind of equipment belongs to the scope of personal computer, there is calculating and processing work( Can, generally also have mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind of equipment can show and play multimedia content.Such equipment includes:Audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server include that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein the module illustrated as separating component can It is physically separated with being or may not be, the component shown as module may or may not be physics mould Block, you can be located at a place, or may be distributed on multiple network modules.It can be selected according to the actual needs In some or all of module achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be expressed in the form of software products in other words, should Computer software product can store in a computer-readable storage medium, the computer readable recording medium storing program for performing include for Any mechanism of the readable form storage of computer (such as computer) or transmission information.For example, machine readable media includes only Read memory (ROM), random access memory (RAM), magnetic disk storage medium, optical storage media, flash medium, electricity, light, The transmitting signal (for example, carrier wave, infrared signal, digital signal etc.) etc. of sound or other forms, which includes Some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes respectively Method described in certain parts of a embodiment or embodiment.
Certainly, implementing any technical solution of the embodiment of the present invention must be not necessarily required to reach simultaneously above all excellent Point.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described the invention in detail with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:It is still Either which part or all technical features can be carried out so that technical scheme described in the above embodiments is modified Equivalent replacement;And these modifications or replacements, it does not separate the essence of the corresponding technical solution various embodiments of the present invention technical side The range of case.

Claims (10)

1. a kind of Manchester code sampling processing method, which is characterized in that including:
A n times sampling) is carried out to the current half code element of Manchester code with the first clock frequency, the N number of of current half code element is obtained and adopts Sample value, the first clock frequency are N × 2 times that Manchester code transmits clock frequency, N > 1;
B) if sampled value more than half in N number of sampled value is an identical numerical value, it is determined that currently the virtual value of half code element is The identical numerical value.
2. Manchester code sampling processing method according to claim 1, which is characterized in that step B is specially:If described More than half sampled values is an identical numerical value in N number of sampled value, it is determined that the virtual value of current half code element is the identical numerical value, no Then abandon current half code element.
3. Manchester code sampling processing method according to claim 1, which is characterized in that when N=4, step B is further For:
B1) if it is an identical numerical value to have 3 sampled values in 4 sampled values, it is determined that currently the virtual value of half code element is The identical numerical value.
4. Manchester code sampling processing method according to claim 3, which is characterized in that step B1 is specially:According to Sampling sequencing successively judges 4 sampled values, if meeting to meet in 4 sampled values has 3 sampled values equal For an identical numerical value when, then directly determine current half code element virtual value be the identical numerical value.
5. Manchester code sampling processing method according to claim 1 or 2, which is characterized in that also wrapped after step B It includes:Determine new current half code element, and the initial position for going to this method continues to execute.
6. a kind of Manchester code sampling processing module, which is characterized in that including:Half code element sampling unit and sampled value processing are single Member, half code element sampling unit are connect with sampled value processing unit;
Half code element sampling unit is used to carry out n times sampling to the current half code element of Manchester code with the first clock frequency, obtains N number of sampled value of current half code element, the first clock frequency are N × 2 times that Manchester code transmits clock frequency, N > 1;
If sampled value processing unit is for judging that sampled value more than half in N number of sampled value is an identical numerical value, it is determined that The virtual value of current half code element is the identical numerical value.
7. Manchester code sampling processing module according to claim 6, which is characterized in that sampled value processing unit is specific If for judging that it is an identical numerical value to have 3 sampled values in 4 sampled values, it is determined that currently the virtual value of half code element is The identical numerical value.
8. Manchester code sampling processing module according to claim 6, which is characterized in that further include:It is single to redirect processing Member;Processing unit is redirected to connect with half code element sampling unit and sampled value processing unit respectively;Processing unit is redirected for adopting After sample processing unit determines the virtual value of current half code element, new current half code element is determined, so that half code element sampling unit is with the One clock frequency carries out n times sampling to new current half code element, obtains N number of sampled value of new current half code element.
9. a kind of Manchester code decoder, which is characterized in that including such as claim 6~8 any one of them Manchester Code sampling processing module;Manchester code sampling processing module is in real time by the virtual value of its identified current half code element Output.
10. Manchester code decoder according to claim 9, which is characterized in that further include:Synchronization character detection module with And decoder module;Synchronization character detection module is connect with Manchester code sampling processing module and decoder module respectively;
Synchronization character detection module be used for according to Manchester code sampling processing module transfer come continuous half code element virtual value inspection Pre-determined synchronization word is measured, if it is detected that pre-determined synchronization word, it is determined that synchronous Manchester code data flow success;
If decoder module detects pre-determined synchronization word for synchronization character detection module, to Manchester after pre-determined synchronization word Code data stream is decoded.
CN201710187377.6A 2017-03-27 2017-03-27 Manchester code sampling processing method, module and decoder Pending CN108667757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710187377.6A CN108667757A (en) 2017-03-27 2017-03-27 Manchester code sampling processing method, module and decoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710187377.6A CN108667757A (en) 2017-03-27 2017-03-27 Manchester code sampling processing method, module and decoder

Publications (1)

Publication Number Publication Date
CN108667757A true CN108667757A (en) 2018-10-16

Family

ID=63785352

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710187377.6A Pending CN108667757A (en) 2017-03-27 2017-03-27 Manchester code sampling processing method, module and decoder

Country Status (1)

Country Link
CN (1) CN108667757A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861692A (en) * 2019-03-04 2019-06-07 北京瑞源芯科技有限公司 The coding/decoding method and device of high speed Manchester's code
CN114826276A (en) * 2022-06-29 2022-07-29 青岛鼎信通讯股份有限公司 Manchester decoding method and device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102735946A (en) * 2012-07-05 2012-10-17 山东华芯半导体有限公司 Method for eliminating interference during signal sampling
CN103812725A (en) * 2014-01-21 2014-05-21 中国人民解放军信息工程大学 Signal processing method, device and system
CN104461972A (en) * 2013-09-12 2015-03-25 华为技术有限公司 Method and equipment for data signal sampling
CN105281776A (en) * 2014-07-08 2016-01-27 南车株洲电力机车研究所有限公司 Manchester decoding device capable of carrying out error correction and method thereof
CN205545212U (en) * 2015-12-10 2016-08-31 重庆川仪自动化股份有限公司 Manchester code's codec based on FPGA

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102735946A (en) * 2012-07-05 2012-10-17 山东华芯半导体有限公司 Method for eliminating interference during signal sampling
CN104461972A (en) * 2013-09-12 2015-03-25 华为技术有限公司 Method and equipment for data signal sampling
CN103812725A (en) * 2014-01-21 2014-05-21 中国人民解放军信息工程大学 Signal processing method, device and system
CN105281776A (en) * 2014-07-08 2016-01-27 南车株洲电力机车研究所有限公司 Manchester decoding device capable of carrying out error correction and method thereof
CN205545212U (en) * 2015-12-10 2016-08-31 重庆川仪自动化股份有限公司 Manchester code's codec based on FPGA

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘燕: "地震数据采集的数传及其编码技术研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861692A (en) * 2019-03-04 2019-06-07 北京瑞源芯科技有限公司 The coding/decoding method and device of high speed Manchester's code
CN114826276A (en) * 2022-06-29 2022-07-29 青岛鼎信通讯股份有限公司 Manchester decoding method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US9792812B1 (en) Method for correcting electricity meter readings
CN105187070B (en) A kind of manchester encoded signals coding/decoding method and device
CN104090912A (en) Information pushing method and device
CN101702639B (en) Check value calculation method and device of cyclic redundancy check
CN104243590A (en) Resource object recommendation method and device
CN106658597A (en) Data transmitting method, sending device and receiving device
CN104081701A (en) Communication method, system and device for optical network system
CN108667757A (en) Manchester code sampling processing method, module and decoder
CN101136901B (en) Virable-resolution processing of frame-based data
CN109977415A (en) A kind of text error correction method and device
CN103812610B (en) A kind of data communications method, terminal and information safety devices
US20080222463A1 (en) Apparatus, method and product for testing communications components
CN201751898U (en) 1553B bus test device
CN104252480A (en) Method and device for audio information retrieval
CN109412999B (en) Mapping method and device for probability modeling
CN102739705B (en) Data transmission system and method
CN201751896U (en) ARINC429 bus testing device
CN103747284A (en) Video pushing method and server
CN108829807A (en) A kind of public sentiment merging method, device, server and storage medium
CN104471888B (en) Processing method, equipment and the system of free block IDLE in block of burst data
CN105404529A (en) Popup method, device and system of operation system popup for reinstallation
CN102281171B (en) Loop detection method and equipment for two-layer network
CN103975387A (en) Apparatus and method for combinatorial coding of signals
CN101001089B (en) Money search method and device in error correction decode
CN104168206B (en) Adapter gateway load balancing control method, device and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181016