Method and system for detecting open-circuit signal of electronic device, and electronic device
By setting up a bridge circuit and a detection module in the electronic device, controlling the on-state of the power supply and the module to be tested, forming a discharge circuit, and collecting open-circuit voltage signals, the accuracy of the color state detection of the electrochromic module is solved, and the user experience and equipment life are improved.
Patent Information
- Application Number
- CN202011633565.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The prior art is difficult to accurately detect the color status of the electrochromic module in electronic devices, resulting in users being unable to adjust the color in time, affecting the user experience and life.
By setting up a bridge circuit and a detection module in the electronic device, the on-state of the power supply and the module to be tested is controlled, a discharge circuit is formed, and an open circuit voltage signal is collected to obtain the module state.
Accurately obtain the color status of the electrochromic module, avoid overcharging or unfulfilling, and extend the service life.
Smart Images

Figure CN114690075B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic device detection, and in particular to a method and system for detecting an open-circuit signal of an electronic device, and the electronic device. Background Art
[0002] In recent years, the development and widespread application of electrochromic technology has led to the installation of electrochromic modules in electronic devices (such as mobile phones) to enhance user experience and enhance their technological appeal. For example, mobile phone cases are now color-changing. However, accurately determining the color state of the case and adjusting it accordingly has become a pressing technical challenge. Summary of the Invention
[0003] An embodiment of the present application provides an electronic device, which includes a module to be tested, a controller, a power supply, a bridge circuit and a detection module; the bridge circuit includes a first input end for connecting to the power supply, an output end for connecting to the module to be tested and a second input end for connecting to the controller; the controller is used to control the conduction state of the power supply and the bridge circuit; the power supply is used to charge the module to be tested; one end of the detection module is connected to the bridge circuit and the other end is grounded; when the bridge circuit and the module to be tested form a discharge circuit, the detection module collects the electrical signal of the discharge circuit.
[0004] On the other hand, an embodiment of the present application also provides a method for detecting an open-circuit signal of an electronic device, wherein the electronic device includes a module to be tested, a controller, a power supply, a bridge circuit and a detection module; the bridge circuit includes a first input end for connecting to the power supply, an output end for connecting to the module to be tested and a second input end for connecting to the controller; one end of the detection module is connected to the bridge circuit and the other end is grounded; the detection method includes: controlling the on-state of the power supply so that the power supply and the module to be tested are electrically disconnected; controlling the on-state of the bridge circuit so that the bridge circuit and the module to be tested form a discharge circuit; and collecting the electrical signal of the discharge circuit through the detection module.
[0005] On the other hand, an embodiment of the present application also provides a detection system for an open-circuit signal of an electronic device, comprising a bridge module, a power module, a control module and an acquisition module; the bridge module comprises a first input end, a second input end and an output end; the power module is connected to the first input end; the control module is connected to the second input end; one end of the acquisition module is connected to the bridge module and the other end is grounded; wherein, the output end is used to connect the module to be tested, and the power module is used to charge the module to be tested; the control module is used to control the conduction state of the power module so that the power module and the module to be tested are electrically disconnected, and to control the conduction state of the bridge module so that the bridge module and the module to be tested form a discharge loop; the acquisition module is used to collect the electrical signal of the discharge loop.
[0006] On the other hand, an embodiment of the present application further provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the detection method described in the above embodiment.
[0007] The electronic device and its open-circuit voltage detection method and detection system provided in embodiments of the present application accurately detect the open-circuit voltage of the module under test and, by connecting a detection module to a bridge circuit and controlling the conduction state of the bridge circuit, the detection module can accurately obtain the open-circuit voltage of the module under test, thereby obtaining the current state of the module under test. For example, when the module under test is an electrochromic module, the color state of the electrochromic module can be accurately determined using the above technical solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] 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. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0009] Figure 1 is a schematic block diagram of the structure of an electronic device in some embodiments of the present application;
[0010] Figure 2 is a schematic structural block diagram of an electronic device in some other embodiments of the present application;
[0011] Figure 3 yes Figure 2 A schematic diagram of the circuit structure of the electronic device in the embodiment;
[0012] Figure 4 yes Figure 2 Another circuit structure diagram of the electronic device in the embodiment;
[0013] Figure 5 is a flow chart of a method for detecting an open circuit signal in some embodiments of the present application;
[0014] Figure 6 yes Figure 5 A schematic diagram of current flow in a discharge circuit in an embodiment;
[0015] Figure 7 yes Figure 5 A schematic diagram of current flow in another discharge circuit in an embodiment;
[0016] Figure 8 is a flow chart of a method for detecting an open circuit signal in other embodiments of the present application;
[0017] Figure 9 is a flow chart of a method for detecting an open circuit signal in other embodiments of the present application;
[0018] Figure 10 is a schematic block diagram of the structure of an open circuit signal detection system in some embodiments of the present application;
[0019] Figure 11 It is a schematic diagram of the structure of a computer-readable storage medium in some embodiments of the present application. DETAILED DESCRIPTION
[0020] The present application will be further described in detail below with reference to the accompanying drawings and examples. It should be noted that the following examples are intended only to illustrate the present application and are not intended to limit the scope of the present application. Similarly, the following examples are only some examples of the present application and are not intended to be exhaustive. All other examples obtained by persons of ordinary skill in the art without creative effort are intended to fall within the scope of protection of the present application.
[0021] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0022] As used herein, "electronic equipment" (or simply "terminal") includes, but is not limited to, devices configured to receive / transmit communication signals via a wireline connection (e.g., via a public switched telephone network (PSTN), a digital subscriber line (DSL), digital cable, a direct cable connection, and / or another data connection / network) and / or via a wireless interface (e.g., for a cellular network, a wireless local area network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter, and / or another communication terminal). A communication terminal configured to communicate via a wireless interface may be referred to as a "wireless communication terminal," "wireless terminal," or "mobile terminal." Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; personal communication system (PCS) terminals that may combine a cellular radiotelephone with data processing, fax, and data communication capabilities; PDAs that may include a radiotelephone, a pager, Internet / Intranet access, a web browser, a notepad, a calendar, and / or a global positioning system (GPS) receiver; and conventional laptop and / or palmtop receivers or other electronic devices that include a radiotelephone transceiver. A mobile phone is an electronic device equipped with a cellular communication module.
[0023] It should be noted that the electronic device in the embodiments of the present application is mainly an electronic device including an electrochromic module waiting for testing module, such as a housing provided on an electronic device, which can achieve a change in appearance color through electrochromic technology.
[0024] See also Figure 1 , Figure 1 It is a schematic block diagram of the structure of an electronic device in some embodiments of the present application, wherein the electronic device 100 can roughly include a module to be tested 110 and a power supply 120. The module to be tested 110 can be an electrochromic module, for example, the module to be tested 110 can be an electrochromic shell. The module to be tested 110 includes a first electrode out1 and a second electrode out2, and the positive and negative poles of the power supply 120 are respectively connected to the first electrode out1 and the second electrode out2 to apply a voltage to both ends of the module to be tested 110, that is, to charge the module to be tested 110, thereby realizing the color change function. It can be understood that the module to be tested 110 can also be a battery module, that is, the battery module can be charged by the power supply 120.
[0025] Furthermore, since the module to be tested 110 is usually a capacitive load, it has a certain leakage current, and its leakage current has obvious differences with the temperature of the module to be tested 110. For example, experiments have shown that the leakage rate of the module to be tested 110 at 20-25°C is more than 5 times faster than the leakage rate at 40°C. In actual use, the leakage of the module to be tested 110 cannot generally be directly perceived from the outside of the electronic device 100, that is, the slight change in the color of the electrochromic shell, or the change in the amount of electricity stored in the battery module. Based on this, the user cannot accurately grasp the charging time of the module to be tested 110, which can easily cause overcharging or undercharging and affect the performance and service life of the module to be tested 110.
[0026] To solve the above technical problems, the applicant discovered during research that there is a certain linear correspondence between the state of the module to be tested 110 and the open-circuit voltage of the module to be tested 110, and the state of the module to be tested 110 can be obtained by detecting the open-circuit voltage of the module to be tested 110. For example, when the electrochromic module is disconnected from the power supply, the different voltages between its first electrode and the second electrode can correspond to different colors of the electrochromic module. Therefore, it is only necessary to detect the open-circuit voltage when the electrochromic module is disconnected from the power supply to accurately know the color state of the electrochromic module. Similarly, the charge state of the battery module can be accurately known.
[0027] In the following embodiments of the present application, the module to be tested is exemplified by taking the electrochromic module as an example. The transmittance of the electrochromic module and the open circuit voltage of the electrochromic module are in a monotonically corresponding relationship, that is, the color state of the electrochromic module can be accurately known by detecting its open circuit voltage. Among them, the electrochromic module can undergo a reversible color change under the action of an external electric field. The electrochromic module can color the electrochromic material by applying a voltage to the electrode pair on both sides of the electrochromic material, thereby changing the transmittance, so that the electrochromic material can switch between a transparent state and a colored state. After the electrochromic material is colored, the electrochromic material can be faded by disconnecting the electrode pair, short-circuiting the electrode pair, or applying a reverse voltage to the electrode pair.
[0028] See also Figure 2 , Figure 2This is a schematic block diagram of the structure of an electronic device 200 in other embodiments of the present application. The electronic device 200 may generally include a module under test 210, a power supply 220, a controller 230, a bridge circuit 240, and a detection module 250. The bridge circuit 240 may include a first input terminal 241, a second input terminal 242, and an output terminal 243. The first input terminal 241 is used to connect to the power supply 220 so that the power supply 220 can charge the module under test 210. The second input terminal 242 is used to connect to the controller 230 so that the controller 230 can control the conduction state of the bridge circuit 240. The output terminal 243 is used to connect to the module under test 210 to conduct electricity between the module under test 210 and the bridge circuit 240. One end of the detection module 250 is connected to the bridge circuit 240, and the other end is grounded. It should be noted that the terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, features defined as “first” or “second” may explicitly or implicitly include at least one of the features.
[0029] The detection module 250 can be a detection module integrated on the controller 230 or can be a separately provided detection module, and this embodiment of the present application does not specifically limit this. The detection module 250 and the controller 230 generally share a common ground terminal. Among them, the detection module 250 can generally only detect voltage or current in a single direction, that is, when the pressure difference between the first electrode out1 and the second electrode out2 of the module to be tested is positive, the detection module 250 can directly detect and collect the above-mentioned positive pressure difference; and when the pressure difference between the first electrode out1 and the second electrode out2 is negative, the detection module 250 cannot directly detect and collect the above-mentioned negative pressure difference. For this reason, in the embodiment of the present application, regardless of whether the pressure difference between the first electrode out1 and the second electrode out2 is positive or negative, the electrical signal detected and collected by the detection module 250 is positive through the bridge circuit 240. In the embodiment of the present application, the detection module 250 can be an analog-to-digital converter (ADC) module.
[0030] Specifically, when the power supply 220 and the module to be tested 210 are electrically connected, a charging circuit is formed between the power supply 220 and the module to be tested 210. At this time, the controller 230 controls the bridge circuit 240 to be conductive so that the power supply 220 can charge the module to be tested 210. When the power supply 220 and the module to be tested 210 are electrically disconnected, the controller 230 controls the bridge circuit 240 to be conductive so that a discharge circuit is formed between the bridge circuit 240 and the module to be tested 210, and the detection module 210 collects the electrical signal of the discharge circuit, that is, the open-circuit signal of the module to be tested 210, thereby obtaining the specific state of the module to be tested 210. It can be understood that the open-circuit signal of the module to be tested 210 can be a voltage signal, current signal, etc. of the discharge circuit. In the embodiment of the present application, the detection module 210 is taken as an example to illustrate that the voltage signal of the discharge circuit is collected by the detection module 210, that is, the specific state of the module to be tested 210 is obtained by collecting the open-circuit voltage of the module to be tested 210. It is understandable that the bridge circuit 240 may generally further include a VCC port for supplying power to the switching devices in the bridge circuit 240 .
[0031] See also Figure 3 , Figure 3 yes Figure 2 Schematic diagram of the circuit structure of the electronic device 200 in the embodiment, wherein the bridge circuit 240 is an H-bridge. Of course, in other embodiments, the bridge circuit 240 can be other circuits capable of changing the direction of current flow.
[0032] The controller MCU can control the conduction state of the power supply 220 and the conduction state of the bridge circuit 240. For example, the controller MCU can control the power supply 220 to be turned off, that is, the power supply 220 cannot charge the module under test 210; or the controller MCU can control the power supply 220 to be turned on, that is, the power supply 220 can charge the module under test 210. Similarly, the controller MCU can control the bridge circuit 240 to achieve different conduction states.
[0033] Specifically, when the bridge circuit 240 is an H-bridge, the bridge circuit 240 includes two half-bridges, each of which is provided with an upper switch tube (Q1, Q3) and a lower opening tube (Q2, Q4), wherein the switch tube can be a switching device such as a MOSFET tube. The drains of the upper switch tube and the lower opening tube (Q1 and Q2, Q3 and Q4) provided on the corresponding bridge are connected in series, and the gates of the upper switch tube and the gates of the lower switch tube respectively receive the control signals (PWM1, PWM2, PWM3, PWM4) output by the controller MCU, and the on and off of each switch tube are respectively controlled by the above-mentioned control signals. Of course, in other embodiments, the bridge circuit can be other inverter circuits, for example, it can include three half-bridges, such as a motor control inverter circuit, to achieve a change in the direction of current flow.
[0034] For example, consider the PWM high and low level signals output by the controller MCU to control the on and off of the switches. "0" indicates that the upper switch is off and the lower switch is closed; "1" indicates that the upper switch is closed and the lower switch is off. The control signal output by the controller MCU has four possible values: {1 0}, {1 1}, {0 1}, and {0 0}. When the control signals are {1 0} and {0 1}, the H-bridge is on; when the control signals are {1 1} and {0 0}, the H-bridge is off.
[0035] In the charging state, that is, the power supply and the module to be tested are in a conductive state to form a charging circuit. For example, the positive pole of the power supply corresponds to the first electrode out1, and the negative pole of the power supply corresponds to the second electrode out2. When the control signal is {1 0}, Q1 and Q4 are turned on, and Q2 and Q3 are turned off. Current flows from the first electrode out1 into the module to be tested, and current flows out of the module to be tested from the second electrode out2 to charge the module to be tested. When the control signal is {0 1}, Q1 and Q4 are turned off, and Q2 and Q3 are turned on. Current flows from the second electrode out2 into the module to be tested, and current flows out of the module to be tested from the first electrode out1 to charge the module to be tested. In the discharging state, that is, the power supply and the module to be tested are in a disconnected state (power off), the module to be tested discharges due to leakage current to form a discharge circuit with the bridge circuit. For example, the positive pole of the power supply corresponds to the first electrode out1, and the negative pole of the power supply corresponds to the second electrode out2. When the control signal is {1 0}, Q1 and Q4 are turned on, and Q2 and Q3 are turned off. Current flows out of the first electrode out1. When the control signal is {0 1}, Q1 and Q4 are turned off, and Q2 and Q3 are turned on. Current flows out of the second electrode out2.
[0036] It's understandable that when current flows from the first electrode out1 into the module under test in the charging circuit, current flows out of the first electrode out1 of the module under test in the discharging circuit. This means the bridge circuit maintains the same conduction state in both the charging and discharging circuits. For example, during charging, the control signal turns Q1 and Q4 on, while Q2 and Q3 are off. Similarly, during discharging, the control signal turns Q1 and Q4 on, while Q2 and Q3 are off.
[0037] Furthermore, when the voltage of the first electrode out1 of the module to be tested is higher than the voltage of the second electrode out2, that is, the voltage difference between the first electrode out1 and the second electrode out2 is positive, current flows out of the first electrode out1 when the module to be tested is discharged. When the voltage of the first electrode out1 of the module to be tested is lower than the voltage of the second electrode out2, that is, the voltage difference between the first electrode out1 and the second electrode out2 is negative, current flows out of the second electrode out2 when the module to be tested is discharged. If the conduction state of the bridge circuit remains unchanged, the current flows in different directions of the discharge circuit for voltage differences in different directions of the module to be tested. That is, when the voltage difference between the first electrode out1 and the second electrode out2 of the module to be tested is positive, the current flows in the first direction; when the voltage difference between the first electrode out1 and the second electrode out2 is negative, the current flows in the second direction, wherein the first direction and the second direction are opposite.
[0038] Because the detection module can only detect positive voltage differentials, the detection module is connected to a bridge circuit to change the direction of current flow, so that regardless of whether the voltage differential between the first electrode out1 and the second electrode out2 is positive or negative, the detection module 250 can detect and collect positive voltage differentials. For example, when the voltage differential between the first electrode out1 and the second electrode out2 is positive, current flows from the first electrode out1. At this time, Q1 and Q4 are controlled to be conductive, and the detection module 250 can detect and collect positive voltage differentials. When the voltage differential between the first electrode out1 and the second electrode out2 is negative, current flows from the second electrode out2. At this time, Q2 and Q3 are controlled to be conductive, and the detection module 250 can detect and collect positive voltage differentials. That is, when the voltage differential between the two ends of the module to be tested is positive or negative, by controlling the conductive state of the bridge circuit, the voltage differential detected and collected by the detection module 250 is always positive.
[0039] The electronic device provided in the embodiment of the present application connects the detection module to the bridge circuit and controls the conduction state of the bridge circuit, so that the detection module can accurately obtain the open-circuit voltage of the module to be tested, and then obtain the current state of the module to be tested (such as color state, power state, etc.).
[0040] See also Figure 4 , Figure 4 yes Figure 2 Another circuit structure diagram of the electronic device 200 in the embodiment, the electronic device 200 may further include a switch device 260. The switch device 260 may be a field effect transistor (MOS transistor).
[0041] The switch device 260 is provided between the power supply 220 and the bridge circuit 240, and is respectively connected to the power supply 220 and the bridge circuit 240. In the embodiment of the present application, the switch device 260 is connected to the first input terminal of the bridge circuit 240, and the power supply 220 can be disconnected by turning off the switch device 260.
[0042] In actual application scenarios, some power supplies output a strong pull-down state when turned off, which can easily lower the open-circuit voltage of the module under test, resulting in inaccurate detection results from the detection module. To this end, in an embodiment of the present application, in order to avoid restrictions on power supply selection, a switching device is provided between the power supply and the bridge circuit. When the detection module detects the open-circuit voltage of the module under test, the switching device is synchronously turned off, cutting off the loop from the bridge circuit to the power supply, preventing the output state of the power supply from affecting the open-circuit voltage of the module under test and improving detection accuracy.
[0043] Another aspect of the present application embodiment further provides a method for detecting an open circuit signal of an electronic device, wherein the electronic device may be the electronic device 200 in the aforementioned embodiment. Figure 5 , Figure 5 1 is a flow chart of a method for detecting an open circuit signal of an electronic device in some embodiments of the present application. The detection method generally includes the following steps:
[0044] S501 : Control the conduction state of the power supply so that the power supply and the module to be tested are electrically disconnected.
[0045] Among them, the module to be tested takes an electrochromic module as an example, for example, it can be an electronic device housing. The housing can be an electrochromic housing, and when the housing is energized and voltage is applied, that is, when charging, the housing can realize the color change function. In addition, the voltage applied to the housing is different, and the corresponding color displayed by the housing is different, so the voltage applied to the housing can be a positive voltage, a negative voltage, etc. When charging is completed and the power supply is disconnected, the color of the housing will gradually change due to the influence of the leakage current. This change is generally slow and difficult for the human eye to distinguish in a short time. When the leakage continues for a period of time, the color of the housing will change significantly and may become a color that is not what the user expects.
[0046] Obviously, when the power supply is disconnected, there is a monotonic correspondence between the color of the shell and the open-circuit voltage of the shell. The color state of the shell can be known by detecting the open-circuit voltage of the shell, so that the shell can be charged at the appropriate time to avoid a more obvious change in the color of the shell. Of course, for application scenarios where the user wants to actively change the color of the shell, the direction of the shell can be actively changed by changing the direction of the current during charging, that is, applying different voltages to the shell. For example, when a positive voltage is applied to the shell, the shell displays the color after electrochromism, that is, the colored state; when a negative voltage is applied to the shell, the shell displays its own color, that is, the faded state. It can be understood that the color state of the shell is not limited to the above-mentioned colored state and faded state, and can also have other color forms. Those skilled in the art can derive other color forms through a limited number of experiments based on this solution, and the embodiments of this application do not list them one by one.
[0047] Therefore, in order to accurately know the color status of the shell, it is first necessary to control the conduction state of the power supply so that the power supply and the module to be tested, i.e., the shell, are electrically disconnected. Among them, the on-off of the power supply can be controlled by the controller in the aforementioned embodiment. Of course, in other embodiments, the on-off of the power supply can also be controlled by active human operation. Specifically, a program can be set in the controller to automatically control the on-off of the power supply. For example, it can be set to automatically disconnect the power supply after each charging of the module to be tested, i.e., the shell, is completed, and the open circuit voltage of the shell is detected at a certain interval to know the color status of the shell. Alternatively, when the user wants to know the color status of the shell at a certain moment, a detection instruction is issued, and the controller controls the power supply and the module to be tested to disconnect electrically according to the detection instruction, so as to facilitate the open circuit voltage detection of the shell, and then know the color status of the shell.
[0048] In some embodiments, as Figure 4 As shown, the electronic device includes a switching device arranged between the power supply and the bridge circuit. Therefore, when controlling the conductive state of the power supply, the step of disconnecting the power supply and the module to be tested should also include: turning off the switching device to facilitate detecting the open-circuit voltage of the module to be tested, and then knowing the color state of the shell.
[0049] S502: Control the conduction state of the bridge circuit so that the bridge circuit and the module to be tested form a discharge loop. Specifically, the conduction state of the bridge circuit can be controlled according to the different voltage differences across the module to be tested so that the discharge loop maintains the same current flow direction.
[0050] As mentioned above, the direction of current flowing through the bridge circuit varies depending on the bridge circuit's conduction state. The voltage across the module under test can be either positive or negative. To ensure the detection module detects a positive voltage difference across the module under test, the bridge circuit's conduction state is controlled to ensure the detection module's voltage detection direction is always positive.
[0051] Furthermore, the step of controlling the conduction state of the bridge circuit includes: inputting a logic instruction to the bridge circuit to control the conduction state of the bridge circuit. The logic instruction can be a control signal output by the controller MCU in the aforementioned embodiment, that is, outputting a high or low level signal to control the on and off of the switch tube. Figure 6 and Figure 7 , Figure 6 yes Figure 5 A schematic diagram of current flow in a discharge circuit in an embodiment, Figure 7 yes Figure 5 Schematic diagram of current flow in another discharge circuit in an embodiment.
[0052] The logic instruction may include a first logic instruction and a second logic instruction, wherein the first logic instruction causes the bridge circuit and the module to be tested to form a first discharge loop; and the second logic instruction causes the bridge circuit and the module to be tested to form a second discharge loop. Figure 6 In the example, the bridge circuit and the module to be tested form a first discharge loop. The voltage difference between the first electrode out1 and the second electrode out2 of the module to be tested is positive. The control signal output by the controller, i.e., the first logic instruction, is {1 0}. At this time, Q1 and Q4 are turned on, and Q2 and Q3 are turned off. The current flow direction of the first discharge loop is as follows: Figure 6 The counterclockwise direction shown by L1. Figure 7 In the example, the bridge circuit and the module to be tested form a second discharge loop. The voltage difference between the first electrode out1 and the second electrode out2 of the module to be tested is negative. The control signal output by the controller, i.e., the second logic instruction, is {0 1}. At this time, Q1 and Q4 are turned off, and Q2 and Q3 are turned on. The current flow direction of the second discharge loop is as follows: Figure 7 The counterclockwise direction shown by L2.
[0053] Of course, in other embodiments, the logic instruction may further include a third logic instruction, which may be used to shut down the bridge circuit. For example, when the control signal output by the controller, i.e., the third logic instruction, is {0 0}, Q1, Q2, Q3, and Q4 are all turned off.
[0054] That is, in the embodiment of the present application, the voltage difference in different directions at both ends of the module to be tested is controlled by the different conduction states of the bridge circuit, so that the electrical signals of the first discharge circuit and the second discharge circuit flow in the same direction, thereby ensuring that the direction of the open circuit voltage detected by the detection module is always in the same direction.
[0055] S503: Collect the electrical signal of the discharge circuit through the detection module.
[0056] Specifically, one end of the detection module is connected to a bridge circuit and the other end is grounded. A controller controls the bridge circuit to conduct, forming a discharge loop between the bridge circuit and the module under test. Depending on the voltage difference in different directions across the module under test and the different conduction states of the bridge circuit, a first discharge loop and a second discharge loop can be formed between the bridge circuit and the module under test. The detection module collects electrical signals from either the first or second discharge loop.
[0057] For example, when the logic instruction input to the bridge circuit is {1 0}, the detection module collects the electrical signal of the first discharge circuit; when the logic instruction input to the bridge circuit is {0 1}, the detection module collects the electrical signal of the second discharge circuit. Specifically, the electrical signal collected by the detection module can be a voltage signal or a current signal. In an embodiment of the present application, the electrical signal collected by the detection module from the discharge circuit includes at least one of the open circuit voltage and leakage current of the module to be tested. When the detection module collects the open circuit voltage of the module to be tested, the color state of the shell can be obtained through the monotonic correspondence between the color of the shell and the open circuit voltage of the shell. When the detection module collects the leakage current of the module to be tested, the open circuit voltage can be obtained by calculation, and the color state of the shell can be obtained.
[0058] The open circuit signal detection method provided in the embodiment of the present application controls the on-state of the power supply and the on-state of the bridge circuit, thereby disconnecting the electrical connection between the power supply and the module to be tested, and forming a discharge loop between the bridge circuit and the module to be tested, and then collecting the electrical signal of the discharge loop through the detection module to obtain the corresponding state of the module to be tested.
[0059] It is understood that the initial state of the module under test can be a faded state or a colored state. When the initial state is a colored state, the detection method described in the aforementioned embodiment can be used to obtain the open circuit signal of the module under test. When the initial state is a faded state, the module under test needs to be charged to make the module under test display the corresponding state.
[0060] Specifically, see Figure 8 , Figure 8 1 is a flow chart of a method for detecting an open-circuit signal of an electronic device in some other embodiments of the present application, wherein the electronic device may be the electronic device 200 in the aforementioned embodiment. The detection method generally includes the following steps:
[0061] S801: Control the power supply's conduction state so that the power supply and the module under test form a charging circuit. Specifically, when the module under test is initially faded, its color state is readily apparent and can be detected without requiring open-circuit signal detection. Therefore, charging the module under test is necessary to enable its corresponding function, such as the color change of the housing.
[0062] First, it is necessary to control the on-state of the power supply so that the power supply and the module to be tested, i.e., the shell, form a charging circuit to charge the module to be tested. The on-off of the power supply can be controlled by the controller in the aforementioned embodiment. Of course, in other embodiments, the on-off of the power supply can also be controlled by human active operation. For example, a program can be set in the controller to automatically control the on-off of the power supply. In addition, in some embodiments, the electronic device includes a switching device provided between the power supply and the bridge circuit. Therefore, when controlling the on-state of the power supply so that the power supply and the module to be tested form a charging circuit, the step should also include: turning on the switching device to facilitate charging the module to be tested.
[0063] It is understandable that during the process of charging the module under test, the bridge circuit must be conductive. In other words, the step of controlling the power supply to be conductive so that the power supply and the module under test form a charging loop implicitly includes controlling the bridge circuit to be conductive.
[0064] Furthermore, the different conduction states of the bridge circuit result in different voltage differentials across the module under test. For example, take the case where the positive pole of the power supply corresponds to the first electrode out1 of the module under test, and the negative pole of the power supply corresponds to the second electrode out2 of the module under test. The control signal {1 0} output by the controller turns on Q1 and Q4, and turns off Q2 and Q3. In this conduction state of the bridge circuit, after the module under test completes charging, the voltage differential between its first electrode out1 and second electrode out2 is positive. The control signal {0 1} output by the controller turns off Q1 and Q4, and turns on Q2 and Q3. In this conduction state of the bridge circuit, after the module under test completes charging, the voltage differential between its first electrode out1 and second electrode out2 is negative.
[0065] S802. Control the conduction state of the power supply so that the power supply and the module to be tested are electrically disconnected. After the module to be tested is charged, the power supply is turned off so that the power supply and the module to be tested are disconnected to avoid overcharging that affects the service life of the module to be tested. Of course, after charging is completed, the power supply and the module to be tested can also be disconnected by turning off the bridge circuit. In an embodiment of the present application, at least one control method of turning off the power supply or turning off the bridge circuit can be used to disconnect the power supply and the module to be tested. This step can refer to step S501 in the aforementioned embodiment, so it will not be repeated here.
[0066] S803: Control the conduction state of the bridge circuit so that the bridge circuit and the module under test form a discharge circuit. It will be appreciated that while the module under test and the bridge circuit form a discharge circuit for the detection module to collect electrical signals, the module under test and the power supply are electrically disconnected. The bridge circuit maintains the same conduction state in both the charging and discharging circuits.
[0067] Specifically, when the module under test is charging, Q1 and Q4 of the bridge circuit are turned on, and Q2 and Q3 are turned off. When the module under test is discharging, Q1 and Q4 of the bridge circuit are turned on, and Q2 and Q3 are turned off. Similarly, when the module under test is charging, Q1 and Q4 of the bridge circuit are turned off, and Q2 and Q3 are turned on. When the module under test is discharging, Q1 and Q4 of the bridge circuit are turned off, and Q2 and Q3 are turned on.
[0068] For other technical features in step S803, please refer to step S502 and will not be repeated here.
[0069] S804: Collect the electrical signal of the discharge circuit through the detection module. This step can refer to step S503 in the above embodiment and will not be described in detail in this embodiment.
[0070] It's understandable that charging and discharging of the module under test can be considered two opposing processes. Within the same circuit, namely the circuit formed by the module under test and the bridge circuit, a charging circuit is formed when the module under test is connected to a power source for charging, and a discharging circuit is formed when the module under test is electrically disconnected from the power source and discharged. In other words, after each charging cycle, the controller maintains the bridge circuit's conductive state, ensuring that the bridge circuit maintains the same conductive state during the discharge cycle.
[0071] The open circuit signal detection method provided in the embodiment of the present application first determines the initial state of the module to be tested, and controls the conduction state of the power supply and the conduction state of the bridge circuit according to the initial state of the module to be tested, so that the power supply and the module to be tested are connected or disconnected, thereby charging or discharging the module to be tested.
[0072] During the research, the applicant found that due to the certain delay of the bridge circuit, there may be certain errors when collecting the electrical signal of the discharge circuit immediately after the bridge circuit and the module to be tested form a discharge circuit. To solve this technical problem, the applicant proposed to avoid the error by delaying the collection of the electrical signal. Figure 9 , Figure 9 1 is a flow chart of a method for detecting an open-circuit signal of an electronic device in some other embodiments of the present application, wherein the electronic device may be the electronic device 200 in the aforementioned embodiment. The detection method generally includes the following steps:
[0073] S901: Control the on-state of the power supply so that the power supply and the module to be tested are electrically disconnected. This step may refer to step S501 or step S802 in the above embodiment.
[0074] S902: Control the conduction state of the bridge circuit so that the bridge circuit and the module to be tested form a discharge loop. This step can refer to step S502 or step S803 in the above embodiment.
[0075] S903: After the bridge circuit and the module under test form a discharge loop, collect the electrical signal of the discharge loop after a predetermined period of time. Specifically, when the bridge circuit and the module under test form the discharge loop and the module under test begins to discharge, there is a certain delay in the electrical signal that can be detected by the end of the detection module connected to the bridge circuit. To eliminate the impact of this delay on the detection results, the embodiment of the present application collects the electrical signal of the discharge loop after a certain period of time after the discharge loop is formed, thereby ensuring the accuracy of the detection results.
[0076] Specifically, the length of the preset time period can be defined with reference to the switching characteristics of the bridge circuit. Generally speaking, the preset time period is not less than 1 ms. In the embodiment of the present application, the preset time period is generally 2-4 ms, for example, the preset time period can be 2 ms, 3 ms, 4 ms, etc.
[0077] S904: Collect the electrical signal of the discharge circuit through the detection module. This step can refer to step S503 or step S804 in the above embodiment.
[0078] The detection method provided in the embodiment of the present application can avoid errors in the detection results and improve the accuracy of the detection results by delaying a preset time period to collect the electrical signal of the discharge circuit after the bridge circuit and the module to be tested form a discharge circuit.
[0079] In the actual application of electrochromic modules, leakage current causes the module's color to gradually change, a change that is generally difficult for the human eye to detect. For example, leakage current causes the module's color to fade. When the module's color fades to a certain degree, the difference is clearly visible to the human eye. Therefore, in order to maintain the module's current state before the module's color fades to a level that can be distinguished by the human eye, the module is charged. In this embodiment of the present application, an electrical signal threshold is preset, and this electrical signal threshold is set according to the electrical signal setting corresponding to the state change that can be distinguished by the human eye.
[0080] Specifically, the detection method provided in the embodiment of the present application also includes a step of presetting an electrical signal threshold. This step can be set before the detection module collects the electrical signal, or after the detection module collects the electrical signal, or the electrical signal threshold is set synchronously when the detection module collects the electrical signal. That is, the embodiment of the present application does not specifically limit the timing of setting the electrical signal threshold, as long as the electrical signal threshold can be called out for comparison after the detection module collects the electrical signal.
[0081] Furthermore, the electrical signal collected by the detection module is taken as the open-circuit voltage position of the module to be tested, and the electrical signal threshold is the voltage threshold, which is the open-circuit voltage corresponding to when the human eye can distinguish the color change. In an embodiment of the present application, when the collected open-circuit voltage of the module to be tested is greater than or equal to the voltage threshold, it indicates that the color change of the module to be tested is still within the range that the human eye cannot distinguish, and the charging action can be omitted, that is, the bridge circuit is turned off. When the collected open-circuit voltage of the module to be tested is less than the voltage threshold, it indicates that the color change of the module to be tested has exceeded the range that the human eye can distinguish, and the module to be tested needs to be charged to maintain the color state of the module to be tested. At this time, the conduction state of the power supply is controlled so that the power supply and the module to be tested form a charging circuit to charge the module to be tested, that is, enter step S801.
[0082] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0083] Also, see Figure 10 , Figure 10 3 is a schematic block diagram of a system for detecting an open-circuit signal of an electronic device in some embodiments of the present application, wherein the open-circuit signal detection system 300 generally includes a bridge module 310 , a power module 320 , a control module 330 , and an acquisition module 340 .
[0084] Specifically, the bridge module 310 generally includes a first input end 311, a second input end 312 and an output end 313; the power module 320 is connected to the first input end 311; the control module 330 is connected to the second input end 312; one end of the acquisition module 340 is connected to the bridge module 310 and the other end is grounded.
[0085] The output terminal 313 of the bridge module 310 is used to connect to the module under test, which can be the module under test described in the aforementioned embodiments, such as an electrochromic module. The power module 320 is used to charge the module under test. The control module 330 is used to control the conduction state of the power module 320 to disconnect the power module 320 from the module under test, and to control the conduction state of the bridge module 310 to form a discharge circuit between the bridge module 310 and the module under test. The acquisition module 340 is used to collect the electrical signals from the discharge circuit.
[0086] It can be understood that the bridge module 310 can be the bridge circuit in the aforementioned embodiment, the power module 320 can be the power supply in the aforementioned embodiment, the control module 330 can be the controller in the aforementioned embodiment, and the acquisition module 340 can be the detection module in the aforementioned embodiment.
[0087] The present application also provides a computer-readable storage medium 400. Figure 11 , Figure 11 1 is a schematic diagram of the structure of a computer-readable storage medium 400 in some embodiments of the present application. The computer-readable storage medium 400 stores a computer program 401 for electronic data exchange. The computer program 401 causes a computer to execute some or all of the steps of any of the methods described in the above method embodiments. The computer may include an electronic device.
[0088] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in one embodiment, please refer to the relevant descriptions of other embodiments. Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by a program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium.
[0089] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0090] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0091] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0092] It should be noted that the terms "include," "comprise," and "have," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or other steps or units inherent to the process, method, product, or apparatus.
[0093] The above descriptions are only some embodiments of the present application and do not limit the scope of protection of the present application. Any equivalent device or equivalent process transformation made using the contents of the description and drawings of this application, or directly or indirectly applied in other related technical fields, are also included in the scope of patent protection of this application.
Claims
1. An electronic device, characterized in that: The electronic device includes a module to be tested, a controller, a power supply, a bridge circuit, and a detection module. The module to be tested is an electrochromic module. The bridge circuit includes a first input terminal for connecting to a power supply, an output terminal for connecting to the module to be tested, and a second input terminal for connecting to the controller. The controller is used to control the conduction state of the power supply and the bridge circuit. The power supply is used to charge the module to be tested. One end of the detection module is connected to the bridge circuit and the other end is grounded; When the bridge circuit and the module to be tested form a discharge loop, the detection module collects an electrical signal from the discharge loop for characterizing the color state of the module to be tested, wherein the electrical signal includes at least one of an open circuit voltage and a leakage current of the module to be tested; The electronic device is used to obtain the color state of the module to be tested based on the electrical signal; In the charging state, the power supply and the module to be tested are in a conductive state to form a charging circuit; In the discharge state, the power supply and the module to be tested are in a disconnected state, and the module to be tested and the bridge circuit form a discharge loop.
2. The electronic device according to claim 1, wherein The electronic device further includes a switching device, wherein the switching device is connected to the power supply and the bridge circuit respectively.
3. The electronic device according to claim 1 or 2, characterized in that: The bridge circuit is an H-bridge.
4. A method for detecting an open circuit signal of an electronic device, characterized in that: The electronic device includes a module to be tested, a controller, a power supply, a bridge circuit, and a detection module. The module to be tested is an electrochromic module. The bridge circuit includes a first input terminal for connecting to the power supply, an output terminal for connecting to the module to be tested, and a second input terminal for connecting to the controller. One end of the detection module is connected to the bridge circuit, and the other end is grounded; The detection method comprises: Controlling the conduction state of the power supply so that the power supply and the module to be tested are electrically disconnected; Controlling the conduction state of the bridge circuit so that the bridge circuit and the module to be tested form a discharge loop; The detection module collects the electrical signal of the discharge circuit for representing the color state of the module to be tested; Acquire the color state of the module to be tested based on the electrical signal; The electrical signal includes at least one of the open circuit voltage and leakage current of the module to be tested; In the charging state, the power supply and the module to be tested are in a conductive state to form a charging circuit; In the discharge state, the power supply and the module to be tested are in a disconnected state, and the module to be tested and the bridge circuit form a discharge loop.
5. The detection method according to claim 4, characterized in that Before collecting the electrical signal of the discharge circuit, the method includes: collecting the electrical signal of the discharge circuit after a preset time period is delayed after the bridge circuit and the module to be tested form the discharge circuit.
6. The detection method according to claim 5, characterized in that The preset time period is not less than 1 ms.
7. The detection method according to claim 4, characterized in that The detection method further includes: presetting an electrical signal threshold; When the electrical signal is less than the electrical signal threshold, controlling the conduction state of the power supply so that the power supply and the module to be tested form a charging circuit to charge the module to be tested; When the electrical signal is greater than or equal to the electrical signal threshold, the bridge circuit is turned off.
8. The detection method according to claim 7, characterized in that The controlling the conduction state of the bridge circuit includes: inputting a logic instruction to the bridge circuit to control the conduction state of the bridge circuit; wherein, The logic instruction includes a first logic instruction and a second logic instruction; the first logic instruction causes the bridge circuit and the module to be tested to form a first discharge circuit; the second logic instruction causes the bridge circuit and the module to be tested to form a second discharge circuit; the electrical signals of the first discharge circuit and the second discharge circuit flow in the same direction; the detection module collects the electrical signals of the first discharge circuit or the second discharge circuit.
9. The detection method according to claim 8, characterized in that The electronic device further includes a switch device provided between the power supply and the bridge circuit; and controlling the conduction state of the power supply includes: turning off the switch device.
10. The detection method according to claim 9, characterized in that: The switching device is a field effect transistor.
11. The detection method according to claim 9, characterized in that Before the power supply and the module to be tested are disconnected electrically, the method includes: controlling the conduction state of the power supply so that the power supply and the module to be tested form a charging circuit.
12. The detection method according to claim 11, characterized in that The bridge circuit has the same conduction state in the charging circuit and the discharging circuit.
13. The detection method according to any one of claims 4 to 12, characterized in that: The electrical signal of the discharge circuit includes the open circuit voltage of the module to be tested.
14. A detection system for an open circuit signal of an electronic device, characterized in that: include: A bridge module comprising a first input terminal, a second input terminal and an output terminal; a power supply module, connected to the first input terminal; a control module connected to the second input terminal; An acquisition module, one end of which is connected to the bridge module and the other end is grounded; The output terminal is used to connect to the module to be tested, and the power module is used to charge the module to be tested; the control module is used to control the conduction state of the power module so that the power module and the module to be tested are electrically disconnected, and is used to control the conduction state of the bridge module so that the bridge module and the module to be tested form a discharge loop; the acquisition module is used to acquire an electrical signal from the discharge loop that is used to characterize the color state of the module to be tested, and the detection system is used to obtain the color state of the module to be tested based on the electrical signal; The electrical signal includes at least one of the open circuit voltage and leakage current of the module to be tested; In the charging state, the power supply and the module to be tested are in a conductive state to form a charging circuit; In the discharge state, the power supply and the module to be tested are in a disconnected state, and the module to be tested and the bridge circuit form a discharge loop.
15. A computer-readable storage medium, characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the detection method according to any one of claims 4 to 13.
Citation Information
Patent Citations
Electrochromic window driver
US20040001056A1