CN117014106B - Wireless signal decoding method and device - Google Patents
Wireless signal decoding method and device Download PDFInfo
- Publication number
- CN117014106B CN117014106B CN202311274775.3A CN202311274775A CN117014106B CN 117014106 B CN117014106 B CN 117014106B CN 202311274775 A CN202311274775 A CN 202311274775A CN 117014106 B CN117014106 B CN 117014106B
- Authority
- CN
- China
- Prior art keywords
- signal
- ratio
- duration
- information
- signal information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000012937 correction Methods 0.000 claims abstract description 27
- 238000012216 screening Methods 0.000 claims description 54
- 238000004364 calculation method Methods 0.000 claims description 23
- 238000004458 analytical method Methods 0.000 claims description 8
- 238000004422 calculation algorithm Methods 0.000 claims description 4
- 230000001131 transforming effect Effects 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 18
- 238000012545 processing Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000005259 measurement Methods 0.000 description 5
- 230000032683 aging Effects 0.000 description 4
- 230000008054 signal transmission Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000000969 carrier Substances 0.000 description 2
- 230000002349 favourable effect Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0036—Systems modifying transmission characteristics according to link quality, e.g. power backoff arrangements specific to the receiver
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C25/00—Arrangements for preventing or correcting errors; Monitoring arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2816—Controlling appliance services of a home automation network by calling their functionalities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L2012/284—Home automation networks characterised by the type of medium used
- H04L2012/2841—Wireless
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Automation & Control Theory (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the technical field of data processing, and discloses a method and a device for decoding wireless signals, wherein the method comprises the following steps: when a wireless signal from a transmitting device is received, analyzing the wireless signal to obtain at least one signal information, judging whether the ratio between the duration values of two types of level signals in each signal information is equal to a preset duration ratio, and when the ratio between the duration values of two types of level signals in at least one signal information is equal to the preset duration ratio, taking the at least one signal information as target signal information, obtaining a first numerical range corresponding to the duration value of each type of level signal in each target signal information, and performing error correction on the first numerical range to obtain a second numerical range. Therefore, the invention can realize that the household appliance accurately decodes the wireless signal and dynamically corrects the error range of the wireless signal, and is beneficial to improving the accuracy and efficiency of receiving and decoding the wireless signal by the household appliance.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for decoding a wireless signal.
Background
In the daily life scenario, a wireless remote control device is generally used to control the home appliance, and main components for implementing the remote control function include: remote control transmitters and receivers, but because of different timing or timing errors of the remote control transmitters and receivers of the household appliances, in general, a tolerance range of + -10% is taken on a standard time value to ensure that wireless signals can be successfully decoded. However, in the case of long-term use or in the actual environment where the temperature and humidity change frequently, the remote control transmitter and receiver of the home appliance are gradually aged, which causes a timing error in the process of sending and receiving the wireless signal to exceed a preset tolerance range, and then the time tolerance of the receiver for receiving the wireless signal needs to be increased, but the anti-interference capability of the wireless signal is greatly reduced and is easily interfered by other signals, so that the accuracy and efficiency of receiving and decoding the wireless signal of the home appliance are reduced. The present invention provides a method and an apparatus for decoding a wireless signal, so as to solve the problems of low accuracy and efficiency of receiving and decoding the wireless signal by a home appliance caused by an error of the wireless signal in the prior art.
Disclosure of Invention
The invention provides a method and a device for decoding wireless signals, which can be beneficial to improving the accuracy and efficiency of receiving and decoding wireless signals of household appliances.
In order to solve the above technical problem, a first aspect of the present invention discloses a method for decoding a wireless signal, the method comprising:
when a wireless signal sent by a sending device is received, analyzing the wireless signal to obtain at least one piece of signal information, wherein each piece of signal information comprises two types of level signals and duration values of the level signals;
judging whether the ratio between the duration values of two types of level signals in each signal information is equal to a preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one piece of target signal information is equal to the preset duration ratio, taking the at least one piece of signal information as the target signal information, acquiring a first numerical range corresponding to the duration value of each type of level signal in each piece of target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, wherein the second numerical range is used for determining whether the subsequently received signal is an invalid signal.
As an optional implementation manner, in the first aspect of the present invention, the wireless signal is represented as a binary signal modulated by the sending device, and the modulated binary signal is represented as a signal obtained by transforming a square wave signal and a carrier signal through a preset algorithm;
the types of the level signals include: the ratio between the duration values of the two types of level signals in the signal information is expressed as the ratio between the duration value of the low level signal and the duration value of the high level signal in the signal information, and the preset duration ratio comprises: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio.
In an optional implementation manner, in a first aspect of the present invention, the determining whether a ratio between duration values of two types of level signals in each of the signal information is equal to a preset duration ratio includes:
judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to the first preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one signal information is equal to the first preset duration ratio, taking the at least one signal information as initial information and taking the rest signal information except the initial information as first screening signal information;
Judging whether the ratio between the duration values of the two types of level signals in each piece of first screening signal information is equal to the second preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information;
judging whether the ratio between the duration values of the two types of level signals in each piece of second screening signal information is equal to the third preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one second screening signal information is equal to the third preset duration ratio, taking the at least one second screening signal information as second information;
the start information is represented as a data frame header of the wireless signal, and is used for identifying the wireless signal and determining a receiving start time of the wireless signal, and all the target signal information comprises the start information, the first information and the second information.
As an optional implementation manner, in the first aspect of the present invention, after the obtaining a first numerical range corresponding to a duration value of each type of level signal in each piece of target signal information, the method further includes:
calculating an average value and a jitter positive error value of the duration time value of each type of level signal in each piece of target signal information according to the minimum value and the maximum value of the first numerical range;
wherein, the calculation formula of the average value is expressed as:the calculation formula of the jitter positive error value is expressed as follows: />,/>Expressed as the mean,/->Expressed as the maximum value of said duration value, < >>Expressed as the minimum value of said duration value,/->And representing as the jitter positive error value, the minimum value of the first numerical range corresponds to the minimum value of the duration value, and the maximum value of the first numerical range corresponds to the maximum value of the duration value.
In an optional implementation manner, in a first aspect of the present invention, the performing error correction on the first numerical range to obtain a corrected second numerical range includes:
judging whether the average value of the duration values of each type of level signal in each piece of target signal information is equal to a corresponding preset duration threshold value or not;
When judging that at least one average value is not equal to the corresponding preset duration threshold value, expanding the jitter positive error value by preset timesThe minimum value of the first numerical range is reduced to +.>The maximum value of said first numerical range increases by +.>;
The saidIs in contact with the->Setting the minimum value and the maximum value of the corrected second numerical range to obtain the corrected second numerical range;
wherein the jitter positive error value after expansion isThe calculation formula of the minimum value of the second numerical range is expressed as +.>The calculation formula of the maximum value of the second numerical range is expressed as。
As an alternative embodiment, in the first aspect of the present invention, the method includes:
when a second wireless signal sent again by the sending equipment is received, analyzing the second wireless signal to obtain at least one secondary signal information;
judging whether the duration time values of two types of level signals in each secondary signal information exceed the second numerical range or not;
and when judging that the duration value of each type of level signal in the at least one secondary signal information exceeds the second numerical range, determining the second wireless signal as an invalid wireless signal.
As an alternative embodiment, in the first aspect of the present invention, the method includes:
when a second wireless signal sent again by the sending equipment is received, analyzing the second wireless signal to obtain at least one secondary signal information;
judging whether the ratio between the duration values of two types of level signals in the initial first secondary signal information is equal to the first preset duration ratio or not;
and when judging that the ratio between the duration values of the two types of level signals in the initial first secondary signal information is not equal to the first preset duration ratio, determining that the second wireless signal is an invalid wireless signal.
The second aspect of the present invention discloses a decoding device for wireless signals, the device comprising:
the analysis module is used for analyzing the wireless signals to obtain at least one signal information when the wireless signals sent by the sending equipment are received, wherein each signal information comprises two types of level signals and duration time values of the level signals;
the judging module is used for judging whether the ratio between the duration time values of the two types of level signals in each piece of signal information obtained through analysis by the analyzing module is equal to a preset duration time ratio;
The acquisition module is used for taking the at least one signal information as target signal information when the judgment module judges that the ratio between the duration time values of the two types of level signals in the at least one signal information is equal to the preset duration time ratio, and acquiring a first numerical range of the duration time value of each type of level signal in each target signal information;
the correction module is used for carrying out error correction on the first numerical value range acquired by the acquisition module to obtain a corrected second numerical value range, and the second numerical value range is used for determining whether a subsequently received signal is an invalid signal or not.
As an optional implementation manner, in the second aspect of the present invention, the wireless signal is represented as a binary signal modulated by the transmitting device, where the modulated binary signal is represented as a signal obtained by transforming a square wave signal and a carrier signal through a preset algorithm;
the types of the level signals include: the ratio between the duration values of the two types of level signals in the signal information is expressed as the ratio between the duration value of the low level signal and the duration value of the high level signal in the signal information, and the preset duration ratio comprises: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio.
In a second aspect of the present invention, the specific manner of determining, by the determining module, whether the ratio between the duration values of the two types of level signals in each of the signal information is equal to the preset duration ratio is:
judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to the first preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one piece of target signal information is equal to the first preset duration ratio, taking the at least one piece of signal information as initial information and taking the rest signal information except the initial information as first screening signal information;
judging whether the ratio between the duration values of the two types of level signals in each piece of first screening signal information is equal to the second preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information;
Judging whether the ratio between the duration values of the two types of level signals in each piece of second screening signal information is equal to the third preset duration ratio or not;
when judging that the ratio between the duration values of the two types of level signals in at least one piece of second screening signal information is equal to the third preset duration ratio, taking the at least one piece of second screening signal information as second information;
the start information is represented as a data frame header of the wireless signal, and is used for identifying the wireless signal and determining a receiving start time of the wireless signal, and all the target signal information comprises the start information, the first information and the second information.
As an optional implementation manner, in the second aspect of the present invention, after the acquiring module acquires a first numerical range corresponding to a duration value of each type of level signal in each piece of target signal information, the apparatus further includes:
the calculating module is used for calculating the average value and the jitter positive error value of the duration time value of each type of level signal in each piece of target signal information according to the minimum value and the maximum value of the first numerical range acquired by the acquiring module;
Wherein, the calculation formula of the average value is expressed as:the calculation formula of the jitter positive error value is expressed as follows: />,/>Expressed as the mean,/->Expressed as the maximum value of said duration value, < >>Expressed as the minimum value of said duration value,/->And representing as the jitter positive error value, the minimum value of the first numerical range corresponds to the minimum value of the duration value, and the maximum value of the first numerical range corresponds to the maximum value of the duration value.
In a second aspect of the present invention, the correction module performs error correction on the first numerical range to obtain a corrected second numerical range in a specific manner:
judging whether the average value of the duration values of each type of level signal in each piece of target signal information is equal to a corresponding preset duration threshold value or not;
when judging that at least one average value is not equal to the corresponding preset duration threshold value, expanding the jitter positive error value by preset timesThe minimum value of the first numerical range is reduced to +.>The maximum value of said first numerical range increases by +.>;
The saidIs in contact with the- >Setting the minimum value and the maximum value of the corrected second numerical range to obtain the corrected second numerical range;
wherein the jitter positive error value after expansion isThe calculation formula of the minimum value of the second numerical range is expressed as +.>The calculation formula of the maximum value of the second numerical range is expressed as。
As an alternative embodiment, in the second aspect of the present invention, the apparatus further includes:
the analysis module is further used for analyzing the second wireless signal to obtain at least one secondary signal information when receiving the second wireless signal sent again by the sending equipment;
the judging module is further used for judging whether the duration value of each type of level signal in each piece of secondary signal information obtained through analysis by the analyzing module exceeds the second value range;
and the determining module is used for determining that the second wireless signal is an invalid wireless signal when the judging module judges that the duration value of each type of level signal in the at least one secondary signal information exceeds the second numerical range.
As an alternative embodiment, in the second aspect of the present invention, the apparatus further includes:
The analysis module is further configured to analyze the second wireless signal when receiving the second wireless signal sent again by the sending device, so as to obtain at least one secondary signal information;
the judging module is further configured to judge whether a ratio between duration values of two types of level signals in the initial first secondary signal information obtained by the parsing module is equal to the first preset duration ratio;
the determining module is further configured to determine that the second wireless signal is an invalid wireless signal when the judging module judges that a ratio between duration values of two types of level signals in the initial first secondary signal information is not equal to the first preset duration ratio.
The third aspect of the present invention discloses another wireless signal decoding method apparatus, the apparatus comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the method for decoding a wireless signal disclosed in the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer storage medium storing computer instructions that, when invoked, are adapted to perform the method of decoding a wireless signal disclosed in the first aspect of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
the invention provides a method and a device for decoding a wireless signal, which can analyze the wireless signal to obtain at least one signal information when receiving the wireless signal sent by a sending device, wherein each signal information comprises two types of level signals and duration values of the level signals, and judge whether the ratio between the duration values of the two types of level signals in each signal information is equal to a preset duration ratio or not, and effectively determine the type of the signal information through the effective duration ratio, thereby being beneficial to improving the fault tolerance and the efficiency of wireless signal decoding; when judging that the ratio between the duration values of the two types of level signals in the target signal information is equal to the preset duration ratio, acquiring first numerical ranges corresponding to the duration values of the two types of level signals in all the target signal information, performing error correction on the first numerical ranges to obtain corrected second numerical ranges, and determining whether the duration of the subsequently received signal information deviates according to the second numerical ranges, thereby reducing the probability of receiving error signals by mistake and further being beneficial to improving the accuracy and efficiency of wireless signal decoding.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a decoding method of a wireless signal according to an embodiment of the present invention;
fig. 2 is a schematic diagram of wireless signal modulation according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a level signal composition of start information of a wireless signal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a level signal composition of first information and second information of a wireless signal according to an embodiment of the present invention;
fig. 5 is a flowchart of another decoding method of a wireless signal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a decoding device for wireless signals according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another decoding device for wireless signals according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a decoding device for a wireless signal according to another embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a method and a device for decoding wireless signals, wherein the method comprises the following steps: when a wireless signal sent by a sending device is received, analyzing the wireless signal to obtain at least one signal information, wherein each signal information comprises two types of level signals and duration values of the level signals, judging whether the ratio between the duration values of the level signals corresponding to each signal information is equal to a preset duration ratio, when judging that the ratio between the duration values of the level signals corresponding to at least one target signal information is equal to the preset duration ratio, acquiring a first numerical range corresponding to the duration values of the level signals corresponding to all the target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, and determining the type of the subsequent signal information. Therefore, the invention can determine the type of the signal information through the effective time length ratio, thereby being beneficial to improving the fault tolerance and the efficiency of the wireless signal decoding; and determining whether the duration of the subsequently received signal information deviates according to the second numerical range, so that the probability of receiving the error signal by mistake is reduced, and further, the accuracy and the efficiency of decoding the wireless signal are improved. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a decoding method of a wireless signal according to an embodiment of the invention. The decoding method of the wireless signal described in fig. 1 may be applied to a decoding device of the wireless signal, where the device may be applied to an intelligent home appliance having a remote control function in an intelligent home network (for example, an intelligent television, an intelligent air conditioner, an intelligent refrigerator, an intelligent electric fan, an intelligent lamp, etc.), and may also be applied to other carriers (for example, an unmanned aerial vehicle, a vehicle, etc.) that need to have a wireless remote control function. As shown in fig. 1, the decoding method of the wireless signal may include the following operations:
101. when a wireless signal transmitted by a transmitting device is received, the wireless signal is analyzed to obtain at least one signal information.
In an embodiment of the present invention, optionally, the sending device may be a wireless remote controller for controlling a receiving device, where the receiving device may be an intelligent home appliance, and the signal adjustment module of the receiving device may include: the device comprises a receiving module and an MCU control module. As shown in fig. 2, the wireless signal is represented as a binary signal modulated by the transmitting apparatus, the binary signal is represented as a signal encoded by binary data 0 and 1, the modulated binary signal is represented as a signal obtained by superimposing a square wave signal generated by a wireless modulator of the transmitting apparatus and a carrier signal and performing a conversion by a and operation (for example, when the waveform a is 0, the waveform C obtained by multiplying the waveform a by the waveform B is 0, and the waveform C is not outputted, when the waveform a is 1, the waveform c=b obtained by multiplying the waveform a by the waveform B, and the waveform c=b waveform), each signal information includes: two types of level signals and a duration value corresponding to each type of level signal, wherein each section of wireless signal consists of at least one signal information. The square wave signal and the carrier wave signal generated by the wireless modulator are used for calculating the wireless signal to be transmitted, so that the stability and the anti-interference capability of the wireless signal are improved, and the accuracy and the efficiency of the wireless signal decoding are improved.
The types of the level signals include: the duration value of each level signal in the signal information meets the duration fixed value of the level signal adopted in the NEC protocol, and the NEC protocol is an infrared remote control system communication protocol.
In the embodiment of the present invention, optionally, when receiving a wireless signal sent from a sending device, analyzing the wireless signal to obtain at least one signal information, including:
when a wireless signal transmitted from a transmitting device is received, the wireless signal is demodulated to obtain a demodulated target square wave signal.
And analyzing the target square wave signal to obtain at least one signal information.
Thus, at least one signal information is obtained by analyzing the transmitted wireless signal, and the more the information contained in the signal information is, the more the accuracy of wireless signal decoding is improved.
102. Determining whether the ratio between the duration values of the two types of level signals in each signal information is equal to the preset duration ratio, and executing step 103 when it is determined that the ratio between the duration values of the two types of level signals in at least one signal information is equal to the preset duration ratio.
In the embodiment of the present invention, optionally, the ratio between the duration values of the level signals corresponding to the signal information is expressed as a ratio between the duration value of the low level signal and the duration value of the high level signal in the signal information, and the preset duration ratio may include: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio. Further, the first preset duration ratio may be specifically 2, the second preset duration ratio may be specifically 1, and the third preset duration ratio may be specifically 1。
In the embodiment of the present invention, optionally, when it is determined that the ratio between the duration values of the level signals corresponding to the at least one target signal information is not equal to the preset duration ratio, the method further includes the following operations:
the signal information is determined to be invalid signal information and step 101 is re-performed.
In the embodiment of the present invention, determining whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the preset duration ratio may include:
and judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to a first preset duration ratio or not.
When it is judged that the ratio between the duration values of the two types of level signals in the at least one signal information is equal to the first preset duration ratio, the at least one signal information is used as starting information, and the remaining signal information except the starting information is used as first screening signal information.
And judging whether the ratio between the duration values of the level signals corresponding to each piece of first screening signal information is equal to a second preset duration ratio.
When judging that the ratio between the duration values of the two types of level signals in the at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information.
And judging whether the ratio between the duration values of the two types of level signals in each piece of second screening signal information is equal to a third preset duration ratio.
And when judging that the ratio between the duration time values of the two types of level signals in the at least one second screening signal information is equal to the third preset duration time ratio, taking the at least one second screening signal information as the second information.
As shown in fig. 3, fig. 3 is a schematic diagram of level signal composition of start information, all target signal information includes start information, first information and second information, the start information is represented as a data frame header of a wireless signal, the start information can be used for identifying the wireless signal and determining a receiving start time of the wireless signal, as shown in fig. 4, fig. 4 is a schematic diagram of level signal composition of the first information and the second information, the first information can be used for representing data 0, and the second information can be used for representing data 1.
As shown in table 1 below, table 1 provides reference data of a duration value of each type of signal information corresponding to a level signal of the NEC protocol, where a duration value of a start information corresponding to a low level signal is 9ms, a duration value of a start information corresponding to a high level signal is 4.5ms, an actual measurement time range of a low level signal corresponding to the start information may be 10.2ms to 11.4ms, an actual measurement time range of a high level signal corresponding to the start information may be 5.1ms to 5.7ms, a duration value of a low level signal corresponding to data 0 is 560us, a duration value of a high level signal corresponding to data 0 is 560us, an actual measurement time range of a low level signal corresponding to data 0 may be 630 us to 709us, a duration value of a high level signal corresponding to data 0 may be 560us to 709us, a duration value of a low level signal corresponding to data 1 may be 90us to 560us, an actual measurement time range of a low level signal corresponding to data 1 may be 16us to 706 us, and an actual measurement time range of a high level signal corresponding to data 1 may not be defined as 2145 us to 560 us.
Table 1 duration value reference data table
Therefore, by determining whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the corresponding preset duration ratio type, the type of each signal information can be determined more quickly and accurately, and the more detailed the duration values of each level signal and the ratio data thereof are provided, the more favorable is the improvement of the accuracy and the efficiency of wireless signal decoding.
103. And taking at least one piece of signal information as target signal information, acquiring a first numerical range corresponding to the duration value of each type of level signal in each piece of target signal information, and performing error correction on the first numerical range to obtain a corrected second numerical range.
In an embodiment of the present invention, optionally, the second range of values may be used to determine whether the subsequently received signal is an invalid signal.
In the embodiment of the present invention, performing error correction on the first numerical range to obtain a corrected second numerical range may include:
and judging whether the average value of the duration time values of each type of level signals in each type of target signal information is equal to a corresponding preset duration time threshold value.
When judging that at least one average value is not equal to the corresponding preset duration threshold value, expanding the jitter positive error value by a preset multiple(e.g., when the corresponding average value is 1.5 times the corresponding threshold value of the preset duration, the jitter-correction-error value is enlarged by 2 times), and the minimum value of the first numerical range is reduced to be the minimum value according to the average value and the enlarged jitter-correction-error valueAnd the maximum value of the first numerical range increases by +.>Preset multiple->The value of the level signal duration value can be determined according to the magnitude relation of the ratio between the average value corresponding to the level signal duration value and the corresponding preset duration threshold value.
Will beAnd->Setting the minimum value and the maximum value of the corrected second numerical range to obtain the corrected second numerical range.
Wherein, the calculation formula of the average value is expressed as:the calculation formula of the jitter positive error value is expressed as: />,/>Expressed as average>Expressed as maximum value of duration value, +.>Expressed as the minimum value of the duration value, < +.>Expressed as a jitter positive error value, the jitter positive error value is used for determining the size of an error range of the duration value of the corresponding level signal, the minimum value of the first numerical range corresponds to the minimum value of the duration value, the maximum value of the first numerical range corresponds to the maximum value of the duration value, and the jitter positive error value after expansion is +. >The calculation formula of the minimum value of the second range of values is expressed as +.>The calculation formula of the maximum value of the second range of values is expressed as +.>。
In this way, by judging whether the average value of the duration value of each level signal corresponding to each type of target signal information is equal to the corresponding preset duration threshold value, when the average value is not equal to the corresponding preset duration threshold value, the calculated jitter positive error value is expanded by a preset multiple, and the minimum value and the maximum value of the measured first numerical range of the level signal are corrected by using the expanded jitter positive error value, so that the tolerance range is dynamically corrected to adapt to the increase of the time error of the wireless signal transmission and reception caused by the aging problem of the transmitting equipment, thereby being beneficial to improving the accuracy and the efficiency of wireless signal decoding.
In an alternative embodiment, after performing step 102, the method may further comprise the operations of:
and calculating the average value and the jitter positive error value of the duration time value of each type of level signal in each type of target signal information according to the minimum value and the maximum value of the first numerical range.
Wherein, the calculation formula of the average value is expressed as:the calculation formula of the jitter positive error value is expressed as: / >,/>Expressed as average>Represented as a jitter positive error value.
In this alternative embodiment, optionally, the method may further comprise the operations of:
and calculating a jitter negative error value of the duration value of each level signal corresponding to each type of target signal information according to the minimum value and the maximum value of the first numerical range.
Wherein, the calculation formula of the jitter negative error value is expressed as:。
therefore, the average value and the jitter positive error value of the duration value of each level signal corresponding to each type of target signal information are calculated, so that the minimum value and the maximum value of the measured first numerical range of the level signal are corrected by using the average value and the amplified jitter positive error value, and the tolerance range can be dynamically corrected to adapt to the time error increase of wireless signal transmission and reception caused by the aging problem of the transmitting equipment, thereby being beneficial to improving the accuracy and the efficiency of wireless signal decoding.
In another alternative embodiment, after performing step 103, the method may further comprise the operations of:
and when receiving the second wireless signal which is sent again by the sending equipment, analyzing the second wireless signal to obtain at least one piece of secondary signal information.
Judging whether the duration value of each type of level signal in each secondary signal information exceeds a second value range;
and when the duration value of each type of level signal in the at least one secondary signal information exceeds the range of the values, determining the second wireless signal as an invalid wireless signal.
In this alternative embodiment, optionally, the method may further include the following operations:
when the second wireless signal is determined to be an invalid wireless signal, a reminding message is generated to prompt the user that the wireless signal transmitted by the remote control transmitting equipment is the invalid signal, so as to remind the user to reset and correct the remote control transmitting equipment or charge or replace the power supply of the remote control transmitting equipment, wherein the reminding message can be displayed to the user in the form of characters, graphics and the like through a display module of the receiving equipment or can be transmitted to the user in the form of voice through a sound output module of the receiving equipment.
Therefore, in the optional embodiment, when the wireless signal sent by the sending device is received again after correction, whether the duration value of the level signal corresponding to the signal information in the wireless signal exceeds the corrected second value range can be judged, and when the duration value exceeds the corrected second value range, the wireless signal is determined to be an invalid signal, so that the probability of receiving the error signal by mistake is reduced, and the accuracy and the efficiency of decoding the wireless signal are improved.
In yet another alternative embodiment, after performing step 103, the method may further comprise the operations of:
and when receiving the second wireless signal which is sent again by the sending equipment, analyzing the second wireless signal to obtain at least one piece of secondary signal information.
And judging whether the ratio between the duration values of the two types of level signals in the initial first secondary signal information is equal to a first preset duration ratio or not.
And when judging that the ratio between the duration values of the two types of level signals in the initial first secondary signal information is not equal to the first preset duration ratio, determining that the second wireless signal is an invalid wireless signal.
Therefore, in the optional embodiment, when the wireless signal sent by the sending device is received again after correction, whether the duration value of the level signal corresponding to the initial signal information in the wireless signal exceeds the first preset duration ratio can be judged, and when the duration value exceeds the first preset duration ratio, the wireless signal is determined to be an invalid signal, so that the probability of receiving the error signal by mistake is reduced, and the accuracy and the efficiency of decoding the wireless signal are improved.
As can be seen, implementing the method described in fig. 1 can parse the wireless signal to obtain at least one signal information when receiving the wireless signal sent from the sending device, where each signal information includes two types of level signals and duration values of the level signals, and determine whether a ratio between the duration values of the level signals corresponding to each signal information is equal to a preset duration ratio, so that the type of the signal information is effectively determined by the effective duration ratio, thereby being beneficial to improving the fault tolerance and the efficiency of decoding the wireless signal; when judging that the ratio between the duration values of the level signals corresponding to the target signal information is equal to the preset duration ratio, acquiring a first numerical range corresponding to the duration values of all the level signals corresponding to the target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, and determining whether the duration of the subsequently received signal information deviates according to the second numerical range, thereby reducing the probability of receiving error signals by mistake and further being beneficial to improving the accuracy and efficiency of wireless signal decoding
Example two
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for decoding a wireless signal according to an embodiment of the present invention. The decoding method of the wireless signal described in fig. 5 may be applied to a decoding device of the wireless signal, where the device may be applied to an intelligent home appliance having a remote control function in an intelligent home network (for example, an intelligent television, an intelligent air conditioner, an intelligent refrigerator, an intelligent electric fan, an intelligent lamp, etc.), or may be applied to other devices that need to have a wireless remote control function (for example, an unmanned aerial vehicle, a vehicle, etc.), and the embodiment of the invention is not limited. As shown in fig. 5, the decoding method of the wireless signal may include the following operations:
201. when a wireless signal transmitted from a transmitting device is received, the wireless signal is parsed to obtain at least one signal information and a residual power value of the transmitting device.
202. Whether the remaining electric quantity value in the wireless signal is smaller than or equal to the preset electric quantity threshold value is judged, and when the remaining electric quantity value in the wireless signal is smaller than or equal to the preset electric quantity threshold value is judged, step 203 can be executed.
In the embodiment of the present invention, optionally, step 204 may be executed when the remaining power value in the wireless signal is determined to be greater than the preset power threshold.
203. Amplifying the duration value of the level signal corresponding to each signal information according to the amplification multiple corresponding to the preset electric quantity threshold (for example, amplifying the duration value of the level signal corresponding to each signal information by 2 times when judging that the residual electric quantity value in the wireless signal is less than or equal to 50%) to obtain the amplified duration value of the level signal corresponding to each signal information.
204. Determining whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the preset duration ratio, and executing step 205 when it is determined that the ratio between the duration values of the level signals corresponding to at least one target signal information is equal to the preset duration ratio.
In the embodiment of the present invention, optionally, when it is determined that the ratio between the duration values of the level signals corresponding to the at least one target signal information is not equal to the preset duration ratio, the method further includes the following operations:
the signal information is determined to be invalid signal information and step 101 is re-performed.
205. And acquiring a first numerical range corresponding to the duration value of the level signal corresponding to all the target signal information, and performing error correction on the first numerical range to obtain a corrected second numerical range.
In the embodiment of the present invention, for the description of steps 201, 204-205, please refer to the detailed description of steps 101-103 and the optional embodiment in the first embodiment, and the description of the embodiment of the present invention is omitted.
It can be seen that, in the embodiment of the present invention, while correcting the timing error of the level signal by using the actual duration value of the corresponding level signal in each signal information, the tolerance range to be enlarged for the duration value of the corresponding level signal is determined according to the remaining power information in the wireless signal sent by the sending device, and when the remaining power value is determined to be greater than the preset power threshold, the duration value range is enlarged according to the preset expansion multiple, so as to dynamically adapt to the increase of the time error sent by the sending device due to the insufficient power, thereby further being beneficial to improving the accuracy and efficiency of wireless signal decoding.
As can be seen, implementing the method described in fig. 5 can parse the wireless signal to obtain at least one signal information when receiving the wireless signal sent from the sending device, where each signal information includes two types of level signals and duration values of the level signals, and determine whether a ratio between the duration values of the level signals corresponding to each signal information is equal to a preset duration ratio, so that the type of the signal information is effectively determined by the effective duration ratio, thereby being beneficial to improving the fault tolerance and the efficiency of decoding the wireless signal; when judging that the ratio between the duration values of the level signals corresponding to the target signal information is equal to the preset duration ratio, acquiring a first numerical range corresponding to the duration values of the level signals corresponding to all the target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, and determining whether the duration of the subsequently received signal information deviates or not according to the second numerical range, thereby reducing the probability of receiving error signals by mistake; the method also can be used for correcting the timing error of the level signal by utilizing the actual duration value of the corresponding level signal in each signal information, and simultaneously determining the tolerance range to be expanded for the duration value of the corresponding level signal according to the residual electric quantity information in the wireless signal transmitted by the transmitting equipment, and when the residual electric quantity value is judged to be larger than the preset electric quantity threshold value, expanding the duration value range according to the preset expansion multiple so as to dynamically adapt to the time error increase of the wireless signal transmission caused by the insufficient electric quantity of the transmitting equipment, thereby being further beneficial to improving the accuracy and efficiency of wireless signal decoding.
Example III
Referring to fig. 6, fig. 6 is a schematic structural diagram of a decoding device for wireless signals according to an embodiment of the invention. The method for decoding the wireless signal described in fig. 6 may be applied to an intelligent home appliance (for example, an intelligent television, an intelligent air conditioner, an intelligent refrigerator, an intelligent electric fan, an intelligent lamp, etc.) with a remote control function in an intelligent home network, or may be applied to other carriers (for example, an unmanned aerial vehicle, a vehicle, etc.) with a wireless remote control function. As shown in fig. 6, the apparatus may include: the device comprises an analysis module 301, a judgment module 302, an acquisition module 303 and a correction module 304, wherein:
the parsing module 301 is configured to parse, when receiving a wireless signal sent by a sending device, the wireless signal to obtain at least one signal information, where each signal information includes two types of level signals and a duration value of the level signals.
The judging module 302 is configured to judge whether a ratio between duration values of two types of level signals in each signal information obtained by the parsing module 301 is equal to a preset duration ratio.
An obtaining module 303, configured to, when the judging module 302 judges that the ratio between the duration values of the two types of level signals in the at least one signal information is equal to the preset duration ratio, obtain a first numerical range of the duration value of the level signal of each type in each target signal information by using the at least one signal information as the target signal information.
The correction module 304 is configured to perform error correction on the first numerical range acquired by the acquisition module 303, to obtain a corrected second numerical range, where the second numerical range is used to determine whether the subsequently received signal is an invalid signal.
As can be seen, when the decoding device for implementing the wireless signal described in fig. 6 receives the wireless signal sent by the sending device, the wireless signal is parsed to obtain at least one signal information, each signal information includes two types of level signals and duration values of the level signals, and whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the preset duration ratio is determined, so that the type of the signal information is effectively determined by the effective duration ratio, thereby being beneficial to improving the fault tolerance and efficiency of wireless signal decoding; when judging that the ratio between the duration values of the level signals corresponding to the target signal information is equal to the preset duration ratio, acquiring a first numerical range corresponding to the duration values of the level signals corresponding to all the target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, and determining whether the duration of the subsequently received signal information deviates according to the second numerical range, thereby reducing the probability of receiving error signals by mistake and further being beneficial to improving the accuracy and efficiency of wireless signal decoding.
In an alternative embodiment, the wireless signal is represented as a binary signal modulated by the transmitting device, and the modulated binary signal is represented as a signal obtained by transforming a square wave signal and a carrier signal through a preset algorithm.
Types of level signals include: the ratio between the duration values of the low-level signal and the high-level signal corresponding to the signal information is expressed as the ratio between the duration value of the low-level signal and the duration value of the high-level signal in the signal information, and the preset duration ratio comprises: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio.
In another alternative embodiment, as shown in fig. 6, the specific manner of determining whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the preset duration ratio by the determining module 302 is:
and judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to a first preset duration ratio or not.
When it is judged that the ratio between the duration values of the two types of level signals in the at least one target signal information is equal to the first preset duration ratio, at least one signal information is used as starting information, and the rest signal information except the starting information is used as first screening signal information.
And judging whether the ratio between the duration values of the two types of level signals in each piece of first screening signal information is equal to a second preset duration ratio or not.
When judging that the ratio between the duration values of the two types of level signals in the at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information.
And judging whether the ratio between the duration values of the level signals corresponding to each piece of second screening signal information is equal to a third preset duration ratio.
And when judging that the ratio between the duration time values of the two types of level signals in the at least one second screening signal information is equal to the third preset duration time ratio, taking the at least one second screening signal information as second information.
The start information is represented as a data frame head of the wireless signal, the start information is used for identifying the wireless signal and determining the receiving start time of the wireless signal, the first information is used for representing data 0, the second information is used for representing data 1, and all target signal information comprises the start information, the first information and the second information.
It can be seen that, the decoding device for implementing the wireless signal described in fig. 6 can determine the type of each signal information more quickly and accurately by determining whether the ratio between the duration values of the level signals corresponding to each signal information is equal to the corresponding preset duration ratio type, and the more detailed the duration values of each level signal and the ratio data thereof, the more favorable is for improving the accuracy and efficiency of wireless signal decoding.
In yet another alternative embodiment, as shown in fig. 7, the apparatus further comprises:
the calculating module 305 is configured to calculate, after the acquiring module 303 acquires the first numerical range corresponding to the duration value of each type of the level signal in each piece of target signal information, an average value and a jitter positive error value of the duration value of each type of the level signal in each piece of target signal information according to the minimum value and the maximum value of the first numerical range acquired by the acquiring module 303.
Wherein, the calculation formula of the average value is expressed as:the calculation formula of the jitter positive error value is expressed as: />,/>Expressed as average>Expressed as maximum value of duration value, +.>Expressed as the minimum value of the duration value, < +. >Expressed as a jitter positive error value, the minimum value of the first range of values corresponds to the minimum value of the duration value, and the maximum value of the first range of values corresponds to the maximum value of the duration value.
As can be seen, the decoding apparatus for implementing the wireless signal described in fig. 7 can calculate the average value and the jitter positive error value of the duration value of each level signal corresponding to each type of target signal information, so as to correct the minimum value and the maximum value of the measured first numerical range of the level signal by using the average value and the amplified jitter positive error value, and can dynamically correct the tolerance range to adapt to the increase of the time error of the transmission and the reception of the wireless signal caused by the aging problem of the transmitting device, thereby being beneficial to improving the accuracy and the efficiency of decoding the wireless signal.
In yet another alternative embodiment, as shown in fig. 7, the correction module 304 performs error correction on the first numerical range to obtain the corrected second numerical range in the following specific manner:
and judging whether the average value of the duration time values of each type of level signal in each piece of target signal information is equal to a corresponding preset duration time threshold value.
When judging that at least one average value is not equal to the corresponding preset duration threshold value, expanding the jitter positive error value by a preset multiple The minimum value of the first numerical range is reduced to +.>The maximum value of the first numerical range increases to。
Will beAnd->Setting the minimum value and the maximum value of the corrected second numerical range to obtain the corrected second numerical range.
Wherein the jitter positive error value after expansion isThe calculation formula of the minimum value of the second range of values is expressed as +.>The calculation formula of the maximum value of the second numerical range is expressed as。
As can be seen, the decoding device for implementing the wireless signal described in fig. 7 can determine whether the average value of the duration value of each level signal corresponding to each type of target signal information is equal to the corresponding preset duration threshold value, when the average value is not equal to the corresponding preset duration threshold value, the jitter positive error value is calculated to be enlarged by a preset multiple, and the minimum value and the maximum value of the measured first numerical range of the level signal are corrected by using the enlarged jitter positive error value, so as to dynamically correct the tolerance range to adapt to the increase of the time error of the wireless signal transmission and reception caused by the aging problem of the transmitting device, thereby being beneficial to improving the accuracy and the efficiency of wireless signal decoding.
In yet another alternative embodiment, as shown in FIG. 7, the apparatus further comprises a determination module 306.
As an optional implementation manner, the parsing module 301 is further configured to parse the second wireless signal to obtain at least one secondary signal information when receiving the second wireless signal sent again from the sending device.
The judging module 302 is further configured to judge whether the duration value of each type of the level signal in each secondary signal information obtained by the parsing module 301 exceeds the second range of values.
A determining module 306, configured to determine that the second wireless signal is an invalid wireless signal when the determining module 302 determines that there is at least one target secondary signal information and the duration value of the level signal of each type is beyond the second range of values.
Therefore, according to the alternative embodiment, when the wireless signal sent by the sending device is received again after correction, whether the duration value of the level signal corresponding to the signal information in the wireless signal exceeds the corrected second value range is judged, and when the duration value exceeds the corrected second value range, the wireless signal is determined to be an invalid signal, so that the probability of receiving the error signal by mistake is reduced, and the accuracy and the efficiency of decoding the wireless signal are improved.
As another optional implementation manner, the parsing module 301 is further configured to parse the second wireless signal to obtain at least one secondary signal information when receiving the second wireless signal sent again from the sending device.
The judging module 302 is further configured to judge whether a ratio between duration values of two types of level signals in the initial first secondary signal information obtained by the analyzing module 301 is equal to a first preset duration ratio.
The determining module 306 is configured to determine that the second wireless signal is an invalid wireless signal when the determining module 302 determines that the ratio between the duration values of the two types of level signals in the initial first secondary signal information is not equal to the first preset duration ratio.
As can be seen, in this optional embodiment, when the radio signal sent by the sending device is received again after correction, by determining whether the duration value of the level signal corresponding to the start signal information in the radio signal exceeds the first preset duration ratio, when it is determined that the level signal exceeds the first preset duration ratio, it is determined that the radio signal is an invalid signal, so that the probability of receiving an error signal by mistake is reduced, thereby being beneficial to improving the accuracy and efficiency of decoding the radio signal.
Example IV
Referring to fig. 8, fig. 8 is a schematic diagram illustrating a decoding apparatus for wireless signals according to another embodiment of the present invention. As shown in fig. 8, the decoding apparatus of a wireless signal may include:
a memory 401 storing executable program codes;
A processor 402 coupled with the memory 401;
the processor 402 invokes executable program codes stored in the memory 401 to perform the steps in the decoding method of the wireless signal described in the first or second embodiment of the present invention.
Example five
The embodiment of the invention discloses a computer storage medium, which stores computer instructions for executing steps in the wireless signal decoding method described in the first or second embodiment of the invention when the computer instructions are called.
Example six
An embodiment of the present invention discloses a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the method for decoding a wireless signal described in the first or second embodiment.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the disclosure of the method and apparatus for decoding a wireless signal in the embodiments of the present invention is only a preferred embodiment of the present invention, and is only for illustrating the technical scheme of the present invention, but not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.
Claims (9)
1. A method of decoding a wireless signal, the method comprising:
when a wireless signal sent by a sending device is received, analyzing the wireless signal to obtain at least one piece of signal information, wherein each piece of signal information comprises two types of level signals and duration values of the level signals;
judging whether the ratio between the duration values of two types of level signals in each signal information is equal to a preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one signal information is equal to the preset duration ratio, taking the at least one signal information as target signal information, acquiring a first numerical range corresponding to the duration value of each type of level signal in each target signal information, performing error correction on the first numerical range to obtain a corrected second numerical range, wherein the second numerical range is used for determining whether the subsequently received signal is an invalid signal or not;
Wherein the types of the level signals include: the ratio between the duration values of the two types of level signals in the signal information is expressed as the ratio between the duration value of the low level signal and the duration value of the high level signal in the signal information, and the preset duration ratio comprises: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio;
the step of judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to a preset duration ratio or not comprises the following steps:
judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to the first preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one signal information is equal to the first preset duration ratio, taking the at least one signal information as initial information and taking the rest signal information except the initial information as first screening signal information;
judging whether the ratio between the duration values of the two types of level signals in each piece of first screening signal information is equal to the second preset duration ratio or not;
When judging that the ratio between the duration values of two types of level signals in at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information;
judging whether the ratio between the duration values of the two types of level signals in each piece of second screening signal information is equal to the third preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one second screening signal information is equal to the third preset duration ratio, taking the at least one second screening signal information as second information;
the start information is represented as a data frame header of the wireless signal, and is used for identifying the wireless signal and determining a receiving start time of the wireless signal, and all the target signal information comprises the start information, the first information and the second information.
2. The method according to claim 1, wherein the wireless signal is represented as a binary signal modulated by the transmitting device, and the modulated binary signal is represented as a signal obtained by transforming a square wave signal and a carrier signal through a preset algorithm.
3. The method for decoding a wireless signal according to any one of claims 1 to 2, wherein after said obtaining a first numerical range corresponding to a duration value of each type of level signal in each of said target signal information, said method further comprises:
calculating an average value and a jitter positive error value of the duration time value of each type of level signal in each piece of target signal information according to the minimum value and the maximum value of the first numerical range;
wherein, the calculation formula of the average value is expressed as: t (T) AVG =(T MAX +T MIN ) And/2, the calculation formula of the jitter positive error value is expressed as follows: e (E) P =T MAX -T MIN The T is AVG Expressed as the average value, T MAX Expressed as the most significant of the duration valuesLarge value, T MIN Expressed as the minimum value of the duration value, E P And representing as the jitter positive error value, the minimum value of the first numerical range corresponds to the minimum value of the duration value, and the maximum value of the first numerical range corresponds to the maximum value of the duration value.
4. A method of decoding a wireless signal according to claim 3, wherein said error correcting said first range of values to obtain a corrected second range of values comprises:
Judging whether the average value of the duration values of each type of level signal in each piece of target signal information is equal to a corresponding preset duration threshold value or not;
when judging that at least one average value is not equal to the corresponding preset duration threshold value, expanding the jitter positive error value by a preset multiple a, and reducing the minimum value of the first numerical range to T' MIN The maximum value of the first numerical range increases to T' MAX ;
The T' MIN With said T' MAX Setting the minimum value and the maximum value of the corrected second numerical range to obtain the corrected second numerical range;
wherein the jitter positive error value after expansion is E' p =a·E P The calculation formula of the minimum value of the second numerical range is expressed as T' MIN =T AVG -a(E P 2) the calculation formula of the maximum value of the second range of values is expressed as T' MAX =T AVG +a(E P /2)。
5. The method for decoding a wireless signal according to claim 1 or 4, characterized in that the method further comprises:
when a second wireless signal sent again by the sending equipment is received, analyzing the second wireless signal to obtain at least one secondary signal information;
judging whether the duration value of each type of level signal in each secondary signal information exceeds the second value range;
And when judging that the duration value of each type of level signal in the at least one secondary signal information exceeds the second numerical range, determining the second wireless signal as an invalid wireless signal.
6. The method of decoding a wireless signal according to claim 2, further comprising:
when a second wireless signal sent again by the sending equipment is received, analyzing the second wireless signal to obtain at least one secondary signal information;
judging whether the ratio between the duration values of two types of level signals in the initial first secondary signal information is equal to the first preset duration ratio or not;
and when judging that the ratio between the duration values of the two types of level signals in the initial first secondary signal information is not equal to the first preset duration ratio, determining that the second wireless signal is an invalid wireless signal.
7. A decoding device for a wireless signal, the device comprising:
the analysis module is used for analyzing the wireless signals to obtain at least one signal information when the wireless signals sent by the sending equipment are received, wherein each signal information comprises two types of level signals and duration time values of the level signals;
The judging module is used for judging whether the ratio between the duration time values of the two types of level signals in each piece of signal information obtained through analysis by the analyzing module is equal to a preset duration time ratio;
the acquisition module is used for taking at least one piece of signal information as target signal information when the judgment module judges that the ratio between the duration time values of two types of level signals in the at least one piece of signal information is equal to the preset duration time ratio, and acquiring a first numerical range of the duration time value of each type of level signal in each piece of target signal information;
the correction module is used for carrying out error correction on the first numerical range acquired by the acquisition module to obtain a corrected second numerical range, and the second numerical range is used for determining whether a subsequently received signal is an invalid signal or not;
wherein the types of the level signals include: the ratio between the duration values of the two types of level signals in the signal information is expressed as the ratio between the duration value of the low level signal and the duration value of the high level signal in the signal information, and the preset duration ratio comprises: the first preset duration ratio, the second preset duration ratio and the third preset duration ratio;
The specific mode of judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to the preset duration ratio by the judging module is as follows:
judging whether the ratio between the duration values of the two types of level signals in each signal information is equal to the first preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one signal information is equal to the first preset duration ratio, taking the at least one signal information as initial information and taking the rest signal information except the initial information as first screening signal information;
judging whether the ratio between the duration values of the two types of level signals in each piece of first screening signal information is equal to the second preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one first screening signal information is equal to the second preset duration ratio, taking the at least one first screening signal information as first information and taking the rest first screening signal information except the first information as second screening signal information;
Judging whether the ratio between the duration values of the two types of level signals in each piece of second screening signal information is equal to the third preset duration ratio or not;
when judging that the ratio between the duration values of two types of level signals in at least one second screening signal information is equal to the third preset duration ratio, taking the at least one second screening signal information as second information;
the start information is represented as a data frame header of the wireless signal, and is used for identifying the wireless signal and determining a receiving start time of the wireless signal, and all the target signal information comprises the start information, the first information and the second information.
8. A decoding device for a wireless signal, the device comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the method of decoding a wireless signal as claimed in any one of claims 1 to 6.
9. A computer storage medium storing computer instructions which, when invoked, are adapted to perform the method of decoding a wireless signal according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311274775.3A CN117014106B (en) | 2023-09-28 | 2023-09-28 | Wireless signal decoding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311274775.3A CN117014106B (en) | 2023-09-28 | 2023-09-28 | Wireless signal decoding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117014106A CN117014106A (en) | 2023-11-07 |
CN117014106B true CN117014106B (en) | 2024-04-05 |
Family
ID=88562170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311274775.3A Active CN117014106B (en) | 2023-09-28 | 2023-09-28 | Wireless signal decoding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117014106B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640540A (en) * | 2008-07-30 | 2010-02-03 | 鸿富锦精密工业(深圳)有限公司 | Digital signal decoding method |
CN105450299A (en) * | 2014-09-05 | 2016-03-30 | 深圳光启智能光子技术有限公司 | Method, device and system for coding and decoding signal |
CN111402570A (en) * | 2020-02-11 | 2020-07-10 | 广州创知科技有限公司 | Infrared remote control signal receiving method, receiving system, receiving device and storage medium |
CN113706851A (en) * | 2021-08-13 | 2021-11-26 | 珠海格力智能装备有限公司 | Remote controller infrared signal decoding method and device and remote controller |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3547577B1 (en) * | 2016-11-24 | 2022-03-02 | Tendyron Corporation | Data transmission method and terminal |
-
2023
- 2023-09-28 CN CN202311274775.3A patent/CN117014106B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640540A (en) * | 2008-07-30 | 2010-02-03 | 鸿富锦精密工业(深圳)有限公司 | Digital signal decoding method |
CN105450299A (en) * | 2014-09-05 | 2016-03-30 | 深圳光启智能光子技术有限公司 | Method, device and system for coding and decoding signal |
CN111402570A (en) * | 2020-02-11 | 2020-07-10 | 广州创知科技有限公司 | Infrared remote control signal receiving method, receiving system, receiving device and storage medium |
CN113706851A (en) * | 2021-08-13 | 2021-11-26 | 珠海格力智能装备有限公司 | Remote controller infrared signal decoding method and device and remote controller |
Also Published As
Publication number | Publication date |
---|---|
CN117014106A (en) | 2023-11-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8457112B2 (en) | Radio link performance prediction in wireless communication terminal | |
RU2604422C1 (en) | Method and apparatus for transmitting infrared signal and remote control panel | |
JP4741659B2 (en) | Transmission apparatus, transmission method, system LSI, and program | |
US20080144628A1 (en) | Communication device and method | |
US9154242B2 (en) | Communication device and communication method | |
CN106920384A (en) | The method and apparatus that intelligent electronic device is adapted to remote control | |
CN117014106B (en) | Wireless signal decoding method and device | |
CN111768609A (en) | Infrared signal processing method and device | |
US12047183B2 (en) | Methods for processing and indicating HARQ mechanism, terminal and network side device | |
US20230071506A1 (en) | Method for signal detection, electronic device, and storage medium | |
US8583074B2 (en) | Wireless security messaging model | |
JP2014027420A (en) | Communication device, and transmission power control method | |
US8873420B2 (en) | Detecting extended acquisition indicators | |
US9257125B2 (en) | Audio frame timing correction method and wireless device | |
JP2002232388A (en) | Ofdm signal monitoring apparatus and ofdm repeating transmitter | |
US10757001B2 (en) | Methods for dynamic sensitivity control in wireless networks | |
CN213302791U (en) | Intelligent household appliance system with voice control function | |
US8553674B2 (en) | Method for wireless data transmission | |
CN113796050B (en) | Gateway selection method | |
CN110533897B (en) | Socket-based coffee roasting communication method | |
CN115484003A (en) | Data retransmission method, NAV value control method, electronic device, and storage medium | |
EP2111693B1 (en) | Limiting the power consumption of a wireless electronic system | |
KR101717229B1 (en) | Broadcasting method and apparatus in wireless energy harvesting networks | |
RU2736550C1 (en) | Polar code coding and decoding device and method | |
CN112637786B (en) | Radio transmission apparatus and radio transmission method |
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 |