Electrochromic glass control method, electronic device, and vehicle
Patent Information
- Application Number
- PCT/CN2026/072715
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-03-28
- Filing Date
- 2026-01-15
- Publication Date
- 2026-10-01
Smart Images

Figure CN2026072715_01102026_PF_FP_ABST
Abstract
Description
Electrochromic glass control methods, electronic devices and vehicles
[0001] This application claims priority to Chinese patent application filed on March 28, 2025, with application number 202510394709.2 and entitled "Method for controlling electrochromic glass, electronic device and vehicle", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of switching glass technology, specifically to an electrochromic glass control method, electronic equipment, vehicle, storage medium, and program product. Background Technology
[0003] Smart glass refers to glass with a laminated structure added between traditional double-pane glass to allow for adjustable light transmittance. Due to its good heat insulation and privacy protection, and with the gradual maturation and cost reduction of smart glass technology, the demand for its application in scenarios such as automotive windows is increasing. Currently, smart glass includes four types: Polymer Dispersed Liquid Crystal (PDLC), Suspended Particle Device (SPD), Dye-Doped Liquid Crystal (DLC), and Electrochromic (EC) glass. Among these, electrochromic glass is more commonly used in automotive environments due to its high magnification and neutral black color in both bright and dark states. However, the transmittance adjustment precision of current electrochromic glass is relatively low. Summary of the Invention
[0004] In view of this, this application provides an electrochromic glass control method, electronic device, vehicle, storage medium, and program product, which can improve the transmittance adjustment accuracy of electrochromic glass.
[0005] In a first aspect, a method for controlling electrochromic glass is provided, comprising: acquiring a target gear position; acquiring a target charge / discharge value required to switch to the target gear position based on a settling time, wherein the settling time is the duration from the completion of gear shifting to the acquisition of the gear shifting command for the target gear position, and different settling times correspond to different strategies for acquiring the target charge / discharge value; and charging and discharging the electrochromic glass based on the target charge / discharge value.
[0006] The electrochromic glass control method of this application, based on the target charge / discharge value obtained from the resting time, can compensate for the OCV deviation based on the resting time, so that the target charge / discharge value is closer to the charge / discharge value required for the target level. Furthermore, since different resting times will produce OCV deviations based on different influencing factors due to various reasons, different resting times correspond to different target charge / discharge value acquisition strategies. This allows for the use of corresponding acquisition strategies to compensate for OCV deviations based on different influencing factors, ensuring that the compensated charge / discharge value matches the corresponding influencing factor, further making the compensated target charge / discharge value closer to the charge / discharge value required for the target level.
[0007] Furthermore, the electrochromic glass control method of this application embodiment is applicable to schemes using fixed charge / discharge values. Using fixed charge / discharge values for gear switching can improve the accuracy of transmittance adjustment, keeping the transmittance stable within a smaller fluctuation range. Therefore, during the process of obtaining the target charge / discharge value required to switch to the target gear based on the resting time, the actual OCV deviation can be found, and the corresponding charge deviation can be obtained. During the next gear switch, the electrochromic glass is charged and discharged based on the target charge / discharge value that compensates for the charge deviation, making the charge / discharge value during gear switching closer to the set value, thereby improving the accuracy of transmittance adjustment.
[0008] In one possible implementation, the strategy for obtaining the target charge / discharge value includes a first strategy; if the resting time is longer than a first preset time and not longer than a second preset time, the target charge / discharge value is obtained using the first strategy; the first strategy includes: obtaining the current open circuit voltage value of the electrochromic glass and the set open circuit voltage value of the current gear, and calculating the target charge / discharge value based on the current open circuit voltage value and the set open circuit voltage value of the current gear.
[0009] The first preset time represents the time required for the electrochromic glass to reach a homogenized stable state after a gear change. The second preset time represents the time during which the deviation caused by the homogenization process of the electrochromic glass is the dominant factor. If the settling time is longer than the first preset time, it indicates that the electrochromic glass has reached a homogenized stable state. At this time, the current open-circuit voltage value OCVx can be detected as the basis for determining the OCV deviation. Simultaneously, if the settling time is not greater than the second preset time, it indicates that in the current state, the main influencing factor of the OCV deviation of the electrochromic glass is homogenization. Assuming the current gear is 2, the corresponding set open-circuit voltage value OCVn is, i.e., the OCV corresponding to the current gear should be OCVn, while OCVx is the currently detected OCV. The difference between the current open-circuit voltage value OCVx and the set open-circuit voltage value OCVn for the current gear reflects the OCV deviation caused by homogenization. The target charge / discharge value Q calculated based on OCVx and OCVn can compensate for the charge / discharge value corresponding to the OCV deviation, thereby making the VLT of the electrochromic glass after charging and discharging based on the target charge / discharge value Q closer to the set VLT of the target level, thus improving the transmittance adjustment accuracy of the electrochromic glass.
[0010] In one possible implementation, the strategy for obtaining the target charge / discharge value includes a second strategy; if the resting time is longer than a second preset time, the target charge / discharge value is obtained using the second strategy; the second strategy includes: obtaining the target charge / discharge value based on the resting time and the set circuit breaker voltage value of the current gear.
[0011] If the resting time is no longer than the second preset time, it indicates that the OCV deviation caused by the homogenization process of the electrochromic glass is the dominant factor. If the resting time is longer than the second preset time, it indicates that the charge decay of the electrochromic glass is the dominant factor. The degree of deviation caused by charge decay is positively correlated with the resting time; the longer the resting time, the greater the charge decay. Therefore, if it is determined that the deviation caused by charge decay is dominant, the second strategy is adopted to obtain the target charge / discharge value Q. In the second strategy, the target charge / discharge value Q is obtained by looking up a table based on the resting time and the current setting of the circuit breaker voltage value OCVn. OCVn is used to represent the transmittance decay, or the starting position of charge decay. Based on the starting position and the resting time, the degree of OCV or charge decay can be determined. By compensating for the charge decay, the target charge / discharge value Q without deviation can be obtained.
[0012] In one possible implementation, before charging and discharging the electrochromic glass based on the target charge / discharge value, the method further includes: if the attenuation difference between the current open-circuit voltage value of the electrochromic glass and the set open-circuit voltage value of the current gear is greater than a preset value, then obtaining a supplementary charge value to reach the set open-circuit voltage value of the current gear; supplementing the electrochromic glass based on the supplementary charge value; and the resting time is the time between the completion of gear shifting and supplementary charging and the acquisition of the gear shifting command for the target gear.
[0013] If a significant decrease in OCV is detected, the system will directly trigger the replenishment of the lost charge. At this point, the static time is reset to zero and recalculated. In other words, if supplementary charging is triggered, the static time is recalculated from the point where supplementary charging is completed. Supplementary charging can replenish the lost charge before gear shifting. Furthermore, during the next gear shift, any deviations after supplementary charging can still be compensated for, thereby improving the gear shifting accuracy of the electrochromic glass.
[0014] In one possible implementation, the second strategy includes: obtaining the target charge / discharge value based on the resting time, the current temperature, and the set circuit breaker voltage value of the current gear through a preset relationship, with different current temperatures corresponding to different preset relationships.
[0015] The charge decay curves differ in different temperature ranges. Therefore, the decay curves calibrated by the preset test can be obtained by testing in different temperature ranges. When looking up the table through the preset relationship, the target charge / discharge value Q is determined based on the temperature range to which the current temperature of the electrochromic glass belongs, thereby improving the switching accuracy of the electrochromic glass.
[0016] In one possible implementation, the target charge / discharge value is the sum of the power compensation value and the set charge / discharge value; in the first strategy, the power compensation value is obtained based on the difference between the current circuit breaker voltage value and the set circuit breaker voltage value of the current gear; the set charge / discharge value is obtained based on the current gear and the target gear.
[0017] In one possible implementation, the target charge / discharge value is the sum of the power compensation value and the set charge / discharge value; in the second strategy, the power compensation value is obtained based on the circuit breaker voltage compensation value and a first preset relationship, which represents the mapping relationship between the power value and the circuit breaker voltage value; the circuit breaker voltage compensation value is obtained based on the resting time, the set circuit breaker voltage value of the current gear, and a second preset relationship, which represents the mapping relationship between the resting time and the circuit breaker voltage value, with different set circuit breaker voltage values corresponding to different second preset relationships; the set charge / discharge value is obtained based on the current gear and the target gear.
[0018] In one possible implementation, the target gear corresponds to a target transmittance of 0.2%-0.6%, 1%-4%, 4%-8%, or 8%-15%.
[0019] In a second aspect, an electronic device is provided, comprising: a processor and a memory, the memory being used to store at least one instruction, which, when loaded and executed by the processor, causes the electronic device to perform the method described above.
[0020] Thirdly, a vehicle is provided, including electrochromic glass and the aforementioned electronic equipment.
[0021] Fourthly, a computer-readable storage medium is provided, including a program or instructions, wherein the above-described method is executed when the program or instructions are run on a computer.
[0022] Fifthly, a computer program product is provided, the computer program product containing executable instructions, which, when executed on a computer, cause the computer to perform the above-described method. Attached Figure Description
[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 shows the effect of an electrochromic glass at the end of charging and discharging.
[0025] Figure 2 is a schematic diagram of charge and discharge curves under different capacities;
[0026] Figure 3 is a schematic diagram of the VLT curves corresponding to multiple changes between different settings of electrochromic glass in related technologies.
[0027] Figure 4 is a schematic diagram of an application scenario of an electrochromic glass in an embodiment of this application;
[0028] Figure 5 is a flowchart illustrating an electrochromic glass control method according to an embodiment of this application;
[0029] Figure 6 is a schematic diagram of a VLT curve in an embodiment of this application that uses a fixed charge / discharge value to switch between two levels;
[0030] Figure 7 is a schematic diagram of the correspondence between △OCV and OCVn under different gear positions in an embodiment of this application;
[0031] Figure 8 is a schematic diagram of the decay curve of VLT over time in an embodiment of this application;
[0032] Figure 9 is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation
[0033] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0034] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0035] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0036] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0037] The principle behind electrochromic glass is that under the influence of an applied electric field, the electrochromic material undergoes a stable and reversible chemical change, thereby altering the material's transmittance. This manifests as a reversible change in color and transparency. Electrochromic glass can be simply understood as a battery; by charging and discharging the glass, its transmittance can be adjusted. During discharge, the electrochromic glass darkens, and during charging, it brightens. The transmittance of the electrochromic glass can be adjusted by controlling the amount of electricity used in charging and discharging.
[0038] Multiple settings can be set based on visible light transmittance (VLT), with different settings corresponding to different VLTs. For example, the VLT adjustment range of 0.32%-12% can be divided into four settings: 3, 2, 1, and 0, which correspond to VLTs of 0.32%, 2%, 6%, and 12%, respectively.
[0039] The charging and discharging of electrochromic glass can be controlled by the voltage applied to two charging and discharging electrodes, thereby adjusting the setting. When charging and discharging stops, there is a certain transition relationship between the open circuit voltage (OCV) between these two charging and discharging electrodes and the VLT of the electrochromic glass. In related technologies, the charge-discharge curve between the brightest and darkest states is generally used as a calibration basis during the early design stage. The amount of charge or discharge required is determined by measuring the difference between the current OCVx and the target setting OCVn.
[0040] However, the calibration or measurement of OCV may produce deviations, which will lead to deviations in the amount of charge and discharge required, resulting in lower transmittance adjustment accuracy of the electrochromic glass.
[0041] For example, as shown in Figure 1, the electrodes for charging and discharging electrochromic glass are arranged at the edge of the glass. Since the chemical reaction is more complete at the edge, the color change is faster at the periphery and slower in the middle. Therefore, after the actual charging and discharging is completed, the degree of reaction components inside and outside the electrochromic glass film is not consistent, and a homogenization process is required. During this process, the OCV deviation will occur.
[0042] In addition, in scenarios where the glass is left to stand still for a long time after shifting gears, the electrochromic glass will exhibit a phenomenon similar to that of a battery that loses power over time. That is, the OCV of the electrochromic glass will decay due to self-discharge, which will lead to a deviation in the OCV.
[0043] Furthermore, as shown in Figure 2, which illustrates the VLT and OCV curves for different charge / discharge levels (OCV on the horizontal axis and VLT on the vertical axis), it can be seen that due to the inconsistent charge / discharge efficiencies between different levels, the OCV corresponding to switching between different levels will deviate. This leads to deviations in the charge / discharge values determined based on a pre-calibrated VLT and OCV curve due to OCV deviations, resulting in inaccurate VLT adjustment. For example, in the curve for charging at 75% full charge, the OCV corresponding to VLT = 2% is 0.075V, while in the curve for charging at 20% full charge, the OCV corresponding to VLT = 2% is 0.14V.
[0044] Furthermore, as shown in Figure 3, which illustrates the actual VLT change during multiple shifts between gears with VLT=2% and VLT=6%, the horizontal axis represents the number of gear shifts and the vertical axis represents VLT. It can be seen that after multiple gear changes, the accuracy will become increasingly worse due to the cumulative deviation.
[0045] This application provides a method for controlling electrochromic glass, which can improve the transmittance adjustment accuracy of electrochromic glass.
[0046] The electrochromic glass control method of this application embodiment controls electrochromic glass used in various scenarios. For example, it can be applied to vehicles, where the electrochromic glass can be the vehicle's panoramic sunroof or side window glass. As shown in Figure 4, for example, the rear door lift glass 1, the rear door fixed glass 2, or the rear door triangular glass 3 can be electrochromic glass. Since passengers have a higher perception of side window glass, using the electrochromic glass control method provided in this application embodiment to control the side window glass can improve the transmittance adjustment accuracy of the electrochromic glass, thereby improving the passenger experience. The following description uses the scenario of using electrochromic glass in a vehicle's side window as an example to illustrate the electrochromic glass control method.
[0047] As shown in Figure 5, this application provides a method for controlling electrochromic glass, including:
[0048] Step 101: Obtain the target gear;
[0049] The target gear level can be obtained through a received shift command, indicating the desired shift level for the electrochromic glass. This shift command can be issued by the user. For example, if the current level is 2 and the user wants to brighten the side window, they can use, for instance, the vehicle's central control system to switch the electrochromic glass's transmittance level to 1. The electrochromic glass's control device then receives the shift command and can determine the target level as 1. In essence, shift commands can be generated not only by user input to adjust the electrochromic glass's transmittance but also automatically generated by the vehicle's control system based on the scenario, thus automatically adjusting the transmittance of the electrochromic glass.
[0050] Step 102: Obtain the target charge / discharge value required to switch to the target gear based on the resting time. The resting time is the time between the completion of the gear shift and the acquisition of the gear shift command for the target gear. Different resting times correspond to different strategies for obtaining the target charge / discharge value.
[0051] Here, "shift completion" refers to the completion of the previous shift, specifically the moment when the charging and discharging of the electrochromic glass ended during the previous shift. During the time between the completion of the previous shift and the receipt of the current shift command, the OCV (Optical Characteristic Value) of the electrochromic glass may deviate, and this OCV deviation is related to the resting time. Therefore, in step 102, based on the target charging / discharging value obtained from the resting time, a compensation value for the OCV deviation can be obtained based on the resting time, making the target charging / discharging value closer to the charging / discharging value required for the target shift. Furthermore, since different resting times will produce OCV deviations based on different influencing factors due to various reasons, different resting times correspond to different target charging / discharging value acquisition strategies. This allows for the use of corresponding acquisition strategies to compensate for OCV deviations based on different influencing factors, ensuring that the compensated charging / discharging value matches the corresponding influencing factor, further making the compensated target charging / discharging value closer to the charging / discharging value required for the target shift.
[0052] Step 103: Charge and discharge the electrochromic glass based on the target charge and discharge values.
[0053] The electrochromic glass control method of this application, based on the target charge / discharge value obtained from the resting time, can compensate for the OCV deviation based on the resting time, so that the target charge / discharge value is closer to the charge / discharge value required for the target level. Furthermore, since different resting times will produce OCV deviations based on different influencing factors due to various reasons, different resting times correspond to different target charge / discharge value acquisition strategies. This allows for the use of corresponding acquisition strategies to compensate for OCV deviations based on different influencing factors, ensuring that the compensated charge / discharge value matches the corresponding influencing factor, further making the compensated target charge / discharge value closer to the charge / discharge value required for the target level.
[0054] In some embodiments, the electrochromic glass control method of this application is applicable to schemes employing fixed charge / discharge values. A fixed charge / discharge value scheme means that, during each switching between two gear levels, the electrochromic glass is charged or discharged using a charge / discharge value compensated based on the set charge / discharge values corresponding to those two gear levels. For example, each switch from gear 3 to gear 2 corresponds to a fixed set charge / discharge value Q1, a switch from gear 2 to gear 1 corresponds to a fixed set charge / discharge value Q2, and a switch from gear 3 to gear 1 corresponds to a fixed set charge / discharge value Q3, where Q3 = Q1 + Q2.
[0055] Figure 6 illustrates the VLT fluctuation curves during actual testing, where the glass was switched back and forth between two levels eight times using fixed charge / discharge values. The VLT peak fluctuations are within ±0.04%, and the VLT trough fluctuations are within ±0.06%. This demonstrates that using fixed charge / discharge values for level switching improves the accuracy of transmittance adjustment, keeping the transmittance stable within a smaller fluctuation range. Therefore, by obtaining the target charge / discharge value required to switch to the target level based on the resting time, the actual OCV deviation can be found, thus obtaining the corresponding charge deviation. During the next level switch, the electrochromic glass is charged and discharged based on the target charge / discharge value that compensates for the charge deviation. This ensures that the charge / discharge value during level switching is closer to the set value, thereby improving the accuracy of transmittance adjustment.
[0056] In some embodiments, the strategy for obtaining the target charge / discharge value includes a first strategy. During step 102, in the process of obtaining the target charge / discharge value required to switch to the target gear based on the resting time, if the resting time is longer than a first preset time and not greater than a second preset time, the target charge / discharge value is obtained using the first strategy. The first strategy includes: obtaining the current open-circuit voltage value OCVx of the electrochromic glass and the set open-circuit voltage value OCVn of the current gear, and calculating the target charge / discharge value Q based on the current open-circuit voltage value OCVx and the set open-circuit voltage value OCVn of the current gear.
[0057] Specifically, the second preset duration is longer than the first preset duration; for example, the first preset duration is 2 minutes, and the second preset duration is 10 minutes. The first preset duration represents the time required for the electrochromic glass to reach a homogenized stable state after a gear change, and its specific duration can be determined based on the material and size of the electrochromic glass. The second preset duration represents the duration during which the OCV deviation caused by the homogenization process of the electrochromic glass is the dominant factor. If the settling time is longer than 2 minutes, it indicates that the electrochromic glass has reached a homogenized stable state. At this time, the current open-circuit voltage value OCVx can be detected as the basis for determining the OCV deviation. Meanwhile, if the settling time is no more than 10 minutes, it indicates that in the current state, the main influencing factor of the OCV deviation of the electrochromic glass is the homogenization process. Assuming the current gear is 2, the corresponding set open-circuit voltage value OCVn for the current gear is OCVn, and OCVx is the currently detected OCV. The difference between the current open-circuit voltage value OCVx and the set open-circuit voltage value OCVn for the current setting reflects the OCV deviation caused by homogenization. The target charge / discharge value Q, calculated based on OCVx and OCVn, can compensate for the charge / discharge value corresponding to the OCV deviation. This makes the VLT of the electrochromic glass after charging and discharging based on the target charge / discharge value Q closer to the set VLT for the target setting, thereby improving the transmittance adjustment accuracy of the electrochromic glass.
[0058] In some embodiments, the target charge / discharge value Q is the sum of the power compensation value ΔQ and the set charge / discharge value Qn; in the first strategy, the power compensation value ΔQ is obtained based on the difference between the current circuit breaker voltage value OCVx and the set circuit breaker voltage value OCVn of the current gear; the set charge / discharge value Qn is obtained based on the current gear and the target gear.
[0059] Specifically, as shown in Figure 7, the current gear has a set open-circuit voltage value OCVn and a current open-circuit voltage value OCVx. OCVx may be higher or lower than OCVn, and the difference between them is ΔOCV = OCVx - OCVn. ΔOCV reflects the OCV deviation caused by uniformization, and the sign of ΔOCV reflects the direction of the OCV deviation. The corresponding power compensation value ΔQ can be calculated based on ΔOCV. Assuming a switch from the current gear to the target gear corresponds to a set charge / discharge value Qn, the sum of ΔQ and Qn is taken as the target charge / discharge value Q. During the switch to the target gear, charging and discharging are performed based on the target charge / discharge value Q. If OCVx is lower than OCVn, it indicates a deviation in battery capacity attenuation. If charging is required during the switch to the target level, the target charge / discharge value Q needs to be obtained by increasing the set charge / discharge value Qn, i.e., Q = Qn + ΔQ, to compensate for the deviation in battery capacity attenuation. If discharging is required during the switch to the target level, the target charge / discharge value Qn needs to be obtained by decreasing the set charge / discharge value Qn, i.e., Q = Qn - ΔQ. If OCVx is higher than OCVn, it indicates a deviation in battery capacity increment. If charging is required during the switch to the target level, the target charge / discharge value Q needs to be obtained by decreasing the set charge / discharge value Qn, i.e., Q = Qn - ΔQ, to compensate for the deviation in battery capacity increment. If discharging is required during the switch to the target level, the target charge / discharge value Qn needs to be obtained by increasing the set charge / discharge value Qn, i.e., Q = Qn + ΔQ.
[0060] In some embodiments, the strategy for obtaining the target charge / discharge value includes a second strategy; in the process of obtaining the target charge / discharge value required to switch to the target gear according to the resting time in step 102 above, if the resting time is longer than the second preset time, the target charge / discharge value is obtained using the second strategy; the second strategy includes: obtaining the target charge / discharge value according to the resting time and the set circuit breaker voltage value of the current gear.
[0061] Specifically, for example, the second preset duration is 10 minutes. If the resting time is no longer than the second preset duration, it indicates that the OCV deviation caused by the homogenization process of the electrochromic glass is the dominant factor. If the resting time is longer than the second preset duration, it indicates that the charge decay of the electrochromic glass is the dominant factor. The degree of deviation caused by charge decay is positively correlated with the resting time; the longer the resting time, the greater the charge decay. Therefore, if the resting time is longer than 10 minutes, it is determined that the deviation caused by charge decay is dominant, and the second strategy is used to obtain the target charge / discharge value Q. In the second strategy, based on the resting time and the current setting of the circuit breaker voltage value OCVn, the target charge / discharge value Q is obtained by looking up a table. OCVn represents the transmittance decay, or the starting position of charge decay. Based on the starting position and the resting time, the degree of OCV or charge decay can be determined. By compensating for the charge decay, a target charge / discharge value Q without deviation can be obtained.
[0062] In some embodiments, the target charge / discharge value Q is the sum of the power compensation value ΔQ and the set charge / discharge value Qn; in the second strategy, the power compensation value ΔQ is obtained based on the circuit breaker voltage compensation value ΔOCV and a first preset relationship, which represents the mapping relationship between the power value and the circuit breaker voltage value; the circuit breaker voltage compensation value ΔOCV is obtained based on the resting time, the set circuit breaker voltage value OCVn of the current gear, and a second preset relationship, which represents the mapping relationship between the resting time and the circuit breaker voltage value, with different set circuit breaker voltage values corresponding to different second preset relationships; the set charge / discharge value Qn is obtained based on the current gear and the target gear.
[0063] Specifically, as shown in Figure 8, the curve of VLT decaying over time is illustrated. VLT can be represented by the measurement of OCV. Therefore, the curve of OCV decaying over time can be obtained through pre-test calibration, i.e., the second preset relationship is determined. In the second preset relationship, OCVn is determined, which is the starting point of OCV decay. The ending point of OCV decay can be determined according to the resting time. The difference between the two points is the decay value of OCV ΔOCV. The power decay value, i.e. the power compensation value ΔQ, can be determined according to ΔOCV. The conversion between OCV and ΔQ can be achieved according to the first preset relationship.
[0064] In some embodiments, the second strategy includes: obtaining the target charge / discharge value Q based on the resting time, the current temperature, and the set circuit breaker voltage value of the current gear through a preset relationship, with different current temperatures corresponding to different preset relationships.
[0065] Specifically, the charge decay curves differ in different temperature ranges. Therefore, the preset test calibration decay curves can be obtained by testing in different temperature ranges. When looking up the table through the preset relationship, the target charge / discharge value Q is determined based on the temperature range to which the current temperature of the electrochromic glass belongs, thereby improving the switching accuracy of the electrochromic glass.
[0066] In some embodiments, before step 103, charging and discharging the electrochromic glass based on the target charge / discharge value, the method further includes:
[0067] If the attenuation difference between the current open circuit voltage value OCVx of the electrochromic glass and the set open circuit voltage value OCVn of the current position is greater than the preset value, then the supplementary power value △q that reaches the set open circuit voltage value of the current position is obtained.
[0068] The electrochromic glass is recharged based on the supplementary charge value Δq;
[0069] The resting time is the time between the completion of gear shifting and recharging and the receipt of the gear shift command for the target gear.
[0070] Specifically, for example, if the first preset duration is 2 minutes and the second preset duration is 10 minutes, and the resting time exceeds 10 minutes without receiving a shift command, if a significant decrease in OCV is detected, the system will directly trigger the replenishment of the lost charge. At this point, the resting time is reset to zero and recalculated. In other words, if replenishment charging is triggered, the resting time is recalculated from the point where replenishment charging is completed. Replenishment charging can compensate for the loss of charge before shifting gears. Furthermore, during the next shift, the system can still compensate for any deviations after replenishment charging, thereby improving the shifting accuracy of the electrochromic glass.
[0071] In some embodiments, the target level corresponds to a target transmittance of 0.2%-0.6%, 1%-4%, 4%-8%, or 8%-15%, and the target transmittance range includes extreme values. For example, the level is divided into four levels: 3, 2, 1, and 0. Level 3 corresponds to a transmittance of 0.2%-0.6%, such as 0.32%; level 2 corresponds to a transmittance of 1%-4%, such as 2%; level 1 corresponds to a transmittance of 4%-8%, such as 6%; and level 0 corresponds to a transmittance of 8%-15%, such as 12%. The target level can be any one of these four levels.
[0072] It should be noted that if a shift command is received when the stationary time is no more than 2 minutes, it is considered a continuous shift process. During continuous shifts, uniformity cannot be achieved, so no power compensation is performed. Only when the stationary time is greater than 2 minutes is it considered a new shift, and the first or second strategy will be adopted to perform the next shift based on the compensated target charge and discharge value.
[0073] This application also provides an electronic device, including a processor and a memory, wherein the memory is used to store at least one instruction, which, when loaded and executed by the processor, causes the electronic device to perform the above-described method.
[0074] Figure 9 shows a schematic diagram of the structure of an electronic device 100 according to an embodiment of this application.
[0075] Electronic device 100 may include processor 110, internal memory 121, etc.
[0076] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0077] The processor 110 may include one or more processing units, wherein different processing units may be independent devices or integrated into one or more processors.
[0078] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0079] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0080] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of electronic device 100, etc. In addition, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory disposed in the processor.
[0081] Electronic device 100 may be, for example, an in-vehicle device used in a vehicle. Electronic device 100 may also include charge / discharge circuitry and electrodes to charge and discharge electrochromic glass. Understandably, charge / discharge circuitry and electrodes may also be separate devices outside of electronic device 100. Electronic device 100 is used to obtain the target charge / discharge amount and to charge and discharge electrochromic glass through further control of charge / discharge circuitry and electrodes.
[0082] This application also provides a vehicle, including electrochromic glass and the aforementioned electronic device. For example, the electrochromic glass can be a side window of a vehicle.
[0083] This application also provides a computer-readable storage medium, including a program or instructions, wherein the methods of any of the above embodiments are executed when the program or instructions are run on a computer.
[0084] This application also provides a computer program product containing executable instructions that, when executed on a computer, cause the computer to perform the methods of any of the above embodiments.
[0085] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk).
[0086] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, the simultaneous existence of A and B, or the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0087] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for controlling electrochromic glass, characterized in that, include: Obtain the target gear; The target charge / discharge value required to switch to the target gear is obtained based on the resting time. The resting time is the time between the completion of the gear shift and the acquisition of the gear shift command for the target gear. Different resting times correspond to different strategies for obtaining the target charge / discharge value. The electrochromic glass is charged and discharged based on the target charge / discharge value.
2. The method according to claim 1, characterized in that, The strategy for obtaining the target charge / discharge value includes a first strategy; If the resting time is greater than the first preset time and not greater than the second preset time, then the target charge / discharge value is obtained using the first strategy. The first strategy includes: obtaining the current open-circuit voltage value of the electrochromic glass and the set open-circuit voltage value of the current gear, and calculating the target charge / discharge value based on the current open-circuit voltage value and the set open-circuit voltage value of the current gear.
3. The method according to claim 1 or 2, characterized in that, The strategy for obtaining the target charge / discharge value includes a second strategy; If the resting time is longer than the second preset time, the target charge / discharge value is obtained using the second strategy. The second strategy includes: obtaining the target charge / discharge value based on the resting time and the set circuit breaker voltage value of the current gear.
4. The method according to claim 3, characterized in that, Before charging and discharging the electrochromic glass based on the target charge / discharge value, the method further includes: If the attenuation difference between the current open circuit voltage value of the electrochromic glass and the set open circuit voltage value of the current gear is greater than a preset value, then the supplementary power value that reaches the set open circuit voltage value of the current gear is obtained. The electrochromic glass is recharged based on the aforementioned replenishment power value; The settling time is the time from the completion of the gear shift and the completion of the supplementary charging to the acquisition of the gear shift command for the target gear.
5. The method according to claim 3, characterized in that, The second strategy includes: obtaining the target charge / discharge value based on the resting time, current temperature, and the set circuit breaker voltage value of the current gear through a preset relationship, where different current temperatures correspond to different preset relationships.
6. The method according to claim 2, characterized in that, The target charge / discharge value is the sum of the power compensation value and the set charge / discharge value. In the first strategy, the power compensation value is obtained based on the difference between the current circuit breaker voltage value and the set circuit breaker voltage value of the current gear. The set charge / discharge value is obtained based on the current gear and the target gear.
7. The method according to claim 3, characterized in that, The target charge / discharge value is the sum of the power compensation value and the set charge / discharge value. In the second strategy, the power compensation value is obtained based on the circuit breaker voltage compensation value and a first preset relationship, wherein the first preset relationship is used to represent the mapping relationship between the power value and the circuit breaker voltage value. The circuit breaker voltage compensation value is obtained based on the resting time, the set circuit breaker voltage value of the current gear, and the second preset relationship. The second preset relationship is used to represent the mapping relationship between the resting time and the circuit breaker voltage value. Different set circuit breaker voltage values correspond to different second preset relationships. The set charge / discharge value is obtained based on the current gear and the target gear.
8. The method according to claim 1, characterized in that, The target levels correspond to target transmittance of 0.2%-0.6%, 1%-4%, 4%-8%, or 8%-15%.
9. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store at least one instruction that, when loaded and executed by the processor, causes the electronic device to perform the method as described in any one of claims 1 to 8.
10. A vehicle, characterized in that, Including electrochromic glass and the electronic device as described in claim 9.
11. A computer-readable storage medium, characterized in that, Includes a program or instructions that, when run on a computer, execute the method as described in any one of claims 1 to 8.
12. A computer program product, characterized in that, The computer program product includes executable instructions that, when executed on a computer, cause the computer to perform the method described in any one of claims 1 to 8.