Control method and device of sunshade equipment, electronic equipment and readable storage medium
Patent Information
- Application Number
- CN202410335088.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2044-03-22
AI Technical Summary
[0005]有鉴于此,本申请实施例提供了一种遮阳设备的控制方法、装置、电子设备及可读存储介质,以解决现有技术中存在不能根据车内光照强度的变化及时控制遮阳设备打开或关闭的问题
[0013]本申请利用预设周期时间采集目标车辆的车内光照强度值,并根据车内光照强度值,确定目标车辆在预设周期时间的光照强度变化率;将光照强度变化率与预设光照强度变化系数进行比较,得到实时比较结果;根据实时比较结果,确定遮阳设备的目标状态,其中目标状态包括第一目标状态,第一目标状态指示遮阳设备处于可自动控制状态;若遮阳设备处于第一目标状态,则获取目标车辆当前位置的路段类型,并根据路段类型确定目标车辆的光照强度缓冲值;根据车内光照强度值、光照强度缓冲值和预设光照强度阈值,对遮阳设备进行控制。本申请可以根据车内光照强度的变化及时控制遮阳设备的开启或关闭状态,实现对车内光照强度进行调节,使车辆内的光照强度保持在适宜乘客乘坐的范围内,从而有效提高行车安全性和舒适性。
Smart Images

Figure CN118107352B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive technology, and in particular to a control method, device, electronic equipment, and readable storage medium for a sunshade device. Background Technology
[0002] Advances in automotive technology have transformed modern cars from simple means of transportation into intelligent mobile spaces with multiple functions. Against this backdrop, sunshades, as a key feature for enhancing driving and passenger comfort, are widely used in various types of vehicles. By controlling the on / off switch of the sunshade, the intensity of light inside the vehicle can be adjusted to maintain it within a comfortable range for passengers.
[0003] Currently, the primary method for adjusting in-vehicle sunshades is still a one-button on / off / pause. Drivers or passengers need to manually adjust the sunshade's on / off status using physical buttons or voice control, based on ambient light intensity, in-vehicle lighting intensity, and their own needs. However, this method is cumbersome and inconvenient. Especially while driving, if the driver is distracted adjusting the sunshade, it could lead to traffic accidents.
[0004] It is evident that existing technologies have the problem of not being able to control the opening or closing of sunshade devices in a timely manner according to changes in the intensity of light inside the vehicle. Summary of the Invention
[0005] In view of this, embodiments of this application provide a control method, device, electronic device, and readable storage medium for a sunshade device, in order to solve the problem in the prior art that the sunshade device cannot be controlled to open or close in a timely manner according to changes in the light intensity inside the vehicle.
[0006] A first aspect of this application provides a control method for a sunshade device, comprising:
[0007] The system collects the interior light intensity value of the target vehicle at a preset periodic time and determines the light intensity change rate of the target vehicle within the preset periodic time based on the interior light intensity value. The light intensity change rate is compared with a preset light intensity change coefficient to obtain a real-time comparison result. Based on the real-time comparison result, the target state of the sunshade device is determined, including a first target state, which indicates that the sunshade device is in an automatically controllable state. If the sunshade device is in the first target state, the road segment type of the target vehicle's current location is obtained, and the light intensity buffer value of the target vehicle is determined based on the road segment type. The sunshade device is then controlled based on the interior light intensity value, the light intensity buffer value, and the preset light intensity threshold.
[0008] A second aspect of this application provides a control device for a sunshade device, comprising:
[0009] The acquisition module is configured to acquire the in-vehicle illuminance value of the target vehicle at a preset periodic time, and determine the illuminance change rate of the target vehicle at the preset periodic time based on the in-vehicle illuminance value; the comparison module is configured to compare the illuminance change rate with a preset illuminance change coefficient to obtain a real-time comparison result; the first determination module is configured to determine the target state of the sunshade device based on the real-time comparison result, wherein the target state includes a first target state, which indicates that the sunshade device is in an automatically controllable state; the second determination module is configured to, if the sunshade device is in the first target state, acquire the road segment type of the target vehicle's current location, and determine the illuminance buffer value of the target vehicle based on the road segment type; the control module is configured to control the sunshade device based on the in-vehicle illuminance value, the illuminance buffer value, and a preset illuminance threshold value.
[0010] A third aspect of this application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described method.
[0011] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method.
[0012] The beneficial effects of the embodiments of this application compared with the prior art are:
[0013] This application collects the interior light intensity value of a target vehicle at a preset periodic time, and determines the light intensity change rate of the target vehicle within the preset periodic time based on the interior light intensity value. The light intensity change rate is compared with a preset light intensity change coefficient to obtain a real-time comparison result. Based on the real-time comparison result, the target state of the sunshade device is determined, where the target state includes a first target state, indicating that the sunshade device is in an automatically controllable state. If the sunshade device is in the first target state, the road segment type of the target vehicle's current location is obtained, and a light intensity buffer value for the target vehicle is determined based on the road segment type. The sunshade device is controlled based on the interior light intensity value, the light intensity buffer value, and the preset light intensity threshold. This application can control the opening or closing of the sunshade device in a timely manner according to changes in the interior light intensity, thereby adjusting the interior light intensity to maintain it within a suitable range for passengers, effectively improving driving safety and comfort. Attached Figure Description
[0014] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art 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.
[0015] Figure 1 This is a schematic flowchart of a control method for a sunshade device provided in an embodiment of this application;
[0016] Figure 2 This is a schematic diagram of the structure of a control device for a sunshade device provided in an embodiment of this application;
[0017] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0018] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application can also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0019] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc., mentioned in this application are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0020] It should be noted that the terms "one" and "more" used in this application are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0021] It should be noted that the new energy vehicles in this application embodiment refer to vehicles that use new energy sources (non-traditional petroleum and diesel energy) and possess advanced technologies. These vehicles employ new power systems that can effectively reduce vehicle emissions, minimize environmental impact, and improve energy efficiency. The new energy vehicles in this application embodiment include, but are not limited to, the following types of vehicles: electric vehicles (EVs), battery electric vehicles (BEVs), fuel cell electric vehicles (FCEVs), plug-in hybrid electric vehicles (PHEVs), and hybrid electric vehicles (HEVs).
[0022] The following detailed description, in conjunction with the accompanying drawings, describes a control method, apparatus, electronic device, and readable storage medium for a sunshade device according to embodiments of this application.
[0023] Figure 1 This is a flowchart illustrating a control method for a sunshade device provided in an embodiment of this application. Figure 1 The control method for sunshade devices can be executed by the vehicle controller of new energy vehicles. For example... Figure 1 As shown, the method includes:
[0024] S101, Collect the interior light intensity value of the target vehicle using a preset period of time, and determine the light intensity change rate of the target vehicle during the preset period of time based on the interior light intensity value.
[0025] S102, compare the rate of change of light intensity with the preset coefficient of change of light intensity to obtain the real-time comparison result;
[0026] S103, Based on the real-time comparison results, determine the target state of the sunshade device, wherein the target state includes a first target state, which indicates that the sunshade device is in an automatically controllable state.
[0027] S104, If the sunshade device is in the first target state, obtain the road segment type of the current location of the target vehicle, and determine the light intensity buffer value of the target vehicle according to the road segment type.
[0028] S105 controls the sunshade device based on the in-vehicle light intensity value, light intensity buffer value, and preset light intensity threshold.
[0029] Specifically, the rate of change of light intensity indicates the extent of change in the light intensity inside a target vehicle over a period of time or over a distance.
[0030] Light intensity variation coefficient: This parameter is introduced to prevent the sunshade of a target vehicle from moving continuously in specific scenarios, such as when the vehicle passes under a bridge, a large billboard, or enters / exits a short tunnel. In these situations, the light intensity may change significantly within a short period. If the sunshade is adjusted under these conditions, it will move repeatedly, greatly increasing its workload and potentially causing the motor to overheat. By setting the light intensity variation coefficient, the movement behavior of the sunshade can be effectively controlled and adjusted, preventing repeated movement in these scenarios and reducing the risk of motor overheating.
[0031] Light intensity buffer value: This measures the degree of interference from the external environment. The degree of interference refers to factors that hinder light from reaching the target vehicle, such as obstructions or buildings. The size of the light intensity buffer value can be used to distinguish the strength of external interference; different light intensity buffer values correspond to different levels of interference.
[0032] It is understandable that the specific data of the light intensity value variation coefficient and the light intensity buffer value can change with the vehicle's operating status, changes in hardware equipment, and changes in the external environment. The specific values can be calculated by the vehicle controller based on the above parameters, or they can be set by the user. No specific limitation is made here.
[0033] After starting the target vehicle, the user can turn the "automatic sunshade adjustment function" on / off. During the driving process, the light intensity value inside the vehicle will change with the change of the external light environment. If the user turns on the "automatic sunshade adjustment function" after starting the target vehicle, the vehicle controller will use the light sensor configured in the vehicle to collect the light intensity value inside the vehicle at a preset period of time. Multiple light intensity values inside the vehicle at different times can be obtained, and then the rate of change of light intensity inside the target vehicle can be determined based on the multiple light intensity values.
[0034] Furthermore, the vehicle controller can compare the light intensity change rate with the preset light intensity change coefficient to obtain a real-time comparison result. Based on the real-time comparison result, it can determine whether the sunshade device is in an automatically controllable state. If the sunshade device is in an automatically controllable state, it can obtain the road segment type of the target vehicle's current location and determine the degree of interference from the external environment based on the road segment type. This determines the light intensity buffer value so as to control the sunshade device more reasonably and smoothly. Finally, based on the comparison result of the real-time in-vehicle light intensity value, the light intensity buffer value, and the preset light intensity threshold (the light intensity value that the human body feels most comfortable, which can be determined by the vehicle controller or set by the user), the sunshade device is controlled.
[0035] This application embodiment collects the in-vehicle illuminance value of the target vehicle at a preset periodic time, and determines the illuminance change rate of the target vehicle at the preset periodic time based on the in-vehicle illuminance value; compares the illuminance change rate with a preset illuminance change coefficient to obtain a real-time comparison result; based on the real-time comparison result, determines the target state of the sunshade device, wherein the target state includes a first target state, which indicates that the sunshade device is in an automatically controllable state; if the sunshade device is in the first target state, the road segment type of the target vehicle's current location is obtained, and the illuminance buffer value of the target vehicle is determined based on the road segment type; the sunshade device is controlled based on the in-vehicle illuminance value, the illuminance buffer value, and the preset illuminance threshold. This application can control the opening or closing state of the sunshade device in a timely manner according to the changes in the in-vehicle illuminance, thereby adjusting the in-vehicle illuminance and keeping the illuminance inside the vehicle within a suitable range for passengers, thus effectively improving driving safety and comfort.
[0036] In some embodiments, determining the rate of change of light intensity of a target vehicle over a preset period of time based on the in-vehicle light intensity values collected over a preset period of time includes: collecting a first light intensity value of the target vehicle at a first time and a second light intensity value of the target vehicle at a second time based on the preset period of time; calculating the rate of change of the first light intensity value and the second light intensity value to determine the rate of change of light intensity of the target vehicle.
[0037] Specifically, to prevent target vehicles from passing under bridges, giant billboards, or entering / exiting short tunnels where light intensity changes significantly in a short period of time, causing sunshade devices to frequently turn on and off, this embodiment calculates whether the target vehicle is in the aforementioned scenarios by collecting the in-vehicle light intensity values at the first and second times within a preset period.
[0038] The first and second times refer to two points in time within a preset period for collecting the light intensity value inside the vehicle. For example, if the preset period is 3 seconds, the first time could be second 0, and the second time could be second 3. The vehicle's light sensor will then collect the first light intensity value at second 0 and the second light intensity value at second 3, and calculate the rate of change of light intensity for the target vehicle using these values. This calculation can be performed using the following method:
[0039] Light intensity change rate = (first light intensity value - second light intensity value) / first light intensity value;
[0040] As an example, the preset cycle time is set to 3 seconds. Assume that at time 0, the target vehicle enters a dimly lit tunnel section from a bright outdoor environment. The first illuminance value collected at time 0 is 100. After entering the tunnel, the second illuminance value collected at time 3 is 40. The rate of change of illuminance can then be calculated:
[0041] The rate of change of light intensity is 1 = (100-40) / 100 = 0.6;
[0042] Furthermore, within the next 3 seconds (the 6th second), the vehicle's light intensity value can be collected again. Assume the light intensity changes to 40 at this point. The rate of change of light intensity can then be calculated:
[0043] The rate of change of light intensity 2 = (40-40) / 40 = 0;
[0044] If, in the next 3 seconds (the 6th second), the light intensity value of the vehicle is 100, then the rate of change of light intensity can be calculated:
[0045] The rate of change of light intensity is 2 = (40-100) / 40 = 1.5;
[0046] It is understood that the above judgment logic applies both when the target vehicle enters and exits the tunnel, and it applies to both day and night. Furthermore, the preset cycle time can be set according to actual needs and is not specifically limited here.
[0047] In this embodiment, the first light intensity value of the target vehicle at a first time and the second light intensity value of the target vehicle at a second time are collected according to a preset periodic time. The rate of change of the first light intensity value and the second light intensity value are calculated to determine the rate of change of the light intensity of the target vehicle. Information about the light intensity can be obtained and the light intensity of the target vehicle's environment can be better understood.
[0048] In addition, in some embodiments, the target state of the shading device is determined based on the real-time comparison results, including: if the rate of change of light intensity is less than or equal to a preset light intensity change coefficient, the shading device is determined to be in a first target state; if the rate of change of light intensity is greater than the preset light intensity change coefficient, the shading device is determined to be in a second target state, the second target state indicating that the shading device is in a non-automatically controllable state.
[0049] Specifically, the preset light intensity change coefficient is a threshold value used to determine whether the light intensity changes too rapidly. If the light intensity change rate is less than or equal to the preset light intensity change coefficient, it indicates that the light intensity in the scene where the target vehicle is located is changing slowly. In this case, the sunshade device can be controlled to the first target state, allowing it to automatically adjust its position according to the light intensity change. If the light intensity change rate is greater than the preset light intensity change coefficient, it indicates that the light intensity in the scene where the target vehicle is located is changing rapidly. If the sunshade device is controlled to the first target state in this case, it will continuously move repeatedly, leading to problems such as motor overheating. In this case, the sunshade device can be controlled to the second target state, meaning it is in a non-automatically controllable state, and the automatic adjustment function will not work.
[0050] Continuing with the previous example, the rate of change of light intensity when the target vehicle first enters the tunnel is 1 = (100-40) / 100 = 0.6. If the preset value of the light intensity change coefficient is 0.3, then the rate of change of light intensity when the target vehicle first enters the tunnel is 0.6, which is greater than 0.3. This indicates that the external light intensity value changes too quickly. At this time, the sunshade device is in an uncontrollable state, and the automatic adjustment function will not work.
[0051] Furthermore, during the second cycle (3 seconds to 6 seconds), the light intensity change rate 2 = (40-40) / 40 = 0, meaning the light intensity change rate of the target vehicle is less than 0.3. At this time, the sunshade device is in an automatically controllable state and will adjust its position according to the change in light intensity.
[0052] If the rate of change of light intensity is 2 = (40-100) / 40 = 1.5; that is, the rate of change of light intensity of the target vehicle is 1.5, which is greater than 0.3, the sunshade device will continue to be in an uncontrollable state, and the automatic adjustment function will not work.
[0053] This embodiment determines whether the sunshade device is in the first target state or the second target state based on the real-time comparison results of the preset light intensity change coefficient and light intensity change rate. This can prevent the sunshade device from repeatedly moving in some road sections with large light changes, reduce excessive wear and tear on the device, improve the user experience, and enhance the user's driving safety.
[0054] In addition, in some embodiments, the road segment type includes a first road segment type and a second road segment type; determining the light intensity buffer value of the target vehicle according to the road segment type includes: if the road segment type of the target vehicle is currently located is the first road segment type, then determining a first light intensity buffer value; if the road segment type of the target vehicle is currently located is the second road segment type, then determining a second light intensity buffer value.
[0055] Specifically, after determining the current state of the sunshade device as the first target state, the road segment type of the target vehicle's current location can be obtained through a navigation system or vehicle positioning system. This road segment type can be divided into a first road segment type and a second road segment type. Depending on the road segment type, the vehicle controller can determine different light intensity buffer values. If the target vehicle is currently located on a road segment of the first type, a first light intensity buffer value can be determined as the control parameter for the sunshade device. If the target vehicle is currently located on a road segment of the second type, a second light intensity buffer value can be determined as the control parameter for the sunshade device.
[0056] As an example, when external interference is weak, such as in a cloudless, flat highway scene without obstacles or obstructions (Type 1), the light intensity buffer value can be small (indicating less light attenuation), indicating good lighting conditions and minimal impact from external interference. Conversely, when external interference is strong, such as in a city scene with tall buildings, complex roads, and numerous overpasses (Type 1), the light intensity buffer value can be large (indicating greater light attenuation), indicating poor lighting conditions and significant impact from external interference. In short, the light intensity buffer value changes with the intensity of external interference; the weaker the external interference, the smaller the light intensity buffer value; conversely, the stronger the external interference, the larger the light intensity buffer value.
[0057] This embodiment determines different light intensity buffer values for target vehicles based on different road segment types, which can provide more accurate, automated and personalized sunshade adjustment, improving driving comfort, safety and convenience.
[0058] In some embodiments, controlling the sunshade device based on the in-vehicle light intensity value, the light intensity buffer value, and the preset light intensity threshold includes: determining a first target value and a second target value based on the in-vehicle light intensity value and the light intensity buffer value; and controlling the sunshade device based on the comparison result between the first target value and the preset light intensity threshold, and the comparison result between the second target value and the preset light intensity threshold.
[0059] Specifically, after determining the specific value of the light intensity buffer value, the vehicle controller can obtain the first target value and the second target value based on the collected interior light intensity value and the interior light intensity value and the light intensity buffer value, using the following calculation method:
[0060] First target value = In-vehicle light intensity value - Light intensity buffer value;
[0061] Second target value = In-vehicle light intensity value + Light intensity buffer value;
[0062] Furthermore, the calculated first and second target values are compared with a preset light intensity threshold (the light intensity value that is most comfortable for the human body), and the sunshade device is controlled based on the comparison results.
[0063] Furthermore, in some embodiments, the shading device is controlled based on the comparison results of a first target value and a preset light intensity threshold, and a comparison result of a second target value and a preset light intensity threshold, including: if the first target value is greater than the preset light intensity threshold, the shading device is controlled to turn off; if the second target value is less than the preset light intensity threshold, the shading device is controlled to turn on; if the preset light intensity threshold is greater than or equal to the first target value and less than or equal to the second target value, the shading device is controlled to stop at the current position.
[0064] Specifically, as an example, the vehicle controller collects a real-time in-vehicle light intensity value of 100, the light intensity buffer value is determined to be 10 according to the road segment type, and the preset light intensity threshold is 70.
[0065] First target value = 100 - 10 = 90;
[0066] Second target value = 100 + 10 = 110;
[0067] At this point, the logical condition that the first target value of 90 is greater than the preset light intensity threshold of 70 is met, and the shading device can be controlled to turn off.
[0068] Furthermore, the vehicle controller can continue to collect the interior light intensity value, if the interior light intensity value is 75 at this time.
[0069] First target value = 75 - 10 = 65;
[0070] Second target value = 75 + 10 = 85;
[0071] At this point, the preset light intensity threshold 70 is satisfied, which is between the first target value 65 and the second target value 85. The shading device can be controlled to stop at the current position and maintain this state.
[0072] Further, continue to collect the light intensity value inside the vehicle. If the light intensity value inside the vehicle is 40 at this time...
[0073] First target value = 50 - 10 = 40;
[0074] Second target value = 50 + 10 = 60;
[0075] At this point, the logical condition that the second target value 60 is less than the preset light intensity threshold 70 is met, and the shading device can be turned on.
[0076] This embodiment controls the sunshade device based on the comparison results of a first target value and a preset light intensity threshold, and a comparison result of a second target value and a preset light intensity threshold. If the first target value is greater than the preset light intensity threshold, the sunshade device is controlled to close; if the second target value is less than the preset light intensity threshold, the sunshade device is controlled to open; if the preset light intensity threshold is between the first and second target values, the sunshade device is controlled to stop at its current position. This allows for timely control of the opening or closing of the sunshade device according to changes in the light intensity inside the vehicle, thereby adjusting the light intensity inside the vehicle and keeping it within a suitable range for passengers, effectively improving driving safety and comfort.
[0077] In some embodiments, the method further includes: controlling the sunshade to close and controlling the sunshade to be in a non-automatic control state when it is detected that the sunshade is open and there are occupants in the target vehicle who are asleep.
[0078] Specifically, when the sunshade is detected to be open and an occupant in the target vehicle is asleep, the vehicle controller can shut off the sunshade to block light from entering the vehicle, further reducing visual interference for the occupant and providing a better resting environment. Simultaneously, the vehicle controller can also disable the sunshade's automatic control, preventing it from adjusting automatically based on lighting conditions. This prevents frequent switching of the sunshade from accidentally waking a sleeping occupant.
[0079] In this embodiment, when the sunshade device is detected to be open and there are occupants sleeping in the target vehicle, the sunshade is closed and the sunshade device is put into a non-automatic control state. Through such control measures, a more comfortable resting environment can be provided for sleeping occupants, light interference can be reduced, and the frequent opening and closing of the sunshade due to changes in light can be avoided, thus improving the occupants' riding comfort.
[0080] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.
[0081] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the process of the embodiments of this application.
[0082] Figure 2 This is a schematic diagram of a control device for a sunshade device provided in an embodiment of this application. Figure 2 As shown, the device includes:
[0083] The acquisition module 201 is configured to acquire the interior light intensity value of the target vehicle using a preset period of time, and determine the light intensity change rate of the target vehicle during the preset period of time based on the interior light intensity value.
[0084] The comparison module 202 is configured to compare the rate of change of light intensity with a preset coefficient of change of light intensity to obtain a real-time comparison result;
[0085] The first determining module 203 is configured to determine the target state of the sunshade device based on the real-time comparison result, wherein the target state includes a first target state, which indicates that the sunshade device is in an automatically controllable state.
[0086] The second determining module 204 is configured to, if the sunshade device is in the first target state, obtain the road segment type of the current location of the target vehicle and determine the light intensity buffer value of the target vehicle according to the road segment type.
[0087] The control module 205 is configured to control the sunshade device based on the in-vehicle light intensity value, the light intensity buffer value, and the preset light intensity threshold.
[0088] In some embodiments, the acquisition module 201 is further configured to acquire a first light intensity value of the target vehicle at a first time and a second light intensity value of the target vehicle at a second time according to a preset periodic time; calculate the rate of change of the first light intensity value and the second light intensity value to determine the rate of change of the light intensity of the target vehicle.
[0089] In some embodiments, the comparison module 202 is further configured to determine that the shading device is in a first target state if the rate of change of light intensity is less than or equal to a preset light intensity change coefficient; and to determine that the shading device is in a second target state if the rate of change of light intensity is greater than the preset light intensity change coefficient, wherein the second target state indicates that the shading device is in a non-automatically controllable state.
[0090] In some embodiments, the road segment type includes a first road segment type and a second road segment type. The second determining module 204 is further configured to determine a first light intensity buffer value if the road segment currently occupied by the target vehicle is of the first road segment type, and to determine a second light intensity buffer value if the road segment currently occupied by the target vehicle is of the second road segment type.
[0091] In some embodiments, the control module 205 is further configured to determine a first target value and a second target value based on the in-vehicle light intensity value and the light intensity buffer value; and to control the sunshade device based on the comparison result of the first target value and the preset light intensity threshold, and the comparison result of the second target value and the preset light intensity threshold.
[0092] In some embodiments, the control module 205 is further configured to control the sunshade device to turn off if the first target value is greater than a preset light intensity threshold; control the sunshade device to turn on if the second target value is less than the preset light intensity threshold; and control the sunshade device to stop at the current position if the preset light intensity threshold is greater than or equal to the first target value and less than or equal to the second target value.
[0093] In some embodiments, the control module 205 is further configured to control the sunshade to close and control the sunshade to be in a non-automatic control state when it is detected that the sunshade device is in an open state and there is an occupant in the target vehicle who is asleep.
[0094] The apparatus provided in this application embodiment can implement all the method steps of the above method embodiments and achieve the same technical effect, which will not be repeated here.
[0095] Figure 3 This is a schematic diagram of the electronic device 3 provided in an embodiment of this application. Figure 3 As shown, the electronic device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, it implements the steps in the various method embodiments described above. Alternatively, when the processor 301 executes the computer program 303, it implements the functions of each module / unit in the various device embodiments described above.
[0096] Electronic device 3 can be a desktop computer, laptop, handheld computer, cloud server, or other electronic device. Electronic device 3 may include, but is not limited to, processor 301 and memory 302. Those skilled in the art will understand that... Figure 3 This is merely an example of electronic device 3 and does not constitute a limitation on electronic device 3. It may include more or fewer components than shown, or different components.
[0097] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0098] The memory 302 can be an internal storage unit of the electronic device 3, such as a hard disk or RAM of the electronic device 3. The memory 302 can also be an external storage device of the electronic device 3, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc., equipped on the electronic device 3. The memory 302 can also include both internal and external storage units of the electronic device 3. The memory 302 is used to store computer programs and other programs and data required by the electronic device.
[0099] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0100] If integrated modules / units are implemented as software functional units and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program may include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The readable storage medium may include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0101] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A control method for a sunshade device, characterized in that, include: The light intensity value inside the target vehicle is collected using a preset period of time, and the rate of change of light intensity of the target vehicle during the preset period of time is determined based on the light intensity value inside the vehicle. The rate of change of light intensity is compared with the preset coefficient of change of light intensity to obtain a real-time comparison result. Based on the real-time comparison results, the target state of the sunshade device is determined, wherein the target state includes a first target state, which indicates that the sunshade device is in an automatically controllable state. If the sunshade device is in the first target state, the road segment type of the current location of the target vehicle is obtained, and the light intensity buffer value of the target vehicle is determined according to the road segment type. The light intensity buffer value is used to measure the strength of external interference that prevents light from reaching the vehicle. The sunshade device is controlled based on the in-vehicle light intensity value, the light intensity buffer value, and the preset light intensity threshold, including: A first target value and a second target value are determined based on the in-vehicle light intensity value and the light intensity buffer value; the first target value is the difference between the in-vehicle light intensity value and the light intensity buffer value, and the second target value is the sum of the in-vehicle light intensity value and the light intensity buffer value. The shading device is controlled based on the comparison results of the first target value and the preset light intensity threshold, and the comparison results of the second target value and the preset light intensity threshold.
2. The method according to claim 1, characterized in that, Determining the rate of change of light intensity of the target vehicle within the preset period based on the in-vehicle light intensity values collected over the preset period includes: The first light intensity value of the target vehicle at a first time and the second light intensity value of the target vehicle at a second time are collected according to the preset periodic time. The rate of change of the first light intensity value and the second light intensity value is calculated to determine the rate of change of light intensity of the target vehicle.
3. The method according to claim 1, characterized in that, Determining the target state of the sunshade device based on the real-time comparison result includes: If the rate of change of light intensity is less than or equal to the preset coefficient of change of light intensity, then the shading device is determined to be in the first target state. If the rate of change of light intensity is greater than the preset coefficient of change of light intensity, then the shading device is determined to be in a second target state, which indicates that the shading device is in a non-automatic control state.
4. The method according to claim 1, characterized in that, The road segment types include a first road segment type and a second road segment type; Determining the light intensity buffer value for the target vehicle based on the road segment type includes: If the road segment currently in which the target vehicle is located is of the first road segment type, then the first light intensity buffer value is determined; If the road segment currently in which the target vehicle is located is of the second road segment type, then the second light intensity buffer value is determined.
5. The method according to claim 1, characterized in that, The step of controlling the sunshade device based on the comparison result of the first target value and the preset light intensity threshold, and the comparison result of the second target value and the preset light intensity threshold, includes: If the first target value is greater than the preset light intensity threshold, then the sunshade device is controlled to turn off; If the second target value is less than the preset light intensity threshold, then control the sunshade device to turn on; If the preset light intensity threshold is greater than or equal to the first target value and less than or equal to the second target value, then the shading device is controlled to stop at the current position.
6. The method according to claim 1, characterized in that, The method further includes: If the sunshade is detected to be open and there are occupants sleeping in the target vehicle, the sunshade is controlled to close and to be placed in a non-automatic control state.
7. A control device for a sunshade device, characterized in that, include: The acquisition module is configured to acquire the interior light intensity value of the target vehicle using a preset periodic time, and determine the light intensity change rate of the target vehicle during the preset periodic time based on the interior light intensity value. The comparison module is configured to compare the rate of change of light intensity with a preset coefficient of change of light intensity to obtain a real-time comparison result; The first determining module is configured to determine the target state of the sunshade device based on the real-time comparison result, wherein the target state includes a first target state, the first target state indicating that the sunshade device is in an automatically controllable state. The second determining module is configured to, if the sunshade device is in the first target state, obtain the road segment type of the current location of the target vehicle, and determine the light intensity buffer value of the target vehicle based on the road segment type. The light intensity buffer value is used to measure the strength of external interference that prevents light from reaching the vehicle. The control module is configured to control the sunshade device based on the in-vehicle light intensity value, the light intensity buffer value, and a preset light intensity threshold value, including: determining a first target value and a second target value based on the in-vehicle light intensity value and the light intensity buffer value; the first target value being the difference between the in-vehicle light intensity value and the light intensity buffer value, and the second target value being the sum of the in-vehicle light intensity value and the light intensity buffer value; and controlling the sunshade device based on the comparison result between the first target value and the preset light intensity threshold value, and the comparison result between the second target value and the preset light intensity threshold value.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.
9. A readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Skylight glass, automotive lighting device and interior lighting method
CN102785555A
Method and device for controlling vehicle sunshade film under automatic driving
CN115257312A