CN103811022B - Method and device for waveform analysis - Google Patents

Method and device for waveform analysis Download PDF

Info

Publication number
CN103811022B
CN103811022B CN201410054922.0A CN201410054922A CN103811022B CN 103811022 B CN103811022 B CN 103811022B CN 201410054922 A CN201410054922 A CN 201410054922A CN 103811022 B CN103811022 B CN 103811022B
Authority
CN
China
Prior art keywords
cycle
pulse width
bit
wave
waveform
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.)
Active
Application number
CN201410054922.0A
Other languages
Chinese (zh)
Other versions
CN103811022A (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.)
Tendyron Technology Co Ltd
Original Assignee
Tendyron 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 Tendyron Technology Co Ltd filed Critical Tendyron Technology Co Ltd
Priority to CN201410054922.0A priority Critical patent/CN103811022B/en
Publication of CN103811022A publication Critical patent/CN103811022A/en
Priority to PCT/CN2015/070739 priority patent/WO2015124047A1/en
Application granted granted Critical
Publication of CN103811022B publication Critical patent/CN103811022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04KSECRET COMMUNICATION; JAMMING OF COMMUNICATION
    • H04K1/00Secret communication
    • H04K1/003Secret communication by varying carrier frequency at or within predetermined or random intervals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/34User authentication involving the use of external additional devices, e.g. dongles or smart cards
    • G06F21/35User authentication involving the use of external additional devices, e.g. dongles or smart cards communicating wirelessly

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The invention provides a method and a device for waveform analysis. The method includes that sinusoidal waveforms are received, and comprise a sinusoidal waves which are in cycle Ta and used for representing bits 0 and b sinusoidal waves which are in cycle Tb and used for representing bits 1, cycle Ta is not equal to cycle Tb, and a and b are positive integers; the sinusoidal waveforms are sampled to obtain square waveforms; a pulse width Mi between an i<th> rising edge and an i<th> falling edge in the square waveforms is obtained, and i is a positive integer which is smaller than or equal to the total of a and b; the pulse width Mi is compared with a half of an obtained cycle T1 in advance and a half of an obtained cycle T0 in advance to obtain a comparative result; according to the comparative result, bits represented by the square waveforms corresponding to the pulse width Mi are determined, if the pulse width Mi is equal to a half of the cycle T1, the square waveforms corresponding to the pulse width Mi represent the bits 1, and if the pulse width Mi is equal to a half of the cycle T0, the square waveforms corresponding to the pulse width Mi represent the bits 0.

Description

A kind of method and apparatus of parsing waveform
Technical field
The present invention relates to electronic technology field, more particularly to a kind of parsing waveform display method and device.
Background technology
Intelligent cipher key equipment is the safety equipment with signature function and/or dynamic password systematic function.In intelligent key When the mobile terminals such as equipment and mobile phone, panel computer are communicated by audio interface, after mobile terminal output waveform, intelligence Key devices can sample to the waveform for receiving, and parse the corresponding bit of waveform.
And a kind of scheme of parsing audio signal corresponding waveform is not provided in prior art.
The content of the invention
The present invention provides a kind of method and apparatus of parsing waveform, and main purpose is to provide transmitted by audio interface To the parsing scheme of waveform during waveform.
A kind of method of parsing waveform, including:Sine waveform is received, wherein the sine waveform includes a cycle The sine wave for representing bit 0 for T0 and b cycle for T1 the sine wave for representing bit 1, wherein, the He of cycle T 0 Cycle T 1 is unequal, and a and b is positive integer;The sine waveform is sampled, square-wave waveform is obtained;Obtain the square wave Pulse width Mi in waveform between i-th rising edge and i-th trailing edge, wherein i are the summation less than or equal to a and b Positive integer;Pulse width Mi is compared with the half of the advance cycle T 1 for obtaining and the half of the cycle T 0 for obtaining in advance, Obtain comparative result;According to comparative result, the bit that the corresponding square wave of pulse width Mi is represented is determined;Wherein according to comparing knot Really, the bit that the corresponding square wave of pulse width Mi is represented is determined, including:If pulse width Mi is equal to the one of cycle T 1 Half, then the corresponding square wave of pulse width Mi represents bit 1;If pulse width Mi is equal to the half of cycle T 0, pulse The corresponding square waves of width Mi represent bit 0.
Wherein, it is described according to comparative result, determine the bit that the square wave of pulse width Mi is represented, including:If the arteries and veins The half that width Mi is not equal to cycle T 1 is rushed, is also not equal to the half of cycle T 0, judge pulse width Mi whether advance In the range of error of the cycle T 1 of acquisition or the half of cycle T 0, if pulse width Mi is in the error of the half of cycle T 1 In the range of, it is determined that the corresponding square wave of pulse width Mi represents bit 1, if pulse width Mi is in the half of cycle T 0 In range of error, it is determined that the corresponding square wave of pulse width Mi represents bit 0.
A kind of method of parsing waveform, including:Sine waveform is received, wherein the sine waveform includes a cycle The sine wave for representing bit 0 for T0 and b cycle for T1 the sine wave for representing bit 1, wherein, the He of cycle T 0 Cycle T 1 is unequal, and a and b is positive integer;The sine waveform is sampled, square-wave waveform is obtained;Obtain the square wave Pulse width Mi in waveform between i-th rising edge and i+1 rising edge, or, obtain i-th in the square-wave waveform Pulse width Ni between trailing edge and i+1 trailing edge, wherein i are the positive integer of the summation less than or equal to a and b;Will Each pulse width for obtaining is compared respectively with the advance cycle T 1 for obtaining and the cycle T 0 for obtaining in advance, obtains comparing knot Really;According to comparative result, the bit that the corresponding square wave of each pulse width is represented is determined;Wherein, according to comparative result, it is determined that often The bit that the corresponding square wave of individual pulse width is represented, including:If pulse width Mi is equal to cycle T 1, pulse width Mi Corresponding square wave represents bit 1;If pulse width Mi is equal to cycle T 0, the corresponding square wave of pulse width Mi represents ratio Special 0.
Wherein, it is described according to comparative result, determine the bit that the corresponding square wave of each pulse width is represented, including:If Some pulse width for obtaining is not equal to cycle T 1, is also not equal to cycle T 0, judges that described some pulse width is no pre- In the cycle T 1 for first obtaining or the range of error of cycle T 0, if a certain pulse width Mi is in the range of error of cycle T 1 It is interior, it is determined that the corresponding square wave of described some pulse width represents bit 1, if a certain pulse width Mi is in cycle T 0 Range of error in, it is determined that the corresponding square wave of described some pulse width Mi represents bit 0.
Wherein, after pulse width Mi or pulse width Ni is obtained, by each pulse width for obtaining respectively with advance Before the cycle T 1 for first obtaining and the cycle T 0 for obtaining in advance are compared, methods described also includes:Judge pulse width Mi and Whether pulse width Ni is between the cycle T 0 and the cycle T 1;If pulse width Mi is in the cycle T 0 and the week Between phase T1, then using pulse width Ni as the pulse width used when being compared with cycle T 1 and cycle T 0;If arteries and veins Width Ni is rushed between the cycle T 0 and cycle T 1, then using pulse width Mi as be compared with cycle T 1 and cycle T 0 when The pulse width for being used.
A kind of device of parsing waveform, including:Receiver module, for receiving sine waveform, wherein the sine wave ripple Shape includes the sine wave for representing bit 1 of the sine wave for representing bit 0 that a cycle is T0 and b cycle for T1, Wherein, cycle T 0 and cycle T 1 are unequal, and a and b is positive integer;Sampling module, for sampling to the sine waveform, Obtain square-wave waveform;Acquisition module, for obtaining the square-wave waveform in arteries and veins between i-th rising edge and i-th trailing edge Width Mi is rushed, wherein i is the positive integer of the summation less than or equal to a and b;Comparison module, for by pulse width Mi with it is advance The half of the half of the cycle T 1 of acquisition and the cycle T 0 for obtaining in advance is compared, and obtains comparative result;Determining module, is used for According to comparative result, the bit that the corresponding square wave of pulse width Mi is represented is determined;Wherein, if the determining module is for described Pulse width Mi is equal to the half of cycle T 1, then the corresponding square wave of pulse width Mi represents bit 1;If pulse width Mi Equal to the half of cycle T 0, then the corresponding square wave of pulse width Mi represents bit 0.
Wherein, the determining module, including:Judging unit, if being not equal to cycle T 1 for pulse width Mi Whether half, is also not equal to the half of cycle T 0, judge pulse width Mi in the cycle T 1 or cycle T 0 for obtaining in advance In the range of error of half;Determining unit, if for pulse width Mi in the range of error of the half of cycle T 1, Determine that the corresponding square wave of pulse width Mi represents bit 1, if pulse width Mi is in the range of error of the half of cycle T 0 It is interior, it is determined that the corresponding square wave of pulse width Mi represents bit 0.
A kind of device of parsing waveform, including:Receiver module, for receiving sine waveform, wherein the sine wave ripple Shape includes the sine wave for representing bit 1 of the sine wave for representing bit 0 that a cycle is T0 and b cycle for T1, Wherein, cycle T 0 and cycle T 1 are unequal, and a and b is positive integer;Sampling module, for sampling to the sine waveform, Obtain square-wave waveform;Acquisition module, for obtaining the square-wave waveform between i-th rising edge and i+1 rising edge Pulse width Mi, or, pulse width Ni between i-th trailing edge and i+1 trailing edge in the square-wave waveform is obtained, Wherein i is the positive integer of the summation less than or equal to a and b;Comparison module, for by each pulse width for obtaining respectively with advance The cycle T 1 for first obtaining and the cycle T 0 for obtaining in advance are compared, and obtain comparative result;Determining module, for according to comparing knot Really, the bit that the corresponding square wave of each pulse width is represented is determined;Wherein, if the determining module is used for the pulse width Mi is equal to cycle T 1, then the corresponding square wave of pulse width Mi represents bit 1;If pulse width Mi is equal to cycle T 0, The corresponding square wave of pulse width Mi represents bit 0.
Wherein, the determining module includes:Judging unit, if some pulse width for obtaining is not equal to the cycle T1, is also not equal to cycle T 0, judges the no cycle T 1 or the error model of cycle T 0 in advance acquisition of described some pulse width In enclosing;Determining unit, if for a certain pulse width Mi in the range of error of cycle T 1, it is determined that it is described some The corresponding square wave of pulse width represents bit 1, if a certain pulse width Mi is in the range of error of cycle T 0, it is determined that The corresponding square wave of described some pulse width Mi represents bit 0.
Wherein, described device also includes:Judge module, for after pulse width Mi or pulse width Ni is obtained, Before each pulse width for obtaining is compared respectively with the advance cycle T 1 for obtaining and the cycle T 0 for obtaining in advance, judge Whether pulse width Mi and pulse width Ni are between the cycle T 0 and the cycle T 1;Selecting module, if for pulse Width Mi between the cycle T 0 and the cycle T 1, then using pulse width Ni as being compared with cycle T 1 and cycle T 0 When the pulse width that used;If pulse width Ni is between the cycle T 0 and cycle T 1, using pulse width Mi as The pulse width used when being compared with cycle T 1 and cycle T 0.
The embodiment of the method that the present invention is provided, when by transmitting the waveform of different cycles to represent bit 0 and 1, passes through Obtain the pulse width of square-wave waveform to determine the bit that square wave is represented, realize the parsing to waveform.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to use needed for embodiment description Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 provides a kind of schematic flow sheet of the embodiment of the method for parsing waveform for the present invention;
Fig. 2 is the method schematic diagram that bit is determined in the embodiment of the present invention one;
Fig. 3 provides the schematic flow sheet of the embodiment of the method for another kind of parsing waveform for the present invention;
Fig. 4 is the method schematic diagram that bit is determined in the embodiment of the present invention two;
Fig. 5 provides a kind of structural representation of the device embodiment of parsing waveform for the present invention;
Fig. 6 provides the structural representation of the device embodiment of another kind of parsing waveform for the present invention.
Specific embodiment
With reference to the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Based on this Inventive embodiment, the every other enforcement that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to protection scope of the present invention.
The embodiment of the present invention is described in further detail below in conjunction with accompanying drawing.
Embodiment one
Fig. 1 provides a kind of schematic flow sheet of the embodiment of the method for parsing waveform for the present invention.Embodiment of the method shown in Fig. 1 Including:
Step 101, reception sine waveform, wherein the sine waveform includes a cycle comparing for representing for T0 Special 0 sine wave and b cycle for T1 the sine wave for representing bit 1, wherein, cycle T 0 and cycle T 1 are unequal, a with B is positive integer.
Wherein, the sine waveform is that mobile terminal is sent by audio interface, and intelligent cipher key equipment is connect by audio frequency Mouth is connected with mobile terminal, realizes receiving the purpose of the sine waveform.The sine waveform is including two different cycles just String ripple, respectively representing bit 1 and bit 0.
Step 102, the sine waveform is sampled, obtain square-wave waveform.
Wherein, intelligent cipher key equipment is sampled according to the local sampling period to the sine waveform for receiving, according to The sampled result of sampling point position, obtains square-wave waveform.
Pulse width Mi in step 103, the acquisition square-wave waveform between i-th rising edge and i-th trailing edge, its Middle i is the positive integer of the summation less than or equal to a and b.
Wherein, the detection of rising edge and trailing edge can detect that its pulse width can be according to ripple by level change The clock that shape is used is determining, and pulse width Mi between i-th rising edge and i-th trailing edge represents a square wave week The half of phase.This step, can get the pulse width of the summation that number is a and b.
Step 104, the half of the cycle T 1 for obtaining by pulse width Mi and in advance and the half of the cycle T 0 for obtaining in advance It is compared, obtains comparative result;
Wherein, cycle T 0 and cycle T 1 are obtained in the following way:
The waveform of wherein described square-wave waveform waveform successively including test data and valid data, wherein test data Bit order represented by waveform is to consult in advance, and intelligent cipher key equipment can obtain test data according to the bit order Waveform in bit 0 and the corresponding cycle of bit 1, further according to bit in test data 0 and the corresponding cycle of bit 1, obtain institute State bit 0 and the corresponding cycle of bit 1 in square-wave waveform.
Step 105, according to comparative result, determine the bit that the corresponding square wave of pulse width Mi is represented.
Fig. 2 is the method schematic diagram that bit is determined in the embodiment of the present invention one.Flow process includes shown in Fig. 2:
Step 1051, judge that whether pulse width Mi is equal to the half of cycle T 1 or the half of cycle T 0;
If pulse width Mi is equal in the half of the half of cycle T 1 and cycle T 0, execution step 1052 and step 1053;
If step 1052, pulse width Mi are equal to the half of cycle T 1, the corresponding square wave table of pulse width Mi Show bit 1;
If step 1053, pulse width Mi are equal to the half of cycle T 0, the corresponding square wave table of pulse width Mi Show bit 0.
If step 1054, pulse width Mi are not equal to the half of cycle T 1, also it is not equal to the half of cycle T 0, sentences Whether pulse width Mi of breaking is in the range of error of the advance cycle T 1 for obtaining or the half of cycle T 0;
If step 1055, pulse width Mi are in the range of error of the half of cycle T 1, it is determined that pulse width The corresponding square waves of Mi represent bit 1;
If step 1056, pulse width Mi are in the range of error of the half of cycle T 0, it is determined that pulse width The corresponding square waves of Mi represent bit 0.
Wherein, the range of error is caused by the operation such as propagation delay time.It is not equal to appointing for T0 and T1 in pulse width Mi During one value of meaning, by judging that the pulse width whether in the range of error for allowing, can effectively parse square-wave waveform table The bit for showing, it is ensured that the complete parsing of square wave.
The embodiment of the method that the present invention is provided, when by transmitting the waveform of different cycles to represent bit 0 and 1, passes through Obtain pulse width Mi between i-th rising edge and i-th trailing edge to determine the bit that square wave is represented, realize to waveform Parsing.
Embodiment two
Fig. 2 provides the schematic flow sheet of the embodiment of the method for another kind of parsing waveform for the present invention.Method shown in Fig. 2 is implemented Example includes:
Step 201 and step 202 are identical with step 101 and step 102, and here is omitted.
Pulse width Mi in step 203, the acquisition square-wave waveform between i-th rising edge and i+1 rising edge, Or, obtain pulse width Ni between i-th trailing edge and i+1 trailing edge in the square-wave waveform, wherein i be less than Or the positive integer of the summation equal to a and b;
Wherein, the pulse width table between pulse width or adjacent two trailing edges between two adjacent rising edges Show a square-wave cycle.This step, can get the pulse width of the summation that number is a and b.Wherein select rising edge or under Drop edge depends on the level of the original position of a cycle of the square-wave waveform, if the electricity of the original position of a cycle Put down as rising edge, then the pulse width between adjacent two rising edge is obtained, if the electricity of the original position of a cycle Put down as trailing edge, then obtain the pulse width between adjacent two trailing edge.
Step 204, by each pulse width for obtaining respectively with the advance cycle T 1 for obtaining and the cycle T 0 for obtaining in advance It is compared, obtains comparative result.
Wherein, cycle T 0 and cycle T 1 are obtained in the following way:
The waveform of wherein described square-wave waveform waveform successively including test data and valid data, wherein test data Bit order represented by waveform is to consult in advance, and intelligent cipher key equipment can obtain test data according to the bit order Waveform in bit 0 and the corresponding cycle of bit 1, further according to bit in test data 0 and the corresponding cycle of bit 1, obtain institute State bit 0 and the corresponding cycle of bit 1 in square-wave waveform.
Step 205, according to comparative result, determine the bit that the corresponding square wave of each pulse width is represented.
Fig. 4 is the method schematic diagram that bit is determined in the embodiment of the present invention two.Flow process includes shown in Fig. 4:
Step 2051, judge that whether pulse width Mi is equal to the half of cycle T 1 or the half of cycle T 0;
If pulse width Mi is equal in the half of the half of cycle T 1 and cycle T 0, execution step 2052 and step 2053;
If step 2052, pulse width Mi are equal to cycle T 1, the corresponding square wave of pulse width Mi represents bit 1;
If step 2053, pulse width Mi are equal to cycle T 0, the corresponding square wave of pulse width Mi represents bit 0。
Step 2054, some pulse width are not equal to cycle T 1, are also not equal to cycle T 0, judge described some pulse Width is no in the range of error of the advance cycle T 1 for obtaining or cycle T 0;
If step 2055, a certain pulse width Mi are in the range of error of cycle T 1, it is determined that it is described some The corresponding square wave of pulse width represents bit 1;
If step 2056, a certain pulse width Mi are in the range of error of cycle T 0, it is determined that it is described some The corresponding square wave of pulse width Mi represents bit 0.
Wherein, the range of error is caused by the operation such as propagation delay time.It is not equal to appointing for T0 and T1 in pulse width Mi During one value of meaning, by judging that the pulse width whether in the range of error for allowing, can effectively parse square-wave waveform table The bit for showing, it is ensured that the complete parsing of square wave.
Optionally, after pulse width Mi or pulse width Ni is obtained, by each pulse width for obtaining respectively with Before the cycle T 1 for obtaining in advance and the cycle T 0 for obtaining in advance are compared, methods described also includes:
Judge pulse width Mi and pulse width Ni whether between the cycle T 0 and the cycle T 1;
If pulse width Mi is between the cycle T 0 and the cycle T 1, using pulse width Ni as with cycle T 1 The pulse width used when being compared with cycle T 0;If pulse width Ni is between the cycle T 0 and cycle T 1, Using pulse width Mi as the pulse width used when being compared with cycle T 1 and cycle T 0.
Used pulse width is determined for further accurate, by judging the pulse width whether in the two values It is interior, carry out the pulse width of debug, so as to obtain how correctly obtaining a square-wave cycle, improve decoding precision.
The embodiment of the method that the present invention is provided, when by transmitting the waveform of different cycles to represent bit 0 and 1, passes through Obtain the pulse width of a square-wave cycle to determine the bit that square wave is represented, realize the parsing to waveform.With embodiment one not With the present embodiment is that the bit that square-wave waveform is represented is obtained with the pulse width of a cycle, the arteries and veins with half period Rush width to obtain the bit that square-wave waveform is represented, it is determined that bit it is more accurate.
Embodiment three
A kind of structural representation of the device embodiment of parsing waveform that Fig. 3 is provided for the present invention.Embodiment illustrated in fig. 3 bag Include:
Receiver module 301, for receiving sine waveform, wherein the sine waveform includes use of a cycle for T0 In the sine wave for representing bit 1 that the sine wave and b cycle for representing bit 0 is T1, wherein, cycle T 0 and cycle T 1 are not Equal, a and b is positive integer;
Sampling module 302, is connected with receiver module 301, for sampling to the sine waveform, obtains square wave ripple Shape;
Acquisition module 303, is connected with sampling module 302, for obtaining the square-wave waveform in i-th rising edge and i-th Pulse width Mi between individual trailing edge, wherein i are the positive integer of the summation less than or equal to a and b;
Comparison module 304, is connected with acquisition module 303, for obtain by pulse width Mi and in advance the one of cycle T 1 Half is compared with the half of the cycle T 0 for obtaining in advance, obtains comparative result;
Determining module 305, is connected with comparison module 304, for according to comparative result, determining the corresponding side of pulse width Mi The bit that wave table shows;
Wherein, if the determining module is used for the half that pulse width Mi is equal to cycle T 1, pulse width Mi Corresponding square wave represents bit 1;If pulse width Mi is equal to the half of cycle T 0, the corresponding square wave of pulse width Mi Represent bit 0.
Wherein, the determining module 305 includes:
Judging unit, if the half for being not equal to cycle T 1 for pulse width Mi, is also not equal to the one of cycle T 0 Half, judge pulse width Mi whether in the range of error of the advance cycle T 1 for obtaining or the half of cycle T 0;
Determining unit, if for pulse width Mi in the range of error of the half of cycle T 1, it is determined that pulse The corresponding square waves of width Mi represent bit 1, if pulse width Mi is in the range of error of the half of cycle T 0, it is determined that The corresponding square wave of pulse width Mi represents bit 0.
Certainly, above-mentioned Module Division is that a kind of signal is divided, and the invention is not limited in this.The intelligent cipher key equipment is also Can only include:Receiver module, acquisition module, acquisition module, comparison module and determining module, receiver module is performed and receives phase The function of pass, acquisition module performs the function related to collection, and acquisition module is performed and obtains the related functions such as data, compares Module performs and performs to relatively more related function and determining module and determine related function, as long as the purpose of the present invention can be realized Module Division, protection scope of the present invention all should be belonged to.
The embodiment of the method that the present invention is provided, when by transmitting the waveform of different cycles to represent bit 0 and 1, passes through Obtain pulse width Mi between i-th rising edge and i-th trailing edge to determine the bit that square wave is represented, realize to waveform Parsing.
Example IV
The structural representation of the device embodiment of another kind of parsing waveform that Fig. 4 is provided for the present invention.Embodiment illustrated in fig. 4 Including:
Receiver module 401, for receiving sine waveform, wherein the sine waveform includes use of a cycle for T0 In the sine wave for representing bit 1 that the sine wave and b cycle for representing bit 0 is T1, wherein, cycle T 0 and cycle T 1 are not Equal, a and b is positive integer;
Sampling module 402, for sampling to the sine waveform, obtains square-wave waveform;
Acquisition module 403, for obtaining the square-wave waveform in arteries and veins between i-th rising edge and i+1 rising edge Width Mi is rushed, or, pulse width Ni between i-th trailing edge and i+1 trailing edge in the square-wave waveform is obtained, its Middle i is the positive integer of the summation less than or equal to a and b;
Comparison module 404, for by each pulse width for obtaining respectively with the advance cycle T 1 for obtaining and acquisition in advance Cycle T 0 be compared, obtain comparative result;
Determining module 405, for according to comparative result, determining the bit that the corresponding square wave of each pulse width is represented.
Wherein, the determining module 405 includes:
Judging unit, if some pulse width for obtaining is not equal to cycle T 1, is also not equal to cycle T 0, judges Described some pulse width is no in the range of error of the advance cycle T 1 for obtaining or cycle T 0;
Determining unit, if for a certain pulse width Mi in the range of error of cycle T 1, it is determined that it is described certain The corresponding square wave of one pulse width represents bit 1, if a certain pulse width Mi is in the range of error of cycle T 0, It is determined that the corresponding square wave of described some pulse width Mi represents bit 0;
Wherein, if the determining module is used for pulse width Mi and is equal to cycle T 1, pulse width Mi is corresponding Square wave represents bit 1;If pulse width Mi is equal to cycle T 0, the corresponding square wave of pulse width Mi represents bit 0.
Wherein, described device also includes:
Judge module, with described for after pulse width Mi or pulse width Ni is obtained, by each arteries and veins for obtaining Rush width respectively with the advance cycle T 1 for obtaining and before in advance the cycle T 0 of acquisition is compared, judge pulse width Mi and arteries and veins Width Ni is rushed whether between the cycle T 0 and the cycle T 1;
Selecting module, if for pulse width Mi between the cycle T 0 and the cycle T 1, by pulse width Ni is used as the pulse width used when being compared with cycle T 1 and cycle T 0;If pulse width Ni the cycle T 0 with Between cycle T 1, then using pulse width Mi as the pulse width used when being compared with cycle T 1 and cycle T 0.
Certainly, above-mentioned Module Division is that a kind of signal is divided, and the invention is not limited in this.The intelligent cipher key equipment is also Can only include:Receiver module, acquisition module, acquisition module, comparison module and determining module, receiver module is performed and receives phase The function of pass, acquisition module performs the function related to collection, and acquisition module is performed and obtains the related functions such as data, compares Module performs and performs to relatively more related function and determining module and determine related function, as long as the purpose of the present invention can be realized Module Division, protection scope of the present invention all should be belonged to.
The embodiment of the method that the present invention is provided, when by transmitting the waveform of different cycles to represent bit 0 and 1, passes through Obtain the pulse width of a square-wave cycle to determine the bit that square wave is represented, realize the parsing to waveform.With embodiment three not With the present embodiment is that the bit that square-wave waveform is represented is obtained with the pulse width of a cycle, the arteries and veins with half period Rush width to obtain the bit that square-wave waveform is represented, it is determined that bit it is more accurate.
In flow chart or here any process described otherwise above or method description are construed as, expression includes It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussion suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art Any one of row technology or their combination are realizing:With for realizing the logic gates of logic function to data signal Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Suddenly the hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the invention can be integrated in a processing module, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is realized and as independent production marketing or when using using in the form of software function module, it is also possible to be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or spy that the embodiment or example are described Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.And, the specific features of description, structure, material or feature can be any One or more embodiments or example in combine in an appropriate manner.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art is in the principle and objective without departing from the present invention In the case of above-described embodiment can be changed within the scope of the invention, change, replace and modification.The scope of the present invention Limited by claims and its equivalent.

Claims (8)

1. it is a kind of parsing waveform method, it is characterised in that include:
Receive sine waveform, wherein the sine waveform include a cycle for T0 the sine wave for representing bit 0 with B cycle is the sine wave for representing bit 1 of T1, wherein, cycle T 0 and cycle T 1 are unequal, and a and b is positive integer;
The sine waveform is sampled, square-wave waveform is obtained;
Obtain pulse width Mi between i-th rising edge and i-th trailing edge in the square-wave waveform, wherein i be less than or The positive integer of the summation equal to a and b;
Pulse width Mi is compared with the half of the advance cycle T 1 for obtaining and the half of the cycle T 0 for obtaining in advance, is obtained Comparative result;
According to comparative result, the bit that the corresponding square wave of pulse width Mi is represented is determined;
Wherein, according to comparative result, the bit that the corresponding square wave of pulse width Mi is represented is determined, including:
If pulse width Mi is equal to the half of cycle T 1, the corresponding square wave of pulse width Mi represents bit 1;If institute Half of pulse width Mi equal to cycle T 0 is stated, then the corresponding square wave of pulse width Mi represents bit 0.
2. method according to claim 1, it is characterised in that described according to comparative result, determines the side of pulse width Mi The bit that wave table shows, including:If pulse width Mi is not equal to the half of cycle T 1, also it is not equal to the half of cycle T 0, Pulse width Mi is judged whether in the range of error of the advance cycle T 1 for obtaining or the half of cycle T 0, if the arteries and veins Width Mi is rushed in the range of error of the half of cycle T 1, it is determined that the corresponding square wave of pulse width Mi represents bit 1, if institute Pulse width Mi is stated in the range of error of the half of cycle T 0, it is determined that the corresponding square wave of pulse width Mi represents bit 0.
3. it is a kind of parsing waveform method, it is characterised in that include:
Receive sine waveform, wherein the sine waveform include a cycle for T0 the sine wave for representing bit 0 with B cycle is the sine wave for representing bit 1 of T1, wherein, cycle T 0 and cycle T 1 are unequal, and a and b is positive integer;
The sine waveform is sampled, square-wave waveform is obtained;
Pulse width Mi between i-th rising edge and i+1 rising edge in the square-wave waveform is obtained, or, obtain institute Pulse width Ni between i-th trailing edge and i+1 trailing edge in square-wave waveform is stated, wherein i is less than or equal to a and b Summation positive integer;
Judge pulse width Mi and pulse width Ni whether between the advance cycle T 0 for obtaining and the cycle T 1 for obtaining in advance;
If pulse width Mi is between the cycle T 0 and the cycle T 1, using pulse width Ni as with cycle T 1 and week The pulse width that phase T0 is used when being compared;If pulse width Ni is between the cycle T 0 and cycle T 1, by arteries and veins Width Mi is rushed as the pulse width used when being compared with cycle T 1 and cycle T 0;
Each pulse width for obtaining is compared respectively with the cycle T 1 and the cycle T 0, comparative result is obtained;
According to comparative result, the bit that the corresponding square wave of each pulse width is represented is determined;
Wherein, according to comparative result, the bit that the corresponding square wave of each pulse width is represented is determined, including:
If pulse width Mi is equal to cycle T 1, the corresponding square wave of pulse width Mi represents bit 1;If the pulse Width Mi is equal to cycle T 0, then the corresponding square wave of pulse width Mi represents bit 0.
4. method according to claim 3, it is characterised in that described according to comparative result, determines each pulse width pair The bit that the square wave answered is represented, including:
If some pulse width for obtaining is not equal to cycle T 1, also it is not equal to cycle T 0, judges described some pulse width Degree is no in the range of error of the advance cycle T 1 for obtaining or cycle T 0, if a certain pulse width Mi is in the mistake of cycle T 1 In difference scope, it is determined that the corresponding square wave of described some pulse width represents bit 1, if a certain pulse width Mi exists In the range of error of cycle T 0, it is determined that the corresponding square wave of described some pulse width Mi represents bit 0.
5. it is a kind of parsing waveform device, it is characterised in that include:
Receiver module, for receiving sine waveform, wherein the sine waveform includes a cycle comparing for representing for T0 Special 0 sine wave and b cycle for T1 the sine wave for representing bit 1, wherein, cycle T 0 and cycle T 1 are unequal, a with B is positive integer;
Sampling module, for sampling to the sine waveform, obtains square-wave waveform;
Acquisition module, for obtaining the square-wave waveform in pulse width Mi between i-th rising edge and i-th trailing edge, Wherein i is the positive integer of the summation less than or equal to a and b;
Comparison module, for the half of cycle T 1 that obtains by pulse width Mi and in advance and the half of the cycle T 0 of acquisition in advance It is compared, obtains comparative result;
Determining module, for according to comparative result, determining the bit that the corresponding square wave of pulse width Mi is represented;
Wherein, if the determining module is used for the half that pulse width Mi is equal to cycle T 1, pulse width Mi correspondence Square wave represent bit 1;If pulse width Mi is equal to the half of cycle T 0, the corresponding square wave of pulse width Mi is represented Bit 0.
6. device according to claim 5, it is characterised in that the determining module, including:
Judging unit, if the half for being not equal to cycle T 1 for pulse width Mi, is also not equal to the half of cycle T 0, sentences Whether pulse width Mi of breaking is in the range of error of the advance cycle T 1 for obtaining or the half of cycle T 0;
Determining unit, if for pulse width Mi in the range of error of the half of cycle T 1, it is determined that pulse width The corresponding square waves of Mi represent bit 1, if pulse width Mi is in the range of error of the half of cycle T 0, it is determined that pulse The corresponding square waves of width Mi represent bit 0.
7. it is a kind of parsing waveform device, it is characterised in that include:
Receiver module, for receiving sine waveform, wherein the sine waveform includes a cycle comparing for representing for T0 Special 0 sine wave and b cycle for T1 the sine wave for representing bit 1, wherein, cycle T 0 and cycle T 1 are unequal, a with B is positive integer;
Sampling module, for sampling to the sine waveform, obtains square-wave waveform;
Acquisition module, for obtaining the square-wave waveform in pulse width between i-th rising edge and i+1 rising edge Mi, or, pulse width Ni between i-th trailing edge and i+1 trailing edge in the square-wave waveform is obtained, wherein i is The positive integer of the summation less than or equal to a and b;
Judge module, obtain after pulse width Mi or pulse width Ni for the acquisition module, and comparison module will be obtained Before each pulse width is compared respectively with the advance cycle T 1 for obtaining and the cycle T 0 for obtaining in advance, pulse width is judged Whether Mi and pulse width Ni are between the cycle T 0 and the cycle T 1;
Selecting module, if for pulse width Mi between the cycle T 0 and the cycle T 1, the comparison module will Pulse width Ni is used as the pulse width used when being compared with cycle T 1 and cycle T 0;If pulse width Ni is described Between cycle T 0 and cycle T 1, then pulse width Mi is compared when institute by the comparison module as with cycle T 1 and cycle T 0 The pulse width for using;
The comparison module, for by each pulse width for obtaining respectively with the advance cycle T 1 for obtaining and week of acquisition in advance Phase, T0 was compared, and obtained comparative result;
Determining module, for according to comparative result, determining the bit that the corresponding square wave of each pulse width is represented;
Wherein, if the determining module is used for pulse width Mi and is equal to cycle T 1, the corresponding square wave of pulse width Mi Represent bit 1;If pulse width Mi is equal to cycle T 0, the corresponding square wave of pulse width Mi represents bit 0.
8. device according to claim 7, it is characterised in that the determining module includes:
Judging unit, if some pulse width for obtaining is not equal to cycle T 1, is also not equal to cycle T 0, judges described Some pulse width is no in the range of error of the advance cycle T 1 for obtaining or cycle T 0;
Determining unit, if for a certain pulse width Mi in the range of error of cycle T 1, it is determined that it is described some The corresponding square wave of pulse width represents bit 1, if a certain pulse width Mi is in the range of error of cycle T 0, it is determined that The corresponding square wave of described some pulse width Mi represents bit 0.
CN201410054922.0A 2014-02-18 2014-02-18 Method and device for waveform analysis Active CN103811022B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410054922.0A CN103811022B (en) 2014-02-18 2014-02-18 Method and device for waveform analysis
PCT/CN2015/070739 WO2015124047A1 (en) 2014-02-18 2015-01-15 Method and device for waveform analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410054922.0A CN103811022B (en) 2014-02-18 2014-02-18 Method and device for waveform analysis

Publications (2)

Publication Number Publication Date
CN103811022A CN103811022A (en) 2014-05-21
CN103811022B true CN103811022B (en) 2017-04-19

Family

ID=50707694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410054922.0A Active CN103811022B (en) 2014-02-18 2014-02-18 Method and device for waveform analysis

Country Status (2)

Country Link
CN (1) CN103811022B (en)
WO (1) WO2015124047A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103811022B (en) * 2014-02-18 2017-04-19 天地融科技股份有限公司 Method and device for waveform analysis
DE102014115493B3 (en) * 2014-10-24 2016-03-03 Infineon Technologies Ag Receiver and method for receiving a signal
CN113596829B (en) * 2021-07-07 2023-09-05 国网电力科学研究院有限公司 Real-time online key transmission device and method for networking scene of power terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5485543A (en) * 1989-03-13 1996-01-16 Canon Kabushiki Kaisha Method and apparatus for speech analysis and synthesis by sampling a power spectrum of input speech
CN102333054A (en) * 2011-09-26 2012-01-25 北京天地融科技有限公司 Data sending and receiving method and device
CN103077723A (en) * 2013-01-04 2013-05-01 鸿富锦精密工业(深圳)有限公司 Audio transmission system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3545601A1 (en) * 1985-12-21 1987-07-02 Gen Service Electronics Gmbh METHOD FOR TRANSMITTING BIT SIGNALS, BIT SIGNAL SIGNALS AND BIT SIGNAL RECEIVERS FOR CARRYING OUT THE METHOD AND BY THE METHOD OF RECORDING EXAMPLES
CN102330540B (en) * 2011-08-05 2013-04-24 三一重机有限公司 Rotary supporting seat structure
CN103716270B (en) * 2011-09-26 2017-10-03 天地融科技股份有限公司 A kind of data sending, receiving method and device
CN102646175A (en) * 2012-04-22 2012-08-22 上海林果实业有限公司 Safety certificating equipment and method based on audio signal communication
CN103811021B (en) * 2014-02-18 2016-12-07 天地融科技股份有限公司 A kind of method and apparatus resolving waveform
CN103811022B (en) * 2014-02-18 2017-04-19 天地融科技股份有限公司 Method and device for waveform analysis

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5485543A (en) * 1989-03-13 1996-01-16 Canon Kabushiki Kaisha Method and apparatus for speech analysis and synthesis by sampling a power spectrum of input speech
CN102333054A (en) * 2011-09-26 2012-01-25 北京天地融科技有限公司 Data sending and receiving method and device
CN103077723A (en) * 2013-01-04 2013-05-01 鸿富锦精密工业(深圳)有限公司 Audio transmission system

Also Published As

Publication number Publication date
WO2015124047A1 (en) 2015-08-27
CN103811022A (en) 2014-05-21

Similar Documents

Publication Publication Date Title
CN104335521B (en) Data interface Synchronous
CN100346310C (en) Self testing circuit
CN103036670B (en) A kind of clock recovery circuitry and parallel output circuit
Ren et al. Multiple edge responses for fast and accurate system simulations
JP2002232409A (en) Method and device for detecting digital data pattern
US9961174B2 (en) Analog behavior modeling for 3-phase signaling
CN103353543B (en) Digital oscillator with functions of triggering and decoding serial protocols
CN105229964B (en) Signal processing apparatus
CN103811022B (en) Method and device for waveform analysis
US9460814B2 (en) Memory tester design for soft error rate (SER) failure analysis
US20090304140A1 (en) Asynchronous ping-pong counter and therof method
CN105116318A (en) Method for realizing burr detection in logic analyzer
CN212622809U (en) Detection circuit
CN103811021B (en) A kind of method and apparatus resolving waveform
CN104283531A (en) Clock jitter and power supply noise analysis
CN104104559B (en) A kind of E1 Error Detectors system
TWI447691B (en) Method for triggering source drivers
CN103888107B (en) Data decoding method
CN102594340B (en) Phase detector, phase detection method and clock data recovery device
CN103592599A (en) USB-based logic analyzer triggering device
CN111124790B (en) Generation system of reusable simulation interface model
US9674062B1 (en) Memory array to generate a data eye diagram
US7679404B2 (en) Missing clock pulse detector
CN107765100B (en) Waveform signal pre-judging period analysis method
CN102571041B (en) Method for detecting time delay and time sequence of circuit and method for correcting time delay by using such method

Legal Events

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