Signal processing method, receiving end device, transmitting end device and storage medium
By implementing a signal processing method in the receiving device, detecting the level changes of the remote control code and judging the pulse width range, the error problem caused by interference during the remote control code decoding process is solved, and the identification and filtering of the interfering signal is realized, ensuring the effectiveness of the control operation.
Patent Information
- Application Number
- CN202311265958.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-03-28
AI Technical Summary
During the process of parsing the remote control code, there is a problem of decoding errors when interfering with input, resulting in the failure of the control operation.
By implementing a signal processing method in the receiving end device, the level change of the remote control code is detected, and whether the current pulse width is within the preset pulse width range. If it is not within the range, it is determined that the level change caused by the interference signal is determined, thereby identifying and filtering out the interference signal.
Effectively identify and filter interference signals, avoid decoding errors, and ensure the correct analysis of remote control code and the effectiveness of control operations.
Smart Images

Figure CN119723859A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of air conditioners, and in particular to a signal processing method, a receiving end device, a transmitting end device and a storage medium. Background Art
[0002] At present, different main controllers have different processing methods for input ports. Among them, some main controllers enhance anti-interference capabilities by adding hardware measures, while other main controllers are designed according to standard kernels without additional anti-interference processing. Therefore, for main controllers without special anti-interference processing at input ports, when there is large external harmonic interference at the input port, when there is remote control code input, there will also be interference input. Since the port will not filter out the interference at this time, the actual remote control code will be judged as an error code during software decoding, resulting in failure of this control operation. Summary of the invention
[0003] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a signal processing method, a receiving end device, a transmitting end device and a storage medium, which aim to solve the problem of decoding errors when there is interference input during the process of parsing remote control codes by software.
[0004] In a first aspect, an embodiment of the present application provides a signal processing method, which is applied to a receiving device. The signal processing method includes:
[0005] Receiving a remote control code from a transmitting device and detecting a level change of the remote control code;
[0006] Determining a current pulse width of the remote control code according to the level change;
[0007] When the current pulse width is outside the preset pulse width range, it is determined that the level change is a level change caused by an interference signal.
[0008] According to some embodiments of the present application, after detecting the level change of the remote control code, the signal processing method further includes:
[0009] After a preset time period of the level change, reading the sampling level of the remote control code;
[0010] When the sampling level is the level before the level change, it is determined that the level change is a level change caused by an interference signal.
[0011] According to some embodiments of the present application, when the sampling level is the level before the level change, determining that the level change is a level change caused by an interference signal includes one of the following:
[0012] In the case where the level change is a level-down change, when the sampling level is a high level, determining that the level-down change is a level change caused by an interference signal;
[0013] In the case where the level change is a level rising change, when the sampling level is a low level, it is determined that the level rising change is a level change caused by an interference signal.
[0014] According to some embodiments of the present application, determining the current pulse width of the remote control code according to the level change includes one of the following:
[0015] Identifying a guide code in the remote control code, and determining a first pulse width of the guide code according to a level change of the guide code;
[0016] A data code in the remote control code is identified, and a second pulse width of the data code is determined according to a level change of the data code.
[0017] According to some embodiments of the present application, when the current pulse width is outside a preset pulse width range, determining that the level change is a level change caused by an interference signal includes one of the following:
[0018] In a case where the current pulse width includes a first pulse width, when the first pulse width is outside a first preset pulse width range, determining that the level change is a level change caused by an interference signal;
[0019] In the case where the current pulse width includes a second pulse width, when the second pulse width is outside a second preset pulse width range, it is determined that the level change is a level change caused by an interference signal, wherein the second preset pulse width range is inconsistent with the first preset pulse width range.
[0020] According to some embodiments of the present application, the signal processing method includes one of the following:
[0021] After detecting that the first pulse width is within the first preset pulse width range, detecting a second pulse width of the data code;
[0022] After detecting that the first pulse width is outside the first preset pulse width range, the analysis is directly stopped.
[0023] According to some embodiments of the present application, after determining that the level change is a level change caused by an interference signal, the signal processing method further includes:
[0024] It is determined that the level change is invalid, and the parsing of the remote control code is stopped.
[0025] In a second aspect, an embodiment of the present application provides a signal processing method, which is applied to a transmitting end device, and the signal processing method includes:
[0026] Generate remote control code;
[0027] The remote control code is sent to a receiving device so that the receiving device determines the current pulse width of the remote control code according to the level change of the remote control code, and when the current pulse width is outside a preset pulse width range, the receiving device determines that the level change is caused by an interference signal.
[0028] In a third aspect, an embodiment of the present application provides a receiving device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the signal processing method described in the first aspect above when running the computer program.
[0029] According to some embodiments of the present application, the receiving device is an air conditioner.
[0030] In a fourth aspect, an embodiment of the present application provides a transmitting device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the signal processing method as described in the second aspect above when running the computer program.
[0031] According to some embodiments of the present application, the transmitting device is a remote control.
[0032] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the signal processing method as described in the first aspect or the second aspect above.
[0033] According to the signal processing method of the embodiment of the present application, at least the following beneficial effects are achieved: first, after receiving the remote control code from the transmitting device, the receiving device will detect the level change of the remote control code; then, the receiving device will determine the current pulse width of the remote control code according to the level change; then, if the current pulse width is outside the preset pulse width range, the receiving device will determine that the level change is a level change caused by an interference signal. Since the embodiment of the present application first determines whether the current pulse width is within the preset pulse width range after determining the current pulse width based on the detected level change, if the current pulse width is not within the preset pulse width range, it will be considered to be an erroneous pulse width, indicating that the level change is affected by the interference signal. Therefore, the embodiment of the present application can identify and filter out the level change corresponding to the interference signal, so that the problem of decoding errors when there is interference input in the process of parsing the remote control code can be solved by software.
[0034] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0036] Figure 1 is a schematic diagram of an implementation environment for executing a signal processing method provided by an embodiment of the present application;
[0037] Figure 2 is a flowchart of a signal processing method performed by a receiving device provided by an embodiment of the present application;
[0038] Figure 3 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0039] Figure 4 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0040] Figure 5 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0041] Figure 6 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0042] Figure 7 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0043] Figure 8 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0044] Fig. 9 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0045] Fig.10 is a flowchart of a signal processing method performed by a receiving end device provided by another embodiment of the present application;
[0046] Fig.11 is a flowchart of a signal processing method performed by a transmitting end device provided by an embodiment of the present application;
[0047] Fig.12 is a schematic diagram of the level of a remote control code after being interfered with according to an embodiment of the present application;
[0048] Fig.13 It is a structural diagram of a receiving end device for executing a signal processing method provided by an embodiment of the present application;
[0049] Fig.14 It is a structural diagram of a transmitting end device for executing a signal processing method provided by an embodiment of the present application. DETAILED DESCRIPTION
[0050] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0051] In the description of the present application, it should be understood that descriptions involving orientation, such as up, down, front, back, left, right, etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0052] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0053] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.
[0054] In some cases, different main controllers have different processing methods for input ports. Some main controllers enhance anti-interference capabilities by adding hardware measures, while other main controllers are designed according to standard kernels without additional anti-interference processing. Therefore, for main controllers without special anti-interference processing at input ports, when there is large external harmonic interference at the input port, when there is remote control code input, there will also be interference input. Since the port will not filter out the interference at this time, the actual remote control code will be judged as an error code during software decoding, resulting in failure of this control operation.
[0055] Based on the above situation, the embodiments of the present application propose a signal processing method, a receiving device, a transmitting device and a storage medium, aiming to solve the problem of decoding errors when there is interference input during the process of parsing remote control codes through software.
[0056] The following further describes an embodiment of an implementation environment for executing the signal processing method of the present application in conjunction with the accompanying drawings.
[0057] like Figure 1 As shown, Figure 1 The embodiment of the present invention provides an implementation environment for executing a signal processing method. The implementation environment of the embodiment of the present invention includes a receiving device and a transmitting device, and the transmitting device and the receiving device can communicate normally.
[0058] It should be noted that the technical solution of the embodiment of the present application can be applied to various communication technologies, such as microwave communication, optical wave communication, millimeter wave communication, etc. The embodiment of the present application does not limit the specific technology and specific device form used.
[0059] In addition, it should be noted that the above-mentioned transmitting device can be a remote control, a mobile phone, or other types of devices. The embodiments of the present application do not limit the specific technology and specific device form adopted by the transmitting device.
[0060] In addition, it should be noted that the above-mentioned receiving device can be an air conditioner, a television, a humidifier, or other types of devices. The embodiments of the present application do not limit the specific technology and specific device form adopted by the sending device.
[0061] Based on the implementation environment of each of the above embodiments, various embodiments of the signal processing method executed by the receiving end device of the present application are respectively proposed below.
[0062] like Figure 2 As shown, Figure 2 This is a flow chart of a signal processing method performed by a receiving device according to an embodiment of the present application. The signal processing method may include but is not limited to step S210, step S220 and step S230.
[0063] Step S210, receiving a remote control code from a transmitting device, and detecting a level change of the remote control code;
[0064] Step S220, determining the current pulse width of the remote control code according to the level change;
[0065] Step S230: When the current pulse width is outside the preset pulse width range, determine that the level change is caused by an interference signal.
[0066] In one embodiment, a transmitting device generates a remote control code based on user operation or user setting, and sends the remote control code to a receiving device. Since the remote control code may be interfered with during transmission, for example, the transmitting device may be interfered with by electromagnetic waves in the surrounding environment when receiving the remote control code; therefore, after receiving the remote control code, the transmitting device detects the level change of the remote control code, and calculates the current pulse width of the remote control code based on the level change of the remote control code; then, the current pulse width is compared with a preset pulse width range. If the current pulse width is outside the preset pulse width range, it indicates that the current pulse width calculated based on the level change does not conform to the correct pulse width of the remote control code, then the embodiment of the present application will consider that the level change is caused by an interference signal.
[0067] It should be noted that the sending device may generate a remote control code based on user operations by generating a remote control code based on the user's key commands, or by generating a remote control code based on the user's voice commands, or by other methods, which are not specifically limited in the embodiments of the present application.
[0068] In addition, it should be noted that the method in which the transmitting device generates the remote control code based on the user setting may be to generate the remote control code based on the user's set time, or may be other methods, and the embodiments of the present application do not specifically limit this.
[0069] It is worth noting that the above-mentioned level change may be a change from a high level to a low level, or a change from a low level to a high level. The embodiment of the present application does not specifically limit the type of level change.
[0070] In addition, it is worth noting that the embodiment of the present application requires more than two level changes to calculate the current pulse width of the remote control code. For example, the time between two level changes can be used as the current pulse width of the remote control code.
[0071] In addition, it can be understood that the above-mentioned preset pulse width range can be set according to the pulse width ranges of multiple normal remote control codes, and the embodiment of the present application does not specifically limit the value of the above-mentioned preset pulse width range.
[0072] In addition, in one embodiment, after comparing the current pulse width with the preset pulse width range, if the current pulse width is within the preset pulse width range, it indicates that the current pulse width calculated based on the level change meets the correct pulse width of the remote control code, but it is still not possible to directly conclude that the level change is caused by an interference signal. In this case, it is necessary to further determine the pulse width of the level change. For details, refer to the following Figure 3 shown.
[0073] like Figure 3 As shown, Figure 3This is a flow chart of a signal processing method performed by a receiving device according to another embodiment of the present application. After executing the level change of the remote control code in the above step S210, the signal processing method may further include but is not limited to step S310 and step S320.
[0074] Step S310, after a preset time period of level change, reading the sampling level of the remote control code;
[0075] Step S320: When the sampled level is the level before the level change, determine that the level change is a level change caused by an interference signal.
[0076] In one embodiment, if a level change is detected, the embodiment of the present application will read the sampling level of the remote control code again after a preset time period. If the sampling level after the preset time period is restored to the level value before the level change, that is, it is restored to the level value before the level change in a short time, then the embodiment of the present application can be considered to be affected by the interference signal here.
[0077] It can be understood that the above-mentioned preset duration can be set based on the duration of multiple sample interference signals. Specifically, the preset duration can be obtained through the following steps: obtain the sample durations of multiple sample interference signals, filter out the sample duration with the largest value from the multiple sample durations as the target duration, and determine the preset duration based on the target duration.
[0078] Among them, regarding the above-mentioned step of determining the preset duration based on the target duration, the target duration can be directly used as the preset duration, that is, the preset duration is equal to the target duration; or, a preset value can be added to the target duration to obtain the preset duration, wherein the preset value is a positive number.
[0079] It is worth noting that for the first level change detected in the remote control code, due to Figure 2 The method in is performed based on multiple level changes, so for the first level change, it is not possible to use Figure 2 Therefore, the embodiment of the present application can preferably use Figure 3 The method in is used to identify whether the first level change is normal. For subsequent level changes, the embodiment of the present application can select Figure 2 You can also use the method in Figure 3 The method in can also be used to identify Figure 2 and Figure 3 The identification is performed using the methods in , wherein the order of identification of the two methods is not limited.
[0080] In addition, it is worth noting that, after determining that the level change is a level change caused by an interference signal, the embodiment of the present application can wait for the next level change, thereby repeating the above-mentioned identification process.
[0081] In addition, it should be noted that the above step S320 may include but is not limited to: Figure 4 or Figure 5 There are two implementation scenarios, as follows:
[0082] like Figure 4 As shown, Figure 4 This is a flow chart of a signal processing method performed by a receiving end device provided by another embodiment of the present application. The above step S320 may include but is not limited to step S410 and step S420.
[0083] Step S410, determining that the level change is a level decrease change;
[0084] Step S420: When the sampling level is at a high level, it is determined that the level drop change is caused by an interference signal.
[0085] In one embodiment, if it is detected that the level change is from a high level to a low level, the embodiment of the present application will read the sampling level of the remote control code again after a preset time length. If the sampling level after the preset time length is a high level, then the embodiment of the present application can be considered to be affected by an interference signal.
[0086] like Figure 5 As shown, Figure 5 This is a flow chart of a signal processing method performed by a receiving end device provided by another embodiment of the present application. The above step S320 may include but is not limited to step S510 and step S520.
[0087] Step S510, determining that the level change is a level increase change;
[0088] Step S520: When the sampling level is at a low level, it is determined that the level rising change is caused by an interference signal.
[0089] In one embodiment, if it is detected that the level change is from a low level to a high level, the embodiment of the present application will read the sampling level of the remote control code again after a preset time length. If the sampling level after the preset time length is a low level, then the embodiment of the present application can be considered to be affected by an interference signal.
[0090] In addition, it should be noted that the current pulse width of the remote control code determined according to the level change in the above step S220 may include but is not limited to: Figure 6 or Figure 7There are two implementation scenarios, as follows:
[0091] like Figure 6 As shown, Figure 6 This is a flow chart of a signal processing method performed by a receiving device according to another embodiment of the present application. The above step S220 may include but is not limited to step S610 and step S620.
[0092] Step S610, identifying the guide code in the remote control code;
[0093] Step S620: Determine a first pulse width of the guide code according to the level change of the guide code.
[0094] In one embodiment, the remote control code includes a guide code. For the guide code, the embodiment of the present application can detect multiple level changes of the guide code and calculate the first pulse width of the guide code based on the multiple level changes.
[0095] like Figure 7 As shown, Figure 7 This is a flow chart of a signal processing method performed by a receiving device according to another embodiment of the present application. The above step S220 may include but is not limited to step S710 and step S720.
[0096] Step S710, identifying the data code in the remote control code;
[0097] Step S720: Determine a second pulse width of the data code according to the level change of the data code.
[0098] In one embodiment, the remote control code includes a data code. For the data code, the embodiment of the present application can detect multiple level changes of the data code and calculate the second pulse width of the data code based on the multiple level changes.
[0099] In addition, it should be noted that the above step S230 may include but is not limited to: Figure 8 or Fig. 9 There are two implementation scenarios, as follows:
[0100] like Figure 8 As shown, Figure 8 This is a flow chart of a signal processing method performed by a receiving device according to another embodiment of the present application. The above step S230 may include but is not limited to step S810 and step S820.
[0101] Step S810, when the first pulse width is outside the first preset pulse width range;
[0102] Step S820: Determine that the level change is caused by an interference signal.
[0103] In one embodiment, for the guide code, after calculating the first pulse width of the guide code, the embodiment of the present application will compare the first pulse width with the first preset pulse width range. If the first pulse width is outside the first preset pulse width range, it indicates that the first pulse width calculated based on the level change does not conform to the correct pulse width of the guide code, then the embodiment of the present application will consider that the level change is caused by an interference signal.
[0104] In addition, it can be understood that the above-mentioned first preset pulse width range can be set according to the pulse width ranges of multiple normal guide codes, and the embodiment of the present application does not specifically limit the value of the above-mentioned first preset pulse width range.
[0105] like Fig. 9 As shown, Fig. 9 This is a flow chart of a signal processing method performed by a receiving end device according to another embodiment of the present application. The above step S230 may include but is not limited to step S910 and step S920.
[0106] Step S910: when the second pulse width is outside the second preset pulse width range;
[0107] Step S920: determine that the level change is caused by an interference signal, wherein the second preset pulse width range is inconsistent with the first preset pulse width range.
[0108] In one embodiment, for a data code, after calculating the second pulse width of the data code, the embodiment of the present application will compare the second pulse width with a second preset pulse width range. If the second pulse width is outside the second preset pulse width range, it indicates that the second pulse width calculated based on the level change does not conform to the correct pulse width of the data code. In this case, the embodiment of the present application will consider that the level change is caused by an interference signal.
[0109] In addition, it can be understood that the above-mentioned second preset pulse width range can be set according to the pulse width ranges of multiple normal data codes, and the embodiment of the present application does not specifically limit the value of the above-mentioned second preset pulse width range.
[0110] It should be noted that the infrared signal of the remote control includes a guide code and a data code, which are respectively a low level plus a high level with different pulse widths. In the embodiment of the present application, after two different high and low level changes are detected by the chip port, the software reads the counter count value to obtain the interval time between the two level changes, thereby obtaining the pulse width of the guide code and the data code; then, the software first parses the guide code, and after the guide code is correct (that is, the high and low level pulse widths are correct), the data code is parsed until all the data received this time is parsed.
[0111] After the infrared code is interfered, some low levels with extremely narrow pulse width will appear in the process of high level, or some high levels with extremely narrow pulse width will appear in the process of low level on the normal infrared waveform. These glitches will be detected by the chip port due to the level changes. They are mistaken for the level changes of the remote control code. However, the read pulse width does not meet the pulse width specified by the remote control code (guide code or data code), so they are all discarded and are not considered to be valid remote control codes.
[0112] In one embodiment, the embodiment of the present application can first detect whether the first pulse width of the guide code meets the pulse width requirement, and then continue to detect the second pulse width of the data code when the first pulse width meets the pulse width requirement. If the first pulse width does not meet the pulse width requirement, then the analysis can be stopped directly.
[0113] like Fig.10 As shown, Fig.10 This is a flow chart of a signal processing method performed by a receiving end device provided by another embodiment of the present application. After executing the above step S230, the signal processing method may also include but is not limited to step S1010 and step S1020.
[0114] Step S1010, determining that the level change is invalid;
[0115] Step S1020, stop parsing the remote control code.
[0116] In one embodiment, after the level change is considered to be caused by an interference signal, the embodiment of the present application may consider the level change to be an invalid level change, and then stop parsing the remote control code.
[0117] Based on the implementation environment of each of the above embodiments, various embodiments of the signal processing method executed by the transmitting end device of the present application are respectively proposed below.
[0118] like Fig.11 As shown, Fig.11 This is a flow chart of a signal processing method performed by a transmitting end device according to an embodiment of the present application. The signal processing method may include but is not limited to step S1110 and step S1120.
[0119] Step S1110, generating a remote control code;
[0120] Step S1120: sending the remote control code to the receiving device, so that the receiving device determines the current pulse width of the remote control code according to the level change of the remote control code, and determines that the level change is caused by the interference signal when the current pulse width is outside the preset pulse width range.
[0121] In one embodiment, a transmitting device generates a remote control code based on user operation or user setting, and sends the remote control code to a receiving device. Since the remote control code may be interfered with during transmission, for example, the transmitting device may be interfered with by electromagnetic waves in the surrounding environment when receiving the remote control code; therefore, after receiving the remote control code, the transmitting device detects the level change of the remote control code, and calculates the current pulse width of the remote control code based on the level change of the remote control code; then, the current pulse width is compared with a preset pulse width range. If the current pulse width is outside the preset pulse width range, it indicates that the current pulse width calculated based on the level change does not conform to the correct pulse width of the remote control code, then the embodiment of the present application will consider that the level change is caused by an interference signal.
[0122] It should be noted that the sending device may generate a remote control code based on user operations by generating a remote control code based on the user's key commands, or by generating a remote control code based on the user's voice commands, or by other methods, which are not specifically limited in the embodiments of the present application.
[0123] In addition, it should be noted that the method in which the transmitting device generates the remote control code based on the user setting may be to generate the remote control code based on the user's set time, or may be other methods, and the embodiments of the present application do not specifically limit this.
[0124] It is worth noting that the above-mentioned level change may be a change from a high level to a low level, or a change from a low level to a high level. The embodiment of the present application does not specifically limit the type of level change.
[0125] In addition, it is worth noting that the embodiment of the present application requires more than two level changes to calculate the current pulse width of the remote control code. For example, the time between two level changes can be used as the current pulse width of the remote control code.
[0126] In addition, it can be understood that the above-mentioned preset pulse width range can be set according to the pulse width ranges of multiple normal remote control codes, and the embodiment of the present application does not specifically limit the value of the above-mentioned preset pulse width range.
[0127] It is worth noting that since the signal processing method executed by the transmitting device in the embodiment of the present application corresponds to the signal processing method executed by the receiving device mentioned above, the specific implementation manner and technical effects of the signal processing method executed by the transmitting device in the embodiment of the present application can refer to the specific implementation manner and technical effects of the signal processing method executed by the receiving device in any of the above-mentioned embodiments.
[0128] Based on the signal processing methods of the above-mentioned various embodiments, overall embodiments of the signal processing methods of the present application are respectively proposed below.
[0129] like Fig.12As shown, Fig.12 1 is a schematic diagram of the level of a remote control code after being interfered with according to an embodiment of the present application. Fig.12 A1 and A2 are used to characterize the level change caused by the interference signal, B1 and B2 are used to characterize the identified erroneous pulse width, and C1 and C2 are used to characterize the correct pulse width.
[0130] The software interference filtering solution of the embodiment of the present application is as follows:
[0131] When high and low level interference with extremely narrow pulse width occurs, since it is impossible to predict when the interference will occur, two aspects of filtering are required:
[0132] First aspect: filter out high and low levels with extremely narrow pulse width:
[0133] 1. When a falling edge is detected (high level changes to low level), the IO level is read multiple times. If any level is high, it is considered a glitch, and the decoding is exited directly, waiting for the next level change.
[0134] 2. When a rising edge is detected (a low level changes to a high level), the IO level is read multiple times. If any level is low, it is considered a glitch, and the decoding is exited directly, waiting for the next level change.
[0135] The second aspect: filtering for specific remote control codes:
[0136] According to the detected level change, the current pulse width value is obtained. First, it is determined whether the pulse width value is within the expected value (correct pulse width) range. If it is not within the expected range (wrong pulse width), the processing and analysis is directly exited. If it is within the expected range, the processing and analysis logic is continued.
[0137] Because the guide code and data code have different time intervals, the guide code and data code pulse width are filtered separately to increase the ability to filter abnormal glitches. For the guide code: if the pulse width is lower than the minimum guide code pulse width, the current level change is considered invalid and the parsing process is directly exited. For the data code: if the pulse width is lower than the minimum data code pulse width, the current level change is considered invalid and the parsing process is directly exited.
[0138] Based on the signal processing methods of the above-mentioned embodiments, various embodiments of a receiving device, a transmitting device and a computer-readable storage medium of the present application are respectively proposed below.
[0139] like Fig.13 As shown, Fig.13 1 is a schematic diagram of a receiving device for executing a signal processing method provided by an embodiment of the present application. The receiving device 100 implemented in the present application includes: a first processor 110, a first memory 120, and a computer program stored in the first memory 120 and executable on the first processor 110, wherein: Fig.13 A first processor 110 and a first memory 120 are taken as an example.
[0140] The first processor 110 and the first memory 120 may be connected via a bus or other means. Fig.13 The example of connecting through bus is taken in the following.
[0141] The first memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the first memory 120 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the first memory 120 may optionally include a first memory 120 remotely arranged relative to the first processor 110, and these remote first memories 120 may be connected to the receiving device 100 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0142] Those skilled in the art will understand that Fig.13 The device structure shown in the figure does not constitute a limitation on the receiving end device 100, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0143] exist Fig.13 In the receiving end device 100 shown, the first processor 110 can be used to call the signal processing program stored in the first memory 120, so as to implement the above-mentioned signal processing method. Specifically, the non-transient software program and instructions required to implement the signal processing method of the above-mentioned embodiment are stored in the first memory 120, and when executed by the first processor 110, the signal processing method of the above-mentioned embodiment is executed.
[0144] It is worth noting that since the receiving device 100 of the embodiment of the present application can execute the signal processing method of any of the above-mentioned embodiments, the specific implementation manner and technical effects of the receiving device 100 of the embodiment of the present application can refer to the specific implementation manner and technical effects of the signal processing method of any of the above-mentioned embodiments.
[0145] In addition, if Fig.14 As shown, Fig.14 1 is a schematic diagram of a receiving device for executing a signal processing method provided by an embodiment of the present application. The transmitting device 200 implemented in the present application includes: a second processor 210, a second memory 220, and a computer program stored in the second memory 220 and executable on the second processor 210, wherein: Fig.14 In the figure, a second processor 210 and a second memory 220 are taken as an example.
[0146] The second processor 210 and the second memory 220 can be connected via a bus or other means. Fig.14 The example of connecting through bus is taken in the following.
[0147] The second memory 220, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the second memory 220 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the second memory 220 may optionally include a second memory 220 remotely arranged relative to the second processor 210, and these remote second memories 220 may be connected to the sending end device 200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0148] Those skilled in the art will understand that Fig.14 The device structure shown in the figure does not constitute a limitation on the sending end device 200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0149] exist Fig.14 In the transmitting end device 200 shown, the second processor 210 can be used to call the signal processing program stored in the second memory 220, so as to implement the above-mentioned signal processing method. Specifically, the non-transient software program and instructions required to implement the signal processing method of the above-mentioned embodiment are stored in the second memory 220, and when executed by the second processor 210, the signal processing method of the above-mentioned embodiment is executed.
[0150] It is worth noting that since the sending device 200 of the embodiment of the present application can execute the signal processing method of any of the above-mentioned embodiments, the specific implementation manner and technical effects of the sending device 200 of the embodiment of the present application can refer to the specific implementation manner and technical effects of the signal processing method of any of the above-mentioned embodiments.
[0151] In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the above-described signal processing method. Figures 2 to 11 The method steps in .
[0152] It is worth noting that since the computer-readable storage medium of the embodiments of the present application can execute the signal processing method of any of the above embodiments, the specific implementation methods and technical effects of the computer-readable storage medium of the embodiments of the present application can refer to the specific implementation methods and technical effects of the signal processing method of any of the above embodiments.
[0153] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0154] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions under the shared conditions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A signal processing method, characterized in that: Applied to a receiving device, the signal processing method includes: Receiving a remote control code from a transmitting device and detecting a level change of the remote control code; Determining a current pulse width of the remote control code according to the level change; When the current pulse width is outside the preset pulse width range, it is determined that the level change is a level change caused by an interference signal.
2. The signal processing method according to claim 1, characterized in that: After detecting the level change of the remote control code, the signal processing method further includes: After a preset time period of the level change, reading the sampling level of the remote control code; When the sampling level is the level before the level change, it is determined that the level change is a level change caused by an interference signal.
3. The signal processing method according to claim 2, characterized in that: When the sampling level is the level before the level change, determining that the level change is a level change caused by an interference signal includes one of the following: In the case where the level change is a level-down change, when the sampling level is a high level, determining that the level-down change is a level change caused by an interference signal; In the case where the level change is a level rising change, when the sampling level is a low level, it is determined that the level rising change is a level change caused by an interference signal.
4. The signal processing method according to claim 1, characterized in that: Determining the current pulse width of the remote control code according to the level change includes one of the following: Identifying a guide code in the remote control code, and determining a first pulse width of the guide code according to a level change of the guide code; A data code in the remote control code is identified, and a second pulse width of the data code is determined according to a level change of the data code.
5. The signal processing method according to claim 4, characterized in that: When the current pulse width is outside the preset pulse width range, determining that the level change is a level change caused by an interference signal includes one of the following: In a case where the current pulse width includes a first pulse width, when the first pulse width is outside a first preset pulse width range, determining that the level change is a level change caused by an interference signal; In the case where the current pulse width includes a second pulse width, when the second pulse width is outside a second preset pulse width range, it is determined that the level change is a level change caused by an interference signal, wherein the second preset pulse width range is inconsistent with the first preset pulse width range.
6. The signal processing method according to claim 5, characterized in that: The signal processing method includes one of the following: After detecting that the first pulse width is within the first preset pulse width range, detecting a second pulse width of the data code; After detecting that the first pulse width is outside the first preset pulse width range, the analysis is directly stopped.
7. The signal processing method according to any one of claims 1 to 6, characterized in that: After determining that the level change is a level change caused by an interference signal, the signal processing method further includes: It is determined that the level change is invalid, and the parsing of the remote control code is stopped.
8. A signal processing method, characterized in that: Applied to a transmitting device, the signal processing method includes: Generate remote control code; The remote control code is sent to a receiving device so that the receiving device determines the current pulse width of the remote control code according to the level change of the remote control code, and when the current pulse width is outside a preset pulse width range, the receiving device determines that the level change is caused by an interference signal.
9. A receiving device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the signal processing method according to any one of claims 1 to 7 when executing the computer program.
10. The receiving end device according to claim 9, characterized in that: The receiving end device is an air conditioner.
11. A transmitting end device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the signal processing method according to claim 8 when executing the computer program.
12. The transmitting end device according to claim 11, characterized in that: The sending end device is a remote controller.
13. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the signal processing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for removing interference pulse in infrared remote control data
CN106448129A
Remote control anti-interference control method and apparatus
CN107040806A
Anti-interference infrared signal control device
CN112542038A
Anti-interference one-line communication receiving method and system based on Schmitt trigger
CN116346116A
Intelligent meter set signal identifying method
CN1450720A