CN111147108B - Transmission signal receiving method and equipment - Google Patents

Transmission signal receiving method and equipment Download PDF

Info

Publication number
CN111147108B
CN111147108B CN201911357104.7A CN201911357104A CN111147108B CN 111147108 B CN111147108 B CN 111147108B CN 201911357104 A CN201911357104 A CN 201911357104A CN 111147108 B CN111147108 B CN 111147108B
Authority
CN
China
Prior art keywords
square wave
signal
wave signal
receiving
received
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
CN201911357104.7A
Other languages
Chinese (zh)
Other versions
CN111147108A (en
Inventor
李东声
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tendyron Corp
Original Assignee
Tendyron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tendyron Corp filed Critical Tendyron Corp
Priority to CN201911357104.7A priority Critical patent/CN111147108B/en
Publication of CN111147108A publication Critical patent/CN111147108A/en
Application granted granted Critical
Publication of CN111147108B publication Critical patent/CN111147108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Dc Digital Transmission (AREA)

Abstract

The invention provides a transmission signal receiving method and equipment, comprising the following steps: continuously receiving transmission signals, judging whether first square wave signals of a first preset number are received or not, if not, finishing receiving, and if so, calculating to obtain a current signal transmission period; judging whether a second square wave signal is received or not, if not, finishing receiving, if so, judging whether a second preset number of second square wave signals are received or not, if not, finishing receiving, if so, judging whether a third square wave signal is received or not, if not, finishing receiving, if so, judging whether a third preset number of third square wave signals are received or not, if not, finishing receiving, if so, starting high level when the second square wave signal is low level, judging that the second square wave signal is in a normal phase receiving state, and decoding data behind the third square wave signal according to a first decoding rule; and if the waveform of the second square wave signal is high level and starts low level and ends, judging the second square wave signal to be in an inverted receiving state, and decoding data behind the third square wave signal according to a second decoding rule.

Description

Transmission signal receiving method and equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a transmission signal receiving method and apparatus.
Background
The power line carrier communication is a communication method in which a high-frequency carrier signal transmits information through a high-voltage or low-voltage power line, and a modulation method commonly used in the power line carrier communication at present is BPSK (Binary Phase Shift Keying), however, when a power grid passes through different network nodes, the Phase of a carrier may be inverted and inverted, for example, 0 Phase is changed into pi Phase, or pi Phase is changed into 0 Phase, and when BPSK and demodulation are used, digital information obtained may be changed into "0" or "1" into "0", so that a demodulation error is caused.
Therefore, there is a need in the art for a transmission signal receiving method and apparatus that can adaptively determine the polarity state to receive valid data.
Disclosure of Invention
The present invention is directed to solving the above problems.
The invention mainly aims to provide a transmission signal receiving method, which comprises the following steps: step 1, continuously receiving transmission signals, judging whether first square wave signals of a first preset number are continuously received or not, if so, turning to step 2, and if not, turning to step 10; the first square wave signal consists of a high level signal and a low level signal and has one level jump; step 2, obtaining a current signal transmission period according to the first square wave signal; step 3, judging whether a second square wave signal is received or not according to the current signal transmission period, if so, turning to step 4, and if not, turning to step 10; the second square wave signal and the first square wave signal have opposite phases; step 4, judging whether a second preset number of second square wave signals are continuously received, if so, turning to step 5, and if not, turning to step 10; step 5, judging whether a third party wave signal is received or not according to the current signal transmission period, if so, turning to step 6, and if not, turning to step 10; the third square wave signal and the second square wave signal have opposite phases; step 6, judging whether third party wave signals of a third preset number are continuously received, if so, turning to step 7, and if not, turning to step 10; step 7, if the waveform of the second square wave signal is low level, the high level is finished, and the step 8 is switched to; if the waveform of the second square wave signal is high level, the low level is finished, and the step 9 is switched to; step 8, judging that the current receiving state is a normal phase receiving state, and decoding the data behind the third square wave signal according to a first decoding rule corresponding to the normal phase receiving state; step 9, judging that the current receiving state is an inverse receiving state, and decoding data behind the third party wave signal according to a second decoding rule corresponding to the inverse receiving state; and step 10, judging that the current data is received wrongly, and ending the receiving process.
In addition, the first preset number is any number which meets the first preset range; the second preset number is any number which accords with a second preset range; the third predetermined number is any number that meets a third predetermined range.
Furthermore, the first preset range is 5 to 13; the second preset range is 3 to 5; the third predetermined range is 3 to 5.
In addition, the first decoding rule is that the square waveform of which the high level starts and the low level ends is decoded into 1, and the square waveform of which the low level starts and the high level ends is decoded into 0; the second decoding rule is that the square waveform at which the low level starts and the high level ends is decoded to 1, and the square waveform at which the high level starts and the low level ends is decoded to 0.
Another object of the present invention is to provide a transmission signal receiving apparatus including: the device comprises a signal receiving module, a current signal transmission period calculating module, a square wave signal judging module and a decoding module, wherein the signal receiving module is used for continuously receiving transmission signals and judging whether a first preset number of first square wave signals are continuously received or not, if so, the current signal transmission period calculating module is triggered to complete operation, and if not, the current data receiving error is judged, and the receiving process is ended; the first square wave signal consists of a high level signal and a low level signal and has one level jump; the current signal transmission period calculation module is used for obtaining a current signal transmission period according to the first square wave signal; the square wave signal judging module is used for judging whether a second square wave signal is received or not according to the current signal transmission period, wherein the phase of the second square wave signal is opposite to that of the first square wave signal, if not, the trigger signal receiving module finishes the receiving process, if yes, whether a second preset number of second square wave signals are continuously received or not is judged, if not, the trigger signal receiving module finishes the receiving process, if yes, whether a third square wave signal is received or not is judged according to the current signal transmission period, wherein the phase of the third square wave signal is opposite to that of the second square wave signal, if not, the trigger signal receiving module finishes the receiving process, if yes, whether a third preset number of third square wave signals are continuously received or not is judged, if not, the trigger signal receiving module finishes the receiving process, and if yes, the trigger decoding module finishes the operation; the decoding module is used for judging that the current receiving state is a normal phase receiving state if the waveform of the second square wave signal is at the beginning of low level and the high level is finished, and decoding data behind the third square wave signal according to a first decoding rule corresponding to the normal phase receiving state; and if the waveform of the second square wave signal is high level, the low level is finished, the current receiving state is judged to be the reverse receiving state, and the data behind the third square wave signal is decoded according to a second decoding rule corresponding to the reverse receiving state.
In addition, the first preset number is any number which meets the first preset range; the second preset number is any number which accords with a second preset range; the third predetermined number is any number that meets a third predetermined range.
Furthermore, the first preset range is 5 to 13; the second preset range is 3 to 5; the third predetermined range is 3 to 5.
In addition, the first decoding rule is that the square waveform of which the high level starts and the low level ends is decoded into 1, and the square waveform of which the low level starts and the high level ends is decoded into 0; the second decoding rule is that the square waveform at which the low level starts and the high level ends is decoded to 1, and the square waveform at which the high level starts and the low level ends is decoded to 0.
According to the technical scheme provided by the invention, the invention provides a transmission signal receiving method and equipment, through the method, after a data receiving end continuously receives transmission signals, whether first square wave signals of a first preset number are continuously received or not is judged, the current signal transmission period is obtained through calculation according to the first square wave signals, whether second square wave signals are received or not is judged according to the current signal transmission period, whether second square wave signals are continuously received or not is judged, whether third square wave signals are received or not is judged according to the current signal transmission period, whether third square wave signals are continuously received or not is judged, and the decoding rule adopted by decoding is judged according to the level change of the second square wave signals. By the method, the data receiving end judges whether the received transmission signal is a signal transmitted in a normal phase or a signal transmitted in a reverse phase according to the state of the received transmission signal, so that the transmission signal can be further decoded correctly, the situation that the signal is decoded incorrectly or cannot be decoded due to phase inversion in the transmission process is avoided, and the communication efficiency is improved.
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 description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of a transmission signal receiving method according to embodiment 1 of the present invention;
fig. 2(a) is a schematic waveform diagram of a transmission signal according to embodiment 1 of the present invention;
fig. 2(b) is a schematic waveform diagram of a transmission signal according to embodiment 1 of the present invention;
fig. 2(c) is a schematic waveform diagram of a transmission signal according to embodiment 1 of the present invention;
fig. 2(d) is a schematic waveform diagram of a transmission signal according to embodiment 1 of the present invention;
fig. 3 is a schematic structural diagram of a transmission signal receiving apparatus according to embodiment 2 of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or quantity or location.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
Example 1
The embodiment provides a transmission signal receiving method which can be applied to the field of power line communication. Fig. 1 is a flowchart of an alternative transmission signal receiving method according to this embodiment.
As shown in fig. 1, the transmission signal receiving method mainly includes the following steps (step 1 to step 10):
step 1, continuously receiving transmission signals, judging whether first square wave signals of a first preset number are continuously received or not, if so, turning to step 2, and if not, turning to step 10; the first square wave signal consists of a high level signal and a low level signal and has only one level jump.
In this embodiment, the transmission signal is a square wave signal composed of a high level signal and a low level signal, the first square wave signal is a square wave signal with only one level jump, the durations of the high level signal and the low level signal may be the same or different, for example, the transmission signal may be the square wave signal shown in fig. 2(a) to 2 (d). The transmission signal may be a communication data frame sent by a data sending end.
In an alternative embodiment of this embodiment, the first predetermined number is any number that meets the first predetermined range. Preferably, the first preset range is 5 to 13; and (3) when 5 to 13 first square wave signals are received, turning to the step (2), so that the situation that the interference in the transmission signals is mistaken for the first square wave signals due to too small preset number or the data receiving speed is slow due to too large preset number is avoided. For example, if 6 first square wave signals are received from the square wave signals shown in fig. 2(a) to 2(c), the determination may be transferred to step 2; in the square wave signals shown in fig. 2(d), if 7 first square wave signals are received, the determination may be transferred to step 2.
And 2, obtaining the current signal transmission period according to the first square wave signal.
In this embodiment, the first square wave signal may be a pilot signal, and the data receiving end may calculate a signal transmission period, that is, a frequency (baud rate) of signal transmission according to the pilot signal, and further complete subsequent operations according to the calculated signal transmission period (for example, complete receiving and sending operations of a transmission signal according to the signal transmission period). The pilot signal may be a part of a data frame header, the data frame header is a waveform sequence agreed by both communication parties, if the data frame header is received, the data receiving end may determine that a data frame is currently started to be received, and through the pilot signal in the data frame header, the data receiving end may also calculate a signal transmission period of the square wave signal.
In an optional implementation manner of this embodiment, the data receiving end may obtain, according to the calculation, an average duration T of the first square wave signal from the 1 st first square wave signal to the a-th level signal, and use the average duration T as the current signal transmission period T, where a is a positive integer and a is less than or equal to 13. Taking the square wave signal shown in fig. 2(a) as an example, when a is 4, the duration time from the 1 st first square wave signal to the 4 th first square wave signal is t1=0.0105s、t2=0.0097s、t3=0.0095s、 t4The average duration T is 0.01s, which is 0.0103s, and 0.01s is used as the current signal transmission period, i.e., T is 0.01 s. The average duration time of the square wave signal is used as the current signal transmission period, so that the influence of errors caused by interference and other reasons on the signal duration time calculation result in the transmission process of the signal is reduced, and the communication efficiency is improved.
Step 3, judging whether a second square wave signal is received or not according to the current signal transmission period, if so, turning to step 4, and if not, turning to step 10; the second square wave signal and the first square wave signal have opposite phases.
In this embodiment, after receiving the first square wave signals of the first preset number, it is determined whether the second square wave signals are received, that is, if the second square wave signals are received when the first square wave signals of the first preset number are not received, the data receiving end may consider that signal loss occurs, the data receiving end may select to end the current receiving process, and if the second square wave signals are not received after receiving the first square wave signals of the first preset number, the data receiving end may also consider that the currently received content is not a data frame header or data loss, and end the receiving process. Whether the second square wave signal is received or not is judged according to the current signal transmission period, and the situation that whether the second square wave signal is received or not cannot be accurately judged when the starting level of the second square wave signal is the same as the ending level of the first square wave signal is avoided. For example, as shown in fig. 2(a), 2(b), and 2(d), it can be determined that the second square wave signal is received according to the current signal transmission period, and the process goes to the next step, and in the waveform shown in fig. 2(c), it can be determined that the second square wave signal is not received according to the current signal transmission period, and the receiving process is ended.
And 4, judging whether a second preset number of second square wave signals are continuously received, if so, turning to the step 5, and if not, turning to the step 10.
In this embodiment, if the second square wave signals of the second preset number are not continuously received, the data receiving end may consider that the currently received content is not a data frame header or data is lost, and the data receiving end may choose to go to step 10 to end the current receiving process. The method avoids the situation that the level signal is lost or the received signal is still detected under the situation that the received signal is not a data frame header, and improves the communication efficiency.
As an optional implementation manner of this embodiment, the second preset number is any number that meets the second preset range, and preferably, the second preset range is 3 to 5; and turning to the step 5 when 3 to 5 second square wave signals are received, so that the situation that the interference in the transmission signals is mistaken for the second square wave signals due to too small preset number or the data receiving speed is slow due to too large preset number is avoided. For example, in the square wave signals shown in fig. 2(a) and 2(b), if 5 second square wave signals are received, the determination may be transferred to step 5, and in the square wave signal shown in fig. 2(d), if 4 second square wave signals are received, the determination may be transferred to step 5.
Step 5, judging whether a third party wave signal is received or not according to the current signal transmission period, if so, turning to step 6, and if not, turning to step 10; and the third square wave signal and the second square wave signal have opposite phases.
In this embodiment, after receiving the second preset number of second square wave signals, it is determined whether a third square wave signal is received, that is, if the third square wave signal is received when the second preset number of second square wave signals is not received, the data receiving end may consider that a signal loss occurs, the data receiving end may select to end the current receiving process, and if the third square wave signal is not received after receiving the second preset number of second square wave signals, the data receiving end may also consider that the currently received content is not a data frame header or data loss, and end the receiving process. Whether the third-party wave signal is received or not is judged according to the current signal transmission period, and the situation that whether the third-party wave signal is received or not cannot be accurately judged when the starting level of the third-party wave signal is the same as the ending level of the second square wave signal is avoided. For example, as shown in fig. 2(a) and 2(b), it can be determined that the third square wave signal is received according to the current signal transmission cycle, and the process goes to the next step, and in the waveform shown in fig. 2(d), it can be determined that the third square wave signal is not received according to the current signal transmission cycle, and the receiving process is ended.
And 6, judging whether third party wave signals of a third preset number are continuously received or not, if so, turning to the step 7, and if not, turning to the step 10.
In this embodiment, if the third preset number of third party wave signals are not continuously received, the data receiving end may consider that the currently received content is not a header of a data frame or that data is lost, and the data receiving end may choose to go to step 10 to end the current receiving process. The method avoids the situation that the level signal is lost or the received signal is not the head of the data frame, and still detects the level signal, thereby improving the communication efficiency.
As an optional implementation manner of this embodiment, the third preset number is any number that meets the third preset range, and preferably, the preferred range of the third preset range is 3 to 5; and 7, the third-party wave signals are received, and then the method is transferred to step 7, so that the situation that the interference in the transmission signals is mistaken for the third-party wave signals due to too small preset number or the data receiving speed is slow due to too large preset number is avoided. For example, in fig. 2(a) and 2(b), 4 third-party wave signals are received, which meet a third predetermined range, and the process may proceed to step 7.
Step 7, if the waveform of the second square wave signal is low level, the high level is finished, and the step 8 is switched to; if the waveform of the second square wave signal is high, the low level is over, and go to step 9.
And 8, judging that the current receiving state is a normal-phase receiving state, and decoding the data behind the third square wave signal according to a first decoding rule corresponding to the normal-phase receiving state.
And 9, judging that the current receiving state is an inverted receiving state, and decoding the data behind the third party wave signal according to a second decoding rule corresponding to the inverted receiving state.
And step 10, judging that the current data is received wrongly, and ending the receiving process.
In this embodiment, the data receiving end determines whether the second square wave signal starts from a high level or a low level, that is, the second square wave signal may be compared with a level change of the second square wave signal when the data is transmitted, for example, when the data transmitting end starts from the high level to the low level when the data transmitting end transmits the transmission signal, when the data receiving end receives the data, if the second square wave signal also starts from the high level to the low level, it is determined that the polarity of the signal is not reversed during transmission, and the current receiving state is the normal phase receiving state, the decoding may be performed according to the first decoding rule, and if the second square wave signal starts from the low level to the high level, it is determined that the polarity of the signal is reversed during transmission, and the current receiving state is the reverse phase receiving state, the decoding should be performed according to the second decoding rule. The decoding rule is determined by judging the level change of the received second square wave signal, so that the condition that the data receiving end does not find polarity inversion and then decodes by mistake when the polarity inversion occurs in the data transmission process is avoided. For example, when the data receiving end receives the level signal in fig. 2(a), the second square wave signal starts from a high level and ends at a low level, the data receiving end determines that polarity inversion occurs in the data during transmission, the current receiving state is an inverted receiving state, and decoding is performed according to a second decoding rule; when the level signal in fig. 2(b) is received, the second square wave signal starts from a low level and ends at a high level, the data receiving end determines that the polarity of the data is not reversed in the transmission process, the current receiving state is a normal phase receiving state, and decoding is performed according to a first decoding rule; when the data receiving end receives the level signal, whether the polarity of the data is reversed in the transmission process can be judged through the level change of the second square wave signal, and then a proper decoding rule is selected to complete decoding.
In this embodiment, after receiving a first predetermined number of first square wave signals, the data receiving end determines whether a second square wave signal is received, and after receiving a second predetermined number of second square wave signals, determines whether a third square wave signal is received, and determines whether a third predetermined number of third square wave signals is received, and then determines the current receiving state according to the level variation form of the second square wave signal, the data receiving end determines whether a specific number of certain square wave signals are received, and then determines whether another square wave signal is received, so as to avoid the situation that the first square wave signal, the second square wave signal, and the third square wave signal detected by the data receiving end are signal changes caused by noise in the signal transmission process, but not the situation that the data transmitting end transmits a true signal so as to determine an error, the communication efficiency is improved.
As an optional implementation manner of this embodiment, the first decoding rule is that the square waveform at which the high level starts and the low level ends is decoded to 1, and the square waveform at which the low level starts and the high level ends is decoded to 0; the second decoding rule is that the square waveform at which the low level starts and the high level ends is decoded to 1, and the square waveform at which the high level starts and the low level ends is decoded to 0. The data receiving end judges whether the received transmission signal is a signal transmitted in a normal phase or a signal transmitted in a reverse phase according to the state of the received transmission signal, so that the signal can be further decoded correctly, the situation that the signal is decoded incorrectly or cannot be decoded due to phase inversion in the transmission process is avoided, and the communication efficiency is improved.
According to the technical scheme of the embodiment, the invention provides a transmission signal receiving method, in the method, after continuously receiving transmission signals, a data receiving end judges whether first square wave signals of a first preset number are continuously received or not, a current signal transmission period is obtained through calculation according to the first square wave signals, then whether second square wave signals are received or not is judged according to the current signal transmission period, whether second square wave signals are continuously received or not is judged, whether third square wave signals are received or not is judged according to the current signal transmission period, whether third square wave signals are continuously received or not is judged, when one of the conditions is not met, a receiving process is informed to stop, and a decoding rule adopted by decoding is judged according to the level change of the second square wave signals. By the method, the data receiving end judges whether the received transmission signal is a signal transmitted in a normal phase or a signal transmitted in a reverse phase according to the state of the received transmission signal, so that the transmission signal can be further decoded correctly, the situation that the signal is decoded incorrectly or cannot be decoded due to phase inversion in the transmission process is avoided, and the communication efficiency is improved.
Example 2
In this embodiment, a transmission signal receiving apparatus 200 is provided, where the apparatus corresponds to the transmission signal receiving method in embodiment 1 one to one, and details are not repeated herein, and only briefly described, in an optional implementation manner of this embodiment, specific operations performed by each module in the transmission signal receiving apparatus 200 may refer to embodiment 1.
In the present embodiment, the transmission signal receiving apparatus 200 may be included in any communication terminal in power line communication, for example, a camera, a PC, a server, or the like, or may be an independent apparatus.
Fig. 3 is a transmission signal receiving apparatus 200 of the present embodiment, including: a signal receiving module 201, a current signal transmission period calculating module 202, a square wave signal judging module 203 and a decoding module 204, wherein,
the signal receiving module 201 is configured to continuously receive transmission signals, determine whether a first preset number of first square wave signals are continuously received, trigger the current signal transmission period calculating module 202 to complete an operation if the first preset number of first square wave signals are continuously received, and determine that the current data is received incorrectly if the first preset number of first square wave signals are not continuously received; the first square wave signal consists of a high level signal and a low level signal and has only one level jump.
In this embodiment, the transmission signal is a square wave signal composed of a high level signal and a low level signal, the first square wave signal is a square wave signal with only one level jump, and the durations of the high level signal and the low level signal may be the same or different. The transmission signal may be a communication data frame sent by a data sending end.
In an alternative embodiment of this embodiment, the first predetermined number is any number that meets the first predetermined range. Preferably, the first preset range is 5 to 13; when 5 to 13 first square wave signals are received, the current signal transmission period calculation module 202 is triggered to complete the operation, so that the situation that interference in the transmission signals is mistaken for the first square wave signals due to too small preset number or the data receiving speed is slow due to too large preset number is avoided.
A current signal transmission period calculating module 202, configured to obtain a current signal transmission period according to the first square wave signal.
In this embodiment, the first square wave signal may be a pilot signal, and the current signal transmission period calculating module 202 may calculate a signal transmission period, that is, a frequency (baud rate) of signal transmission according to the pilot signal, and further complete subsequent operations according to the calculated signal transmission period (for example, complete receiving and sending operations of a transmission signal according to the signal transmission period). The pilot signal may be a part of a header of the data frame, where the header of the data frame is a waveform sequence agreed by both communication parties, and if the header of the data frame is received, the transmission signal receiving apparatus 200 may determine that a data frame is currently started to be received, and through the pilot signal in the header of the data frame, the transmission signal receiving apparatus 200 may also calculate a signal transmission period of the square wave signal.
The square wave signal determining module 203 is configured to determine whether a second square wave signal is received according to a current signal transmission period, where a phase of the second square wave signal is opposite to a phase of the first square wave signal, if not, the trigger signal receiving module 201 ends a receiving process, if yes, it is determined whether a second preset number of second square wave signals are continuously received, if not, the trigger signal receiving module 201 ends the receiving process, if yes, it is determined whether a third square wave signal is received according to the current signal transmission period, where the phases of the third square wave signal and the second square wave signal are opposite, if not, the trigger signal receiving module 201 ends the receiving process, if yes, it is determined whether a third preset number of third square wave signals are continuously received, if not, the trigger signal receiving module 201 ends the receiving process, and if yes, the trigger decoding module 204 completes an operation.
In this embodiment, after receiving the first square wave signals of the first preset number, it is determined whether the second square wave signals are received, that is, if the second square wave signals are received when the first square wave signals of the first preset number are not received, it may be considered that signal loss occurs, the transmission signal receiving apparatus 200 may select to end the current receiving process, and if the second square wave signals are not received after receiving the first square wave signals of the first preset number, the transmission signal receiving apparatus 200 may also consider that the currently received content is not a data frame header or data loss, and end the receiving process. Whether the second square wave signal is received or not is judged according to the current signal transmission period, and the situation that whether the second square wave signal is received or not cannot be accurately judged when the starting level of the second square wave signal is the same as the ending level of the first square wave signal is avoided.
In this embodiment, if the second square wave signals of the second preset number are not continuously received, the transmission signal receiving apparatus 200 may consider that the currently received content is not a header of a data frame or that data is lost, and the transmission signal receiving apparatus 200 may select to end the current receiving process. The method avoids the situation that the level signal is lost or the received signal is still detected under the situation that the received signal is not a data frame header, and improves the communication efficiency.
As an optional implementation manner of this embodiment, the second preset number is any number that meets the second preset range, and preferably, the second preset range is 3 to 5; and the next process is carried out when 3 to 5 second square wave signals are received, so that the situation that the interference in the transmission signals is mistaken for the second square wave signals due to too small preset number or the data receiving speed is slow due to too large preset number is avoided.
In this embodiment, after receiving the second preset number of second square wave signals, it is determined whether a third square wave signal is received, that is, if the third square wave signal is received when the second preset number of second square wave signals is not received, the transmission signal receiving apparatus 200 may consider that a signal loss occurs, and may further select to end the current receiving process, and if the third square wave signal is not received after receiving the second preset number of second square wave signals, the transmission signal receiving apparatus 200 may also consider that the currently received content is not a data frame header or data is lost, and end the receiving process. Whether the third-party wave signal is received or not is judged according to the current signal transmission period, and the situation that whether the third-party wave signal is received or not cannot be accurately judged when the starting level of the third-party wave signal is the same as the ending level of the second square wave signal is avoided.
In this embodiment, if the third preset number of third party wave signals are not continuously received, the transmission signal receiving apparatus 200 may consider that the currently received content is not a header of a data frame or data is lost, and may select to end the current receiving process. The method avoids the situation that the level signal is lost or the received signal is not the head of the data frame, and still detects the level signal, thereby improving the communication efficiency.
As an optional implementation manner of this embodiment, the third preset number is any number that meets the third preset range, and preferably, the preferred range of the third preset range is 3 to 5; the next process is carried out when 3 to 5 third-party wave signals are received, so that the situation that interference in the transmission signals is mistaken for the third-party wave signals due to too small preset quantity or the data receiving speed is low due to too large preset quantity is avoided.
The decoding module 204 is configured to, if the waveform of the second square wave signal starts at a low level and ends at a high level, determine that the current receiving state is a normal-phase receiving state, and decode data after the third square wave signal according to a first decoding rule corresponding to the normal-phase receiving state; and if the waveform of the second square wave signal is high level, the low level is finished, the current receiving state is judged to be the reverse receiving state, and the data behind the third square wave signal is decoded according to a second decoding rule corresponding to the reverse receiving state.
In this embodiment, the decoding module 204 determines whether the second square wave signal starts from a high level or a low level, that is, the second square wave signal can be compared with the level change of the second square wave signal when the data is transmitted, for example, when the transmission signal transmitting apparatus transmits the transmission signal, the second square wave signal starts from a high level and ends from a low level, when the transmission signal receiving apparatus 200 receives the data, if the second square wave signal also ends from a high level and ends from a low level, it is determined that the polarity of the signal is not reversed during transmission, and the current receiving state is a normal phase receiving state, the decoding can be performed according to the first decoding rule, and if the second square wave signal ends from a low level and ends from a high level, it is determined that the polarity of the signal is reversed during transmission, and the current receiving state is an inverted phase receiving state, the decoding should be performed according to the second decoding rule. The decoding rule is determined by judging the level change of the received second square wave signal, so that the condition that the transmission signal receiving equipment 200 does not find polarity inversion and then decodes in error when the polarity inversion occurs in the data transmission process is avoided.
In this embodiment, the transmission signal receiving apparatus 200 determines whether the second square wave signal is received after receiving the first square wave signal of the first preset number, and determines whether the third square wave signal is received after receiving the second square wave signal of the second preset number, and determines whether the third square wave signal is received after determining whether the third square wave signal of the third preset number is received, and then determines the current receiving state according to the level variation form of the second square wave signal, the transmission signal receiving apparatus 200 determines whether the signal reception is correct by determining whether a certain square wave signal of a specific number is received and then determining whether another square wave signal is received, thereby avoiding the situation that the first square wave signal, the second square wave signal and the third square wave signal detected by the transmission signal receiving apparatus 200 are signal changes caused by noise during signal transmission, but not the real signal sent by the data sending end is wrong, the communication efficiency is improved.
As an optional implementation manner of this embodiment, the first decoding rule is that the square waveform at which the high level starts and the low level ends is decoded to 1, and the square waveform at which the low level starts and the high level ends is decoded to 0; the second decoding rule is that the square waveform at which the low level starts and the high level ends is decoded to 1, and the square waveform at which the high level starts and the low level ends is decoded to 0. The decoding module 204 determines whether the received transmission signal is a signal transmitted in a normal phase or a signal transmitted in a reverse phase according to the state of the received transmission signal, so as to facilitate further correct decoding of the signal, avoid a decoding error or a decoding failure of the signal caused by phase inversion in the transmission process, and improve the communication efficiency.
As can be seen from the technical solutions of the present embodiment, the present invention provides a transmission signal receiving apparatus 200, in the device, a signal receiving module 201 determines whether a first preset number of first square wave signals are continuously received after continuously receiving transmission signals, the current signal transmission period calculation module 202 calculates a current signal transmission period according to the first square wave signal, the square wave signal determining module 203 determines whether a second square wave signal is received according to the current signal transmission period, determines whether the second square wave signal is continuously received, determines whether a third square wave signal is received according to the current signal transmission period, determines whether the third square wave signal is continuously received, and when one of the above conditions is not satisfied, the signal receiving module is notified to stop the receiving process, and the decoding module 204 determines the decoding rule adopted by the decoding according to the level change of the second square wave signal and completes the decoding. By the method, the transmission signal receiving device 200 judges whether the received transmission signal is a signal transmitted in a normal phase or a signal transmitted in a reverse phase according to the state of the received transmission signal, so that the transmission signal can be further decoded correctly, the situation that the signal is decoded incorrectly or cannot be decoded due to phase inversion in the transmission process is avoided, and the communication efficiency is improved.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (8)

1. A transmission signal receiving method, comprising the steps of:
step 1, continuously receiving transmission signals, judging whether first square wave signals of a first preset number are continuously received or not, if so, turning to step 2, and if not, turning to step 10; the first square wave signal consists of a high level signal and a low level signal, and has one level jump;
step 2, obtaining a current signal transmission period according to the first square wave signal;
step 3, judging whether a second square wave signal is received or not according to the current signal transmission period, if so, turning to step 4, and if not, turning to step 10; wherein the second square wave signal is opposite in phase to the first square wave signal;
step 4, judging whether a second preset number of second square wave signals are continuously received, if so, turning to step 5, and if not, turning to step 10;
step 5, judging whether a third party wave signal is received or not according to the current signal transmission period, if so, turning to step 6, and if not, turning to step 10; wherein the third square wave signal is opposite in phase to the second square wave signal;
step 6, judging whether a third preset number of third party wave signals are continuously received, if so, turning to step 7, and if not, turning to step 10;
step 7, if the waveform of the second square wave signal is low level, the high level is finished, and the step 8 is switched to; if the waveform of the second square wave signal is high level, the low level is finished, and the step 9 is switched to;
step 8, judging that the current receiving state is a normal phase receiving state, and decoding the data behind the third party wave signal according to a first decoding rule corresponding to the normal phase receiving state;
step 9, judging that the current receiving state is an inverse receiving state, and decoding the data behind the third party wave signal according to a second decoding rule corresponding to the inverse receiving state;
and step 10, judging that the current data is received wrongly, and ending the receiving process.
2. The method of claim 1,
the first preset number is any number which accords with a first preset range;
the second preset number is any number which accords with a second preset range;
the third preset number is any number that meets a third preset range.
3. The method of claim 2,
the first preset range is 5 to 13; the second preset range is 3 to 5; the third predetermined range is 3 to 5.
4. The method of claim 1,
the first decoding rule is that the square waveform of which the high level starts and the low level ends is decoded into 1, and the square waveform of which the low level starts and the high level ends is decoded into 0;
the second decoding rule is that the square waveform of which the low level starts and the high level ends is decoded into 1, and the square waveform of which the high level starts and the low level ends is decoded into 0.
5. A transmission signal receiving apparatus, characterized by comprising: a signal receiving module, a current signal transmission period calculating module, a square wave signal judging module and a decoding module, wherein,
the signal receiving module is used for continuously receiving transmission signals and judging whether first square wave signals of a first preset number are continuously received or not, if so, the current signal transmission period calculating module is triggered to complete the operation, and if not, the current data receiving error is judged and the receiving process is ended; the first square wave signal consists of a high level signal and a low level signal, and has one level jump;
the current signal transmission period calculation module is used for obtaining a current signal transmission period according to the first square wave signal;
the square wave signal judging module is used for judging whether a second square wave signal is received or not according to the current signal transmission period, wherein the phase of the second square wave signal is opposite to that of the first square wave signal, if not, the signal receiving module is triggered to end the receiving process, if yes, whether a second preset number of second square wave signals are continuously received or not is judged, if not, the signal receiving module is triggered to end the receiving process, if yes, whether a third square wave signal is received or not is judged according to the current signal transmission period, wherein the phase of the third square wave signal is opposite to that of the second square wave signal, if not, the signal receiving module is triggered to end the receiving process, if yes, whether a third preset number of third square wave signals are continuously received or not is judged, if not, the signal receiving module is triggered to end the receiving process, if yes, triggering the decoding module to complete the operation;
the decoding module is configured to, if the waveform of the second square wave signal starts at a low level and ends at a high level, determine that a current receiving state is a normal phase receiving state, and decode data after the third square wave signal according to a first decoding rule corresponding to the normal phase receiving state; and if the waveform of the second square wave signal is high level, and low level is finished, judging that the current receiving state is an inverse receiving state, and decoding data behind the third square wave signal according to a second decoding rule corresponding to the inverse receiving state.
6. The apparatus of claim 5,
the first preset number is any number which accords with a first preset range;
the second preset number is any number which accords with a second preset range;
the third preset number is any number that meets a third preset range.
7. The apparatus of claim 6,
the first preset range is 5 to 13; the second preset range is 3 to 5; the third predetermined range is 3 to 5.
8. The apparatus of claim 5,
the first decoding rule is that the square waveform of which the high level starts and the low level ends is decoded into 1, and the square waveform of which the low level starts and the high level ends is decoded into 0;
the second decoding rule is that the square waveform of which the low level starts and the high level ends is decoded into 1, and the square waveform of which the high level starts and the low level ends is decoded into 0.
CN201911357104.7A 2019-12-25 2019-12-25 Transmission signal receiving method and equipment Active CN111147108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911357104.7A CN111147108B (en) 2019-12-25 2019-12-25 Transmission signal receiving method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911357104.7A CN111147108B (en) 2019-12-25 2019-12-25 Transmission signal receiving method and equipment

Publications (2)

Publication Number Publication Date
CN111147108A CN111147108A (en) 2020-05-12
CN111147108B true CN111147108B (en) 2021-10-22

Family

ID=70519969

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911357104.7A Active CN111147108B (en) 2019-12-25 2019-12-25 Transmission signal receiving method and equipment

Country Status (1)

Country Link
CN (1) CN111147108B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2335147Y (en) * 1998-08-12 1999-08-25 梁福平 Electric power meter recording device and run indicator thereof
KR100669829B1 (en) * 2005-07-19 2007-01-16 성균관대학교산학협력단 Power line communication system for pursuing variable channel environment according to variance of load
JP2009060552A (en) * 2007-09-04 2009-03-19 Outstanding Technology:Kk Power-line communication system, power-line communication method
CN102014093A (en) * 2010-12-09 2011-04-13 东南大学 Extended binary phase shift keying (EBPSK) modem and implementation method thereof
CN105372496A (en) * 2015-11-10 2016-03-02 华为技术有限公司 Phase identification device and phase identification method in power supply network
CN108599812A (en) * 2018-05-09 2018-09-28 北京星网锐捷网络技术有限公司 Communication means, node device based on power line and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201972B (en) * 2016-07-01 2019-02-26 西安交大能源电子技术开发公司 A kind of high speed serial communication method suitable for inexpensive child node
CN110050442B (en) * 2017-01-17 2021-08-13 伟肯有限公司 Integrated signal forming method, integrated signal forming apparatus, and integrated signal forming system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2335147Y (en) * 1998-08-12 1999-08-25 梁福平 Electric power meter recording device and run indicator thereof
KR100669829B1 (en) * 2005-07-19 2007-01-16 성균관대학교산학협력단 Power line communication system for pursuing variable channel environment according to variance of load
JP2009060552A (en) * 2007-09-04 2009-03-19 Outstanding Technology:Kk Power-line communication system, power-line communication method
CN102014093A (en) * 2010-12-09 2011-04-13 东南大学 Extended binary phase shift keying (EBPSK) modem and implementation method thereof
CN105372496A (en) * 2015-11-10 2016-03-02 华为技术有限公司 Phase identification device and phase identification method in power supply network
CN108599812A (en) * 2018-05-09 2018-09-28 北京星网锐捷网络技术有限公司 Communication means, node device based on power line and system

Also Published As

Publication number Publication date
CN111147108A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN103533631B (en) Radio link synchronization method and device in wireless communication terminal
US20090274139A1 (en) Pre-emptive acknowledgement for data transmission in a communication system
WO2018095181A1 (en) Data transmission method and device
CN111147108B (en) Transmission signal receiving method and equipment
CN111147107B (en) Data receiving method and device
CN112491494B (en) Code determining method, device, equipment and storage medium
CN112333121A (en) Signal detection method and device, computer equipment and storage medium
CN110505041B (en) Information reporting method, data transmission method, user equipment and network side equipment
CN105591716B (en) A kind of serial data communication method, apparatus and system based on single carrier
EP1895699A2 (en) Modulation scheme deciding apparatus, receiving apparatus, modulation scheme deciding method and modulation scheme deciding program
CN113098809B (en) Software self-adaptive decoding method, device and wireless charging system
CN104796181A (en) Short-wave double-antenna digital communication system and automatic receiving verification method for the same
CN107888326B (en) Data transmission method and device
JP3485248B2 (en) Power line communication device
CN107368446B (en) Transmission parameter adaptive data transmission method and device
JP5195920B2 (en) Wireless communication system and wireless device
CN106877994B (en) Audio data transmitting and receiving method
CN112054819B (en) Method and apparatus for transmitting and receiving data using power line
CN113055133B (en) Hybrid automatic repeat request HARQ response method, device, equipment and medium
JP4609038B2 (en) Reception synchronization signal generator
CN112149439B (en) Decoding self-alignment method, device and equipment for SWP physical layer S2
CN106549890B (en) Data receiving method and device
CN112054820A (en) Method and apparatus for transmitting and receiving data using power line
CN106549727B (en) Signal receiving method and device
WO2019218803A1 (en) Information reporting method, data transmission method, user equipment and network side device

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