Automobile skylight control method and device, electronic equipment and storage medium
By obtaining weather information, car temperature and user sun protection preferences, and determining the control instructions for car sunroofs, the problem that sunroof control in the existing technology does not meet user needs is solved, and a more accurate and user-friendly sunroof control is achieved.
Patent Information
- Application Number
- CN202411759903.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-02-14
AI Technical Summary
The existing car sunroof control methods mainly rely on the temperature inside the car, and fail to fully consider the weather and users' sun protection preferences, resulting in the control not meeting users' needs.
By obtaining weather information of the vehicle location, temperature information in the vehicle and user's sun protection preference information, the vehicle's sunroof control instructions are determined based on these information, including the opening status and opening degree of the sunroof.
The sunroof control is more user-friendly and precise, which can better meet users' sun protection needs and improve user experience.
Smart Images

Figure CN119434800A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent driving technology, and in particular, relates to a control method, device, electronic device and storage medium for a vehicle sunroof. Background Art
[0002] The car sunroof is installed on the roof, and can be roughly divided into outward sliding type, inner hidden type, inner hidden outward flipping type, panoramic type and curtain type.
[0003] The sunroof can effectively circulate air in the car, increase the intake of fresh air, bring health and comfort to the car owner, and increase the light intensity in the car, removing the sense of oppression in the car. In addition, opening the sunroof is also often used for mobile photography and video shooting needs.
[0004] Currently, the sunroof is usually controlled based on the temperature inside the car, which sometimes causes the control of the sunroof not to meet user preferences. Summary of the invention
[0005] The embodiments of the present application provide a method, device, electronic device and computer storage medium for controlling a car sunroof, thereby improving the accuracy of car panel selection at least to a certain extent.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to a first aspect of an embodiment of the present application, a method for controlling a vehicle sunroof is provided, comprising:
[0008] Obtaining environmental information corresponding to the vehicle and the user's sun protection preference information, wherein the environmental information includes weather information at the location of the vehicle and temperature information inside the vehicle;
[0009] Determine a sunroof control command for the vehicle based on the environmental information and the sun protection preference information;
[0010] A sunroof of the vehicle is controlled based on the control command.
[0011] In some possible implementations, the method further includes:
[0012] Acquiring at least one of an air conditioning activation state of the vehicle and a driving state of the vehicle;
[0013] Based on the environmental information and the sun protection preference information, determine the sunroof control command for the vehicle, including:
[0014] Based on at least one of an air-conditioning on state and a driving state of the vehicle, as well as environmental information and sun protection preference information, a sunroof control instruction for the vehicle is determined.
[0015] In some possible implementations, determining a sunroof control instruction for a vehicle based on the environmental information and the sun protection preference information includes:
[0016] Determine a target environmental condition that matches the environmental information from a plurality of candidate environmental conditions, wherein each candidate environmental condition has at least one corresponding candidate sunroof control instruction, and each candidate sunroof control instruction corresponds to a sun protection requirement;
[0017] From the at least one candidate sunroof control instruction, a candidate sunroof control instruction whose sun protection requirement meets the sun protection preference information is determined as the sunroof control instruction of the vehicle.
[0018] In some possible implementations, the sunroof control instruction includes a sunroof opening state and a sunroof opening degree;
[0019] Based on the environmental information and the sun protection preference information, determine the sunroof control command for the vehicle, including:
[0020] Determine a sunroof opening state corresponding to a target environmental condition matching the environmental information;
[0021] If the sunroof opening state is open, the sunroof opening degree for the vehicle is determined based on the environmental information and the sun protection preference information.
[0022] In some possible implementations, determining the degree of sunroof opening for a vehicle based on the environmental information and the sun protection preference information includes:
[0023] Based on environmental information and sun protection preference information, the degree of opening of the sunroof for the vehicle is determined through a trained prediction model; wherein the prediction model is trained based on the user's historical control instructions for the sunroof, historical environmental information corresponding to the historical control instructions, and historical sun protection preference information corresponding to the historical control instructions.
[0024] In some possible implementations, the weather information includes UV index, air humidity, and weather type;
[0025] Get the vehicle's weather information, including:
[0026] Obtaining weather forecast information for the location of the vehicle, wherein the weather forecast information includes a UV index;
[0027] The air humidity is determined by the detection result of the humidity detector, and the weather type is determined by the detection result of the rainfall detector.
[0028] In some possible implementations, the weather forecast information further includes a first air humidity and a first weather type at the location of the vehicle;
[0029] The humidity of the air is determined by the test results of the humidity detector, and the weather type is determined by the test results of the rain detector, including:
[0030] Acquire the second air humidity detected by the humidity detector, and acquire the rainfall information detected by the rainfall detector;
[0031] The air humidity is determined based on the first air humidity and the second air humidity, and the weather type is determined based on the first weather type and the rainfall information.
[0032] According to a second aspect of an embodiment of the present application, a control device for a car sunroof is provided, comprising:
[0033] An information acquisition module, used to acquire environmental information corresponding to the vehicle and the user's sun protection preference information, wherein the environmental information includes weather information at the location of the vehicle and temperature information inside the vehicle;
[0034] A command determination module, for determining a sunroof control command for the vehicle based on the environmental information and the sun protection preference information;
[0035] The sunroof control module is used to control the sunroof of the vehicle based on the control command.
[0036] In some possible implementations, the device further includes a state acquisition module, which is used to:
[0037] Acquiring at least one of an air conditioning activation state of the vehicle and a driving state of the vehicle;
[0038] When determining the sunroof control command for the vehicle based on the environmental information and the sun protection preference information, the command determination module is specifically used to:
[0039] Based on at least one of an air-conditioning on state and a driving state of the vehicle, as well as environmental information and sun protection preference information, a sunroof control instruction for the vehicle is determined.
[0040] In some possible implementations, when the instruction determination module determines the sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information, it is specifically used to:
[0041] Determine a target environmental condition that matches the environmental information from a plurality of candidate environmental conditions, wherein each candidate environmental condition has at least one corresponding candidate sunroof control instruction, and each candidate sunroof control instruction corresponds to a sun protection requirement;
[0042] From the at least one candidate sunroof control instruction, a candidate sunroof control instruction whose sun protection requirement meets the sun protection preference information is determined as the sunroof control instruction of the vehicle.
[0043] In some possible implementations, the sunroof control instruction includes a sunroof opening state and a sunroof opening degree;
[0044] When determining the sunroof control command for the vehicle based on the environmental information and the sun protection preference information, the command determination module is specifically used to:
[0045] Determine a sunroof opening state corresponding to a target environmental condition matching the environmental information;
[0046] If the sunroof opening state is open, the sunroof opening degree for the vehicle is determined based on the environmental information and the sun protection preference information.
[0047] In some possible implementations, when the instruction determination module determines the degree of opening of the sunroof for the vehicle based on the environmental information and the sun protection preference information, it is specifically used to:
[0048] Based on environmental information and sun protection preference information, the degree of opening of the sunroof for the vehicle is determined through a trained prediction model; wherein the prediction model is trained based on the user's historical control instructions for the sunroof, historical environmental information corresponding to the historical control instructions, and historical sun protection preference information corresponding to the historical control instructions.
[0049] In some possible implementations, the weather information includes UV index, air humidity, and weather type;
[0050] When obtaining the vehicle's weather information, the information acquisition module is specifically used to:
[0051] Obtaining weather forecast information for the location of the vehicle, wherein the weather forecast information includes a UV index;
[0052] The air humidity is determined by the detection result of the humidity detector, and the weather type is determined by the detection result of the rainfall detector.
[0053] In some possible implementations, the weather forecast information further includes a first air humidity and a first weather type at the location of the vehicle;
[0054] When the information acquisition module determines the air humidity through the detection result of the humidity detector and determines the weather type through the detection result of the rainfall detector, it is specifically used to:
[0055] Acquire the second air humidity detected by the humidity detector, and acquire the rainfall information detected by the rainfall detector;
[0056] The air humidity is determined based on the first air humidity and the second air humidity, and the weather type is determined based on the first weather type and the rainfall information.
[0057] According to a third aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method of the above embodiment.
[0058] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method of the above embodiment are implemented.
[0059] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
[0060] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0061] By obtaining weather information at the vehicle's location, in-vehicle temperature information and the user's sun protection preference information, the vehicle's sunroof control instructions are determined based on the weather information, in-vehicle temperature information and the user's sun protection preference information. This allows the control of the sunroof to take into account not only the in-vehicle temperature, but also the weather and the user's sun protection preference information, thereby meeting the user's needs in a more humane manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0063] Figure 1 A schematic diagram of a flow chart of a method for controlling a car sunroof provided in an embodiment of the present application;
[0064] Figure 2 A schematic diagram of a scheme for determining a sunroof control command provided as an example of the present application;
[0065] Figure 3 A schematic diagram of a scheme for determining a sunroof control command provided as an example of the present application;
[0066] Figure 4 A schematic diagram of a scheme for determining a sunroof control command provided as an example of the present application;
[0067] Figure 5 A schematic diagram of the structure of a control device for a car sunroof provided in an embodiment of the present application;
[0068] Figure 6 A schematic diagram of the structure of an electronic device for controlling a car sunroof provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0070] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0071] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0072] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0073] It should also be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the objects used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those shown or described.
[0074] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0075] The control method of the automobile sunroof of the present application can be executed by any electronic device, and the electronic device may include a server or a terminal.
[0076] It can be understood by technicians in this technical field that the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server or server cluster that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The terminal can be a smart phone (such as Android phones, iOS phones, etc.), a tablet computer, a laptop computer, a digital broadcast receiver, a MID (Mobile Internet Devices), a PDA (personal digital assistant), a desktop computer, a smart home appliance, a vehicle-mounted terminal (such as a vehicle-mounted navigation terminal, a vehicle-mounted computer, etc.), a smart speaker, a smart watch, etc. The terminal and the server can be directly or indirectly connected by wired or wireless communication, but are not limited to this. The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. It can also be determined based on the actual application scenario requirements, and is not limited here. The terminal (also referred to as a user terminal or user device) can be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device (such as a smart speaker), a wearable electronic device (such as a smart watch), a vehicle terminal, a smart home appliance (such as a smart TV), an AR / VR device, an aircraft, etc., but is not limited to these.
[0077] The control method of the automobile sunroof of the present application can be implemented through a control system, and the control system can be set in a vehicle-mounted terminal or in a server that communicates with the vehicle.
[0078] like Figure 1 As shown, in some possible implementations, the present application embodiment provides a method for controlling a car sunroof. Taking the execution subject as a control system as an example, the method may include the following steps:
[0079] Step S101, obtaining environmental information corresponding to the vehicle and sun protection preference information of the user.
[0080] The environmental information includes weather information at the location of the vehicle and temperature information inside the vehicle.
[0081] Specifically, the weather information may include UV index, air humidity and weather type.
[0082] The user's sun protection preference information may include the ultraviolet intensity that the user can accept when the car window is opened and directly exposed to the sun. For example, the user has a high demand for sun protection and can accept sunlight with an ultraviolet index below level 2.
[0083] Step S102: determining a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information.
[0084] In some implementations, a plurality of correspondences between different candidate environmental information, candidate sun protection preference information, and candidate sunroof control instructions may be preset, and the sunroof control instruction may be determined based on the current environmental information and sun protection preference information.
[0085] In other embodiments, the sunroof control instructions for the vehicle may also be determined by combining the trained prediction network with the environmental information and the sun protection preference information.
[0086] The specific process of determining the sunroof control command will be described in further detail below.
[0087] Step S103, controlling the vehicle sunroof based on the control instruction.
[0088] Specifically, the control system can be set in the vehicle's on-board terminal. In addition to being used to generate sunroof control instructions, it can also directly control various parts of the vehicle; the control system can also be used only to generate sunroof control instructions, send the sunroof control instructions to the sunroof controller, and the sunroof controller controls the vehicle's sunroof.
[0089] In the above embodiment, by obtaining weather information of the vehicle's location, in-vehicle temperature information and the user's sun protection preference information, the vehicle's sunroof control instructions are determined based on the weather information, in-vehicle temperature information and the user's sun protection preference information, so that the control of the sunroof not only takes into account the in-vehicle temperature, but also the weather and the user's sun protection preference information, which can meet the user's needs in a more humane way.
[0090] In some possible implementations, the method further includes:
[0091] At least one of an air-conditioning activation state of the vehicle and a driving state of the vehicle is obtained.
[0092] Among them, the air conditioning on status refers to whether the air conditioning in the car is turned on.
[0093] The driving state of the vehicle may include whether the vehicle is driving and the driving speed.
[0094] Step S102 determines a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information, which may include:
[0095] Based on at least one of an air-conditioning on state and a driving state of the vehicle, as well as environmental information and sun protection preference information, a sunroof control instruction for the vehicle is determined.
[0096] Specifically, the air conditioning on state may also affect the control of the vehicle's sunroof. For example, when the air conditioning in the vehicle is turned on, the sunroof will be closed to avoid affecting the effect of the air conditioning.
[0097] Specifically, the driving state of the vehicle can also affect the control of the sunroof. For example, when the vehicle is stopped, the air flow effect of opening the sunroof is not good. However, when the vehicle speed is low and it is driving, the opening degree of the sunroof can be increased; when the vehicle speed is too high, the opening degree of the sunroof can be reduced during driving to avoid excessive wind.
[0098] In the specific implementation process, Figure 2 As shown, the sunroof control command for the vehicle can be determined by combining the air conditioning on state, the environmental information and the sun protection preference information; Figure 3 As shown, the sunroof control command for the vehicle can also be determined in combination with the driving state of the vehicle, the environmental information and the sun protection preference information; Figure 4 As shown, the sunroof control command for the vehicle can also be determined by combining the air-conditioning on state and the vehicle's driving state, as well as the environmental information and the sun protection preference information.
[0099] In the above embodiment, by combining at least one of the air conditioning on state and the vehicle's driving state, as well as environmental information and sun protection preference information, determining the sunroof control instructions for the vehicle can more comprehensively consider the user's needs, thereby more accurately controlling the car sunroof and improving the user experience.
[0100] In some possible implementations, step S102 determines a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information, which may include:
[0101] (1) Determine a target environmental condition that matches the environmental information from multiple candidate environmental conditions.
[0102] Each candidate environmental condition has at least one corresponding candidate sunroof control instruction, and each candidate sunroof control instruction corresponds to a sun protection requirement.
[0103] (2) Determine, from at least one candidate sunroof control instruction, a candidate sunroof control instruction whose sun protection requirement meets the sun protection preference information as the sunroof control instruction of the vehicle.
[0104] Specifically, the correspondence between the candidate environmental conditions, the sun protection requirements and the candidate sunroof control instructions may be pre-set, and then the candidate sunroof control instructions that match the environmental conditions and the sun protection requirements may be used as the sunroof control instructions for the vehicle.
[0105] In the specific implementation process, the sunroof control instruction includes the sunroof opening state and the sunroof opening degree.
[0106] Table 1: Correspondence table of sunroof control commands
[0107]
[0108] As shown in Table 1, in an example, environmental information can be combined first, for example, the ultraviolet index at the current location of the vehicle is level 1, and then the user's sun protection preference information is obtained. For example, if the user's sun protection requirement is a strict sun protection requirement, it can be determined that the sunroof can be opened by 20%.
[0109] In other embodiments, in addition to pre-setting the correspondence between candidate environmental conditions, sun protection requirements and candidate sunroof control instructions, it is also possible to pre-set the correspondence between the driving state of the vehicle, candidate environmental conditions, sun protection requirements and candidate sunroof control instructions, first determine the current driving state of the vehicle, and then determine the matching environmental conditions from multiple environmental conditions that match the driving state of the vehicle, and then use the candidate sunroof control instructions that match the driving state, the environmental conditions and the sun protection requirements as the sunroof control instructions for the vehicle.
[0110] Table 2: Corresponding relationship table of parking state sunroof control commands
[0111]
[0112] As shown in Table 2, in an example, the driving information can be combined first, that is, whether the vehicle is in a driving state or a parked state, for example, the vehicle is currently in a parked state, and then combined with the environmental information, for example, the ultraviolet index at the current location of the vehicle is level 2, and then the user's sun protection preference information is obtained, for example, the user's sun protection demand is a general sun protection demand, at this time it can be determined that the sunroof can be opened 50%.
[0113] Table 3: Corresponding relationship table of parking state sunroof control commands
[0114]
[0115] As shown in Table 3, in an example, the driving information can be combined first, that is, whether the vehicle is in a driving state or a parked state. For example, the vehicle is currently in a driving state and the driving speed is less than 40KM / H. Then, the environmental information can be combined. For example, the ultraviolet index at the current location of the vehicle is level 3. Then, the user's sun protection preference information is obtained. For example, the user's sun protection demand is a general sun protection demand. At this time, it can be determined that the sunroof can be opened by 30%.
[0116] In some possible implementations, step S101 determines a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information, which may include:
[0117] (1) determining a sunroof opening state corresponding to a target environmental condition matching the environmental information;
[0118] (2) If the sunroof opening state is open, determine the sunroof opening degree for the vehicle based on the environmental information and the sun protection preference information.
[0119] Specifically, whether the sunroof needs to be opened can be determined first through environmental information, and then the specific degree of opening of the sunroof can be determined in combination with the environmental information and the sun protection preference information.
[0120] During the specific implementation process, the specific degree of opening of the sunroof can also be determined through a neural network combined with environmental information and sun protection preference information.
[0121] In some possible implementations, determining the degree of sunroof opening for a vehicle based on the environmental information and the sun protection preference information includes:
[0122] Based on environmental information and sun protection preference information, the degree of sunroof opening for the vehicle is determined through the trained prediction model.
[0123] Among them, the prediction model is trained based on the user's historical control instructions for the sunroof, the historical environmental information corresponding to the historical control instructions, and the historical sun protection preference information corresponding to the historical control instructions.
[0124] Specifically, the prediction model is trained in the following way:
[0125] Obtaining a training data set; the training data set includes sample environmental information, sample sun protection preference information and sample control instructions, the sample environmental information includes historical environmental information, the sample sun protection preference information includes historical sun protection preference information, and the sample control instructions include historical control instructions;
[0126] Performing at least one training operation on the initial prediction model based on the training data set until a training end condition is met, and using the initial prediction model that meets the training end condition as the prediction model;
[0127] The training operation includes:
[0128] Inputting sample environmental information and sample sun protection preference information into an initial prediction model to obtain sample prediction control instructions;
[0129] Calculate the total training loss based on the difference between each sample prediction control instruction and the corresponding sample control instruction;
[0130] The parameters of the initial prediction model are adjusted based on the total training loss to obtain the initial prediction model after the parameters are adjusted, and the initial prediction model after the parameters are adjusted is used as the prediction model corresponding to the next training operation.
[0131] In the above embodiment, a prediction model is obtained by training the user's historical control instructions for the sunroof, the historical environmental information corresponding to the historical control instructions, and the historical sun protection preference information corresponding to the historical control instructions, so that the sunroof control instructions output by the prediction model can be more in line with the user's preferences.
[0132] In some possible implementations, the weather information includes UV index, air humidity and weather type.
[0133] Step S101 obtains the weather information of the vehicle from the environmental information corresponding to the vehicle, including:
[0134] (1) Obtain weather forecast information for the vehicle’s location.
[0135] Among them, weather forecast information includes UV index.
[0136] Specifically, the weather forecast information also includes a first air humidity and a first weather type at the location of the vehicle.
[0137] (2) The air humidity is determined by the detection result of the humidity detector, and the weather type is determined by the detection result of the rainfall detector.
[0138] Specifically, the weather type and air humidity may be determined by combining the air humidity detected by the vehicle and the climate conditions in the weather forecast.
[0139] Specifically, determining the air humidity through the detection result of the humidity detector and determining the weather type through the detection result of the rainfall detector may include:
[0140] Acquire the second air humidity detected by the humidity detector, and acquire the rainfall information detected by the rainfall detector;
[0141] The air humidity is determined based on the first air humidity and the second air humidity, and the weather type is determined based on the first weather type and the rainfall information.
[0142] During the specific implementation process, since the weather forecast predicts the air humidity and weather type within a relatively large location range, in order to more accurately determine the weather type and air humidity at the vehicle's location, the second air humidity detected by the humidity detector and the first air humidity in the weather forecast can be combined to determine the air humidity at the vehicle's location, for example, by calculating the weighted sum of the first air humidity and the second air humidity; the weather type can be determined in combination with the first weather type and rainfall information. For example, if the weather forecast is sunny, but it is detected that it is raining based on the rainfall information, then the rainfall information shall prevail.
[0143] The above-mentioned method for controlling the car sunroof obtains weather information at the vehicle's location, in-vehicle temperature information and the user's sun protection preference information, and determines the vehicle's sunroof control instructions based on the weather information, in-vehicle temperature information and the user's sun protection preference information, so that the control of the sunroof not only takes into account the in-vehicle temperature, but also the weather and the user's sun protection preference information, and can meet the user's needs in a more humane way.
[0144] In some possible implementations, such as Figure 5 As shown, the present application provides a control device 50 for a car sunroof, comprising:
[0145] The information acquisition module 501 is used to acquire the environmental information corresponding to the vehicle and the sun protection preference information of the user, wherein the environmental information includes the weather information of the location of the vehicle and the temperature information inside the vehicle;
[0146] A command determination module 502, for determining a sunroof control command for the vehicle based on the environmental information and the sun protection preference information;
[0147] The sunroof control module 503 is used to control the sunroof of the vehicle based on the control instruction.
[0148] In some possible implementations, the device further includes a state acquisition module, which is used to:
[0149] Acquiring at least one of an air conditioning activation state of the vehicle and a driving state of the vehicle;
[0150] When determining the sunroof control command for the vehicle based on the environmental information and the sun protection preference information, the command determination module 502 is specifically used to:
[0151] Based on at least one of an air-conditioning on state and a driving state of the vehicle, as well as environmental information and sun protection preference information, a sunroof control instruction for the vehicle is determined.
[0152] In some possible implementations, when the instruction determination module 502 determines the sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information, it is specifically configured to:
[0153] Determine a target environmental condition that matches the environmental information from a plurality of candidate environmental conditions, wherein each candidate environmental condition has at least one corresponding candidate sunroof control instruction, and each candidate sunroof control instruction corresponds to a sun protection requirement;
[0154] From the at least one candidate sunroof control instruction, a candidate sunroof control instruction whose sun protection requirement meets the sun protection preference information is determined as the sunroof control instruction of the vehicle.
[0155] In some possible implementations, the sunroof control instruction includes a sunroof opening state and a sunroof opening degree;
[0156] When determining the sunroof control command for the vehicle based on the environmental information and the sun protection preference information, the command determination module 502 is specifically used to:
[0157] Determine a sunroof opening state corresponding to a target environmental condition matching the environmental information;
[0158] If the sunroof opening state is open, the sunroof opening degree for the vehicle is determined based on the environmental information and the sun protection preference information.
[0159] In some possible implementations, when the instruction determination module 502 determines the degree of opening of the sunroof of the vehicle based on the environmental information and the sun protection preference information, it is specifically used to:
[0160] Based on environmental information and sun protection preference information, the degree of opening of the sunroof for the vehicle is determined through a trained prediction model; wherein the prediction model is trained based on the user's historical control instructions for the sunroof, historical environmental information corresponding to the historical control instructions, and historical sun protection preference information corresponding to the historical control instructions.
[0161] In some possible implementations, the weather information includes UV index, air humidity, and weather type;
[0162] When acquiring the weather information of the vehicle, the information acquisition module 501 is specifically used to:
[0163] Obtaining weather forecast information for the location of the vehicle, wherein the weather forecast information includes a UV index;
[0164] The air humidity is determined by the detection result of the humidity detector, and the weather type is determined by the detection result of the rainfall detector.
[0165] In some possible implementations, the weather forecast information further includes a first air humidity and a first weather type at the location of the vehicle;
[0166] When the information acquisition module 501 determines the air humidity through the detection result of the humidity detector and determines the weather type through the detection result of the rainfall detector, it is specifically used to:
[0167] Acquire the second air humidity detected by the humidity detector, and acquire the rainfall information detected by the rainfall detector;
[0168] The air humidity is determined based on the first air humidity and the second air humidity, and the weather type is determined based on the first weather type and the rainfall information.
[0169] The above-mentioned car sunroof control device obtains weather information at the vehicle's location, in-car temperature information and the user's sun protection preference information, and determines the vehicle's sunroof control instructions based on the weather information, in-car temperature information and the user's sun protection preference information, so that the control of the sunroof not only takes into account the in-car temperature, but also the weather and the user's sun protection preference information, and can meet the user's needs in a more humane way.
[0170] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Optionally, the electronic device 4000 may also include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0171] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0172] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0173] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0174] The memory 4003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the computer program stored in the memory 4003 to implement the steps shown in the above method embodiment.
[0175] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0176] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0177] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0178] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for controlling a car sunroof, characterized in that: include: Acquire environmental information corresponding to the vehicle and sun protection preference information of the user, wherein the environmental information includes weather information at the location of the vehicle and temperature information inside the vehicle; Determining a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information; A sunroof of the vehicle is controlled based on the control command.
2. The method according to claim 1, characterized in that The method further comprises: Acquire at least one of an air-conditioning activation state of the vehicle and a driving state of the vehicle; The determining, based on the environmental information and the sun protection preference information, a sunroof control instruction for the vehicle includes: Based on at least one of the air-conditioning on state and the driving state of the vehicle, as well as the environmental information and the sun protection preference information, a sunroof control instruction for the vehicle is determined.
3. The method according to claim 1, characterized in that The determining, based on the environmental information and the sun protection preference information, a sunroof control instruction for the vehicle includes: Determine a target environmental condition that matches the environmental information from a plurality of candidate environmental conditions, wherein each candidate environmental condition has at least one corresponding candidate sunroof control instruction, and each candidate sunroof control instruction corresponds to a sun protection requirement; A candidate sunroof control instruction whose sun protection requirement meets the sun protection preference information is determined from the at least one candidate sunroof control instruction as the sunroof control instruction of the vehicle.
4. The method according to claim 1, characterized in that: The sunroof control instruction includes the sunroof opening state and the sunroof opening degree; The determining, based on the environmental information and the sun protection preference information, a sunroof control instruction for the vehicle includes: Determining a sunroof opening state corresponding to a target environmental condition matching the environmental information; If the sunroof opening state is an open sunroof, the sunroof opening degree for the vehicle is determined based on the environmental information and the sun protection preference information.
5. The method according to claim 4, characterized in that The determining, based on the environmental information and the sun protection preference information, the degree of opening of the sunroof of the vehicle includes: Based on the environmental information and the sun protection preference information, the degree of opening of the sunroof for the vehicle is determined through a trained prediction model; wherein the prediction model is trained based on the user's historical control instructions for the sunroof, the historical environmental information corresponding to the historical control instructions, and the historical sun protection preference information corresponding to the historical control instructions.
6. The method according to claim 1, characterized in that The weather information includes UV index, air humidity and weather type; Get the vehicle's weather information, including: Acquire weather forecast information at the location of the vehicle, wherein the weather forecast information includes a UV index; The air humidity is determined by the detection result of the humidity detector, and the weather type is determined by the detection result of the rainfall detector.
7. The method according to claim 6, characterized in that The weather forecast information also includes a first air humidity and a first weather type at the location of the vehicle; The method of determining the air humidity by the detection result of the humidity detector and determining the weather type by the detection result of the rainfall detector includes: Acquire the second air humidity detected by the humidity detector, and acquire the rainfall information detected by the rainfall detector; The air humidity is determined based on the first air humidity and the second air humidity, and the weather type is determined based on the first weather type and the rainfall information.
8. A control device for a car sunroof, characterized in that: include: An information acquisition module, used to acquire environmental information corresponding to the vehicle and the user's sun protection preference information, wherein the environmental information includes weather information at the location of the vehicle and temperature information inside the vehicle; an instruction determination module, configured to determine a sunroof control instruction for the vehicle based on the environmental information and the sun protection preference information; A sunroof control module is used to control the sunroof of the vehicle based on the control instruction.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.