WO2017050235A1 - 数据发送方法和装置及数据接收方法和装置 - Google Patents
数据发送方法和装置及数据接收方法和装置 Download PDFInfo
- Publication number
- WO2017050235A1 WO2017050235A1 PCT/CN2016/099623 CN2016099623W WO2017050235A1 WO 2017050235 A1 WO2017050235 A1 WO 2017050235A1 CN 2016099623 W CN2016099623 W CN 2016099623W WO 2017050235 A1 WO2017050235 A1 WO 2017050235A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- time
- time interval
- data
- signals
- signal
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
- H04L1/0063—Single parity check
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1621—Group acknowledgement, i.e. the acknowledgement message defining a range of identifiers, e.g. of sequence numbers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0067—Rate matching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
- H04L1/1671—Details of the supervisory signal the supervisory signal being transmitted together with control information
- H04L1/1678—Details of the supervisory signal the supervisory signal being transmitted together with control information where the control information is for timing, e.g. time stamps
Definitions
- the present application relates to the field of electronic technologies, and in particular, to a data transmitting method and apparatus, and a data receiving method and apparatus.
- This application is intended to address one of the above problems.
- a data sending method includes: determining a time parameter of a current data transmission; and obtaining, according to a time parameter, a correspondence between 2 N different values and a time interval included in the N-bit data, wherein different time intervals corresponding to different values are different, N ⁇ 1; acquiring the current data bit string to be sent; grouping the data bit strings, each group of data is N bits; according to the obtained correspondence relationship, sending the group data according to the time interval corresponding to the value of each group of data The set of data.
- Item 2 The method according to the first aspect, wherein, for each set of data, transmitting the set of data comprises: generating and transmitting M signals, wherein a start time of each signal and a start time of an adjacent previous signal The interval is the time interval corresponding to the value of the data of the group, M ⁇ 1 and M is a natural number.
- Solution 3 The method according to the second aspect, wherein generating M signals comprises: generating M low-level pulses according to time intervals.
- Item 4 The method according to any one of the first to third aspects, characterized in that before the sending of the first set of data, the method further comprises: generating and transmitting K handshake signals, K ⁇ 2 and K being an integer.
- Solution 5 According to the method of the fourth method, the preset relationship is satisfied between the K handshake signals.
- Solution 6 The method according to the fifth aspect, wherein the K handshake signals include time parameters.
- Item 8 The method according to Item 7, wherein the first time interval group and/or the second time interval group are determined according to the time parameter, the first time interval group includes at least one first time interval, and the second time interval group includes at least one The second time interval.
- the ninth aspect of the invention wherein the generating the K handshake signals comprises: generating K low-level pulses according to the first time interval and the second time interval.
- Option 10 According to the method of any one of the schemes one to nine, which also includes:
- the current time parameter is replaced with a new time parameter, and the new time parameter is used as a time parameter of the current data transmission; the corresponding relationship is updated according to the current data transmission time parameter; and the updated correspondence relationship is used for data. transmission.
- a data receiving method comprising: determining a time parameter of a current data transmission; receiving X signals, determining a time interval between start times of each of the two adjacent ones of the X signals, obtaining X- 1 time interval, where X is a positive integer, and X>1; according to the determined time parameter, a value corresponding to a single time interval in each consecutive S time interval in X-1 time intervals is obtained, and S time intervals are obtained.
- the value transmitted, the value transmitted in S time intervals is the value corresponding to a single time interval, and the value is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same , X and S are both positive integers, and S ⁇ X-1, N ⁇ 1.
- Item 12 The method according to Item 11, wherein before acquiring the value of the first consecutive S time intervals in the X-1 time intervals, the method further comprises: acquiring the 2 N included in the N-bit data according to the time parameter. The correspondence between different values and time intervals, wherein different values correspond to different time intervals.
- receiving the X signals comprises: detecting X times of low-level pulses.
- the method further comprises: receiving K signals, and detecting whether a preset relationship is satisfied between the K signals, wherein , K ⁇ 2 and K is an integer.
- determining the time parameter of the current data transmission comprises: determining the time parameter according to the K signals.
- detecting whether the preset relationship is satisfied between the K signals comprises: detecting a time interval between the K signals, and determining the first time interval and the second time interval Whether the preset relationship is satisfied, the first time interval is a time interval between the start time of the i-th signal and the start time of the i-1th signal, and the second time interval is the start time and the first time of the i-th signal
- determining the time parameter according to the K signals comprises: determining a first time interval group and/or a second time interval group, the first time interval group including at least one first time interval, The second time interval group includes at least one second time interval; the time parameter is determined according to the first time interval group and/or the second time interval group.
- Item 20 The method according to any one of the items 11 to 18, further comprising: replacing the currently used time parameter with a new time parameter according to a preset rule, and using the new time parameter as the current data transmission Time parameter; receiving X signals, determining a time interval between the start times of each of the two adjacent signals, obtaining X-1 time intervals, wherein X is a positive integer, and X>1; According to the current time parameter of the data transmission, the value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained, and the value of the S time interval transmission is obtained, and the value of the S time interval transmission is a single time interval. Corresponding values, the value is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same.
- the receiving the X signals comprises: receiving Y+1 signals, removing interference in the Y+1 signals, and obtaining X signals, wherein Y+1 ⁇ X.
- a twenty-second aspect a data transmitting apparatus, comprising: a time parameter determining unit, a time interval obtaining unit, a data bit string obtaining unit, and a sending unit, wherein: the time parameter determining unit is configured to determine a time parameter of the current data transmission; a time interval obtaining unit, configured to acquire, according to a time parameter, a correspondence between 2 N different values and time intervals included in the N-bit data, wherein different time intervals corresponding to different values are different, N ⁇ 1; the data bit string acquiring unit is used to Obtaining a data bit string to be sent, and grouping the data bit string, each group of data is N bits; the sending unit is configured to represent the group data according to the acquired correspondence relationship at a time interval corresponding to the value of each group of data Send the set of data.
- Item 23 The device according to the solution 22, wherein, for each group of data, the sending unit is configured to send the group
- the data includes: a sending unit, configured to generate and send M signals, wherein a time interval between a start time of each signal and a start time of an adjacent previous signal is a time interval corresponding to a value of the group of data, M ⁇ 1 And M is a natural number.
- the device of any one of the twenty-two to twenty-fourth aspect further comprising: a handshake signal sending unit, wherein: the handshake signal sending unit is configured to generate and send K handshake signals, K ⁇ 2 and K is an integer.
- Item 26 The device according to the twenty-fifth aspect, wherein the preset relationship is satisfied between the K handshake signals.
- Item 27 The device according to the twenty-fifth aspect, wherein the K handshake signals comprise time parameters.
- the device of the twenty-sixth or twenty-seventh aspect is characterized in that: the preset relationship between the K handshake signals is met: the preset relationship is satisfied between the first time interval and the second time interval, A time interval is a time interval between a start time of the i-th handshake signal and a start time of the i-1th handshake signal, and the second time interval is a start time of the i-th handshake signal and an i+1th handshake signal.
- the device of claim 28, further comprising: a handshake signal time interval determining unit, configured to determine the first time interval group and/or the second time interval group according to the time parameter, the first time interval group At least one first time interval is included, and the second time interval group includes at least one second time interval.
- a handshake signal time interval determining unit configured to determine the first time interval group and/or the second time interval group according to the time parameter, the first time interval group At least one first time interval is included, and the second time interval group includes at least one second time interval.
- the handshake signal sending unit is configured to generate K handshake signals, including: the handshake signal sending unit is configured to use the first time interval and the second time interval Generate K low-level pulses.
- the device according to any one of the twenty-second to thirty-third aspect, further comprising a time parameter updating unit, wherein: the time parameter updating unit is configured to replace the currently used time parameter with the preset rule according to the preset rule The new time parameter is used as the time parameter of the current data transmission, and the triggering time interval obtaining unit updates the corresponding relationship according to the new time parameter; the time interval obtaining unit is configured to update the corresponding relationship according to the time parameter of the current data transmission; The sending unit is configured to perform data transmission by using the updated correspondence.
- a data receiving apparatus comprising: a time parameter determining unit receiving unit and a data acquiring unit, wherein: a time parameter determining unit, configured to determine a time parameter of a current data transmission; and a receiving unit, configured to receive the X Signals, determining a time interval between the start times of each of the two adjacent X signals, resulting in X-1 time intervals, where X is a positive integer and X>1; a data acquisition unit for And obtaining, according to the determined time parameter, a value corresponding to a single time interval in each of the consecutive S time intervals in the X-1 time interval, and obtaining a value of the S time interval transmissions, where the value of the S time interval transmission is the single
- the value corresponding to the time interval is one of 2 N different values included in the N-bit data, wherein, in the case of S>1, the S time intervals are the same.
- the device of claim 32 further comprising a time interval acquisition unit, and a time interval acquisition unit, configured to acquire, in the data acquisition unit, the first consecutive S time interval transmission in the X-1 time interval.
- a time interval acquisition unit and a time interval acquisition unit, configured to acquire, in the data acquisition unit, the first consecutive S time interval transmission in the X-1 time interval.
- the receiving unit is configured to receive the X signals, the receiving unit is configured to detect X times of the low level pulse.
- the device of any one of the items 32 to 35 further comprising a handshake signal receiving unit, wherein: the handshake signal receiving unit is configured to receive K signals and detect between K signals Whether the preset relationship is satisfied.
- time parameter determining unit is configured to determine a time parameter of the current data transmission, and the time parameter determining unit is configured to determine the time parameter according to the K signals.
- the handshake signal receiving unit is configured to receive the K signals
- the notification receiving unit performs to receive the X signals.
- the device of claim 38 wherein the time parameter determining unit is configured to determine a time parameter of the current data transmission, the time parameter determining unit is configured to determine the first time interval group and/or the second time interval group.
- the first time interval group includes at least one first time interval
- the second time interval group includes at least one second time interval
- the time parameter is determined according to the first time interval group and/or the second time interval group.
- the handshake signal receiving unit is configured to receive the K signals
- the handshake signal receiving unit is configured to detect K times of the low level pulse.
- Item 41 The device according to any one of the items 39 to 40, further comprising a time parameter updating unit, wherein: a time parameter updating unit, configured to replace the currently used time parameter with the preset rule a new time parameter, the new time parameter is used as a time parameter of the current data transmission; the receiving unit is configured to receive X signals, and determine a time interval between the start times of each of the two adjacent signals, Obtaining X-1 time intervals, wherein X is a positive integer, and X>1; and a data obtaining unit, configured to update a time parameter of the current data transmission obtained by the unit according to the time parameter, and obtain each consecutive X-1 time interval The value corresponding to a single time interval in the S time intervals, the value of the S time interval transmission is obtained, and the value transmitted in the S time intervals is a value corresponding to a single time interval, and the value is 2 N different values included in the N bit data.
- a time parameter updating unit configured to replace the currently used time parameter with the preset rule
- a filtering unit configured to receive Y+1 signals, remove interference in the Y+1 signals, and obtain X signals are sent to the receiving unit, where Y+1 ⁇ X.
- the information provided by the present application can transmit information by transmitting a time interval, and the data sending device can represent the transmitted data information by using a time interval between two signals, thereby Data communication is performed using only two lines, and the data transmitting device and the data receiving device can realize communication using only two communication interfaces.
- FIG. 1 is a flowchart of a data sending method according to Embodiment 1 of the present application.
- FIG. 2 is a schematic diagram of waveforms of each group of data that can be corresponding to one time interval and corresponding to multiple time intervals according to Embodiment 1 of the present application;
- FIG. 6 is a flowchart of a data receiving method according to Embodiment 2 of the present application.
- FIG. 7 is a schematic structural diagram of a data sending apparatus according to Embodiment 3 of the present application.
- FIG. 8 is a schematic structural diagram of a data receiving apparatus according to Embodiment 4 of the present application.
- FIG. 9 is a flowchart of a method for data transmission using a new time parameter according to Embodiment 5 of the present application.
- FIG. 10 is a flowchart of another method for data transmission using a new time parameter according to Embodiment 6 of the present application.
- FIG. 11 is a flowchart of still another method for data transmission using a new time parameter according to Embodiment 7 of the present application.
- FIG. 12 is a flowchart of still another method for data transmission using a new time parameter according to Embodiment 8 of the present application.
- FIG. 13 is a schematic structural diagram of a data transmission system using a new time parameter according to Embodiment 9 of the present application.
- FIG. 16 is a schematic structural diagram of a signal receiving apparatus according to Embodiment 12 of the present application.
- FIG. 17 is a schematic structural diagram of a signal receiving apparatus according to Embodiment 13 of the present application.
- FIG. 20 is a schematic structural diagram of a data processing device according to Embodiment 16 of the present application.
- FIG. 21 is a schematic structural diagram of another data processing device according to Embodiment 17 of the present application.
- FIG. 1 is a flowchart of an optional data sending method in this embodiment.
- the execution body of the embodiment of the present application may be a transmitting end that transmits data.
- the data transmission method mainly includes the following steps 101 to 105.
- step 101 a time parameter of the current data transmission is determined.
- the time parameter of the current data transmission may be preset and determined in the sending end of the data, or may be determined after the data sending end is obtained from other devices, and may also be data.
- the method of determining the time parameter of the current data transmission is not limited to the method for determining the time parameter of the current data transmission, and the manner of determining the time parameter of the current data transmission should belong to the protection scope of the present application. .
- this step is an optional step.
- Step 102 Acquire a correspondence between 2 N different values and time intervals included in the N-bit data according to the time parameter, where different time values corresponding to different values are different, N ⁇ 1.
- the correspondence between the 2 N different values and the time interval included in the N-bit data is obtained according to the time parameter, wherein the time interval corresponding to the different values is different, and N ⁇ 1 can also be understood as:
- each bit string of two bit strings of length 1 is 0 and 1, respectively.
- the sending end of the data may calculate a time interval corresponding to the value by using a calculation method determined in advance by the receiving end of the data.
- the present application may also use other pre-negotiated calculation methods to determine the time interval, which is not limited in this application.
- the time interval corresponding to the value is calculated by a pre-negotiated calculation method to ensure the scalability of data transmission, that is, regardless of the value of N, both the transmitting end and the receiving end can calculate different values and time intervals. Correspondence relationship.
- the sending end of the data may also use a list that is pre-negotiated and stored with the receiving end of the data to determine a time interval corresponding to the value, and determine the corresponding value by using a lookup list.
- the time interval can increase the efficiency of obtaining the time interval corresponding to the value.
- the sending end of the data searches the pre-stored list to determine the Whether the time interval corresponding to the calculated value belongs to the receiving range of the receiving end of the data.
- the time interval corresponding to the value is obtained, and the scalability of the data transmission can be improved under the premise that the receiving end can receive normally.
- Step 103 Acquire a data bit string to be currently transmitted.
- the sending end of the data may generate a data bit string to be sent by itself, or may receive a data bit string to be sent from another device, and the application is not limited to the current to be sent.
- the manner of obtaining the data bit string, as long as the data bit string currently to be sent can be finally obtained, should belong to the protection scope of the present application.
- the transmitting end of the data can be used as a switching device, which can transfer the communication between the other device (hereinafter referred to as the first terminal) and the receiving end of the data, in this case, Data transmission
- the sending end obtains the data bit string to be sent in the following manner: Step 103a, receiving the first data by using the first interface; Step 103b, decoding the first data according to the protocol supported by the first interface, and obtaining the first data to be sent Bit string.
- the transmitting end of the data When the transmitting end of the data is used as the switching device, it may have two communication interfaces, such as a first interface and a second interface, the first interface is an interface for communicating with the first terminal, and the second interface is for communicating with the receiving end of the data.
- the first interface may be an existing universal interface, including a wireless interface, such as a USB interface, an audio interface, a serial port, a Bluetooth, a wifi, an NFC interface, etc., through which the first interface can be connected to the first terminal, Receiving first data sent from the first terminal.
- the first terminal may be a mobile phone, a computer, a PAD, or the like.
- the first data may be a mobile phone, a computer, or a data that needs to be transmitted on the PAD end.
- the first interface can decode the received first data by using a protocol supported by itself according to the interface type.
- the first interface may decode the first data according to the USB protocol, the audio protocol, the serial protocol, the Bluetooth protocol, the wifi protocol, the NFC protocol, etc., to obtain a data bit string corresponding to the first data, where the data bit string is to be sent.
- the first data bit string (ie, the current data bit string to be transmitted).
- the second interface may be an interface connected to the electronic payment device (ie, the receiving end of the data) through which the data is transmitted to the electronic payment device.
- the second interface can be a two-wire interface; the electronic payment device can implement a USBkey function, an OTP function, and a smart card function.
- the transmitting end of the data of the present application is used as a switching device, and data conversion is performed through the first interface, so that data sent by the terminal can be converted into data suitable for communicating with the receiving end of the data, thereby realizing conversion between different interfaces.
- the scope of use of the transmitting end of the data of the present application is expanded.
- the transmitting end of the data is used as a switching device, the data bit string to be sent is obtained through the first interface, and the data bit string to be sent is sent through the second interface by using the data sending method described in this application. .
- the transmitting end of the data in the embodiment of the present application may also receive the X signals in the receiving method in the following Embodiment 2 through the second interface by using the receiving method in Embodiment 2, and according to the obtained S signals.
- the interface sends the second data.
- the first interface may encode the received second data bit string by using a protocol supported by the first interface according to the interface type.
- the first interface may be according to a USB protocol, an audio protocol, a serial protocol, a Bluetooth protocol, or the like.
- the wifi protocol, the NFC protocol, and the like encode the second data bit string to obtain the second data to be transmitted.
- the data bit conversion generated by the first interface can be converted into data that can be supported by the universal interface protocol, and the conversion between different interfaces can be realized, and the use range of the data sending end of the embodiment is expanded. .
- step 104 the data bit strings are grouped, and each set of data is N bits.
- step 103 and step 104 may also be performed at any time before step 102, as long as the data bit strings are acquired and grouped before the data is transmitted.
- the sending end of the data may perform step 101 and step 102 once before each data is sent, or the sending end of the data may also perform step 101 and step 102 first, and then send data every time, and use step 102 to obtain N.
- the correspondence between the 2 N different values and the time interval included in the bit data is encoded by the data to be transmitted, or an expiration date may be set, and the data is transmitted within the expiration date, and the N-bit data is acquired using step 102.
- each time an event trigger is received for example, the user inputs a time parameter of the current data transmission, and calculates a correspondence between the 2 N different values and the time interval included in the N-bit data.
- the specific embodiment is not limited.
- the data bit string is grouped, and each group of data is N bits, which may be grouped in multiple manners, may be grouped by using 1 bit each group, or may be included in each group.
- the bit mode is grouped.
- the data bit string includes a single number, since the data bit string cannot be completely grouped according to 2 bits, the data bit string can be complemented by 0 and then grouped.
- the data transmitting end and the data receiving end are preset.
- the method of complementing or negotiating 0 is to add 0 to the last bit of the bit string when the data bit string is transmitted from the upper bit of the data.
- the high bit of the bit string is padded with 0.
- each group includes 3 bits or more can be grouped by referring to each group including 2 bits, and details are not described herein again.
- Step 105 Send the group data according to the acquired correspondence, by indicating the group of data at a time interval corresponding to the value of each group of data.
- the value of each set of data may correspond to one time interval, or may correspond to multiple identical time intervals.
- a set of data includes 2 bits, and the value of the set of data may be 00, 01, 10, and 11.
- the value of the set of data is 00
- the value 00 may be represented by one time interval.
- the time length corresponding to the one time interval may be etu, that is, the expression of the data 00 may be a time interval of, for example, 10 ⁇ s.
- the value 00 may be represented by five time intervals.
- the time length of each of the five time intervals may be etu, that is, the data of the group of data 00 may be expressed by five signals having the same time interval, and each time interval is a time interval of 10 ⁇ s.
- the value of each set of data corresponds to a time interval, and the data transmission speed is fast and the efficiency is high.
- the value of each set of data corresponds to multiple time intervals, and the value corresponding to the time interval can be accurately determined to prevent errors caused by the lost time interval during data transmission.
- M signals may be generated and transmitted, where the start time of each signal and the start time of the adjacent previous signal
- the time interval is the time interval corresponding to the value of the data of the group, M ⁇ 1 and M is a natural number.
- the time interval generated by the signal method has the effect of easy detection and high stability.
- M signals may be generated in such a manner that M times of low-level pulses are generated at time intervals, or M signals may be generated in such a manner that M-times high-level pulses are generated at time intervals.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- the low-level pulse is generated according to the time interval.
- the transmitting end communicates with the receiving end, the transmitting end can use the high level to supply power to the receiving end and transmit the information through the low-level pulse.
- the device adopting the method can make information interaction The same line is used to complete power supply and information transmission at the same time, which reduces equipment size and manufacturing cost.
- the method may further include: step 105a, generating and transmitting K handshake signals, K ⁇ 2 and K being an integer. Since only one time interval is generated between two adjacent signals, at least two handshake signals should be generated and transmitted to reflect at least one time interval.
- the transmitting end sends a handshake signal, and the receiving end can determine the starting position of the data transmission according to the handshake signal, thereby improving data transmission efficiency.
- a preset relationship may be satisfied between the K handshake signals.
- the sending end sends a handshake signal that satisfies the preset relationship, and the receiving end can accurately determine whether the received data is a handshake signal according to the preset relationship.
- the handshake signal may include a time parameter
- the receiving end may obtain a time parameter according to the K handshake signals, so that when the receiving end receives the signal sent by the sending end, a time interval is obtained, which is obtained by using the time parameter and the time interval.
- the data sent by the sender In this way, the receiving end can obtain the time interval indicating the value of the data according to the time parameter used by the transmitting end, and solve the problem that the theoretical time parameter of the receiving end does not match the actual time parameter.
- the preset relationship that is satisfied between the first time interval and the second time interval may be a pre-agreed relationship between the sending end and the receiving end, for example, the second time interval is twice the first time interval.
- the sending end sends a handshake signal that satisfies the preset relationship, so that the receiving end can determine whether the received signal is a handshake signal by whether the received data satisfies a preset relationship.
- the time parameter in the step 101 is further transmitted by using the time interval between the K handshake signals, so that the receiving end can obtain the time parameter used by the sending end according to the K handshake signals, and further confirm the use of the receiving end.
- the sending end may determine, according to the time parameter in step 101, the first time interval group and the second time interval group, where the first time interval group includes at least one first time interval, and the second time interval group includes at least one second time group. interval.
- K handshake signals may be generated in such a manner that K times of low-level pulses are generated at the first time interval and the second time interval. It is also possible to generate K handshake signals in a manner of generating K high-level pulses according to the first time interval and the second time interval, and the low-level pulse/high-level pulse can be distinguished by using square waves, sine waves, triangular waves, and the like. The waveform of the high and low level pulses is not limited here.
- the handshake signal is generated in the form of generating a low-level pulse according to the time interval.
- the transmitting end communicates with the receiving end, the transmitting end can use the high level to supply power to the receiving end, and pass the low-level pulse. Transfer information in a rushed manner.
- the device adopting the method can use the same line to complete power supply and information transmission at the same time when performing information exchange, thereby reducing equipment volume and manufacturing cost.
- the time parameter may also be replaced, that is, after step 105, step 100 may be further included, and the current usage may be used according to a preset rule.
- the time parameter is replaced with a new time parameter, and the new time parameter is used as the time parameter of the current data transmission; the corresponding relationship is updated according to the current data transmission time parameter; in the subsequent data transmission process, the updated correspondence relationship is used for data transmission.
- the determination of the new time parameter may be completed through negotiation between the transmitting end and the receiving end, or may be performed by the sending end and the receiving end searching for a pre-stored time parameter table, such as determining a table when transmitting certain types of data.
- the time parameter that this type of data should use can be changed. It can match the receivers of different data processing capabilities, or match different types of data, which can further improve the efficiency of data processing. For details, refer to any of the embodiments 5 to 9.
- the method further includes the step 106 of sending the verification data, where the data receiving end can determine whether the received data is complete and correct.
- the check data includes, but is not limited to, check data calculated by a check method such as MAC check, parity check, and checksum.
- step 107 may be further included to send A end signals.
- the end signal may be the same as or different from the handshake signal, and the end signal may be used by the receiving end to determine whether the data is received or not.
- the transmitting end can represent the data of the transmitted waveform according to the time interval of the transmitted waveform, and can complete the data transmission only by using two lines, which can be effectively reduced when applied to the electronic device.
- the size of the electronic device can represent the data of the transmitted waveform according to the time interval of the transmitted waveform, and can complete the data transmission only by using two lines, which can be effectively reduced when applied to the electronic device. The size of the electronic device.
- the time parameter of the current transmission is determined.
- the time parameter is the length of time that the data is sent. There is no corresponding relationship between the number of time parameters and N, and only the receiving end is consistent. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value of the data can be expressed.
- step 102 the correspondence between 2 N different values and time intervals included in the N-bit data is obtained according to the time parameter.
- the time interval corresponding to the value of the 2-bit data can be expressed in various combinations of time parameters, and is not limited thereto.
- step 103 the current data bit string 0011100100 to be sent is obtained
- step 104 the data bit string 0011100100 is grouped, each group of data is 2 bits, namely: 00 11 10 01 00;
- the group data is sent in a manner that the group of data is represented by a time interval corresponding to the value of each group of data.
- the value of each set of data may correspond to one time interval, or may correspond to multiple identical time intervals, such as 00 may correspond to an etu time interval (eg, 10 ⁇ s), and after a signal at the time interval Send another signal, the duration of the etu thus formed represents the value 00; of course, 00 can also correspond to the time interval of three etu (for example, each time interval is 10 ⁇ s), and send three consecutively at etu intervals after one signal.
- the receiver will only accept the value of 00 if it receives the same three durations.
- the number of the time interval is the same as that of the receiving end, which is not limited in this embodiment.
- the transmission value 00 can be represented by the time interval of etu according to the order of the data bit string, the time interval of etu+3pdt represents the transmission value 11, and the time interval of etu+2pdt represents the transmission time value 10, the time interval of etu+pdt Indicates that the value of 01 is sent, and the time interval of etu indicates that the value 00 is transmitted.
- the waveform of the transmitted data bit string 0011100100 is as shown in FIG. 3, and the data bit string is transmitted by the time interval between the respective signals.
- the time parameter of the current transmission is determined.
- N There is no corresponding relationship between the number of time parameters and N. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value of the data can be expressed.
- step 102 the correspondence between the 2 N different values and the time interval included in the N-bit data is obtained according to the time parameter.
- the time interval corresponding to the numerical value expressing the 1-bit data in various combinations is not limited thereto.
- step 103 the current data bit string 0011100100 to be sent is obtained
- step 104 the data bit string 0011100100 is grouped, and each group of data includes 1 bit, that is: 0 0 1 1 1 0 0 1 0 0; this step can also be omitted.
- the group data is sent in a manner that the group of data is represented by a time interval corresponding to the value of each group of data.
- the value of each set of data may correspond to one time interval, or may correspond to multiple identical time intervals, such as 0 may correspond to an etu time interval (eg, 10 ⁇ s), and after a signal at the time interval Send another signal, the duration of the etu thus formed represents the value 0; of course, 0 can also correspond to the time interval of three etu (for example, each time interval is 10 ⁇ s), and send three consecutively at etu intervals after one signal. For each signal, the receiver will only accept the value of 0 if it receives the same three durations.
- each group of data may be sent in the order of data bit strings, that is, the time interval of each signal is etu time interval, etu time interval, pdt time interval, pdt time interval, pdt time interval, Etu time interval, etu time interval, pdt time interval, etu time interval, etu time interval.
- the waveform of the transmission data bit string 0011100100 is as shown in FIG. 4, and the transmission of the data bit string is completed by the time interval between the respective signals.
- the time parameter of the current transmission is determined.
- N There is no corresponding relationship between the number of time parameters and N. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value can be expressed.
- step 102 the correspondence between the 2 N different values and the time interval included in the N-bit data is obtained according to the time parameter.
- step 103 the current data bit string 0011100100 to be transmitted is obtained.
- step 104 the data bit string 0011100100 is grouped, and each group of data is 3 bits.
- the data bit string is complemented.
- Zero operation when the data bit sequence is sent from low to high, the high zero pad is: 000 011 100 100.
- the low pad is 001. 110 010 000.
- the group data is sent in a manner that the group of data is represented by a time interval corresponding to the value of each group of data.
- the value of each set of data may correspond to one time interval, or may correspond to multiple identical time intervals.
- each group of data is transmitted in the order from the lower bit to the upper bit of the data bit string, that is, the signal of the time interval of transmitting etu+4pdt, the signal of the time interval of etu+4pdt, and the signal of the time interval of etu+3pdt. , the signal of the time interval of etu.
- the waveform of the transmitted data bit string 0011100100 is as shown in FIG. 5, and the transmission of the data bit string is completed by the time interval between the respective signals.
- the data transmission mode is similar to the low to high bits, but the signals are sequentially transmitted at intervals corresponding to the values starting from the high bits. I will not repeat them here.
- a plurality of time intervals may be used to correspond to different values in the B-bit data, where B is an integer multiple of N, B Is a positive integer.
- FIG. 6 is a flowchart of an optional data receiving method in this embodiment.
- the execution body of the embodiment of the present application may be a receiving end that receives data.
- the data receiving method mainly includes the following steps 201 to 203.
- step 201 a time parameter of the current data transmission is determined.
- the time parameter of the current data transmission may be preset and determined in the receiving end of the data, or may be determined after the receiving end of the data is obtained from the sending end, and may also be data.
- the receiving end is determined by a preset method and determined.
- the receiving end may receive the handshake signal before receiving the data, and determine the time parameter of the current data transmission by using the handshake signal.
- the application is not limited to determining the time parameter of the current data transmission, as long as the current data transmission can be determined. The manner of time parameters should be within the scope of protection of this application.
- this step is an optional step.
- Step 202 Receive X signals, determine a time interval between the start times of each of the two adjacent X signals, and obtain X-1 time intervals, where X is a positive integer and X>1.
- receiving X signals may be detecting X times of low level pulses, or may detect X times of high level pulses.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- the detection is a low-level pulse, that is, the transmitting end can generate a low-level pulse when the receiving end is provided with a high level. In this manner, when the transmitting end communicates with the receiving end, the receiving end can The high level provided by the transmitting end is used as the power source to supply power to the power consuming device at the receiving end.
- the receiving end can be charged by the high level provided by the transmitting end, or the receiving end is not provided with the power source, and the transmitting end is directly used.
- the level is used as the power source, and the device adopting the method can use the same when performing information interaction.
- a line completes power supply and information reception at the same time, reducing equipment size and manufacturing cost.
- step 202a is further included, and K signals are received to detect whether a preset relationship is satisfied between K signals, K ⁇ 2 and K is an integer. Since only one time interval is generated between two adjacent signals, at least two handshake signals should be received to obtain at least one time interval.
- the receiving end can determine whether the K signals are handshake signals by determining whether the K signals meet the preset relationship. The receiving end receives the handshake signal, and can determine the starting position of the data transmission according to the handshake signal, thereby improving the data transmission efficiency.
- a time interval between the K signals may be detected to determine whether a preset relationship is satisfied between the first time interval and the second time interval, where the first time interval is the ith signal.
- the received K signals are handshake signals, and the signals following the K signals are data transmission signals, wherein the value of K may be predetermined.
- the receiving end continuously detects the handshake signal, and starts to receive data until the handshake signal is detected, thereby avoiding the transmitting end. In the case of a misoperation, a signal is sent to the receiving end, and at the same time, the start of the data can be judged.
- the preset relationship that is satisfied between the first time interval and the second time interval may be a pre-agreed relationship between the sending end and the receiving end, for example, the second time interval is twice the first time interval.
- the receiving end can determine whether the received signal is a handshake signal by whether the received data satisfies a preset relationship. For example, when receiving 5 signals, including 4 time intervals t0, t1, t2, and t3, wherein the first time interval may include t0 and t2, and the second time interval may include t1 and t3, wherein the first time interval is
- the K signals received in step 202a may also carry time parameters, and in step 201, the time parameters may be determined according to the K signals.
- the time parameter is determined by K signals, which can overcome the situation that the theoretical time parameter of the receiving end is inconsistent with the actual time parameter, and the accuracy of data transmission is guaranteed.
- the receiving end can confirm that K signals are received when K times of low-level pulses are detected.
- the low/high level pulse can be implemented by a square wave or a sine wave.
- a low-level pulse is detected, that is, the transmitting end receives
- the terminal provides a high level.
- K signals need to be sent, a K low-level pulse is generated.
- the transmitting end communicates with the receiving end, the receiving end can use the high level provided by the transmitting end as the power source, or the receiving end.
- the power supply is not set internally, but the high level of the transmitting end is directly used as the power source.
- the device adopting the method can use the same line to complete the power supply and information reception at the same time, thereby reducing the device volume and manufacturing cost.
- receiving the X signals includes: receiving Y+1 signals, removing interference in the Y+1 signals, and obtaining X signals, where Y+1 ⁇ X, specifically See the description of any of the embodiments 10 to 13.
- Step 203 Acquire, according to the time parameter of the current data transmission determined in step 201, a value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval, and obtain a value of S time interval transmission, S time
- the value of the interval transmission is a value corresponding to a single time interval, and the value is one of 2 N different values included in the N-bit data, wherein, in the case of S>1, the S time intervals are the same, and both X and S are positive. Integer, and S ⁇ X-1, N ⁇ 1.
- the S consecutive time intervals are the same, and the value of the N-bit data corresponding to the single time interval is the value transmitted by the S time intervals.
- the transmitting end uses a plurality of identical time intervals to represent the value of the N-bit data, and obtains 3 time intervals.
- the value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained, and S is obtained.
- each set of data set or negotiated is 1 bit, the value is 1, and if each set of data is 2 bits, the value is 01, if each set of data is 3 bits, then The value is 001.
- the data of each group is 4 or more, the value is obtained in the same manner, and details are not described herein again.
- a value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained, and S time interval transmission is obtained.
- the value of the value is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same, X and S are both positive integers, and S ⁇ X-1, N ⁇ 1 can be understood as:
- the value is a bit string corresponding to a single time interval.
- S time intervals are the same, S is a positive integer, and S ⁇ X-1.
- X is 5 or more
- the above examples are merely exemplary, as long as the manner of obtaining bit strings transmitted in S time intervals should be within the protection scope of the present application.
- step 203 ′ may be further included, and N is obtained according to the time parameter.
- N is obtained according to the time parameter.
- the different values correspond to different time intervals, N ⁇ 1
- the above-mentioned pre-calculated N-bit data includes 2N different values and time intervals. Determining the corresponding value of the received time interval further reduces the decoding time after receiving the data.
- the correspondence between the 2 N different values and the time interval included in the N-bit data is obtained according to the time parameter, wherein the time interval corresponding to the different values is different, and N ⁇ 1 can be understood as: obtaining parameters in a time of 2 N bit strings of length N corresponding relationship in the bit stream of each time interval, wherein, the 2 N bit string different from each other, and the different bit strings corresponding to different time intervals, N ⁇ 1.
- the solution does not include step 201, and in this step, “acquires the correspondence between 2 N different values and time intervals included in the N-bit data, where the time interval corresponding to the different values "Different" is a mandatory step, that is, when the time parameter for determining the current data transmission is not included, the correspondence between the 2N different values included in the N-bit data and the time interval must be included.
- the receiving end of the data may calculate a time interval corresponding to the value of the data by using a calculation method preset or negotiated by the sending end of the data.
- the time interval for transmitting the value m is:
- the present application may also use other pre-negotiated calculation methods to determine the time interval, which is not specifically limited in this implementation.
- the time interval of the value is calculated by a pre-negotiated calculation method to ensure the scalability of the data transmission, that is, regardless of the value of N, the sender and the receiver can calculate the time interval corresponding to the value of the data. . Then, the receiving end can compare with the received time interval according to the calculated time interval, thereby directly determining the value corresponding to the time interval, and improving the efficiency of determining the data.
- the receiving end of the data may also use a list that is pre-negotiated and stored with the data sending end to determine a time interval corresponding to the value, and determine the corresponding value by using a lookup list.
- the time interval increases the efficiency of the time interval corresponding to the value.
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data instead of There will be redundant signals that cause problems that cannot be decoded.
- the time parameter may also be replaced during the data transmission process.
- the method may further include the step 204: replacing the currently used time parameter with a new one according to a preset rule.
- Time parameter taking the new time parameter as the time parameter of the current data transmission, receiving X signals, determining the time interval between the starting times of each two adjacent signals in the X signals, and obtaining X-1 times Interval, and then use the time parameter of the current data transmission to obtain the value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval, and obtain the value of the S time interval transmission, and the value of the S time interval transmission is
- the value corresponding to a single time interval is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same.
- the determination of the new time parameter may be completed through negotiation between the transmitting end and the receiving end, or may be performed by the sending end and the receiving end searching for a pre-stored time parameter table, such as determining a table when transmitting certain types of data.
- the time parameter of the sender can be changed. It can match the receivers of different data processing capabilities, or match different types of data, which can further improve the efficiency of data processing. For details, refer to any of the embodiments 5 to 9.
- the transmitting end may also send A end signals (A ⁇ 1 and an integer), and the receiving end may also receive A end signals.
- the end signal may be the same as the handshake signal, or may be a signal of another specific format. Through the end signal, the receiving end may determine whether the data is received or not.
- the receiving end may further receive the verification data sent by the sending end before receiving the end signal. Through the verification data, the data receiving end can determine whether the received data is complete and correct.
- Check data including MAC Check data calculated by verification methods such as parity check, parity check, and sum check.
- the receiving end can determine the value of the data of the received waveform according to the time interval of receiving the waveform, and can complete the data reception only by using two lines, which can be effectively applied when used in an electronic device. Reduce the size of the electronic device.
- the receiving end of the data can be used as a switching device, which can transfer the communication between the other device (hereinafter referred to as the first terminal) and the transmitting end of the data.
- the terminal may receive the X signals through the second interface by using the receiving method in this embodiment, and obtain the second data bits corresponding to the X-1 time intervals according to the values corresponding to the single time interval in the obtained S time intervals.
- a string encoding a second data bit string according to a protocol supported by the first interface to obtain second data; and transmitting the second data through the first interface.
- the first interface may encode the received second data bit string by using a protocol supported by the first interface according to the interface type.
- the first interface may be according to a USB protocol, an audio protocol, a serial protocol, a Bluetooth protocol, or the like.
- the wifi protocol, the NFC protocol, and the like encode the second data bit string to obtain the second data to be transmitted.
- the data bit conversion generated by the first interface can be converted into data that can be supported by the universal interface protocol, and the conversion between different interfaces can be realized, and the use range of the data receiving end of the embodiment is expanded. .
- the first data may be received by the first interface; the first data is decoded according to the protocol supported by the first interface, and the first data bit string to be sent is obtained; After the first interface obtains the data bit string to be sent, the data bit string to be transmitted is sent through the second interface by using the data sending method provided in Embodiment 1 of the present application.
- the receiving end of the data may have two communication interfaces, such as a first interface and a second interface, the first interface is an interface for communicating with the first terminal, and the second interface is The interface that communicates with the sending end of the data, the first interface may be an existing universal interface, including a wireless interface, such as a USB interface, an audio interface, a serial port, a Bluetooth, a wifi, an NFC interface, etc., through which the first interface can Connected to the first terminal to send the second data to the first terminal.
- a wireless interface such as a USB interface, an audio interface, a serial port, a Bluetooth, a wifi, an NFC interface, etc.
- the first terminal may be a mobile phone, a computer, a PAD, etc.
- the second data may be a mobile phone, a computer, and a data that needs to be received by the PAD end.
- the first interface can decode the received first data by using a protocol supported by itself according to the interface type.
- the first interface may decode the first data according to the USB protocol, the audio protocol, the serial port protocol, the Bluetooth protocol, the wifi protocol, or the NFC protocol, and obtain a data bit string corresponding to the first data, and then pass the foregoing Embodiment 1
- the described transmission method is transmitted through the second interface.
- the second interface may be an interface connected to the electronic payment device (ie, the receiving end of the data), through which the data is sent to the electronic payment device, and the data sent by the electronic payment device may also be received through the second interface.
- the second interface can be a two-wire interface; the electronic payment device can implement a USBkey function, an OTP function, and a smart card function.
- the receiving end of the data of the present application is used as a switching device, and data conversion is performed through the first interface, so that data transmitted from the transmitting end of the data can be converted into data suitable for communication with the terminal.
- a time parameter of the current data transmission is determined.
- the time parameter is the length of time occupied by the data transmission. There is no corresponding relationship between the number of the time parameters and the N, and only the negotiation is consistent with the sending end. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value of the data can be expressed.
- step 202 six signals are received, and a time interval between the start times of two adjacent signals in the six signals is determined, and five time intervals etu, etu+3pdt, etu+2pdt, etu+pdt, Etu.
- step 203 2-bit data corresponding to each of the above five time intervals is acquired.
- the receiving end may represent a set of data at a time interval, for example, the time interval of the etu is only 00, the data transmission speed is fast, and the same time interval may be used. Represents a set of data. If the time interval of three etu is 00, the accuracy of data transmission is high, which can prevent misjudgment caused by loss of time interval.
- a time parameter of the current data transmission is determined.
- N There is no corresponding relationship between the number of time parameters and N. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value of the data can be expressed.
- step 202 11 signals are received.
- the time interval between the start times of each of the adjacent two signals is determined, and ten time intervals etu, etu, pdt, pdt, pdt, etu, etu, pdt, etu, etu, etu are obtained.
- Step 203 Acquire 1-bit data corresponding to the 10 time intervals respectively, and obtain a value 0 transmitted by the etu time interval, and obtain a value 0 transmitted by the etu time interval, and obtain a value 1 of the pdt time interval transmission, and obtain a value of the pdt time interval transmission. 1... Get the value 0 of the etu data interval transmission, and finally complete the reception of the bit string 0011100100.
- the receiving end can represent 1-bit data at a time interval, for example, the time interval of only one etu represents the value 0, the data transmission speed is fast, and the same time can be used.
- the interval represents 1-bit data, and if the time interval of obtaining three etus represents a value of 0, the data transmission accuracy is high, and the misjudgment caused by the loss of the time interval can be prevented.
- the time parameter of the current transmission is determined.
- the time parameter is the length of time occupied by the data transmission. There is no corresponding relationship between the number of the time parameters and the N, and only the negotiation is consistent with the sending end. This embodiment does not limit the specific number of time parameters, as long as the time interval corresponding to the value of the data can be expressed.
- step 202 five signals are received, and the time interval between the start times of each of the two adjacent signals is determined, and four time intervals etu, etu+3pdt, etu+4pdt, etu+4pdt are obtained.
- Step 203 Acquire 2-bit data corresponding to each of the four time intervals.
- the zero-padding bit is deleted, and the reception of the bit string 0011100100 is completed.
- the receiving end may represent a set of data at a time interval, for example, the time interval of only one etu is represented by 000, the data transmission speed is fast, and the same time interval may be used. Representing a set of data, such as the time interval of three times etu is 000, the data transmission accuracy is high, which can prevent misjudgment caused by the loss of time interval.
- This embodiment provides a data transmitting apparatus.
- the apparatus has a one-to-one correspondence with the data sending method in Embodiment 1, and details are not described herein again. Only a brief description is given. If there is a part that is not clearly described, refer to the implementation. example 1.
- the data sending device may be a mobile phone, a computer, a POS machine, or the like.
- FIG. 7 is a schematic structural diagram of an optional data transmitting apparatus according to this embodiment.
- the apparatus mainly includes: a time parameter determining unit 301, a time interval obtaining unit 302, a data bit string obtaining unit 303, and a transmitting unit 304.
- the time parameter determining unit 301 is configured to determine a time parameter of the current data transmission.
- the time parameter of the current data transmission may be preset and determined in the data sending apparatus, or may be determined after the data sending apparatus acquires from another apparatus, and may also be a data sending apparatus. After the calculation is performed in a preset manner, the present application is not limited to the determination of the time parameter of the current data transmission, and the manner in which the time parameter of the current data transmission can be finally determined should belong to the protection scope of the present application.
- the time interval obtaining unit 302 is configured to obtain, according to a time parameter, a correspondence between 2 N different values and time intervals included in the N-bit data, where different time values corresponding to different values are different, N ⁇ 1.
- the time interval obtaining unit 302 acquires a correspondence between 2 N different values and time intervals included in the N-bit data according to the time parameter, where different time values corresponding to different values are different, N ⁇ 1 Can also be understood as:
- each bit string of two bit strings of length 1 is 0 and 1, respectively.
- the time interval corresponding to the value can be calculated.
- the present application may also use other pre-negotiated calculation methods to determine the time interval, which is not limited in this application.
- the time interval corresponding to the value is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the data transmitting device and the data receiving device can calculate different values and times. Correspondence of intervals.
- the time interval obtaining unit 302 of the data sending apparatus may also use a list that is pre-negotiated and stored with the data receiving apparatus to determine a time interval corresponding to the value, and determine by using a lookup list.
- the time interval corresponding to the value can improve the efficiency of obtaining the time interval corresponding to the value.
- the time interval obtaining unit 302 of the data transmitting device uses the time interval obtaining unit of the data transmitting device after calculating the time interval corresponding to the value by using the calculating method determined in advance by the data receiving device. 302 searches for a pre-stored list to determine whether the time interval corresponding to the calculated value belongs to the receiving range of the data receiving device. By calculating the time interval corresponding to the value and further searching the list, the time interval corresponding to the value is obtained, and the scalability of the data transmission can be improved under the premise of ensuring that the data receiving device can receive normally.
- the data bit string obtaining unit 303 is configured to acquire a data bit string to be currently transmitted, and group the data bit strings, and each group of data is N bits.
- the data bit string obtaining unit 303 may generate a data bit string to be sent by itself, or may receive a data bit string to be sent from other devices or other units of the data transmitting device.
- the application is not limited to the current manner of acquiring the data bit string to be sent, and the manner in which the current data bit string to be transmitted can be finally obtained belongs to the protection scope of the present application.
- the data transmitting device can function as a switching device that can transfer communication between other devices (hereinafter referred to as first terminals) and the data receiving device.
- the data transmitting device acquires the current data bit string to be sent by: receiving the first data through the first interface; and decoding the first data according to the protocol supported by the first interface, Obtaining a first data bit string to be transmitted.
- the data transmitting device may have two communication interfaces, such as a first interface and a second interface, the first interface being an interface for communicating with the first terminal, and the second interface being data and The interface through which the receiving end communicates.
- the first interface may be an existing universal interface, including a wireless and wired interface, such as a USB interface, an audio interface, a serial port, a Bluetooth, a wifi, an NFC interface, etc., through which the first interface can be connected to the first terminal to receive The first data sent by a terminal.
- the first terminal may be a mobile phone, a computer, a PAD, or the like.
- the first data may be a mobile phone, a computer, or a data that needs to be transmitted on the PAD end.
- the first interface can decode the received first data by using a protocol supported by itself.
- the first interface can be based on a USB protocol, an audio protocol, a serial protocol, a Bluetooth protocol, a wifi protocol, Or the first data is decoded by the NFC protocol or the like to obtain a data bit string corresponding to the first data, where the data bit string is a first data bit string to be transmitted (ie, a data bit string to be transmitted currently).
- the second interface may be an interface connected to an electronic payment device (ie, a data receiving device) through which data is transmitted to the electronic payment device.
- the second interface can be a two-wire interface; the electronic payment device can implement a USBkey function, an OTP function, and a smart card function.
- Data conversion by the first interface can convert data sent by the terminal into data suitable for communication with the data receiving device, realize conversion between different interfaces, and expand the use range of the data transmitting device of the present application.
- the data transmitting device is used as a switching device, the data bit string to be sent is acquired through the first interface, and the data bit string to be transmitted is sent through the second interface.
- the data bit string obtaining unit 303 may perform an operation of acquiring a data bit string and a packet at any time, as long as the transmitting unit 304 performs data transmission.
- the data transmitting apparatus may be operated by the corresponding relationship between the 2 N different values and the time interval included in the N-bit data acquired by the time parameter determining unit 301 and the time interval obtaining unit 302 before each time the data is transmitted; or, the data is sent.
- means determining unit 301 may start with a time parameter, the time interval acquiring unit 302 is operated, each subsequent data transmission, use the N-bit data by the time parameter determination unit 301, the time interval acquiring unit 302 acquires operation contained 2 N Corresponding relationship between different values and time intervals, encoding the data to be sent; or, an expiration date may be set, and the data transmitting device transmits data within the expiration date, and both use the time parameter determining unit 301 and the time interval obtaining unit.
- 302 Corresponding relationship between 2 N different values and time intervals included in the N-bit data obtained by the operation, and encoding the data to be sent.
- event-triggered manner every time the received event trigger, e.g., a user input parameter of the current time data transmission, calculating a first N-bit data comprising the 2 N different values corresponding relation with the time interval.
- the specific embodiment is not limited.
- the data bit string obtaining unit 303 groups the data bit strings, and each group of data is N bits, which can be grouped in multiple manners, and can be grouped by using each group including 1 bit. Grouping can be performed in a manner that each group includes 2 bits. In the case where the bit included in the data bit string is singular, since the complete grouping cannot be performed in accordance with 2 bits, the data bit string may be complemented by 0 and then grouped. At this time, the data transmitting apparatus and the data receiving apparatus are preset or The method of negotiating 0 is negotiated. When the data bit string is transmitted from the upper bit of the data, the last bit of the bit string is padded with 0. When the data bit string is transmitted from the lower bit of the data, the high bit of the bit string is padded with 0. Of course, the case where each group includes 3 bits or more can be grouped by referring to each group including 2 bits, and details are not described herein again.
- the sending unit 304 is configured to send the group of data in a manner that the group of data is represented by a time interval corresponding to the value of each group of data according to the acquired correspondence.
- each set of data may correspond to one time interval, or may correspond to multiple identical time intervals.
- the value of each set of data corresponds to multiple time intervals, and the value corresponding to the time interval can be accurately determined to prevent errors caused by the lost time interval during data transmission.
- the sending unit 304 when each set of data is sent, the sending unit 304 is configured to generate and send M signals, where the start time of each signal is adjacent to the previous one.
- the time interval at which the signal starts is the time interval corresponding to the value of the set of data, M ⁇ 1 and M is a natural number. Signaling The resulting time interval is easy to detect and has high stability.
- the sending unit 304 is configured to generate M signals in a manner of generating M low-level pulses according to time intervals, or may generate M signals in a manner of generating M high-level pulses according to time intervals.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- the low-level pulse is generated according to the time interval.
- the data transmitting device communicates with the data receiving device, the data transmitting device can use the high level to supply power to the data receiving device and transmit the information through the low-level pulse.
- the device adopting the method can use the same line to complete power supply and information transmission at the same time when performing information exchange, thereby reducing equipment volume and manufacturing cost.
- the data sending apparatus may further include a handshake signal sending unit 305, wherein the handshake signal sending unit 305 is configured to generate and send K handshake signals, K ⁇ 2 and K is an integer. Since only one time interval is generated between two adjacent signals, at least two handshake signals should be generated and transmitted to reflect at least one time interval.
- the data transmitting device sends a handshake signal, and the data receiving device can determine the starting position of the data transmission according to the handshake signal, thereby improving data transmission efficiency.
- a preset relationship may be satisfied between the K handshake signals.
- the handshake signal sending unit 305 of the data transmitting device sends a handshake signal that satisfies the preset relationship, and the data receiving device can accurately determine whether the received data is a handshake signal according to the preset relationship.
- the handshake signal may include a time parameter
- the data receiving device may obtain a time parameter according to the K handshake signals, so that when the data receiving device receives the signal sent by the transmitting end, the time interval is obtained to pass the time parameter and the time. Obtain the data sent by the sender at intervals.
- the data receiving apparatus can acquire the time interval corresponding to the numerical value of the data according to the time parameter used by the data transmitting apparatus, and solve the problem that the theoretical time parameter of the data receiving apparatus does not match the actual time parameter.
- the preset relationship that is satisfied between the first time interval and the second time interval may be a relationship pre-agreed by any data transmitting device and the data receiving device, for example, the second time interval is the first time interval. Double.
- the data transmitting device sends the handshake signal that satisfies the preset relationship, so that the data receiving device can determine whether the received signal is a handshake signal by whether the received data satisfies a preset relationship.
- the time parameter may also be transmitted through the time interval between the K handshake signals to enable data reception.
- the device may acquire the time parameter used by the data transmitting device according to the K handshake signals, and further confirm the time parameter used by the data receiving device.
- the data sending apparatus may further include a handshake signal time interval determining unit, configured to determine the first time interval group and/or the second time interval group according to the time parameter, where the first time interval group includes at least one first time interval
- the second time interval group includes at least one second time interval.
- the handshake signal sending unit 305 can generate K handshake signals by the handshake signal sending unit 305 generating K handshake signals in a manner of generating K times of low-level pulses according to the first time interval and the second time interval. It is also possible to generate K handshake signals in a manner of generating K high-level pulses according to the first time interval and the second time interval, and the low-level pulse/high-level pulse can be distinguished by using square waves, sine waves, triangular waves, and the like. The waveform of the high and low level pulses is not limited here.
- the handshake signal is generated in the form of generating a low-level pulse according to the time interval.
- the data transmitting device When the data transmitting device communicates with the data receiving device, the data transmitting device can use the high level to supply power to the data receiving device, and transmit the signal through the low-level pulse. information.
- the device adopting the method can use the same line to complete power supply and information transmission at the same time when performing information exchange, thereby reducing equipment volume and manufacturing cost.
- the data sending apparatus may further include: a time parameter updating unit 306, configured to replace the currently used time parameter with a new one according to a preset rule.
- the time parameter, the new time parameter is used as the time parameter of the current data transmission;
- the triggering time interval obtaining unit 302 updates the corresponding relationship according to the new time parameter;
- the time interval obtaining unit 302 is further configured to update the time parameter according to the current data transmission.
- the sending unit 304 is further configured to perform data transmission by using the updated correspondence.
- the determination of the new time parameter may be completed by negotiation between the data transmitting device and the data receiving device, or may be completed by the data transmitting device and the data receiving device searching for a pre-stored time parameter table, such as transmitting a certain type.
- the data time lookup table determines the time parameters that should be used for this type of data.
- the time parameter of the data transmitting device can be changed, the data receiving device capable of matching different data processing capabilities, or matching different types of data can further improve the efficiency of data processing. For details, refer to any of the embodiments 5 to 9.
- the data sending apparatus may further include: a check data sending unit 307, after the sending unit 304 finishes transmitting the last set of data, the check data sending unit 307 sends the check data, and the The verification data, the data receiving device can determine whether the received data is complete and correct.
- the check data includes, but is not limited to, check data calculated by a check method such as MAC check, parity check, or sum check.
- the data sending apparatus may further include: an end signal sending unit 308, configured to: after the sending unit 304 finishes transmitting the last group of data, or the check data sending unit 307 sends the completion. After the data is verified, A (A ⁇ 1 and an integer) end signals are transmitted, and the end signal may be the same as or different from the handshake signal. By the end signal, the data receiving device can judge whether or not the data is received.
- an end signal sending unit 308 configured to: after the sending unit 304 finishes transmitting the last group of data, or the check data sending unit 307 sends the completion. After the data is verified, A (A ⁇ 1 and an integer) end signals are transmitted, and the end signal may be the same as or different from the handshake signal. By the end signal, the data receiving device can judge whether or not the data is received.
- the data transmitting apparatus can be based on the time when the waveform is transmitted.
- the interval indicates the data of the transmitted waveform, and the data can be transmitted using only two lines.
- the volume of the electronic device can be effectively reduced.
- the present embodiment provides a data receiving device, which has a one-to-one correspondence with the data receiving method in Embodiment 2, and details are not described herein again. Only a brief description is given below. If there is a part that is not clearly described, please refer to Example 2.
- the data receiving device may be an electronic payment device having functions of a smart card, a smart key device, a dynamic port token, etc., and may be used in conjunction with the data transmitting device in Embodiment 3.
- FIG. 8 is a schematic structural diagram of an optional data receiving apparatus according to the embodiment, and includes: a time parameter determining unit 401, a receiving unit 403, and a data acquiring unit 404.
- the time parameter determining unit 401 is configured to determine a time parameter of the current data transmission.
- the time parameter of the current data transmission may be preset and determined in the time parameter determining unit 401, or may be determined after the time parameter determining unit 401 obtains from the data sending device. It may be determined after the time parameter determining unit 401 is acquired from other devices, and may also be determined after the time parameter determining unit 401 calculates in a preset manner.
- the data receiving device may receive the handshake signal before receiving the data, and determine the time parameter of the current data transmission by using the handshake signal.
- the present application is not limited to the determination of the time parameter of the current data transmission, as long as the manner in which the time parameter of the current data transmission can be finally determined should belong to the protection scope of the present application.
- the receiving unit 403 is configured to receive X signals, determine a time interval between start times of each two adjacent ones of the X signals, and obtain X-1 time intervals, where X is a positive integer, and X >1.
- the receiving unit 403 may receive X times of low-level pulses, or may detect X times of high-level pulses.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- a low level pulse is detected, that is, the data transmitting device can generate a low level pulse in the case of providing a high level to the data receiving device.
- the data transmitting device can use the high level provided by the data receiving device as a power source to supply power to the power consuming device of the data receiving device.
- the data receiving device may perform charging using a high level provided by the data transmitting device, or the power receiving device may not directly set a power source, and directly use a high level of the data transmitting device as a power source.
- the data receiving device adopting the method can simultaneously complete power supply and information reception using the same line when performing information interaction, thereby reducing equipment volume and manufacturing cost.
- the data receiving apparatus further includes a handshake signal receiving unit 405, configured to receive K signals, and detect whether a preset relationship is satisfied between the K signals, K ⁇ 2 and K. Is an integer. Since only one time interval is generated between two adjacent signals, at least two handshake signals should be received. To get at least one time interval.
- the receiving end can determine whether the K signals are handshake signals by determining whether the K signals meet the preset relationship. The receiving end receives the handshake signal, and can determine the starting position of the data transmission according to the handshake signal, thereby improving the data transmission efficiency.
- the signal after the K signals is a data transmission signal, and the trigger receiving unit 403 receives the X signals, wherein the value of K may be predetermined.
- the data receiving device continuously detects the handshake signal, and starts receiving data until the handshake signal is detected, thereby avoiding data
- the transmitting device transmits a signal to the data receiving device in the case of an erroneous operation, it is also possible to judge the start of the data.
- the preset relationship that is satisfied between the first time interval and the second time interval may be a relationship pre-agreed by the data transmitting device and the data receiving device, for example, the second time interval is twice the first time interval.
- the data receiving device can determine whether the received signal is a handshake signal by whether the received data satisfies a preset relationship. For example, when receiving 5 signals, including 4 time intervals t0, t1, t2, and t3, wherein the first time interval may include t0 and t2, and the second time interval may include t1 and t3, wherein the first time interval is
- the K signals received by the handshake signal receiving unit 405 can also carry time parameters. Therefore, in this alternative embodiment, the time parameter determining unit 401 of the data receiving device may further determine the time parameter according to the K signals.
- the time parameter determining unit 401 may first determine the first time interval group and the second time interval group, where the first time interval group includes at least one first time interval, and the second time interval group includes at least one second time group. The interval is then determined based on the first time interval group and the second time interval group.
- the data receiving device can determine the time parameter etu according to the first time interval and the second time interval. And the value of pdt.
- the time parameter is determined by K signals, which can overcome the inconsistency between the theoretical time parameter of the data receiving device and the actual time parameter, and ensure the accuracy of data transmission.
- the handshake receiving unit 405 of the data receiving apparatus is for confirming that K signals are received in the case where K times of low-level pulses are detected.
- the low/high level pulse can be implemented by a square wave or a sine wave.
- the low-level pulse that is, the data transmitting device supplies a high level to the data receiving device, and when the K signals need to be transmitted, generates K times of the low-level pulse, so that when the data transmitting device communicates with the data receiving device, the data is received.
- the device can use the high level provided by the data transmitting device as the power source, or the power receiving device does not have the power source internally, and directly uses the high level of the transmitting end as the power source.
- the device adopting the mode can use the same root when performing information interaction.
- the line completes power supply and information reception at the same time, reducing equipment size and manufacturing cost.
- the data receiving apparatus may further include: a filtering unit, configured to receive Y+1 signals, remove interference in the Y+1 signals, and obtain X signals, where Y+1 ⁇ X.
- a filtering unit configured to receive Y+1 signals, remove interference in the Y+1 signals, and obtain X signals, where Y+1 ⁇ X.
- the data obtaining unit 404 is configured to obtain, according to the time parameter of the current data transmission determined by the time parameter determining unit 401, a value corresponding to a single time interval in each of the consecutive S time intervals in the X-1 time intervals, to obtain S time interval transmissions.
- the value of the S time interval transmission is a value corresponding to a single time interval, and the value is one of 2 N different values included in the N-bit data, wherein, in the case of S>1, the S time intervals are the same. Both X and S are positive integers, and S ⁇ X-1, N ⁇ 1.
- the S consecutive time intervals are the same, and the value of the N-bit data corresponding to the single time interval is the value transmitted by the S time intervals.
- the transmitting end uses a plurality of identical time intervals to represent the value of the N-bit data, and obtains 3 time intervals.
- the value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained.
- each set of data set or negotiated is 1 bit, the value is 1, and if each set of data is 2 bits, the value is 01, if each set of data is 3 bits, then The value is 001.
- the data of each group is 4 or more, the value is obtained in the same manner, and details are not described herein again.
- a value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained, and S time interval transmission is obtained.
- the value of the value is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same, X and S are both positive integers, and S ⁇ X-1, N ⁇ 1 can be understood as:
- the value is a bit string corresponding to a single time interval.
- S time intervals are the same, S is a positive integer, and S ⁇ X-1.
- X is 5 or more
- the above examples are merely exemplary, as long as the manner of obtaining bit strings transmitted in S time intervals should be within the protection scope of the present application.
- the data receiving apparatus may further include a time interval obtaining unit 402, configured to acquire, in the data acquiring unit 404, the value of the first consecutive S time intervals in the X-1 time intervals.
- a time interval obtaining unit 402 configured to acquire, in the data acquiring unit 404, the value of the first consecutive S time intervals in the X-1 time intervals.
- the correspondence between the 2 N different values and the time interval included in the N-bit data is obtained according to the time parameter, wherein the different values correspond to different time intervals, N ⁇ 1, wherein the pre-calculated N-bit data includes 2N Different values and time intervals determine the value of the data of the received time interval, which further reduces the decoding time after receiving the data.
- obtaining the correspondence relationship of 2 N N-bit data values contained in different time intervals according to the time parameter, wherein different values corresponding to different time intervals, N ⁇ 1 can be understood as: obtaining parameters in a time of 2 N bit strings of length N corresponding relationship in the bit stream of each time interval, wherein, the 2 N bit string different from each other, and the different bit strings corresponding to different time intervals, N ⁇ 1.
- the data receiving apparatus may calculate a time interval of calculating the value of the data by using a calculation method preset or negotiated by the data sending apparatus.
- the present application may also use other pre-negotiated calculation methods to determine the time interval, which is not specifically limited in this implementation.
- the time interval of the value of the data is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the data transmitting device and the data receiving device can calculate the corresponding value. time interval. Thereafter, the data transmitting device can compare with the received time interval according to the calculated time interval, thereby directly determining the value corresponding to the time interval, and improving the efficiency of determining the data.
- the data receiving apparatus may also use a list that is pre-stored with the data transmitting apparatus to determine a time interval corresponding to the numerical value of the data, and determine a time interval of the numerical value of the data by using a lookup list, thereby improving the efficiency of obtaining a time interval corresponding to the value.
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data instead of There will be redundant signals that cause problems that cannot be decoded.
- the data receiving apparatus further includes a time parameter updating unit 406, where the unit is further configured to replace the time parameter, and replace the currently used time parameter with the new time parameter according to a preset rule.
- the new time parameter as the time parameter of the current data transmission
- receiving X signals determining the time interval between the start times of each of the two adjacent signals, obtaining X-1 time intervals, and then Using the time parameter of the current data transmission, the value corresponding to a single time interval in each consecutive S time interval in the X-1 time interval is obtained, and the value of the S time interval transmission is obtained, and the value of the S time interval transmission is a single time interval.
- the value is one of 2 N different values contained in the N-bit data, wherein, in the case of S>1, the S time intervals are the same.
- the determination of the new time parameter may be completed by negotiation between the data transmitting device and the data receiving device, or may be completed by the data transmitting device and the data receiving device searching for a pre-stored time parameter table, such as transmitting a certain type.
- the data time lookup table determines the time parameters that should be used for this type of data.
- the time parameter of the data transmitting device can be changed, the data receiving device capable of matching different data processing capabilities, or matching different types of data can further improve the efficiency of data processing. For details, refer to any of the embodiments 5 to 9.
- the receiving unit 403 can also receive A end signals (Y+1 ⁇ 1 and an integer), and the end signal can be combined with the handshake signal. Similarly, it may be a signal of another specific format, by which the data receiving device can determine whether the data is received or not.
- the receiving unit 403 may also receive the check data before receiving the A end signal.
- the data data receiving device can determine whether the received data is complete and correct.
- the verification data includes verification data calculated by a verification method such as MAC check, parity check, and sum check.
- the data receiving apparatus can determine the data of the received waveform according to the time interval of receiving the waveform, and can complete the data reception by using only two lines, and is applicable to the electronic device. To effectively reduce the size of electronic equipment.
- FIG. 9 is a flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 9, the method mainly includes steps S901 to S903.
- the first device acquires frequency conversion information, and sends the frequency conversion information to the second device.
- the frequency conversion information may be a new time parameter for data transmission, or a new time parameter identifier, and the new time parameter identifier has a one-to-one correspondence with the new time parameter.
- the new time parameter may include two time parameters, a first time parameter etu and a second time parameter pdt.
- the time parameter is used to describe the length of time occupied by data transmission.
- the first device and the second device may be master-slave devices.
- the first device is a master device
- the second device is a slave device, or the first device is a slave device
- the second device is a master device.
- the device as the master device may be, for example, a terminal
- the device as the slave device may be, for example, an electronic payment device (for example, an electronic signature tool key, a smart card, a key card, a device, etc.).
- the second device receives the frequency conversion information sent by the first device, and determines a new time parameter of the data transmission according to the frequency conversion information.
- the first device sends the variable frequency information to the second device in multiple manners, for example, by sending a handshake signal or by using a data signal.
- the transmission information used in the frequency conversion information is different.
- the manner of determining the new time parameter of the data transmission according to the frequency conversion information is also different.
- the second device supports data transmission according to the new time parameter, obtain, according to the new time parameter, a correspondence between each bit string and the time interval in the 2 N length bit strings of the new time parameter, and according to the corresponding Transmitting a data signal, or receiving a data signal according to the new time parameter and obtaining a bit string corresponding to the time interval according to a time interval in the data signal, wherein 2 N of the bit strings are different from each other, and different places The time interval corresponding to the bit string is different, N ⁇ 1.
- each of the 2 N bit strings of length N refers to 0, 1.
- 2 N bits in the bit string of length N are obtained under the new time parameter.
- the signal of +pdt transmits data bit string 1.
- each of the 2 N bit strings of length N refers to 00, 01, 10, and 11, and 2 N lengths of N are obtained under the new time parameter according to the new time parameter.
- the second device may use the new time parameter to perform data transmission and reception.
- the data signal of +pdt is transmitted 01, and the data signal with the interval of etu+2pdt is transmitted to transmit 10.
- the frequency conversion information may be sent to the second device by the first device without interrupting the data transmission, and the second device obtains a new time parameter of the data transmission according to the frequency conversion information and uses the new time parameter to perform data. Receiving and/or transmitting to complete the adjustment of communication parameters during data transmission, improving communication efficiency.
- the time parameters used in data transmission are different, the obtained communication rate is also different, and the purpose of frequency conversion can be achieved by adjusting the time parameter.
- the value of the current time parameter is adjusted to the value of the new time parameter (that is, the value of etu in the current time parameter is adjusted to the value of etu in the new time parameter, and the value of pdt in the current time parameter is adjusted.
- the frequency conversion during data transmission is to change the communication rate, and the resource utilization can be optimized. For example, some applications do not need too high communication rate when executing, and communication can be reduced at this time. The rate is to achieve the purpose of saving power. Some applications require a higher communication rate when executed, and the communication rate can be increased to better realize the function of the application.
- the frequency conversion information includes a new time parameter and is transmitted by a handshake signal generated by the first device according to the new time parameter.
- FIG. 10 is a flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 10, the method mainly includes steps S1001 to S1005.
- the first device generates a handshake signal for determining a new time parameter.
- This embodiment provides the following two implementations to generate a handshake signal for determining a new time parameter.
- Method 1 The first device determines the number of handshake signals generated, and generates a handshake signal according to the number, and the time interval in the handshake signal is used to determine a new time parameter.
- the first device negotiates with the second device to determine that a new time parameter is transmitted by a preset number of handshake signals, and the first device generates a preset number of handshake signals. For example, eight handshake signals with the same time interval are generated to transmit a new time parameter, and the time interval in the handshake signal is a new time parameter. Specifically, which time interval in the handshake signal is used to indicate that etu and pdt can be used by the first device and the second device.
- the device performs communication negotiation and is determined without limitation.
- the time interval in the signals with the same time interval is etu or pdt in the new time parameter, and etu and pdt satisfy a certain relationship, and can be based on One of etu and pdt determines the value of the other.
- the first device generates 8 handshake signals according to the first time interval, and then generates 8 handshake signals according to the second time interval to transmit a new time parameter, where the first time interval can be used to indicate etu in the new time parameter, The second time interval can be used to represent the pdt in the new time parameter.
- the first device determines the first time interval group and/or the second time interval group according to the new time parameter; and generates K handshake signals according to the first time interval group and/or the second time interval group.
- the handshake signal includes a new time parameter, the first time interval group includes at least one first time interval, and the second time interval group includes at least one second time interval, and the preset relationship is satisfied between the first time interval and the second time interval.
- the first time interval is a time interval between a start time of the i-th handshake signal and a start time of the i-1th handshake signal
- the second time interval is a start time of the i-th handshake signal and an i+1th
- the time interval between the start time between the start time of the second handshake signal and the first handshake signal is defined as t0
- the start time and the second time of the third handshake signal are defined.
- the time interval between the start time between the handshake signals is t1
- the time interval between the start time of the fourth handshake signal and the start time between the third handshake signal is defined as t2
- the fifth handshake signal is defined.
- the time interval between the start time and the start time between the fourth handshake signal is t3.
- t0 and t2 are both the first time interval
- the first time interval group includes t0 and t2
- t1 and t3 are both the second time interval
- the second time interval group includes t1 and t3.
- the first time interval and the second time interval may also satisfy other specific relationships, which are not limited herein.
- the time interval between the start time between the start time of the second handshake signal and the first handshake signal is defined as t0
- the start time and the second time of the third handshake signal are defined.
- the time interval between the start times between the handshake signals is t1
- t0 is the first time interval
- t1 is the second time interval.
- the new time parameter may include two time parameters, a first time parameter etu and a second time parameter pdt
- three handshake signals are generated in accordance with time intervals t0 and t1.
- the first device sends a handshake signal to the second device.
- the second device receives the handshake signal sent by the first device.
- the second device determines a new time parameter of the data transmission according to the frequency conversion information.
- the present embodiment also provides the following two implementations according to the conversion signal. The way in which the new time parameters of the data transmission are determined.
- Mode A (corresponding to mode one in step 1001), after receiving the preset number of handshake signals, the second device acquires a time interval in the handshake signal, and determines a new time parameter according to the time interval.
- the second device receives 8 handshake signals, and the time interval between the 8 handshake signals is the same, it is determined that the time interval is etu or pdt in the new time parameter. Since etu and pdt satisfy a certain relationship, another value can be determined according to one of etu and pdt.
- the second device receives 16 handshake signals, and the time interval between the first 8 handshake signals is the same as the first time interval, and the time interval between each of the 8 handshake signals and the previous handshake signal is the same.
- the second time interval determines that the first time interval is one of the new time parameters (etu and pdt), and determines that the second time interval is the other of the new time parameters (etu and pdt). Which one is specifically determined may be determined by the first device and the second device, and is not limited herein.
- Mode B (corresponding to mode 2 in step 1001), the second device acquires a first time interval group and/or a second time interval group in the handshake signal; and determines according to the first time interval group and/or the second time interval group New time parameters for data transfer.
- the time interval between the three handshake signals is obtained, and the time interval t0 between the second handshake signal and the first handshake signal is determined as Edu, the time interval t1 between the third handshake signal and the second handshake signal is determined as pdt, and the preset relationship between etu and pdt is not limited to the above linear relationship, and may be other relationships, and may not be done again. limit.
- the second device when supporting data transmission according to the new time parameter, obtains, according to the new time parameter, a correspondence between each bit string and a time interval of the 2 N bit strings of length N under the new time parameter, and according to the corresponding Transmitting a data signal, or receiving a data signal according to the new time parameter and obtaining a bit string corresponding to the time interval according to a time interval in the data signal, wherein 2 N of the bit strings are different from each other, and different places The time interval corresponding to the bit string is different, N ⁇ 1.
- each of the 2 N bit strings of length N refers to 00, 01, 10, and 11, and 2 N bits of length N are obtained under the new time parameter according to the new time parameter.
- the data bit sequence to be transmitted is 0110
- the data signal is transmitted according to the time interval (etu+pdt) to transmit the bit string 01
- the data signal is transmitted according to the time interval (etu+2pdt).
- the second device sends a data signal to the first device according to the correspondence between each bit string and the time interval of the 2 N bit strings of length N under the new time parameter, and the transmitted data signal can also be used as the frequency conversion confirmation information.
- the time parameter adopted by the data transmission can be adjusted to a new time parameter to obtain a corresponding communication rate under the new time parameter.
- a handshake signal when generated, it can be realized by generating a low level pulse. Alternatively, it may be implemented by a sine wave signal or other waveform signals, and is not limited herein.
- the first device when the first device generates K handshake signals, the first device may further obtain, according to the new time parameter, each of the 2 N bit strings of length N and the time interval.
- the corresponding relationship and the data signal are transmitted according to the corresponding relationship.
- the value carried by the data signal is data that the first device needs to send to the second device, and the data may include a new time parameter, or may not include a new time parameter, and the first device sends the data signal and the second device sends the data signal.
- the second device may receive the data signal according to the new time parameter and obtain a bit string corresponding to the time interval according to the time interval in the data signal.
- the first device may send the frequency conversion information to the second device by using a handshake signal without interrupting the data transmission, and the second device obtains a new time parameter of the data transmission according to the frequency conversion information and uses the new time parameter to perform
- the reception and/or transmission of data to complete the adjustment of communication parameters during data transmission improves communication efficiency.
- the frequency conversion information includes a new time parameter and is transmitted by a data signal, which is generated by the first device according to the current time parameter.
- FIG. 11 is a flowchart of still another data transmission method according to an embodiment of the present application. As shown in FIG. 11, the data transmission method provided in this embodiment mainly includes steps S1101 to S1105.
- the first device obtains, according to a current time parameter of the data transmission, a correspondence between each bit string and a time interval of the 2 N bit strings of length N under the current time parameter, and generates F data signals according to the corresponding relationship, where each The time interval between the start time of the data signal and the start time of the adjacent previous signal is a time interval corresponding to one bit string, F ⁇ 1 and F is a natural number, and F data signals transmit a new time parameter.
- the signal can be a data signal for transmitting data.
- F data signals are used to transmit new signals.
- the current time parameter is a time parameter used when the first device and the second device are performing data transmission.
- the current time parameter may include two time parameters, a first time parameter etu and a second time parameter pdt.
- the first device obtains the correspondence between each bit string and the time interval of the 2 N bit strings of length N under the current time parameter according to the current time parameter
- the second device according to step 903 in Embodiment 5 obtains the new time parameter according to the new time parameter.
- the implementation of the correspondence between each bit string and the time interval in the bit string of N N lengths is similar to the new time parameter, and is not described here.
- the correspondence between each bit string and the time interval in the 2 N lengths of the bit string under the current time parameter is obtained, and F data signals are generated according to the correspondence relationship.
- the implementation is as follows: the new time parameter is represented by the data bit sequence 00101011, and the case where N is 2 is taken as an example. In this case, each of the 2 N bit strings of length N refers to 00, 01, 10, and 11, current time parameters.
- the time interval between the first signal and the second signal is etu, which is used to transmit data bits.
- the time interval between the second signal and the third signal is etu+2pdt, for transmitting the data bit string 10
- the time interval between the third signal and the fourth signal is etu+2pdt
- the time interval between the fourth signal and the fifth signal is etu + 3pdt for transmitting the data bit string 11.
- the first device sends F data signals to the second device.
- the first device can transmit F data signals in the following manner:
- the set of data bit strings is sent in a manner that represents the set of data bit strings at time intervals corresponding to each set of data bit strings.
- S1103 The second device receives the F data signals sent by the first device.
- the second device receives F data signals according to the current time parameter and obtains a new time parameter according to a time interval between start times of the data signals of the F data signals.
- the decoding results in a transmitted data bit string of 00.
- the detected time interval is etu+2pdt
- the decoding results in a transmitted data bit string of 10 if detected.
- the decoded data bit string is 11 and the data bit sequence 00101011 can be obtained by sequentially decoding according to the time sequence of the received signal, so that a new time parameter can be obtained.
- S1105 The second device, when supporting data transmission according to the new time parameter, obtains, according to the new time parameter, a correspondence between each bit string and a time interval of the 2 N bit strings of length N under the new time parameter, and according to the corresponding Transmitting a data signal, or receiving a data signal according to the new time parameter and obtaining a bit string corresponding to the time interval according to a time interval in the data signal, wherein 2 N of the bit strings are different from each other, and different places The time interval corresponding to the bit string is different, N ⁇ 1.
- step S1105 For the specific implementation of step S1105, refer to the related description of S1005 in Embodiment 6, and details are not described herein again.
- the second device sends a data signal to the first device according to the correspondence between each bit string and the time interval of the 2 N bit strings of length N under the new time parameter, and the transmitted data signal can also be used as the frequency conversion confirmation information.
- the time parameter adopted by the data transmission can be adjusted to a new time parameter to obtain a corresponding communication rate under the new time parameter.
- the present embodiment may further include the step of: when the second support means according to the new data transmission time parameters, the current time parameters correspond to a length of 2 N N bit string in the bit stream of the respective time interval
- the relationship transmits a data signal indicating the frequency conversion confirmation information to the first device. That is, the second device still sends the frequency conversion confirmation information by using the current time parameter, to notify the first device that the time parameter adopted by the data transmission can be adjusted to the new time parameter, to obtain the corresponding communication rate under the new time parameter, and after that.
- Data transmission is performed using new time parameters in data transmission.
- the first device may also generate F data signals according to the current time parameter (the F data signals are used to transmit new time parameters), and the first device may also The other data signals are sent to the second device according to the correspondence between each of the 2 N bit strings of length N and the time interval under the current time parameter.
- the other data signals are used to transmit other data that the first device needs to send to the second device.
- the manner in which the first device generates and transmits other data signals is the same as the manner in which the F data signals are generated and transmitted in step 1101. Narration.
- the first device may further generate a handshake signal according to the current time parameter and send the signal to the first Two devices.
- the first device may transmit the frequency conversion information to the second device by using the data signal without interrupting the data transmission, and the second device obtains a new time parameter of the data transmission according to the frequency conversion information and uses the new time parameter to perform
- the reception and/or transmission of data to complete the adjustment of communication parameters during data transmission improves communication efficiency.
- the frequency conversion information includes the new time parameter identifier
- the other implementation processes are the same as those of the embodiment 7.
- the same content is not described in detail. For details, refer to the related description of the embodiment 7.
- FIG. 12 is a flowchart of still another data transmission method provided by the embodiment of the present application. As shown in FIG. 12, the data transmission method provided in this embodiment mainly includes steps 1201 to 1205.
- S1201 Obtain, according to a current time parameter of the data transmission, a correspondence between each bit string and a time interval of the 2 N bit strings of length N under the current time parameter, and generate F data signals according to the corresponding relationship, where each data signal The time interval between the start time and the start time of the adjacent previous signal is a time interval corresponding to one bit string, F ⁇ 1 and F is a natural number, and the F data signals include a new time parameter identifier.
- the new time parameter identifier is transmitted through the F data signals, and the new time parameter identifier is the frequency conversion information.
- S1202 The first device sends F data signals to the second device.
- the first device can transmit F data signals in the following manner:
- the set of data bit strings is sent in a manner that represents the set of data bit strings at time intervals corresponding to each set of data bit strings.
- the second device receives the F data signals sent by the first device.
- the second device receives F data signals according to the current time parameter, and obtains a new time parameter identifier according to a time interval between start times of the data signals in the F data signals, and searches for a new time parameter identifier in the preset table. New time parameters.
- the new time parameter identifier has a one-to-one correspondence with the new time parameter.
- the preset table is used to store the correspondence between the new time parameter identifier and the new time parameter, and the new time parameter can be determined according to the new time parameter identifier by looking up the table.
- the second device when supporting data transmission according to the new time parameter, obtains, according to the new time parameter, a correspondence between each bit string and a time interval in a bit string of 2 N lengths N under the new time parameter, and according to the corresponding Transmitting a data signal, or receiving a data signal according to the new time parameter and obtaining a bit string corresponding to the time interval according to a time interval in the data signal, wherein 2 N of the bit strings are different from each other, and different places The time interval corresponding to the bit string is different, N ⁇ 1.
- the second device sends a data signal to the first device according to the correspondence between each bit string and the time interval of the 2 N bit strings of length N under the new time parameter, and the transmitted data signal can also be used as the frequency conversion confirmation information.
- the time parameter adopted by the data transmission can be adjusted to a new time parameter to obtain a corresponding communication rate under the new time parameter.
- the present embodiment may further include the step of: when the second support means according to the new data transmission time parameters, the current time parameters correspond to a length of 2 N N bit string in the bit stream of the respective time interval
- the relationship transmits a data signal indicating the frequency conversion confirmation information to the first device. That is, the second device still sends the frequency conversion confirmation information by using the current time parameter, to notify the first device that the time parameter adopted by the data transmission can be adjusted to the new time parameter, to obtain the corresponding communication rate under the new time parameter, and after that.
- Data transmission is performed using new time parameters in data transmission.
- the first device in step 1201, the first device generates F data signals according to the current time parameter (the F data signals are used to transmit a new time parameter identifier), and the first device further The other data signals may be sent to the second device according to the correspondence between each of the 2 N bit strings of length N and the time interval under the current time parameter.
- the other data signals are used to transmit other data that the first device needs to send to the second device.
- the manner in which the first device generates and transmits other data signals is the same as the manner in which the F data signals are generated and transmitted in step 1201. Narration.
- the first device may further generate a handshake signal according to the current time parameter and send the handshake signal to Second device.
- the first device may transmit the frequency conversion information to the second device by using the data signal without interrupting the data transmission, and the second device obtains a new time parameter of the data transmission according to the frequency conversion information and uses the new time parameter to perform
- the reception and/or transmission of data to complete the adjustment of communication parameters during data transmission improves communication efficiency.
- the foregoing method may further include the step of determining, by the second device, whether to support the data transmission by using the new time parameter, and implementing the specific The following two can be used:
- the first device determines whether the new time parameter is within the range of the data transmission time parameter supported by the second device. If it is determined that the new time parameter is within the range of the data transmission time parameter supported by the device, the second device is determined to support the new time parameter. data transmission.
- the second device stores the data transmission time parameter range supported by itself, for example, the edu range is 1 us-100 us, and the pdt range is 0.1 us-10 s. After the second device obtains the new time parameter, the new time parameter is respectively determined. Whether the value of edu is in the range of edu, and whether the value of pdt is in the range of pdt, if the value of edu and the value of pdt are both Within the respective ranges, the second device supports data transmission according to the new time parameter. Otherwise, for example, at least one value in edu and pdt is not in its corresponding range, indicating that the second device does not support data transmission according to the new time parameter.
- the second device searches for a new time parameter in the data transmission time parameter table supported by the second device. If the new time parameter is found, it is determined that the second device supports data transmission according to the new time parameter.
- the second device stores a data transmission time parameter table supported by itself, for example, as shown in the following table:
- the data transmission time parameter table supported by the second device may also be used to find whether there is a new time parameter identifier. If the new time parameter identifier is found, the second device is determined. Support data transmission according to new time parameters.
- the embodiment of the present application further provides a data transmission system for performing the foregoing data transmission method.
- the first device and the second device in the system may be master-slave devices.
- the device as the master device may be, for example, a terminal
- the device as the slave device may be, for example, an electronic payment device (for example, an electronic signature tool key, a smart card, a key card, a device, etc.).
- the system includes: a first device and a second device; wherein, the first device is configured to acquire frequency conversion information, and send the frequency conversion information to the second device; and the second device is configured to receive the first device to send
- the frequency conversion information is determined according to the frequency conversion information, and the new time parameter of the data transmission is determined according to the frequency conversion information; when the data transmission according to the new time parameter is supported, according to the new time parameter, each bit string of the 2 N length N strings is obtained under the new time parameter.
- the first device may transmit the frequency conversion information by using a handshake signal, where the frequency conversion information includes a new time parameter; at this time, the first device is specifically configured to determine the first time interval group and/or the second time interval group according to the new time parameter.
- the handshake signal includes a new time parameter
- the first time interval group includes at least one first time interval
- the second time interval group includes at least one The second time interval
- the first time interval and the second time interval satisfy a preset relationship, where the first time interval is a time interval between a start time of the i-th handshake signal and a start time of the i-1th handshake signal,
- the second device is specifically configured to acquire a first time interval group and/or a second time interval group of the K handshake signals; and determine a new time parameter of the data transmission according to the first time interval group and/or the second time interval group.
- the first device may transmit the frequency conversion information by using a data signal, where the frequency conversion information includes a new time parameter.
- the first device is specifically configured to obtain, according to the current time parameter of the data transmission, 2 N lengths of the current time parameter.
- the second device is specifically configured to receive F data signals according to the current time parameter and according to the start time of each data signal in the F data signals A new time parameter is obtained between the time intervals.
- the first device may transmit the frequency conversion information by using the data signal, and the frequency conversion information includes a new time parameter identifier.
- the first device is configured to obtain, according to the current time parameter of the data transmission, 2 N lengths of the current time parameter.
- the second device is specifically configured to receive F data signals according to the current time parameter and obtain new according to time intervals in the F data signals
- the time parameter identifier is used to find a new time parameter corresponding to the new time parameter identifier in the preset table.
- the current time parameters 2 N N bit strings of length of time of each bit string transmits a data signal indicating the frequency conversion confirmation information to the first device.
- the second device in the system provided by the embodiment of the present application may further implement a function of determining whether it supports data transmission according to a new time parameter, and the specific implementation is as follows:
- the second device is further configured to determine whether the new time parameter is within the range of the data transmission time parameter supported by itself, and if it is determined that the new time parameter is within the range of the data transmission time parameter supported by itself, determining that the second device supports the new time parameter Data transmission; or,
- the second device is further configured to search for a new time parameter in the data transmission time parameter table supported by itself, and if the new time parameter is found, determine that the second device supports data transmission according to the new time parameter.
- the first device can transmit the frequency conversion information to the second device by using the data signal without interrupting the data transmission, and the second device obtains the new time parameter of the data transmission according to the frequency conversion information and uses the new The time parameter performs data reception and/or transmission to complete adjustment of communication parameters during data transmission, thereby improving communication efficiency.
- the present embodiment provides a signal receiving method, which can be applied to a receiving end of a signal (for example, a receiving end or a data receiving device in each of the above embodiments) to filter the received signal to obtain a valid signal.
- a signal for example, a receiving end or a data receiving device in each of the above embodiments
- FIG. 14 is a flowchart of a signal receiving method provided by this embodiment. As shown in FIG. 14, the method mainly includes the following steps (step S1402 - step S1410).
- Step S1402 the length of 2 N obtaining the correspondence relationship of each of the N bit string with a bit string time intervals, wherein, the 2 N bit string different from each other, and the different bit strings corresponding to different time intervals, N ⁇ 1.
- a bit string of length N may correspond to one time interval, or may correspond to multiple time intervals, as long as the time intervals corresponding to different bit strings are not the same.
- the correspondence between each of the 2 N bit strings of length N and the time interval may be obtained according to the time parameter of the current data transmission.
- the time parameter of the current data transmission may be negotiated with the sender in advance, or may be obtained from the data sent by the sender.
- the sender may send a handshake signal before sending the data.
- the signal transmits the time parameter of the current data transmission to the receiving end, which is not limited in this embodiment. Therefore, in an optional implementation manner of this embodiment, the time parameter may also be determined before the foregoing correspondence is obtained.
- the foregoing correspondence may not be acquired according to a time parameter, but a preset rule (for example, the above Table 1) may directly obtain the foregoing.
- a preset rule for example, the above Table 1.
- the time interval corresponding to bit 0 and bit 1 can be directly agreed, for example, 10 ⁇ s and 15 ⁇ s, respectively.
- the foregoing correspondence may be stored in the receiving end in advance, which is not limited in this embodiment.
- t m etu+m*pdt (0 ⁇ m ⁇ 2 n -1), and other time-predetermined calculation methods may be used to determine the time interval, which is not specifically limited in this embodiment.
- the time interval of the data bit is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the time interval between the data bits can be calculated by the transmitting end and the receiving end.
- Step S1404 receiving Y+1 signals, wherein the first one of the Y+1 signals is a signal for indicating the start of data transmission, Y ⁇ 1, and Y is a positive integer, and Y+1 is a receiving The total number of signals to arrive.
- the signal for indicating the start of data transmission may be the first data signal of the data transmission, for example, may be received after a predetermined time (which may be determined by the receiving end and the transmitting end)
- the handshake signal is a signal used by the sending end to indicate the start time of the data transmission of the receiving end.
- the sending end may further transmit the time parameter by using a handshake signal.
- the time parameters include two: etu and pdt
- the receiving end can also determine the values of the time parameters etu and pdt according to t2 and t3.
- t0 and t1 can also satisfy other relationships, as long as the values of the time parameters etu and pdt can be obtained by taking the values of t0 and t1.
- the time parameter can also be determined directly by one time interval of the K handshake signals, or if there are three time parameters, multiple time intervals between the K handshake signals can be adopted.
- the value of the three time parameters is determined by the relationship that is satisfied, and is not described in detail in this embodiment.
- the time parameter is determined by K handshake signals, which can overcome the situation that the theoretical time parameter of the receiving end is inconsistent with the actual time parameter, and the correctness of data transmission is guaranteed.
- Step S1406 determining a signal for instructing the start of data transmission as the first valid signal.
- N the time interval corresponding to the bit string of length 1 (ie, 1-bit data or 1-bit bit string) is obtained according to the time parameter, that is, the time interval corresponding to 0 is etu, and the corresponding time interval of 1 is pdt.
- the receiver After the receiver determines a valid first signal, the remaining of Y signals sequentially received to judge, for the second received signal, the calculated starting time of the first signal and the C signal is a valid starting time of 1
- the time interval is 15 ⁇ s, and the time interval is different from the time interval corresponding to the 1-bit bit string 0 and 1, so the signal is not a valid signal, and the signal is recorded as the invalid signal D, and the invalid signal D should be discarded.
- the time interval between the start time of the third signal and the start time of the first valid signal C 1 is 20 ⁇ s, and the time interval is the same as the time interval corresponding to the 1-bit bit string 1, so the signal is a valid signal,
- the signal is recorded as the second valid signal C 2 and the start time of the second valid signal C 2 is recorded.
- the time interval between the start time of the fourth signal and the start time of the second valid signal C 2 is judged, and so on, until it is judged that the received Y+1th signal ends.
- the time interval between the start time of the Zth signal and the start time of the previous signal is greater than or equal to a preset value. That is, in the optional implementation, in step S1404, after receiving the first valid signal, the hardware layer of the receiving end filters out the time interval between the start time of the current signal and the start time of the previous signal is less than the preset.
- the current signal of the value the MCU at the receiving end does not respond to such a signal, but only the current signal of the start time of the current signal and the start time of the previous signal is greater than or equal to the current value of the preset value (ie, the Zth signal) Respond to this, which can improve the detection efficiency of subsequent valid signals, thereby reducing the workload of the MCU.
- the preset value may be a minimum value of the time interval in the correspondence relationship acquired in step S1402. Since the time interval between the start time of the current signal and the start time of the previous signal is less than the minimum value of the time interval in the corresponding relationship, the current signal must not belong to the valid signal, and thus the current signal may not be received.
- receiving Y+1 signals may be detecting a Y+1 low-level pulse, or detecting a Y+1-time high-level pulse.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- step S1408 X valid signals are obtained, and decoding is performed according to the X valid signals to obtain data transmitted by the transmitting end. Therefore, in an optional implementation of the embodiment of the present application, after step S1410, the following step S1412-step S1416 (not shown) may be further included.
- Step S1412 determining a time interval between the start times of the adjacent two signals of the X effective signals, and obtaining X-1 time intervals.
- Step S1414 Acquire a bit string corresponding to a single time interval in each of the consecutive S time intervals in the X-1 time intervals according to the obtained correspondence relationship, and obtain a bit string transmitted by the S time intervals, where the S time intervals are transmitted.
- the bit string is a bit string corresponding to a single time interval. In the case of S>1, the S time intervals are the same, S is a positive integer, and S ⁇ X-1.
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data bits, and There is no problem with redundant signals that can't be decoded.
- Step S1416 splicing the bit strings transmitted every consecutive S time intervals in the X-1 time intervals to obtain the bit sequence of the X-1 time interval transmission.
- step S1414 eight time intervals are obtained in step S1414, and the bit strings corresponding to each time interval are sequentially “01”, “00”, “01”, “10”, “11”, “ 10", “00” and "01", the bit sequence finally obtained by the five time intervals is "0100011011100001".
- the obtained X-1 time interval transmission bit sequence may be decoded to obtain X-1 time interval transmission data, and when decoding, the octet bit may be grouped into one byte. Thereby, data transmitted by X-1 time intervals is obtained.
- the bit sequence transmitted by X-1 time intervals may further include a check bit.
- the check bit may be further configured according to the check bit.
- Data integrity checks include, but are not limited to, parity, CRC, digital signature, summation Check, MAC check, etc.
- the receiver may further receive the A end signals (A ⁇ 1 and an integer) sent by the sending end, or the A end signals may also be included in the Y+1 Within the signal.
- the end signal may be the same as the handshake signal, or may be a signal of another specific format, by which the receiving end can determine whether the data bit string is received or not.
- the signal receiving method provided in this embodiment can effectively filter out noise and improve signal receiving efficiency.
- FIG. 15 is a flowchart of a signal receiving method provided by this embodiment.
- the method provided in this embodiment differs from the method provided in the first embodiment in that, in the embodiment 10, the receiver sequentially determines whether each signal is a valid signal after receiving the Y+1 signals, but in this embodiment, After determining the first valid signal, each time a signal is received, it is immediately determined whether the signal is a valid signal. Compared with Embodiment 10, the method provided by this embodiment is more efficient.
- the signal receiving method provided by this embodiment mainly includes the following steps (step S1502 - step S1508).
- Step S1502 Acquire a correspondence between each of the 2 N bit strings of length N and a time interval, where 2 N of the bit strings are different from each other, and different time intervals corresponding to the bit strings are different, N ⁇ 1.
- a bit string of length N may correspond to one time interval, or may correspond to multiple time intervals, as long as the time intervals corresponding to different bit strings are not the same.
- the correspondence between each of the 2 N bit strings of length N and the time interval may be obtained according to the time parameter of the current data transmission.
- the time parameter of the current data transmission may be negotiated with the sender in advance, or may be obtained from the data sent by the sender.
- the sender may send a handshake signal before sending the data.
- the signal transmits the time parameter of the current data transmission to the receiving end, which is not limited in this embodiment. Therefore, in an optional implementation manner of this embodiment, the time parameter may also be determined before the foregoing correspondence is obtained.
- the foregoing correspondence may not be obtained according to a time parameter, but a preset rule may directly obtain the foregoing correspondence, for example, for N.
- a preset rule may directly obtain the foregoing correspondence, for example, for N.
- the time interval corresponding to bit 0 and bit 1 can be directly agreed, for example, 10 ⁇ s and 15 ⁇ s, respectively.
- the foregoing correspondence may be stored in the receiving end in advance, which is not limited in this embodiment.
- t m etu + m * pdt (0 ⁇ m ⁇ 2 n - 1), and other pre-negotiated calculation methods may be used to determine the time interval, which is not specifically limited in this embodiment.
- the time interval of the data bit is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the time interval between the data bits can be calculated by the transmitting end and the receiving end.
- Step S1504 receiving a signal indicating the start of data transmission, and determining that the signal is the first valid signal.
- the signal used to indicate the start of data transmission in this embodiment may be the first data signal of the data transmission, for example, the first received after a predetermined time (which may be determined by the receiving end and the transmitting end) Data signal, or if the transmitting end sends a handshake signal to the receiving end before sending data to the receiving end, the signal indicating the start of the data transmission may also be the last one of the received handshake signals sent by the transmitting end. signal.
- the handshake signal is a signal used by the sending end to indicate the start time of the data transmission of the receiving end.
- the sending end may further transmit the time parameter by using a handshake signal.
- Step S1506 continuing to receive the signal, determining whether the time interval between the start time of the received Zth signal and the start time of the previous valid signal is a time interval in the acquired correspondence relationship, and if so, the Zth
- the time interval corresponding to two data bits is as shown in Table 2.
- the first valid signal C 1 After receiving the first valid signal C 1 for indicating the start of data transmission, it is assumed that the first signal is received after 10 ⁇ s due to the start time of the signal and the start time of the first valid signal.
- the time interval is 10 ⁇ s, which is the same as the time interval corresponding to the bit string 00 in Table 2, so the signal is a valid signal, the signal is recorded as the second valid signal C 2 , and the second valid signal is recorded.
- the starting moment of C 2 After receiving the first valid signal C 1 for indicating the start of data transmission, it is assumed that the first signal is received after 10 ⁇ s due to the start time of the signal and the start time of the first valid signal.
- the time interval is 10 ⁇ s, which is the same as the time interval corresponding to the bit string 00 in Table 2, so the signal is a valid signal, the signal is recorded as the second valid signal C 2 , and the second valid signal is recorded.
- the starting moment of C 2 After receiving the first valid signal C 1 for indicating the start of
- the time interval between the start time of the signal and the start time of the second valid signal C 2 is calculated to be 16 ⁇ s, which is the bit string 00, 01, 10, and 11 in Table 2.
- the corresponding time intervals are different, so the signal is not a valid signal, and the signal is recorded as an invalid signal D, and the invalid signal D should be discarded.
- the receiving the first valid signal and continuing to receive the Y signals may be detecting the Y+1 low-level pulse, or detecting the Y+1 low level. pulse.
- the low-level pulse/high-level pulse can be represented by a square wave, a sine wave, a triangular wave, or the like, which can distinguish between high and low level pulses, and is not limited herein.
- the detected low-level pulse that is, the transmitting end can generate a low-level pulse when the receiving end is provided with a high level. In this way, when the transmitting end communicates with the receiving end, the receiving end can be used.
- the high level provided by the transmitting end is used as a power source to supply power to the power consuming device at the receiving end.
- the receiving end can be charged by the high level provided by the transmitting end.
- the device adopting the method can use the same when performing information interaction.
- the root line completes power supply and information reception at the same time, reducing equipment size and manufacturing cost.
- Step S1508 after receiving the Y signals, according to the determination result, obtain X valid signals, where X ⁇ Y+1, and X is a positive integer.
- step S1506 After receiving the Y signals, through the processing of step S1506, X valid signals can be obtained, and in the subsequent decoding process, decoding is performed according to the X valid signals, thereby obtaining data transmitted by the transmitting end.
- the signal after receiving the signal for indicating the start of data transmission, the signal is recorded as a valid signal, and each time a signal is received, the time interval between the signal and the previous valid signal is It is judged that if the time interval is not a time interval corresponding to an arbitrary bit string of length N, the signal is ignored, and if the time interval is a time interval corresponding to one of the bit strings of length N, the signal is recorded.
- the noise interference signal in the channel can be effectively removed by the method, and the correctness and stability of the data transmission are improved.
- step S1508 decoding may be further performed according to the obtained X valid signals to obtain a bit sequence of X valid signal transmissions. Therefore, after step S1508, the method may further include steps S1510 to S1514 (not shown).
- Step S1510 Determine a time interval between the start times of each of the two adjacent valid signals, and obtain X-1 time intervals.
- Step S1512 Acquire, according to the obtained correspondence, a bit string corresponding to a single time interval in each of the consecutive S time intervals in the X-1 time intervals, and obtain a bit string transmitted by the S time intervals, where the S time intervals
- the transmitted bit string is a bit string corresponding to the above single time interval.
- S>1 the S time intervals are the same, S is a positive integer, and S ⁇ X-1.
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data bits, and There is no problem with redundant signals that can't be decoded.
- Step S1514 splicing the bit strings transmitted every consecutive S time intervals in the X-1 time intervals to obtain a bit sequence of X-1 time interval transmissions.
- the obtained bit sequence may be further decoded to obtain a bit sequence of X-1 time interval transmission, and when decoding, 8 bit bits may be used.
- a byte is formed to obtain data transmitted at X-1 time intervals.
- bit sequence transmitted by X-1 time intervals may further include a check bit.
- the integrity check of the data before the check bit may be further performed according to the check bit.
- Data integrity checks include, but are not limited to, parity, CRC check, digital signature, sum check, MAC check, and the like.
- the time interval between the start time of the received Zth signal and the start time of the previous signal is greater than or equal to a preset value.
- the hardware layer of the receiving end filters out the current signal that the time interval between the start time of the current signal and the start time of the previous signal is less than a preset value, and the receiving end The MCU does not respond to such signals, but only responds to the current signal (ie, the Zth signal) whose time interval between the start time of the current signal and the start time of the previous signal is greater than or equal to the preset value. The efficiency of subsequent valid signals is detected, thereby reducing the workload of the MCU.
- the preset value may be a minimum value of a time interval recorded in the acquired correspondence. Since the time interval between the start time of the current signal and the start time of the previous signal is less than the minimum value of the time interval in the corresponding relationship, the current signal must not belong to the valid signal in step S1506, and thus the current current may not be received. signal.
- the Y signals that are continuously received may include A end signals (A ⁇ 1 and an integer) sent by the transmitting end, or may continue to receive Y. After the signal, the A end signals sent by the transmitting end are received.
- the end signal may be the same as the handshake signal, or may be a signal of another specific format, by which the receiving end can determine whether the data bit string is received or not.
- the present embodiment provides a signal receiving apparatus for performing the signal receiving method described in Embodiment 10, which is the data receiving apparatus in Embodiment 4, that is, the signal described in this embodiment.
- the function of the receiving device can be supplemented by the function of the data receiving device in Embodiment 4.
- the signal receiving device may be an electronic payment device having functions of, but not limited to, a smart card and/or a smart key device and/or a dynamic port token.
- FIG. 16 is a schematic structural diagram of a signal receiving apparatus according to this embodiment. As shown in FIG. 16, the apparatus mainly includes: a time interval acquiring unit 120, a receiving unit 110, a recording unit 140, a determining unit 130, and an effective signal acquiring unit. 150. The following description will be respectively made.
- Interval acquiring unit 120 for acquiring the 2 N bit strings of length N corresponding relationship in the bit stream of each time interval, wherein, the 2 N bit string different from each other, and the different bit strings corresponding to different time intervals, N ⁇ 1.
- the time interval obtaining unit 120 may obtain the foregoing correspondence relationship by determining a time parameter of the current data transmission, and acquiring 2 N bit strings of length N according to the time parameter. The corresponding relationship between each bit string and the time interval.
- the time parameter of the current data transmission may be negotiated with the sender in advance, or may be obtained from the data sent by the sender.
- the sender may send a handshake signal before sending the data. The signal transmits the time parameter of the current data transmission to the receiving end, which is not limited in this embodiment.
- the foregoing correspondence may be stored in the receiving end in advance, which is not limited in this embodiment.
- the time interval T m etu + m * pdt (0 ⁇ m ⁇ 2 n -1) corresponding to the bit string of length n is transmitted, and the time interval may be determined by other pre-negotiated calculation methods. Make specific restrictions.
- the time interval of the data bit is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the time interval between the data bits can be calculated by the transmitting end and the receiving end.
- the signal receiving apparatus may further include a time parameter updating unit, configured to replace the time parameter, and trigger the time interval unit to update the corresponding relationship, that is, the time parameter updating unit follows the preset rule.
- the current time parameter is replaced with a new time parameter, and the new time parameter is used as the time parameter of the current data transmission.
- the trigger time interval obtaining unit 201 re-acquires 2 N length bit strings according to the new time parameter. The corresponding relationship of each bit string to the time interval.
- the determination of the new time parameter may be completed by negotiation between the data transmitting device and the data receiving device, or may be completed by the data transmitting device and the data receiving device searching for a pre-stored time parameter table, such as transmitting a certain type.
- the data time lookup table determines the time parameters that should be used for this type of data.
- the time parameter of the data transmitting device can be changed, the data receiving device capable of matching different data processing capabilities, or matching different types of data can further improve the efficiency of data processing. .
- the receiving unit 110 is configured to receive Y+1 signals, where the first one of the Y+1 signals is a signal for indicating the start of data transmission, where Y+1 is the total of the received signals. Quantity.
- the signal for indicating the start of data transmission may be the first data signal of the data transmission, for example, may be received after a predetermined time (which may be determined by the receiving end and the transmitting end)
- the handshake signal is a signal used by the sending end to indicate the start time of the data transmission of the receiving end.
- the sending end may further transmit the time parameter by using a handshake signal.
- the time parameters include two: etu and pdt
- the receiving end can also determine the values of the time parameters etu and pdt according to t2 and t3.
- t0 and t1 can also satisfy other relationships, as long as the values of the time parameters etu and pdt can be obtained by taking the values of t0 and t1.
- the time parameter can also be determined directly by one time interval of the K handshake signals, or if there are three time parameters, multiple time intervals between the K handshake signals can be adopted.
- the value of the three time parameters is determined by the relationship that is satisfied, and is not described in detail in this embodiment.
- the time parameter is determined by K handshake signals, which can overcome the situation that the theoretical time parameter of the receiving end is inconsistent with the actual time parameter, and the correctness of data transmission is guaranteed.
- the recording unit 140 is configured to determine a signal for indicating the start of data transmission as the first valid signal.
- the recording unit 140 is further configured to: when the effective signal determining unit determines that the time interval between the start time of the Zth signal and the start time of the previous valid signal is a time interval in the acquired correspondence, The signals are recorded as valid signals.
- the valid signal obtaining unit 150 is configured to obtain X valid signals according to the recording of the recording unit, where X ⁇ Y, and X is a positive integer.
- N the time interval corresponding to the bit string of length 1 (ie, 1-bit data or 1-bit bit string) is obtained according to the time parameter, that is, the time interval corresponding to 0 is etu, and the corresponding time interval of 1 is pdt.
- the receiving unit 110 determines that the first signal is a valid signal, wherein, for the received second signal, the determining unit 130 determines that the time interval between the start time of the signal and the start time of the first valid signal C 1 is 15 ⁇ s, the time interval is different from the time interval corresponding to the 1-bit bit string 0 and 1, so the signal is not a valid signal, and the signal is recorded as the invalid signal D, and the invalid signal D should be discarded.
- the judging unit 13 continues to determine that the time interval between the start time of the third signal and the start time of the first valid signal C 1 is 20 ⁇ s, and the time interval is the same as the time interval corresponding to the 1-bit bit string 1, so the signal Is a valid signal, the recording unit 140 records the signal as the second valid signal C 2 and records the start time of the second valid signal C 2 .
- the judging unit 13 continues to judge the time interval between the start time of the fourth signal and the start time of the second valid signal C 2 , and so on, until it is judged that the received Y+1th signal ends.
- the time interval between the start time of the Zth signal and the start time of the previous signal is greater than or equal to a preset value. That is, in the optional implementation, after receiving the first valid signal, the hardware layer of the signal receiving device filters out the current signal that the time interval between the start time of the current signal and the start time of the previous signal is less than the preset value.
- the MCU at the receiving end does not respond to such a signal, but only responds to the current signal (ie, the Zth signal) whose time interval between the start time of the current signal and the start time of the previous signal is greater than or equal to the preset value. This can improve the detection efficiency of subsequent valid signals, thereby reducing the workload of the MCU.
- the preset value may be a minimum value of a time interval in the correspondence relationship acquired by the time interval obtaining unit 120. Since the time interval between the start time of the current signal and the start time of the previous signal is less than the minimum value of the time interval in the corresponding relationship, the current signal must not belong to the valid signal, and thus the current signal may not be received.
- the signal receiving device may perform decoding according to the X valid signals to obtain data transmitted by the transmitting end. Therefore, in an optional implementation of the embodiment of the present application, the signal receiving apparatus may further include: a determining unit, configured to determine a time interval between start times of each two adjacent ones of the obtained X valid signals Obtaining X-1 time intervals, wherein X ⁇ Y+1, and X is a positive integer; the data obtaining unit is configured to acquire, according to the acquired correspondence, each consecutive S time intervals in the X-1 time intervals a bit string corresponding to a single time interval, the bit string transmitted in the S time intervals is obtained, wherein the bit string transmitted in the S time intervals is a bit string corresponding to a single time interval, and in the case of S>1, the S time The interval is the same, S is a positive integer, and S ⁇ X-1; splicing unit is used to string the bits transmitted in every X consecutive time intervals in X-1
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data bits, and There is no problem with redundant signals that can't be decoded.
- the obtained X-1 time interval transmission bit sequence may be decoded to obtain X-1 time interval transmission data, and when decoding, the octet bit may be grouped into one byte. Thereby, data transmitted by X-1 time intervals is obtained.
- the X-1 time interval transmitted bit sequence may further include a check bit.
- the signal receiving apparatus may further include: The unit is configured to decode the bit strings transmitted by X-1 time intervals, obtain data transmitted by X-1 time intervals, and perform data integrity check on the data transmitted by X-1 time intervals.
- Data integrity check includes but is not limited to parity, CRC check, digital signature, sum check, MAC check, etc.
- the present embodiment provides a signal receiving apparatus, which can be used to perform the signal receiving method described in Embodiment 11, and further, the signal receiving apparatus is the data receiving apparatus in Embodiment 4, that is, in this embodiment.
- the function of the described signal receiving apparatus can be supplemented by the function of the data receiving apparatus in Embodiment 4.
- the signal receiving apparatus provided in this embodiment is different from the signal receiving apparatus described in Embodiment 12 in that, in Embodiment 12, after the receiving unit 110 receives the Y+1 signals, the determining unit 130 sequentially determines whether each signal is valid.
- the signal in the present embodiment, after determining the first valid signal, the receiving unit 220 receives a signal, and the determining unit 230 determines whether the signal is a valid signal.
- the method provided by the embodiment is more efficient.
- FIG. 17 is a schematic structural diagram of a signal receiving apparatus according to an embodiment of the present invention.
- the signal receiving apparatus mainly includes: a time interval obtaining unit 210, configured to acquire 2 N bits in a bit string of length N Correspondence between the string and the time interval, wherein the 2 N bit strings are different from each other, and the time intervals corresponding to the different bit strings are different, N ⁇ 1;
- the receiving unit 220 is configured to receive a signal for indicating the start of data transmission, and determine The signal is the first valid signal, and continues to receive the signal.
- the determining unit 230 is configured to determine whether the time interval between the start time of the receiving of the Zth signal and the start time of the previous valid signal by the receiving unit 220 is a time interval.
- the determining unit 230 determines that the time interval between the start time of the Zth signal and the start time of the previous valid signal is a time interval in the correspondence relationship acquired by the time interval acquisition unit 210.
- the signal for indicating the start of data transmission may be the first data signal of the data transmission or the last one of the handshake signals received by the receiving unit 220.
- the time interval obtaining unit 220 may obtain a correspondence between each of the 2 N bit strings of length N and the time interval by determining a time parameter of the current data transmission. And obtaining, according to the time parameter, the correspondence between each of the 2 N bit strings of length N and the time interval.
- the signal receiving apparatus may further include: a determining unit, configured to determine a time interval between start times of each adjacent two of the obtained X valid signals, Obtaining X-1 time intervals, where X ⁇ Y+1, and X is a positive integer; the data obtaining unit is configured to acquire the correspondence obtained by the unit 220 according to the time interval, and obtain each consecutive S in the X-1 time intervals.
- a determining unit configured to determine a time interval between start times of each adjacent two of the obtained X valid signals, Obtaining X-1 time intervals, where X ⁇ Y+1, and X is a positive integer
- the data obtaining unit is configured to acquire the correspondence obtained by the unit 220 according to the time interval, and obtain each consecutive S in the X-1 time intervals.
- bit string transmitted by the S time intervals is obtained, wherein the bit string transmitted by the S time intervals is a bit string corresponding to a single time interval, in the case of S>1,
- the S time intervals are the same, S is a positive integer, and S ⁇ X-1; the splicing unit is configured to splicing the bit strings transmitted every consecutive S time intervals in the X-1 time intervals to obtain X-1 A bit string transmitted at intervals.
- the signal receiving apparatus may further include: a checking unit, configured to decode the bit string transmitted by X-1 time intervals to obtain X-1 time interval transmissions. Data and data integrity check for data transmitted at X-1 time intervals.
- the foregoing units of the signal receiving apparatus may perform corresponding operations in the manner described in Embodiment 2, and details are not described herein again.
- This embodiment provides a data transmission method. As shown in FIG. 18, the data transmission method in this embodiment mainly includes the following steps S1801 to S1806.
- Step S1801 Receive K signals.
- the signal can be a pulse signal, that is, a high level pulse signal (rising edge signal) or a low level pulse signal (falling edge signal), and the pulse signal can be a square wave, a sine wave, A triangular wave or other irregular waveform may also be a combination of the above different waveforms.
- the K signals are received, including at least one of the following:
- Method 1 detecting K times low-level pulse
- the terminal can detect K times of low-level pulses in a continuous high level. For example, after detecting a high level for a period of time, a low-level pulse is detected, and then the detected high power is restored. In the flat state, after a period of time, a low-level pulse is detected again, and in this way, K times of low-level pulses can be continuously detected;
- the terminal can detect K times of high-level pulses in a continuous low level. For example, after detecting a low level for a period of time, a high-level pulse is detected once, and then the detected low power is restored. In the flat state, after a period of time, a high-level pulse is detected again, and in this way, K times of high-level pulses can be continuously detected;
- the K signals belong to the hopping signal, and the hopping amplitude is obvious, which is convenient for distinguishing from the noise signal.
- Step S1802 Detect a time interval between each adjacent two of the K signals.
- the time between the start time of the pth low level signal and the start time of the p+1th low level signal is determined as the time between the pth and p+1th signals
- the start time of the p-th high-level signal is determined to the start time of the p+1-th high-level signal
- the duration between the time interval between the pth and p+1th signals; wherein 1 ⁇ p ⁇ K-1, and p is a natural number; as an alternative embodiment, by detecting each pulse The starting moment of the signal, thereby accurately and quickly obtaining the time interval between the start times of the two adjacent signals.
- Step S1803 Determine whether a preset relationship is satisfied between the first time interval and the second time interval.
- Determining whether the preset relationship is satisfied between the first time interval and the second time interval means determining whether the preset relationship is satisfied between t0 and t1 and between t2 and t3, and the preset relationship may be based on the experience of the technician.
- the preset relationship may be plural, and details are not described herein again.
- Step S1804 Determine a first time interval group and/or a second time interval group.
- the first time interval group includes j first time intervals
- the K-1 time intervals generated according to the K signals will generate a series of first time intervals and second time intervals, and at least one of the plurality of different first time intervals may be selected.
- t0 and t2 may be taken as the first time interval group, and t1 and t3 are taken as the second time interval group.
- This embodiment does not limit the first time interval group and the first time interval.
- the number of time intervals in the two time interval groups may be at least one. In this manner, the first time interval group and/or the second time interval group may be determined to facilitate classification processing of the time interval.
- Step S1805 If the first time interval and the second time interval satisfy a preset relationship, according to at least one first time interval in the first time interval group and/or at least one of the second time interval groups The second time interval determines the time parameter of the current data transmission.
- step S1805 according to at least one first time interval in the first time interval group and/or at least one second time interval in the second time interval group, specifically: according to the first time interval group Determining, by the at least two first time intervals, a time parameter of the current data transmission, determining a time parameter of the current data transmission according to at least two second time intervals in the second time interval group, or according to at least one of the first time interval group
- the first time interval and the at least one second time interval in the second time interval group collectively determine a time parameter of the current data transmission, and the first time interval and the second time interval are not adjacent.
- the first time interval between the ith signal and the i-1th signal and the ith signal and the i+th it may be determined that the K signals are valid handshake signals, at this time, according to the first time interval group, or according to the second time interval group, or according to the first
- the time interval group and the second time interval group determine a time parameter of the current data transmission according to a time parameter generation rule agreed in advance with the data sending end, wherein the pre-agreed time parameter generation rule ensures that each data bit is uniquely encoded. Under the premise, you can choose any kind of way to determine the time parameter;
- the first time interval is between the first signal and the start time of the second signal.
- the time interval, marked as t0, the second time interval is the time interval between the second signal and the start time of the third signal, marked as t1;
- the first time interval is the third signal and
- the time interval between the start times of the fourth signal is marked as t2
- the second time interval is the time interval between the fourth signal and the start time of the fifth signal, which is marked as t3; as an example, the following
- the interval determines the time parameter of the current data transmission is described in detail.
- t0 and t2 are selected as the first time interval group, and the time parameter of the current data transmission is determined according to the first time interval group, where the time parameter includes the first time parameter etu and the second time parameter.
- Pdt, etu and pdt are uniquely represented by t0 and t2, and the values of etu and pdt can be obtained by arbitrary calculation according to the values of t0 and t2.
- etu and pdt can be obtained by any of the following calculation methods, of course, and Not limited to the following calculation methods:
- t0 is selected as the first time interval group, and the time parameter of the current data transmission is determined according to the first time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t0, and the values of etu and pdt can be obtained by arbitrary calculation according to the value of t0.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- t1 and t3 are selected as the second time interval group, and the time parameter of the current data transmission is determined according to the second time interval group, where the time parameter includes the first time parameter etu and the second time.
- the parameters pdt, etu and pdt are uniquely represented by t1 and t3, and the values of etu and pdt can be obtained by any calculation according to the values of t1 and t3.
- etu and pdt can be obtained by any of the following calculation methods, of course, Not limited to the following calculation methods:
- t1 is selected as the second time interval group, and the time parameter of the current data transmission is determined according to the second time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t1
- the values of etu and pdt can be obtained by arbitrary calculation according to the value of t1
- exemplary, Etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods:
- t0 is selected as the first time interval group
- t3 is selected as the first time interval group
- the time parameter of the current data transmission is determined according to the first time interval group and the second time interval group.
- the time parameter includes a first time parameter etu and a second time parameter pdt, etu and pdt are uniquely represented by t0 and t3, and the values of etu and pdt can be obtained by any calculation according to the values of t0 and t3, exemplary, etu and Pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods:
- the first time interval is between the first signal and the start time of the second signal.
- t0, t2, and t4 may be selected as the first time interval group
- t1, t3, and t5 may be selected as the second time interval group, and current data is determined
- the time parameter of the transmission, according to the second time interval group The at least two second time intervals determine a time parameter of the current data transmission, and may also determine the current data according to at least one first time interval in the first time interval group and at least one second time interval in the second time interval group.
- the time parameter of the transmission, and the first time interval and the second time interval are not adjacent, and the acquisition manners of the time parameters etu and pdt are not unique, and different calculation manners may be adopted to pass the first time interval group and/or the second time interval.
- the group can be arbitrarily obtained.
- the first time interval is the time between the first signal and the start time of the second signal.
- the interval is marked as t0
- the second time interval is a time interval between the second signal and the start time of the third signal, which is labeled as t1; as an example, the following is based on the first time interval group
- the manner in which the at least one first time interval and/or at least one of the second time interval groups determines the time parameter of the current data transmission is described in detail.
- t0 is selected as the first time interval group, and the time parameter of the current data transmission is determined according to the first time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t0, and the values of etu and pdt can be obtained by arbitrary calculation according to the value of t0.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- t1 is selected as the second time interval group, and the time parameter of the current data transmission is determined according to the second time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t1, and the values of etu and pdt can be obtained by any calculation according to the value of t1.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- the specific implementation manner of determining the time parameter of the current data transmission in this embodiment is only an exemplary implementation manner, and the present application does not exclude other time parameter generation rules according to at least two first time intervals in the first time interval group. Or determining current data according to at least two second time intervals in the second time interval group, or according to at least one first time interval in the first time interval group and at least one second time interval in the second time interval group The implementation of the time parameter of the transmission.
- the time parameters etu and pdt are determined by the first time interval group and/or the second time interval group, thereby ensuring that the values of etu and pdt are consistent between the transmitting end and the receiving end each time data transmission is performed, thereby ensuring that the values are consistent.
- the stability and accuracy of each data transmission because the receiving end will re-determine the values of the time parameters etu and pdt according to the handshake information sent by the sender before each data transmission, thereby avoiding the frequency difference due to the continuous addition of multiple characters. Accumulate error, effectively prevent When the difference between the transmission clock and the reception time parameter is too large, the sampling at the receiving end is misaligned, causing a reception error and a problem of reduced communication efficiency.
- the step of receiving the handshake signal is continued, that is, the process returns to step S1801.
- the data transmission method provided in this embodiment re-determines the time parameter according to the handshake information before each data is received, so that the time parameters of the transmitting end and the receiving end are always consistent, and the stability and accuracy of the data transmission are ensured; the signal is transmitted by using a pulse signal. It is convenient to distinguish from noise signals; by detecting the rising or falling edge of each signal trigger, the starting time of each signal can be easily obtained, so that the time between the start times of two adjacent signals can be accurately and quickly obtained.
- the interval is determined according to the obtained time interval to determine whether the time interval between the signals satisfies the preset relationship, and whether the received signal is a valid handshake signal, so that the judging process is accurate and rapid, and the success rate is high, according to the first time interval and/or Or determining the first time interval group and/or the second time interval group by the second time interval, and determining the time parameters etu and pdt by the first time interval group and/or the second time interval group, thereby ensuring each data transmission
- the sender and receiver receive the same values for etu and pdt, ensuring each data transmission.
- the receiving end will re-determine the values of the time parameters etu and pdt according to the handshake information sent by the sender before each data transmission, which avoids the error accumulation caused by the continuous addition of multiple characters due to the frequency difference. Preventing the technical problem that the receiving end samples the misalignment when the transmission clock and the receiving time parameter are too different, causing the receiving error and the communication efficiency to be lowered.
- the data transmission method provided in this embodiment mainly includes steps S1901 to S1903.
- Step S1901 Determine a time parameter.
- the time parameter may include the first time parameter and/or the second time parameter.
- the first time parameter is recorded as etu and the second time is used in this embodiment.
- the time interval for sending the handshake signal is determined, and the receiving end may determine the handshake signal according to the received handshake signal.
- the description is convenient for description, and only two time parameters are used.
- the first time interval group and the second time interval group are determined by using two time parameters, but the case of multiple time parameters is not excluded.
- Step S1902 Determine a first time interval group and a second time interval group according to the time parameter.
- the first time interval group includes j first time intervals
- the second time interval group includes j second time intervals.
- the first time interval refers to sending K
- the time interval between the start time of the i-th signal and the start time of the i-1th signal is denoted as T i-1,i
- the second time interval refers to when the K handshake signals are transmitted.
- the first time interval T i-1,i in the first time interval group and the second time interval T i,i+1 in the second time interval group satisfy a certain
- the preset relationship can ensure the validity of the handshake signal, so that the receiving end can receive the handshake signal according to the first time interval T i-1,i and the second time interval T i.
- a preset relationship of i+1 determining that the handshake signal is a signal for instructing to start receiving data; and second, each first time interval T i-1,i in the first time interval group and the first time parameter etu and The second time parameter pdt satisfies a certain preset relationship, so that after receiving the handshake signal, the receiving end can calculate the first time parameter etu by using the received multiple first time intervals according to the same preset relationship. And/or the second time parameter pdt, so that the receiving end can calculate the bit data corresponding to the time interval of the transmission according to the first time parameter etu and/or the second time parameter pdt.
- the first time interval T i-1,i in the first time interval group and the second time interval T i,i+1 in the second time interval group satisfy a certain preset relationship, which may include many
- the first time interval T i-1,i in the first time interval group and the first time parameter etu and/or the second time parameter pdt satisfy a certain preset relationship, and also include multiple types, below, by way of example A detailed explanation of the sexual approach.
- t0 and t2 are the first time interval group
- t1 and t3 are the second time interval group
- the preset relationship between the first time interval and the second time interval means that between t0 and t1, and t2.
- the preset relationship is satisfied at the same time as t3, and the preset relationship may be determined according to the experience of the technician or determined according to actual operating parameters.
- each first time interval T i-1, i t0, t2 in the first time interval group and the first time parameter etu and/or The second time parameter pdt satisfies a certain preset relationship and is described in detail:
- the first time interval t0 and t2 are generated according to one of the first time parameter etu or the second time parameter pdt by using a preset time parameter generation rule.
- t0 and t2 can be obtained by any of the following calculation methods.
- the preset time parameter generation rules are not limited to the following calculation methods:
- the receiving end can calculate etu by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval t0 and t2 are generated according to the preset time parameter generation rule according to the first time parameter etu and the second time parameter pdt, and t0 and t2 can be obtained by any one of the following calculation methods, of course, the preset The time parameter generation rule is not limited to the following calculation methods:
- T2 x*a*etu+b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval t0 and t2 are generated according to the preset time parameter generation rule according to the first time parameter etu and the second time parameter pdt, and t0 and t2 can be obtained by any one of the following calculation methods, of course, the preset The time parameter generation rule is not limited to the following calculation methods:
- T2 a*etu+x*b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval T 1,2 is the first signal and the second signal.
- the time interval between the start times is marked as t0
- the second time interval T 2,3 is the time interval between the second signal and the start time of the third signal, labeled as t1;
- the first The time interval T 3,4 is the time interval between the start of the third signal and the fourth signal, denoted as t2
- the second time interval T 4,5 is between the fourth signal and the start time of the fifth signal
- the t1, t3, and t5 of the second time interval group and the t0, t2, and t4 of the first time interval group respectively satisfy a preset relationship, that is, between t0 and t1, and t2 and t3. And satisfying the preset relationship between t4 and t5, determining the first time interval t0, t2 of the first time interval group by using the preset time parameter generation rule according to the first time parameter etu and/or the second time parameter pdt And the value of t4, the preset time parameter generation rule may adopt different manners, for example, the first time interval t0, t2, and t4, according to one of the first time parameter etu or the second time parameter pdt through the preset The time parameter generation rule is generated. Taking etu as an example, t0, t2, and t4 can be obtained by any of the following calculation methods. Of course, the preset time parameter generation rule is not limited to the following calculation methods:
- the receiving end can calculate etu by using t0, t2, and t4 through the same preset time parameter generation rule.
- the first time interval t0, t2, and t4 are generated according to the first time parameter etu and the second time parameter pdt by using a preset time parameter generation rule, and t0, t2, and t4 may be obtained by any one of the following calculation methods, of course,
- the preset time parameter generation rule is not limited to the following calculation methods:
- T2 x*a*etu+b*pdt
- T4 2x*a*etu+b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0, t2, and t4 through the same preset time parameter generation rule.
- the first time interval t0, t2, and t4 are generated according to the first time parameter etu and the second time parameter pdt by using a preset time parameter generation rule, and t0, t2, and t4 may be obtained by any one of the following calculation methods, of course,
- the preset time parameter generation rule is not limited to the following calculation methods:
- T2 a*etu+x*b*pdt
- T4 a*etu+2 x*b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0, t2, and t4 through the same preset time parameter generation rule.
- the specific implementation manners of determining the first time interval group and the second time interval group of the current data transmission in this embodiment are merely exemplary embodiments, and the present application does not exclude other time parameter generation rules according to the first time parameter etu and / or the second time parameter pdt determines the implementation of the first time interval of the first time interval group, and does not exclude the preset relationship of the other first time interval and the second time interval.
- the first time interval group is determined by the time parameter etu and/or pdt, thereby ensuring that the values of etu and pdt are consistent between the transmitting end and the receiving end each time data transmission is performed, thereby ensuring stable data transmission every time.
- Sex and accuracy because the handshake information sent by the sender before each data transmission re-determines the values of the time parameters etu and pdt, avoiding the frequency difference caused by the continuous addition of multiple characters, which effectively prevents the transmission of the clock.
- the difference between the receiving time parameter and the receiving time parameter is too large, the sampling at the receiving end is misplaced, causing a receiving error and a problem of reduced communication efficiency.
- Step S1903 Generate and transmit K handshake signals.
- generating and sending K handshake signals includes: And generating K handshake signals according to the first time interval group and the second time interval group; wherein the preset relationship is satisfied between the first time interval and the second time interval of the K handshake signals.
- K is a preset value
- K ⁇ 3 and K is an odd number
- the signal may be a pulse signal, that is, a high-level pulse signal (rising edge signal) or a low-level pulse signal is received. (falling edge signal), the pulse signal can be a square wave, a sine wave, a triangle wave or other irregular waveform, or a combination of the above different waveforms.
- K signals are generated and transmitted, including at least one of the following:
- Method 1 Generate and send K times low-level pulses
- the transmitting end triggers K times of low-level pulses in a continuous high level, for example, after continuously triggering a high level for the first time interval, triggering a low-level pulse once, and then resumes triggering a high level.
- the first time interval can be the start time of the ith signal and the ith a time interval between the start times of the signals
- the first time interval is the first signal and the second signal starts.
- the time interval between times is marked as t0
- the second time interval is the time interval between the second signal and the start time of the third signal, and is marked as t1;
- the first time interval is the third time
- the time interval between the start time of the signal and the fourth signal is marked as t2
- the second time interval is the time interval between the start time of the fourth signal and the fifth signal, marked as t3, and the transmitting end is continuously high.
- the low-level pulse is triggered 5 times in the level, including: after continuously triggering the high level for a period of time, triggering the first low-level pulse, and then restoring the state of triggering the high level, after t0, triggering the second The second low level pulse, then resumes the state of triggering the high level. After t1, the third low level pulse is triggered, and then the state of triggering the high level is resumed. After t2, the fourth low is triggered.
- Method 2 generate and send K high-level pulses
- the transmitting end triggers K high-level pulses in a continuous low level, for example, after continuously triggering the low level for the first time interval, triggering a high-level pulse once, and then resumes triggering the low level.
- the first time interval is the first signal and the second signal starts.
- the time interval between times is marked as t0
- the second time interval is the time interval between the second signal and the start time of the third signal, and is marked as t1;
- the first time interval is the third time
- the time interval between the start time of the signal and the fourth signal is marked as t2
- the second time interval is the time interval between the start time of the fourth signal and the fifth signal, marked as t3, and the transmitting end is continuously low.
- the high-level pulse is triggered 5 times in the level, including: after continuously triggering the low level for a period of time, triggering the first high-level pulse, and then restoring the state of triggering the low level, after t0, triggering the second The second high level pulse, then resumes the state of triggering the low level. After t1, the third high level pulse is triggered, and then the state of the low level is restored. After t2, the fourth high is triggered.
- the K signals belong to the hopping signal, and the hopping amplitude is obvious, which is convenient for distinguishing from the noise signal.
- the embodiment provides a data processing device.
- the data processing device includes: a receiving module, a determining module, a time processing module, and a data processing module.
- the receiving module is configured to receive K signals.
- the data processing device provided in this embodiment can determine whether the data can be started to be received through the relationship between the time intervals of the K signals, that is, if the K signals are received after the preset relationship is satisfied.
- the K signals can be regarded as a handshake signal indicating that data reception starts to be received; wherein the signal can be a pulse signal, that is, a high-level pulse signal (rising edge signal) is received, or a low-level pulse signal (down)
- the pulse signal may be a square wave, a sine wave, a triangular wave or other irregular waveform, or may be a combination of the above different waveforms.
- the receiving module is configured to receive K signals, including at least one of the following manners:
- Method 1 The receiving module detects K times of low-level pulses
- the receiving module can detect K times of low level pulses in a continuous high level. For example, after the receiving module detects a high level for a period of time, a low level pulse is detected, and then the detection is resumed. In the high level state, after a period of time, a low level pulse is detected again, and the receiving module can continuously detect K in this way. Secondary low pulse
- Method 2 The receiving module detects K times of high level pulses
- the receiving module can detect K times of the high level pulse in the continuous low level. For example, after the receiving module detects the low level for a period of time, the high level pulse is detected once, and then the detection is resumed. In the low level state, after a period of time, a high level pulse is detected again, and the receiving module can continuously detect K times of the high level pulse in this manner;
- the K signals belong to the hopping signal, and the hopping amplitude is obvious, which is convenient for distinguishing from the noise signal.
- a judging module for detecting a time interval between each two of the K signals
- the determining module detects a time interval between each adjacent two signals of the K signals, optionally, when the K signals are in a continuous high level.
- the judging module determines the duration between the start time of the p-th low-level signal and the start time of the p+1-th low-level signal as the pth and p+1th The time interval between the signals; similarly, when the K signals are K high-level signals in the continuous low level, the determining module determines the starting time of the p-th high-level signal to the p+1th
- the duration between the start times of the high level signals is the time interval between the pth and p+1th signals; wherein 1 ⁇ p ⁇ K-1, and p is a natural number; as an alternative
- the judging module accurately and quickly obtains the time interval between the start times of the two adjacent signals by detecting the start time of each pulse signal.
- the determining module is further configured to determine whether a preset relationship is satisfied between the first time interval and the second time interval.
- the first time interval may be a time interval between a start time of the ith signal and a start time of the i-1th signal
- the second time interval may be the ith time
- the first time interval is the first signal and the second signal.
- the time interval between the start time is marked as t0
- the second time interval is the time interval between the second signal and the start time of the third signal, and is marked as t1;
- the first time interval is The time interval between the start of the three signals and the fourth signal is labeled t2
- the second time interval is the time interval between the fourth signal and the start of the fifth signal, labeled t3.
- Determining whether the preset relationship is satisfied between the first time interval and the second time interval means determining whether the preset relationship is satisfied between t0 and t1 and between t2 and t3, and the preset relationship may be based on the experience of the technician.
- the embodiment does not limit the number of time intervals in the first time interval group and the second time interval group, all of which are j, at least one, and the time processing module can determine the first time interval group and/or in this manner. Or a second time interval group, which facilitates classifying the time interval.
- the time processing module is configured to: according to at least one first time interval in the first time interval group and/or at least one second time in the second time interval group The interval determines a time parameter of the current data transmission;
- the time processing module determines a time parameter of the current data transmission according to at least one first time interval in the first time interval group and/or at least one second time interval in the second time interval group, specifically: time The processing module is configured according to at least two first time intervals in the first time interval group, or according to at least two second time intervals in the second time interval group, or according to at least one first time interval in the first time interval group And generating, by the at least one second time interval in the second time interval group, a rule according to a time parameter pre-agreed with the data sending end, and the first time interval and the second time interval are not adjacent.
- the time processing module is configured according to at least two first time intervals in the first time interval group.
- time parameter generating rule pre-agreed by the sending end, and the first time interval and the second time interval are not adjacent, determining a time parameter of the current data transmission, wherein the pre-agreed time parameter generating rule ensures that each data bit is encoded uniquely Under the premise, you can choose any kind of way to determine the time parameters.
- the first time interval is between the first signal and the start time of the second signal.
- the time interval, marked as t0, the second time interval is the time interval between the second signal and the start time of the third signal, marked as t1;
- the first time interval is the third signal and
- the time interval between the start times of the fourth signal is marked as t2
- the second time interval is the time interval between the fourth signal and the start time of the fifth signal, which is marked as t3; as an example, the following According to the first time
- the manner in which at least one first time interval in the interval group and/or at least one second time interval in the second time interval group determines the time parameter of the current data transmission is described in detail.
- the time processing module selects t0 and t2 as the first time interval group, and determines a time parameter of the current data transmission according to the first time interval group, where the time parameter includes the first time parameter etu and the first
- the two time parameters pdt, etu and pdt are uniquely represented by t0 and t2, and the values of etu and pdt can be obtained by arbitrary calculation according to the values of t0 and t2.
- etu and pdt can be obtained by any of the following calculation methods. Of course, it is not limited to the following calculation methods:
- the time processing module selects t0 as the first time interval group, and determines a time parameter of the current data transmission according to the first time interval group, where the time parameter includes the first time parameter etu and the second
- the time parameters pdt, etu and pdt are uniquely represented by t0, and the values of etu and pdt can be obtained by any calculation according to the value of t0.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to The following calculation method:
- the time processing module selects t1 and t3 as the second time interval group, and determines a time parameter of the current data transmission according to the second time interval group, where the time parameter includes the first time parameter etu and
- the second time parameters pdt, etu and pdt are uniquely represented by t1 and t3, and the values of etu and pdt can be obtained by any calculation according to the values of t1 and t3.
- etu and pdt can be obtained by any of the following calculation methods. Of course, it is not limited to the following calculation methods:
- the time processing module selects t1 as the second time interval group, and determines a time parameter of the current data transmission according to the second time interval group, where the time parameter includes the first time parameter etu and the second
- the time parameters pdt, etu and pdt are uniquely represented by t1, and the values of etu and pdt can be obtained by any calculation according to the value of t1.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to The following calculation method:
- the first time interval is the time between the first signal and the start time of the second signal.
- the interval is marked as t0
- the second time interval is a time interval between the second signal and the start time of the third signal, which is labeled as t1; as an example, the following is based on the first time interval group
- the manner in which the at least one first time interval and/or at least one of the second time interval groups determines the time parameter of the current data transmission is described in detail.
- t0 is selected as the first time interval group, and the time parameter of the current data transmission is determined according to the first time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t0, and the values of etu and pdt can be obtained by arbitrary calculation according to the value of t0.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- t1 is selected as the second time interval group, and the time parameter of the current data transmission is determined according to the second time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t1, and the values of etu and pdt can be obtained by any calculation according to the value of t1.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- the time processing module may select t0, t2, and t5 as the first time interval group, or t1, t3, and t6 as the second time interval group, and the time processing module
- Time interval to determine the time of the current data transmission And determining, according to at least two second time intervals in the second time interval group, a time parameter of the current data transmission, or according to at least one of the first time interval group and the second time interval group in the first time interval group
- a second time interval jointly determines a time parameter of the current data transmission, and the first time interval and the second time interval are not adjacent, and the time parameters etu and pdt are not uniquely obtained, and the time processing module can adopt different calculation methods.
- the first time interval is the time between the first signal and the start time of the second signal.
- the interval is marked as t0
- the second time interval is a time interval between the second signal and the start time of the third signal, which is labeled as t1; as an example, the following is based on the first time interval group
- the manner in which the at least one first time interval and/or at least one of the second time interval groups determines the time parameter of the current data transmission is described in detail.
- t0 is selected as the first time interval group, and the time parameter of the current data transmission is determined according to the first time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t0, and the values of etu and pdt can be obtained by arbitrary calculation according to the value of t0.
- etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods. :
- t1 is selected as the second time interval group, and the time parameter of the current data transmission is determined according to the second time interval group, where the time parameter includes the first time parameter etu and the second time parameter pdt.
- etu and pdt are uniquely represented by t1
- the values of etu and pdt can be obtained by arbitrary calculation according to the value of t1
- exemplary, Etu and pdt can be obtained by any of the following calculation methods, of course, not limited to the following calculation methods:
- the specific implementation manner of determining the time parameter of the current data transmission in this embodiment is only an exemplary implementation manner, and the present application does not exclude other time parameter generation rules according to at least two first time intervals in the first time interval group. Or determining current data according to at least two second time intervals in the second time interval group, or according to at least one first time interval in the first time interval group and at least one second time interval in the second time interval group The implementation of the time parameter of the transmission.
- the time processing module determines the time parameters etu and pdt through the first time interval group and/or the second time interval group, thereby ensuring that the values of etu and pdt are maintained at the transmitting end and the receiving end each time data transmission is performed. Consistently, the stability and accuracy of each data transmission are guaranteed. Because each time before the data transmission, the receiving end will re-determine the values of the time parameters etu and pdt according to the handshake information sent by the transmitting end, thereby avoiding the frequency difference due to multiple characters. Continuous accumulation causes error accumulation, which effectively prevents the sampling error of the receiving end when the difference between the sending clock and the receiving time parameter is too large, causing receiving errors and reducing communication efficiency.
- the receiving module continues to receive the handshake signal.
- a data processing module for receiving data according to a time parameter.
- the receiving module is further configured to receive X signals, determine a time interval between start times of each of the two adjacent X signals, and obtain X-1 times.
- An interval where X is a positive integer, and X>1;
- the data processing module is further configured to receive the X signals according to the time parameter, specifically, the data processing module, configured to acquire each consecutive S in the X-1 time interval N data bits corresponding to a single time interval in a time interval, the data bits transmitted in the S time intervals are obtained, and the obtained data bits transmitted in the S time intervals are the obtained N data bits, wherein, in the case of S>1 Next, S time intervals are the same, wherein X and S are both positive integers, and S ⁇ X-1.
- the data bit is determined according to the time parameter of the current data transmission, such as the current data receiving end and the data sending end.
- the data processing module performs data reception according to the first time parameter etu and the second time parameter pdt according to a codec rule agreed in advance with the data sending end; the data processing module according to the time parameter receiving data comprising: acquiring a correspondence relationship of 2 N N-bit data containing different values of the time intervals in accordance with said time parameter, wherein different values corresponding to different time intervals, wherein, N ⁇ 1.
- the data processing module acquires the correspondence between the 2N different values and the time interval included in the N-bit data according to the first time parameter etu and the second time parameter pdt according to the codec rule agreed in advance with the data transmitting end, and the pre-agreed editing
- the decoding rule may be any manner that can ensure that N data bits of different values correspond to a unique time interval, exemplarily:
- N data bits of different values include: 0, 1, at this time,
- N data bits of different values include: 00, 01, 10, and 11, at this time,
- N data bits of different values include: 000, 001, 010, 011, 100, 101, 110, 111.
- the time interval corresponding to the 2N different values included in the N-bit data is obtained according to the codec rule that is pre-agreed with the data sending end.
- codec rule that is pre-agreed with the data sending end.
- the data processing module obtains a time interval corresponding to 2 N different values included in the N-bit data according to the first time parameter etu and the second time parameter pdt in a manner agreed in advance with the data transmitting end, wherein the time intervals corresponding to the different values are different. Therefore, the different data bits corresponding to the received different time intervals are distinguished, and the data sent by the transmitting end is obtained by using the received time interval.
- the time processing module is further configured to obtain a time interval corresponding to N bits of different values according to a time parameter before the data processing module acquires the transmitted data, where N bits of different values are used. Corresponding time intervals are different, N ⁇ 1;
- the time interval of the data bit is calculated by a pre-negotiated calculation method, and the scalability of the data transmission can be ensured, that is, regardless of the value of N, the data transmitting end and the data receiving end can calculate the time of the data bit. interval.
- the data receiving end may also use a list pre-stored with the data transmitting end to determine the time interval of the data bit.
- the data processing module may determine the time interval of the data bit by using a lookup list, thereby improving the efficiency of obtaining the data bit time interval.
- X-1 n*S, n ⁇ 1 and n is an integer.
- X signals can transmit n*S data bits, and There is no problem with redundant signals that can't be decoded.
- the data processing device further includes a time parameter update module, which can be used to replace the time parameter, that is, replace the current used time parameter with a new one according to a preset rule.
- the time parameter, the new time parameter is used as the time parameter of the current data transmission;
- the data processing module is further configured to decode the received X signals according to the time interval corresponding to the N bits of the reacquired different values, that is, according to the current Using the time parameter, the N bits corresponding to a single time interval in each consecutive S time interval in the X-1 time interval are obtained, and the data bits transmitted in the S time intervals are obtained, and the obtained data bits of the S time intervals are obtained. N bits.
- the determination of the new time parameter may be completed by negotiation between the data sending end and the data receiving end, or may be completed by searching the pre-stored time parameter table by the data sending end and the data receiving end, such as sending some type of data.
- the time table determines the time parameters that should be used for this type of data.
- the time parameter of the data transmitting end can be changed, and the data receiving device capable of matching different data processing capabilities or matching different types of data can further improve the efficiency of data processing.
- the receiving module is further configured to: after completing the reception of the last data bit, further receive an end signal (Z ⁇ 1 and an integer), and the end signal may be combined with the handshake signal. Similarly, it may be a signal of another specific format, by which the data processing module can determine whether the data bit is received or not.
- the receiving module is further configured to: after receiving the last data bit, or after receiving the A end signal, the receiving module is further configured to receive the check data bit, Through the check data bit, it is judged whether the received data is complete and correct.
- the check data bits include check data calculated by a check method such as MAC check, parity check, and sum check.
- the data processing device further includes a filtering module, configured to receive Z signals, remove interference in the Z signals, obtain X signals, and send the signals to the receiving module. , where Z ⁇ X.
- the data processing module can be based on the time when the waveform is received.
- the interval determines the data bits of the received waveform, and the data can be received using only two lines.
- the volume of the electronic device can be effectively reduced.
- the data processing module provided in this embodiment re-determines the time parameter according to the handshake information before receiving the data each time, ensuring that the time parameters of the transmitting end and the receiving end are always consistent, ensuring the stability and accuracy of the data transmission; the signal is transmitted by using a pulse signal. It is convenient to distinguish from noise signals; by detecting the rising or falling edge of each signal trigger, the starting time of each signal can be easily obtained, so that the time between the start times of two adjacent signals can be accurately and quickly obtained.
- the interval is determined according to the obtained time interval to determine whether the time interval between the signals satisfies the preset relationship, and whether the received signal is a valid handshake signal, so that the judging process is accurate and rapid, and the success rate is high, according to the first time interval and/or Or determining the first time interval group and/or the second time interval group by the second time interval, and determining the time parameters etu and pdt by the first time interval group and/or the second time interval group, thereby ensuring each data transmission
- the sender and receiver receive the same values for etu and pdt, ensuring each data transmission.
- the receiving end will re-determine the values of the time parameters etu and pdt according to the handshake information sent by the sender before each data transmission, which avoids the error accumulation caused by the continuous addition of multiple characters due to the frequency difference. Preventing the technical problem that the receiving end samples the misalignment when the transmission clock and the receiving time parameter are too different, causing the receiving error and the communication efficiency to be lowered.
- the embodiment provides a data processing device.
- the data processing device includes: a second time parameter module, a second time processing module, and a second signal generation and sending module.
- the second time parameter module is configured to determine a time parameter.
- the time parameter may include the first time parameter and/or the second time parameter.
- the first time parameter is recorded as etu and the second time is used in this embodiment.
- the time interval for sending the handshake signal is determined, and the receiving end may determine the handshake signal according to the received handshake signal.
- the description is convenient for description, and only two time parameters are used.
- the first time interval group and the second time interval group are determined by using two time parameters, but the case of multiple time parameters is not excluded.
- the second time processing module is configured to determine a first time interval group and a second time interval group according to the time parameter, where the first time interval group includes j first time intervals, and the second time The interval group includes j second time intervals.
- the first time interval refers to a start time of the ith signal and a start time of the i-1th signal when the second signal generation and transmission module sends K handshake signals.
- the time interval between them is denoted as T i-1,i
- the second time interval refers to the time interval between the start time of the i-th signal and the start time of the i+1th signal when K handshake signals are transmitted.
- the first time interval T i-1,i in the first time interval group and the second time interval T i,i+1 in the second time interval group satisfy a certain
- the preset relationship can ensure the validity of the handshake signal, so that the receiving end can receive the handshake signal according to the first time interval T i-1,i and the second time interval T i.
- a preset relationship of i+1 determining that the handshake signal is a signal for instructing to start receiving data; and second, each first time interval T i-1,i in the first time interval group and the first time parameter etu and The second time parameter pdt satisfies a certain preset relationship, so that after receiving the handshake signal, the receiving end can calculate the first time parameter etu by using the received multiple first time intervals according to the same preset relationship. And/or the second time parameter pdt, so that the receiving end can calculate the bit data corresponding to the time interval of the transmission according to the first time parameter etu and/or the second time parameter pdt.
- the first time interval T i-1,i in the first time interval group and the second time interval T i,i+1 in the second time interval group satisfy a certain preset relationship, which may include many
- the first time interval T i-1,i in the first time interval group and the first time parameter etu and/or the second time parameter pdt satisfy a certain preset relationship, and also include multiple types, below, by way of example A detailed explanation of the sexual approach.
- t0 and t2 are the first time interval group
- t1 and t3 are the second time interval group
- the preset relationship between the first time interval and the second time interval means that between t0 and t1, and t2.
- the preset relationship is satisfied at the same time as t3, and the preset relationship may be determined according to the experience of the technician or determined according to actual operating parameters.
- each first time interval T i-1, i t0, t2 in the first time interval group and the first time parameter etu and/or The second time parameter pdt satisfies a certain preset relationship and is described in detail:
- the first time interval t0 and t2 are generated according to one of the first time parameter etu or the second time parameter pdt by using a preset time parameter generation rule.
- t0 and t2 can be obtained by any of the following calculation methods.
- the preset time parameter generation rules are not limited to the following calculation methods:
- the receiving end can calculate etu by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval t0 and t2 are generated according to the preset time parameter generation rule according to the first time parameter etu and the second time parameter pdt, and t0 and t2 can be obtained by any one of the following calculation methods, of course, the preset The time parameter generation rule is not limited to the following calculation methods:
- T2 x*a*etu+b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval t0 and t2 are generated according to the preset time parameter generation rule according to the first time parameter etu and the second time parameter pdt, and t0 and t2 can be obtained by any one of the following calculation methods, of course, the preset The time parameter generation rule is not limited to the following calculation methods:
- T2 a*etu+x*b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0 and t2 through the same preset time parameter generation rule.
- the first time interval T 1,2 is the first signal and the second signal.
- the time interval between the start times is marked as t0
- the second time interval T 2,3 is the time interval between the second signal and the start time of the third signal, labeled as t1;
- the first The time interval T 3,4 is the time interval between the start of the third signal and the fourth signal, denoted as t2
- the second time interval T 4,5 is between the fourth signal and the start time of the fifth signal
- the t1, t3, and t5 of the second time interval group and the t0, t2, and t4 of the first time interval group respectively satisfy a preset relationship, that is, between t0 and t1, and t2 and t3. And satisfying the preset relationship between t4 and t5, determining the first time interval t0, t2 of the first time interval group by using the preset time parameter generation rule according to the first time parameter etu and/or the second time parameter pdt And the value of t4, the preset time parameter generation rule may adopt different manners, for example, the first time interval t0, t2, and t4, according to one of the first time parameter etu or the second time parameter pdt through the preset The time parameter generation rule is generated. Taking etu as an example, t0, t2, and t4 can be obtained by any of the following calculation methods. Of course, the preset time parameter generation rule is not limited to the following calculation methods:
- the receiving end can calculate etu by using t0, t2, and t4 through the same preset time parameter generation rule.
- the first time interval t0, t2, and t4 are generated according to the first time parameter etu and the second time parameter pdt by using a preset time parameter generation rule, and t0, t2, and t4 may be obtained by any one of the following calculation methods, of course,
- the preset time parameter generation rule is not limited to the following calculation methods:
- T2 x*a*etu+b*pdt
- T4 2x*a*etu+b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0, t2, and t4 through the same preset time parameter generation rule.
- the first time interval t0, t2, and t4 are generated according to the first time parameter etu and the second time parameter pdt by using a preset time parameter generation rule, and t0, t2, and t4 may be obtained by any one of the following calculation methods, of course,
- the preset time parameter generation rule is not limited to the following calculation methods:
- T2 a*etu+x*b*pdt
- T4 a*etu+2 x*b*pdt
- a and b are natural numbers ⁇ 1, and x is a rational number. Therefore, the receiving end can calculate etu and pdt by using t0, t2, and t4 through the same preset time parameter generation rule.
- the specific implementation manners of determining the first time interval group and the second time interval group of the current data transmission in this embodiment are merely exemplary embodiments, and the present application does not exclude other time parameter generation rules according to the first time parameter etu and / or the second time parameter pdt determines the implementation of the first time interval of the first time interval group, and does not exclude the preset relationship of the other first time interval and the second time interval.
- the first time interval group is determined by the time parameter etu and/or pdt, thereby ensuring that the values of etu and pdt are consistent between the transmitting end and the receiving end each time data transmission is performed, thereby ensuring stable data transmission every time.
- Sex and accuracy because the handshake information sent by the sender before each data transmission re-determines the values of the time parameters etu and pdt, avoiding the frequency difference caused by the continuous addition of multiple characters, which effectively prevents the transmission of the clock.
- the difference between the receiving time parameter and the receiving time parameter is too large, the sampling at the receiving end is misplaced, causing a receiving error and a problem of reduced communication efficiency.
- the second signal generation transmitting module is configured to generate and transmit K handshake signals.
- generating and sending K handshake signals includes: Generating and transmitting K handshake signals according to the first time interval group and the second time interval group; wherein the preset relationship is satisfied between the first time interval and the second time interval of the K handshake signals, refer to Embodiment 14 A description of a preset relationship that needs to be satisfied for the first time interval and the second time interval.
- K is a preset value
- K ⁇ 3 and K is an odd number
- the signal may be a pulse signal, that is, a high-level pulse signal (rising edge signal) or a low-level pulse signal is received. (falling edge signal), the pulse signal can be a square wave, a sine wave, a triangle wave or other irregular waveform, or a combination of the above different waveforms.
- the second signal generating and transmitting module generates and transmits K signals, including at least one of the following manners:
- the second signal generating sending module generates and sends K times of low level pulses
- the second signal generating and transmitting module triggers K times of the low level pulse in the continuous high level.
- the second signal generating transmitting module triggers the low level after the first time interval of continuously triggering the high level.
- the flat pulse is then restored to the state of triggering the high level.
- the low level pulse is triggered again. In this way, K times of low level pulses can be continuously generated.
- the first time interval can be The time interval between the start time of the i-th signal and the start time of the i-1th signal
- the first time interval is the first signal and the second signal starts.
- the time interval between times is marked as t0
- the second time interval is the time interval between the second signal and the start time of the third signal, and is marked as t1;
- the first time interval is the third time
- the second time interval is the time interval between the fourth signal and the start time of the fifth signal, labeled t3, and the second signal is sent.
- the module triggers 5 low-level pulses in a continuous high level, including: the second signal generation transmitting module triggers the first low-level pulse after continuously triggering the high level for a period of time, and then resumes triggering the high level. State, after t0, triggers the second low-level pulse, and then resumes the state of triggering the high level. After t1, the third low-level pulse is triggered, and then the state of triggering the high level is resumed. After t2, the fourth low-level pulse is triggered, After that, the state of triggering the high level is resumed. After t3, the fifth low-level pulse is triggered, and in this way, the low-level pulse can be continuously generated 5 times, and the first time interval and the second time interval are satisfied.
- the second signal generation transmitting module generates and sends K times a high level pulse
- the second signal generating transmitting module triggers K times of the high level pulse in the continuous low level.
- the second signal generating transmitting module triggers the high level after the first time interval of continuously triggering the low level.
- the K-level high-level pulse is continuously generated, and the first time interval may be a time interval between the start time of the ith signal and the start time of the i-1th signal, and the second time interval may be the ith signal.
- the first time interval is the first signal and the second signal starts.
- the time interval between times is marked as t0
- the second time interval is the time interval between the second signal and the start time of the third signal, and is marked as t1;
- the first time interval is the third time
- the second time interval is the time interval between the fourth signal and the start time of the fifth signal, labeled t3, and the second signal is sent.
- the module triggers 5 high-level pulses in a continuous low level, including: the second signal generation transmitting module triggers the first high-level pulse after continuously triggering the low level for a period of time, and then resumes triggering the low level.
- the state after t0, triggers the second high-level pulse, and then resumes the state of triggering the low level, after t1, triggers the third high-level pulse, and then resumes the state of triggering the low level.
- the fourth high pulse is triggered, then After that, the state of triggering the low level is resumed.
- the fifth high-level pulse is triggered, and in this way, the high-level pulse can be continuously generated 5 times, and the first time interval and the second time interval are satisfied.
- the K signals belong to the hopping signal, and the hopping amplitude is obvious, which is convenient for distinguishing from the noise signal.
- the time parameter is re-determined according to the handshake information before each data is received, so that the time parameters of the transmitting end and the receiving end are always consistent, and the stability and accuracy of the data transmission are ensured;
- the signal is transmitted by using a pulse signal, which is convenient for distinguishing from the noise signal;
- the receiving end will re-determine the values of the time parameters etu and pdt, which avoids the frequency difference due to the continuous addition of multiple characters, which effectively prevents the difference between the sending clock and the receiving time.
- it is too large, it causes the receiver to sample the misalignment, causing reception errors and technical problems of reduced communication efficiency.
- portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
- multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
- a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques well known in the art: having logic gates for implementing logic functions on data signals. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
- each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
- An integrated module can also be stored in a computer readable storage medium if it is implemented as a software functional module and sold or used as a standalone product.
- the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
- Dc Digital Transmission (AREA)
Abstract
Description
时间参数标识 | edu(us) | pdt(us) |
0 | 100 | 10 |
1 | 50 | 5 |
2 | 10 | 1 |
比特串 | 时间间隔 |
00 | etu |
01 | etu+pdt |
10 | etu+2pdt |
11 | etu+3pdt |
比特串 | 时间间隔(μs) |
00 | 10 |
01 | 15 |
10 | 20 |
11 | 30 |
Claims (42)
- 一种数据发送方法,其特征在于,包括:确定当前数据传输的时间参数;按照所述时间参数获取N比特数据包含的2N个不同数值与时间间隔的对应关系,其中,不同数值对应的时间间隔不同,N≥1;获取当前待发送的数据比特串;将所述数据比特串进行分组,每组数据为N比特;根据获取的所述对应关系,以每组数据的数值对应的时间间隔表示该组数据的方式发送该组数据。
- 根据权利要求1所述的方法,其特征在于,对于每组数据,发送该组数据,包括:产生并发送M个信号,其中,每个所述信号的开始时刻与相邻的上一个信号的开始时刻的时间间隔为该组数据的数值对应的时间间隔,M≥1且M为自然数。
- 根据权利要求2所述的方法,其特征在于,所述产生M个信号包括:按照所述时间间隔产生M次低电平脉冲。
- 根据权利要求1至3中任一项所述的方法,其特征在于,在发送第一组数据之前,所述方法还包括:产生并发送K个握手信号,K≥2且K为整数。
- 根据权利要求4所述的方法,其特征在于,所述K个握手信号之间满足预设关系。
- 根据权利要求5所述的方法,其特征在于,所述K个握手信号包含时间参数。
- 根据权利要求5或6所述的方法,其特征在于,所述K个握手信号之间满足预设关系包括:第一时间间隔与第二时间间隔之间满足预设关系,所述第一时间间隔为第i个握手信号的开始时刻与第i-1个握手信号的开始时刻之间的时间间隔,所述第二时间间隔为第i个握手信号的开始时刻与第i+1个握手信号的开始时刻之间的时间间隔,i=2,4,……,2j,j=(K-1)/2,K≥3且K为奇数。
- 根据权利要求7所述的方法,其特征在于,根据所述时间参数确定第一时间间隔组和/或第二时间间隔组,所述第一时间间隔组包括至少一个所述第一时间间隔,所述第二时间间隔组包括至少一个所述第二时间间隔。
- 根据权利要求7或8所述的方法,其特征在于,所述产生K个握手信号包括:按照所述第一时间间隔和所述第二时间间隔产生K次低电平脉冲。
- 根据权利要求1至9中任一项所述的方法,其特征在于,还包括:按照预设规则,将当前使用的时间参数替换为新的时间参数,将新的时间参数作为当 前数据传输的时间参数;按照当前数据传输的时间参数更新对应关系;利用更新后的对应关系进行数据传输。
- 一种数据接收方法,其特征在于,包括:确定当前数据传输的时间参数;接收到X个信号,确定所述X个信号中每相邻两个信号的起始时刻之间的时间间隔,得到X-1个时间间隔,其中,X为正整数,且X>1;根据确定的所述时间参数,获取所述X-1个时间间隔中每连续S个时间间隔中单个时间间隔对应的数值,得到所述S个时间间隔传输的数值,所述S个时间间隔传输的数值为所述单个时间间隔对应的数值,所述数值为N比特数据包含的2N个不同数值中的一个,其中,在S>1的情况下,所述S个时间间隔相同,X和S均为正整数,且S≤X-1,N≥1。
- 根据权利要求11所述的方法,其特征在于,在获取所述X-1个时间间隔中第一个连续S个时间间隔传输的数值之前,所述方法还包括:按照所述时间参数获取N比特数据包含的2N个不同数值与时间间隔的对应关系,其中,不同数值对应的时间间隔不同。
- 根据权利要求11或12所述的方法,其特征在于,X-1=n*S,n≥1且n为整数。
- 根据权利要求11至13中任一项所述的方法,其特征在于,所述接收X个信号包括:检测到X次低电平脉冲。
- 根据权利要求11至14中任一项所述的方法,其特征在于,在所述接收到X个信号之前,所述方法还包括:接收到K个信号,检测K个信号之间是否满足预设关系,其中,K≥2且K为整数。
- 根据权利要求15所述的方法,其特征在于,所述确定当前数据传输的时间参数包括:根据所述K个信号确定时间参数。
- 根据权利要求15或16所述的方法,其特征在于,所述检测K个信号之间是否满足预设关系,包括:检测所述K个信号之间的时间间隔,判断第一时间间隔与第二时间间隔之间是否满足预设关系,所述第一时间间隔为第i个信号的开始时刻与第i-1个信号的开始时刻之间的时间间隔,所述第二时间间隔为第i个信号的开始时刻与第i+1个信号的开始时刻之间的时间间隔,i=2,4,……,2j,j=(K-1)/2,K≥3且K为奇数;若所述第一时间间隔与所述第二时间间隔满足预设关系,执行所述接收X个信号的步 骤。
- 根据权利要求17所述的方法,其特征在于,所述根据K个信号确定时间参数包括:确定第一时间间隔组和/或第二时间间隔组,所述第一时间间隔组包括至少一个所述第一时间间隔,所述第二时间间隔组包括至少一个所述第二时间间隔;根据所述第一时间间隔组和/或所述第二时间间隔组确定所述时间参数。
- 根据权利要求15至18中任一项所述的方法,其特征在于,所述接收K个信号包括:检测到K次低电平脉冲。
- 根据权利要求11至18中任一项所述的方法,其特征在于,还包括:按照预设规则,将当前使用的时间参数替换为新的时间参数,将新的时间参数作为当前数据传输的时间参数;接收到所述X个信号,确定所述X个信号中每相邻两个信号的起始时刻之间的时间间隔,得到X-1个时间间隔,其中,X为正整数,且X>1;根据当前数据传输的时间参数,获取X-1个时间间隔中每连续S个时间间隔中单个时间间隔对应的数值,得到S个时间间隔传输的数值,S个时间间隔传输的数值为单个时间间隔对应的数值,数值为N比特数据包含的2N个不同数值中的一个,其中,在S>1的情况下,S个时间间隔相同。
- 根据权利要求11至19中任一项所述的方法,其特征在于,所述接收到X个信号包括:接收Y+1个信号,去除Y+1个信号中的干扰,得到X个信号,其中Y+1≥X。
- 一种数据发送装置,其特征在于,包括时间参数确定单元、时间间隔获取单元、数据比特串获取单元、发送单元,其中:所述时间参数确定单元,用于确定当前数据传输的时间参数;所述时间间隔获取单元,用于按照所述时间参数获取N比特数据包含的2N个不同数值与时间间隔的对应关系,其中,不同数值对应的时间间隔不同,N≥1;所述数据比特串获取单元,用于获取当前待发送的数据比特串,将所述数据比特串进行分组,每组数据为N比特;所述发送单元,用于根据获取的所述对应关系,以每组数据的数值对应的时间间隔表示该组数据的方式发送该组数据。
- 根据权利要求22所述的装置,其特征在于,对于每组数据,所述发送单元用于发送该组数据,包括:所述发送单元用于产生并发送M个信号,其中,每个所述信号的开始时刻与相邻的上一个信号的开始时刻的时间间隔为该组数据的数值对应的时间间隔,M≥1且M为自然数。
- 根据权利要求23所述的装置,其特征在于,所述发送单元用于产生M个信号包括:所述发送单元用于按照所述时间间隔产生M次低电平脉冲。
- 根据权利要求22至24中任一项所述的装置,其特征在于,还包括握手信号发送单元,其中所述握手信号发送单元,用于产生并发送K个握手信号,K≥2且K为整数。
- 根据权利要求25所述的装置,其特征在于,所述K个握手信号之间满足预设关系。
- 根据权利要求25所述的装置,其特征在于,所述K个握手信号包含时间参数。
- 根据权利要求26或27所述的装置,其特征在于,所述K个握手信号之间满足预设关系包括:第一时间间隔与第二时间间隔之间满足预设关系,所述第一时间间隔为第i个握手信号的开始时刻与第i-1个握手信号的开始时刻之间的时间间隔,所述第二时间间隔为第i个握手信号的开始时刻与第i+1个握手信号的开始时刻之间的时间间隔,i=2,4,……,2j,j=(K-1)/2,K≥3且K为奇数。
- 根据权利要求28所述的装置,其特征在于,还包括:握手信号时间间隔确定单元,用于根据时间参数确定第一时间间隔组和/或第二时间间隔组,所述第一时间间隔组包括至少一个所述第一时间间隔,所述第二时间间隔组包括至少一个所述第二时间间隔。
- 根据权利要求27至29中任一项所述的装置,其特征在于,所述握手信号发送单元用于产生K个握手信号包括:所述握手信号发送单元用于按照第一时间间隔和第二时间间隔产生K次低电平脉冲。
- 根据权利要求22至30中任一项所述的装置,其特征在于,还包括时间参数更新单元,其中:所述时间参数更新单元,用于按照预设规则,将当前使用的时间参数替换为新的时间参数,将新的时间参数作为当前数据传输的时间参数,触发时间间隔获取单元按照新的时间参数更新对应关系;时间间隔获取单元,用于按照当前数据传输的时间参数更新对应关系;发送单元,用于利用更新后的对应关系进行数据传输。
- 一种数据接收装置,其特征在于,包括时间参数确定单元接收单元和数据获取单元,其中:所述时间参数确定单元,用于确定当前数据传输的时间参数;所述接收单元,用于接收到X个信号,确定所述X个信号中每相邻两个信号的起始时刻之间的时间间隔,得到X-1个时间间隔,其中,X为正整数,且X>1;所述数据获取单元,用于根据确定的所述时间参数,获取所述X-1个时间间隔中每连 续S个时间间隔中单个时间间隔对应的数值,得到所述S个时间间隔传输的数值,所述S个时间间隔传输的数值为所述单个时间间隔对应的数值,所述数值为N比特数据包含的2N个不同数值中的一个,其中,在S>1的情况下,所述S个时间间隔相同。
- 根据权利要求32所述的装置,其特征在于,还包括时间间隔获取单元,所述时间间隔获取单元,用于在所述数据获取单元获取所述X-1个时间间隔中第一个连续S个时间间隔传输的数值之前,按照所述时间参数获取N比特数据包含的2N个不同数值与时间间隔的对应关系,其中,不同数值对应的时间间隔不同。
- 根据权利要求32或33所述的装置,其特征在于,X-1=n*S,n≥1且n为整数。
- 根据权利要求32至34任一项所述的装置,其特征在于,所述接收单元用于接收X个信号包括:所述接收单元用于检测到X次低电平脉冲。
- 根据权利要求32至35任一项所述的装置,其特征在于,还包括握手信号接收单元,其中:所述握手信号接收单元,用于接收到K个信号,检测K个信号之间是否满足预设关系。
- 根据权利要求36所述的装置,其特征在于,所述时间参数确定单元用于确定当前数据传输的时间参数包括:时间参数确定单元用于根据K个信号确定时间参数。
- 根据权利要求36或37所述的装置,其特征在于,所述握手信号接收单元用于接收到K个信号包括:握手信号接收单元用于检测K个信号之间的时间间隔,判断第一时间间隔与第二时间间隔之间是否满足预设关系,所述第一时间间隔为第i个信号的开始时刻与第i-1个信号的开始时刻之间的时间间隔,所述第二时间间隔为第i个信号的开始时刻与第i+1个信号的开始时刻之间的时间间隔,i=2,4,……,2j,j=(K-1)/2,K≥3且K为奇数;若所述第一时间间隔与所述第二时间间隔满足预设关系,通知所述接收单元执行接收X个信号。
- 根据权利要求38所述的装置,其特征在于,所述时间参数确定单元用于确定当前数据传输的时间参数包括:所述时间参数确定单元用于确定第一时间间隔组和/或第二时间间隔组,所述第一时间间隔组包括至少一个所述第一时间间隔,所述第二时间间隔组包括至少一个所述第二时间间隔;以及根据所述第一时间间隔组和/或所述第二时间间隔组确定时间参数。
- 根据权利要求36至39任一项所述的装置,其特征在于,所述握手信号接收单元用于接收到K个信号包括:所述握手信号接收单元用于检测到K次低电平脉冲。
- 根据权利要求39或40所述的装置,其特征在于,还包括时间参数更新单元,其中:所述时间参数更新单元,用于按照预设规则,将当前使用的时间参数替换为新的时间参数,将新的时间参数作为当前数据传输的时间参数;所述接收单元,用于接收到X个信 号,确定X个信号中每相邻两个信号的起始时刻之间的时间间隔,得到X-1个时间间隔,其中,X为正整数,且X>1;数据获取单元,用于根据时间参数更新单元得到的当前数据传输的时间参数,获取X-1个时间间隔中每连续S个时间间隔中单个时间间隔对应的数值,得到S个时间间隔传输的数值,S个时间间隔传输的数值为单个时间间隔对应的数值,数值为N比特数据包含的2N个不同数值中的一个,其中,在S>1的情况下,S个时间间隔相同。
- 根据权利要求32至41任一项所述的装置,其特征在于,还包括滤波单元:所述滤波单元,用于接收Y+1个信号,去除Y+1个信号中的干扰,得到X个信号并发送至接收单元,其中Y+1≥X。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020187005637A KR102189511B1 (ko) | 2015-09-21 | 2016-09-21 | 데이터 송신 방법과 장치, 데이터 수신 방법과 장치 |
JP2018501338A JP2018527790A (ja) | 2015-09-21 | 2016-09-21 | データ送信方法及び装置、並びにデータ受信方法及び装置 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510605517.8A CN106549729B (zh) | 2015-09-21 | 2015-09-21 | 数据发送方法和装置及数据接收方法和装置 |
CN201510605517.8 | 2015-09-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017050235A1 true WO2017050235A1 (zh) | 2017-03-30 |
Family
ID=58364722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/099623 WO2017050235A1 (zh) | 2015-09-21 | 2016-09-21 | 数据发送方法和装置及数据接收方法和装置 |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP2018527790A (zh) |
KR (1) | KR102189511B1 (zh) |
CN (1) | CN106549729B (zh) |
WO (1) | WO2017050235A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109426643A (zh) * | 2017-08-25 | 2019-03-05 | 中兴通讯股份有限公司 | Usb接口请求调度方法、装置及设备 |
CN110086548A (zh) * | 2019-03-19 | 2019-08-02 | 上海林果实业股份有限公司 | 编码方法、编码设备、解码方法和解码设备 |
CN111026694B (zh) * | 2019-11-01 | 2021-03-02 | 珠海奔图电子有限公司 | 数据接收方法、设备,图像形成装置、系统和电子设备 |
Citations (5)
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 (zh) * | 2008-11-19 | 2009-05-13 | 北京巨数数字技术开发有限公司 | 一种数据串行传输的电路和方法 |
CN102333054A (zh) * | 2011-09-26 | 2012-01-25 | 北京天地融科技有限公司 | 一种数据发送、接收方法及装置 |
CN103716270A (zh) * | 2011-09-26 | 2014-04-09 | 天地融科技股份有限公司 | 一种数据发送、接收方法及装置 |
CN106027196A (zh) * | 2015-09-21 | 2016-10-12 | 天地融科技股份有限公司 | 一种数据传输方法及系统 |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3406440B2 (ja) * | 1995-10-30 | 2003-05-12 | Smk株式会社 | パルス変調方法とパルス変調装置及びパルス復調装置 |
JP2006325191A (ja) * | 2005-04-22 | 2006-11-30 | Matsushita Electric Ind Co Ltd | 通信装置 |
JP2009044464A (ja) * | 2007-08-09 | 2009-02-26 | Sharp Corp | 位相補正方法及び位相補正装置 |
JP4829337B2 (ja) * | 2009-11-30 | 2011-12-07 | 株式会社東芝 | 信号受信装置及び信号処理方法 |
CN102035705B (zh) * | 2010-11-23 | 2012-08-08 | 深圳市豪恩安全科技有限公司 | 一种总线数据传输方法及系统 |
WO2013157196A1 (ja) * | 2012-04-19 | 2013-10-24 | パナソニック株式会社 | 多値信号伝送システム |
CN103795465B (zh) * | 2013-07-31 | 2015-04-15 | 深圳光启创新技术有限公司 | 基于多阶幅度调制的可见光信号的编码和解码方法、装置及系统 |
-
2015
- 2015-09-21 CN CN201510605517.8A patent/CN106549729B/zh active Active
-
2016
- 2016-09-21 KR KR1020187005637A patent/KR102189511B1/ko active IP Right Grant
- 2016-09-21 WO PCT/CN2016/099623 patent/WO2017050235A1/zh active Application Filing
- 2016-09-21 JP JP2018501338A patent/JP2018527790A/ja active Pending
Patent Citations (5)
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 (zh) * | 2008-11-19 | 2009-05-13 | 北京巨数数字技术开发有限公司 | 一种数据串行传输的电路和方法 |
CN102333054A (zh) * | 2011-09-26 | 2012-01-25 | 北京天地融科技有限公司 | 一种数据发送、接收方法及装置 |
CN103716270A (zh) * | 2011-09-26 | 2014-04-09 | 天地融科技股份有限公司 | 一种数据发送、接收方法及装置 |
CN106027196A (zh) * | 2015-09-21 | 2016-10-12 | 天地融科技股份有限公司 | 一种数据传输方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
KR102189511B1 (ko) | 2020-12-14 |
JP2018527790A (ja) | 2018-09-20 |
CN106549729B (zh) | 2020-09-15 |
CN106549729A (zh) | 2017-03-29 |
KR20180036741A (ko) | 2018-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017050234A1 (zh) | 数据传输方法及数据处理设备 | |
JP6013596B2 (ja) | マルチフォーマットデジタルオーディオインターフェース | |
US20220013003A1 (en) | Method carried out in system including active stylus and sensor controller, sensor controller, and active stylus | |
JP6362277B2 (ja) | マルチフォーマットオーディオシステムにおけるロック保証のための確率的方法に基づく汎用同期エンジン | |
WO2017050235A1 (zh) | 数据发送方法和装置及数据接收方法和装置 | |
CN102612849B (zh) | 信息发射与接收的方法和设备 | |
US10181910B2 (en) | Data transfer using mobile devices | |
CN102394724A (zh) | 一种基于双音多频声波的高可靠性数据传输方法及装置 | |
CN112583522B (zh) | 一种极化码分段编码的方法及通信设备 | |
WO2018095181A1 (zh) | 数据传输方法及装置 | |
CN104065452A (zh) | 一种无线通信方法、相关设备及系统 | |
CN103825675A (zh) | 一种次超声波通信中编码方法及装置 | |
WO2018095179A1 (zh) | 一种数据传输方法及终端 | |
CN103812610B (zh) | 一种数据通信方法、终端及信息安全设备 | |
CN106549921B (zh) | 数据传输方法和装置 | |
WO2017050232A1 (zh) | 数据传输方法及系统 | |
CN103428807A (zh) | 通信中继节点的选择方法及通信中心节点、无线通信网络 | |
CN109347605B (zh) | 一种编码方法、解码方法及装置、计算机可读存储介质 | |
CN106547711B (zh) | 数据发送方法和装置及数据接收方法和装置 | |
CN106911334B (zh) | 一种消防工业总线编码方法 | |
JP2008011048A (ja) | 無線送信装置、無線受信装置、及び、無線送受信装置 | |
US11362677B2 (en) | Channel encoding method and encoding apparatus | |
CN107124248B (zh) | 一种通信方法、装置及系统 | |
CN106549728A (zh) | 一种数据接收方法及装置 | |
CN106549890B (zh) | 一种数据接收方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16848116 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2018501338 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20187005637 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16848116 Country of ref document: EP Kind code of ref document: A1 |