Equipment signal interference detection method and circuit and equipment control method
By converting the sensor output signal into current and voltage signals, the processing unit is used to detect whether the equipment is disturbed, and the problem of low detection accuracy in the prior art is solved, and more accurate interference detection and equipment control is achieved, ensuring that the equipment is in an interference environment stable operation.
Patent Information
- Application Number
- CN202411072609.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-12-20
AI Technical Summary
In the prior art, the accuracy of detecting whether sensor signal transmission is disturbed is low, which depends on the empirical judgment of the detector, resulting in the incredible detection results.
By obtaining the sensor output signal set in the device, converting it into a current signal and a voltage signal, and transmitting it to the processing unit, determining whether the device is disturbed by the signal based on the received signal, and using the anti-interference ability of the current signal to detect the signal more accurately transmission.
The detection accuracy of whether the sensor signal transmission is disturbed is improved, and it can more quickly determine whether the device is disturbed by signal, and control the device to operate through the historical output signal in the case of interference to ensure the normal operation of the device.
Smart Images

Figure CN119165262A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a detection method, circuit and device control method for device signal interference. Background Art
[0002] As people's usage needs continue to develop, devices may be used in various harsh environments. In some strong electromagnetic environments, the output signal transmission of sensors installed in the device may be abnormal, which may lead to device operation failure. For example, the output signals of sensors installed in air conditioning equipment, smart refrigerators, vehicles and other equipment may be subject to the above interference.
[0003] In the related art, whether the sensor signal transmission is interfered is usually determined by waveform analysis of the transmitted signal, etc. However, the above detection method usually needs to rely on the experience and judgment of the detection personnel, which results in low accuracy in detecting whether the sensor signal transmission is interfered. Summary of the invention
[0004] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a method, circuit and device control method for detecting device signal interference.
[0005] In a first aspect, an embodiment of the present application provides a method for detecting device signal interference, the method comprising:
[0006] Obtaining an output signal of a sensor provided in the device;
[0007] Converting the output signal into a first current signal and a first voltage signal;
[0008] transmitting the first current signal and the first voltage signal to a processing unit provided in the device;
[0009] Based on the first current signal and the first voltage signal received by the processing unit, it is determined whether the device is subject to signal interference.
[0010] In a possible implementation, determining whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit includes:
[0011] converting the first current signal received by the processing unit into a second voltage signal;
[0012] determining a first voltage represented by a first voltage signal received by the processing unit, and a second voltage represented by the second voltage signal;
[0013] Based on the first voltage and the second voltage, it is determined whether the device is subject to signal interference.
[0014] In a possible implementation, determining whether the device is subject to signal interference based on the first voltage and the second voltage includes:
[0015] determining an error between the first voltage and the second voltage;
[0016] When the error is less than or equal to a first error threshold, determining that the device is not subject to signal interference;
[0017] When the error is greater than the first error threshold, it is determined that the device is subject to signal interference.
[0018] In a possible implementation manner, when the error is greater than the first error threshold, the method further includes:
[0019] determining whether the error is greater than a second error threshold, wherein the second error threshold is greater than the first error threshold;
[0020] When the error is greater than the second error threshold, interference intensity of signal interference suffered by the device is determined based on the error.
[0021] In a second aspect, an embodiment of the present application provides a device control method, the method comprising:
[0022] Using the device signal interference detection method of the first aspect above, detecting whether the device is subject to signal interference;
[0023] In the case where the device is subject to signal interference, obtaining a historical output signal of a sensor provided in the device; wherein the historical output signal represents: an output signal of the sensor at a historical time when the device is not subject to signal interference;
[0024] The processing unit processes the historical output signal to control the operation of the device.
[0025] In a possible implementation manner, when the device is subject to signal interference, the method further includes:
[0026] Determine, from a preset signal value interval set, a signal value interval to which a signal value represented by each actual output signal output by the sensor in a target time period belongs, and obtain a signal value interval corresponding to each actual output signal;
[0027] Determine the number of data output signals corresponding to each signal value interval in the preset signal value interval set to obtain the number corresponding to each signal value interval;
[0028] Determine the number with the largest value from among the obtained numbers;
[0029] Based on each actual output signal corresponding to the signal value interval corresponding to the number of the largest values, interference data when the device is subject to signal interference is determined.
[0030] In a third aspect, an embodiment of the present application provides a device signal interference detection circuit, wherein the device signal interference detection circuit includes a conversion unit and a processing unit;
[0031] The conversion unit is respectively connected to the sensor and the processing unit provided in the device;
[0032] The conversion unit is used to: obtain the output signal of the sensor; convert the output signal into a first current signal and a first voltage signal; and transmit the first current signal and the first voltage signal to the processing unit;
[0033] The processing unit is used to determine whether the device is subject to signal interference based on a first current signal and a first voltage signal received by the processing unit.
[0034] In a possible implementation, the conversion unit includes a voltage conversion module and a current conversion module;
[0035] The voltage conversion module is connected to the sensor and the current conversion module respectively;
[0036] The current conversion module is also connected to the processing unit;
[0037] The voltage conversion module is used to: convert the output signal into a first voltage signal;
[0038] The current conversion module is used to convert the output signal into a first current signal.
[0039] In a possible implementation, the voltage conversion module includes a first resistor, a second resistor and a capacitor;
[0040] The first end of the first resistor is respectively connected to the first end of the sensor and the first end of the capacitor;
[0041] The second end of the first resistor is connected to the first end of the second resistor;
[0042] The second end of the capacitor is respectively connected to the ground end, the second end of the second resistor and the current conversion module.
[0043] In a possible implementation manner, the current conversion module includes a third resistor, a fourth resistor, a voltage follower and a field effect transistor;
[0044] The first end of the voltage follower is connected to the voltage conversion module, the second end is connected to the first end of the third resistor, the third end is connected to the voltage conversion module, the fourth end is connected to the first end of the third resistor, and the fifth end is connected to the power supply end;
[0045] The first end of the field effect tube is connected to the second end of the third resistor, the second end is connected to the first end of the fourth resistor, and the third end is connected to the power supply end;
[0046] The second end of the fourth resistor is connected to the processing unit.
[0047] In a fourth aspect, an embodiment of the present application provides an electronic device, including:
[0048] Memory for storing computer programs;
[0049] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method for detecting device signal interference in the first aspect of the present application or the method for controlling the device in the second aspect of the present application is implemented.
[0050] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements a method for detecting device signal interference in the first aspect or a method in any embodiment of the device control method in the second aspect.
[0051] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer-readable code. When the computer-readable code is executed on a device, a processor in the device implements a method for detecting device signal interference in the first aspect or a method in any embodiment of the device control method in the second aspect.
[0052] The device signal interference detection method provided in the embodiment of the present application can obtain the output signal of the sensor set in the device, and then convert the output signal into a first current signal and a first voltage signal, and then transmit the first current signal and the first voltage signal to the processing unit set in the device, and then determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit. Therefore, after the output signal of the sensor is transmitted to the processing unit, it can be determined whether the device is subject to interference by analyzing the first current signal and the first voltage signal received by the processing unit, so that the strong anti-interference ability of the current signal can be used to more accurately detect whether the sensor signal transmission is subject to interference.
[0053] The device control method provided in the embodiment of the present application adopts the above-mentioned device signal interference detection method to detect whether the device is subject to signal interference. Then, when the device is subject to signal interference, the historical output signal of the sensor set in the device is obtained; wherein the historical output signal represents: the output signal of the sensor at the historical time when the device was not subject to signal interference, and then the operation of the device is controlled by the processing unit to process the historical output signal. Thus, when the device is subject to signal interference, the processing unit set in the control device can process the historical output signal of the sensor when it is not subject to signal interference, thereby ensuring the normal operation of the device during the signal interference period.
[0054] The device signal interference detection circuit provided in the embodiment of the present application includes a conversion unit and a processing unit; the conversion unit is respectively connected to the sensor set in the device and the processing unit; the conversion unit is used to: obtain the output signal of the sensor; convert the output signal into a first current signal and a first voltage signal; transmit the first current signal and the first voltage signal to the processing unit; the processing unit is used to: determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit. Therefore, after the output signal of the sensor is transmitted to the processing unit, it can be determined whether the device is subject to interference by analyzing the first current signal and the first voltage signal received by the processing unit, so that the strong anti-interference ability of the current signal can be used to more accurately detect whether the sensor signal transmission is subject to interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0057] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0058] Figure 1 A schematic diagram of a flow chart of a method for detecting device signal interference provided in an embodiment of the present application;
[0059] Figure 2A schematic diagram of a flow chart of a device control method provided in an embodiment of the present application;
[0060] Figure 3 A schematic diagram of the structure of a device signal interference detection circuit provided in an embodiment of the present application;
[0061] Figure 4A A schematic diagram of the structure of a device provided with a device signal interference detection circuit provided in an embodiment of the present application;
[0062] Figure 4B A schematic diagram of a flow chart of a device control method provided in an embodiment of the present application;
[0063] Figure 4C A schematic diagram of the structure of a device signal interference detection circuit provided in an embodiment of the present application;
[0064] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0066] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0067] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0068] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0069] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0070] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0071] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0072] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0073] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0074] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0075] In order to solve the technical problem of low accuracy in detecting whether sensor signal transmission is interfered with in the prior art, the present application provides a device signal interference detection method, circuit and device control method, which can more accurately detect whether sensor signal transmission is interfered with.
[0076] Figure 1 A flow chart of a method for detecting device signal interference provided in an embodiment of the present application. This method can be applied to one or more electronic devices such as air conditioning devices, smart refrigerators, vehicles, smart phones, laptops, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0077] like Figure 1 As shown, the method specifically includes:
[0078] Step 101, obtaining an output signal of a sensor provided in the device.
[0079] In this embodiment, the above-mentioned devices may include but are not limited to the following devices equipped with sensors: air conditioning devices, smart refrigerators, vehicles, smart phones, laptop computers, etc.
[0080] The sensor may be a sensor that outputs a current signal or a sensor that outputs a voltage signal. As an example, the sensor may be a pressure sensor, a temperature sensor, or the like.
[0081] The output signal may be analog data output by the sensor. As an example, the output signal may be a current signal or a voltage signal.
[0082] Step 102: convert the output signal into a first current signal and a first voltage signal.
[0083] In this embodiment, when the output signal is a current signal, the output signal can be used as a first current signal, and the output signal can be converted into a voltage signal to obtain a first voltage signal. When the output signal is a voltage signal, the output signal can be used as a first voltage signal, and the output signal can be converted into a current signal to obtain a first current signal.
[0084] The first voltage signal may be a voltage signal obtained by converting the output signal.
[0085] The first current signal may be a current signal obtained by converting the output signal.
[0086] Step 103: Transmit the first current signal and the first voltage signal to a processing unit provided in the device.
[0087] In this embodiment, the device is further provided with a processing unit. As an example, the processing unit may be any unit for processing the output signal of the sensor, for example, the processing unit may be a CPU (Central Processing Unit), an MCU (Microprocessor Unit), a processing chip, etc.
[0088] Step 104: Determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit.
[0089] In this embodiment, multiple methods may be used to determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit.
[0090] In some optional implementations of this embodiment, the following method may be used to determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit:
[0091] The first step is to convert the first current signal received by the processing unit into a second voltage signal.
[0092] Here, the second voltage signal may be a voltage signal obtained by converting the first current signal received by the processing unit.
[0093] As an example, the first current signal may be converted into the second voltage signal by using a resistance method, an operational amplifier method, a current mutual inductance method, or the like.
[0094] The second step is to determine a first voltage represented by the first voltage signal received by the processing unit and a second voltage represented by the second voltage signal.
[0095] The first voltage may be a voltage value represented by a first voltage signal received by the processing unit, and the second voltage may be a voltage value represented by a second voltage signal.
[0096] In a third step, based on the first voltage and the second voltage, determining whether the device is subject to signal interference.
[0097] Here, whether the device is subject to signal interference may be determined by comparing and analyzing the first voltage and the second voltage.
[0098] As an example, whether the device is subject to signal interference may be determined by a difference between the first voltage and the second voltage.
[0099] It can be understood that in the above-mentioned optional implementation method, the first current signal received by the processing unit can be converted into a second voltage signal, and then the first voltage represented by the first voltage signal and the second voltage represented by the second voltage signal are analyzed. This can more intuitively determine whether the voltage signal is interfered with, thereby improving the accuracy of detecting whether the sensor signal transmission is interfered with.
[0100] In some application scenarios of the above optional implementation manners, the following manner may also be used to determine whether the device is subject to signal interference based on the first voltage and the second voltage:
[0101] In a first step, an error between the first voltage and the second voltage is determined.
[0102] The error between the first voltage and the second voltage may be a relative error or an absolute error between the first voltage and the second voltage.
[0103] In the second step, when the error is less than or equal to a first error threshold, it is determined that the device is not subject to signal interference.
[0104] The first error threshold may be a preset error value.
[0105] In a third step, when the error is greater than the first error threshold, it is determined that the device is subject to signal interference.
[0106] It can be understood that in the above application scenario, it is possible to more quickly determine whether the device is subject to signal interference by determining the error between the first voltage and the second voltage, and the magnitude relationship between the first error thresholds.
[0107] In some cases of the above application scenarios, when the error is greater than the first error threshold, the following steps may also be performed:
[0108] In the first step, it is determined whether the error is greater than a second error threshold.
[0109] The second error threshold is greater than the first error threshold.
[0110] In a second step, when the error is greater than the second error threshold, the interference intensity of the signal interference suffered by the device is determined based on the error.
[0111] As an example, the error may be determined as the interference intensity of the signal interference suffered by the device.
[0112] As another example, the interference intensity corresponding to the error may be determined based on a preset correspondence table, so that the determined interference intensity may be determined as the interference intensity of the signal interference suffered by the device.
[0113] The above correspondence table may represent the correspondence between the error and the interference intensity.
[0114] It can be understood that when the error between the first voltage and the second voltage is large, it can usually be said that the output signal of the sensor is subject to large interference. Therefore, the interference intensity of the signal interference suffered by the device in this case can be further determined, so that the user can understand the intensity of the signal interference suffered by the device more promptly.
[0115] In some optional implementations of this embodiment, the following method may be used to determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit:
[0116] The first step is to convert the first voltage signal received by the processing unit into a second current signal.
[0117] Here, the second current signal may be a current signal obtained by converting the first voltage signal received by the processing unit.
[0118] As an example, the first voltage signal may be converted into the second current signal by an operational amplifier current source circuit, a transistor circuit, an integrated voltage-current conversion chip, or the like.
[0119] The second step is to determine a first current represented by the first current signal received by the processing unit and a second current represented by the second current signal.
[0120] The first current may be a current value represented by a first current signal received by the processing unit, and the second current may be a current value represented by a second current signal.
[0121] In a third step, based on the first current and the second current, determining whether the device is subject to signal interference.
[0122] Here, whether the device is subject to signal interference can be determined by comparing and analyzing the first current and the second current.
[0123] The device signal interference detection method provided in the embodiment of the present application can obtain the output signal of the sensor set in the device, and then convert the output signal into a first current signal and a first voltage signal, and then transmit the first current signal and the first voltage signal to the processing unit set in the device, and then determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit. Therefore, after the output signal of the sensor is transmitted to the processing unit, it can be determined whether the device is subject to interference by analyzing the first current signal and the first voltage signal received by the processing unit, so that the strong anti-interference ability of the current signal can be used to more accurately detect whether the sensor signal transmission is subject to interference.
[0124] Figure 2 A schematic diagram of a device control method provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0125] Step 201: Use a device signal interference detection method to detect whether the device is subject to signal interference.
[0126] In this embodiment, the device signal interference detection method described in any of the above embodiments may be used to detect whether the device is subject to signal interference. For details, please refer to the above content, which will not be repeated here for the sake of brevity.
[0127] Step 202, when the device is subject to signal interference, obtain a historical output signal of a sensor provided in the device; wherein the historical output signal represents: an output signal of the sensor at a historical time when the device is not subject to signal interference.
[0128] In this embodiment, the output signals of the set sensors can be recorded and counted. For example, each output signal output by the sensor, the time when the output signal is output, and whether the device is subject to signal interference at that time can be recorded. Among them, the above-mentioned device signal interference detection method can be used to determine whether the device is subject to signal interference at that time.
[0129] Furthermore, when the device is subject to signal interference, the output signal of the sensor at a historical time when the device was not subject to signal interference can be determined and obtained from the recorded output signal, thereby obtaining a historical output signal.
[0130] Here, the output signal of the sensor at any historical time when the device is not interfered with by signals can be obtained, and thus used as a historical output signal; or the output signal of the sensor at a historical time when the device is not interfered with by signals and is closest to the current moment can be obtained, and thus used as a historical output signal.
[0131] Step 203: Control the operation of the device by processing the historical output signal through the processing unit.
[0132] In this embodiment, after obtaining the historical output signal, the processing unit can be controlled to process the historical output signal so as to control the device to operate according to the output signal when it is not interfered by the signal.
[0133] In some optional implementations of this embodiment, when the device is subject to signal interference, the following steps may also be performed:
[0134] The first step is to determine, from a preset signal value interval set, a signal value interval to which a signal value represented by each actual output signal output by the sensor in a target time period belongs, and obtain a signal value interval corresponding to each actual output signal.
[0135] Among them, the preset signal value interval set may include at least two signal value intervals. The signal value interval included in the preset signal value interval set may be a signal value interval that is not disturbed or a signal value interval that is disturbed. As an example, in the case where the above-mentioned sensor is a pressure sensor, since the voltage represented by the output signal of the pressure sensor is 0 to 5V (volts), the preset signal value interval set can be set to include the following three signal value intervals: 0 to 2V, 2V to 3V, and 3V to 5V. Among them, 0 to 2V is low voltage, 2V to 3V is normal working voltage, and 3V to 5V is high voltage.
[0136] The start time of the target time period may be the time when the device is continuously subjected to signal interference for a preset time period (e.g., 3 seconds). The target time period may be a predetermined time period or a time period determined based on the number of actual output signals obtained. For example, the target time period may be a time period corresponding to when the number of actual output signals obtained reaches a preset number (e.g., 30).
[0137] The actual output signal may be a signal actually output by the sensor during the target time period, and may belong to any signal value interval in the set of preset signal value intervals.
[0138] Here, each actual output signal may correspond to (ie belong to) a signal value interval.
[0139] The second step is to determine the number of data output signals corresponding to each signal value interval in the preset signal value interval set, and obtain the number corresponding to each signal value interval.
[0140] After determining the signal value interval to which each actual output signal can correspond, the number of data output signals corresponding to each signal value interval in the preset signal value interval set can be determined, thereby obtaining the number corresponding to each signal value interval.
[0141] Here, each signal value interval may correspond to a quantity, which indicates the number of actual output signals corresponding to the signal value interval.
[0142] The third step is to determine the number with the largest value from among the obtained numbers.
[0143] The fourth step is to determine interference data when the device is subject to signal interference based on each actual output signal corresponding to the signal value interval corresponding to the number of the largest values.
[0144] As an example, the mean value of the signal values respectively represented by the actual output signals corresponding to the signal value interval corresponding to the number of the largest values may be calculated, so as to determine the mean value as the interference data when the device is subject to signal interference.
[0145] As another example, the child may calculate the median of the signal values respectively represented by the actual output signals corresponding to the signal value interval corresponding to the number with the largest value, thereby determining the median as the interference data when the device is subject to signal interference.
[0146] It is understandable that, during the period when the device is subject to signal interference, the output signal of its sensor is unstable, for example, the output signal is sometimes normal and sometimes abnormal, and there may be a large jump. Therefore, in the above optional implementation, by dividing the signal value interval and selecting the signal value interval corresponding to the largest number of actual output signals, and then using each actual output signal corresponding to the signal value interval to determine the interference data, the interference data can be collected more conveniently and accurately.
[0147] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to the technical effect of the detection method of device signal interference shown in Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0148] The device control method provided in the embodiment of the present application adopts the above-mentioned device signal interference detection method to detect whether the device is subject to signal interference. Then, when the device is subject to signal interference, the historical output signal of the sensor set in the device is obtained; wherein the historical output signal represents: the output signal of the sensor at the historical time when the device was not subject to signal interference, and then the operation of the device is controlled by the processing unit to process the historical output signal. Thus, when the device is subject to signal interference, the processing unit set in the control device can process the historical output signal of the sensor when it is not subject to signal interference, thereby ensuring the normal operation of the device during the signal interference period.
[0149] Figure 3 This is a schematic diagram of a device signal interference detection circuit provided in an embodiment of the present application. Figure 3 As shown, the device signal interference detection circuit includes a conversion unit 10 and a processing unit 20.
[0150] The conversion unit 10 is respectively connected to the sensor 30 and the processing unit 20 provided in the device.
[0151] The conversion unit 10 is used to: obtain the output signal of the sensor 30 , convert the output signal into a first current signal and a first voltage signal, and transmit the first current signal and the first voltage signal to the processing unit 20 .
[0152] The processing unit 20 is used to determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit 20.
[0153] Here, the sensor 30 represented by the dotted line in the figure may not belong to the structure included in the detection circuit of the above-mentioned device signal interference.
[0154] In some optional implementations of this embodiment, the conversion unit 10 includes a voltage conversion module 11 and a current conversion module 12 .
[0155] The voltage conversion module 11 is connected to the sensor 30 and the current conversion module 12 respectively.
[0156] The current conversion module 12 is also connected to the processing unit 20 .
[0157] The voltage conversion module 11 is used to convert the output signal into a first voltage signal.
[0158] The current conversion module 12 is used to convert the output signal into a first current signal.
[0159] It can be understood that in the above optional implementation, the output signal of the sensor is converted into a first voltage signal by the voltage conversion module 11, and the output signal of the sensor is converted into a first current signal by the current conversion module 12. Thus, the output signal of the sensor can be converted into two signals, so that by subsequently analyzing the two signals, it is possible to more accurately determine whether the device is subject to signal interference.
[0160] See below Figure 4C In some application scenarios of the above optional implementations, the voltage conversion module 11 includes a first resistor R1, a second resistor R2 and a capacitor C.
[0161] The first end of the first resistor R1 is connected to the sensor 30 and the first end of the capacitor C respectively.
[0162] The second end of the first resistor R1 is connected to the first end of the second resistor R2.
[0163] The second end of the capacitor C is respectively connected to the ground, the second end of the second resistor R2 and the current conversion module 12 .
[0164] It can be understood that in the above application scenario, the voltage conversion module 11 can output a voltage signal, the front-end capacitor C and the resistor R1 play a role in filtering out high-frequency noise in a high-interference environment, and the back-end resistor R2 is used to sample the signal and output the first voltage signal. Therefore, by subsequently analyzing the first voltage signal and the first current signal after filtering out the high-frequency noise, the accuracy of determining whether the device is subject to signal interference can be further improved.
[0165] In some application scenarios of the above optional implementations, the current conversion module 12 includes a third resistor R3, a fourth resistor R4, a voltage follower U and a field effect transistor F.
[0166] The first end of the voltage follower U is connected to the voltage conversion module 11, the second end is connected to the first end of the third resistor R3, the third end is connected to the voltage conversion module 11, the fourth end is connected to the first end of the third resistor R3, and the fifth end is connected to the power supply end.
[0167] The first end of the field effect tube F is connected to the second end of the third resistor R3, the second end is connected to the first end of the fourth resistor R4, and the third end is connected to the power supply end.
[0168] A second end of the fourth resistor R4 is connected to the processing unit 20 .
[0169] It can be understood that in the above application scenario, the current conversion module 12 can output the first current signal, the front-end voltage follower U can output the voltage signal in a 1:1 ratio, the rear-end resistor R3 plays a current limiting role, and the field effect tube F controls the provision of the conversion voltage, which is then converted into the first current signal through the resistor R4. Therefore, the voltage follower can ensure that the output voltage follows the change of the input voltage and reduce voltage fluctuations, so as to further improve the accuracy of determining whether the device is interfered with by the signal.
[0170] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 , Figure 2 The corresponding technical features described in the corresponding embodiments are realized Figure 1 , Figure 2 For details, please refer to the technical effect of the detection method of device signal interference shown in Figure 1 , Figure 2 For the sake of brevity, the relevant description is not repeated here.
[0171] The device signal interference detection circuit provided in the embodiment of the present application includes a conversion unit and a processing unit; the conversion unit is respectively connected to the sensor set in the device and the processing unit; the conversion unit is used to: obtain the output signal of the sensor; convert the output signal into a first current signal and a first voltage signal; transmit the first current signal and the first voltage signal to the processing unit; the processing unit is used to: determine whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit. Therefore, after the output signal of the sensor is transmitted to the processing unit, it can be determined whether the device is subject to interference by analyzing the first current signal and the first voltage signal received by the processing unit, so that the strong anti-interference ability of the current signal can be used to more accurately detect whether the sensor signal transmission is subject to interference.
[0172] The following uses the above-mentioned device as an air conditioner as an example to exemplify the embodiments of the present application. However, it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0173] As people's usage needs continue to develop, air conditioners are used in various harsh environments. Strong electromagnetic environments can cause abnormal transmission of the signals (i.e., the above-mentioned output signals) of the sensors installed therein, which in turn lead to unit operation failures. Therefore, inventing a sensor and air conditioner that can still output stable signals in a strong interference environment is an urgent problem to be solved.
[0174] As the use scenarios of air conditioners become more and more complex, it is urgent to design an air conditioner that can operate stably in such an environment. This solution can not only determine whether there is strong electromagnetic interference in the current environment, but also memorize the analog parameters under different operating conditions (that is, the output signal of the above sensor). When there is strong electromagnetic interference, the stored parameters during the non-interference period (that is, the historical output signal of the above sensor) are called to control the operation of the air conditioner, thereby ensuring the stable operation of the unit.
[0175] The implementation of this solution may include a pressure sensor and a conversion unit. Regardless of whether the pressure sensor is a single current signal or a single voltage signal, the conversion unit converts it into two signals, one voltage signal (that is, the first voltage signal mentioned above) and one current signal (that is, the first current signal mentioned above. The conversion principle is shown in Figure 4A . Figure 4A A schematic diagram of the structure of a device provided with a device signal interference detection circuit provided in an embodiment of the present application.
[0176] exist Figure 4A In the present invention, an electric control box, a conversion unit and a sensor are arranged in the air conditioner. The electric control box includes a storage module and a processing unit. The processing unit is connected to the storage module and the conversion unit respectively. The conversion unit is also connected to the sensor.
[0177] Among them, the sensor can collect analog data (that is, the above-mentioned output signal, the current signal and voltage signal of the sensor) to represent the control state. The conversion unit can convert the single-channel signal output by the sensor into two different analog signals, that is, the above-mentioned first current signal and the first voltage signal. The processing unit can control the signal sent by the processing conversion unit. The storage module can store and record data, such as the output signal of the sensor.
[0178] When the air conditioner is running, the pressure sensor is used to detect the refrigerant pressure when the compressor is running. The conversion unit is close to the pressure sensor and converts the signal transmitted by the pressure sensor. Regardless of whether a current type or a voltage type sensor is used, the conversion unit can output two signals, one is a voltage signal (that is, the first voltage signal mentioned above), and the other is a current signal (that is, the first current signal mentioned above), which are transmitted to the processing unit in the electric control box. When there is strong interference, the voltage signal (that is, the first voltage signal mentioned above) converted by the pressure sensor outside the electric control box through the signal converter will have an abnormal level, while the converted current signal (that is, the first current signal mentioned above) has strong anti-interference ability and will not be affected in a strong interference environment. After the two signals are transmitted to the control chip (that is, the processing unit mentioned above), they are converted into voltage signals (that is, the first voltage signal and the second voltage signal mentioned above) through the circuit, and the voltage comparison is used to determine whether there is interference and the intensity of the interference.
[0179] For example, you can use Calculate the first voltage V represented by the first voltage signal 压 and the second voltage V represented by the second voltage signal 流 The error ΔV between them.
[0180] If the error is less than or equal to the first error threshold, there is no interference, if it is greater than the first error threshold, it is determined that there is interference, and if the error is greater than the second error threshold, the magnitude of the interference intensity is fed back, wherein the second error threshold is greater than the first error threshold.
[0181] like Figure 4C As shown, no matter what type of sensor output is, it is converted into a voltage signal through the voltage conversion module 11, outputted in one direction, and flows to the current conversion module 12 for current conversion, and the voltage follower U and the field effect transistor F perform 1:1 signal conversion and output to the electric control box processing unit 20. The processing unit 20 receives the current signal and samples it through the controller circuit using resistance, and converts the current signal into a voltage signal.
[0182] The function of the voltage follower is to output a voltage signal in a 1:1 ratio, and the field effect transistor is used to provide the current and voltage required for the output.
[0183] Please continue to see Figure 4B, when the air conditioner is running, the above method can be used to determine whether the air conditioner is operating normally, that is, whether there is interference. When there is no interference from the outside, the air conditioner unit will collect and record the operating values of other signal analog quantities during normal operation (that is, the signal value represented by the above historical output signal) based on the time and the analog quantity of the pressure sensor and record the data to the storage module. When there is instantaneous interference from the outside, the processing unit 20 can eliminate all other analog data at this time and use the data before the interference (that is, the signal value represented by the above historical output signal) as the basis for operation. When there is long-term interference from the outside, the processing unit 20 can divide the analog data into lower limit, middle limit, and upper limit data collection intervals, that is, the above-mentioned preset signal value interval set, and the interval division is set according to the working characteristics of the sensor or temperature sensing package itself and the threshold warning characteristics. For example, the middle limit interval can be used as a normal working interval, and the lower limit and upper limit can be used as extreme working conditions or fault warnings. The interval threshold is preset in advance according to the system operation, and the collected data is distributed in three intervals. The interval with the most data is first used to judge the unit operation, and then the average processing is performed on this interval data as a simulated acquisition signal. For example: the analog signal that the pressure sensor can transmit is 0~5V. According to the system operation judgment basis, 0~2V is set as low voltage, 2V~3V is set as normal operation, and 3V~5V is set as high voltage. Continuously detect for 3S and take the interval with the most data among the three intervals. The data recorded in this interval is averaged as the operation basis of this pressure sensor.
[0184] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effect of the device signal interference detection method shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0185] The detection scheme for device signal interference provided in the embodiment of the present application can detect two outputs of the signal through the sensor, and enhance the anti-interference ability through signal conversion. It can be based on the difference in the detection of two-way signals of multiple sensors to determine whether it is interfered and the intensity of interference. The control system removes short-term abnormal signals, collects stable operation data, and sets the data collection interval for long-term interference. The collected data is divided into three intervals: lower limit, middle limit, and upper limit, and the interval with more data distribution is taken as the basis for operation. In this way, the sensor detection abnormality can be eliminated under the interference of strong electromagnetic environment to ensure the normal operation of the unit. This scheme can not only determine whether the air-conditioning unit is in a strong interference environment at that time, but also ensure that the unit eliminates the influence of abnormal sensor signals, thereby ensuring the normal and stable operation of the unit.
[0186] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0187] As an example, the above-mentioned electronic devices may include but are not limited to: air conditioning devices, smart watches, smart phones, vehicles, etc.
[0188] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0189] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0190] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0191] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0192] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0193] Obtaining an output signal of a sensor provided in the device;
[0194] Converting the output signal into a first current signal and a first voltage signal;
[0195] transmitting the first current signal and the first voltage signal to a processing unit provided in the device;
[0196] Based on the first current signal and the first voltage signal received by the processing unit, it is determined whether the device is subject to signal interference.
[0197] or,
[0198] Using the above-mentioned device signal interference detection method, detect whether the device is subject to signal interference;
[0199] In the case where the device is subject to signal interference, obtaining a historical output signal of a sensor provided in the device; wherein the historical output signal represents: an output signal of the sensor at a historical time when the device is not subject to signal interference;
[0200] The processing unit processes the historical output signal to control the operation of the device.
[0201] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0202] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0203] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0204] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all steps of the above-mentioned method for detecting signal interference of each device, thereby achieving the technical effect of the above-mentioned method for detecting signal interference of each device. Please refer to the above related description for details. For the sake of concise description, it will not be repeated here.
[0205] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0206] When one or more programs in the storage medium can be executed by one or more processors, the device signal interference detection method executed on the electronic device side can be implemented.
[0207] The processor is used to execute the device signal interference detection program stored in the memory to implement the following steps of the device signal interference detection method performed on the electronic device side:
[0208] Obtaining an output signal of a sensor provided in the device;
[0209] Converting the output signal into a first current signal and a first voltage signal;
[0210] transmitting the first current signal and the first voltage signal to a processing unit provided in the device;
[0211] Based on the first current signal and the first voltage signal received by the processing unit, it is determined whether the device is subject to signal interference.
[0212] Alternatively, the processor may also be used to execute the device control program stored in the memory to implement the following steps of the device control method executed on the electronic device side:
[0213] Using the above-mentioned device signal interference detection method, detect whether the device is subject to signal interference;
[0214] In the case where the device is subject to signal interference, obtaining a historical output signal of a sensor provided in the device; wherein the historical output signal represents: an output signal of the sensor at a historical time when the device is not subject to signal interference;
[0215] The processing unit processes the historical output signal to control the operation of the device.
[0216] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0217] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0218] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0219] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for detecting device signal interference, It is characterized in that The method comprises: Obtaining an output signal of a sensor provided in the device; Converting the output signal into a first current signal and a first voltage signal; transmitting the first current signal and the first voltage signal to a processing unit provided in the device; Based on the first current signal and the first voltage signal received by the processing unit, it is determined whether the device is subject to signal interference.
2. The method according to claim 1, It is characterized in that The determining whether the device is subject to signal interference based on the first current signal and the first voltage signal received by the processing unit includes: converting the first current signal received by the processing unit into a second voltage signal; determining a first voltage represented by a first voltage signal received by the processing unit, and a second voltage represented by the second voltage signal; Based on the first voltage and the second voltage, it is determined whether the device is subject to signal interference.
3. The method according to claim 2, It is characterized in that The determining, based on the first voltage and the second voltage, whether the device is subject to signal interference comprises: determining an error between the first voltage and the second voltage; When the error is less than or equal to a first error threshold, determining that the device is not subject to signal interference; When the error is greater than the first error threshold, it is determined that the device is subject to signal interference.
4. The method according to claim 3, It is characterized in that When the error is greater than the first error threshold, the method further includes: determining whether the error is greater than a second error threshold, wherein the second error threshold is greater than the first error threshold; When the error is greater than the second error threshold, interference intensity of signal interference suffered by the device is determined based on the error.
5. A device control method, It is characterized in that The method comprises: Adopting the device signal interference detection method according to any one of claims 1 to 4 above to detect whether the device is subject to signal interference; In the case where the device is subject to signal interference, obtaining a historical output signal of a sensor provided in the device; wherein the historical output signal represents: an output signal of the sensor at a historical time when the device is not subject to signal interference; The processing unit processes the historical output signal to control the operation of the device.
6. The method according to claim 5, It is characterized in that In the case where the device is subject to signal interference, the method further includes: Determine, from a preset signal value interval set, a signal value interval to which a signal value represented by each actual output signal output by the sensor in a target time period belongs, and obtain a signal value interval corresponding to each actual output signal; Determine the number of actual data output signals corresponding to each signal value interval in the preset signal value interval set to obtain the number corresponding to each signal value interval; Determine the number with the largest value from among the obtained numbers; Based on each actual output signal corresponding to the signal value interval corresponding to the number of the largest values, interference data when the device is subject to signal interference is determined.
7. A detection circuit for device signal interference, It is characterized in that The device signal interference detection circuit includes a conversion unit and a processing unit; The conversion unit is respectively connected to the sensor and the processing unit provided in the device; The conversion unit is used to: obtain the output signal of the sensor; convert the output signal into a first current signal and a first voltage signal; and transmit the first current signal and the first voltage signal to the processing unit; The processing unit is used to determine whether the device is subject to signal interference based on a first current signal and a first voltage signal received by the processing unit.
8. The device signal interference detection circuit according to claim 7, It is characterized in that The conversion unit includes a voltage conversion module and a current conversion module; The voltage conversion module is connected to the sensor and the current conversion module respectively; The current conversion module is also connected to the processing unit; The voltage conversion module is used to: convert the output signal into a first voltage signal; The current conversion module is used to convert the output signal into a first current signal.
9. The device signal interference detection circuit according to claim 8, It is characterized in that The voltage conversion module includes a first resistor, a second resistor and a capacitor; The first end of the first resistor is respectively connected to the first end of the sensor and the first end of the capacitor; The second end of the first resistor is connected to the first end of the second resistor; The second end of the capacitor is respectively connected to the ground end, the second end of the second resistor and the current conversion module.
10. The device signal interference detection circuit according to claim 8, It is characterized in that The current conversion module includes a third resistor, a fourth resistor, a voltage follower and a field effect transistor; The first end of the voltage follower is connected to the voltage conversion module, the second end is connected to the first end of the third resistor, the third end is connected to the voltage conversion module, the fourth end is connected to the first end of the third resistor, and the fifth end is connected to the power supply end; The first end of the field effect tube is connected to the second end of the third resistor, the second end is connected to the first end of the fourth resistor, and the third end is connected to the power supply end; The second end of the fourth resistor is connected to the processing unit.
