Line switching method, apparatus, medium, and device
By using a control switch to selectively connect the temperature detection device in the air conditioner and automatically switching to the faulty device, the problem of temperature detection device failure at low temperatures is solved, achieving a balance between cost-effectiveness and system performance.
Patent Information
- Application Number
- CN202411864106.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In cold regions, temperature detection devices are prone to failure under harsh low-temperature conditions, leading to abnormal air conditioning operation. Existing solutions are costly or may affect system performance.
At least two temperature detection devices are used, and they are selectively connected or short-circuited by a control switch. When abnormal operating parameters are detected, the device automatically switches to the normal device to avoid failure of a single device and reduce costs.
This avoids equipment malfunctions caused by the failure of a single temperature detection device, reduces costs, eliminates the need for high-cost devices or redundant designs, and reduces the occupation of system resources.
Smart Images

Figure CN119755775B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of device control, in particular to the technical field of line switching, and specifically to a line switching method, device, medium and equipment. BACKGROUND
[0002] In some cold regions, when encountering low temperature in winter plus snow weather, the temperature detection device (such as a thermistor) commonly used in air conditioners to detect temperature changes will face harsh working conditions, and once the temperature detection device fails, it will cause the air conditioner to work abnormally. To solve this problem, a temperature detection device with stronger low-temperature resistance but higher cost is usually selected, or a redundant design of multiple temperature detection devices detecting a temperature parameter together is adopted, but such design will occupy more I / O interfaces of the single-chip microcomputer, causing system resource occupation. SUMMARY
[0003] Embodiments of the present application provide a line switching method, device, medium and equipment. The line switching method provided by the embodiments of the present application is used to solve the problem that the current countermeasures taken to improve the working stability of the temperature detection device have high cost or affect the system operation performance.
[0004] In an aspect, the embodiments of the present application provide a line switching method applied to an electronic device, the electronic device comprising at least two temperature detection devices, and a control switch is used to control the formation of a loop with only one of the temperature detection devices at a time, and the method comprises:
[0005] detecting whether a first running parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0006] if the first running parameter is abnormal, sending a control instruction to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device to form a loop with the control switch.
[0007] Further, in the line switching method described in the embodiments of the present application, under the control of the control switch, one of the at least two temperature detection devices is selectively connected or selectively short-circuited with the control switch.
[0008] Further, in the line switching method described in the embodiments of the present application, the detection of whether the first running parameter of the first temperature detection device currently forming a loop with the control switch is abnormal comprises:
[0009] detecting a first running parameter of a first temperature detection device currently forming a loop with the control switch;
[0010] if the first operating parameter exceeds a first threshold value or is less than a second threshold value, determining that the first operating parameter is abnormal, wherein the first threshold value is greater than the second threshold value;
[0011] if the first operating parameter exceeds the second threshold value and is less than or equal to the first threshold value, determining that the first operating parameter is normal.
[0012] Further, in the line switching method described in the embodiments of the present application, after the if the first operating parameter is abnormal, the control switch is controlled to be disconnected from the first temperature detection device, and is switched to be connected to the second temperature detection device to form a loop, the method further comprises:
[0013] detecting whether a second operating parameter of the second temperature detection device is abnormal;
[0014] if the second operating parameter is abnormal, determining that all the temperature detection devices or the control switch are damaged.
[0015] Further, in the line switching method described in the embodiments of the present application, when the at least two temperature detection devices are controlled by the control switch, one of the temperature detection devices is selectively short-circuited with the control switch, the if the second operating parameter is abnormal, determining that all the temperature detection devices or the control switch are damaged, comprises:
[0016] obtaining the first operating parameter in an abnormal state, and comparing the first operating parameter with the second operating parameter;
[0017] if the first operating parameter is consistent with the second operating parameter, and the first operating parameter or the second operating parameter is a preset multiple of a standard operating parameter in a normal state, determining that the control switch is damaged to form a series loop between the first temperature detection device and the second temperature detection device, wherein the preset multiple corresponds to the total number of the temperature detection devices.
[0018] Further, in the line switching method described in the embodiments of the present application, after the comparing the first operating parameter with the second operating parameter, the method further comprises:
[0019] if the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, determining that all the temperature detection devices are damaged, and the control switch is normal.
[0020] Further, in the line switching method described in the embodiments of the present application, after the if the second operating parameter is abnormal, determining that all the temperature detection devices or the control switch are damaged, the method further comprises:
[0021] generate prompt information containing the second operating parameter abnormality cause to prompt the user.
[0022] Correspondingly, another aspect of the present application also provides a circuit switching device, applied to an electronic device, the electronic device comprising at least two temperature detection devices, and a control switch is used to control each time only one of the temperature detection devices to form a loop, the circuit switching device comprising:
[0023] a circuit switching module, configured to detect whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0024] an abnormality detection module, configured to send a control instruction to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device to form a loop with the second temperature detection device if the first operating parameter is abnormal.
[0025] Correspondingly, another aspect of the present application also provides a computer readable storage medium, the computer readable storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to execute the circuit switching method as described above.
[0026] Correspondingly, another aspect of the present application also provides an electronic device, comprising a processor and a memory, the memory storing a plurality of instructions, and the processor loading the instructions to execute the circuit switching method as described above.
[0027] The present application provides a circuit switching method, device, medium and equipment, the method detects whether a first operating parameter of a first temperature detection device currently forming a loop with a control switch is abnormal; if the first operating parameter is abnormal, a control instruction is sent to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device to form a loop with the second temperature detection device. The circuit switching method provided by the present application controls at least two temperature detection devices through a control switch to form a loop with one of the temperature detection devices each time, and when one of the temperature detection devices is abnormal, the control switch is automatically controlled to disconnect the connection between the temperature detection device and another temperature detection device to form a new loop, which not only avoids the device from working abnormally due to the failure of a single temperature detection device, but also reduces the cost by not needing to select a temperature detection device with stronger low-temperature resistance but higher cost, and reduces the occupation of system resources by multiple temperature detection devices by not needing to use a redundant design of multiple temperature detection devices to detect temperature parameters. BRIEF DESCRIPTION OF DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and all other drawings obtained by those skilled in the art without creative effort based on these drawings are within the protection scope of the present application.
[0029] Figure 1 The flowchart of the line switching method provided by the embodiments of the present application.
[0030] Figure 2 The schematic diagram of the line connection mode provided by the embodiments of the present application.
[0031] Figure 3 The schematic diagram of another line connection mode provided by the embodiments of the present application.
[0032] Figure 4 The flowchart of another line switching method provided by the embodiments of the present application.
[0033] Figure 5 The flowchart of another line switching method provided by the embodiments of the present application.
[0034] Figure 6 The structural schematic diagram of the line switching device provided by the embodiments of the present application.
[0035] Figure 7 The structural schematic diagram of another line switching device provided by the embodiments of the present application.
[0036] Figure 8 The structural schematic diagram of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and completely with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the present application.
[0038] The embodiment of the present application provides a line switching method, which is used for controlling at least two temperature detection devices to form a loop with only one of the temperature detection devices each time, and when one of the temperature detection devices is abnormal, automatically controlling a control switch to disconnect the abnormal temperature detection device and switch to another temperature detection device to form a new loop, so that the device can work normally even if one temperature detection device is abnormal, the temperature detection device with stronger low-temperature resistance and higher cost is not needed, the cost is reduced, and the multiple temperature detection devices are not needed to detect temperature parameters, so that the multiple temperature detection devices do not need to occupy system resources.
[0039] The term "and / or" in the present application can be used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent three cases of A existing alone, A and B existing simultaneously, and B existing alone. In addition, the character " / " in the present application generally represents that the front and rear associated objects have an "or" relationship.
[0040] The terms "first", "second", and the like in the description and in the claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or television set including a series of steps or modules does not necessarily have to be limited to the steps or modules clearly listed, but can include other steps or modules not clearly listed or inherent to the process, method, product, or television set. The naming or numbering of the steps in the present application does not mean that the steps in the method flow must be performed in the order / time sequence indicated by the naming or numbering, and the flow steps that have been named or numbered can change the order of execution according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in the present application is a logical division, and in actual application, there can be another division method, for example, a plurality of modules can be combined or integrated in another system, or some features can be ignored or not executed, in addition, the coupling or direct coupling or communication connection between the modules shown or discussed can be through some interface, the indirect coupling or communication connection between the modules can be electrical or other similar forms, which are not limited in the present application. In addition, the modules or sub-modules described as separate components can or can not be physically separated, can or can not be physical modules, or can be distributed to multiple circuit modules, and some or all of the modules can be selected according to actual needs to achieve the purpose of the present application.
[0041] The line switching method related by the embodiments of the present application is mainly applied to electronic equipment, which can be air conditioners, refrigerators, televisions, smart phones, tablet computers, notebook computers, desktop computers, servers, etc., which are not limited here. Alternatively, the server can be a standalone physical server, or a server cluster or distributed system composed of multiple physical servers, or an IoT cloud (Internet of Things Cloud) that provides the ability to store, process, and manage data generated by Internet of Things televisions, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, which are not limited here.
[0042] For ease of understanding, the specific processes in the embodiments of the present application are described below, please refer to Figure 1 , Figure 1An embodiment flowchart of a line switching method provided by the embodiment of the present application is shown.
[0043] In Figure 1 In the embodiment shown, the method is applied to an electronic device, which specifically includes the following steps:
[0044] S101, detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal.
[0045] It should be noted that, in the present scheme, in order to avoid the electronic device from running abnormally due to damage of a single temperature detection device, at least two temperature detection devices of the same type are configured in the electronic device, and only one of them forms a loop with the control switch each time.
[0046] It should be explained that the first temperature detection device and the second temperature detection device both refer to devices capable of detecting temperature changes, and the types of the two devices should be consistent to reduce errors in the operation of the method. In some embodiments, the first temperature detection device and the second temperature detection device specifically refer to temperature sensors, and the temperature sensors can be specifically divided into thermistors, thermocouples, resistance temperature detectors (RTD), infrared temperature sensors, semiconductor temperature sensors, optical fiber temperature sensors, colorimetric temperature sensors, capacitive temperature sensors, and thermosensitive bridges according to their working principles, which are not limited herein. In the present embodiment, if a thermistor is taken as the first temperature detection device, the first operating parameter corresponding to the first temperature detection device can be the resistance value of the thermistor, or the resistance value of the thermistor can be taken as an input, and the actual temperature value converted by a digital-to-analog conversion module (AD module) from the resistance value can be taken as the first operating parameter.
[0047] The control switch refers to a device capable of controlling the on-off of the loop in which the first temperature detection device or the second temperature detection device is located. In the present embodiment, since at least two temperature detection devices are controlled by the control switch to form a loop with only one of them each time, the control switch needs to have the above capability. Taking the scheme of using the first temperature detection device and the second temperature detection device as an example, the control switch can be a single-pole double-throw switch.
[0048] In some embodiments, the S101 specifically includes the following steps:
[0049] detecting a first operating parameter of a first temperature detection device currently forming a loop with the control switch;
[0050] if the first operating parameter exceeds a first threshold value or is less than a second threshold value, determining that the first operating parameter is abnormal, wherein the first threshold value is greater than the second threshold value;
[0051] if the first operating parameter exceeds the second threshold value and is less than or equal to the first threshold value, determining that the first operating parameter is normal.
[0052] In this embodiment, by detecting the first operating parameter of the first temperature detection device currently forming a loop with the control switch, taking the resistance value corresponding to the first temperature detection device as an example, when the detection result is that the resistance value exceeds a normally set first threshold value or is less than a second threshold value, it is determined that the resistance value measured by the current first temperature detection device is abnormal, i.e., it indicates that the first temperature detection device may have been damaged; correspondingly, when the detection result is that the resistance value exceeds the second threshold value and is less than or equal to the first threshold value, it is determined that the resistance value measured by the current first temperature detection device is normal, i.e., it indicates that the first temperature detection device can be normally used. It should be noted that the first threshold value in the above needs to be greater than the second threshold value.
[0053] S102, if the first operating parameter is abnormal, sending a control instruction to the control switch to control the control switch to disconnect the connection with the first temperature detection device and switch to a second temperature detection device connected therewith to form a loop.
[0054] In this embodiment, when it is detected that the first operating parameter corresponding to the first temperature detection device is abnormal, in order to ensure that the electronic device can continue to operate normally, a control instruction can be sent to the control switch to control the control switch to disconnect the connection with the first temperature detection device and switch to a second temperature detection device with a default initial state of normal and connected therewith to form a new loop. Assuming that the second temperature detection device can operate normally, under the switching action of the control switch, it can replace the first temperature detection device with abnormal operation to continue to work, avoiding the device from working abnormally due to the failure of a single temperature detection device, and reducing the cost without the need to select a temperature detection device with stronger low-temperature resistance but higher cost, and without the need to use multiple temperature detection devices to detect temperature parameters in a redundant design, thereby reducing the occupation of system resources (such as I / O interface) by multiple temperature detection devices.
[0055] In some embodiments, the at least two temperature detection devices are in a state of selective connection or selective short circuit between the control switch under the control of the control switch.
[0056] It needs to be explained that the selective connection refers to that in a circuit, a certain component or component group is connected to the rest of the circuit through a control mechanism, while other components or component groups remain disconnected. As shown in Figure 2 The single-pole double-throw switch is connected with the thermistor 1 or the thermistor 2, and the single-pole double-throw switch cooperates with the relay, and the switching of the single-pole double-throw switch is realized by using the working principle of the relay. First, the thermistor 1 connected with the normally closed contact of the single-pole double-throw switch works, and when it is detected that the thermistor 1 connected with the normally closed contact fails due to abnormal operation, the normally closed contact of the single-pole double-throw switch is opened and the normally open contact is closed by driving the relay, so that the thermistor 2 connected with the normally open contact replaces the thermistor 1 to continue working.
[0057] The selective short-circuit refers to that in a circuit, a certain component or component group is short-circuited through a control mechanism, while other components or component groups remain in a normal working state. As shown in Figure 3 The single-pole double-throw switch is connected with the thermistor 1 or the thermistor 2, and the single-pole double-throw switch cooperates with the relay, and the switching of the single-pole double-throw switch is realized by using the working principle of the relay. First, the thermistor 2 connected with the normally closed contact of the single-pole double-throw relay is short-circuited, and the thermistor 1 connected with the normally open contact of the single-pole double-throw relay works, and when it is detected that the thermistor 1 connected with the normally open contact fails due to abnormal operation, the normally closed contact of the single-pole double-throw switch is opened and the normally open contact is closed by driving the relay, so that the thermistor 1 connected with the normally open contact is short-circuited, and the thermistor 2 connected with the normally closed contact replaces the thermistor 1 to continue working.
[0058] In some embodiments, as shown in Figure 4 After the connection with the first temperature detection device is disconnected and the connection with the second temperature detection device is switched to form a loop when the first operating parameter is abnormal, the method further includes:
[0059] Detecting whether the second operating parameter of the second temperature detection device is abnormal;
[0060] If the second operating parameter is abnormal, it is determined that all the temperature detection devices or the control switch are damaged.
[0061] In this embodiment, when the second operating parameter of the second temperature detection device is still abnormal after the control switch is switched by control, it can be determined that all the temperature detection devices are damaged or the control switch is damaged, so that the circuit cannot continue to be used even if the control switch is switched.
[0062] In some embodiments, such as Figure 5 As shown, when one of the at least two temperature detection devices is selectively short-circuited with the control switch under the control of the control switch, if the second operating parameter is abnormal, it is determined that all the temperature detection devices or the control switch are damaged, including:
[0063] Obtain the first operating parameter under abnormal conditions, and compare the first operating parameter with the second operating parameter;
[0064] If the first operating parameter is consistent with the second operating parameter, and the first operating parameter or the second operating parameter is a preset multiple of the standard operating parameter under normal conditions, then it is determined that the control switch is damaged, causing a series circuit to be formed between the first temperature detection device and the second temperature detection device, wherein the preset multiple corresponds to the total number of the temperature detection devices.
[0065] In this embodiment, as Figure 3 As shown, when at least two temperature detection devices are under the control of a control switch, and one of the temperature detection devices is selectively short-circuited with the control switch, this type of circuit connection will cause a series circuit to be formed between thermistor 1 and thermistor 2 once the control switch is short-circuited. If the first operating parameter and the second operating parameter are measured to be consistent at this time, and the first operating parameter or the second operating parameter is a preset multiple of the standard operating parameter under normal conditions, then it is determined that the control switch is damaged, causing a series circuit to be formed between the first temperature detection device and the second temperature detection device. The preset multiple corresponds to the total number of temperature detection devices, for example, a multiple of 2 corresponding to two temperature detection devices.
[0066] In some embodiments, when it is determined that the cause of the abnormality of the second operating parameter is a short circuit in the control switch, resulting in the measured second operating parameter being a preset multiple of the standard operating parameter, the abnormal second operating parameter can be automatically divided by the preset multiple to obtain the normal operating parameter for use by the electronic device.
[0067] In some embodiments, after comparing the first operating parameter with the second operating parameter, the method further includes:
[0068] If the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, then it is determined that all the temperature detection devices are damaged, while the control switch is normal.
[0069] In this embodiment, when the first operating parameter is found to be inconsistent with the second operating parameter, and the second operating parameter is abnormal, it can be determined that the cause of the abnormality may be that all temperature detection devices are damaged, but the control switch is normal.
[0070] In some embodiments, after determining that all of the temperature detection devices or the control switch are damaged if the second operating parameter is abnormal, the method further comprises:
[0071] generating prompt information containing the cause of the abnormality of the second operating parameter to prompt the user.
[0072] In the present embodiment, prompt information containing the cause of the abnormality of the second operating parameter can be generated to prompt the user in the case of finding that the device is abnormal, such as "the cause of the device abnormality can be that the thermistor 1 is damaged", or "the cause of the device abnormality can be that the single-pole double-throw switch is damaged".
[0073] All the optional technical solutions described above can be combined to form optional embodiments of the present application, which will not be described again here.
[0074] In the implementation, the present application is not limited by the execution order of the various steps, and certain steps can be performed in other orders or simultaneously without conflict.
[0075] As can be seen from the above, the line switching method provided by the embodiments of the present application detects whether the first operating parameter of the first temperature detection device currently forming a loop with the control switch is abnormal; if the first operating parameter is abnormal, the control switch is controlled to disconnect the connection with the first temperature detection device, and is switched to connect with the second temperature detection device to form a loop. The line switching method provided by the embodiments of the present application controls at least two temperature detection devices to form a loop with only one of the temperature detection devices at a time through the control switch, and automatically controls the control switch to disconnect the connection between the temperature detection device with operating abnormality and another temperature detection device to form a new loop when one of the temperature detection devices has operating abnormality. This not only avoids the device working abnormally due to the failure of a single temperature detection device, but also reduces the cost by not needing to select a temperature detection device with stronger low-temperature resistance but higher cost, and reduces the occupation of system resources by multiple temperature detection devices by not needing to use a redundant design of multiple temperature detection devices to detect temperature parameters.
[0076] The embodiments of the present application also provide a line switching device which can be integrated in an electronic device.
[0077] Please refer to Figure 6 , Figure 6 for the structural schematic diagram of the line switching device provided by the embodiments of the present application. The line switching device 30 can include:
[0078] The abnormality detection module 31 is configured to detect whether a first operation parameter of a first temperature detection device currently connected with the control switch is abnormal.
[0079] The circuit switching module 32 is configured to send a control instruction to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device connected with the control switch to form a loop.
[0080] In some embodiments, the at least two temperature detection devices are selectively connected with or short-circuited with the control switch.
[0081] In some embodiments, the abnormality detection module 31 is configured to detect a first operation parameter of a first temperature detection device currently connected with the control switch, and determine that the first operation parameter is abnormal if the first operation parameter exceeds a first threshold or is less than a second threshold, and determine that the first operation parameter is normal if the first operation parameter exceeds the second threshold and is less than or equal to the first threshold, wherein the first threshold is greater than the second threshold.
[0082] In some embodiments, the device further comprises a determination module configured to detect whether a second operation parameter of the second temperature detection device is abnormal, and determine that all the temperature detection devices or the control switch are damaged if the second operation parameter is abnormal.
[0083] In some embodiments, the device further comprises a comparison module configured to obtain the first operation parameter in an abnormal state, compare the first operation parameter with the second operation parameter, and determine that the control switch is damaged to form a series loop between the first temperature detection device and the second temperature detection device if the first operation parameter and the second operation parameter are consistent and the first operation parameter or the second operation parameter is a preset multiple of a standard operation parameter in a normal state, wherein the preset multiple corresponds to a total number of the temperature detection devices.
[0084] In some embodiments, the determination module is configured to determine that all the temperature detection devices are damaged and the control switch is normal if the first operation parameter and the second operation parameter are inconsistent and the second operation parameter is abnormal.
[0085] In some embodiments, the device further comprises a prompt module configured to generate prompt information containing a cause of the abnormal second operation parameter to prompt a user.
[0086] In implementation, each of the above modules can be implemented as an independent entity, or can be combined as the same or several entities. In implementation, each of the above modules can be implemented as an independent entity, or can be combined as the same or several entities.
[0087] As can be seen from the above, the line switching device 30 provided by the embodiment of the present application comprises an abnormality detection module 31 configured to detect whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal; and a line switching module 32 configured to send a control instruction to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device to form a loop with the second temperature detection device if the first operating parameter is abnormal. The line switching device 30 provided by the embodiment of the present application controls at least two temperature detection devices to form a loop with only one of the temperature detection devices at a time through the control switch, and automatically controls the control switch to disconnect the temperature detection device with operating abnormality and switch to another temperature detection device to form a new loop when the operating abnormality occurs in one of the temperature detection devices. The line switching device 30 can not only avoid the abnormal operation of the equipment caused by the failure of a single temperature detection device, but also reduce the cost by not needing to select a temperature detection device with stronger low-temperature resistance but higher cost, and reduce the system resource occupation of multiple temperature detection devices by not needing to use a redundant design of multiple temperature detection devices to detect the temperature parameter.
[0088] The embodiment of the present application further provides a line switching device which can be integrated in an electronic device.
[0089] In the implementation, the above various modules can be implemented as independent entities, or can be combined as the same or several entities.
[0090] Please refer to Figure 7 , Figure 7 Another structural diagram of the line switching device provided by the embodiment of the present application is shown in FIG. 2. The line switching device 30 comprises a memory 120, one or more processors 180, and one or more application programs, wherein the one or more application programs are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 can comprise an abnormality detection module 31 and a line switching module 32. For example, the structure and connection relationship of the above various components can be as follows:
[0091] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can constitute various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 120 can also include a memory controller to provide the processor 180 with access to the memory 120.
[0092] The processor 180 is the control center of the device, which connects the entire terminal through various interfaces and lines, and performs overall monitoring of the device by running or executing the applications stored in the memory 120 and calling the data stored in the memory 120, executing various functions of the device and processing data. Optionally, the processor 180 can include one or more processing cores; preferably, the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc.
[0093] In particular, in the embodiment, the processor 180 loads the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and runs the applications stored in the memory 120 by the processor 180, thereby realizing various functions:
[0094] The abnormality detection instruction is used to detect whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal.
[0095] The line switching instruction is used to send a control instruction to the control switch to control the control switch to disconnect the connection with the first temperature detection device and switch to a second temperature detection device to form a loop with the control switch if the first operating parameter is abnormal.
[0096] In some embodiments, the at least two temperature detection devices are selectively connected or selectively short-circuited with the control switch under the control of the control switch.
[0097] In some embodiments, the abnormality detection instruction is used to detect a first operating parameter of a first temperature detection device currently forming a loop with the control switch; if the first operating parameter exceeds a first threshold value or is less than a second threshold value, it is determined that the first operating parameter is abnormal, wherein the first threshold value is greater than the second threshold value; if the first operating parameter exceeds the second threshold value and is less than or equal to the first threshold value, it is determined that the first operating parameter is normal.
[0098] In some embodiments, the program further comprises determining instructions for determining whether the second operating parameter of the second temperature detecting device is abnormal; if the second operating parameter is abnormal, determining that all the temperature detecting devices or the control switch are damaged.
[0099] In some embodiments, the program further comprises comparing instructions for obtaining the first operating parameter in the abnormal state, comparing the first operating parameter with the second operating parameter; if the first operating parameter is consistent with the second operating parameter, and the first operating parameter or the second operating parameter is a preset multiple of the standard operating parameter in the normal state, determining that the control switch is damaged to form a series loop between the first temperature detecting device and the second temperature detecting device, wherein the preset multiple corresponds to the total number of the temperature detecting devices.
[0100] In some embodiments, the determining instructions are used for, if the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, determining that all the temperature detecting devices are damaged, and the control switch is normal.
[0101] In some embodiments, the program further comprises prompting instructions for generating prompt information containing the reason of the abnormal second operating parameter to prompt the user.
[0102] Embodiments of the present application also provide an electronic device. Please refer to Figure 8 , Figure 8 The structure schematic diagram of the electronic device provided by the embodiments of the present application is shown, which can be used to implement the line switching method provided in the above embodiments. The electronic device 1200 can be a television or a smart phone or a tablet computer.
[0103] As shown in Figure 8 , the electronic device 1200 can include RF (Radio Frequency, radio frequency) circuit 80, memory 120 including one or more (only one is shown in the figure) computer readable storage medium, input unit 130, display unit 140, sensor 150, audio circuit 160, transmission module 170, processor 180 including one or more (only one is shown in the figure) processing core, and power supply 190 and the like. Those skilled in the art can understand that the structure of the electronic device 1200 shown in the figure does not constitute a limitation to the electronic device 1200, which can include more or less components than the figure, or combine some components, or different component arrangement. Among them: Figure 8
[0104] The RF circuit 80 is used for receiving and sending electromagnetic waves, and implements the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other television sets. The RF circuit 80 can include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. The RF circuit 80 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other television sets through a wireless network.
[0105] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the line switching method in the above-described embodiments. The processor 180 executes various function applications and data processing by running the software programs and modules stored in the memory 120, so as to automatically select a vibration reminding mode for line switching according to the current scene of the electronic device, which can ensure that a conference or the like is not disturbed, and can ensure that the user can perceive an incoming call, thereby improving the intelligence of the electronic device. The memory 120 can include a high-speed random access memory, and can further include a non-volatile memory such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 120 can further include a memory remotely disposed relative to the processor 180, and the remote memory can be connected to the electronic device 1200 through a network. Examples of the above-described network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0106] Input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, input unit 130 may include touch-sensitive surface 131 and other input televisions 132. Touch-sensitive surface 131, also known as a touch display screen or touchpad, can collect user touch operations on or near it (such as user operations using fingers, styluses, or any suitable object or accessory on or near touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, touch-sensitive surface 131 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 180, and can receive and execute commands from the processor 180. Furthermore, the touch-sensitive surface 131 can be implemented using various methods such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.
[0107] Display unit 140 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic device 1200. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Display unit 140 may include display panel 141, optionally configured as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, touch-sensitive surface 131 may cover display panel 141. When touch-sensitive surface 131 detects a touch operation on or near it, it transmits the information to processor 180 to determine the type of touch event. Subsequently, processor 180 provides corresponding visual output on display panel 141 according to the type of touch event. Although in Figure 8 In this embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two separate components to realize input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize input and output functions.
[0108] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 141 according to the ambient light level, and the proximity sensor can turn off the display panel 141 and / or backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. Other sensors that may be configured in the electronic device 1200, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0109] Audio circuitry 160, speaker 161, and microphone 162 provide an audio interface between the user and electronic device 1200. Audio circuitry 160 converts received audio data into electrical signals and transmits them to speaker 161, where speaker 161 converts them into sound signals for output. Conversely, microphone 162 converts collected sound signals into electrical signals, which are then received by audio circuitry 160, converted back into audio data, and processed by processor 180. The audio data is then transmitted via RF circuitry 80 to another terminal, or output to memory 120 for further processing. Audio circuitry 160 may also include an earphone jack to facilitate communication between external headphones and electronic device 1200.
[0110] Electronic device 1200, through transmission module 170 (e.g., Wi-Fi module), enables users to send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 8 The transmission module 170 is shown, but it is understood that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the nature of the invention.
[0111] The processor 180 is the control center of the electronic device 1200, which connects all parts of the mobile phone through various interfaces and lines, performs various functions of the electronic device 1200 and processes data by running or executing software programs and / or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 can include one or more processing cores; in some embodiments, the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 180.
[0112] The electronic device 1200 further includes a power supply 190 for supplying power to various components, which, in some embodiments, can be logically connected to the processor 180 through a power management system, so as to realize functions such as power management and power consumption management through the power management system. The power supply 190 can also include one or more direct or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.
[0113] Although not shown, the electronic device 1200 can also include a camera (such as a front camera, a rear camera), a Bluetooth module, and the like, which will not be described here. In particular, in the present embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 further includes a memory 120 and one or more programs stored in the memory 120 and configured to be executed by one or more processors 180, wherein the one or more programs include instructions for:
[0114] Abnormality detection instructions for detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0115] Line switching instructions for sending control instructions to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device connected to form a loop if the first operating parameter is abnormal.
[0116] In some embodiments, the at least two temperature detection devices are selectively connected or selectively short-circuited with the control switch under the control of the control switch.
[0117] In some embodiments, the abnormality detection instruction is configured to detect a first operation parameter of a first temperature detection device currently forming a loop with the control switch; determine that the first operation parameter is abnormal if the first operation parameter exceeds a first threshold or is less than a second threshold, wherein the first threshold is greater than the second threshold; and determine that the first operation parameter is normal if the first operation parameter exceeds the second threshold and is less than or equal to the first threshold.
[0118] In some embodiments, the program further includes a determination instruction configured to determine whether a second operation parameter of a second temperature detection device is abnormal; and determine that all the temperature detection devices or the control switch are damaged if the second operation parameter is abnormal.
[0119] In some embodiments, the program further includes a comparison instruction configured to obtain the first operation parameter in an abnormal state, compare the first operation parameter with the second operation parameter; and determine that the control switch is damaged to form a series loop between the first temperature detection device and the second temperature detection device if the first operation parameter is consistent with the second operation parameter and the first operation parameter or the second operation parameter is a preset multiple of a standard operation parameter in a normal state, wherein the preset multiple corresponds to a total number of the temperature detection devices.
[0120] In some embodiments, the determination instruction is configured to determine that all the temperature detection devices are damaged and the control switch is normal if the first operation parameter is inconsistent with the second operation parameter and the second operation parameter is abnormal.
[0121] In some embodiments, the program further includes a prompt instruction configured to generate prompt information including a cause of the abnormality of the second operation parameter to prompt a user.
[0122] Embodiments of the present application also provide an electronic device. The electronic device can be a smart phone, a television, a computer, or the like.
[0123] As can be seen from the above, embodiments of the present application provide an electronic device 1200, which performs the following steps:
[0124] detecting whether a first operation parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0125] if the first operation parameter is abnormal, sending a control instruction to the control switch to control the control switch to disconnect the first temperature detection device and switch to a second temperature detection device to form a loop with the second temperature detection device.
[0126] The embodiment of the present application further provides a storage medium, wherein the storage medium stores a computer program, and when the computer program runs on a computer, the computer executes the line switching method of any one of the above embodiments.
[0127] It should be noted that, for the line switching method of the present application, a person skilled in the art can understand that all or part of the process of implementing the line switching method of the embodiment of the present application can be completed by a computer program controlling related hardware, the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and in the execution process, the process of the embodiment of the line switching method can be included. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.
[0128] For the line switching device of the embodiment of the present application, each functional module can be integrated in one processing chip, or each module can exist physically alone, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a disk or an optical disk, etc.
[0129] The line switching method, device, medium and equipment provided by the embodiment of the present application are introduced in detail above. The principle and implementation mode of the present application are described by applying specific examples in this paper, and the above embodiment is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as the limitation of the present application.
Claims
1. A line switching method, applied to electronic equipment, characterized in that, The electronic device includes at least two temperature detection devices and control switches of the same type, including: Detect whether the first operating parameter of the first temperature detection device that currently forms a circuit with the control switch is abnormal; If the first operating parameter is abnormal, a control command is sent to the control switch to control the control switch to disconnect from the first temperature detection device and then switch to the second temperature detection device to form a loop. The method further includes, after controlling the control switch to disconnect from the first temperature detection device and switch to connect to the second temperature detection device to form a loop if the first operating parameter is abnormal, detecting whether the second operating parameter of the second temperature detection device is abnormal; if the second operating parameter is abnormal, determining that all the temperature detection devices or the control switch are damaged. Wherein, when one of the at least two temperature detection devices is selectively short-circuited with the control switch under the control of the control switch, the step of determining that all the temperature detection devices or the control switch are damaged if the second operating parameter is abnormal includes: obtaining the first operating parameter under abnormal conditions, comparing the first operating parameter with the second operating parameter; if the first operating parameter is consistent with the second operating parameter, and the first operating parameter or the second operating parameter is a preset multiple of the standard operating parameter under normal conditions, then determining that the control switch is damaged, resulting in a series circuit between the first temperature detection device and the second temperature detection device, wherein the preset multiple corresponds to the total number of the temperature detection devices.
2. The line switching method as described in claim 1, characterized in that, The detection of whether the first operating parameter of the first temperature detection device currently forming a circuit with the control switch is abnormal includes: Detect the first operating parameter of the first temperature detection device that currently forms a circuit with the control switch; If the first operating parameter exceeds the first threshold or is less than the second threshold, it is determined that the first operating parameter is abnormal, wherein the first threshold is greater than the second threshold; If the first operating parameter exceeds the second threshold but is less than or equal to the first threshold, then the first operating parameter is determined to be normal.
3. The line switching method as described in claim 1, characterized in that, After comparing the first operating parameter with the second operating parameter, the method further includes: If the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, then it is determined that all the temperature detection devices are damaged, while the control switch is normal.
4. The line switching method as described in claim 3, characterized in that, After determining that all temperature detection devices or control switches are damaged if the second operating parameter is abnormal, the method further includes: Generate a prompt message containing the reason for the abnormality of the second running parameter to notify the user.
5. A line switching device, applied to electronic equipment, characterized in that, The electronic device includes at least two temperature detection devices and a control switch, and the circuit switching device includes: The line switching module is used to detect whether the first operating parameter of the first temperature detection device that currently forms a circuit with the control switch is abnormal. An anomaly detection module is used to send a control command to the control switch if the first operating parameter is abnormal, so as to control the control switch to disconnect from the first temperature detection device and switch to the second temperature detection device to form a loop. Wherein, after the step of controlling the control switch to disconnect from the first temperature detection device and switch to connect to the second temperature detection device to form a loop if the first operating parameter is abnormal, the device further includes: a determination module, used to detect whether the second operating parameter of the second temperature detection device is abnormal; if the second operating parameter is abnormal, it is determined that all the temperature detection devices or the control switch are damaged; Wherein, when one of the at least two temperature detection devices is selectively short-circuited with the control switch under the control of the control switch, the device further includes: a comparison module, used to acquire the first operating parameter under abnormal conditions, compare the first operating parameter with the second operating parameter; if the first operating parameter is consistent with the second operating parameter, and the first operating parameter or the second operating parameter is a preset multiple of the standard operating parameter under normal conditions, then it is determined that the control switch is damaged, causing a series circuit to be formed between the first temperature detection device and the second temperature detection device, wherein the preset multiple corresponds to the total number of temperature detection devices.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the line switching method according to any one of claims 1 to 4.
7. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing multiple instructions, and the processor loading the instructions to execute the line switching method according to any one of claims 1 to 4.
Citation Information
Patent Citations
High voltage direct current transmission system environment temperature acquisition device
CN204241113U
Temperature controller
JP1992153712A