Light and shadow control methods, systems, electronic devices and computer-readable storage media

By integrating ambient light data, ultraviolet data, and user interaction commands, the parameters of the electrochromic film and the light-emitting device are intelligently adjusted, solving the problems of single function and insufficient ultraviolet protection in the existing technology, and providing a rich visual experience and personalized light and shadow control.

CN122085572APending Publication Date: 2026-05-26SHANGHAI JIDOU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-18
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing electrochromic technology in automobiles has limited functionality and cannot provide a rich visual experience or contextualized interaction. Furthermore, it lacks real-time monitoring and dynamic adjustment capabilities for UV protection, resulting in insufficient user experience and functional practicality.

Method used

By integrating ambient light data, ultraviolet data, and user interaction commands, the system intelligently adjusts the transmittance of the electrochromic film and the light and shadow parameters of the light-emitting device to achieve gradient adjustment and protection control of ultraviolet rays. Combined with the user's personalized needs, it provides a comfortable visual experience and effective protection.

Benefits of technology

It achieves precise control of electrochromic film and light-emitting device, improves user comfort and safety, meets personalized needs, and enhances the flexibility and intelligence of light and shadow control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122085572A_ABST
    Figure CN122085572A_ABST
Patent Text Reader

Abstract

This application provides a light and shadow control method, system, electronic device, and computer-readable storage medium, relating to the field of light and shadow control technology. The light and shadow control method includes: acquiring ambient light data, ultraviolet (UV) data, and user interaction commands; determining the current target scene mode based on the user interaction commands and / or the ambient light data; calculating the basic transmittance of an electrochromic film and the basic light and shadow parameters of a light-emitting device based on the target scene mode; determining whether the UV data exceeds a preset protection trigger threshold; if the UV data exceeds the preset protection trigger threshold, performing a gradient adjustment on the basic transmittance based on the UV data and adjusting the output spectrum of the light-emitting device to generate protection control parameters; wherein the protection control parameters are used to control the electrochromic film and the light-emitting device to perform actions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of light and shadow control technology, and more specifically, to a light and shadow control method, system, electronic device, and computer-readable storage medium. Background Technology

[0002] With the increasing demands for intelligent and personalized automotive applications, existing electrochromic technology solutions primarily focus on basic light transmittance adjustment. These solutions passively block light through electrochromic glass, improving the in-car lighting environment to some extent, but their functionality is limited, only meeting basic light-blocking needs and failing to provide a rich visual experience or contextualized interaction. Some technologies attempt to combine electrochromism with mechanical adjustment structures, relying on stepper motors to drive polarizer rotation for dimming. However, these mechanical solutions suffer from reliability issues such as response delays, complex structures, and susceptibility to wear over long-term operation, and fail to overcome the limitations of simple dimming. The light and shadow effects cannot coordinate with the glass's light transmittance, nor can they dynamically adapt to external lighting conditions, resulting in a disconnect between visual experience and practical functionality. Furthermore, existing light and shadow display technologies often use fixed patterns or simple color changes, offering limited customization and failing to meet personalized needs. In terms of UV protection, they mainly rely on fixed coatings on the glass itself or basic electrochromic light-blocking, lacking real-time monitoring of external UV intensity and the ability to dynamically adjust the protection level based on actual UV levels.

[0003] In summary, existing technologies have significant shortcomings in terms of functional integration depth, protection accuracy, user experience personalization, and system cost control. There is an urgent need for an intelligent light-sensing canopy solution that can deeply integrate electrochromic color lighting, scene-based custom lighting and shadows, and intelligent ultraviolet protection, and has a high degree of collaborative control capabilities. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a light and shadow control method, system, electronic device and computer-readable storage medium to improve the above-mentioned problems existing in the prior art.

[0005] This application provides a light and shadow control method, which includes: acquiring ambient light data, ultraviolet (UV) data, and user interaction commands; determining the current target scene mode based on the user interaction commands and / or the ambient light data; calculating the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device based on the target scene mode; determining whether the UV data exceeds a preset protection trigger threshold; if the UV data exceeds the preset protection trigger threshold, performing gradient adjustment on the basic transmittance based on the UV data and adjusting the output spectrum of the light-emitting device to generate protection control parameters; wherein the protection control parameters are used to control the electrochromic film and the light-emitting device to perform actions.

[0006] In the aforementioned implementation process, by integrating ambient light data, ultraviolet (UV) data, and user interaction commands, this embodiment can intelligently determine the target scene mode and calculate the basic transmittance and basic lighting parameters accordingly. When the UV data exceeds the protection trigger threshold, the basic transmittance is adjusted in a gradient based on the UV data, and the output spectrum of the light-emitting device is adjusted to generate protection control parameters. This achieves precise control of the electrochromic film and the light-emitting device, providing users with a comfortable visual experience and effectively protecting against UV damage and user health. Simultaneously, the gradient adjustment avoids drastic changes in transmittance, improving user comfort. Furthermore, by combining user interaction commands, it meets users' personalized needs and enhances the flexibility and intelligence of lighting control.

[0007] Optionally, determining the current target scene mode based on the user interaction command and / or the ambient light data includes: preferentially using the scene mode specified by the user interaction command as the target scene mode; and, if the user interaction command is not obtained, matching a preset scene mode based on the ambient light data as the target scene mode.

[0008] In the above implementation process, the scene mode specified by the user interaction command is prioritized as the target scene mode, fully respecting the user's personalized needs and willingness to actively control, thus improving the flexibility of human-computer interaction and user satisfaction. Even without a user interaction command, the system can automatically match a preset scene mode based on ambient light data, achieving intelligent adaptive adjustment and ensuring that suitable lighting effects are automatically provided under different ambient lighting conditions, reducing the user's manual operation burden.

[0009] Optionally, the step of calculating the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device according to the target scene mode includes: obtaining a preset basic transmittance corresponding to the target scene mode; wherein, different target scene modes correspond to the corresponding preset basic transmittance; and determining the basic brightness range and basic pattern of the light-emitting device according to the target scene mode.

[0010] In the above implementation process, corresponding base transmittance is preset for different target scene modes and directly invoked after the target scene mode is determined, simplifying the calculation process and improving the system's response speed and decision-making efficiency. Setting the base brightness range allows the light-emitting device to be adjusted within a suitable brightness range, meeting the scene's lighting requirements while avoiding discomfort caused by excessive brightness or darkness. Determining the base pattern enriches the expressive forms of light and shadow, enabling the creation of diverse atmospheric effects according to different scenes, such as presenting soft background light in movie-watching mode and providing uniform illumination in work mode. This multi-dimensional parameter setting significantly improves the flexibility and expressiveness of light and shadow control, better meeting the user's visual and experiential needs in different scenarios.

[0011] Optionally, the step of adjusting the base transmittance based on the ultraviolet data includes: reducing the transmittance by a preset adjustment coefficient based on the base transmittance; comparing the adjusted transmittance with a preset minimum transmittance threshold, and taking the larger of the two as the transmittance after protection.

[0012] In the above implementation process, the base transmittance is gradually reduced according to a preset adjustment coefficient, achieving a gradient response to ultraviolet intensity. This avoids visual discomfort or abruptness caused by sudden changes in transmittance, improving the smoothness and comfort of the adjustment process. Simultaneously, the adjusted transmittance is compared with a preset minimum transmittance threshold, and the larger of the two values ​​is taken as the final transmittance after protection. This ensures that even under extremely strong ultraviolet radiation, the transmittance will not fall below the safety threshold, thus preventing excessive indoor darkness that could affect normal activities or lighting needs.

[0013] Optionally, controlling the electrochromic film and the light-emitting device to perform actions includes: adjusting the transmittance of the electrochromic film to the base transmittance or the transmittance in the protection control parameters by adjusting the voltage applied to the electrochromic film.

[0014] In the above implementation process, the transmittance is controlled by directly adjusting the voltage applied to the electrochromic film, achieving precise and linear control of the physical parameters. The stable and reliable relationship between voltage and transmittance allows the system to accurately adjust the transmittance to the target value (whether it is the base transmittance or the transmittance in the protection control parameters), thus ensuring the precise execution of light and shadow control commands. Furthermore, the voltage-based adjustment method has the advantages of fast response speed and high control precision, enabling real-time response to environmental changes or user commands, and improving the system's dynamic adaptability.

[0015] Optionally, the light and shadow control method further includes: monitoring changes in the operating parameters of the electrochromic film and / or the light-emitting device; and cutting off the power supply to the corresponding module when the operating parameters exceed a preset normal range, and recording and / or prompting fault information.

[0016] During the above implementation process, the operating parameters of the electrochromic film and / or the light-emitting device are monitored in real time. The system can proactively sense the operating status of the equipment and promptly detect potential anomalies. When the operating parameters exceed the preset normal range, the system automatically cuts off the power supply to the corresponding module, effectively preventing equipment damage caused by overcurrent, overvoltage, or overheating, thus improving system safety and reliability and extending equipment lifespan. Users or maintenance personnel can quickly locate the root cause of the problem based on the recorded information, reducing troubleshooting time and maintenance costs.

[0017] This application embodiment also provides a light and shadow control system, which includes: a sensing module, an interaction module, a control module, an electrochromic film, and a light-emitting device; the sensing module is used to acquire ambient light data and ultraviolet data; the interaction module is used to acquire user interaction commands; the control module is connected to the sensing module, the interaction module, the electrochromic film, and the light-emitting device respectively, and the control module is configured to execute the light and shadow control method as described in any of the above embodiments.

[0018] In the above implementation process, the sensing module is responsible for collecting ambient light and ultraviolet data in real time, providing the system with accurate environmental perception capabilities; the interaction module receives user commands, ensuring that users can actively participate and customize control; the control module, as the core processing unit, connects and coordinates the work of each module, makes intelligent decisions based on the preset light and shadow control method, and precisely drives the electrochromic film and light-emitting device to perform corresponding actions.

[0019] Optionally, the light and shadow control system further includes: a self-test module; the self-test module sequentially detects the connection status and working status of the electrochromic film, the light-emitting device, the sensing module, and the interaction module; if the self-test passes, it defaults to a preset mode and begins to collect ambient light data and ultraviolet data in real time; if the self-test fails, it displays fault information through the interaction module and performs the following processing according to the fault type: for non-critical module faults, the non-critical modules include the interaction module and / or the non-core light and shadow areas in the light-emitting device, the fault information is recorded and other modules are maintained to operate normally; for critical module faults, the critical modules include the control module, the sensing module, and / or the electrochromic film driving circuit, the power supply to the corresponding module is cut off and the fault type, time, and parameters are recorded, while the fault information is uploaded to the vehicle control system or user terminal.

[0020] In the above implementation process, upon successful self-test, the system defaults to a preset mode and begins real-time acquisition of ambient light and ultraviolet data, achieving rapid startup and seamless integration, providing users with an immediate light and shadow control experience. This design ensures efficient system operation under normal conditions, reducing user waiting time. In the event of a self-test failure, the system displays fault information through the interactive module and employs a tiered processing mechanism: for non-critical module failures (such as non-core light and shadow areas in the interactive module or light-emitting device), the system records the fault information but maintains the normal operation of other modules, demonstrating the system's fault-tolerant design capability and ensuring that core light and shadow control functions are unaffected, thus improving system availability and robustness; for critical module failures (such as the control module, sensing module, or electrochromic film drive circuit), the system immediately cuts off the power supply to the corresponding module to prevent secondary damage, and records the fault type, time, and parameters in detail, while simultaneously uploading the fault information to the vehicle control system or user terminal.

[0021] This application also provides an electronic device, which includes a memory and a processor. The memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any of the above implementation methods.

[0022] This application also provides a computer-readable storage medium storing computer program instructions, which are read and executed by a processor to perform the steps in any of the above implementations. Attached Figure Description

[0023] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a first flowchart of a light and shadow control method provided in an embodiment of this application; Figure 2 This is a second flowchart of the light and shadow control method provided in the embodiments of this application; Figure 3 This is a third flowchart of the light and shadow control method provided in the embodiments of this application; Figure 4 This is a fourth flowchart of the light and shadow control method provided in the embodiments of this application; Figure 5 A schematic diagram of the light and shadow control system provided in the embodiments of this application; Figure 6 This is a block diagram of an electronic device provided in an embodiment of this application.

[0025] Icons: 001-Electrochromic film; 002-Light emission device; 010-Sensing module; 020-Interaction module; 030-Control module; 040-Self-test module; 100-Electronic device; 111-Memory; 112-Memory controller; 113-Processor; 114-Peripheral interface; 115-Input / output unit; 116-Display unit. Detailed Implementation

[0026] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.

[0027] In view of the above, the purpose of this application is to provide a light and shadow control method, system, electronic device and computer-readable storage medium, which are applied to a server. The server can be an electronic device with logical computing function, such as a personal computer (PC), tablet computer, smartphone, personal digital assistant (PDA).

[0028] This application provides a method for controlling light and shadow. Please refer to [link / reference]. Figure 1 , Figure 1 This is a first flowchart of the light and shadow control method provided in the embodiments of this application.

[0029] The light and shadow control method includes: acquiring ambient light data, ultraviolet (UV) data, and user interaction commands; determining the current target scene mode based on the user interaction commands and / or ambient light data; calculating the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device based on the target scene mode; determining whether the UV data exceeds a preset protection trigger threshold; if the UV data exceeds the preset protection trigger threshold, adjusting the basic transmittance gradient based on the UV data and adjusting the output spectrum of the light-emitting device to generate protection control parameters; wherein, the protection control parameters are used to control the electrochromic film and the light-emitting device to perform actions.

[0030] In the above implementation process, by comprehensively considering ambient light data, ultraviolet (UV) data, and user interaction commands, intelligent collaborative control of the electrochromic film and the light-emitting device is achieved. Specifically, the current target scene mode is first determined based on user interaction commands and / or ambient light data. Then, the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device are calculated to meet the user's basic light and shadow needs in different scenarios. Based on this, it is further determined whether the UV data exceeds a preset protection trigger threshold. If it does, the basic transmittance is adjusted gradient according to the UV data, and the output spectrum of the light-emitting device is adjusted to generate protection control parameters. These protection control parameters are used to control the actions of the electrochromic film and the light-emitting device, thereby ensuring the user's basic light and shadow needs while dynamically adjusting the protection level according to the UV intensity. This effectively protects the user and avoids harm caused by excessive UV radiation, improving the intelligence of the light and shadow control system and the user experience. Optionally, please refer to Figure 2 , Figure 2 This is a second flowchart of the light and shadow control method provided in an embodiment of this application.

[0031] Based on user interaction commands and / or ambient light data, determine the current target scene mode, including: prioritizing the scene mode specified by the user interaction command as the target scene mode; and, if no user interaction command is obtained, matching a preset scene mode based on ambient light data as the target scene mode.

[0032] In the above implementation process, when a user interaction command is received, the scene mode specified by the user interaction command is prioritized as the target scene mode, fully respecting the user's personalized needs and immediate operational desires, and enhancing the user's control over the lighting and shadow effects. When no user interaction command is received, the system automatically matches the most suitable scene mode from a preset scene mode library based on the collected ambient light data, thus ensuring that a suitable basic lighting and shadow environment is provided based on the current ambient light conditions even without user intervention. This achieves intelligent automatic adjustment, avoiding the problem of the system failing to respond or responding unreasonably due to a lack of user commands, further improving the adaptability and reliability of the lighting and shadow control method.

[0033] In one embodiment of this application, the final executed scenario mode Determined by both user commands and environmental data, its expression is:

[0034] The parameters are defined as follows: The final execution scenario modes include Driving Mode (D), Rest Mode (R), Entertainment Mode (E), and Commercial Vehicle Passenger Rest Mode (P). For interactive commands input by the user through the central control screen, physical buttons or mobile application, if the user does not make a selection, the default setting is driving mode (D). The scene modes are automatically recommended based on environmental data, and are determined by a combination of factors such as current vehicle speed, light intensity, and entertainment system status. Environmental trigger weights are used to adjust the level of intervention recommended by the system. The weight is 0 when the user inputs a command, and 1 when there is no user command. In the commercial vehicle passenger rest mode (P), the weight is 0.8 to retain 20% of the driver's control.

[0035] Furthermore, according to the settings, driving mode (D) is applicable to all vehicle models, and its trigger condition is when the vehicle speed exceeds [a certain threshold]. Or light intensity greater than Time-triggered; Rest mode (R) is applicable to passenger vehicles, and its trigger condition is that the vehicle speed must reach a certain level. And the intensity of ultraviolet radiation is lower than The conditions for triggering the in-vehicle entertainment system are as follows: Entertainment Mode (E) is applicable to all vehicle models, and its trigger condition is that the in-vehicle entertainment system is continuously turned on for more than 10 seconds; Commercial Vehicle Passenger Rest Mode (P) is specifically applicable to ride-hailing vehicles or light commercial vehicles, and its trigger condition is that the mode is triggered by the rear seat touch control and the vehicle speed does not exceed the specified conditions. Activated at that time.

[0036] Optionally, please refer to Figure 3 , Figure 3 The third flowchart of the light and shadow control method provided in the embodiments of this application is shown.

[0037] Based on the target scene mode, calculate the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device, including: obtaining the preset basic transmittance corresponding to the target scene mode; wherein, different target scene modes correspond to corresponding preset basic transmittance; and determining the basic brightness range and basic pattern of the light-emitting device based on the target scene mode.

[0038] In the above implementation process, the preset base transmittance corresponding to the target scene mode is first obtained. Since different target scene modes (such as reading mode, movie-watching mode, meeting mode, etc.) correspond to their own preset base transmittance, the electrochromic film can quickly adjust to the required brightness level for that scene, meeting the universal requirements of different scenes for basic ambient light. Simultaneously, based on the target scene mode, the base brightness range and base pattern of the light-emitting device are determined. For example, a lower brightness range and a soft background pattern are set in movie-watching mode, while a higher brightness range and a dynamic pattern are set in party mode. This allows the light-emitting device to work in conjunction with the electrochromic film to create a basic lighting effect that matches the atmosphere of the current scene. This process transforms the abstract scene mode into specific, executable physical parameters, providing a reliable benchmark for subsequent fine-tuning (such as UV protection adjustment), ensuring the basic response speed and accuracy of the light and shadow control system.

[0039] Optionally, please refer to Figure 4 , Figure 4 The fourth flowchart of the light and shadow control method provided in the embodiments of this application is shown.

[0040] The base transmittance is adjusted in a gradient based on the ultraviolet data, including: reducing the transmittance by a preset adjustment coefficient based on the base transmittance; comparing the adjusted transmittance with the preset minimum transmittance threshold, and taking the larger of the two as the transmittance after protection.

[0041] In the above implementation process, when the ultraviolet (UV) data exceeds the protection trigger threshold, the transmittance is first reduced based on the base transmittance of the electrochromic film according to a preset adjustment coefficient (e.g., proportionally or piecewise based on UV intensity). This allows the transmittance to dynamically and smoothly adjust with changes in UV intensity; the stronger the UV radiation, the greater the reduction in transmittance. This achieves a gradient response in protection level, avoiding the discomfort caused by abrupt level switching. Furthermore, the adjusted transmittance is compared with a preset minimum transmittance threshold, and the larger of the two values ​​is taken as the final transmittance used for protection control.

[0042] In one embodiment of this application, the light transmittance in the driving mode is dynamically adjusted according to the intensity of ambient light to ensure driving safety and comfort. At night or on cloudy days (light intensity ≤ 500 lux), it is set to 90% to ensure clear visibility; during normal daylight (500-10000 lux), it is set to 60% to balance sun protection and transparency; and at midday under strong sunlight (> 10000 lux), it is adjusted to 30% to effectively prevent glare. In the rest mode, the light transmittance is fixed at 10%, creating a dim and tranquil atmosphere conducive to passenger relaxation. In the entertainment mode, the light transmittance is reduced to 5% (almost completely blocked), providing an immersive visual experience for viewing starry skies, auroras, and other light and shadow effects. In the commercial vehicle passenger rest mode, the light transmittance is set to 20%, ensuring passenger comfort while maintaining sufficient transparency so as not to obstruct the driver's view of the rearview mirror, thus balancing safety and experience.

[0043] Optionally, controlling the electrochromic film and the light-emitting device to perform actions includes: adjusting the transmittance of the electrochromic film to a base transmittance or a transmittance in the protection control parameters by adjusting the voltage applied to the electrochromic film.

[0044] In the aforementioned implementation process, there is a definite correspondence between the light transmittance of the electrochromic film and the voltage applied across its two ends. By precisely adjusting the voltage applied to the electrochromic film, its light transmittance can be accurately adjusted to the target value. This applies to both the base light transmittance calculated based on the scene mode and the light transmittance in the protection control parameters after UV correction. The advantages of this approach are fast response speed, high adjustment precision, and the ability to smoothly and continuously change the light transmittance, avoiding the noise and wear problems associated with mechanical blocking methods. Furthermore, directly driving the electrochromic film with a voltage signal simplifies the control logic and actuator, improves reliability and integration, and ensures that light and shadow control commands are executed accurately and efficiently, providing users with a smooth and quiet intelligent dimming experience.

[0045] In one embodiment of this application, in driving mode, Brightness not exceeding To avoid glare affecting safety; if the vehicle speed exceeds This further restricts the scope to Within. In rest mode, users can... Customizable brightness within the range; adjustable to [value] in entertainment mode. It provides a brighter, more immersive lighting effect; the brightness adjustment range of the commercial vehicle passenger rest mode is [missing information]. Pattern display prioritizes user-defined patterns. If a user uploads their own pattern, that pattern will be displayed in its entirety (weight 1). If a user selects a system-preset pattern (such as a starry sky), the system will... A fine-tuning of 100 times to fit the roof size (weighted at 100%) If the user does not make any selection, only the default scene pattern will be displayed: driving mode is uniform diffused soft light (no fancy patterns are displayed), rest mode displays starry sky by default, entertainment mode displays custom pattern by default, and commercial vehicle passenger rest mode displays soft aurora by default.

[0046] In another embodiment of this application, when the ultraviolet intensity reaches the protection trigger threshold, the system automatically shuts off the blue light band (400–450 nm) in the light-emitting device. This band is close to the ultraviolet band, and shutting it off reduces potential irritation to the eyes and skin; under normal conditions (without ultraviolet protection), blue light accounts for 15% of the total brightness of the light-emitting device to ensure that the light and shadow colors are presented naturally, such as making the blue in the aurora pattern more realistic and full.

[0047] Optionally, the light and shadow control method further includes: monitoring changes in the operating parameters of the electrochromic film and / or the light-emitting device; cutting off the power supply to the corresponding module when the operating parameters exceed the preset normal range; and recording and / or prompting fault information.

[0048] During the above implementation process, the operating parameters (such as voltage, current, temperature, power, etc.) of the electrochromic film and / or light-emitting device are continuously monitored. Once these parameters are detected to exceed the preset normal and safe range (e.g., excessive current, excessive temperature, etc.), the power supply to the corresponding module will be automatically cut off immediately to prevent the fault from escalating and to avoid equipment damage or even safety accidents caused by overload, short circuit, or overheating, thus playing an effective hardware protection role. At the same time, detailed fault information (such as fault code, occurrence time, abnormal parameter value, etc.) will be recorded and prompted to users or maintenance personnel through the user interface, indicator lights, or network alarms for timely maintenance.

[0049] In one embodiment of this application, the system monitors the ultraviolet intensity in real time. Once the ultraviolet intensity exceeds 0.3mW / cm² (for example, at noon in summer), ultraviolet protection is immediately activated. If the ultraviolet intensity drops below the threshold, the system waits for 3 seconds to confirm before deactivating the protection, so as to avoid frequent changes in glass transmittance due to short-term fluctuations in ultraviolet radiation, which could affect driving comfort.

[0050] In another embodiment of this application, after ultraviolet protection is enabled, the light transmittance of the glass decreases by 20% compared to the original scene transmittance. For example, the basic light transmittance in driving mode is 60%, and after protection, it becomes 60% × (1 20%) = 48%; the basic light transmittance in rest mode is 10%, which drops to 8% after protection; in any case, the light transmittance should not be lower than 5% to ensure basic visual safety and avoid complete shading.

[0051] This application also provides a light and shadow control system. Please refer to [link / reference]. Figure 5 , Figure 5 A schematic diagram of the light and shadow control system provided in an embodiment of this application.

[0052] The light and shadow control system includes: a sensing module 010, an interaction module 020, a control module 030, an electrochromic film 001, and a light-emitting device 002; the sensing module 010 is used to acquire ambient light data and ultraviolet data; the interaction module 020 is used to acquire user interaction commands; the control module 030 is connected to the sensing module 010, the interaction module 020, the electrochromic film 001, and the light-emitting device 002 respectively, and the control module 030 is configured to execute the light and shadow control method as described above.

[0053] In the above implementation process, the sensing module 010 is responsible for collecting ambient light data and ultraviolet data in real time as the input basis for the system's automatic decision-making; the interaction module 020 is responsible for receiving user interaction commands to ensure that the user's personalized needs can be perceived by the system; the control module 030, as the core processing unit, is connected to each module and executes the light and shadow control method as described above, processes, analyzes, and makes decisions on the input data, and generates corresponding control commands; the electrochromic film 001 and the light-emitting device 002, as actuators, precisely adjust the light transmittance and light and shadow effects according to the commands of the control module 030.

[0054] In this embodiment, the sensing module 010 collects real-time light intensity data (L) and ultraviolet intensity data (U), and the commercial vehicle version additionally collects roof interior temperature data (T). The analog signals are converted into digital signals by the AD conversion module, and the controller filters the collected data (using a moving average filtering algorithm with a window size of 5) to remove abnormal data. The abnormal threshold for light intensity is <3 lux or >100000 lux, the abnormal threshold for ultraviolet intensity is >1 mW / cm², and the abnormal threshold for temperature is >80℃. Data exceeding the abnormal threshold is determined to be invalid, and valid data from the previous period is temporarily used as a substitute.

[0055] In one embodiment of this application, the interaction module 020 includes an in-vehicle central control touchscreen, steering wheel physical buttons, and a mobile APP remote interaction terminal. Users can select preset scenes (rest / driving / entertainment), customize light and shadow pattern parameters, and turn on / off the ultraviolet protection linkage function through the interaction module 020. The control module 030 has three built-in preset scene modes, and users can select or customize parameters through the interaction module 020. At the same time, a passenger rest mode is added for commercial vehicles. The specific light and shadow state is: weak light soft mode, the brightness of the micro LED array is ≤50cd / m², and the light and shadow pattern is uniform diffuse light. The light transmittance of the electrochromic film 001 is adaptively adjusted according to the light intensity L. When L≤500lux, the light transmittance is 90%; when 500<L≤10000lux, the light transmittance is 60%; when L>10000lux, the light transmittance is 30%. The commercial vehicle version adds driving vision protection logic on this basis. When the vehicle speed is >60km / h, the brightness of the micro LED array is forcibly reduced to ≤30cd / m² to avoid light and shadow interference with driving.

[0056] Optionally, the light and shadow control system further includes: a self-test module 040; the self-test module 040 sequentially detects the connection status and working status of the electrochromic film 001, the light-emitting device 002, the sensing module 010, and the interaction module 020; if the self-test passes, it defaults to a preset mode and begins to collect ambient light data and ultraviolet data in real time; if the self-test fails, it displays fault information through the interaction module 020 and performs the following processing according to the fault type: for non-critical module faults, non-critical modules include the non-core light and shadow areas in the interaction module 020 and / or the light-emitting device 002, the fault information is recorded and other modules are maintained to operate normally; for critical module faults, critical modules include the control module 030, the sensing module 010, and / or the electrochromic film 001 driving circuit, the power supply to the corresponding module is cut off and the fault type, time, and parameters are recorded, while the fault information is uploaded to the vehicle control system or user terminal.

[0057] During the above implementation process, upon system startup, the self-test module 040 sequentially performs a comprehensive check on the connection and operational status of the electrochromic film 001, the light-emitting device 002, the sensing module 010, and the interaction module 020. If the self-test passes, the system defaults to a preset mode and begins real-time acquisition of environmental and ultraviolet data to ensure normal startup. If the self-test fails, the system does not simply shut down. Instead, it displays fault information through the interaction module 020 and performs differentiated processing based on the fault type: For faults in non-critical modules (such as the interaction module 020 and non-core light and shadow areas in the light-emitting device 002), the system records the fault information but maintains the normal operation of other modules, ensuring that the core light and shadow adjustment function is not interrupted and improving system availability; for faults in critical modules (such as the control module 030, the sensing module 010, and the electrochromic film 001 drive circuit), the system immediately cuts off the power supply to the corresponding module to prevent safety risks, records the fault type, time, and parameters in detail, and uploads the fault information to the vehicle control system or user terminal so as to promptly notify users or maintenance personnel for remote diagnosis and handling.

[0058] In one embodiment of this application, the panoramic glass roof of a 150,000 RMB-level new energy passenger vehicle is taken as the core adaptable object, while the adaptability to commercial vehicle scenarios (such as ride-hailing vehicles, light commercial vehicles, etc.) is also extended. The product structure includes a glass roof assembly, a sensing module 010, a control module 030, an interaction module 020, and a power module.

[0059] The passenger car version of the glass roof assembly uses double-layer laminated tempered glass. The outer glass layer is 3.2mm thick, and the inner glass layer is 2.8mm thick. Between the two glass layers, a PVB interlayer film, an electrochromic film 001, and a micro LED light and shadow array are bonded in sequence. The electrochromic film 001 is 1200mm×800mm in size (fitting the roof size of the vehicle model), uses a WO3-Li+ flexible film, and integrates electrode interfaces on the edges. It is connected to the drive circuit via an FPC cable. The micro LED light and shadow array has the same size as the electrochromic film 001, a pixel density of 150PPI, uses COB packaging, integrates a drive chip and a heat dissipation layer, and is connected to the control module 030 via an FPC cable.

[0060] The commercial vehicle version of the glass roof assembly is adapted to larger roof sizes for commercial vehicles (such as 1500mm×1000mm). The size of the electrochromic film 001 and the micro LED light and shadow array are adjusted synchronously, and the pixel density is reduced to 120PPI (balancing cost and display effect). The glass uses thickened double-layer laminated tempered glass (outer layer 4.0mm, inner layer 3.5mm) to enhance impact resistance. At the same time, a heat insulation coating is added under the micro LED array to adapt to the long-term exposure of commercial vehicles to the sun.

[0061] The sensing module 010 includes a light sensor and an ultraviolet sensor, integrated into a waterproof and dustproof housing. The housing is fixed to the center of the front of the vehicle roof (near the lower edge of the windshield) with bolts. The sensor probes face outwards from the roof to ensure accurate data acquisition. The sensors are connected to the control module 030 via shielded cables, with a cable length of 2m (passenger vehicles) / 3m (commercial vehicles) to avoid signal interference. The commercial vehicle version adds a temperature sensor (model DS18B20) to monitor the internal temperature of the roof. When the temperature exceeds 65℃, it triggers the micro LED array to reduce power.

[0062] The controller in control module 030 uses an STM32F103C8T6 microcontroller (passenger vehicles) / an STM32F407 microcontroller (commercial vehicles, enhancing computing power), integrated into a metal heat sink housing and installed inside the vehicle's roof (passenger vehicles: above the front passenger seat; commercial vehicles: roof behind the driver's seat). The housing has reserved CAN / LIN bus interfaces, sensor interfaces, LED driver interfaces, and electrochromic film 001 driver interfaces. The drive circuit includes an electrochromic film 001 driver module (using a DC-DC boost circuit, with an adjustable output voltage of 0-5V) and a micro LED driver module (using a constant current driver chip, supporting PWM dimming). The commercial vehicle version of the driver module has an increased output power of 3A, adapting to larger LED arrays.

[0063] The 020 interactive module for passenger vehicles uses the existing standard 10.25-inch touchscreen in the central control area and communicates with the 030 control module via a CAN bus. Two physical buttons are located on the left side of the steering wheel (scene switching button and protection linkage on / off button). The mobile app supports iOS and Android systems and communicates with the vehicle control system via Bluetooth or vehicle networking to achieve remote scene settings. The commercial vehicle version adds a rear-seat touch panel (installed in the center armrest of the roof) for passengers to easily switch scenes. It supports separate scene permissions for the driver's app and the passenger's app, allowing the driver to limit the range of light and shadow brightness and transmittance adjustments for passengers (e.g., minimum transmittance not less than 20% to avoid affecting the driver's visibility).

[0064] The power module uses an automotive 12V power interface for power supply. The DC-DC converter outputs 5V / 3A power to the controller, sensors, and miniature LED array, and outputs 12V / 2A power to the electrochromic film 001 driver circuit (passenger vehicles). In the commercial vehicle version, the DC-DC converter outputs 12V / 3A power to the electrochromic film 001 driver circuit, ensuring stable operation of the large-size electrochromic film 001. All power modules integrate overvoltage, overcurrent, and short-circuit protection functions to ensure system power supply safety.

[0065] Optionally, please refer to Figure 6 , Figure 6This is a block diagram illustrating an electronic device according to an embodiment of this application. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, an input / output unit 115, and a display unit 116. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device 100. For example, the electronic device 100 may also include components that are more... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.

[0066] The aforementioned memory 111, memory controller 112, processor 113, peripheral interface 114, input / output unit 115, and display unit 116 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The aforementioned processor 113 is used to execute executable modules stored in the memory.

[0067] The memory 111 can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory 111 stores programs, and the processor 113 executes these programs upon receiving execution instructions. The methods executed by the electronic device 100 as defined in any embodiment of this application can be applied to the processor 113, or implemented by the processor 113.

[0068] The aforementioned processor 113 may be an integrated circuit chip with signal processing capabilities. The processor 113 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a digital signal processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor.

[0069] The peripheral interface 114 described above couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 can be implemented on a single chip. In other instances, they can be implemented on separate chips.

[0070] The input / output unit 115 described above is used to provide user input data. The input / output unit 115 may be, but is not limited to, a mouse and keyboard, etc.

[0071] The aforementioned display unit 116 provides an interactive interface (e.g., a user interface) between the electronic device 100 and the user, or displays image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display (LCD) or a touch display. If it is a touch display, it can be a capacitive touchscreen or a resistive touchscreen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display and pass the sensed touch operations to the processor for calculation and processing.

[0072] This application also provides a computer-readable storage medium storing computer program instructions, which are read and executed by a processor to perform steps in a light and shadow control method.

[0073] In summary, In the several embodiments provided in this application, it should be understood that the disclosed device can also be implemented in other ways. The device embodiments described above are merely illustrative; for example, the block diagrams in the accompanying drawings illustrate the possible architecture, functions, and operations of the device according to various embodiments of this application. In this regard, each block in the block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram, and combinations of block diagrams, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0074] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0075] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0076] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of 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 scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0077] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

[0078] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method for controlling light and shadow, characterized in that, The light and shadow control method includes: Acquire ambient light data, ultraviolet light data, and user interaction commands, and determine the current target scene mode based on the user interaction commands and / or the ambient light data; Based on the target scene mode, calculate the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device; Determine whether the ultraviolet data exceeds a preset protection trigger threshold; If the ultraviolet data exceeds a preset protection trigger threshold, the base transmittance is adjusted in a gradient according to the ultraviolet data, and the output spectrum of the light-emitting device is adjusted to generate protection control parameters; wherein, the protection control parameters are used to control the electrochromic film and the light-emitting device to perform actions.

2. The method according to claim 1, characterized in that, Determining the current target scene mode based on the user interaction command and / or the ambient light data includes: The scene mode specified by the user interaction command shall be preferentially used as the target scene mode; In the absence of the user interaction command, a preset scene mode is matched based on the ambient light data as the target scene mode.

3. The method according to claim 1, characterized in that, The step of calculating the basic transmittance of the electrochromic film and the basic light and shadow parameters of the light-emitting device based on the target scene mode includes: Obtain the preset base transmittance corresponding to the target scene mode; wherein, different target scene modes correspond to the corresponding preset base transmittance; Based on the target scene mode, determine the basic brightness range and basic pattern of the light-emitting device.

4. The method according to claim 1, characterized in that, The step of adjusting the base transmittance based on the ultraviolet data includes: Based on the aforementioned base transmittance, the transmittance is reduced according to a preset adjustment coefficient. The adjusted transmittance is compared with the preset minimum transmittance threshold, and the larger of the two values ​​is taken as the transmittance after protection.

5. The method according to claim 1, characterized in that, The control of the electrochromic film and the light-emitting device to perform actions includes: By adjusting the voltage applied to the electrochromic film, its transmittance is adjusted to the base transmittance or the transmittance in the protection control parameters.

6. The method according to claim 1, characterized in that, The light and shadow control method also includes: Monitor the changes in the operating parameters of the electrochromic film and / or the light-emitting device. If the operating parameters exceed the preset normal range, cut off the power supply to the corresponding module and record and / or prompt fault information.

7. A light and shadow control system, characterized in that, The light and shadow control system includes: a sensing module, an interaction module, a control module, an electrochromic film, and a light-emitting device; The sensing module is used to acquire ambient light data and ultraviolet data; The interaction module is used to obtain user interaction commands; The control module is connected to the sensing module, the interaction module, the electrochromic film, and the light-emitting device, respectively, and the control module is configured to perform the light and shadow control method as described in any one of claims 1 to 6.

8. The system according to claim 7, characterized in that, The light and shadow control system also includes: a self-test module; The self-testing module sequentially detects the connection status and working status of the electrochromic film, the light-emitting device, the sensing module, and the interaction module. If the self-test passes, it will enter the preset mode by default and start collecting ambient light and ultraviolet data in real time. If the self-test fails, the fault information will be displayed through the interactive module, and the following actions will be taken based on the fault type: For non-critical module failures, including non-core light and shadow areas in interactive modules and / or light-emitting devices, fault information is recorded and other modules are maintained to operate normally. For critical module failures, the critical modules include control modules, sensing modules and / or electrochromic film driving circuits. The power supply to the corresponding module is cut off and the fault type, time and parameters are recorded. At the same time, the fault information is uploaded to the vehicle control system or user terminal.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores program instructions, and when the processor executes the program instructions, it performs the steps of the method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, perform the steps of the method according to any one of claims 1-6.