CN108270519B - Signal transmission method and device - Google Patents

Signal transmission method and device Download PDF

Info

Publication number
CN108270519B
CN108270519B CN201810074352.XA CN201810074352A CN108270519B CN 108270519 B CN108270519 B CN 108270519B CN 201810074352 A CN201810074352 A CN 201810074352A CN 108270519 B CN108270519 B CN 108270519B
Authority
CN
China
Prior art keywords
sampling
data
sampling point
point
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810074352.XA
Other languages
Chinese (zh)
Other versions
CN108270519A (en
Inventor
张帅
陈杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong xingsec Photoelectric Technology Co.,Ltd.
SHANGHAI SIMINICS PHOTOELECTRIC TECHNOLOGY Co.,Ltd.
Original Assignee
Shanghai Siminics Photoelectric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Siminics Photoelectric Technology Co ltd filed Critical Shanghai Siminics Photoelectric Technology Co ltd
Priority to CN201810074352.XA priority Critical patent/CN108270519B/en
Publication of CN108270519A publication Critical patent/CN108270519A/en
Application granted granted Critical
Publication of CN108270519B publication Critical patent/CN108270519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0033Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the transmitter

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a signal transmission method and a signal transmission device, which comprise the following steps: sampling a data stream of a sending end at N times of sending frequency and periodically marking sampling points; calculating the number of continuous 0 or 1; when the number is equal to N, selecting a preset sampling point and recording a corresponding identifier of the preset sampling point; when the marks corresponding to the preset number of preset sampling points are the same, taking the mark corresponding to the last preset sampling point as an effective mark, and updating the effective mark when the marks are changed and the marks corresponding to the preset number of preset sampling points are the same after the marks are changed; and subsequent 0 or 1 acquires the sampling data corresponding to the effective identifier as effective data, and then the sampling data which are respectively taken as sampling points corresponding to the previous effective data and are every N-1 sampling points as starting points are taken as the effective data. The invention is based on the algorithm of software, only needs to transmit data signals, does not need to transmit clock signals, simplifies the structural design of hardware, and simultaneously ensures the high reliability of signal transmission.

Description

Signal transmission method and device
Technical Field
The present invention relates to the field of signal transmission technologies, and in particular, to a signal transmission method and apparatus.
Background
With the increasing development of wireless technology, wireless transmission technology is more and more accepted by various industries. Common wireless transmission modes include infrared transmission, WIFI transmission and bluetooth transmission.
Infrared transmission is a technology for point-to-point communication using infrared rays. The communication mode has the characteristics of low cost, small size, low power consumption, simplicity and easiness in use, and has small infrared emission angle and high transmission safety. The method is mainly applied to products such as small-sized mobile equipment, mobile phones, notebook computers, printers and the like. However, it has the disadvantages that it is a line-of-sight transmission, two devices communicating with each other must be aligned, the middle cannot be blocked by other objects, the devices are affected by dust, moisture and the like when operating for a long time, and the transmission rate is not high.
The problem of infrared transmission does not exist in Bluetooth transmission and WIFI transmission, and the long-time operation cannot be influenced by the line of sight, but the biggest obstacles of the two technologies are that a hardware circuit and a software protocol are complex, the cost is high, the anti-interference capability is weak, and the safety is poor.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a signal transmission method and a signal transmission device, which only need to transmit data signals and do not need to transmit clock signals, thereby realizing high-speed stable transmission of signals; meanwhile, the hardware structure design is simplified by software-based algorithm processing.
According to an embodiment of the present invention, there is provided a signal transmission method including:
sampling a data stream at a sending end by taking N times of sending frequency as sampling frequency, wherein N is an integer greater than or equal to 3;
carrying out periodic identification on sampling points in a sampling data stream;
calculating the number of continuous 0 or 1 in the data stream;
when the number of continuous 0 or 1 in the data stream is equal to N, selecting a predetermined sampling point and recording an identifier corresponding to the predetermined sampling point;
when the marks corresponding to the preset sampling points in the preset number are the same, the mark corresponding to the last preset sampling point is taken as an effective mark, and when the marks corresponding to the preset sampling points are changed and the marks corresponding to the preset sampling points in the preset number are the same after the change, the effective mark is updated to be the mark corresponding to the changed sampling point;
and acquiring sampling data of the sampling point corresponding to the effective identifier as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, wherein the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes N-1 sampling points at intervals as the effective data.
In the above signal transmission method, the predetermined sampling point is a middle position sampling point in each sampling period.
In the above signal transmission method, when N is an odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000021
And (4) sampling points.
In the above signal transmission method, when N is an even number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000022
Figure BDA0001559067430000022
Figure BDA0001559067430000022
1, 2
Figure BDA0001559067430000023
Any one of the sample points.
In the above signal transmission method, the method further includes:
and coding and serializing the sending end data to obtain the sending end data stream.
In the above signal transmission method, the method further includes:
and carrying out parallelization and decoding operation on the sampling data to obtain the data of the receiving end.
Another embodiment of the present invention provides a signal transmission device including:
the acquisition module samples the data stream of the sending end by taking N times of sending frequency as sampling frequency, wherein N is an integer greater than or equal to 3;
the identification module is used for periodically identifying sampling points in the sampling data stream;
the counting module is used for calculating the number of continuous 0 s or 1 s in the data stream;
the selection module is used for selecting a preset sampling point and recording an identifier corresponding to the preset sampling point when the number of continuous 0 or 1 in the data stream is equal to N;
the updating module is used for taking the identifier corresponding to the last predetermined sampling point as an effective identifier when the identifiers corresponding to the predetermined sampling points in the preset number are the same, and updating the effective identifier as the identifier corresponding to the changed sampling point when the identifiers corresponding to the predetermined sampling points are changed and the identifiers corresponding to the predetermined sampling points in the preset number are the same after the change;
and the acquisition module acquires the sampling data of the sampling point corresponding to the effective identifier as effective data aiming at the continuous 0 or 1 after the last predetermined sampling point, and the subsequent data takes the sampling data after the sampling point corresponding to the previous effective data is taken as a starting point and every N-1 sampling points are spaced as the effective data.
In the above-described signal transmission device, the predetermined sampling point is a sampling point at an intermediate position in each sampling period.
In the above-mentioned signal transmission device, when N is an odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000031
And (4) sampling points.
In the above signal transmission device, when N is an even number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000032
Figure BDA0001559067430000032
Figure BDA0001559067430000032
1, 2
Figure BDA0001559067430000033
Any one of the sample points.
The signal transmission method and the device at least provide the following technical effects: the algorithm processing based on software only needs to transmit data signals and does not need to transmit clock signals, so that the hardware structure design is simplified, and the high-speed stable transmission of the signals is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a signal transmission method according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of a sampling data synchronization process according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of another sampling data synchronization process according to an embodiment of the present invention.
Fig. 4 is a flowchart illustrating a signal transmission method according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a signal transmission apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of a signal transmission structure according to an embodiment of the present invention.
Description of the main element symbols:
10-a signal transmission device; 11-an acquisition module; 12-an identity module; 13-a counting module; 14-a selection module; 15-an update module; 16-an acquisition module; 21-a signaling controller; 22-non-contact container sheet metal; 23-a received signal amplifying circuit; 24-signal reception controller.
Detailed Description
Various embodiments of the present disclosure will be described more fully hereinafter. The present disclosure is capable of various embodiments and of modifications and variations therein. However, it should be understood that: there is no intention to limit the various embodiments of the disclosure to the specific embodiments disclosed herein, but rather, the disclosure is to cover all modifications, equivalents, and/or alternatives falling within the spirit and scope of the various embodiments of the disclosure.
Hereinafter, the term "includes" or "may include" used in various embodiments of the present disclosure indicates the presence of the disclosed functions, operations, or elements, and does not limit the addition of one or more functions, operations, or elements. Furthermore, as used in various embodiments of the present disclosure, the terms "comprising," "having," and their derivatives, are intended to be only representative of the particular features, integers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to one or more other features, integers, steps, operations, elements, components, or combinations of the foregoing.
In various embodiments of the disclosure, the expression "or" at least one of a or/and B "includes any or all combinations of the words listed simultaneously. For example, the expression "a or B" or "at least one of a or/and B" may include a, may include B, or may include both a and B.
Expressions (such as "first", "second", and the like) used in various embodiments of the present disclosure may modify various constituent elements in the various embodiments, but may not limit the respective constituent elements. For example, the above description does not limit the order and/or importance of the elements described. The foregoing description is for the purpose of distinguishing one element from another. For example, the first user device and the second user device indicate different user devices, although both are user devices. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of various embodiments of the present disclosure.
It should be noted that: if it is described that one constituent element is "connected" to another constituent element, the first constituent element may be directly connected to the second constituent element, and a third constituent element may be "connected" between the first constituent element and the second constituent element. In contrast, when one constituent element is "directly connected" to another constituent element, it is understood that there is no third constituent element between the first constituent element and the second constituent element.
The term "user" used in various embodiments of the present disclosure may indicate a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).
The terminology used in the various embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the various embodiments of the present disclosure. As used herein, the singular forms are intended to include the plural forms as well, unless the context clearly indicates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present disclosure belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined in various embodiments of the present disclosure.
Example 1
Fig. 1 is a flowchart illustrating a signal transmission method according to an embodiment of the present invention.
Step S110, sampling the sending-end data stream with N times of the sending frequency as the sampling frequency.
Assuming that the frequency of serial data transmitted by a transmitting end is f, a receiving end samples a serial asynchronous data stream transmitted by the transmitting end by using N times of the transmitting frequency as a sampling frequency, wherein N is an integer greater than or equal to 3.
For example, N in fig. 2 and 3 is 3 and 4, respectively.
Step S120, periodically identifying sampling points in the sampled data stream.
In this embodiment, the identifier is a pointer identifier, for example, in a sampling period, a pointer Pt0 points to a position of a first sampling point in the sampling period, a pointer Pt1 points to a position of a second sampling point in the sampling period, and a pointer Pt2 points to a position of a third sampling point in the sampling period; in the next sampling period, the pointer Pt0 points to the position of the first sampling point in the sampling period, Pt1 points to the position of the second sampling point in the sampling period, and Pt2 points to the position of the third sampling point in the sampling period, and each sampling period is repeatedly identified in the way of the identification of the first sampling period. In other embodiments of the present invention, the identification may also be implemented by using location identification (left-middle-right, left-one, right, etc.), character identification (A, B, C, etc.), and the like.
For example, as shown in fig. 2, in the first sampling period, positions of three sampling points are identified as Pt0, Pt1 and Pt2, and each subsequent sampling period is repeatedly identified according to the first period number. As shown in fig. 3, the 4 sample points in each sampling period are identified as Pt0, Pt1, Pt2 and Pt3, with each subsequent sampling period being identified by the first period number.
Step S130, calculating the number of consecutive 0S or 1S in the data stream.
And calculating the number of continuous 0 or 1 in the data stream, and counting each continuous 0 or 1 in the data stream respectively. For example, in the data stream "0000000111111000011111111 …", the number of first-group consecutive 0 s is 7, the number of second-group consecutive 1 s is 6, the number of third-group consecutive 0 s is 4, and the number of fourth-group consecutive 1 s is 8.
Step S140, when the number of the continuous 0 or 1 in the data stream is equal to N, selecting a predetermined sampling point and recording the corresponding identifier of the predetermined sampling point.
And if the number of the continuous 0 or 1 is N, selecting an identifier corresponding to a sampling point at a preset position from the N sampling points of which the sampling data is 0 or 1 as an effective identifier, and recording the effective identifier.
The predetermined sampling point is a sampling point at the middle position of each sampling period.
When N is odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000071
And (4) sampling points.
For example, as shown in fig. 2, the number of 0's consecutive in the first sampling period in the sample data stream is 3, and the middle position, i.e., the first position, is selected from the 3 sample points whose sample data are 0' s
Figure BDA0001559067430000072
Sampling points at positions of Pt1 are used as effective marks, and the current effective mark Pt1 is recorded; and 3 continuous 1 s appear in the second sampling period, selecting the second sampling point as a preset sampling point, and recording the identifier Pt1 corresponding to the current preset sampling point.
When N is even number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000073
Figure BDA0001559067430000073
Figure BDA0001559067430000073
1, 2
Figure BDA0001559067430000074
Any one of the sample points.
For example, as shown in fig. 3, the number of 0's consecutive in the first sampling period in the sample data stream is 4, and the middle position, i.e., the second position, is selected from the 4 sample points whose sample data are 0' s
Figure BDA0001559067430000075
Figure BDA0001559067430000075
Figure BDA0001559067430000075
1, 2
Figure BDA0001559067430000076
Any one of the sampling points, namely the sampling data of the sampling point at the position of the pointer Pt1 or Pt2 is used as valid data, the pointer Pt1 is selected to point at the sampling point as a predetermined sampling point in the embodiment, and the current predetermined position is recorded. And when the number of continuous 0 or 1 appearing in the subsequent data stream is 4, similarly selecting the sampling data of the second sampling point as effective data and recording the pointer corresponding to the second sampling point.
Step 150, when the identifiers corresponding to the predetermined sampling points in the preset number are the same, taking the identifier corresponding to the last predetermined sampling point as an effective identifier, and when the identifiers corresponding to the predetermined sampling points are changed and the identifiers corresponding to the predetermined sampling points in the preset number after the change are the same, updating the effective identifier as the identifier corresponding to the changed sampling point.
And starting from the second predetermined sampling point, judging whether the identifier corresponding to the predetermined sampling point is the same as the identifier corresponding to the previous predetermined sampling point, if so, continuing to judge whether the next sampling point is the same as the second predetermined sampling point, and if the same times reach the preset times, taking the identifier corresponding to the last predetermined sampling point as an effective identifier and recording the position of the last predetermined sampling point. And continuously monitoring whether the subsequent preset sampling point is the same as the mark corresponding to the previous preset sampling point or not, and if so, continuously monitoring.
If the identifier corresponding to a certain predetermined sampling point is different from the identifier corresponding to the previous predetermined sampling point, judging whether the identifier corresponding to the next predetermined sampling point is the same as the identifier corresponding to the predetermined sampling point from the predetermined sampling point, if so, continuing to judge whether the identifiers corresponding to the subsequent predetermined sampling points are the same as the identifiers corresponding to the sampling point, and if the same times reach a preset value, updating the effective identifier to the identifier corresponding to the changed predetermined sampling point; if the corresponding identification of the next predetermined sampling point is different from the corresponding identification of the predetermined sampling point, whether the corresponding identification of the next predetermined sampling point is the same as the corresponding identification of the previous predetermined sampling point of the predetermined sampling point is judged, if the same, the monitoring is continued until the predetermined sampling point with the next different identification appears, if the same, the monitoring is continued until whether the same predetermined sampling point with the predetermined quantity of the identification appears subsequently appears, and the value of the effective identification is updated in time.
For example, as shown in fig. 2, if the sampling data corresponding to the number 1 is three 0 s, the sampling point Pt1 at the middle position is selected as the first predetermined sampling point, the sampling data corresponding to the number 2 is three 1 s, the sampling point Pt1 at the middle position is selected as the second predetermined sampling point, the identifier Pt1 corresponding to the second predetermined sampling point is the same as the identifier Pt1 corresponding to the first predetermined sampling point, the sampling point at the middle position of the three 0 s corresponding to the number 3 is continuously selected as the third predetermined sampling point, the identifier corresponding to the third predetermined sampling point is the same as the identifier corresponding to the second predetermined sampling point, and the identifiers corresponding to the consecutive 3 predetermined sampling points are the same, then the value Pt1 of the identifier corresponding to the third predetermined sampling point is assigned with an effective identifier, and recording the position of the third preset sampling point as the middle sampling point of the three sampling points corresponding to the number 3, wherein the sampling data of the sampling point corresponding to the effective identifier is the collected effective data. And continuously acquiring the middle position sampling points of the three 1 corresponding to the number 4 as fourth preset sampling points, wherein the identifiers corresponding to the fourth preset sampling points are the same as the identifiers corresponding to the third preset sampling points, and the values of the effective identifiers are not changed. The middle position sampling point of three 0 corresponding to the number 5 is a fifth predetermined sampling point, the identifier corresponding to the fifth predetermined sampling point is the same as the identifier corresponding to the fourth predetermined sampling point, the value of the effective identifier is not changed, and the subsequent data judges whether the identifier corresponding to the predetermined sampling point is the same as the identifier corresponding to the previous predetermined sampling point according to the same method.
The middle sampling point of the three 1 corresponding to the number 7 is a seventh predetermined sampling point, the identifier Pt2 corresponding to the seventh predetermined sampling point changes from the identifier Pt1 corresponding to the sixth predetermined sampling point, the eighth predetermined sampling point of the three 0 corresponding to the number 8 continues to be obtained, the identifier Pt2 corresponding to the eighth predetermined sampling point is the same as the identifier Pt2 corresponding to the seventh predetermined sampling point, the ninth predetermined sampling point of the three 0 corresponding to the number 9 is obtained, the identifier Pt2 corresponding to the ninth predetermined sampling point is the same as the identifier Pt2 corresponding to the eighth predetermined sampling point, at this time, the value of the effective identifier is updated to be Pt2, the tenth predetermined sampling point, the eleventh predetermined sampling point and the like continue to be obtained, whether the identifier corresponding to the identifier is the same as the identifier corresponding to the previous predetermined sampling point is judged, and if the identifier is different, the value of the effective identifier continues to.
For example, as shown in fig. 3, the sampling data corresponding to the number 1 is four 0 s, the sampling point Pt1 at the middle position is selected as a first predetermined sampling point, the sampling data corresponding to the number 2 is four 0 s, the sampling point Pt1 at the middle position is selected as a second predetermined sampling point, the identifier Pt1 corresponding to the second predetermined sampling point is the same as the identifier Pt1 corresponding to the first predetermined sampling point, the sampling point at the middle position in the four 1 s corresponding to the number 3 is continuously selected as a third predetermined sampling point, the identifier corresponding to the third predetermined sampling point is the same as the identifier corresponding to the second predetermined sampling point, and the identifiers corresponding to the consecutive 3 predetermined sampling points are the same, then the value Pt1 of the identifier corresponding to the third predetermined sampling point is assigned to an effective identifier, and the position of the third predetermined sampling point is recorded, and the sampling data of the sampling point corresponding to the effective identifier is. Continuously acquiring the middle position sampling points of the four 1 corresponding to the number 4 as fourth preset sampling points, continuously acquiring the identifiers Pt2 corresponding to the fourth preset sampling points and Pt1 corresponding to the third preset sampling points, continuously acquiring the fifth preset sampling points of the four 0 corresponding to the number 5, wherein the identifiers corresponding to the fifth preset sampling points are the same as the identifiers corresponding to the fourth preset sampling points, the identifiers corresponding to the sixth preset sampling points and the identifiers corresponding to the fifth preset sampling points, at the moment, updating the value of the effective identifier to be Pt2, and judging whether the identifiers corresponding to the preset sampling points and the identifiers corresponding to the previous preset sampling points are the same by subsequent data according to the same method.
And 160, acquiring sampling data of the sampling point corresponding to the effective identifier as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, wherein the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes every N-1 sampling points as the effective data.
And (4) collecting effective data according to the value of the effective identifier by taking the position of the last predetermined sampling point in the step (S150) as a starting point, wherein after the first effective data is collected, the subsequent data is all taken as the starting point by the sampling point corresponding to the previous effective data, and the sampling data after every N-1 sampling points are taken as the effective data.
For example, as shown in fig. 2, a value of an identifier of a third predetermined sampling point is assigned to a valid identifier, and a first-bit valid data 1 in a subsequent data stream is obtained according to the valid identifier Pt1 with the third predetermined sampling point as a starting point, a second-bit valid data takes the first-bit valid data as a starting point, a sampling data 0 after 2 sampling points are spaced as a second-bit valid data, and a sampling point corresponding to the previous valid data of the subsequent data is a starting point, and a sampling data after 2 sampling points is a valid data every interval.
When the value of the valid identifier is changed to Pt2, the first valid data after the change is the sampling data 1 corresponding to Pt2, the sampling point corresponding to the previous valid data is the starting point of the subsequent data, and the sampling data after 2 sampling points is valid data every interval.
The signal transmission method further includes:
and coding and serializing the sending end data to obtain the sending end data stream.
The sending end sends the parallel data to be sent to the data coding part to code the data, and sends the coded data to the data serialization part to send in series.
Wherein the data encoding part is used to balance 0 and 1 in the bit stream, thereby achieving the dc balance.
The signal transmission method further includes:
and carrying out parallelization and decoding operation on the sampling data to obtain the data of the receiving end.
And sending the acquired sampling data to a data parallelization part to realize serial data parallelization, and sending the parallel data to a data decoding part to decode to obtain the transmission data required by the user.
Example 2
Fig. 4 is a flowchart illustrating a signal transmission method according to a second embodiment of the present invention.
Step S210, sampling the sending-end data stream with N times of the sending frequency as the sampling frequency.
Assuming that the frequency of serial data transmitted by a transmitting end is f, a receiving end samples a serial asynchronous data stream transmitted by the transmitting end by using N times of transmitting frequency, namely Nf, as a sampling frequency, wherein N is an integer greater than or equal to 3.
Step S220, periodically identifying sampling points in the sampled data stream.
In this embodiment, the identifier is a pointer identifier, for example, the position of the first sampling point in a sampling period pointed by the pointer Pt0, the position of the second sampling point in the sampling period pointed by the pointer Pt1, and the position of the third sampling point in the sampling period pointed by the pointer Pt2, in the second sampling period, the position of the first sampling point pointed by the pointer Pt0, the position of the second sampling point pointed by the pointer Pt1, and the position of the third sampling point pointed by the pointer Pt2 are the same, and each subsequent sampling period is numbered repeatedly according to the identifier of each sampling point in the first sampling period. In other embodiments of the present invention, the identification may also be implemented by using location identification (left-middle-right, left-one, right, etc.), character identification (A, B, C, etc.), and the like.
In step S230, the number Num of consecutive 0S or 1S in the data stream is calculated.
And calculating the number of continuous 0 or 1 in the data stream, storing the value into a variable Num, counting each continuous 0 or 1 in the group of data stream respectively, and endowing a new counted value when the Num changes correspondingly when each continuous 0 or 1 occurs.
In step S240, it is determined whether Num is equal to N.
If the Num value is equal to N, proceeding to step S250, selecting a predetermined sampling point; if Num is smaller than N or greater than N, the process returns to step S230 to continue counting the next consecutive 0 or 1.
Step S250, selecting a predetermined sampling point, using an identifier corresponding to the predetermined sampling point as an effective identifier, and recording the identifier.
When Num is equal to N, that is, the same 0 or 1 lasts for one sampling period, selecting a predetermined sampling point, assigning a value of an identifier corresponding to the predetermined sampling point to an effective identifier, and recording the effective identifier. In this embodiment, the predetermined sampling point is a sampling point at the middle position of each sampling period.
When N is odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000121
And N is 3, and the predetermined sampling point is the 2 nd sampling point of 3 consecutive 0 or 1 as shown in fig. 2.
When N is even number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000122
Figure BDA0001559067430000122
Figure BDA0001559067430000122
1, 2
Figure BDA0001559067430000123
As shown in fig. 3, N is 4, and the predetermined sampling point is the 2 nd or 3 rd sampling point of 4 consecutive 0 or 1, in this embodiment, the 2 nd sampling point is selected as the predetermined sampling point, and in other embodiments of the present invention, the 3 rd sampling point may also be the predetermined sampling point.
Step S260, whether the identifiers corresponding to the predetermined sampling points in the preset number are the same.
For example, as shown in fig. 2 and 3, whether the values of the first 3 selected predetermined sampling points are the same. If the same, the step proceeds to step S270, and a valid identifier is obtained; if not, the procedure returns to step S260 to continue to select the next predetermined sampling point and determine whether the identifier corresponding to the previous predetermined sampling point is the same.
Step S270, the identifier corresponding to the last predetermined sampling point is used as an effective identifier.
As shown in fig. 2 and fig. 3, the identifier Pt1 corresponding to the 3 rd predetermined sampling point is taken as the value of the valid identifier.
In step S280, the identifiers corresponding to the predetermined sampling points are changed and the predetermined number of identifiers are the same.
For example, whether the identifier corresponding to the predetermined sampling point changes is judged, and if no change occurs, the process proceeds to step S300, and valid data is collected; if the change occurs and the identifiers corresponding to the 3 consecutive sampling points after the change are the same, the process proceeds to step S290, the identifier corresponding to the valid data is updated to the value of the identifier corresponding to the changed predetermined sampling point, and the value of the updated identifier is recorded.
Step S290, updating the valid identifier.
Step S300, acquiring sampling data corresponding to the effective identification as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, wherein the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes N-1 sampling points at intervals as the effective data.
For example, as shown in fig. 2, the 3 rd predetermined sampling point is used as the starting point, the subsequent data acquires the sampling data of the corresponding sampling point according to the valid identifier as valid data, and the subsequent sampling data is taken as valid data every 2 sampling points at intervals by using the sampling point corresponding to the previous valid data as the starting point. When the value of the effective identifier changes, collecting sampling data of corresponding sampling points according to the changed value of the effective identifier as effective data, taking the sampling points corresponding to the same effective data as a starting point in the follow-up process, and taking the sampling data at intervals of 2 sampling points as the effective data until the effective identifier changes again.
The signal transmission method further includes:
and coding and serializing the sending end data to obtain the sending end data stream.
The sending end sends the parallel data to be sent to the data coding part to code the data, and sends the coded data to the data serialization part to send in series.
Wherein the data encoding part is used to balance 0 and 1 in the bit stream, thereby achieving the dc balance.
The signal transmission method further includes:
and carrying out parallelization and decoding operation on the sampling data to obtain the data of the receiving end.
And sending the acquired sampling data to a data parallelization part to realize serial data parallelization, and sending the parallel data to a data decoding part to decode to obtain the transmission data required by the user.
Example 3
Fig. 5 is a schematic structural diagram of a signal transmission apparatus according to an embodiment of the present invention. The signal transmission device 10 includes: the device comprises an acquisition module 11, an identification module 12, a counting module 13, a selection module 14, an updating module 15 and an acquisition module 16.
The acquisition module 11 samples the data stream at the sending end with a sending frequency N times as a sampling frequency, where N is an integer greater than or equal to 3.
And the identification module 12 is used for periodically identifying the sampling points in the sampling data stream.
And carrying out periodic repeated numbering on the sampling points of each sampling period in the sampling data stream.
And the counting module 13 is used for calculating the number of continuous 0 s or 1 s in the data stream.
And the selecting module 14 is used for selecting a preset sampling point and recording the corresponding identifier of the preset sampling point when the number of the continuous 0 or 1 in the data stream is equal to N.
If the number of the continuous 0 or 1 is N, selecting the sampling data of the sampling point at the preset position from the N sampling points of which the sampling data is 0 or 1 as the collected effective data, and recording the identifier of the sampling point corresponding to the effective data.
The predetermined sampling point is a sampling point at the middle position of each sampling period.
When N is odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure BDA0001559067430000141
And (4) sampling points.
When N is an even number, the predetermined sampling point is per sampling periodIn the first period
Figure BDA0001559067430000142
Figure BDA0001559067430000142
Figure BDA0001559067430000142
1, 2
Figure BDA0001559067430000143
Any one of the sample points.
And the updating module 15 is used for taking the identifier corresponding to the last predetermined sampling point as an effective identifier when the identifiers corresponding to the predetermined sampling points in the preset number are the same, and updating the effective identifier into the identifier corresponding to the changed sampling point when the identifiers corresponding to the predetermined sampling points are changed and the identifiers corresponding to the predetermined sampling points in the preset number are the same after the change.
Judging whether the recorded marks corresponding to the predetermined sampling points are changed or not, if the marks corresponding to the predetermined sampling points in a predetermined number are the same, taking the value of the mark corresponding to the last predetermined sampling point as the value of the effective mark, and recording the position of the last predetermined sampling point; if the identifier corresponding to the predetermined sampling point is changed and a predetermined number of same identifiers appear after the change, updating the value of the effective identifier to the value of the identifier corresponding to the changed predetermined sampling point, and recording the updated identifier.
The obtaining module 16 obtains the sampling data of the sampling point corresponding to the valid identifier as valid data for consecutive 0 or 1 after the last predetermined sampling point, and the subsequent data is the sampling data after every N-1 sampling points by taking the sampling point corresponding to the previous valid data as a starting point.
For example, as shown in fig. 3, the sampling data stream after the sampling point corresponding to the number 3 acquires the sampling data of the sampling point corresponding to Pt1 as valid data, the subsequent data all uses the sampling data after the sampling point corresponding to the previous valid data is used as the valid data every other 3 sampling points, the identifiers corresponding to the predetermined sampling points selected by the numbers 7 to 9 are the same, the value of the updated valid identifier is Pt2, the sampling data acquired at the sampling point corresponding to Pt2 is valid data, and the subsequent data all uses the sampling data after the sampling point corresponding to the previous valid data is used as the valid data every other 3 sampling points.
Example 4
Fig. 6 is a schematic diagram of a signal transmission structure according to an embodiment of the present invention.
The signal transmission structure includes: a signal transmission controller 21, a non-contact container metal piece 22, a received signal amplification circuit 23, and a signal reception controller 24.
The signal transmission controller 21 includes a data encoding section and a data serializing section.
The sending end sends the parallel data to be sent to the data coding part to code the data, and sends the coded data to the data serialization part to send in series.
Wherein the data encoding part is used to balance 0 and 1 in the bit stream, thereby achieving the dc balance.
The contactless container metal sheet 22 and the signal transmission controller 21 directly transmit serialized data to one end of the contactless container metal sheet C (or C1/C2), and the other end of the contactless container metal sheet C (or C1/C2) senses a signal and transmits the signal to the received signal amplifying circuit 23 under the induction of charges.
The received signal amplifying circuit 23 amplifies the signal transmitted from the non-contact container metal piece 22, and sends the signal to the signal receiving controller 24 for software processing.
The signal receiving controller 24 includes a serial data synchronization processing section, a data parallelization section, and a data decoding section.
The serial data synchronous processing part comprises sampling the data stream of a sending end by taking N times of sending frequency as sampling frequency; carrying out periodic identification on sampling points in a sampling data stream; calculating the number of continuous 0 or 1 in the data stream; when the number of continuous 0 or 1 in the data stream is equal to N, selecting a predetermined sampling point and recording an identifier corresponding to the predetermined sampling point; when the marks corresponding to the preset sampling points in the preset number are the same, the mark corresponding to the last preset sampling point is taken as an effective mark, and when the marks corresponding to the preset sampling points are changed and the marks corresponding to the preset sampling points in the preset number are the same after the change, the effective mark is updated to be the mark corresponding to the changed sampling point; and acquiring sampling data of the sampling point corresponding to the effective identifier as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, wherein the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes N-1 sampling points at intervals as the effective data.
After asynchronous serial data synchronization processing is realized, the acquired sampling data is sent to a data parallelization part to realize serial data parallelization, and then the parallel data is sent to a data decoding part to be decoded to obtain the transmission data required by a user.
Therefore, the invention provides a signal transmission method and a signal transmission device, only data signals need to be transmitted, clock signals do not need to be transmitted, and high-speed stable transmission of the signals is realized; meanwhile, the hardware structure design is simplified by algorithm processing based on software; the data transmission of various transmission media including single-ended signals, differential signals and the like is supported, and the flexibility of application objects is improved.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The system embodiments described above are merely illustrative, and the flowcharts and block diagrams in the figures, for example, illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (4)

1. A signal transmission method, comprising:
sampling a data stream at a sending end by taking N times of sending frequency as sampling frequency, wherein N is an integer greater than or equal to 3;
carrying out periodic identification on sampling points in a sampling data stream;
calculating the number of continuous 0 or 1 in the data stream;
when the number of continuous 0 or 1 in the data stream is equal to N, selecting a predetermined sampling point and recording an identifier corresponding to the predetermined sampling point;
when the marks corresponding to the preset sampling points in the preset number are the same, the mark corresponding to the last preset sampling point is taken as an effective mark, and when the marks corresponding to the preset sampling points are changed and the marks corresponding to the preset sampling points in the preset number are the same after the change, the effective mark is updated to be the mark corresponding to the changed sampling point;
acquiring sampling data of the sampling point corresponding to the effective identifier as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, wherein the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes N-1 sampling points at intervals as the effective data;
the predetermined sampling point is a middle position sampling point in each sampling period, and comprises:
when N is odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure FDA0002607710220000011
Sampling points;
when N is even number, the predetermined sampling point is the second sampling point in each sampling period
Figure FDA0002607710220000012
1, 2
Figure FDA0002607710220000013
Any one of the sample points.
2. The signal transmission method according to claim 1, wherein the sampling a transmitting-end data stream with N times of a transmission frequency as a sampling frequency further comprises:
and coding and serializing the sending end data to obtain the sending end data stream.
3. The signal transmission method according to claim 1, wherein the step of obtaining the sampling data of the sampling point corresponding to the valid identifier as valid data, and the step of obtaining the sampling data of the sampling point corresponding to the previous valid identifier as valid data after every N-1 sampling points as a starting point further comprises the steps of:
and carrying out parallelization and decoding operation on the sampling data to obtain the data of the receiving end.
4. A signal transmission apparatus, comprising:
the acquisition module samples the data stream of the sending end by taking N times of sending frequency as sampling frequency, wherein N is an integer greater than or equal to 3;
the identification module is used for periodically identifying sampling points in the sampling data stream;
the counting module is used for calculating the number of continuous 0 s or 1 s in the data stream;
the selection module is used for selecting a preset sampling point and recording an identifier corresponding to the preset sampling point when the number of continuous 0 or 1 in the data stream is equal to N;
the updating module is used for taking the identifier corresponding to the last predetermined sampling point as an effective identifier when the identifiers corresponding to the predetermined sampling points in the preset number are the same, and updating the effective identifier as the identifier corresponding to the changed sampling point when the identifiers corresponding to the predetermined sampling points are changed and the identifiers corresponding to the predetermined sampling points in the preset number are the same after the change;
the acquisition module is used for acquiring sampling data of the sampling point corresponding to the effective identifier as effective data aiming at continuous 0 or 1 after the last predetermined sampling point, and the subsequent data is the sampling data which takes the sampling point corresponding to the previous effective data as a starting point and takes every N-1 sampling points as the effective data;
the predetermined sampling point is a middle position sampling point in each sampling period, and comprises:
when N is odd number, the predetermined sampling point is the second sampling point in each sampling period
Figure FDA0002607710220000021
Sampling points;
when N is even number, the predetermined sampling point is the second sampling point in each sampling period
Figure FDA0002607710220000022
1, 2
Figure FDA0002607710220000023
Any one of the sample points.
CN201810074352.XA 2018-01-25 2018-01-25 Signal transmission method and device Active CN108270519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810074352.XA CN108270519B (en) 2018-01-25 2018-01-25 Signal transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810074352.XA CN108270519B (en) 2018-01-25 2018-01-25 Signal transmission method and device

Publications (2)

Publication Number Publication Date
CN108270519A CN108270519A (en) 2018-07-10
CN108270519B true CN108270519B (en) 2020-09-15

Family

ID=62776788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810074352.XA Active CN108270519B (en) 2018-01-25 2018-01-25 Signal transmission method and device

Country Status (1)

Country Link
CN (1) CN108270519B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570900A (en) * 2004-04-27 2005-01-26 北京长信嘉信息技术有限公司 A data transmitting and receiving method for serial data
CN103235767A (en) * 2013-04-11 2013-08-07 和记奥普泰通信技术有限公司 Serial communication method for master-slave MII (Media Independent Interface) management interfaces
US9191041B2 (en) * 2013-06-05 2015-11-17 Telefonaktiebolaget L M Ericsson (Publ) Digital predistortion of wideband power amplifiers with reduced observation bandwidth
CN106549921A (en) * 2015-09-21 2017-03-29 天地融科技股份有限公司 Data transmission method and device
CN107528658A (en) * 2017-08-02 2017-12-29 北京交通大学 A kind of clock recovery method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017008011A1 (en) * 2015-07-08 2017-01-12 Sensanna Incorporated Low loss acoustic wave sensors and tags and high efficiency antennas and methods for remote activation thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570900A (en) * 2004-04-27 2005-01-26 北京长信嘉信息技术有限公司 A data transmitting and receiving method for serial data
CN103235767A (en) * 2013-04-11 2013-08-07 和记奥普泰通信技术有限公司 Serial communication method for master-slave MII (Media Independent Interface) management interfaces
US9191041B2 (en) * 2013-06-05 2015-11-17 Telefonaktiebolaget L M Ericsson (Publ) Digital predistortion of wideband power amplifiers with reduced observation bandwidth
CN106549921A (en) * 2015-09-21 2017-03-29 天地融科技股份有限公司 Data transmission method and device
CN107528658A (en) * 2017-08-02 2017-12-29 北京交通大学 A kind of clock recovery method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Design of multi-channel high speed sampling data transmission and reception";Yang Mingfei,et al;《2017 3rd IEEE International Conference on Computer and Communications(ICCC)》;20171216;全文 *
"无线信息接收终端的设计与实现";李鸿;《中国优秀硕士学位论文全文数据库(电子期刊)》;20031215;全文 *

Also Published As

Publication number Publication date
CN108270519A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
EP3939182B1 (en) Power-based encoding of data to be transmitted over an optical communication path
EP3935754B1 (en) Power-based encoding of data to be transmitted over an optical communication path
CN110073697A (en) Wake-up signal construction
CN110073696B (en) Wake-up radio unit, method thereof and computer readable medium
US8483311B2 (en) Method, apparatus and computer program product for providing a data encoding/decoding scheme
CN105453449A (en) Non-contact communication method determination circuit, non-contact communication circuit, and ic card
KR102370904B1 (en) Ultra low power decoder and decoding method
CN114051006A (en) Data transmission method, data transmission device, computer equipment and storage medium
CN103377602B (en) Introduction system and method for work thereof
CN108270519B (en) Signal transmission method and device
CA2397107A1 (en) Encoding/decoding system for coherent signal interference reduction
US20150222325A1 (en) Methods for transmitting and receiving data in a digital telecommunications system
CN202584673U (en) Explanation system
CN105245689A (en) Dialing method and intelligent watch
CN114449500B (en) Near field communication method, device and chip
CN115577725A (en) Baseband signal processing SOC chip of multi-protocol UHF RFID reader-writer
CN114223154B (en) Dynamically selecting channel models for optical communications
CN108551366B (en) Visible light communication method based on LED and mobile phone camera
EP2916460B1 (en) Ultra low power consumption (ulp) decoder
CN109412757B (en) Modified Miller self-adaptive decoding method and device
JP2016205005A (en) Electronic key system
Nguyen et al. Enhanced M-Ary Detecting Tree: A Novel Time-Efficient Protocol for Tag Identification in Active RFID Systems
Kader et al. Data Transmission via Wireless Channel to Store in a Remote Device Employing Error Detection and Correction Code
CN103546199A (en) Information transmission method and terminal equipment
CN115955255B (en) Baseband data receiving and transmitting processing method and system compatible with BR and BLE5.2 multimode Bluetooth protocol

Legal Events

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

Effective date of registration: 20210813

Address after: 201100 room 321, No. 28, Yuanwen Road, Minhang District, Shanghai

Patentee after: SHANGHAI SIMINICS PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Patentee after: Shandong xingsec Photoelectric Technology Co.,Ltd.

Address before: 200333 room 213, 1f, 1989 Zhennan Road, Putuo District, Shanghai

Patentee before: SHANGHAI SIMINICS PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right