CN106549727A - Signal receiving method and device - Google Patents

Signal receiving method and device Download PDF

Info

Publication number
CN106549727A
CN106549727A CN201510604997.6A CN201510604997A CN106549727A CN 106549727 A CN106549727 A CN 106549727A CN 201510604997 A CN201510604997 A CN 201510604997A CN 106549727 A CN106549727 A CN 106549727A
Authority
CN
China
Prior art keywords
signal
time interval
time
bit string
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510604997.6A
Other languages
Chinese (zh)
Other versions
CN106549727B (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 Corp
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 CN201510604997.6A priority Critical patent/CN106549727B/en
Priority to PCT/CN2016/099621 priority patent/WO2017050233A1/en
Publication of CN106549727A publication Critical patent/CN106549727A/en
Application granted granted Critical
Publication of CN106549727B publication Critical patent/CN106549727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • 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

Abstract

The invention discloses a signal receiving method and device. The signal receiving method comprises the steps of obtaining a corresponding relation between each bit string and a time interval in 2N bit strings whose length is N, wherein the 2N bit strings are different from each other, the time intervals corresponding to the different bit strings are different and the N is more than or equal to 1; receiving Y+1 signals, wherein a first signal in the Y+1 signals is the signal used for indicating that data transmission starts, the Y is more than or equal to 1, the Y is a positive integer, and the Y+1 is a total number of the received signals; determining the signal which is used for indicating that the data transmission starts as a first effective signal; judging whether the time interval between a start time when the signal Z is received and the start time of the previous effective signal is one of the time intervals in the obtained corresponding relation, and if yes, recording the signal Z as the effective signal, and the Z is equal to 2, 3, 4, and the like, Y+1; and according to a judgment result, obtaining X effective signals, wherein the X is less than or equal to Y+1 and the X is the positive integer.

Description

A kind of signal acceptance method and device
Technical field
The present invention relates to a kind of electronic technology field, more particularly to a kind of signal acceptance method and device.
Background technology
In data transmission procedure, usually noisy signal interference in channel, its form of expression are identical with data signal, can cause The data that data decoding failure or decoding are obtained are wrong.Therefore, cancelling noise becomes raising data communication success as far as possible The key factor of rate.
The content of the invention
One of it is contemplated that at least solve the above problems.
Present invention is primarily targeted at providing a kind of signal acceptance method.
Another object of the present invention is to provide a kind of signal receiving device.
To reach above-mentioned purpose, what technical scheme was specifically realized in:
One aspect of the present invention provides a kind of signal acceptance method, including:Obtain 2NIndividual length is each bit in the Bit String of N The corresponding relation of string and time interval, wherein, 2NIndividual Bit String is different, and the corresponding time interval of different Bit Strings is different, N≥1;Y+1 signal is received, wherein, first in Y+1 signal signal is for indicating letter that data transfer starts Number, Y >=1, and Y is positive integer, Y+1 is the total quantity of the signal for receiving;To be used for indicating the signal that data transfer starts It is defined as first useful signal;Judgement receives the initial time and the initial time of previous useful signal of Z signal Whether time interval is a time interval in the corresponding relation for obtaining, and is then if so, useful signal by the Z signal record, Wherein, Z=2,3,4 ... ..., Y+1;According to judged result, X useful signal is obtained, wherein, X≤Y+1, and X is for just Integer.
A kind of another aspect of the present invention, there is provided signal acceptance method, including:Obtain 2NIndividual length for N Bit String in each The corresponding relation of Bit String and time interval, wherein, 2NIndividual Bit String is different, and the corresponding time interval of different Bit Strings Difference, N >=1;Receive for indicating signal that data transfer starts, determine that signal is first useful signal;Continue to letter Number, whether it is acquisition that judgement receives the initial time of Z signal with the time interval of the initial time of previous useful signal Corresponding relation in a time interval, if so, then by the Z signal record be useful signal, wherein, Z= It is positive integer that 1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, Y >=1, and Y;After Y signal has been received, According to judged result, X useful signal is obtained, wherein, X≤Y+1, and X is positive integer.
Alternatively, for indicating the handshake of first data signal or reception for data transfer of signal that data transfer starts In last signal.
Alternatively, the initial time of Z signal is more than or equal to preset value with the time interval of the initial time of previous signal.
Alternatively, preset value be obtain corresponding relation in time interval minima.
Alternatively, 2 are obtainedNIndividual length is included with the corresponding relation of time interval for each Bit String in the Bit String of N:It is determined that working as The time parameter of front data transfer, and 2 are obtained according to time parameterNIndividual length is for each Bit String in the Bit String of N and between the time Every corresponding relation.
Alternatively, after X useful signal is obtained, the method also includes:It is determined that in X useful signal per two neighboring letter Number initial time between time interval, obtain X-1 time interval;According to the corresponding relation for obtaining, when obtaining X-1 Between be spaced in per the corresponding Bit String of single time interval in continuous S time interval, obtain the bit that S time interval is transmitted String, wherein, the Bit String of S time interval transmission is the corresponding Bit String of single time interval, in the case of S > 1, S Individual time interval is identical, and S is positive integer, and S≤X-1;By the transmission per continuous S time interval in X-1 time interval Bit String is spliced, and obtains the bit sequence of X-1 time interval transmission.
Alternatively, after the bit sequence for obtaining X-1 time interval transmission, method also includes:To X-1 time interval The bit sequence of transmission is decoded, and obtains the data of X-1 time interval transmission, and the number to X-1 time interval transmission According to carrying out data integrity verifying.
Another aspect of the present invention provides a kind of signal receiving device, including:Time interval acquiring unit, for obtaining 2NIt is individual Corresponding relation of the length for each Bit String and time interval in the Bit String of N, wherein, 2NIndividual Bit String is different, and not Different, N >=1 with the corresponding time interval of Bit String;Receiving unit, for receiving Y+1 signal, wherein, Y+1 letter First signal in number be for indicating signal that data transfer starts, wherein, Y+1 is the total quantity of the signal for receiving; Recording unit, for will be used for indicating that the signal that data transfer starts is defined as first useful signal;Judging unit, for sentencing Disconnecting receives whether the initial time of Z signal and the time interval of the initial time of previous useful signal are the corresponding of acquisition A time interval in relation, wherein, Z=2,3,4 ... ..., Y;Recording unit, for determining the Z letter in judging unit Number the time interval of initial time and the initial time of previous useful signal be a time interval in the corresponding relation for obtaining In the case of, it is useful signal by the Z signal record;Useful signal acquiring unit, for the record according to recording unit, X useful signal is obtained, wherein, X < Y, and X is positive integer.
Another aspect of the present invention provides a kind of signal receiving device, including:Time interval acquiring unit, for obtaining 2NIt is individual long The corresponding relation of each Bit String and time interval in the Bit String for N is spent, wherein, 2NIndividual Bit String is different, and different The corresponding time interval of Bit String is different, N >=1;Receiving unit, is used for the signal for indicating that data transfer starts for receiving, really It is first useful signal to determine signal, and continues to signal;Judging unit, for judging that receiving unit continues to Whether the time interval of the initial time of Z signal and the initial time of previous useful signal is in the corresponding relation for obtaining Individual time interval, wherein, Z=1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, and Y is positive integer;Recording unit, For judging the initial time of Z signal with the time interval of the initial time of previous useful signal to obtain in judging unit Corresponding relation in a time interval in the case of, by the Z signal record be useful signal;Useful signal acquiring unit, For the record result according to recording unit, X useful signal in the Y signal that receiving unit is received is obtained.
Alternatively, for indicating the handshake of first data signal or reception for data transfer of signal that data transfer starts In last signal.
Alternatively, time interval acquiring unit obtains 2 in the following mannerNIndividual length for N Bit String in each Bit String and when Between the corresponding relation that is spaced:Determine the time parameter of present data transmission, and 2 are obtained according to time parameterNRatio of the individual length for N The corresponding relation of each Bit String and time interval in special string.
Alternatively, also include:Determining unit, for determine in X useful signal obtaining every two neighboring signal it is initial when Time interval between quarter, obtains X-1 time interval, wherein, X≤Y+1, and X is positive integer;Data capture unit, For according to the corresponding relation for obtaining, obtaining in X-1 time interval, in every continuous S time interval, single time interval is corresponding Bit String, obtain the Bit String of S time interval transmission, wherein, the Bit String of S time interval transmission is the single time Corresponding Bit String is spaced, in the case of S > 1, S time interval is identical, S is positive integer, and S≤X-1;Splicing is single Unit, for by the Bit String of transmission is spliced per continuous S time interval in X-1 time interval, obtaining X-1 time The Bit String of interval transmission.
Alternatively, also include:Verification unit, for decoding to the Bit String of X-1 time interval transmission, obtains X-1 The data of individual time interval transmission, and the data to X-1 time interval transmission carry out data integrity verifying.
As seen from the above technical solution provided by the invention, the invention provides a kind of signal acceptance method and device, are connecing During the collection of letters, the time interval of the initial time between signal and signal is judged, if the time interval is not predetermined Time interval, then ignore the signal, obtains useful signal with this, effectively removes the noise interferences in channel, improves number According to the correctness and stability of transmission.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, embodiment will be described below needed for accompanying drawing to be used It is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, can be with according to these accompanying drawings acquisition other accompanying drawings.
Fig. 1 is the flow chart of the signal acceptance method that the embodiment of the present invention 1 is provided;
Fig. 2 is the waveform example figure that the embodiment of the present invention 1 is received;
Fig. 3 is the waveform diagram after the method provided using the embodiment of the present invention 1 is filtered;
Fig. 4 is the flow chart of a kind of optional signal acceptance method that the embodiment of the present invention 1 is provided;
Fig. 5 is the flow chart of the signal acceptance method that the embodiment of the present invention 2 is provided;
Fig. 6 is the flow chart of a kind of optional signal acceptance method that the embodiment of the present invention 2 is provided;
Fig. 7 is the structural representation of the signal receiving device that the embodiment of the present invention 3 is provided;
Fig. 8 is the structural representation of a kind of optional signal receiving device that the embodiment of the present invention 3 is provided;
Fig. 9 is the structural representation of the signal receiving device that the embodiment of the present invention 4 is provided;
Figure 10 is the structural representation of a kind of optional signal receiving device that the embodiment of the present invention 4 is provided.
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 clearly and completely described, Obviously, described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Reality based on the present invention Example is applied, the every other embodiment obtained under the premise of creative work is not made by those of ordinary skill in the art is belonged to Protection scope of the present invention.
In describing the invention, it is to be understood that term " " center ", " longitudinal direction ", " horizontal ", " on ", D score, " front ", " afterwards ", the orientation or position relationship of the instruction such as "left", "right", " vertical ", " level ", " top ", " bottom ", " interior ", " outward " is base In orientation shown in the drawings or position relationship, it is for only for ease of the description present invention and simplifies description, rather than indicate or imply institute The device or element of finger must have specific orientation, with specific azimuth configuration and operation, therefore it is not intended that to the present invention Restriction.Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or quantity or position.
In describing the invention, it should be noted that unless otherwise clearly defined and limited, term " installation ", " being connected ", " connection " should be interpreted broadly, for example, it may be being fixedly connected, or being detachably connected, or be integrally connected;Can be with It is to be mechanically connected, or electrically connect;Can be joined directly together, it is also possible to be indirectly connected to by intermediary, can be two The connection of individual element internal.For the ordinary skill in the art, above-mentioned term can be understood in the present invention with concrete condition In concrete meaning.
The embodiment of the present invention is described in further detail below in conjunction with accompanying drawing.
Embodiment 1
A kind of signal acceptance method is present embodiments provided, the method can apply the receiving terminal in signal.
Fig. 1 is the flow chart of the signal acceptance method that the present embodiment is provided, and as indicated with 1, the method mainly includes the following steps that (step Rapid S102- steps S110).
Step S102, obtains 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N, wherein, 2NIndividual Bit String is different, and the corresponding time interval of different Bit Strings is different, N >=1.
In the present embodiment, a length can correspond to a time interval for the Bit String of N, it is also possible between correspondence multiple times Every as long as the corresponding time interval of different Bit Strings is differed.
In an optional embodiment of the present embodiment, 2 can be obtained according to the time parameter of present data transmissionNIndividual length is The corresponding relation of each Bit String and time interval in the Bit String of N.Wherein, the time parameter of present data transmission can be pre- First consult with transmitting terminal, or, or the data that send from transmitting terminal in obtain, for example, transmitting terminal can be Before sending data, handshake is first sent, the time parameter of present data transmission, tool are transmitted by handshake to receiving terminal Body the present embodiment is not construed as limiting.Therefore, in an optional embodiment of the present embodiment, before above-mentioned corresponding relation is obtained, It may also be determined that time parameter.By taking N=2 as an example, it is assumed that with two time parameters edu and pdt, then length is each of 2 The corresponding time interval of Bit String can be as shown in table 1.Certainly, however it is not limited to this, in actual applications, each Bit String pair The time interval answered can also be adopted except other relations described in table 1 with the corresponding relation of time parameter, specifically repeated no more.
Table 1.
Bit String Time interval
00 etu
01 etu+pdt
10 etu+2pdt
11 etu+3pdt
Certainly, however it is not limited to this, in another optional embodiment of the present embodiment, it is also possible to not according to time parameter obtaining Take above-mentioned corresponding relation, but rule set in advance (for example, 1) above-mentioned table, directly obtains above-mentioned corresponding relation, for example, In the case of for N=1, can directly arrange 1 corresponding time interval of bit 0 and bit, for example, respectively 10 μ s and 15μs.Or, it is also possible to above-mentioned corresponding relation is stored in the receiving end in advance, and concrete the present embodiment is not construed as limiting.
In the case where above-mentioned corresponding relation is obtained according to time parameter, the receiving terminal of data can be using advance with the transmitting terminal of data The computational methods for consulting determination calculate the time interval of the data bit, such as work as N=n, send the time interval of data bit m tm=etu+m*pdt (0≤m≤2n- 1), it would however also be possible to employ other computational methods consulted in advance determine time interval, the present embodiment This is not particularly limited.The time interval of the data bit is calculated by the advance computational methods consulted, it is ensured that data The extensibility of transmission, no matter that is, the value of N is how many, between the time that transmitting terminal and receiving terminal can calculate data bit Every.
Step S104, receives Y+1 signal, wherein, first signal in the Y+1 signal is for indicating data The signal that transmission starts, Y >=1, and Y are positive integer, and Y+1 is the total quantity of the signal for receiving;
In the present embodiment, can be first data signal of data transfer for indicating signal that data transfer starts, for example, Can be after the predetermined moment (moment can be determined with transmitting terminal agreement by receiving terminal), first data for receiving Signal, or, if transmitting terminal is before data are sent out to receiving terminal, handshake is sent to receiving terminal, then for indicating data The signal that transmission starts can also be last signal in the handshake that the transmitting terminal for receiving is sent.In the present embodiment, Handshake refers to that transmitting terminal is used to refer to the signal of the initial time of receiving terminal data is activation, in addition, in the present embodiment, sends out Sending end can also transmit above-mentioned time parameter by handshake.
For example, if 5 handshake of transmitting terminal transmission, time parameter includes two:Etu and pdt, 5 handshake Time interval be respectively:T0, t1, t2 and t3, then can be t0=etu, t1=etu+pdt, then receiving terminal is according to t0 and t1 Can determine the value of time parameter etu and pdt;Or, it is also possible to determined according to the t2 in the second time interval group and t3, 2t2=2etu, 2t1=2 (etu+pdt), receiving terminal can also determine the value of time parameter etu and pdt according to t2 and t3.Or, T0 and t1 can also meet other relations, as long as the value that can obtain time parameter etu and pdt by the value of t0 and t1 is i.e. Can.In addition, if time parameter only one of which, then can also be directly by a time interval in K handshake come really The fixed time parameter, or, if time parameter there are three, the multiple time intervals between K handshake can be passed through Determining the value of these three time parameters, concrete the present embodiment is repeated no more the relation of satisfaction.Determined by K handshake Time parameter, the situation that the theoretical time parameter of receiving terminal can be overcome inconsistent with parameter actual time, is just ensureing data transfer True property.
Step S106, will be used for indicating that the signal that data transfer starts is defined as first useful signal.
Step S108, judgement receive the initial time of Z signal and the time interval of the initial time of previous useful signal It is whether a time interval in the corresponding relation for obtaining, is then if so, useful signal by the Z signal record, its In, Z=2,3,4 ... ..., Y+1;
In step S108, by judge successively the initial time of the Z for receiving (Z=2,3,4 ... ..., Y+1) individual signal with Whether the time interval of the initial time of previous useful signal is the time interval recorded in the above-mentioned corresponding relation for obtaining, Till the Y+1 signal judges to terminate, it is useful signal by the signal record for meeting above-mentioned requirements, and gives up and do not meet The signal of requirement is stated, the noise signal in channel can be effectively filtered out, it is ensured that the correctness and integrity of data transfer.
For example, it is assumed that the time parameter of current transmission is two time parameters, i.e. very first time parameter etu and the second time parameter Pdt, wherein etu=10 μ s, pdt=20 μ s.There is no corresponding relation in the number of time parameter and N, the present embodiment not pair when Between the concrete number of parameter be restricted, as long as the corresponding time interval of each data bit can be given expression to.In N=1, according to It is time interval corresponding to 1 Bit String (i.e. the data of 1 bit or 1 Bit String) that time parameter obtains length, i.e., 0 Corresponding time interval is etu, and 1 corresponding time interval is pdt.Waveform that recipient receives as shown in Fig. 2 wherein, The 2nd signal is received, the initial time and first useful signal C of the signal is calculated1Initial time time interval For 15 μ s, the time interval is differed with the time interval corresponding to 1 Bit String 0 and 1, therefore the signal is not effective The signal record is invalid signals D, should give up invalid signals D by signal.
Judge the initial time and first useful signal C of the 3rd signal1Initial time time interval be 20 μ s, the time Interval is identical with the time interval corresponding to 1 Bit String 1, therefore the signal is useful signal, is second by the signal record Individual useful signal C2, and record second useful signal C2Initial time.
Judge the initial time and second useful signal C of the 4th signal2Initial time time interval ..., by that analogy, Till the Y+1 signal ended for judging to receive.Finally obtain C1~C11This 11 useful signals, as shown in Figure 3.
In an optional embodiment of the embodiment of the present invention, the initial time of Z signal and previous signal it is initial when The time interval at quarter is more than or equal to preset value.I.e. in the optional embodiment, in step S104, completing reception first has After effect signal, the hardware layer of receiving terminal can be filtered out between the time of the initial time of the initial time and previous signal of current demand signal Every the current demand signal less than preset value, the MCU of receiving terminal does not make any response to such signal, and only to current demand signal Current demand signal (i.e. the Z signal) of the time interval of initial time and the initial time of previous signal more than or equal to preset value Respond, can so improve the detection efficiency of follow-up useful signal, so as to reduce the workload of MCU.
Further, the filtration of above-mentioned hardware layer can be in the following ways:The signal receiver of receiving terminal is from first for receiving The initial time T of individual useful signal starts timing, in the time range of T+ preset values does not receive any signal, and pre- from T+ If restarting again to receive signal from being worth this moment, until receiving the Z signal (Z=2), and with the Z signal (Z=2) Initial time as new T, repeat the above steps, till the Y+1 signal is received.
Further, the minima of the time interval in the corresponding relation that above-mentioned preset value can be obtained for step S102.By Time interval in the corresponding relation is less than with the time interval of the initial time of previous signal in the initial time of current demand signal Minima, then the current demand signal is necessarily not belonging to useful signal, therefore can not receive the current demand signal.
In an optional embodiment of the present embodiment, it can detect Y+1 low level pulse to receive Y+1 signal, Can also detect Y+1 high level pulse.Low level pulse/the high level pulse can adopt square wave, sine wave, triangle Ripple etc. can be distinguished the waveform of low and high level pulse and represent that this is not restricted.Preferably, can be the low level pulse that detects, I.e. transmitting terminal can produce low level pulse, adopt in this way, in transmitting terminal in the case where high level is provided for receiving terminal When communicating with receiving terminal, receiving terminal can use the high level that transmitting terminal is provided as power supply, and the power consuming device for receiving terminal provides electricity Can, for example, receiving terminal can utilize the high level that transmitting terminal is provided to be charged, or power supply is not provided with inside receiving terminal, and The high level of transmitting terminal is directly used as power supply, using the equipment of the method, when information exchange is carried out, same can be used Line completes power supply simultaneously and information is received, and reduces equipment volume and manufacturing cost.
Step S110, according to judged result, obtains X useful signal, wherein, X≤Y+1, and X is positive integer.
According to the judgement of step S108, X useful signal is obtained, decoded according to the X useful signal, to be sent out The data that sending end sends.Therefore, in an optional embodiment of the embodiment of the present invention, after step silo, such as Fig. 4 It is shown, can also include:
Step S112, it is determined that in time interval between the initial time of X useful signal per two neighboring signal, obtain X-1 Individual time interval;
Step S114, according to the corresponding relation for obtaining, when single in every continuous S time interval in X-1 time interval of acquisition Between be spaced corresponding Bit String, obtain the Bit String of S time interval transmission, wherein, the Bit String that S time interval is transmitted For the corresponding Bit String of single time interval, in the case of S > 1, the S time interval is identical, and S is positive integer, and S ≤X-1;
In an optional embodiment of the present embodiment, X-1=n*S, n >=1 and n are integer, using this optional embodiment party Formula, X signal can just transmit n*S data bit, lead to not the problem for decoding without there is unnecessary signal.
For example, work as X=2, during S=1, only there is a time interval, the corresponding Bit String of the time interval is obtained;When X is 3 or more than, during S=1, with multiple time intervals, obtain the corresponding Bit String of each time interval;Work as X=3, during S=2, With two time intervals, the two time intervals are identical, and time interval one Bit String of correspondence, the two time intervals Represent the corresponding Bit String of a time interval;When X is 5, S=2, with four time intervals, the first two is continuous Time interval one Bit String of correspondence in time interval, a time interval correspondence in latter two continuous time interval Another Bit String, i.e. the first two time interval represent a Bit String, and latter two time interval represents another Bit String.When So, above citing is simply exemplary, as long as the mode that can obtain the Bit String of S time interval transmission all should belong to this Bright protection domain.
Step S116, by X-1 time interval, per continuous S time interval, the Bit String of transmission is spliced, is somebody's turn to do The bit sequence of X-1 time interval transmission.
For example, it is assumed that X=9, S=1, in step S114, obtain 8 time intervals, the corresponding Bit String of each time interval according to It is secondary for " 01 ", " 00 ", " 01 ", " 10 ", " 11 ", " 10 ", " 00 " and " 01 ", then finally obtain 5 time intervals transmission Bit sequence is " 0100011011100001 ".
It is alternatively possible to the bit sequence of the X-1 time interval transmission to obtaining is decoded, X-1 time interval is obtained The data of transmission, in decoding, can constitute a byte, so as to obtain X-1 time interval with 8 bits as one group The data of transmission.
In an optional embodiment of the embodiment of the present invention, the bit sequence of X-1 time interval transmission can also include school Position is tested, for example, last byte is check bit, then further the data before check bit can also be entered according to the check bit Row integrity check.Data integrity verifying include but is not limited to even-odd check, CRC check, digital signature, take and verify, MAC verifications etc..
Alternatively, after above-mentioned Y+1 signal, A end signal that recipient can be sent with receiving end/sending end (A >= 1 and be integer), or, A end signal can also be included within Y+1 signal.End signal can be with handshake The signal of identical, or other specific formats, by the end signal, receiving terminal can determine whether whether data bit string receives Terminate.
In an optional embodiment of the embodiment of the present invention, in data transmission procedure, can be passed through with replacing construction parameter Time parameter updates above-mentioned corresponding relation, during subsequent decoding, determines between useful signal according to the corresponding relation after renewal The Bit String transmitted by time interval.I.e. according to preset rules, currently used time parameter is replaced with into new time parameter, Using new time parameter as the time parameter of present data transmission, 2 are reacquired according to new time parameterNIndividual length is N's The corresponding relation of each Bit String and time interval in Bit String.In the present embodiment, the determination of new time parameter can be led to The negotiation for crossing data sending device and data sink is completed, it is also possible to searched by data sending device and data sink The time parameter table for prestoring is completed, such as send certain categorical data when table look-up determine the type data should use when Between parameter.The time parameter of data sending device can be change, can match the data receiver dress of different pieces of information disposal ability Put, or match different types of data, can further improve the efficiency of data processing.
The signal acceptance method provided by the present embodiment, can effectively filter out noise, improve the efficiency that signal is received.
Embodiment 2
A kind of signal acceptance method is present embodiments provided, Fig. 5 is the flow chart of the signal acceptance method that the present embodiment is provided.Figure The flow chart of the 6 a kind of optional signal acceptance methods provided for the present embodiment.As it can be seen in figures 5 and 6, the side that the present embodiment is provided The difference of the method that method is provided with embodiment one is, in embodiment 1 recipient be after Y+1 signal has been received again according to It is secondary to judge whether each signal is useful signal, and in the present embodiment, it is determined that after first useful signal, often receiving one Signal, just judges whether the signal is useful signal immediately.Compared with Example 1, the method that the present embodiment is provided is in hgher efficiency.
As shown in figure 5, the signal acceptance method that the present embodiment is provided mainly includes the following steps that (step S202- step S208).
Step S202, obtains 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N, wherein, 2NThe individual Bit String is different, and the corresponding time interval of the different Bit Strings is different, N >=1.
In the present embodiment, a length can correspond to a time interval for the Bit String of N, it is also possible between correspondence multiple times Every as long as the corresponding time interval of different Bit Strings is differed.
In an optional embodiment of the present embodiment, 2 can be obtained according to the time parameter of present data transmissionNIndividual length is The corresponding relation of each Bit String and time interval in the Bit String of N.Wherein, the time parameter of present data transmission can be pre- First consult with transmitting terminal, or, or the data that send from transmitting terminal in obtain, for example, transmitting terminal can be Before sending data, handshake is first sent, the time parameter of present data transmission, tool are transmitted by handshake to receiving terminal Body the present embodiment is not construed as limiting.Therefore, in an optional embodiment of the present embodiment, before above-mentioned corresponding relation is obtained, It may also be determined that time parameter.
Certainly, however it is not limited to this, in another optional embodiment of the present embodiment, it is also possible to not according to time parameter obtaining Take above-mentioned corresponding relation, but rule set in advance, directly obtain above-mentioned corresponding relation, for example, for N=1 in the case of, 1 corresponding time interval of bit 0 and bit, for example, respectively 10 μ s and 15 μ s can directly be arranged.Or, it is also possible to it is pre- Above-mentioned corresponding relation is stored in the receiving end first, and concrete the present embodiment is not construed as limiting.
In the case where above-mentioned corresponding relation is obtained according to time parameter, the receiving terminal of data can be using advance with the transmitting terminal of data The computational methods for consulting determination calculate the time interval of the data bit, such as work as N=n, send the time interval of data bit m tm=etu+m*pdt (0≤m≤2n- 1), it would however also be possible to employ other computational methods consulted in advance determine time interval, the present embodiment This is not particularly limited.The time interval of the data bit is calculated by the advance computational methods consulted, it is ensured that data The extensibility of transmission, no matter that is, the value of N is how many, between the time that transmitting terminal and receiving terminal can calculate data bit Every.
It is possible to further replacing construction parameter, i.e., according to preset rules, when currently used time parameter is replaced with new Between parameter, using new time parameter as the time parameter of present data transmission, reacquire 2 according to new time parameterNIt is individual long Spend the corresponding relation of each Bit String and time interval in the Bit String for N.In the present embodiment, new time parameter Determination can be completed by the negotiation of data sending device and data sink, it is also possible to by data sending device and data Reception device is searched the time parameter table for prestoring and is completed, and such as tabling look-up when certain categorical data is sent determines the data of the type The time parameter that should be used.The time parameter of data sending device can be change, can match different pieces of information disposal ability Data sink, or match different types of data, can further improve the efficiency of data processing.
Step S204, receives for indicating signal that data transfer starts, determines that the signal is first useful signal;
It is used to indicate first data signal that signal that data transfer starts can be data transfer in the present embodiment, for example, can With the first number for after predetermined moment (moment can be determined with transmitting terminal agreement by receiving terminal), receiving it is believed that Number, or, if transmitting terminal is before data are sent out to receiving terminal, handshake is sent to receiving terminal, then pass for indicating data The signal of defeated beginning can also be last signal in the handshake that the transmitting terminal for receiving is sent.In the present embodiment, hold Handss signal refers to that transmitting terminal is used to refer to the signal of the initial time of receiving terminal data is activation, in addition, in the present embodiment, sends Above-mentioned time parameter can also be transmitted by handshake in end.
Step S206, continues to signal, and judgement receives the initial time of Z signal and the starting of previous useful signal Whether the time interval at moment is a time interval in the corresponding relation for obtaining, if so, then by the Z signal record For useful signal, wherein, Z=1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, and Y is positive integer;
By judging the initial time of the Z signal for receiving and the time interval of the initial time of previous useful signal successively Be whether the time interval recorded in above-mentioned corresponding relation, till the Y signal judges to terminate, will meet it is above-mentioned will The signal record asked is useful signal, and gives up the signal for not meeting above-mentioned requirements, can effectively filter out the noise letter in channel Number, it is ensured that the correctness and integrity of data transfer.
For example, with the time parameter of current transmission as very first time parameter etu and the second time parameter pdt, wherein etu=10 μ s, As a example by pdt=5 μ s, in N=2, in step S202,2 data bit correspondences of different length are obtained according to time parameter Time interval, as shown in table 2.
Table 2.
Bit String Time interval (μ s)
00 10
01 15
10 20
11 30
Receiving for indicating first useful signal C of signal that data transfer starts1Afterwards, it is assumed that in being followed by for 10 μ s The 1st signal is received, as the time interval of the initial time of the initial time and first useful signal of the signal is 10 μ s, The time interval is identical with the time interval corresponding to Bit String 00 in table 2, therefore the signal is useful signal, and the signal is remembered Record as second useful signal C2, and record second useful signal C2Initial time.
The 2nd signal is continued to, the initial time and second useful signal C of the signal is calculated2Initial time when Between differ with the time interval corresponding to Bit String in table 2 00,01,10 and 11 at intervals of 16 μ s, the time interval, Therefore the signal is not useful signal, is invalid signals D by the signal record, should give up invalid signals D.
When receiving the Z signal (Z=3), the initial time and second useful signal C of the signal need to be calculated2Initial time Time between, by that analogy, till the Y signal ended receiving is judged.Finally obtain 6 useful signal (C1 To C6)。
In an optional embodiment of the present embodiment, receiving first useful signal and Y signal continuing to can be with It is to detect Y+1 low level pulse, or detect Y+1 high level pulse.The low level pulse/high level arteries and veins Punching can adopt the waveform that square wave, sine wave, triangular wave etc. can distinguish low and high level pulse to represent that this is not restricted.It is preferred that Can produce low level pulse in the case where high level being provided for receiving terminal for the low level pulse for detecting, i.e. transmitting terminal, Adopt in this way, when transmitting terminal is communicated with receiving terminal, receiving terminal can use the high level that transmitting terminal is provided as power supply, be The power consuming device of receiving terminal provides electric energy, and for example, receiving terminal can utilize the high level that transmitting terminal is provided to be charged, and adopting should The equipment of method, when information exchange is carried out, can use same single line while completing power supply and information reception, reduce equipment body Product and manufacturing cost.
Step S208, after Y signal has been received, according to judged result, obtains X useful signal, wherein, X≤Y+1, And X is positive integer.
After Y signal has been received, through the process of step S206, X useful signal can be obtained, in subsequent decoding mistake Cheng Zhong, is decoded according to the X useful signal, so as to obtain the data of transmitting terminal transmission.
The said method provided by the present embodiment, after receiving for indicating signal that data transfer starts, by the signal Useful signal is recorded as, a signal is subsequently often received, the time interval between the signal and previous useful signal is carried out Judge, if the time interval is not the corresponding time interval of any Bit String with length for N, ignore the signal, if The time interval is the corresponding time interval of one of Bit String with length for N, then be useful signal by the signal record, With it, the noise interferences in channel effectively can be removed, the correctness and stability of data transfer are improved.
In an optional embodiment of the embodiment of the present invention, as shown in fig. 6, after step S208, can further root Decoded according to the X useful signal for obtaining, obtained the bit sequence of X useful signal transmission.Therefore, as shown in fig. 6, After step S208, the method can also include:
Step S210, it is determined that the time interval between the initial time in the X useful signal for obtaining per two neighboring signal, obtains To X-1 time interval;
Step S212, according to the corresponding relation for obtaining, when single in every continuous S time interval in X-1 time interval of acquisition Between be spaced corresponding Bit String, obtain the Bit String of S time interval transmission, wherein, the ratio that the S time interval is transmitted Special string is the corresponding Bit String of above-mentioned single time interval, and in the case of S > 1, the S time interval is identical, and S is for just Integer, and S≤X-1.
In an optional embodiment of the present embodiment, X-1=n*S, n >=1 and n are integer, using this optional embodiment party Formula, X signal can just transmit n*S data bit, lead to not the problem for decoding without there is unnecessary signal.
Step S214, by the Bit String of transmission is spliced per continuous S time interval in X-1 time interval, obtains X-1 The bit sequence of individual time interval transmission.
For example, it is assumed that X=9, S=1, in step S210, obtain 8 time intervals, the corresponding Bit String of each time interval according to It is secondary for " 01 ", " 00 ", " 01 ", " 10 ", " 11 ", " 10 ", " 00 " and " 01 ", then finally obtain 5 time intervals transmission Bit sequence is " 0100011011100001 ".
In an optional embodiment of the embodiment of the present invention, after step S214, bit that can also further to obtaining Sequence is decoded, and obtains the bit sequence of X-1 time interval transmission, in decoding, can with 8 bits as one group, One byte of composition, so as to obtain the data of X-1 time interval transmission.
Further, the bit sequence of X-1 time interval transmission can also include check bit, and for example, last byte is Check bit, then further can also carry out integrity check to the data before check bit according to the check bit.Data integrity school Test including but not limited to even-odd check, CRC check, digital signature, take and verify, MAC verification etc..
In an optional embodiment of the present embodiment, the initial time of the Z signal for receiving and previous signal rise The time interval at moment beginning is more than or equal to preset value.Alternatively, after step S204 completes to receive first useful signal, receive The hardware layer at end can filter out the initial time of current demand signal with the time interval of the initial time of previous signal less than preset value Current demand signal, the MCU of receiving terminal do not make any response to such signal, and only to the initial time of current demand signal with it is previous The time interval of the initial time of individual signal responds more than or equal to the current demand signal (i.e. the Z signal) of preset value, so The detection efficiency of follow-up useful signal can be improved, so as to reduce the workload of MCU.
Further, the filtration of above-mentioned hardware layer can be in the following ways:The signal receiver of receiving terminal is from first for receiving The initial time T of individual useful signal starts timing, in the time range of T+ preset values does not receive any signal, and pre- from T+ If restarting again to receive signal from being worth this moment, until receiving the Z signal (Z=1), and with the Z signal (Z=1) Initial time as new T, repeat the above steps, till the Y signal is received.
Further, the minima of the time interval that above-mentioned preset value can be to record in the corresponding relation of acquisition.Due to current demand signal Initial time and the initial time of previous signal time interval less than the time interval in the corresponding relation minima, then The current demand signal is necessarily not belonging to the useful signal in step S206, therefore can not receive the current demand signal.
In an optional embodiment of the present embodiment, in the case where transmitting terminal sends handshake to receiving terminal, then in step Rapid S204 is received for, before indicating signal that data transfer starts, receiving K signal, detect K signal it Between whether meet preset relation, wherein, the value of K can be default.Whether receiving terminal can be by judging between K signal Meet preset relation and judge whether the K signal is handshake.The step of Z signal of reception is performed if preset relation is met, Determine that the K signal for receiving is handshake, the signal after K signal is data transfer signal;If being unsatisfactory for presetting Relation then continues to detect K follow-up signal, until detecting K signal for meeting preset relation, that is, is being not detected by holding In the case of handss signal, receiving terminal persistently detects handshake, just starts receiving data until detecting handshake, that is, shakes hands Last signal of signal is indicated for the signal that data transfer starts, such that it is able to avoid the situation of the maloperation of transmitting terminal The lower situation to receiving terminal sending signal.
Further, whether K signal meets preset relation can be:Time interval (K >=2 between K signal of detection And K is integer, the initial time of two signals produces a time interval, and at least two) handshake should judge The very first time is spaced whether meet preset relation and the second time interval between, wherein, the very first time is at intervals of i-th signal Time interval between start time and the start time of the i-th -1 signal, the second time interval are the start time of i-th signal And the time interval between the start time of i+1 signal, i=2,4 ... ..., 2j, j=(K-1)/2, K >=3 and K are odd number; Further, the preset relation for meeting between very first time interval and the second time interval can be that any transmitting terminal is pre- with receiving terminal The relation first arranged, such as the second time interval are two times of very first time interval, naturally it is also possible to for other relations, concrete this reality Apply example to be not construed as limiting.
Further, can also be believed according to K by K signal come transmission time parameter, then in step S202 Number determine time parameter, then according to the time parameter come the corresponding relation in obtaining step S202.It is alternatively possible to first determine Very first time interval group and the second time interval group, wherein, very first time interval group includes that at least one very first time was spaced, the Two time interval groups include at least one second time intervals, then true according to very first time interval group and/or the second time interval group Fix time parameter.For example, if 5 handshake of transmitting terminal transmission, time parameter includes two:Etu and pdt, then One time interval group includes:T0 and t1, then can be t0=etu, t1=etu+pdt, then receiving terminal according to the very first time interval and Second time interval can determine the value of time parameter etu and pdt.Or, t0 and t1 can also meet other relations, only The value passed through by t0 and t1 can obtain the value of time parameter etu and pdt.In addition, if time parameter only has one It is individual, then the time parameter can also be determined by a time interval in K signal directly, or, if time parameter There are three, then the value of these three time parameters can be determined by the relation that the multiple time intervals between K signal meet, Concrete the present embodiment is repeated no more.Time parameter is determined by K signal, the theoretical time parameter and reality of receiving terminal can be overcome The inconsistent situation of time parameter, ensures the correctness of data transfer.
Similar to the signal of transmission data, receiving terminal can confirm to receive K in the case where K low level pulse is detected Individual signal.Or, or detect K high level pulse, the low level/high level pulse can adopt square wave, sine The modes such as ripple are realized.It is preferred that providing high level to receiving terminal using low level pulse, i.e. transmitting terminal is detected, needing to send K During individual signal, K low level pulse is produced, so, when transmitting terminal is communicated with receiving terminal, receiving terminal can be carried using transmitting terminal For high level as power supply, using the equipment of the method, when information exchange is carried out, same single line can be used and meanwhile complete supply Electricity and information are received, and reduce equipment volume and manufacturing cost.
In an optional embodiment of the embodiment of the present invention, can send comprising transmitting terminal in the Y signal for continuing to A end signal (A >=1 and be integer), or, it is also possible to after Y signal is continued to, receiving end/sending end The A end signal sent.End signal can, or other specific formats identical with handshake signal, pass through The end signal, receiving terminal can determine whether whether data bit string receives to be terminated.
Embodiment 3
A kind of signal receiving device is present embodiments provided, the device is used to perform the signal acceptance method described in embodiment 1.
In the present embodiment, signal receiving device can have but be not limited to smart card and/or intelligent cipher key equipment and/or dynamic mouth The electronic payment devices of the function of token.
Fig. 7 is a kind of structural representation of signal receiving device that the present embodiment is provided, as shown in fig. 7, the device includes:When Between interval acquiring unit 120, receiving unit 110, recording unit 140, judging unit 130 and useful signal acquiring unit 150. Illustrate separately below.
Time interval acquiring unit 120, for obtaining 2NIndividual length is right with time interval for each Bit String in the Bit String of N Should be related to, wherein, 2NIndividual Bit String is different, and the corresponding time interval of different Bit Strings is different, N >=1.
In an optional embodiment of the present embodiment, time interval acquiring unit 120 can obtain above-mentioned in the following manner Corresponding relation:Determine the time parameter of present data transmission, and 2 are obtained according to the time parameterNBit String of the individual length for N In each Bit String and time interval the corresponding relation.Wherein, the time parameter of present data transmission can be in advance with send out What sending end was consulted, or, or the data that send from transmitting terminal in obtain, for example, transmitting terminal can send number According to before, handshake is first sent, the time parameter of present data transmission, concrete this reality are transmitted by handshake to receiving terminal Apply example to be not construed as limiting.
Certainly, however it is not limited to which this, in another optional embodiment of the present embodiment, time interval acquiring unit 120 also may be used With not according to time parameter obtaining above-mentioned corresponding relation, but rule set in advance, directly obtain above-mentioned corresponding relation, example Such as, in the case of for N=1,1 corresponding time interval of bit 0 and bit, for example, respectively 10 μ s can directly be arranged With 15 μ s.Or, it is also possible to above-mentioned corresponding relation is stored in the receiving end in advance, and concrete the present embodiment is not construed as limiting.
In the case where above-mentioned corresponding relation is obtained according to time parameter, time interval acquiring unit 120 can be using sending out with data Sending end consults the time interval that computational methods calculate the length corresponding to the Bit String of N for determining in advance, such as works as N=n, sends Time interval T of the length corresponding to the Bit String of nm=etu+m*pdt (0≤m≤2n- 1), it would however also be possible to employ other advance associations The computational methods of business determine time interval, and the present embodiment is not particularly limited to this.Calculated by the advance computational methods consulted Go out the time interval of the data bit, it is ensured that the extensibility of data transfer, and though that is, the value of N be it is how many, transmitting terminal and Receiving terminal can calculate the time interval of data bit.
In an optional embodiment of the embodiment of the present invention, signal receiving device can also include time parameter updating block, For replacing construction parameter, and triggered time spacer units update above-mentioned corresponding relation, i.e. time parameter updating block according to default Currently used time parameter is replaced with new time parameter by rule, using new time parameter as present data transmission when Between parameter, triggered time interval acquiring unit 201 is according to new time parameter again obtaining 2NIndividual length is in the Bit String of N The corresponding relation of each Bit String and time interval.In the present embodiment, the determination of new time parameter can be by number Complete according to the negotiation of dispensing device and data sink, it is also possible to searched by data sending device and data sink advance The time parameter table of storage is completed, the time ginseng for determining that the data of the type should be used of such as tabling look-up when certain categorical data is sent Number.The time parameter of data sending device can be change, can match the data sink of different pieces of information disposal ability, Or different types of data are matched, can further improve the efficiency of data processing..
Receiving unit 110, for receiving Y+1 signal, wherein, first signal in the Y+1 signal is for referring to Show the signal that data transfer starts, wherein, Y+1 is the total quantity of the signal for receiving.
In the present embodiment, can be first data signal of data transfer for indicating signal that data transfer starts, for example, Can be after the predetermined moment (moment can be determined with transmitting terminal agreement by receiving terminal), first data for receiving Signal, or, if transmitting terminal is before data are sent out to receiving terminal, handshake is sent to receiving terminal, then for indicating data The signal that transmission starts can also be last signal in the handshake that the transmitting terminal for receiving is sent.In the present embodiment, Handshake refers to that transmitting terminal is used to refer to the signal of the initial time of receiving terminal data is activation, in addition, in the present embodiment, sends out Sending end can also transmit above-mentioned time parameter by handshake.
For example, if 5 handshake of transmitting terminal transmission, time parameter includes two:Etu and pdt, 5 handshake Time interval be respectively:T0, t1, t2 and t3, then can be t0=etu, t1=etu+pdt, then receiving terminal is according to t0 and t1 Can determine the value of time parameter etu and pdt;Or, it is also possible to determined according to the t2 in the second time interval group and t3, 2t2=2etu, 2t1=2 (etu+pdt), receiving terminal can also determine the value of time parameter etu and pdt according to t2 and t3.Or, T0 and t1 can also meet other relations, as long as the value that can obtain time parameter etu and pdt by the value of t0 and t1 is i.e. Can.In addition, if time parameter only one of which, then can also be directly by a time interval in K handshake come really The fixed time parameter, or, if time parameter there are three, the multiple time intervals between K handshake can be passed through Determining the value of these three time parameters, concrete the present embodiment is repeated no more the relation of satisfaction.Determined by K handshake Time parameter, the situation that the theoretical time parameter of receiving terminal can be overcome inconsistent with parameter actual time, is just ensureing data transfer True property.
Recording unit 140, for will be used for indicating that the signal that data transfer starts is defined as first useful signal.
Judging unit 130, for judging to receive the initial time and the initial time of previous useful signal of Z signal Whether time interval is a time interval in the corresponding relation that time interval acquiring unit 120 is obtained, wherein, Z= 2,3,4,……,Y。
Recording unit 140, is additionally operable to the starting of the initial time with previous useful signal of Z signal is determined in judging unit In the case that the time interval at moment is a time interval in the corresponding relation for obtaining, by the Z signal record effectively to believe Number.
Useful signal acquiring unit 150, for the record according to recording unit, obtains X useful signal, wherein, X < Y, And X is positive integer.
For example, it is assumed that the time parameter of current transmission is two time parameters, i.e. very first time parameter etu and the second time parameter Pdt, wherein etu=10 μ s, pdt=20 μ s.In N=1, Bit String (i.e. 1 bit that length is 1 is obtained according to time parameter Data or 1 Bit String) corresponding to time interval, i.e., 0 corresponding time interval is etu, and 1 corresponding time interval is pdt.The waveform that receiving unit 110 is received as shown in Fig. 2 wherein, for the 2nd signal for receiving, judging unit 130 Judge the initial time and first useful signal C of the signal1Initial time time interval be 15 μ s, the time interval and 1 Time interval corresponding to the Bit String 0 and 1 of position is differed, therefore the signal is not useful signal, is nothing by the signal record Effect signal D, should give up invalid signals D.
Judging unit 130 continues the initial time and first useful signal C for judging the 3rd signal1Initial time time between 20 μ s are divided into, the time interval is identical with the time interval corresponding to 1 Bit String 1, therefore the signal is useful signal, are remembered The signal record is second useful signal C by record unit 1402, and record second useful signal C2Initial time.
Judging unit 130 continues the initial time and second useful signal C for judging the 4th signal2Initial time time between Every ..., by that analogy, till the Y+1 signal ended for judging to receive.Finally obtain C1~C11This 11 have Effect signal, as shown in Figure 3.
In an optional embodiment of the embodiment of the present invention, the initial time of Z signal and previous signal it is initial when The time interval at quarter is more than or equal to preset value.I.e. in the optional embodiment, after receiving first useful signal, signal is received The time interval of initial time and the initial time of previous signal that the hardware layer of device can filter out current demand signal is less than preset value Current demand signal, the MCU of receiving terminal do not make any response to such signal, and only to the initial time of current demand signal with it is front The time interval of the initial time of one signal responds more than or equal to the current demand signal (i.e. the Z signal) of preset value, this Sample can improve the detection efficiency of follow-up useful signal, so as to reduce the workload of MCU.
Further, the filtration of above-mentioned hardware layer can be in the following ways:The signal receiver of signal receiving device is from receiving The initial time T of first useful signal start timing, do not receive any signal in the time range of T+ preset values, and from Restart again to receive signal from this moment of T+ preset values, until receiving the Z signal (Z=2), and believed with this Z The initial time of number (Z=2) is used as new T, repeat the above steps, till the Y+1 signal is received.
Further, the time interval in the corresponding relation that above-mentioned preset value can be obtained for time interval acquiring unit 120 is most Little value.Due to current demand signal initial time and the initial time of previous signal time interval less than in the corresponding relation when Between the minima that is spaced, then the current demand signal is necessarily not belonging to useful signal, therefore can not receive the current demand signal.
After useful signal acquiring unit 150 obtains X useful signal, signal receiving device can be according to the X useful signal Decoded, to obtain the data of transmitting terminal transmission.Therefore, in an optional embodiment of the embodiment of the present invention, such as scheme Shown in 8, signal receiving device can also include:Determining unit 160, for determining in the X useful signal for obtaining per adjacent Time interval between the initial time of two signals, obtains X-1 time interval, wherein, X≤Y+1, and X is just whole Number;Data capture unit 170, for according to the corresponding relation for obtaining, obtaining in X-1 time interval per the continuous S time The corresponding Bit String of single time interval in interval, obtains the Bit String of S time interval transmission, wherein, between the S time It is the corresponding Bit String of single time interval every the Bit String of transmission, in the case of S > 1, the S time interval is identical, S For positive integer, and S≤X-1;Concatenation unit 180, for what is transmitted every continuous S time interval in X-1 time interval Bit String is spliced, and obtains the Bit String of X-1 time interval transmission.
In an optional embodiment of the present embodiment, X-1=n*S, n >=1 and n are integer, using this optional embodiment party Formula, X signal can just transmit n*S data bit, lead to not the problem for decoding without there is unnecessary signal.
It is alternatively possible to the bit sequence of the X-1 time interval transmission to obtaining is decoded, X-1 time interval is obtained The data of transmission, in decoding, can constitute a byte, so as to obtain X-1 time interval with 8 bits as one group The data of transmission.
In an optional embodiment of the embodiment of the present invention, the bit sequence of X-1 time interval transmission can also include school Position is tested, for example, last byte is check bit, then the signal receiving device can also include:Verification unit, for X-1 The Bit String of individual time interval transmission is decoded, and obtains the data of X-1 time interval transmission, and to X-1 time interval The data of transmission carry out data integrity verifying.Data integrity verifying includes but is not limited to even-odd check, CRC check, numeral Signature, take and verify, MAC verification etc.
The concrete operations of the execution of unit in the present embodiment can be with further reference to each optional embodiment of embodiment 1 Description, specifically will not be described here.
Embodiment 4
A kind of signal receiving device is present embodiments provided, the signal receiving device can be used for performing the letter described by embodiment 2 Number method of reseptance.
The present embodiment provide signal receiving device with the difference of the signal receiving device described by embodiment 3 be, embodiment 1 In after receiving unit 110 has received Y+1 signal judging unit 130 judge whether each signal is useful signal again successively, And in the present embodiment, it is determined that after first useful signal, receiving unit 220 often receives a signal, judging unit 230 Judge whether the signal is useful signal.Compared with Example 1, the method that the present embodiment is provided is in hgher efficiency.
The structural representation of the signal receiving device that Fig. 9 is provided by the present embodiment, as shown in figure 9, signal receiving device master Including:Time interval acquiring unit 210, for obtaining 2NIndividual length is each Bit String and time interval in the Bit String of N Corresponding relation, wherein, 2NIndividual Bit String is different, and the corresponding time interval of different Bit Strings is different, N >=1;Receive Unit 220, is used for the signal for indicating that data transfer starts for receiving, and determines that signal is first useful signal, and continues Receive signal;Judging unit 230, for judge receiving unit 220 continue to the initial time of Z signal with it is previous When whether the time interval of the initial time of individual useful signal is one in the corresponding relation that time interval acquiring unit 210 is obtained Between be spaced, wherein, Z=1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, and Y is positive integer;Recording unit 240, For judging that in judging unit 230 initial time of Z signal and the time interval of the initial time of previous useful signal be In the case of a time interval in the corresponding relation that time interval acquiring unit 210 is obtained, it is have by the Z signal record Effect signal;Useful signal acquiring unit 250, for the record result according to recording unit 240, obtains receiving unit 220 and connects X useful signal in the Y signal for receiving.
In an optional embodiment of the embodiment of the present invention, for indicating that the signal that data transfer starts can be data transfer First data signal or can also be receiving unit 220 receive handshake in last signal.
In an optional embodiment of the embodiment of the present invention, time interval acquiring unit 220 can be obtained in the following manner 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N:Determine the time parameter of present data transmission, And 2 are obtained according to the time parameterNThe corresponding relation of the individual length for each Bit String and time interval in the Bit String of N.
In an optional embodiment of the embodiment of the present invention, as shown in Figure 10, the signal receiving device can also include:Really Order unit 260, for determining the time interval between the initial time in the X useful signal for obtaining per two neighboring signal, X-1 time interval is obtained, wherein, X≤Y+1, and X is positive integer;Data capture unit 270, for according between the time Every the corresponding relation that acquiring unit 220 is obtained, obtain in X-1 time interval in often continuous S time interval between the single time Every corresponding Bit String, the Bit String of S time interval transmission is obtained, wherein, the Bit String of the S time interval transmission is The corresponding Bit String of single time interval, in the case of S > 1, the S time interval is identical, and S is positive integer, and S≤ X-1;Concatenation unit 280, for the Bit String transmitted per continuous S time interval in X-1 time interval is spliced, Obtain the Bit String of X-1 time interval transmission.
In an optional embodiment of the embodiment of the present invention, the signal receiving device can also include:Verification unit, is used for The Bit String of X-1 time interval transmission is decoded, the data of X-1 time interval transmission are obtained, and during to X-1 Between the data of interval transmission carry out data integrity verifying.
In a particular application, the above-mentioned unit of the signal receiving device that the present embodiment is provided can be according to described by embodiment 2 Mode perform corresponding operation, specifically will not be described here.
In flow chart or here any process described otherwise above or method description are construed as, expression include one or Module, fragment or part that more are used for the code of the executable instruction of the step of realizing specific logical function or process, and The scope of the preferred embodiment of the present invention includes other realization, wherein order that is shown or discussing can not be pressed, including root 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 by embodiments of the invention institute Category those skilled in the art understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.In above-mentioned enforcement In mode, software or firmware that multiple steps or method can be performed in memory and by suitable instruction execution system with storage To realize.For example, if realized with hardware, and in another embodiment, can be with following technology well known in the art Any one of or their combination realizing:With for realizing that to data signal the discrete of the logic gates of logic function is patrolled Collect circuit, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate Array (FPGA) etc..
Those skilled in the art are appreciated that to realize that all or part of step that above-described embodiment method is carried can be The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, the journey Sequence upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, during each functional unit in each embodiment of the invention can be integrated in a processing module, or each Unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated module both can be with Realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software work( The form of energy module is realized and as when independent production marketing or use, it is also possible to is stored in an embodied on computer readable storage and is situated between In matter.
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 ", " specific example ", Or the description of " some examples " etc. means that the specific features, structure, material or the feature that describe with reference to the embodiment or example are included In at least one embodiment or example of the present invention.In this manual, the schematic representation of above-mentioned term is not necessarily referred to It is identical embodiment or example.And, the specific features of description, structure, material or feature can at any one or Combined in multiple embodiments or example in an appropriate manner.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment be it is exemplary, It is not considered as limiting the invention, one of ordinary skill in the art is in the case of the principle and objective without departing from the present invention Above-described embodiment can be changed within the scope of the invention, be changed, being replaced and modification.The scope of the present invention is by appended power Profit requires and its is equal to limit.

Claims (14)

1. a kind of signal acceptance method, it is characterised in that include:
Obtain 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N, wherein, 2NThe individual ratio Special string is different, and the corresponding time interval of the different Bit Strings is different, N >=1;
Y+1 signal is received, wherein, first signal in the Y+1 signal starts for indicating data transfer Signal, Y >=1, and Y are positive integer, and Y+1 is the total quantity of the signal for receiving;
By described for indicating that the signal that data transfer starts is defined as first useful signal;
Whether it is acquisition that judgement receives the initial time of Z signal with the time interval of the initial time of previous useful signal The corresponding relation in a time interval, if so, then by the Z signal record be useful signal, wherein, Z =2,3,4 ..., Y+1;
According to judged result, X useful signal is obtained, wherein, X≤Y+1, and X is positive integer.
2. a kind of signal acceptance method, it is characterised in that include:
Obtain 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N, wherein, 2NThe individual ratio Special string is different, and the corresponding time interval of the different Bit Strings is different, N >=1;
Receive for indicating signal that data transfer starts, determine that the signal is first useful signal;
Signal is continued to, judgement receives the initial time of Z signal and the time of the initial time of previous useful signal Whether interval is a time interval in the corresponding relation for obtaining, and is then if so, effective by the Z signal record Signal, wherein, it is positive integer that Z=1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, Y >=1, and Y;
After Y signal has been received, according to judged result, X useful signal is obtained, wherein, X≤Y+1, and X is for just Integer.
3. method according to claim 1 and 2, it is characterised in that described for indicating that the signal that data transfer starts is Last signal in first data signal of data transfer or the handshake of reception.
4. method according to claim 1 and 2, it is characterised in that the initial time of the Z signal with it is previous The time interval of the initial time of signal is more than or equal to preset value.
5. method according to claim 4, it is characterised in that:The preset value be obtain the corresponding relation in when Between the minima that is spaced.
6. the method according to any one of claim 1 to 5, it is characterised in that the acquisition 2NRatio of the individual length for N In special string, each Bit String is included with the corresponding relation of time interval:Determine the time parameter of present data transmission, and according to described Time parameter obtains 2NThe corresponding relation of the individual length for each Bit String and time interval in the Bit String of N.
7. the method according to any one of claim 1 to 6, it is characterised in that obtain the X useful signal it Afterwards, methods described also includes:
Determine the time interval between the initial time of every two neighboring signal in the X useful signal, obtain X-1 time Interval;
According to the corresponding relation for obtaining, the single time in every continuous S time interval in the acquisition X-1 time interval Corresponding Bit String is spaced, the Bit String of the S time interval transmission is obtained, wherein, the S time interval transmission Bit String is the corresponding Bit String of the single time interval, and in the case of S > 1, the S time interval is identical, and S is Positive integer, and S≤X-1;
By the Bit String of transmission is spliced per continuous S time interval in the X-1 time interval, the X-1 is obtained The bit sequence of time interval transmission.
8. method according to claim 7, it is characterised in that in the bit sequence for obtaining the X-1 time interval transmission After row, methods described also includes:The bit sequence of X-1 time interval transmission is decoded, the X-1 is obtained The data of individual time interval transmission, and the data to X-1 time interval transmission carry out data integrity verifying.
9. a kind of signal receiving device, it is characterised in that include:
Time interval acquiring unit, for obtaining 2NIndividual length is closed for each Bit String in the Bit String of N is corresponding with time interval System, wherein, 2NThe individual Bit String is different, and the corresponding time interval of the different Bit Strings is different, N >=1;
Receiving unit, for receiving Y+1 signal, wherein, first signal in the Y+1 signal is for indicating The signal that data transfer starts, wherein, Y+1 is the total quantity of the signal for receiving;
Recording unit, for by described for indicating that the signal that data transfer starts is defined as first useful signal;
Judging unit, for judging to receive the initial time of Z signal and the time of the initial time of previous useful signal Whether interval is a time interval in the corresponding relation for obtaining, wherein, Z=2,3,4 ... ..., Y;
The recording unit, for the initial time of the Z signal and previous useful signal are determined in the judging unit Initial time time interval be obtain the corresponding relation in a time interval in the case of, will described the Z letter Number it is recorded as useful signal;
Useful signal acquiring unit, for the record according to the recording unit, obtains X useful signal, wherein, X < Y, And X is positive integer.
10. a kind of signal receiving device, it is characterised in that include
Time interval acquiring unit, for obtaining 2NIndividual length is closed for each Bit String in the Bit String of N is corresponding with time interval System, wherein, 2NThe individual Bit String is different, and the corresponding time interval of the different Bit Strings is different, N >=1;
Receiving unit, is used for the signal for indicating that data transfer starts for receiving, and determines that the signal is first useful signal, And continue to signal;
Judging unit, for judging that the receiving unit continues to the initial time and previous useful signal of Z signal The time interval of initial time be whether a time interval in the corresponding relation for obtaining, wherein, Z= 1,2,3,4 ... ..., Y, Y are the quantity of the signal for continuing to, and Y is positive integer;
Recording unit, for judge in the judging unit initial time of Z signal and previous useful signal it is initial when The time interval at quarter be obtain the corresponding relation in a time interval in the case of, by the Z signal record be Useful signal;
Useful signal acquiring unit, for the record result according to the recording unit, obtains the Y that the receiving unit is received X useful signal in individual signal.
11. devices according to claim 9 or 10, it is characterised in that described for indicating signal that data transfer starts First data signal for data transfer or last signal in the handshake of reception.
12. devices according to any one of claim 9 to 11, it is characterised in that the time interval acquiring unit passes through In the following manner obtains 2NCorresponding relation of the individual length for each Bit String and time interval in the Bit String of N:Determine that current data is passed Defeated time parameter, and 2 are obtained according to the time parameterNIndividual length is each Bit String in the Bit String of N and time interval The corresponding relation.
13. devices according to any one of claim 9 to 12, it is characterised in that also include:
Determining unit, for determining the time interval between the initial time in the X useful signal for obtaining per two neighboring signal, X-1 time interval is obtained, wherein, X≤Y+1, and X is positive integer;
Data capture unit, it is individual per continuous S in the X-1 time interval for according to the corresponding relation for obtaining, obtaining The corresponding Bit String of single time interval in time interval, obtains the Bit String of the S time interval transmission, wherein, it is described The Bit String of S time interval transmission is the corresponding Bit String of the single time interval, in the case of S > 1, the S Time interval is identical, and S is positive integer, and S≤X-1;
Concatenation unit, for the Bit String transmitted per continuous S time interval in the X-1 time interval is spliced, Obtain the Bit String of the X-1 time interval transmission.
14. devices according to claim 13, it is characterised in that also include:
Verification unit, for decoding to the Bit String that the X-1 time interval is transmitted, obtains between the X-1 time Every the data of transmission, and the data to X-1 time interval transmission carry out data integrity verifying.
CN201510604997.6A 2015-09-21 2015-09-21 Signal receiving method and device Active CN106549727B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510604997.6A CN106549727B (en) 2015-09-21 2015-09-21 Signal receiving method and device
PCT/CN2016/099621 WO2017050233A1 (en) 2015-09-21 2016-09-21 Method and device for receiving signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510604997.6A CN106549727B (en) 2015-09-21 2015-09-21 Signal receiving method and device

Publications (2)

Publication Number Publication Date
CN106549727A true CN106549727A (en) 2017-03-29
CN106549727B CN106549727B (en) 2020-08-21

Family

ID=58364543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510604997.6A Active CN106549727B (en) 2015-09-21 2015-09-21 Signal receiving method and device

Country Status (2)

Country Link
CN (1) CN106549727B (en)
WO (1) WO2017050233A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185720A1 (en) * 2004-02-24 2005-08-25 Kwok Chung Y. Pseudo-synchronous one wire bidirectional bus interface
CN101431390A (en) * 2008-11-19 2009-05-13 北京巨数数字技术开发有限公司 Circuit and method for data serial transmission
CN102035705A (en) * 2010-11-23 2011-04-27 深圳市豪恩安全科技有限公司 Method and system for transmitting bus data
CN102244682A (en) * 2011-07-19 2011-11-16 中国科学院软件研究所 Covert communication method under cloud computing environment
CN102333054A (en) * 2011-09-26 2012-01-25 北京天地融科技有限公司 Data sending and receiving method and device
CN103716270A (en) * 2011-09-26 2014-04-09 天地融科技股份有限公司 Data sending and receiving method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729089B (en) * 2008-10-23 2013-07-10 弥亚微电子(上海)有限公司 Transmitter and receiver of communication system and synchronization method thereof
JP2010278550A (en) * 2009-05-26 2010-12-09 Toshiba Corp Ofdm receiver

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050185720A1 (en) * 2004-02-24 2005-08-25 Kwok Chung Y. Pseudo-synchronous one wire bidirectional bus interface
CN101431390A (en) * 2008-11-19 2009-05-13 北京巨数数字技术开发有限公司 Circuit and method for data serial transmission
CN102035705A (en) * 2010-11-23 2011-04-27 深圳市豪恩安全科技有限公司 Method and system for transmitting bus data
CN102244682A (en) * 2011-07-19 2011-11-16 中国科学院软件研究所 Covert communication method under cloud computing environment
CN102333054A (en) * 2011-09-26 2012-01-25 北京天地融科技有限公司 Data sending and receiving method and device
CN103716270A (en) * 2011-09-26 2014-04-09 天地融科技股份有限公司 Data sending and receiving method and device

Also Published As

Publication number Publication date
CN106549727B (en) 2020-08-21
WO2017050233A1 (en) 2017-03-30

Similar Documents

Publication Publication Date Title
CN104135741B (en) Method, bluetooth equipment and the system of Bluetooth Low Energy communication
CN104991135B (en) Taiwan area recognition methods and device
CN107749848A (en) Processing method, device and the Internet of things system of Internet of Things data
CN106549748A (en) A kind of data transmission method and data handling equipment
CN104714920A (en) Baud rate self-adaptation signal receiving method
CN104378260B (en) Load factor test method and device, the system of CAN bus
CN102820970B (en) Electronic installation and the authentication method of battery module thereof
CN103778772A (en) Framing and interconnection transmitting method in electricity utilization information collecting system
CN107346997B (en) A kind of data transmission method and terminal
CN103152401B (en) Mobile terminal and carry out the method, system and the cloud server that log in by it
CN107241162A (en) A kind of data transmission method and device
CN103957074A (en) Data communication method based on intelligent terminal audio port
CN104620650B (en) A kind of method of acquisition of information, terminal, base station and system
CN103840914B (en) Data communication method, terminal and information security equipment
CN106549728A (en) A kind of data receiver method and device
CN106027196B (en) A kind of data transmission method and system
CN106549727A (en) Signal receiving method and device
KR102189511B1 (en) Method and apparatus for transmitting data, method and apparatus for receiving data
CN106549921A (en) Data transmission method and device
CN103811022B (en) Method and device for waveform analysis
CN106549890A (en) A kind of data receiver method and device
CN106487421A (en) Power line carrier communication test system and its method of testing
CN106547711A (en) Data transmission method for uplink and device and data receiver method and device
CN103295037A (en) New rural cooperative medical system participator identity information verification method
CN103001901B (en) Integrated circuit high-speed digital interface module based on modified difference pulse code modulation (MDPCM)

Legal Events

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