CN113744516B - Remote controller infrared learning method and device, remote controller and storage medium - Google Patents

Remote controller infrared learning method and device, remote controller and storage medium Download PDF

Info

Publication number
CN113744516B
CN113744516B CN202111062901.XA CN202111062901A CN113744516B CN 113744516 B CN113744516 B CN 113744516B CN 202111062901 A CN202111062901 A CN 202111062901A CN 113744516 B CN113744516 B CN 113744516B
Authority
CN
China
Prior art keywords
infrared
pulse period
carrier frequency
pulse
period sequence
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
CN202111062901.XA
Other languages
Chinese (zh)
Other versions
CN113744516A (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.)
Guangdong Chaoge Smart Internet Technology Co ltd
Original Assignee
Guangdong Chaoge Smart Internet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Chaoge Smart Internet Technology Co ltd filed Critical Guangdong Chaoge Smart Internet Technology Co ltd
Priority to CN202111062901.XA priority Critical patent/CN113744516B/en
Publication of CN113744516A publication Critical patent/CN113744516A/en
Application granted granted Critical
Publication of CN113744516B publication Critical patent/CN113744516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Details Of Television Systems (AREA)

Abstract

The embodiment of the invention discloses a remote controller infrared learning method, a remote controller infrared learning device, a remote controller and a storage medium, wherein the remote controller infrared learning method is characterized in that the remote controller infrared learning device is used for processing a pulse periodic sequence according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches a preset requirement, and then calculating the carrier frequency of an infrared signal, so that the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem of low accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process caused by external interference is solved, and the infrared learning capacity of the remote controller is improved; the dynamic threshold method is adopted, namely, the overtime time threshold is set to be a dynamic value, the value is changed along with the change of the carrier frequency of the infrared signal to be detected, the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capacity of the remote controller is improved.

Description

Remote controller infrared learning method and device, remote controller and storage medium
Technical Field
The embodiment of the invention relates to the field of wireless communication, in particular to a remote controller infrared learning method and device, a remote controller and a storage medium.
Background
Since irda1.0 specification was published in 1994, infrared communication technology has been developed and matured for decades, and is widely used in the exchange of data between small mobile devices and the control of electrical devices, such as notebook computers, mobile phones or the exchange of data with computers, remote control of televisions, air conditioners, etc. Particularly infrared remote controls for home televisions and set-top boxes, are well known. With the advent of set-top boxes, infrared learning technology began to be applied in a large number on set-top box remote controllers for duplicating the infrared key values of television remote controllers, so as to realize the function that one remote controller can operate two devices (television and set-top box).
Taking a set top box remote controller as an example, the infrared learning function on the set top box remote controller is generally used in the following manner: the signal transmitting end of the infrared remote controller of the television is aligned to the signal receiving end of the set top box remote controller, when the set top box remote controller enters an infrared learning mode, the television remote controller presses a target key to transmit an infrared key value, and then the set top box remote controller receives the infrared signal and copies the infrared signal to be used. However, the above remote controller infrared learning scheme has the following drawbacks: 1. because the infrared communication technology has lower anti-interference capability, external interference is easy to receive in the infrared learning process, and particularly under strong light (such as under a fluorescent lamp, a balcony or window edge where sunlight irradiates, and the like), the probability of infrared learning failure is greatly increased; 2. when the carrier signal is identified, the set timeout time threshold is a fixed experience value (t 1 is temporarily set here), so that the method can only learn the infrared signal with the carrier frequency being greater than 1/t1 Hz, and the infrared signal carrier frequency range for learning in the infrared learning process is smaller and has large limitation.
The above problems are to be solved.
Disclosure of Invention
In order to solve the related technical problems, the invention provides a remote controller infrared learning method, a remote controller infrared learning device, a remote controller and a storage medium, which are used for solving the problems mentioned in the background art section.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides an infrared learning method for a remote controller, including the following steps:
s101, receiving an infrared pulse signal, calculating a pulse signal period, and filling a pulse period sequence;
s102, judging whether the pulse period sequence is filled completely, and if so, executing step S103;
s103, processing the pulse periodic sequence according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches a preset requirement;
s104, calculating the carrier frequency of the infrared signal according to the pulse period sequence after the processing in the step S103 is completed;
s105, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and using the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
Further, the step S102 includes: when the time of detecting the pulse signal at the current distance is greater than the set timeout threshold T, it is determined that the current carrier signal is finished, at this time, it is determined whether the pulse period sequence is completely filled, if not, the next carrier signal is continuously waited until the pulse period sequence is completely filled, and if so, step S103 is executed.
Further, the step S103 specifically includes: and (3) obtaining standard deviation of the pulse period sequence, calculating the discrete degree of the data, and if the discrete degree is larger than the set requirement, eliminating the data with large discrete degree in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement.
Further, the step S104 specifically includes: and calculating the average value of the pulse period sequence after the processing in the step S103, and calculating the carrier frequency of the infrared signal according to the average value.
Further, the step S101 further includes: set T min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min Corresponding relation of (3).
Further, in the step S101, timeout thresholds T and T are set min Specifically, the corresponding relation of (a) includes: setting the timeout threshold T to M times T min Wherein M is a positive integer.
In a second aspect, an embodiment of the present invention further provides an infrared learning device for a remote controller, including:
the pulse period calculating unit is used for receiving the infrared pulse signals, calculating the pulse signal period and filling a pulse period sequence;
the pulse period sequence filling judging unit is used for judging whether the pulse period sequence is filled or not, and if so, the pulse period sequence processing unit acts;
the pulse period sequence processing unit is used for processing the pulse period sequence according to the discrete degree of the pulse period sequence until the discrete degree of the pulse period sequence reaches a preset requirement;
the carrier frequency calculation unit is used for calculating the carrier frequency of the infrared signal according to the pulse period sequence processed by the pulse period sequence processing unit;
and the learning result storage unit is used for storing the carrier frequency and the key value of the infrared signal to corresponding positions and used as the carrier frequency modulated when the learning key emits infrared rays.
Further, the remote controller infrared learning device further comprises:
a timeout threshold dynamic setting unit for setting T for storing the minimum pulse signal period min Variable, and set timeout thresholds T and T min Corresponding relation of (3).
In a third aspect, an embodiment of the present invention further provides a remote controller, where the remote controller includes the remote controller infrared learning device described above.
In a fourth aspect, an embodiment of the present invention further provides a storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the remote control infrared learning method described above.
Compared with the prior art, on the one hand, in the technical scheme of the embodiment of the invention, the pulse periodic sequence is processed according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches the preset requirement, and then the carrier frequency of the infrared signal is calculated, so that the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem of low accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process due to external interference is solved, and the infrared learning capacity of the remote controller is improved; on the other hand, the technical scheme of the embodiment of the invention adopts a dynamic threshold method, namely, the overtime time threshold is set to be a dynamic value, the value is changed along with the change of the carrier frequency of the infrared signal to be detected, the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capability of the remote controller is improved.
Drawings
For a clearer description and understanding of the technical solutions of the embodiments of the present invention, the following description will make a brief introduction to the drawings required for the description of the embodiments of the present invention, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the contents of the embodiments of the present invention and the drawings without inventive effort for those skilled in the art.
Fig. 1 is a schematic flow chart of an infrared learning method of a remote controller according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of an infrared learning method of a remote controller according to a third embodiment of the present invention;
fig. 3 is a block diagram of a remote controller infrared learning device according to a fifth embodiment of the present invention;
fig. 4 is a block diagram of a remote controller infrared learning device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved more clear, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only some embodiments of the present invention, but 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 fall within the scope of the invention.
Example 1
As shown in fig. 1, the remote controller infrared learning method in this embodiment includes the following steps:
s101, receiving an infrared pulse signal, calculating a pulse signal period, and filling a pulse period sequence.
S102, judging whether the pulse period sequence is filled, and if so, executing step S103.
S103, processing the pulse cycle sequence according to the discrete degree of the pulse cycle sequence until the discrete degree of the pulse cycle sequence reaches a preset requirement.
S104, calculating the carrier frequency of the infrared signal according to the pulse period sequence after the processing in the step S103 is completed.
S105, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and using the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
According to the technical scheme provided by the embodiment of the invention, the pulse periodic sequence is processed according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches the preset requirement, and then the carrier frequency of the infrared signal is calculated, so that the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem of low accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process due to external interference is solved, and the infrared learning capability of the remote controller is improved.
Example two
The remote controller infrared learning method in the embodiment specifically comprises the following steps:
s201, receiving an infrared pulse signal, calculating a pulse signal period, and filling a pulse period sequence.
S202, judging whether the pulse period sequence is filled, and if so, executing step S203.
S203, processing the pulse cycle sequence according to the discrete degree of the pulse cycle sequence until the discrete degree of the pulse cycle sequence reaches a preset requirement.
S204, calculating the carrier frequency of the infrared signal according to the pulse period sequence after the processing in the step S203.
S205, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and taking the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
The step S201 specifically includes: the remote controller processor receives the infrared pulse signals, calculates pulse signal periods and fills the pulse period sequence.
Illustratively, the step S202 in this embodiment includes: and judging a carrier signal cut-off point, namely judging that the current carrier signal is finished when the time of detecting one pulse signal on the current distance is larger than a set timeout threshold T, judging whether the pulse period sequence is filled completely or not at the moment, if not, continuing to wait for the next carrier signal until the pulse period sequence is filled completely, and if so, executing step S203. It should be noted that, in this embodiment, the determination of whether the pulse period sequence is filled is performed by determining whether the length of the collected pulse period sequence meets the requirement.
The step S203 specifically includes: calculating the standard deviation of the pulse period sequence, and calculating the discrete degree of the data, if the discrete degree is larger than the set requirement, removing the data with large dispersion in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement; it should be noted that, the factors influencing the setting requirement are various, and the standards for judging the dispersion by different remote controllers may be different, and in this embodiment, the specific value of the setting requirement is a reasonable engineering experience value obtained according to a large number of experiments. The method for eliminating the data with large dispersion in the pulse period sequence specifically comprises the following steps: firstly, sorting the data according to the dispersion, and then removing the data from large to small according to the size of the dispersion until the discrete degree of the whole pulse period sequence meets the requirement.
The step S204 specifically includes: calculating an average value T of the pulse period sequence after the completion of the processing in the step S203 average According to the average value T average The carrier frequency F of the infrared signal is calculated,
the step S205 specifically includes: and storing the carrier frequency and the key value of the infrared signal to corresponding positions as the carrier frequency modulated when the learning key emits infrared rays, namely storing the calculated carrier frequency value of the infrared signal of the learned infrared remote controller into the corresponding value of the learning key, and when a user presses the learning key, modulating the infrared key value into the carrier signal of the frequency and emitting the carrier frequency.
In the technical scheme of the embodiment of the invention, the standard deviation is calculated on the pulse period sequence, the discrete degree of the data is calculated, if the discrete degree is larger than the set requirement, the data with large discrete degree in the pulse period sequence is removed until the discrete degree of the processed pulse period sequence is not higher than the set requirement, and then the carrier frequency of the infrared signal is calculated, so that the calculated value of the carrier frequency is closer to the true value, the accuracy of the carrier frequency calculation in the infrared learning process is improved, the problem of low accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process due to external interference is solved, and the infrared learning capability of the remote controller is improved.
Example III
As shown in fig. 2, the remote controller infrared learning method in this embodiment includes the following steps:
s301, dynamically setting a timeout time threshold value: set T min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min Corresponding relation of (3); and receiving an infrared pulse signal, calculating a pulse signal period, and filling a pulse period sequence.
S302, judging whether the pulse period sequence is filled, and if so, executing step S303.
S303, processing the pulse cycle sequence according to the discrete degree of the pulse cycle sequence until the discrete degree of the pulse cycle sequence reaches a preset requirement.
S304, calculating the carrier frequency of the infrared signal according to the pulse period sequence after the processing in the step S303 is completed.
S305, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and using the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
In the technical scheme of the embodiment of the invention, the overtime time threshold is dynamically set, and T is set min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min In this way, the overtime time threshold T becomes a dynamic value, the value changes along with the change of the carrier frequency of the infrared signal to be detected, the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capability of the remote controller is improved; meanwhile, in the technical scheme of the embodiment of the invention, the pulse periodic sequence is processed according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches the preset requirement, and then the carrier frequency of the infrared signal is calculated, so that the accuracy of carrier frequency calculation in the infrared learning process is improved, and the problem of infrared caused by external interference is solvedThe problem that the accuracy of the calculation of the infrared signal carrier frequency is not high in the external learning process is solved, and the infrared learning capacity of the remote controller is improved.
Example IV
The remote controller infrared learning method in the embodiment specifically comprises the following steps:
s401, dynamically setting a timeout time threshold: set T min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min Corresponding relation of (3); the remote controller processor receives the infrared pulse signals, calculates pulse signal periods and fills the pulse period sequence.
S402, judging whether the pulse period sequence is filled, and if so, executing step S403.
S403, processing the pulse cycle sequence according to the discrete degree of the pulse cycle sequence until the discrete degree of the pulse cycle sequence reaches a preset requirement.
S404, calculating the carrier frequency of the infrared signal according to the pulse period sequence after the processing in the step S403.
S405, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and using the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
In the present embodiment, the timeout thresholds T and T min The relationship between T and T is preferably linear, but T and T are not excluded min Other correspondences are applicable to the possibilities of the present invention. In the present embodiment, the timeout threshold T is set to M times T min Wherein M is a positive integer, which is an empirical value, and M is preferably but not limited to 3 (T=3T) in practical application as long as the M can meet the requirements and solve the problems min
Illustratively, the step S402 in this embodiment includes: judging a carrier signal cut-off point, namely judging that the current carrier signal is finished when the time of detecting one pulse signal on the current distance is larger than a set timeout threshold T, judging whether the pulse period sequence is filled completely or not at the moment, if not, continuing to wait for the next carrier signal until the pulse period sequence is filled completely, and if so, executing step S403. It should be noted that, in this embodiment, the determination of whether the pulse period sequence is filled is performed by determining whether the length of the collected pulse period sequence meets the requirement.
Illustratively, the step S403 in this embodiment specifically includes: and (3) obtaining standard deviation of the pulse period sequence, calculating the discrete degree of the data, and if the discrete degree is larger than the set requirement, eliminating the data with large discrete degree in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement. It should be noted that, the factors influencing the setting requirement are various, the standards for judging the dispersion by different remote controllers may be different, and in this embodiment, the specific value of the setting requirement is a reasonable engineering experience value obtained according to a large number of experiments; the method for eliminating the data with large dispersion in the pulse period sequence specifically comprises the following steps: firstly, sorting the data according to the dispersion, and then removing the data from large to small according to the size of the dispersion until the discrete degree of the whole pulse period sequence meets the requirement.
Illustratively, the step S404 in this embodiment specifically includes: calculating an average value T of the pulse period sequence after the completion of the processing in the step S403 average According to the average value T average The carrier frequency F of the infrared signal is calculated,
the step S405 specifically includes: and storing the carrier frequency and the key value of the infrared signal to corresponding positions as the carrier frequency modulated when the learning key emits infrared rays, namely storing the calculated carrier frequency value of the infrared signal of the learned infrared remote controller into the corresponding value of the learning key, and when a user presses the learning key, modulating the infrared key value into the carrier signal of the frequency and emitting the carrier frequency.
In the technical scheme of the embodiment of the invention, T is set min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min Corresponding relation of (a), e.gThe overtime time threshold T becomes a dynamic value, and the value is changed along with the change of the carrier frequency of the infrared signal to be detected, so that the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capacity of the remote controller is improved; meanwhile, in the technical scheme of the embodiment of the invention, the standard deviation is calculated on the pulse period sequence, the discrete degree of the data is calculated, if the discrete degree is larger than the set requirement, the data with large discrete degree in the pulse period sequence is removed until the discrete degree of the processed pulse period sequence is not higher than the set requirement, the carrier frequency of the infrared signal is calculated, the value of the calculated carrier frequency is closer to the true value, the accuracy of the carrier frequency calculation in the infrared learning process is improved, the problem that the accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process is not high due to external interference is solved, and the infrared learning capability of the remote controller is improved.
Example five
As shown in fig. 3, the remote controller infrared learning device 500 in this embodiment includes:
the pulse period calculating unit 501 is configured to receive the infrared pulse signal, calculate a pulse signal period, and fill a pulse period sequence.
Pulse cycle sequence filling determination section 502 is configured to determine whether or not the pulse cycle sequence is filled, and if so, pulse cycle sequence processing section 503 operates.
The pulse period sequence processing unit 503 is configured to process the pulse period sequence according to the degree of dispersion of the pulse period sequence until the degree of dispersion of the pulse period sequence reaches a predetermined requirement.
A carrier frequency calculating unit 504, configured to calculate a carrier frequency of the infrared signal according to the pulse period sequence after the pulse period sequence processing unit 503 processes the pulse period sequence.
A learning result storage unit 505, configured to store the carrier frequency of the infrared signal and the key value to corresponding positions, as a carrier frequency modulated when learning the key infrared emission.
Illustratively, in this embodiment, the pulse period calculating unit 501 is specifically configured to receive an infrared pulse signal through the remote controller processor, calculate a pulse signal period, and fill a pulse period sequence.
For example, in this embodiment, the pulse cycle sequence filling determining unit 502 is configured to determine that the current carrier signal is ended when the time of detecting the pulse signal at the current distance is greater than the set timeout threshold T, and determine whether the pulse cycle sequence is completely filled, if not, continue to wait for the next carrier signal until the pulse cycle sequence is completely filled, and if so, the pulse cycle sequence processing unit 503 operates. The pulse period sequence filling determining unit 502 determines whether the pulse period sequence is filled or not by determining whether the length of the collected pulse period sequence reaches the requirement.
Illustratively, the pulse-period-sequence processing unit 503 in this embodiment is specifically configured to: and (3) obtaining standard deviation of the pulse period sequence, calculating the discrete degree of the data, and if the discrete degree is larger than the set requirement, eliminating the data with large discrete degree in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement. It should be noted that, the factors influencing the setting requirement are various, the standards for judging the dispersion by different remote controllers may be different, and in this embodiment, the specific value of the setting requirement is a reasonable engineering experience value obtained according to a large number of experiments; the method for eliminating the data with large dispersion in the pulse period sequence specifically comprises the following steps: firstly, sorting the data according to the dispersion, and then removing the data from large to small according to the size of the dispersion until the discrete degree of the whole pulse period sequence meets the requirement.
The carrier frequency calculating unit 504 is specifically configured to calculate an average value T of the pulse-period sequence after the pulse-period sequence processing unit 503 has completed processing average According to the average value T average The carrier frequency F of the infrared signal is calculated,
the learning result storage unit 505 is specifically used for, for example, the present embodiment: and storing the carrier frequency and the key value of the infrared signal to corresponding positions as the carrier frequency modulated when the learning key emits infrared rays, namely storing the calculated carrier frequency value of the infrared signal of the learned infrared remote controller into the corresponding value of the learning key, and when a user presses the learning key, modulating the infrared key value into the carrier signal of the frequency and emitting the carrier frequency.
In the technical scheme of the embodiment of the invention, the remote controller infrared learning device 500 calculates the standard deviation of the pulse period sequence, calculates the discrete degree of the data, eliminates the data with large dispersion in the pulse period sequence if the discrete degree is larger than the set requirement, and calculates the carrier frequency of the infrared signal until the discrete degree of the processed pulse period sequence is not higher than the set requirement, so that the calculated value of the carrier frequency is closer to the true value, the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem of low accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process due to external interference is solved, and the infrared learning capability of the remote controller is improved.
Example six
As shown in fig. 4, the remote controller infrared learning device 600 in this embodiment specifically includes:
a timeout threshold dynamic setting unit 601 for setting T for storing the minimum pulse signal period min Variable, and set timeout thresholds T and T min Corresponding relation of (3).
The pulse period calculating unit 602 is configured to receive the infrared pulse signal, calculate a pulse signal period, and fill the pulse period sequence.
Pulse-period-sequence-filling determining section 603 determines whether or not the pulse period sequence is filled, and if so, pulse-period-sequence processing section 604 operates.
The pulse period sequence processing unit 604 is configured to process the pulse period sequence according to the degree of dispersion of the pulse period sequence until the degree of dispersion of the pulse period sequence reaches a predetermined requirement.
A carrier frequency calculating unit 605 for calculating the carrier frequency of the infrared signal according to the pulse period sequence after the pulse period sequence processing unit 604 processes the pulse period sequence.
And a learning result storage unit 606, configured to store the carrier frequency of the infrared signal and the key value to corresponding positions, as a carrier frequency modulated when learning the key infrared emission.
In the present embodiment, the timeout thresholds T and T min The relationship between T and T is preferably linear, but T and T are not excluded min Other correspondences are applicable to the possibilities of the present invention. In the present embodiment, the timeout threshold dynamic setting unit 601 sets the timeout threshold T to M times T min Wherein M is a positive integer, which is an empirical value, and M is preferably but not limited to 3 (T=3T) in practical application as long as the M can meet the requirements and solve the problems min
Illustratively, in this embodiment, the pulse period calculating unit 602 is specifically configured to receive the infrared pulse signal through the remote controller processor, calculate a pulse signal period, and fill the pulse period sequence.
For example, in this embodiment, the pulse-period-sequence-filling determining unit 603 is configured to determine that the current carrier signal is ended when the time of detecting the pulse signal at the current distance is greater than the set timeout threshold T, and determine whether the pulse period sequence is completely filled, and if not, continue to wait for the next carrier signal until the pulse period sequence is completely filled, and if so, the pulse period-sequence processing unit 604 operates. The pulse cycle sequence filling determination unit 603 determines whether the pulse cycle sequence is filled or not by determining whether the length of the collected pulse cycle sequence reaches the requirement.
Illustratively, the pulse-period-sequence processing unit 604 in this embodiment is specifically configured to: and (3) obtaining standard deviation of the pulse period sequence, calculating the discrete degree of the data, and if the discrete degree is larger than the set requirement, eliminating the data with large discrete degree in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement. It should be noted that, the factors influencing the setting requirement are various, the standards for judging the dispersion by different remote controllers may be different, and in this embodiment, the specific value of the setting requirement is a reasonable engineering experience value obtained according to a large number of experiments; the method for eliminating the data with large dispersion in the pulse period sequence specifically comprises the following steps: firstly, sorting the data according to the dispersion, and then removing the data from large to small according to the size of the dispersion until the discrete degree of the whole pulse period sequence meets the requirement.
The carrier frequency calculating unit 605 is specifically configured to calculate an average value T of the pulse period sequence after the pulse period sequence processing unit 604 processes the pulse period sequence average According to the average value T average The carrier frequency F of the infrared signal is calculated,
the learning result storage unit 606 is specifically used for example in the present embodiment: and storing the carrier frequency and the key value of the infrared signal to corresponding positions as the carrier frequency modulated when the learning key emits infrared rays, namely storing the calculated carrier frequency value of the infrared signal of the learned infrared remote controller into the corresponding value of the learning key, and when a user presses the learning key, modulating the infrared key value into the carrier signal of the frequency and emitting the carrier frequency.
In the technical solution of the embodiment of the present invention, the remote controller infrared learning device 600 is provided with T min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min In this way, the overtime time threshold T becomes a dynamic value, the value changes along with the change of the carrier frequency of the infrared signal to be detected, the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capability of the remote controller is improved; at the same time, the invention implementsIn the technical scheme, standard deviation is calculated on the pulse period sequence, the discrete degree of data is calculated, if the discrete degree is larger than the set requirement, the data with large dispersion in the pulse period sequence is removed until the discrete degree of the processed pulse period sequence is not higher than the set requirement, and then the carrier frequency of the infrared signal is calculated, so that the calculated value of the carrier frequency is closer to the true value, the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem that the accuracy of carrier frequency calculation of the infrared signal in the infrared learning process is not high due to external interference is solved, and the infrared learning capability of the remote controller is improved.
Example six
The present embodiment provides a remote controller, which includes the remote controller infrared learning device set forth in any one of the fourth and fifth embodiments.
Example seven
The present embodiment provides a storage medium having a computer program stored thereon, wherein the program when executed by a processor implements the remote controller infrared learning method of any one of the first to fourth embodiments described above.
According to the technical scheme provided by the embodiment of the invention, the pulse periodic sequence is processed according to the discrete degree of the pulse periodic sequence until the discrete degree of the pulse periodic sequence reaches the preset requirement, and then the carrier frequency of the infrared signal is calculated, so that the accuracy of carrier frequency calculation in the infrared learning process is improved, the problem that the accuracy of the carrier frequency calculation of the infrared signal in the infrared learning process is not high due to external interference is solved, and the infrared learning capacity of the remote controller is improved; on the other hand, the technical scheme of the embodiment of the invention adopts a dynamic threshold method, namely, the overtime time threshold is set to be a dynamic value, the value is changed along with the change of the carrier frequency of the infrared signal to be detected, the range of the carrier frequency of the infrared signal which can be learned in the infrared learning process is widened, the problem that the range of the carrier frequency of the infrared signal which can be learned is smaller is solved, and the infrared learning capability of the remote controller is improved.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (6)

1. The remote controller infrared learning method is characterized by comprising the following steps of:
s101, dynamically setting a timeout time threshold value and setting T min The variable is used for storing the minimum pulse signal period and setting timeout time thresholds T and T min The remote controller receives the infrared pulse signals, calculates the pulse signal period and fills the pulse period sequence; wherein the timeout threshold T is set to be M times T min Wherein M is a positive integer;
s102, when the time of a pulse signal at the current distance is detected to be larger than a set overtime threshold T, judging that the current carrier signal is finished, judging whether the pulse period sequence is filled completely or not, and if not, continuing to wait for the next carrier signal until the pulse period sequence is filled completely; if the filling is completed, executing step S103;
s103, calculating standard deviation of the pulse period sequence, calculating the discrete degree of the data, sorting the data according to the dispersion if the discrete degree is larger than the set requirement, and then removing the data with large dispersion in the pulse period sequence from large to small according to the dispersion size until the discrete degree of the processed pulse period sequence is not higher than the set requirement;
s104, calculating the carrier frequency of the infrared signal according to the average value of the pulse period sequence after the processing in the step S103 is completed; the calculation formula is as follows:
wherein T is average The average value of the pulse period sequence is that F is the carrier frequency of the infrared signal;
s105, storing the carrier frequency and the key value of the infrared signal to corresponding positions, and using the carrier frequency and the key value as the carrier frequency modulated when the key is learned to emit infrared.
2. The remote controller infrared learning method according to claim 1, wherein the step S103 specifically includes: and (3) obtaining standard deviation of the pulse period sequence, calculating the discrete degree of the data, and if the discrete degree is larger than the set requirement, eliminating the data with large discrete degree in the pulse period sequence until the discrete degree of the processed pulse period sequence is not higher than the set requirement.
3. A remote controller infrared learning device for implementing the remote controller infrared learning method of claim 1, comprising:
the pulse period calculating unit is used for receiving the infrared pulse signals, calculating the pulse signal period and filling a pulse period sequence;
the pulse period sequence filling judging unit is used for judging whether the pulse period sequence is filled or not, and if so, the pulse period sequence processing unit acts;
the pulse period sequence processing unit is used for processing the pulse period sequence according to the discrete degree of the pulse period sequence until the discrete degree of the pulse period sequence reaches a preset requirement;
the carrier frequency calculation unit is used for calculating the carrier frequency of the infrared signal according to the pulse period sequence processed by the pulse period sequence processing unit;
and the learning result storage unit is used for storing the carrier frequency and the key value of the infrared signal to corresponding positions and used as the carrier frequency modulated when the learning key emits infrared rays.
4. The remote control infrared learning device of claim 3 further comprising:
a timeout threshold dynamic setting unit for setting T for storing the minimum pulse signal period min Variable, and set timeout thresholds T and T min Corresponding relation of (3).
5. A remote control comprising the remote control infrared learning device of any one of claim 3 or claim 4.
6. A storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the remote control infrared learning method of any one of claims 1 to 2.
CN202111062901.XA 2021-09-10 2021-09-10 Remote controller infrared learning method and device, remote controller and storage medium Active CN113744516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111062901.XA CN113744516B (en) 2021-09-10 2021-09-10 Remote controller infrared learning method and device, remote controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111062901.XA CN113744516B (en) 2021-09-10 2021-09-10 Remote controller infrared learning method and device, remote controller and storage medium

Publications (2)

Publication Number Publication Date
CN113744516A CN113744516A (en) 2021-12-03
CN113744516B true CN113744516B (en) 2023-12-22

Family

ID=78737958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111062901.XA Active CN113744516B (en) 2021-09-10 2021-09-10 Remote controller infrared learning method and device, remote controller and storage medium

Country Status (1)

Country Link
CN (1) CN113744516B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507611A (en) * 2001-05-10 2004-06-23 汤姆森许可公司 Economical extension of the operating distance of an RF remote link accommodating IR remote controls having differing IR carrier frequencies
CN101188457A (en) * 2007-09-21 2008-05-28 广州市聚晖电子科技有限公司 A learning and access method for infrared data based on communication devices
CN101467186A (en) * 2006-04-28 2009-06-24 检查站系统公司 Alarm systems, wireless alarm devices, and article security methods
CN101609604A (en) * 2008-06-17 2009-12-23 上海创见电子有限公司 The control method of infrared learning
CN105957332A (en) * 2016-06-30 2016-09-21 北京海尔广科数字技术有限公司 Method for learning and using infrared remote controller codes and learning type remote controller
CN106384501A (en) * 2016-10-20 2017-02-08 江苏海事职业技术学院 Infrared learning remote control device and infrared learning remote control method for smart home
CN108182795A (en) * 2018-01-11 2018-06-19 鹤壁天海电子信息系统有限公司 A kind of infrared data learning method, device and electronic equipment
CN108986444A (en) * 2017-06-05 2018-12-11 深圳市海洋王照明工程有限公司 A kind of learning method and its transmitting equipment of infrared coding
CN111402570A (en) * 2020-02-11 2020-07-10 广州创知科技有限公司 Infrared remote control signal receiving method, receiving system, receiving device and storage medium
CN111932688A (en) * 2020-09-10 2020-11-13 深圳大学 Indoor plane element extraction method, system and equipment based on three-dimensional point cloud
CN112927491A (en) * 2021-03-05 2021-06-08 北京小米移动软件有限公司 Infrared decoding method and device, storage medium and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0607655D0 (en) * 2006-04-18 2006-06-28 Esl Defence Ltd Apparatus for use in the testing and evaluation of infrared missile warning sensors

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1507611A (en) * 2001-05-10 2004-06-23 汤姆森许可公司 Economical extension of the operating distance of an RF remote link accommodating IR remote controls having differing IR carrier frequencies
CN101467186A (en) * 2006-04-28 2009-06-24 检查站系统公司 Alarm systems, wireless alarm devices, and article security methods
CN101188457A (en) * 2007-09-21 2008-05-28 广州市聚晖电子科技有限公司 A learning and access method for infrared data based on communication devices
CN101609604A (en) * 2008-06-17 2009-12-23 上海创见电子有限公司 The control method of infrared learning
CN105957332A (en) * 2016-06-30 2016-09-21 北京海尔广科数字技术有限公司 Method for learning and using infrared remote controller codes and learning type remote controller
CN106384501A (en) * 2016-10-20 2017-02-08 江苏海事职业技术学院 Infrared learning remote control device and infrared learning remote control method for smart home
CN108986444A (en) * 2017-06-05 2018-12-11 深圳市海洋王照明工程有限公司 A kind of learning method and its transmitting equipment of infrared coding
CN108182795A (en) * 2018-01-11 2018-06-19 鹤壁天海电子信息系统有限公司 A kind of infrared data learning method, device and electronic equipment
CN111402570A (en) * 2020-02-11 2020-07-10 广州创知科技有限公司 Infrared remote control signal receiving method, receiving system, receiving device and storage medium
CN111932688A (en) * 2020-09-10 2020-11-13 深圳大学 Indoor plane element extraction method, system and equipment based on three-dimensional point cloud
CN112927491A (en) * 2021-03-05 2021-06-08 北京小米移动软件有限公司 Infrared decoding method and device, storage medium and terminal

Also Published As

Publication number Publication date
CN113744516A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US9526106B2 (en) Method and apparatus for transmitting data in wireless communication system
CN110167050B (en) Transmission method and terminal for channel state information report
TWI713906B (en) Polarization coding method, device, electronic equipment and storage medium
CN109743713B (en) Resource allocation method and device for electric power Internet of things system
CN111224745B (en) Narrow-band Internet of things NB-IoT network resource allocation method, terminal, equipment and system
JPWO2007135919A1 (en) Transmission apparatus, transmission method, system LSI, and program
WO2022183878A1 (en) Frequency band scheduling method, communication node, and computer-readable storage medium
CN104320856A (en) DRX (Discontinuous Reception) state terminal scheduling method and apparatus
CN105025630A (en) Brightness adjusting method and intelligent watch
CN109728882B (en) Method and device for solving uplink channel resource conflict
CN113744516B (en) Remote controller infrared learning method and device, remote controller and storage medium
CN111835489A (en) Transmission method, configuration method, terminal and network side equipment
EP4106474A1 (en) Sidelink transmission control method, sending terminal and receiving terminal
US11350311B2 (en) Methods and apparatus to optimize power consumption and capacity in a multi-mode communication system
CN113259073B (en) PUSCH transmission method, PUSCH transmission control method and related equipment
CN111355494A (en) Check code processing method and device and electronic equipment
US8433967B2 (en) Method and system for detecting retransmission threshold condition in selective repeat ARQ communication system
CN104993909A (en) Data processing method and device for obfuscating data of PUCCH (Physical Uplink Control Channel) format 1b with channel selection 1bcs
CN107094279B (en) Method, device and system for adjusting transmitting power
CN112383386B (en) Data transmission method, device, computer equipment and computer readable storage medium
CN110677204B (en) Frequency spectrum sensing time optimization method with intelligent interference
CN112153094B (en) Method and device for controlling data transmission between electronic devices
CN111277386B (en) Downlink allocation index determining method, terminal and network equipment
CN113741260A (en) Equipment sleep control method and device
CN103125136A (en) Power determination method and user equipment

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