Sensor switching method
By using the switching method of the main sensor and the secondary sensor in the refrigeration system, comparing environmental data to locate the fault sensor, the problem of difficult sensor failure positioning is solved, and the effect of quickly troubleshooting and improving system reliability is achieved.
Patent Information
- Application Number
- CN202510109829.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-13
AI Technical Summary
In existing refrigeration systems, sensor fault location is difficult, which makes the system unable to quickly troubleshoot faults, affecting the refrigeration effect and equipment life.
The switching method of the main sensor and the secondary sensor is used to compare the environmental data collected by the two, the location of the faulty sensor is determined and the fault is quickly eliminated.
It realizes rapid positioning and elimination of sensor failures, ensures the rapid entry of the refrigeration system into use, and improves the reliability and stability of the system.
Smart Images

Figure CN119984366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field related to refrigeration equipment, and in particular to a sensor switching method. Background Art
[0002] The refrigeration industry, as an indispensable part of modern industry and life, is widely used in many fields such as food preservation, medical storage, air conditioning and refrigeration. In this industry, the importance of backup protection cannot be ignored, which is directly related to the stable operation of the system, the life of the equipment and the safety of use. There are many kinds of failures that may occur in the refrigeration system, which may affect the normal operation and refrigeration effect of the system and have a significant impact on the goods stored in the cold storage.
[0003] The more common faults include: damage to the temperature (humidity) sensor used to directly control the operation of the cold storage, resulting in loss of temperature in the storage, etc., so the reliability and stability of the refrigeration system are particularly critical.
[0004] The mainstream practice on the market is to equip the equipment with a variety of protection mechanisms. However, many of these protection mechanisms require shutdown for gradual self-inspection to determine the location of the fault. Therefore, it is relatively difficult to locate the fault, and it is impossible to eliminate the fault in time and put the system into use quickly. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a sensor switching method, which can well determine which sensor has a fault through comparison between the main sensor and the auxiliary sensor, and can easily locate the sensor and quickly eliminate the fault, so that the system can be quickly put into use again.
[0006] The present invention provides a sensor switching method, comprising at least two sensors, wherein the two sensors are respectively a main sensor and a secondary sensor, and comprises the following steps:
[0007] The main sensor and the auxiliary sensor respectively collect environmental data of the working area;
[0008] Comparing the environmental data collected by the main sensor and the auxiliary sensor, and outputting the comparison result;
[0009] The environmental data is output as the final data according to the comparison results.
[0010] In one embodiment, the main sensor and the auxiliary sensor respectively collect environmental data of the working area, further comprising:
[0011] The main sensor and the auxiliary sensor are arranged in working areas with the same or similar positions;
[0012] The environmental data of the working areas at the corresponding positions are collected respectively.
[0013] In one embodiment, comparing the environmental data collected by the primary sensor and the secondary sensor further includes:
[0014] Set the preset difference;
[0015] Calculating a comparison difference between the main sensor and the auxiliary sensor;
[0016] The absolute value of the comparison difference is compared with the preset difference, and a comparison result is output.
[0017] In one embodiment, comparing the absolute value of the comparison difference with the preset difference and outputting the comparison result further includes:
[0018] When the absolute value of the comparison difference is greater than the preset difference, outputting a result of sensor failure identification;
[0019] When the absolute value of the comparison difference is not greater than the preset difference, a normal comparison result of the sensor is output.
[0020] In one embodiment, outputting the environmental data as final data according to the comparison result further includes:
[0021] When the output comparison result shows that the sensor is normal, the environmental data collected by the main sensor is selected as the final data;
[0022] In the case where the output comparison result is a sensor failure, the environmental data collected by the main sensor and the auxiliary sensor are compared with the parameter setting data, and the final data is output based on the comparison result.
[0023] In one embodiment, the comparing the environmental data collected by the main sensor and the auxiliary sensor with the parameter setting data, and outputting the final data according to the comparison result, further includes:
[0024] Comparing the environmental data collected by the main sensor with the parameter setting data to obtain a first difference;
[0025] Comparing the environmental data collected by the secondary sensor with the parameter setting data to obtain a second difference;
[0026] According to the absolute values of the first difference and the second difference, corresponding environmental data are selected as final data.
[0027] In one embodiment, selecting corresponding environmental data as final data according to the absolute values of the first difference and the second difference further includes:
[0028] When the absolute value of the first difference is greater than the absolute value of the second difference, selecting the environmental data collected by the secondary sensor as the final data;
[0029] When the absolute value of the first difference is smaller than the absolute value of the second difference, the environmental data collected by the main sensor is selected as the final data.
[0030] In one embodiment, the switching method further includes:
[0031] The main sensor and the sub-sensor perform self-checks themselves.
[0032] In one embodiment, the main sensor and the auxiliary sensor perform self-checking, further comprising:
[0033] Set the self-test interval;
[0034] Acquire the self-test data collected by the main sensor and the auxiliary sensor at adjacent self-test intervals;
[0035] The self-test data of the main sensor and the auxiliary sensor at adjacent self-test intervals are compared respectively, and the self-test results are output according to the comparison results.
[0036] In one embodiment, outputting the self-test result according to the identification result further includes:
[0037] When the self-test data of adjacent self-test intervals of the main sensor are the same, and when the self-test data of adjacent self-test intervals of the auxiliary sensor are the same, it is determined that the main sensor and the auxiliary sensor are abnormal;
[0038] When the self-test data of adjacent self-test intervals of the main sensor are the same and the self-test data of adjacent self-test intervals of the auxiliary sensor are different, or when the self-test data of adjacent self-test intervals of the main sensor are different and the self-test data of adjacent self-test intervals of the auxiliary sensor are the same, increase the self-test frequency of the main sensor and the auxiliary sensor, and output the self-test result according to the self-test data within a preset time period;
[0039] When the self-test data of adjacent self-test intervals of the main sensor are different, and when the self-test data of adjacent self-test intervals of the subsidiary sensor are different, it is determined that the main sensor and the subsidiary sensor are normal.
[0040] The sensor switching method provided by the present invention can well judge the faulty sensor through the comparison between the main sensor and the auxiliary sensor, and can easily locate the sensor and quickly eliminate the fault, so that the system can be quickly put into use again. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A schematic flow chart of the sensor switching method provided by the present invention. DETAILED DESCRIPTION
[0043] The specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the description of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In the description of the present invention, unless otherwise clearly specified and limited, the terms "set", "install", "connection" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0045] The directions or positional relationships indicated by terms such as “upper”, “lower”, “left”, “right”, “front”, “back”, “top”, “bottom”, “inside” and “outside” are based on the directions or positional relationships shown in the accompanying drawings, or are the directions or positional relationships in which the inventive product is usually placed when used. They are only for the convenience of description and simplified description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0046] The terms "first", "second", "third", etc. are merely used to distinguish elements of similar nature, and do not indicate or imply relative importance or a particular order.
[0047] The terms "comprises," "comprising," or any other variations thereof, are intended to cover a non-exclusive inclusion of the elements listed and may also include additional elements not expressly listed.
[0048] Embodiment 1
[0049] See also Figure 1The sensor switching method provided by the present invention includes at least two sensors, where the two sensors are a main sensor and a sub-sensor.
[0050] It can be understood that the sensor can be various sensors such as temperature sensors and humidity sensors. The main sensor and the auxiliary sensor are arranged close to each other or at the same position. Therefore, under normal circumstances, the data detected by the main sensor and the auxiliary sensor are the same or the difference between the data detected by the main sensor and the auxiliary sensor is within a preset range. Each sensor has its own corresponding identifier, and the environmental data it obtains also has its own corresponding identifier.
[0051] The above method comprises the following steps:
[0052] S1, the main sensor and the auxiliary sensor collect environmental data of the working area respectively.
[0053] It is understandable that the above steps may further include:
[0054] S101, placing the main sensor and the auxiliary sensor in working areas that are at the same or close locations.
[0055] It can be understood that the reasons for the arrangement positions of the main sensor and the auxiliary sensor refer to the above description.
[0056] S102, collecting environmental data of the working areas at corresponding positions respectively.
[0057] It is understandable that the environmental data at the corresponding location may be parameters such as temperature or humidity.
[0058] S2, comparing the environmental data collected by the main sensor and the auxiliary sensor, and outputting the comparison result.
[0059] It is understandable that the above steps may further include:
[0060] S201, setting a preset difference.
[0061] It is understandable that the preset difference is set according to the position between the two sensors or the performance parameters of the sensors themselves, and may be a difference range.
[0062] S202, calculating the contrast difference between the main sensor and the auxiliary sensor.
[0063] It can be known that the contrast difference is obtained by subtracting the main sensor from the auxiliary sensor, and the contrast difference obtained by the subtraction result can be a positive value or a negative value.
[0064] S203, comparing the absolute value of the comparison difference with a preset difference, and outputting a comparison result.
[0065] It is understandable that the above steps may further include:
[0066] S203a, when the absolute value of the comparison difference is greater than the preset difference, output the sensor fault identification result.
[0067] It can be understood that, when the preset difference is a positive value, when the absolute value of the comparison difference is greater than the preset difference, it is considered that one of the main sensor and the auxiliary sensor has a problem, or both of them have a problem. When the main sensor and the auxiliary sensor have a problem, it can be manifested as the temperature data remaining at the data when it was damaged, or the limit value appears.
[0068] S203b: When the absolute value of the comparison difference is not greater than the preset difference, output the normal comparison result of the sensor.
[0069] It can be known that, in this case, it can be considered that there is no problem with the main sensor and the auxiliary sensor.
[0070] S3, outputting the environmental data as final data according to the comparison result.
[0071] S301, when the output comparison result shows that the sensor is normal, select the environmental data collected by the main sensor as the final data.
[0072] It can be understood that the environmental data collected by the main sensor is used as the final data.
[0073] S302: When the comparison result output is a sensor failure, the environmental data collected by the main sensor and the auxiliary sensor are compared with the parameter setting data, and final data is output according to the comparison result.
[0074] It is understandable that when the comparison result is a sensor failure, there are several ways in which the sensor fails:
[0075] 1. The main sensor is faulty, but the auxiliary sensor is normal;
[0076] 2. The auxiliary sensor is faulty, but the main sensor is normal;
[0077] 3. Both the main sensor and the auxiliary sensor are faulty.
[0078] The parameter setting data can be the conditions that you want to achieve in the environment during the environmental adjustment process, and can be set on the PLC controller.
[0079] The above step S302 may further include:
[0080] S302a, comparing the environmental data collected by the main sensor with the parameter setting data to obtain a first difference;
[0081] S302b, comparing the environmental data collected by the secondary sensor with the parameter setting data to obtain a second difference;
[0082] S302c: Select corresponding environmental data as final data according to the absolute values of the first difference and the second difference.
[0083] S302c1, when the absolute value of the first difference is greater than the absolute value of the second difference, selecting the environmental data collected by the secondary sensor as the final data;
[0084] S302c2: When the absolute value of the first difference is smaller than the absolute value of the second difference, select the environmental data collected by the main sensor as the final data.
[0085] It can be understood that there are two situations when a sensor fails. One is that the environmental data collected by the sensor remains in the situation when it is damaged. When it remains in the situation when it is damaged, its distance parameter setting data is greater than the data collected by the normal sensor. Because it is always in the adjustment process, the absolute value of the difference between the normal sensor and the environmental data is small. The other is that when it remains in the extreme data, the difference with the parameter setting data will be larger. Therefore, the larger the absolute value of the first difference and the second difference, the corresponding sensor is damaged. Of course, extreme situations are not excluded, that is, when both the main sensor and the auxiliary sensor are damaged. When both are damaged, there are also two situations. The first is two situations where the data are retained in the extreme data. The absolute values of the first difference and the second difference can be consistent. The second is that one is retained in the extreme case, and the other is maintained in the environmental data situation when it is damaged. This situation is extremely rare, so it is not considered in this embodiment.
[0086] Embodiment 2
[0087] The sensor switching method provided in this embodiment, in addition to the above steps, further includes:
[0088] The main sensor and sub sensor perform self-tests on themselves.
[0089] It can be known that self-checking can solve the extremely rare scenario described above, that is, the problem that both the main sensor and the auxiliary sensor are faulty. In this case, self-checking can be used to discover the abnormality itself.
[0090] The above self-check process may further include:
[0091] Set the self-test interval.
[0092] It is understandable that the self-check interval can be set according to actual needs.
[0093] Obtain the self-test data collected by the main sensor and the auxiliary sensor at adjacent self-test intervals;
[0094] The self-test data of the adjacent self-test intervals of the main sensor and the auxiliary sensor are compared respectively, and the self-test results are output according to the comparison results.
[0095] It is known that the above steps may further include:
[0096] When the self-test data of the main sensor at adjacent self-test intervals are the same, and when the self-test data of the auxiliary sensor at adjacent self-test intervals are the same, it is determined that the main sensor and the auxiliary sensor are abnormal.
[0097] It is understandable that when both are abnormal, the main sensor and the auxiliary sensor can be inspected and replaced.
[0098] When the self-test data of adjacent self-test intervals of the main sensor are the same and the self-test data of adjacent self-test intervals of the slave sensor are different, or when the self-test data of adjacent self-test intervals of the main sensor are different and the self-test data of adjacent self-test intervals of the slave sensor are the same, increase the self-test frequency of the main sensor and the slave sensor, and output the self-test results according to the self-test data within a preset time period.
[0099] It is understandable that, in this case, the data of the sensor with different self-test data can be used as the detected environmental data, and the self-test frequency can be increased to ultimately determine whether the corresponding sensor is damaged.
[0100] When the self-test data of the main sensor at adjacent self-test intervals are different, and when the self-test data of the sub-sensor at adjacent self-test intervals are different, it is determined that the main sensor and the sub-sensor are normal.
[0101] It can be known that when they are different, it can be determined that the main sensor and the auxiliary sensor are normal. The self-check process and the mutual check process in Example 1 are independent of each other, but when the self-check finds an abnormality, or the mutual check is abnormal, the corresponding sensor will be judged to be faulty.
[0102] From the above description, it can be known that the sensor switching method provided by the present invention can well determine the faulty sensor through the comparison between the main sensor and the auxiliary sensor, and it is simple to locate the sensor and can conveniently and quickly eliminate the fault, so that the system can be quickly put into use again.
[0103] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the attached claims.
Claims
1. A sensor switching method, characterized in that: The method comprises at least two sensors, the two sensors being a main sensor and a secondary sensor, and the steps are as follows: The main sensor and the auxiliary sensor respectively collect environmental data of the working area; Comparing the environmental data collected by the main sensor and the auxiliary sensor, and outputting the comparison result; The environmental data is output as the final data according to the comparison results.
2. The sensor switching method according to claim 1, characterized in that: The main sensor and the auxiliary sensor respectively collect environmental data of the working area, further comprising: The main sensor and the auxiliary sensor are arranged in working areas with the same or similar positions; The environmental data of the working areas at the corresponding positions are collected respectively.
3. The sensor switching method according to claim 1, characterized in that: The comparing the environmental data collected by the main sensor and the auxiliary sensor further includes: Set the preset difference; Calculating a comparison difference between the main sensor and the auxiliary sensor; The absolute value of the comparison difference is compared with the preset difference, and a comparison result is output.
4. The sensor switching method according to claim 3, characterized in that: The step of comparing the absolute value of the comparison difference with the preset difference and outputting the comparison result further includes: When the absolute value of the comparison difference is greater than the preset difference, outputting a result of sensor failure identification; When the absolute value of the comparison difference is not greater than the preset difference, a normal comparison result of the sensor is output.
5. The sensor switching method according to claim 1, characterized in that: The step of outputting the environmental data as final data according to the comparison result further includes: When the output comparison result shows that the sensor is normal, the environmental data collected by the main sensor is selected as the final data; In the case where the output comparison result is a sensor failure, the environmental data collected by the main sensor and the auxiliary sensor are compared with the parameter setting data, and the final data is output based on the comparison result.
6. The sensor switching method according to claim 5, characterized in that: The comparing the environmental data collected by the main sensor and the auxiliary sensor with the parameter setting data, and outputting the final data according to the comparison result, further includes: Comparing the environmental data collected by the main sensor with the parameter setting data to obtain a first difference; Comparing the environmental data collected by the secondary sensor with the parameter setting data to obtain a second difference; According to the absolute values of the first difference and the second difference, corresponding environmental data are selected as final data.
7. The sensor switching method according to claim 6, characterized in that: The selecting corresponding environmental data as final data according to the absolute values of the first difference and the second difference further includes: When the absolute value of the first difference is greater than the absolute value of the second difference, selecting the environmental data collected by the secondary sensor as the final data; When the absolute value of the first difference is smaller than the absolute value of the second difference, the environmental data collected by the main sensor is selected as the final data.
8. The sensor switching method according to claim 1, characterized in that: The switching method further includes: The main sensor and the sub-sensor perform self-checks themselves.
9. The sensor switching method according to claim 8, characterized in that: The main sensor and the auxiliary sensor perform self-test, further comprising: Set the self-test interval; Acquire the self-test data collected by the main sensor and the auxiliary sensor at adjacent self-test intervals; The self-test data of the main sensor and the auxiliary sensor at adjacent self-test intervals are compared respectively, and the self-test results are output according to the comparison results.
10. The sensor switching method according to claim 9, characterized in that: The step of outputting the self-test result according to the identification result further comprises: When the self-test data of adjacent self-test intervals of the main sensor are the same, and when the self-test data of adjacent self-test intervals of the auxiliary sensor are the same, it is determined that the main sensor and the auxiliary sensor are abnormal; When the self-test data of adjacent self-test intervals of the main sensor are the same and the self-test data of adjacent self-test intervals of the auxiliary sensor are different, or when the self-test data of adjacent self-test intervals of the main sensor are different and the self-test data of adjacent self-test intervals of the auxiliary sensor are the same, increase the self-test frequency of the main sensor and the auxiliary sensor, and output the self-test result according to the self-test data within a preset time period; When the self-test data of adjacent self-test intervals of the main sensor are different, and when the self-test data of adjacent self-test intervals of the subsidiary sensor are different, it is determined that the main sensor and the subsidiary sensor are normal.