Signal processing method and device, electronic equipment and storage medium
By determining the calibration method of infrared signal based on the ambient temperature of the air conditioner, the problems of infrared signal calibration accuracy and environmental temperature influence are solved, and more efficient and accurate signal calibration is achieved, reducing equipment costs.
Patent Information
- Application Number
- CN202311814435.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art is prone to accuracy problems during infrared signal verification, which reduces working efficiency, and the ambient temperature has a great impact on the accuracy of the calibration results, resulting in high equipment costs.
By obtaining the ambient temperature of the air conditioner, determine the target verification method of the infrared signal, including verifying the high and low levels respectively, or verifying the sum of the high and low levels.
Combined with the calibration method of adjusting infrared signals in the ambient temperature, the impact of ambient temperature on the performance of the calibration device is reduced, the equipment cost is reduced, and the accuracy of the calibration results is improved.
Smart Images

Figure CN120220374A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of signal control, and in particular, to a method, apparatus, electronic device, and storage medium for signal processing. Background Art
[0002] Infrared remote control can perform control transmission through infrared signals. The infrared signal can be composed of one or more of a start code, a data code, and an end code, and each start code or data code is composed of a low level and a high level.
[0003] In the related art, when an infrared signal is received, it is necessary to verify the high level and the low level of the infrared signal to verify the accuracy of the infrared signal, so as to complete the control transmission of the signal. However, during the signal verification process, problems such as inaccurate verification are likely to occur, reducing work efficiency. Summary of the Invention
[0004] To overcome the problems in the related art, the present disclosure provides a method, apparatus, electronic device, and storage medium for signal processing.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for signal processing, which is applied to an air conditioner, and the method includes:
[0006] Obtain an infrared signal emitted by a target control device; the target control device is used to control the air conditioner;
[0007] Obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located;
[0008] Determine a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal;
[0009] Verify the infrared signal according to the target verification method to obtain a verification result; the verification result is used to indicate whether the infrared signal is normal.
[0010] Optionally, the signal type of the infrared signal includes a start code or a data code; the obtaining the ambient temperature of the environment where the indoor unit of the air conditioner is located includes:
[0011] When it is determined that the signal type of the infrared signal is the data code, obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located.
[0012] Optionally, the signal type of the infrared signal is determined to be the data code by the following method:
[0013] When it is determined that the infrared signal does not include an end code, determine that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal.
[0014] Optionally, determining that the infrared signal does not include an end code includes:
[0015] When it is determined that the width value of the high level of the infrared signal is not within the first preset range and the width value of the low level of the infrared signal is not within the second preset range, determine that the infrared signal does not include the end code.
[0016] Optionally, the determining that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal includes:
[0017] When it is determined that the reception time interval is less than or equal to a preset time threshold, determine that the signal type is the data code.
[0018] Optionally, the method further includes:
[0019] When it is determined that the reception time interval is greater than the preset time threshold, determine that the signal type is the header code.
[0020] Optionally, the determining the target verification method corresponding to the infrared signal according to the ambient temperature includes:
[0021] When it is determined that the ambient temperature is less than or equal to a preset temperature threshold, taking verifying the high level and the low level of the infrared signal respectively as the target verification method; or,
[0022] When it is determined that the ambient temperature is greater than the preset temperature threshold, taking verifying the sum value of the high level and the low level of the infrared signal as the target verification method.
[0023] Optionally, the target verification method includes verifying the high level and the low level of the infrared signal respectively; the obtaining the verification result by verifying the infrared signal according to the target verification method includes:
[0024] When it is determined that the width value of the high level of the infrared signal is within the first preset range and the width value of the low level of the infrared signal is within the second preset range, determine that the verification result of the infrared signal is normal.
[0025] Optionally, the target verification method includes verifying the sum value of the high level and the low level of the infrared signal; the obtaining the verification result by verifying the infrared signal according to the target verification method includes:
[0026] When it is determined that the sum value of the high level and the low level of the infrared signal is within a third preset range, it is determined that the verification result of the infrared signal is normal; the third preset range is greater than the second preset range; the third preset range is greater than the first preset range.
[0027] According to a second aspect of the embodiments of the present disclosure, there is provided a signal processing device, the device includes:
[0028] A first acquisition module, configured to acquire an infrared signal emitted by a target control device; the target control device is used to control the air conditioner;
[0029] A second acquisition module, configured to acquire the ambient temperature of the environment where the indoor unit of the air conditioner is located;
[0030] A determination module, configured to determine a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal;
[0031] A verification module, configured to verify the infrared signal according to the target verification method to obtain a verification result; the verification result is used to characterize whether the infrared signal is normal.
[0032] Optionally, the signal type of the infrared signal includes a header code or a data code; the second acquisition module is configured to acquire the ambient temperature of the environment where the indoor unit of the air conditioner is located when it is determined that the signal type of the infrared signal is the data code.
[0033] Optionally, the signal type of the infrared signal is determined to be a data code by the following method:
[0034] When it is determined that the infrared signal does not include an end code, according to the reception time interval between the infrared signal and the previously received historical infrared signal, it is determined that the signal type of the infrared signal is the data code.
[0035] Optionally, determining that the infrared signal does not include an end code includes:
[0036] When it is determined that the width value of the high level of the infrared signal is not within the first preset range and the width value of the low level of the infrared signal is not within the second preset range, it is determined that the infrared signal does not include the end code.
[0037] Optionally, the determining that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal includes:
[0038] When it is determined that the received time interval is less than or equal to a preset time threshold, determine that the signal type is the data code.
[0039] Optionally, the method further includes:
[0040] When it is determined that the received time interval is greater than the preset time threshold, determine that the signal type is the header code.
[0041] Optionally, the determining module is configured to, when it is determined that the ambient temperature is less than or equal to a preset temperature threshold, use separately verifying the high level and the low level of the infrared signal as the target verification method; or, when it is determined that the ambient temperature is greater than the preset temperature threshold, use verifying the sum value of the high level and the low level of the infrared signal as the target verification method.
[0042] Optionally, the target verification method includes separately verifying the high level and the low level of the infrared signal; the verification module is configured to, when it is determined that the width value of the high level of the infrared signal is within a third preset range and the width value of the low level of the infrared signal is within a fourth preset range, determine that the verification result of the infrared signal is normal.
[0043] Optionally, the target verification method includes verifying the sum value of the high level and the low level of the infrared signal; the verification module is configured to, when it is determined that the sum value of the high level and the low level of the infrared signal is within a fifth preset range, determine that the verification result of the infrared signal is normal; the fifth preset range is greater than the third preset range; the fifth preset range is greater than the fourth preset range.
[0044] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0045] A processor;
[0046] A memory for storing instructions executable by the processor;
[0047] Wherein, the processor is configured to perform the steps of the signal processing method provided in the first aspect of the present disclosure when executed.
[0048] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the signal processing method provided in the first aspect of the present disclosure are implemented.
[0049] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0050] Through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, the influence of the ambient temperature on the performance of the verification device is reduced, the equipment cost is reduced, and the accuracy of the verification result is improved.
[0051] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Brief Description of the Drawings
[0052] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0053] Figure 1 is a flowchart of a method for signal processing shown according to an exemplary embodiment.
[0054] Figure 2 is a flowchart of another method for signal processing shown according to an exemplary embodiment.
[0055] Figure 3 is a block diagram of a device for signal processing shown according to an exemplary embodiment.
[0056] Figure 4 is a block diagram of an electronic device shown according to an exemplary embodiment.
[0057] Figure 5 is a block diagram of another electronic device shown according to an exemplary embodiment. Detailed Description of the Embodiments
[0058] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0059] First, the application scenario of the present disclosure is introduced. The present disclosure is applied to the scenario of verifying infrared signals. The infrared signal can be composed of one or more of a header code, a data code, and an end code. Each infrared signal can include a header code and multiple data codes; in the case of serial transmission of multiple infrared signals, the serial signal can include multiple end codes. Among them, each header code or data code can be composed of a low level and a high level.
[0060] In the related art, when an infrared signal is received, it is necessary to verify the high and low levels of the infrared signal to verify the accuracy of the infrared signal, so as to complete the control transmission of the signal. However, since the verification standards for the head code and the data code are relatively close, it is easy to have inaccurate verification problems during the verification of the head code or the data code.
[0061] Moreover, the ambient temperature will also affect the accuracy of the infrared signal verification result, reducing the work efficiency. For example, when the ambient temperature of the environment where the infrared signal receiving device is located is too low, the accuracy of the verification result is low. Therefore, in order to reduce the influence of the ambient temperature on the accuracy of the verification result, higher requirements are put forward for the performance of the infrared signal receiving device, resulting in too high production costs of the receiving device.
[0062] To solve the above problems, the present disclosure provides a signal processing method, device, electronic device and storage medium; by obtaining an infrared signal emitted by a target control device; the target control device is used to control the air conditioner; obtaining the ambient temperature of the environment where the indoor unit of the air conditioner is located; determining a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high and low levels of the infrared signal; or verifying the sum value of the high and low levels of the infrared signal; verifying the infrared signal according to the target verification method to obtain a verification result; the verification result is used to indicate whether the infrared signal is normal; through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, reducing the influence of the ambient temperature on the performance of the verification device, reducing the equipment cost, and improving the accuracy of the verification result.
[0063] Figure 1 is a flowchart of a signal processing method shown according to an exemplary embodiment, as Figure 1 shown, the method is applied to an air conditioner, and the method may include the following steps.
[0064] S101. Obtain an infrared signal emitted by a target control device.
[0065] Wherein, the target control device is used to control the air conditioner.
[0066] Exemplarily, the target control device may be a control device corresponding to the air conditioner, for example, a remote controller. The infrared signal emitted by the target control device can be obtained when it is determined that the air conditioner is in the powered-on state.
[0067] S102. Obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located.
[0068] S103. Determine a target verification method corresponding to the infrared signal according to the ambient temperature.
[0069] Among them, the target verification method includes respectively verifying the high level and the low level of the infrared signal; alternatively, verifying the sum value of the high level and the low level of the infrared signal.
[0070] S104. According to the target verification method, verify the infrared signal to obtain a verification result.
[0071] Among them, the verification result is used to characterize whether the infrared signal is normal.
[0072] Through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, the influence of the ambient temperature on the performance of the verification device is reduced, the equipment cost is reduced, and the accuracy of the verification result is improved.
[0073] In some embodiments, the signal type of the infrared signal includes a header code or a data code, and the above step S102 may include: when determining that the signal type of the infrared signal is a data code, obtaining the ambient temperature of the environment where the indoor unit of the air conditioner is located.
[0074] In some other embodiments, the signal type of the infrared signal can be determined to be a data code in the following manner: when determining that the infrared signal does not include an end code, determining the signal type of the infrared signal as the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal. Exemplarily, when determining that the infrared signal does not include an end code, it is determined that the transmission of the current infrared signal is not over, so that the header code and the data code of the infrared signal can be distinguished according to the time interval, simplifying the discrimination method of the header code and the data code and improving the accuracy of signal verification.
[0075] It should be noted that, in some embodiments, when determining that the infrared signal includes an end code, it can be determined whether the infrared signal is completely received according to the frame value of the infrared signal. And when determining that the infrared signal is completely received, a new infrared signal emitted by the target control device is obtained.
[0076] Exemplarily, when the frame value is greater than or equal to a preset frame number threshold, it is determined that the infrared signal is completely received; when the frame value is less than the preset frame number threshold, it is determined that the infrared signal is not completely received.
[0077] In some embodiments, determining that the infrared signal does not include an end code may include: when determining that the width value of the high level of the infrared signal is not within a first preset range and the width value of the low level of the infrared signal is not within a second preset range, determining that the infrared signal does not include the end code.
[0078] It should be noted that when it is determined that the width value of the high level of the infrared signal is within the first preset range and the width value of the low level of the infrared signal is within the second preset range, it is determined that the infrared signal includes the end code. At this time, it can be determined that the emission of the infrared signal ends, so as to obtain a new infrared signal emitted by the target control device.
[0079] In some other embodiments, determining that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal may include: when it is determined that the reception time interval is less than or equal to a preset time threshold, determining that the signal type is the data code. And, it may also be determined that the signal type is the header code when it is determined that the reception time interval is greater than the preset time threshold.
[0080] Exemplarily, the preset time threshold may be between 50-100 ms, for example, 50 ms, 70 ms, 80 ms or 100 ms, etc., which is not limited here. In this way, the signal type of the infrared signal can be determined according to the size relationship between the reception time interval and the preset time threshold, realizing the distinction between the header code and the data code, without distinguishing the header code and the data code according to the width values of the high and low levels, improving the accuracy of the verification result, and further improving the work efficiency.
[0081] It should be noted that when it is determined that the signal type is the header code, it is determined that the infrared signal has ended, and a new infrared signal emitted by the target control device can be obtained to enter a new round of signal processing.
[0082] In some embodiments, step 103 above may include: when it is determined that the ambient temperature is less than or equal to a preset temperature threshold, using the verification of the high level and the low level of the infrared signal respectively as the target verification method; or, when it is determined that the ambient temperature is greater than the preset temperature threshold, using the verification of the sum value of the high level and the low level of the infrared signal as the target verification method.
[0083] Exemplarily, the preset temperature threshold can be set by the user, which is not limited here. For example, the preset temperature threshold may be in the range of -5-5 °C, such as -5 °C, 0 °C or 5 °C, etc. In this way, the corresponding verification method can be determined in combination with the ambient temperature, reducing the influence of the ambient temperature on the accuracy of the verification result. And, it reduces the influence of the ambient temperature on the performance of the receiving device, enabling the receiving device to have no high performance requirements, improving the yield rate of the receiving device products, and further reducing the production cost of the receiving device and saving resources.
[0084] In some other embodiments, the target verification method may include verifying the high level and the low level of the infrared signal respectively; the above step S104 may include: when it is determined that the width value of the high level of the infrared signal is within a third preset range and the width value of the low level of the infrared signal is within a fourth preset range, determining that the verification result of the infrared signal is normal.
[0085] In some other embodiments, the target verification method may include verifying the sum value of the high level and the low level of the infrared signal; the above step S104 may include: when it is determined that the sum value of the high level and the low level of the infrared signal is within a fifth preset range, determining that the verification result of the infrared signal is normal; the fifth preset range is greater than the third preset range; the fifth preset range is greater than the fourth preset range.
[0086] It should be noted that the above multiple preset ranges are all set by the user and are not limited here. Among them, the third preset range is greater than the standard range of the high level of the data code, and the fourth preset range is greater than the standard range of the low level of the data code. In this way, the threshold of the verification range is expanded, thereby improving the accuracy of the verification result.
[0087] For example, define the standard value of the high level width as H, and the corresponding standard range of the high level width is (H - Δ1, H + Δ2); the standard value of the low level width is L, and the corresponding standard range of the low level width is (L - Δ3, L + Δ4); the standard value of the sum width of the high level and the low level is A, A = H + L, and the corresponding standard range of the sum width is (A - Δ5, A + Δ6). Since the actual high level value or low level value of the received infrared signal is different from the standard value, here define the actual width value of the high level as H1, and the third preset range is (H - Δ7, H + Δ8); the actual width value of the low level is L1, and the fourth preset range is (L - Δ9, L + Δ10); the actual width value of the sum of the high level and the low level is A1, A1 = L1 + H1, and the fifth preset range is the same as the sum standard range, which is (A - Δ5, A + Δ6).
[0088] Among them, the third preset range (H - Δ7, H + Δ8) is smaller than the sum standard range (A - Δ5, A + Δ6); the fourth preset range (L - Δ9, L + Δ10) is smaller than the sum standard range (A - Δ5, A + Δ6). And, the third preset range (H - Δ7, H + Δ8) is greater than the high level standard range (H - Δ1, H + Δ2), and the fourth preset range (L - Δ9, L + Δ10) is greater than the low level standard range (L - Δ3, L + Δ4).
[0089] When it is determined that H1 is within the third preset range (H - Δ7, H + Δ8) and L1 is within the fourth preset range (L - Δ9, L + Δ10), it is determined that the verification result of the infrared signal is normal. Alternatively, when it is determined that A1 is within the sum value standard range (A - Δ5, A + Δ6), it is determined that the verification result of the infrared signal is normal.
[0090] In some embodiments, it is possible to determine whether the infrared signal includes an end code according to the ambient temperature. When it is determined that the ambient temperature is less than or equal to the first preset temperature threshold, the high level and the low level of the infrared signal are respectively verified to determine whether the infrared signal includes an end code. Alternatively, when it is determined that the ambient temperature is greater than the first preset temperature threshold, the sum value of the high level and the low level of the infrared signal is verified to determine whether the infrared signal includes an end code.
[0091] Exemplarily, when it is determined that the ambient temperature is less than or equal to the first preset temperature threshold, and it is determined that the width value of the high level of the infrared signal is within the first preset range and the width value of the low level of the infrared signal is within the second preset range, it is determined that the infrared signal includes an end code; when it is determined that the width value of the high level of the infrared signal is not within the first preset range and the width value of the low level of the infrared signal is not within the second preset range, it is determined that the infrared signal does not include an end code.
[0092] Moreover, when it is determined that the ambient temperature is greater than the first preset temperature threshold, and it is determined that the sum value of the high level and the low level of the infrared signal is within the sixth preset range, it is determined that the infrared signal includes an end code; when it is determined that the sum value of the high level and the low level of the infrared signal is not within the sixth preset range, it is determined that the infrared signal does not include an end code. Among them, the sixth preset range is greater than the first preset range; the sixth preset range is greater than the second preset range. In this way, it is possible to determine whether the infrared signal includes an end code in combination with the ambient temperature, avoiding the influence of the ambient temperature on the accuracy of the verification result.
[0093] In some other embodiments, it is possible to determine whether the infrared signal includes a start code in combination with the ambient temperature. It can be understood that the specific steps for determining the start code can be the same as the specific steps for determining the end code described above, and will not be elaborated here.
[0094] Figure 2 is a flowchart of another signal processing method shown according to an exemplary embodiment. As Figure 2 shown, the method may include the following steps:
[0095] S201. Obtain the infrared signal emitted by the target control device.
[0096] S202. Determine whether the infrared signal includes an end code.
[0097] If it is determined that the infrared signal does not include an end code, perform step S203;
[0098] If it is determined that the infrared signal includes an end code, return to step S201.
[0099] S203. Determine whether the signal type of the infrared signal is a data code according to the reception time interval between the infrared signal and the previously received historical infrared signal.
[0100] Wherein, the signal type includes a data code or a header code.
[0101] If it is determined that the signal type of the infrared signal is a data code, perform step S204;
[0102] If it is determined that the signal type of the infrared signal is not a data code, return to step S201.
[0103] S204. Obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located.
[0104] S205. Determine whether the ambient temperature is less than or equal to a preset temperature threshold.
[0105] If it is determined that the ambient temperature is less than or equal to the preset temperature threshold, perform steps S206 - S207;
[0106] If it is determined that the ambient temperature is greater than the preset temperature threshold, perform steps S208 - S209.
[0107] S206. Take the verification of the high level and the low level of the infrared signal respectively as the target verification method.
[0108] S207. If it is determined that the width value of the high level of the infrared signal is within a third preset range and the width value of the low level of the infrared signal is within a fourth preset range, determine that the verification result of the infrared signal is normal.
[0109] S208. Take the verification of the sum value of the high level and the low level of the infrared signal as the target verification method.
[0110] S209. If it is determined that the sum value of the high level and the low level of the infrared signal is within a fifth preset range, determine that the verification result of the infrared signal is normal.
[0111] Wherein, the fifth preset range is greater than the third preset range; the fifth preset range is greater than the fourth preset range.
[0112] Through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, reducing the influence of the ambient temperature on the performance of the verification device, reducing the equipment cost, and improving the accuracy of the verification result.
[0113] Figure 3 It is a block diagram of a signal processing device shown according to an exemplary embodiment. Refer to Figure 3 This device may include a first acquisition module 310, a second acquisition module 320, a determination module 330, and a verification module 340;
[0114] The first acquisition module 310 is configured to acquire an infrared signal emitted by a target control device; the target control device is used to control the air conditioner;
[0115] The second acquisition module 320 is configured to acquire the ambient temperature of the environment where the indoor unit of the air conditioner is located;
[0116] The determination module 330 is configured to determine a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal;
[0117] The verification module 340 is configured to verify the infrared signal according to the target verification method to obtain a verification result; the verification result is used to characterize whether the infrared signal is normal.
[0118] Through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, reducing the influence of the ambient temperature on the performance of the verification device, reducing the equipment cost, and improving the accuracy of the verification result.
[0119] Optionally, the second acquisition module 320 is configured to acquire the ambient temperature of the environment where the indoor unit of the air conditioner is located when it is determined that the signal type of the infrared signal is a data code.
[0120] Optionally, the signal type includes a header code or a data code; the signal type of the infrared signal is determined to be a data code by the following method:
[0121] When it is determined that the infrared signal does not include an end code, the signal type of the infrared signal is determined to be the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal.
[0122] Optionally, determining that the infrared signal does not include an end code includes:
[0123] When it is determined that the width value of the high level of the infrared signal is not within the first preset range and the width value of the low level of the infrared signal is not within the second preset range, it is determined that the infrared signal does not include the end code.
[0124] Optionally, determining that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the historical infrared signal received last time includes:
[0125] When it is determined that the reception time interval is less than or equal to a preset time threshold, determining that the signal type is the data code.
[0126] Optionally, the method further includes:
[0127] When it is determined that the reception time interval is greater than the preset time threshold, determining that the signal type is the header code.
[0128] Optionally, the determining module 330 is configured to, when it is determined that the ambient temperature is less than or equal to a preset temperature threshold, use separately verifying the high level and the low level of the infrared signal as the target verification method; or, when it is determined that the ambient temperature is greater than the preset temperature threshold, use verifying the sum value of the high level and the low level of the infrared signal as the target verification method.
[0129] Optionally, the target verification method includes separately verifying the high level and the low level of the infrared signal; the verification module 340 is configured to determine that the verification result of the infrared signal is normal when it is determined that the width value of the high level of the infrared signal is within a third preset range and the width value of the low level of the infrared signal is within a fourth preset range.
[0130] Optionally, the target verification method includes verifying the sum value of the high level and the low level of the infrared signal; the verification module 340 is configured to determine that the verification result of the infrared signal is normal when it is determined that the sum value of the high level and the low level of the infrared signal is within a fifth preset range; the fifth preset range is greater than the third preset range; the fifth preset range is greater than the fourth preset range.
[0131] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0132] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the signal processing method provided by the present disclosure are implemented.
[0133] In summary, the present disclosure provides a method, an apparatus, an electronic device, and a storage medium for signal processing; by obtaining an infrared signal emitted by a target control device, where the target control device is used to control the air conditioner; obtaining the ambient temperature of the environment where the indoor unit of the air conditioner is located; determining a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal; verifying the infrared signal according to the target verification method to obtain a verification result; the verification result is used to indicate whether the infrared signal is normal; through the above technical solution, the verification method of the infrared signal can be adjusted in combination with the ambient temperature, reducing the influence of the ambient temperature on the performance of the verification device, reducing the equipment cost, and improving the accuracy of the verification result.
[0134] Figure 4 FIG. 4 is a block diagram of an electronic device 400 shown according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an air conditioner, etc.
[0135] Referring to Figure 4 , the electronic device 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an input / output interface 412, a sensor component 414, and a communication component 416.
[0136] The processing component 402 generally controls the overall operation of the electronic device 400, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above signal processing method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0137] The memory 404 is configured to store various types of data to support the operation of the electronic device 400. Examples of such data include instructions for any application or method operating on the electronic device 400, contact data, phone book data, messages, pictures, videos, and the like. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0138] The power supply component 406 provides power to various components of the electronic device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 400.
[0139] The multimedia component 408 includes a screen that provides an output interface between the electronic device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of the touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the electronic device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0140] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 404 or transmitted via the communication component 416. In some embodiments, the audio component 410 further includes a speaker for outputting audio signals.
[0141] The input / output interface 412 provides an interface between the processing component 402 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.
[0142] The sensor assembly 414 includes one or more sensors for providing status assessment of various aspects for the electronic device 400. For example, the sensor assembly 414 can detect the on / off state of the electronic device 400, the relative positioning of components, such as the display and keypad of the electronic device 400. The sensor assembly 414 can also detect a change in the position of the electronic device 400 or a component of the electronic device 400, the presence or absence of user contact with the electronic device 400, the orientation or acceleration / deceleration of the electronic device 400, and the temperature change of the electronic device 400. The sensor assembly 414 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0143] The communication component 416 is configured to facilitate communication between the electronic device 400 and other devices in a wired or wireless manner. The electronic device 400 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0144] In an exemplary embodiment, the electronic device 400 can be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the signal processing methods described above.
[0145] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 404 including instructions, and the above instructions can be executed by the processor 420 of the electronic device 400 to complete the signal processing methods described above. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0146] Figure 5is a block diagram of another electronic device 500 shown in accordance with an exemplary embodiment. For example, the electronic device 500 may be provided as a server. Referring to Figure 5 , the electronic device 500 includes a processing component 522, which further includes one or more processors, and memory resources represented by a memory 532 for storing instructions executable by the processing component 522, such as application programs. The application programs stored in the memory 532 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 522 is configured to execute instructions to perform the signal processing method described above.
[0147] The electronic device 500 may also include a power component 526 configured to perform power management of the electronic device 500, a wired or wireless network interface 550 configured to connect the electronic device 500 to a network, and an input / output interface 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.
[0148] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0149] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A method for signal processing, characterized in that, Applied to an air conditioner, the method includes: Obtain an infrared signal transmitted by a target control device; the target control device is used to control the air conditioner; Obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located; Determine a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal; Verify the infrared signal according to the target verification method to obtain a verification result; the verification result is used to indicate whether the infrared signal is normal.
2. The method according to claim 1, characterized in that The signal type of the infrared signal includes a start code or a data code; the obtaining the ambient temperature of the environment where the indoor unit of the air conditioner is located includes: When it is determined that the signal type of the infrared signal is the data code, obtain the ambient temperature of the environment where the indoor unit of the air conditioner is located.
3. The method according to claim 2, wherein Determine that the signal type of the infrared signal is the data code in the following way: When it is determined that the infrared signal does not include an end code, determine that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal.
4. The method according to claim 3, characterized in that, Determining that the infrared signal does not include an end code includes: When it is determined that the width value of the high level of the infrared signal is not within a first preset range and the width value of the low level of the infrared signal is not within a second preset range, determine that the infrared signal does not include the end code.
5. The method according to claim 3, wherein The determining that the signal type of the infrared signal is the data code according to the reception time interval between the infrared signal and the previously received historical infrared signal includes: When it is determined that the reception time interval is less than or equal to a preset time threshold, determine that the signal type is the data code.
6. The method according to claim 5, characterized in that, The method further includes: When it is determined that the reception time interval is greater than the preset time threshold, determine that the signal type is the start code.
7. The method according to claim 1, characterized in that The determining the target verification method corresponding to the infrared signal according to the ambient temperature includes: When it is determined that the ambient temperature is less than or equal to a preset temperature threshold, use respectively verifying the high level and the low level of the infrared signal as the target verification method; or, When it is determined that the ambient temperature is greater than the preset temperature threshold, use verifying the sum value of the high level and the low level of the infrared signal as the target verification method.
8. The method according to claim 1, characterized in that The target verification method includes respectively verifying the high level and the low level of the infrared signal; the verifying the infrared signal according to the target verification method to obtain a verification result includes: When it is determined that the width value of the high level of the infrared signal is within a third preset range and the width value of the low level of the infrared signal is within a fourth preset range, determine that the verification result of the infrared signal is normal.
9. The method according to claim 1, wherein The target verification method includes verifying the sum value of the high level and the low level of the infrared signal; the verifying the infrared signal according to the target verification method to obtain a verification result includes: When it is determined that the sum value of the high level and the low level of the infrared signal is within a fifth preset range, it is determined that the verification result of the infrared signal is normal; the fifth preset range is greater than the third preset range; the fifth preset range is greater than the fourth preset range.
10. A signal processing device, characterized in that, The device includes: A first acquisition module configured to acquire an infrared signal emitted by a target control device; the target control device is used to control the air conditioner; A second acquisition module configured to acquire the ambient temperature of the environment where the indoor unit of the air conditioner is located; A determination module configured to determine a target verification method corresponding to the infrared signal according to the ambient temperature; the target verification method includes respectively verifying the high level and the low level of the infrared signal; or, verifying the sum value of the high level and the low level of the infrared signal; A verification module configured to verify the infrared signal according to the target verification method to obtain a verification result; the verification result is used to indicate whether the infrared signal is normal.
11. An electronic device, characterized in that, It includes: A processor; A memory for storing instructions executable by the processor; Wherein, the processor is configured to implement the steps of the method according to any one of claims 1-9 when executed.
12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method according to any one of claims 1-9 are implemented.
Citation Information
Patent Citations
Detection method and processing method for temperature drift of sensor of unmanned aerial vehicle and electronic device
CN111442860A
Method for RFID tag to automatically send sensor data code stream
CN116796780A
Remote control receiver
JP2003143668A
Correction method of infrared sensor signal and temperature measuring method, and temperature measuring device
JP2012078160A
Synchronized offset extraction in a data receiver
US5311554A