Line switching method and device, medium and equipment
By using the line switching method in the air conditioner, it automatically switches to another temperature detection device, which solves the abnormal operation problem of air conditioning caused by the failure of the temperature detection device under low temperature conditions, and achieves the effect of reducing costs and reducing resource preemption.
Patent Information
- Application Number
- CN202411864106.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-17
AI Technical Summary
In cold areas, the temperature detection device used to detect temperature changes in air conditioners may fail under low temperature conditions, resulting in abnormal operation of the air conditioner, and the existing solutions are costly or affecting system performance.
A line switching method is provided, by selectively connecting or short-circuiting at least two temperature detection devices in an electronic device through a control switch, detecting whether the operating parameters of one of the temperature detection devices are abnormal, and automatically switch to the other temperature detection device in the event of an abnormality.
The equipment operation abnormalities caused by the failure of a single temperature detection device are avoided, the demand for using temperature detection devices with stronger low temperature resistance but higher cost is reduced, and the preemption of system resources by multiple temperature detection devices is reduced.
Smart Images

Figure CN119755775A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of equipment control technology, and in particular to the field of line switching technology, and in particular to a line switching method, device, medium and equipment. Background Art
[0002] In some cold regions, when encountering low temperatures and heavy snow in winter, the temperature detection devices (such as thermistors) usually used in air conditioners to detect temperature changes will face harsh working conditions. Once the temperature detection device fails, the air conditioner will 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 jointly detecting a temperature parameter is adopted. However, such a design will occupy more I / O interfaces of the microcontroller, resulting in the occupation of system resources. Summary of the invention
[0003] The present application provides a circuit switching method, device, medium and equipment. The circuit switching method provided in the present application is used to solve the problem that the current solution adopted to improve the working stability of the temperature detection device has high cost or affects the system operation performance.
[0004] On one hand, an embodiment of the present application provides a circuit switching method, which is applied to an electronic device, wherein the electronic device includes at least two temperature detection devices, and a control switch is used to control only one of the temperature detection devices to form a circuit at a time, and the method includes:
[0005] Detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0006] If the first operating parameter is abnormal, a control instruction is sent to the control switch 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.
[0007] Furthermore, in the line switching method described in the embodiment of the present application, the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively connected to or selectively short-circuited with the control switch.
[0008] Furthermore, in the circuit switching method described in the embodiment of the present application, the detecting whether the first operating parameter of the first temperature detection device currently forming a loop with the control switch is abnormal includes:
[0009] Detecting a first operating 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 or is less than a second threshold, determining that the first operating parameter is abnormal, wherein the first threshold is greater than the second threshold;
[0011] If the first operating parameter exceeds the second threshold and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
[0012] Further, in the circuit switching method described in the embodiment of the present application, after the control switch is controlled to disconnect the connection with the first temperature detection device and switch to connect with the second temperature detection device to form a loop if the first operating parameter is abnormal, the method further includes:
[0013] detecting whether a second operating parameter of the second temperature detection device is abnormal;
[0014] If the second operating parameter is abnormal, it is determined that all the temperature detection devices or the control switches are damaged.
[0015] Further, in the circuit switching method described in the embodiment of the present application, when the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively short-circuited with 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:
[0016] Acquire the first operating parameter in an abnormal state, and compare 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 the standard operating parameter under normal conditions, it is determined that the control switch is damaged, resulting in a series circuit being 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.
[0018] Furthermore, in the line switching method described in the embodiment of the present application, after comparing the first operating parameter with the second operating parameter, the method further includes:
[0019] If the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, it is determined that all the temperature detection devices are damaged and the control switch is normal.
[0020] Further, in the line switching method described in the embodiment of the present application, after determining that all the temperature detection devices or the control switches are damaged if the second operating parameter is abnormal, the method further includes:
[0021] Generate a prompt message including the reason for the abnormality of the second operating parameter to prompt the user.
[0022] Accordingly, another aspect of the embodiment of the present application further provides a circuit switching device, which is applied to an electronic device, wherein the electronic device includes at least two temperature detection devices, and forms a loop with only one of the temperature detection devices at a time through a control switch control, wherein the circuit switching device includes:
[0023] A circuit switching module, used for detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0024] The abnormality detection module is used to send a control instruction to the control switch if there is an abnormality in the first operating parameter, 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.
[0025] Correspondingly, another aspect of the embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for loading by a processor to execute the line switching method as described above.
[0026] Correspondingly, another aspect of the embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the line switching method as described above.
[0027] The embodiment of the present application provides a circuit switching method, device, medium and equipment, which detects whether the first operating parameter of the first temperature detection device that currently forms a loop with the 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 connection with the first temperature detection device, switch to the second temperature detection device and connect with it to form a loop. Using the circuit switching method provided by the embodiment of the present application, at least two temperature detection devices are controlled by the control switch to form a loop with only one of the temperature detection devices at a time, and when one of the temperature detection devices has an abnormal operation, the control switch is automatically controlled to disconnect the connection with the abnormal temperature detection device, and switch to another temperature detection device to form a new loop, which can not only avoid the abnormal operation of the equipment due to the failure of a single temperature detection device, but also does not need to select a temperature detection device with stronger low temperature resistance but higher cost, thereby reducing costs, and does not need to adopt a redundant design of multiple temperature detection devices to jointly detect temperature parameters, thereby reducing the occupation of system resources by multiple temperature detection devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0029] Figure 1 A flow chart of a line switching method provided in an embodiment of the present application.
[0030] Figure 2 A schematic diagram of the line connection method provided in an embodiment of the present application.
[0031] Figure 3 A schematic diagram of another line connection method provided in an embodiment of the present application.
[0032] Figure 4 A flowchart of another line switching method provided in an embodiment of the present application.
[0033] Figure 5 A flowchart of another line switching method provided in an embodiment of the present application.
[0034] Figure 6 A schematic diagram of the structure of a circuit switching device provided in an embodiment of the present application.
[0035] Figure 7 Another structural schematic diagram of the line switching device provided in an embodiment of the present application.
[0036] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0038] The embodiment of the present application provides a circuit switching method, by which at least two temperature detection devices are controlled by a control switch to form a loop with only one of the temperature detection devices at a time, and when one of the temperature detection devices has an operating abnormality, the control switch is automatically controlled to disconnect the connection with the temperature detection device with the operating abnormality, and switch to another temperature detection device to form a new loop. This not only avoids abnormal operation of equipment due to failure of a single temperature detection device, but also reduces costs by eliminating the need to select a temperature detection device with stronger low-temperature resistance but higher cost. At the same time, there is no need to adopt a redundant design in which multiple temperature detection devices jointly detect temperature parameters, thereby reducing the occupation of system resources by multiple temperature detection devices.
[0039] The term "and / or" in this application can be a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0040] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments described here can be implemented in a sequence other than the content illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or television set comprising a series of steps or modules need not be limited to the steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or television sets. 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 time / logic sequence indicated by the naming or numbering, and the process steps that have been named or numbered can change the execution order 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 this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0041] The line switching method involved in the embodiment of the present application is mainly applied to electronic devices, which may be air conditioners, refrigerators, televisions, smart phones, tablet computers, laptops, desktop computers, servers, etc., which are not limited here. Optionally, the server may be an independent 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 an IoT television, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, 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 process in the embodiments of the present application is described below. Figure 1 , Figure 1A schematic flow chart of an embodiment of a line switching method provided in an embodiment of the present application.
[0043] exist Figure 1 In the illustrated embodiment, taking the method applied to an electronic device as an example, the method specifically includes the following steps:
[0044] S101, detecting whether a first operating parameter of a first temperature detection device that currently forms a loop with the control switch is abnormal.
[0045] It should be noted that in the present solution, in order to avoid abnormal operation of the electronic device 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 a control switch is used to control only one of the temperature detection devices to form a loop at a time.
[0046] It should be explained that the first temperature detection device and the second temperature detection device both refer to devices that can be used to detect temperature changes, and the types of the two need to be kept consistent to reduce the error when the method is running. 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, Resistance Temperature Detector), infrared temperature sensors, semiconductor temperature sensors, optical fiber temperature sensors, colorimetric temperature sensors, capacitive temperature sensors and thermistor bridges according to their working principles, which are not limited here. In this embodiment, if the thermistor is used as the first temperature detection device as an example, 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 used as input, and the actual temperature value converted by the resistance value through the digital-to-analog conversion module (AD module) is used as the first operating parameter.
[0047] The control switch refers to a device that can control the on / off of the circuit where the first temperature detection device or the second temperature detection device is located. In this embodiment, since at least two temperature detection devices are limited to form a circuit with only one of the temperature detection devices at a time through the control switch, it is necessary to ensure that the control switch has the above capabilities. Taking the solution composed of 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 or is less than a second threshold, determining that the first operating parameter is abnormal, wherein the first threshold is greater than the second threshold;
[0051] If the first operating parameter exceeds the second threshold and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
[0052] In this embodiment, by detecting the first operating parameter of the first temperature detection device that currently forms 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 the normally set first threshold value or is less than the second threshold value, it is determined that the resistance value currently measured by the first temperature detection device is abnormal, that is, it indicates that the first temperature detection device may be 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 currently measured by the first temperature detection device is normal, that is, it indicates that the first temperature detection device can be used normally. 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 from the first temperature detection device and switch to the second temperature detection device to form a loop.
[0054] In this embodiment, when an abnormality is detected in the first operating parameter corresponding to the first temperature detection device, 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 from the first temperature detection device, and switch to the second temperature detection device whose default initial state is normal, and connect with it to form a new circuit. Assuming that the second temperature detection device can operate normally, at this time, under the switching action of the control switch, it can replace the abnormally operating first temperature detection device to continue working, avoiding abnormal operation of the equipment due to failure of a single temperature detection device, and there is no need to select a temperature detection device with stronger low temperature resistance but higher cost, thereby reducing costs. At the same time, there is no need to adopt a redundant design of multiple temperature detection devices to jointly detect temperature parameters, thereby reducing the occupation of system resources (such as I / O interfaces) 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 with the control switch under the control of the control switch.
[0056] It should be explained that selective connection refers to a control mechanism in a circuit that allows a specific component or component group in the circuit to be connected to the rest of the circuit, while other components or component groups remain disconnected. Figure 2 As shown, a single-pole double-throw switch is connected to thermistor 1 or thermistor 2, and the single-pole double-throw switch cooperates with a relay, and the working principle of the relay is used to realize the switching of the single-pole double-throw switch. First, thermistor 1 connected to the normally closed contact of the single-pole double-throw switch is operated. When it is detected that thermistor 1 connected to the normally closed contact fails due to abnormal operation, the normally closed contact of the single-pole double-throw switch is controlled to open and the normally open contact is closed by driving the relay, so that thermistor 2 connected to the normally open contact replaces thermistor 1 and continues to work.
[0057] Selective short-circuit refers to the use of a control mechanism to short-circuit a specific component or component group in the circuit while other components or component groups remain in normal working state. Figure 3 As shown, a single-pole double-throw switch is connected to thermistor 1 or thermistor 2, and the single-pole double-throw switch cooperates with a relay, and the working principle of the relay is used to realize the switching of the single-pole double-throw switch. First, the thermistor 2 connected to the normally closed contacts of the single-pole double-throw relay is short-circuited, and the thermistor 1 connected to the normally open contacts of the single-pole double-throw relay is operated. When it is detected that the thermistor 1 connected to the normally open contacts fails due to abnormal operation, the normally closed contacts of the single-pole double-throw switch are controlled to open and the normally open contacts are closed by driving the relay, so that the thermistor 1 connected to the normally open contacts is short-circuited, and the thermistor 2 connected to the normally closed contacts replaces the thermistor 1 to continue to work.
[0058] In some embodiments, Figure 4 As shown, after the control switch is controlled to disconnect the connection with the first temperature detection device and switch to connect with the second temperature detection device to form a loop if the first operating parameter is abnormal, the method further includes:
[0059] detecting whether a 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 switches are damaged.
[0061] In this embodiment, when it is detected that the second operating parameter of the second temperature detection device is still abnormal after the control switch is switched, it can be determined that it may be because all the temperature detection devices are damaged or the control switch is damaged, resulting in the circuit being unable to continue to be used even if the control switch is switched.
[0062] In some embodiments, Figure 5 As shown, when the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively short-circuited with 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] Acquire the first operating parameter in an abnormal state, 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, it is determined that the control switch is damaged, resulting in a series circuit being 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, if 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, due to this line connection method, once the control switch is short-circuited, a series circuit will be formed between thermistor 1 and thermistor 2. If the first operating parameter is measured to be consistent with the second operating parameter 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, it is determined that the control switch is damaged, resulting in a series circuit being 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, 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 that the control switch is short-circuited, causing the measured second operating parameter to be a preset multiple of the standard operating parameter, the abnormal second operating parameter can be automatically divided by the preset multiple to obtain normal operating parameters for use by the electronic device.
[0067] In some embodiments, after comparing the first operating parameter with the second operating parameter, the method further comprises:
[0068] If the first operating parameter is inconsistent with the second operating parameter, and the second operating parameter is abnormal, it is determined that all the temperature detection devices are damaged and the control switch is normal.
[0069] In this embodiment, when it is detected that the first operating parameter is 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 the temperature detection devices or the control switches are damaged if the second operating parameter is abnormal, the method further includes:
[0071] Generate a prompt message including the reason for the abnormality of the second operating parameter to prompt the user.
[0072] In this embodiment, when an abnormal operation of the device is detected, a prompt message containing the cause of the abnormal operation of the second operating parameter can be generated to prompt the user, for example, "the cause of the device abnormality may be damage to thermistor 1" or "the cause of the device abnormality may be damage to the single-pole double-throw switch".
[0073] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0074] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0075] As can be seen from the above, the circuit switching method provided in the embodiment of the present application detects whether the first operating parameter of the first temperature detection device that currently forms 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 switch to the connection with the second temperature detection device to form a loop. Utilizing the circuit switching method provided in the embodiment of the present application, at least two temperature detection devices are controlled by the control switch to form a loop with only one of the temperature detection devices at a time, and when one of the temperature detection devices has an abnormal operation, the control switch is automatically controlled to disconnect the connection with the abnormal temperature detection device and switch to another temperature detection device to form a new loop. This can not only avoid equipment operation abnormality caused by failure of a single temperature detection device, but also reduce costs by not needing to select a temperature detection device with stronger low temperature resistance but higher cost. At the same time, there is no need to adopt a redundant design in which multiple temperature detection devices jointly detect temperature parameters, thereby reducing the occupation of system resources by multiple temperature detection devices.
[0076] An embodiment of the present application further provides a circuit switching device, which can be integrated into an electronic device.
[0077] See also Figure 6 , Figure 6 A schematic diagram of the structure of a circuit switching device provided in an embodiment of the present application. The circuit switching device 30 may include:
[0078] An abnormality detection module 31 is used to detect whether a first operating parameter of a first temperature detection device that currently forms a loop with the control switch is abnormal;
[0079] The circuit switching module 32 is used to send a control instruction to the control switch if there is an abnormality in the first operating parameter, 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.
[0080] In some embodiments, the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively connected to or selectively short-circuited with the control switch.
[0081] In some embodiments, the abnormality detection module 31 is used to detect a first operating parameter of a first temperature detection device that currently forms a loop with the control switch; if the first operating parameter exceeds a first threshold or is less than a 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 and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
[0082] In some embodiments, the device further includes a determination module for detecting whether a 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 switches are damaged.
[0083] In some embodiments, the device also includes a comparison module, which is used to obtain the first operating parameter under an abnormal state and 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 a normal state, it is determined that the control switch is damaged, resulting in a series circuit being 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.
[0084] In some embodiments, the determination module is used to determine that all the temperature detection devices are damaged and the control switch is normal if the first operating parameter is inconsistent with the second operating parameter and the second operating parameter is abnormal.
[0085] In some embodiments, the device further comprises a prompt module, configured to generate a prompt message including a reason why the second operating parameter is abnormal to prompt a user.
[0086] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0087] As can be seen from the above, the circuit switching device 30 provided in the embodiment of the present application, wherein the abnormality detection module 31 is used to detect whether the first operating parameter of the first temperature detection device currently forming a loop with the control switch is abnormal; the circuit switching module 32 is used to send a control instruction to the control switch if the first operating parameter is abnormal, so as to control the control switch to disconnect the connection with the first temperature detection device and switch to the second temperature detection device to connect with it to form a loop. The circuit switching device 30 provided in the embodiment of the present application controls at least two temperature detection devices through the control switch to form a loop with only one of the temperature detection devices at a time, and when one of the temperature detection devices has an abnormal operation, the control switch is automatically controlled to disconnect the connection with the abnormal temperature detection device and switch to another temperature detection device to form a new loop, which can not only avoid the abnormal operation of the equipment due to the failure of a single temperature detection device, but also does not need to select a temperature detection device with stronger low temperature resistance but higher cost, thereby reducing costs, and does not need to adopt a redundant design of multiple temperature detection devices to jointly detect temperature parameters, thereby reducing the occupation of system resources by multiple temperature detection devices.
[0088] An embodiment of the present application further provides a circuit switching device, which can be integrated into an electronic device.
[0089] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.
[0090] See also Figure 7 , Figure 7 Another structural diagram of a circuit switching device provided in an embodiment of the present application is shown in FIG. 30. The circuit switching device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include an abnormality detection module 31 and a circuit switching module 32. For example, the structure and connection relationship of the above components may 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 be composed of 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 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may 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, and uses various interfaces and lines to connect various parts of the entire terminal. By running or executing applications stored in the memory 120 and calling data stored in the memory 120, the processor 180 performs various functions of the device and processes data, thereby monitoring the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.
[0093] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:
[0094] an abnormality detection instruction, 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 circuit switching instruction is used to send a control instruction 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.
[0096] In some embodiments, the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively connected to or selectively short-circuited with 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 that currently forms a loop with the control switch; if the first operating parameter exceeds a first threshold or is less than a second threshold, it is determined that there is an abnormality in the first operating parameter, wherein the first threshold is greater than the second threshold; if the first operating parameter exceeds the second threshold and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
[0098] In some embodiments, the program further includes a determination instruction for detecting whether a 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 switches are damaged.
[0099] In some embodiments, the program also includes a comparison instruction for obtaining the first operating parameter under an abnormal state and 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 a normal state, it is determined that the control switch is damaged, resulting in a series circuit being 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.
[0100] In some embodiments, the determination instruction is used to determine that all the temperature detection devices are damaged and the control switch is normal if the first operating parameter is inconsistent with the second operating parameter and the second operating parameter is abnormal.
[0101] In some embodiments, the program further includes a prompt instruction for generating a prompt message including the reason for the abnormality of the second operating parameter to prompt a user.
[0102] The present application also provides an electronic device. Figure 8 , Figure 8 The electronic device 1200 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, and the electronic device can be used to implement the line switching method provided in the above embodiment. The electronic device 1200 can be a television, a smart phone, or a tablet computer.
[0103] like Figure 8 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 80, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 8 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0104] The RF circuit 80 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other televisions. The RF circuit 80 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 80 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other televisions via 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 embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected to switch the line according to the current scene of the electronic device, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can perceive incoming calls, thereby improving the intelligence of the electronic device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0106] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0107] The display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 8 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the 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, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.
[0109] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 80, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.
[0110] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 8 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.
[0111] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.
[0112] The electronic device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0113] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:
[0114] an abnormality detection instruction, used to detect whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0115] The circuit switching instruction is used to send a control instruction 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.
[0116] In some embodiments, the at least two temperature detection devices are under the control of the control switch, and one of the temperature detection devices is selectively connected to or selectively short-circuited with the control switch.
[0117] In some embodiments, the abnormality detection instruction is used to detect a first operating parameter of a first temperature detection device that currently forms a loop with the control switch; if the first operating parameter exceeds a first threshold or is less than a second threshold, it is determined that there is an abnormality in the first operating parameter, wherein the first threshold is greater than the second threshold; if the first operating parameter exceeds the second threshold and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
[0118] In some embodiments, the program further includes a determination instruction for detecting whether a 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 switches are damaged.
[0119] In some embodiments, the program also includes a comparison instruction for obtaining the first operating parameter under an abnormal state and 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 a normal state, it is determined that the control switch is damaged, resulting in a series circuit being 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.
[0120] In some embodiments, the determination instruction is used to determine that all the temperature detection devices are damaged and the control switch is normal if the first operating parameter is inconsistent with the second operating parameter and the second operating parameter is abnormal.
[0121] In some embodiments, the program further includes a prompt instruction for generating a prompt message including the reason for the abnormality of the second operating parameter to prompt a user.
[0122] The embodiment of the present application also provides an electronic device, which may be a smart phone, a television, a computer, or other device.
[0123] As can be seen from the above, an embodiment of the present application provides an electronic device 1200, and the electronic device 1200 performs the following steps:
[0124] Detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal;
[0125] If the first operating parameter is abnormal, a control instruction is sent to the control switch 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.
[0126] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the line switching method described in any one of the above embodiments.
[0127] It should be noted that, for the circuit switching method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the circuit switching method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and 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 the execution process may include the process of the embodiment of the circuit switching method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM, ReadOnly Memory), a random access memory (RAM, Random Access Memory), etc.
[0128] For the circuit switching device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented 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.
[0129] The above is a detailed introduction to the line switching method, device, medium and equipment provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application; at the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A circuit switching method, applied to electronic equipment, characterized in that: The electronic device comprises at least two temperature detection devices and a control switch of the same type, including: Detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the 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 from the first temperature detection device and then switch to the second temperature detection device and connect with it to form a loop.
2. The line switching method according to claim 1, characterized in that: Under the control of the control switch, the at least two temperature detection devices are in a state of selective connection or selective short circuit with the control switch.
3. The line switching method according to claim 1, characterized in that: The detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal includes: Detecting 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 or is less than a second threshold, determining 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 and is less than or equal to the first threshold, it is determined that the first operating parameter is normal.
4. The line switching method according to claim 1, characterized in that: After the control switch is controlled to disconnect the first temperature detection device and switch to connect with the second temperature detection device to form a loop if the first operating parameter is abnormal, the method further includes: detecting whether a 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 switches are damaged.
5. The line switching method according to claim 4, characterized in that: When one of the at least two temperature detection devices is under the control of the control switch and is selectively short-circuited with the control switch, if the second operating parameter is abnormal, determining that all of the temperature detection devices or the control switch are damaged includes: Acquire the first operating parameter in an abnormal state, and 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, it is determined that the control switch is damaged, resulting in a series circuit being 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.
6. The line switching method according to claim 5, 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, it is determined that all the temperature detection devices are damaged and the control switch is normal.
7. The line switching method according to claim 6, characterized in that: After determining that all the temperature detection devices or the control switches are damaged if the second operating parameter is abnormal, the method further includes: Generate a prompt message including the reason for the abnormality of the second operating parameter to prompt the user.
8. A circuit switching device, applied to electronic equipment, characterized in that: The electronic device comprises at least two temperature detection devices and a control switch, and the circuit switching device comprises: A circuit switching module, used for detecting whether a first operating parameter of a first temperature detection device currently forming a loop with the control switch is abnormal; The abnormality detection module is used to send a control instruction to the control switch if there is an abnormality in the first operating parameter, 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.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the line switching method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the line switching method according to any one of claims 1 to 7.
Citation Information
Patent Citations
High voltage direct current transmission system environment temperature acquisition device
CN204241113U
Temperature controller
JP1992153712A
Temperature monitoring apparatus
JP2008021057A