In-vehicle theme mode determination method, electronic equipment and vehicle
By using the location information callback function to determine the vehicle's location when the vehicle fails to respond to the mobile service, calculate the sunrise and sunset times, and automatically adjust the theme mode, it solves the problem of manual adjustment of the vehicle's night theme mode and improves driving safety and visual clarity. .
Patent Information
- Application Number
- CN202410844878.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-18
AI Technical Summary
Current vehicles require users to manually adjust the in-car theme mode when used at night, which is less flexible and cannot meet user needs.
When the mobile service fails to be called through the response, the current location information of the vehicle is determined based on the preset location information callback function, and the sunrise time and sunset time are calculated to automatically determine the target theme mode. According to the current time, the target theme mode is between sunrise and sunset time. The day theme mode and the external night theme mode reduce the risk of user privacy data leakage and improve the stability of location information acquisition.
It realizes the automatic adjustment of the theme mode in the car, enhances the system intelligence, improves the user's driving safety and visual clarity, and reduces the driver's visual pressure.
Smart Images

Figure CN118790174A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle control, and in particular to a method for determining an in-vehicle theme mode, an electronic device, and a vehicle. Background Art
[0002] With the rapid development of vehicle technology, vehicles have become an important means of transportation in people's daily lives. All components in the vehicle are fixed at the factory. If they need to be changed, they must be adjusted manually by the user, and they cannot be automatically adjusted according to environmental changes.
[0003] Currently, when a vehicle is used at night, the user needs to manually adjust the theme mode displayed in the vehicle, which has low flexibility and cannot meet the needs of the user. Summary of the invention
[0004] In view of this, the purpose of the present disclosure is to propose a method for determining an in-vehicle theme mode, an electronic device and a vehicle, so as to solve the problem that when the current vehicle is used at night, the user needs to manually adjust the theme mode displayed in the vehicle, which has low flexibility and cannot meet the needs of users.
[0005] Based on the above purpose, a first aspect of the present disclosure provides a method for determining an in-vehicle theme mode, the method comprising:
[0006] In response to a failure in calling the mobile service, determining the current location information of the vehicle according to a preset location information callback function;
[0007] Calculate the sunrise time and sunset time corresponding to the current location information according to the current location information;
[0008] The current time is obtained, and a target theme mode is determined from a night theme mode and a day theme mode according to the current time, the sunrise time, and the sunset time.
[0009] Based on the same inventive concept, the second aspect of the present disclosure proposes a vehicle theme mode determination device, comprising:
[0010] an information acquisition module, configured to determine the current location information of the vehicle according to a preset location information callback function in response to a failure in calling the mobile service;
[0011] a time determination module, configured to calculate a sunrise time and a sunset time corresponding to the current location information according to the current location information;
[0012] The mode determination module is configured to obtain the current time, and determine the target theme mode from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time.
[0013] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable by the processor, wherein the processor implements the in-vehicle theme mode determination method as described above when executing the computer program.
[0014] Based on the same inventive concept, the fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute the in-vehicle theme mode determination method as described above.
[0015] Based on the same inventive concept, the fifth aspect of the present disclosure provides a vehicle, comprising the in-vehicle theme mode determination device described in the second aspect or the electronic device described in the third aspect or the storage medium described in the fourth aspect.
[0016] As can be seen from the above, the present disclosure proposes a method for determining a theme mode in a car, an electronic device and a vehicle, in response to a failure to call a mobile service, the current location information of the vehicle is determined according to a preset location information callback function. The current location information of the vehicle is determined by the location information callback function. On the one hand, no user authorization is required, reducing the risk of leakage of user privacy data. On the other hand, the location information of the vehicle can still be obtained in areas with weak satellite signals, thereby improving the stability of location information acquisition. The sunrise time and sunset time corresponding to the current location information are calculated according to the current location information, so as to determine the target theme mode corresponding to the current location of the vehicle later. The current time is obtained, and the target theme mode is determined from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time. When the current time is between the sunrise time and the sunset time, it is represented as a daytime environment at this time, and the target theme mode is determined to be a daytime theme mode, thereby improving the visual clarity of the user. When the current time is outside the sunrise time and the sunset time, it is represented as a nighttime environment at this time, and the target theme mode is determined to be a night theme mode, thereby alleviating the visual pressure of the driver. That is, the theme mode in the car can change with the current time, thereby enhancing the intelligence of the system and improving the driving safety of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A flowchart of a method for determining a vehicle theme mode according to an embodiment of the present disclosure;
[0019] Figure 2 It is a structural block diagram of a device for determining a vehicle theme mode according to an embodiment of the present disclosure;
[0020] Figure 3 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0022] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0023] The terms used in this disclosure are explained as follows:
[0024] GPS: Global Navigation and Positioning Satellite System (GPS) refers to a system that uses a new generation of polar-orbiting satellite constellations to provide global positioning services.
[0025] GMS: Google Mobile Services (GMS) is a set of applications and APIs developed by Google that can provide functional and experience support for Android devices.
[0026] lm: Lumen, a physical unit describing luminous flux.
[0027] All components in the vehicle are factory-fixed, and if they need to be changed, they must be manually adjusted by the user, and cannot be automatically adjusted according to environmental changes. When the current vehicle is used at night, the user must manually adjust the theme mode displayed in the car, which is less flexible and cannot meet the needs of users.
[0028] At the same time, due to the limitations of the network environment, the sunset and sunrise times are generally obtained through network services, or the built-in GPS function is used to obtain the device's geographic location information to calculate the sunset and sunrise times.
[0029] When using network services to obtain sunrise and sunset times, the system needs to transmit geographic location parameters to the server. This operation involves the user's location privacy, so the user's explicit authorization must be obtained. Because it involves user privacy data, it is necessary to ensure that data transmission is encrypted and strict data protection measures are implemented on the server.
[0030] Although the native solution that relies on GPS signals to obtain location information does not rely on the network and can avoid the leakage of user privacy data, it may cause the automatic switching function of sunrise and sunset times to fail to respond in a timely manner in areas with weak satellite signals, such as tunnels or underground parking lots.
[0031] Based on the above description, this embodiment proposes a method for determining a theme mode in a vehicle, such as Figure 1 As shown, the method includes:
[0032] Step 101, in response to a failure in calling a mobile service, determining the current location information of the vehicle according to a preset location information callback function.
[0033] In the specific implementation, it is determined whether the mobile service can be successfully called. In this embodiment, the mobile service is preferably a Google mobile service. When the mobile service fails to be called, it means that the sunrise time and sunset time cannot be directly obtained by calling the mobile service. At this time, the current location information of the vehicle is determined according to the preset location information callback function, wherein the current location information is represented by the latitude and longitude of the current location.
[0034] Step 102, calculating the sunrise time and sunset time corresponding to the current location information according to the current location information.
[0035] In specific implementation, after obtaining the current location information of the vehicle, the sunrise time and sunset time corresponding to the longitude and latitude information of the current location are calculated by using the interface provided by the vehicle system. The sunrise time refers to the time when the sun rises from the eastern horizon every day, which varies with the season and the latitude of each place. The sunset time refers to the time when the center of the sun sets from the western horizon every day, which is related to the longitude and latitude of the area and the season.
[0036] Step 103 , obtaining the current time, and determining a target theme mode from the night theme mode and the day theme mode according to the current time, the sunrise time, and the sunset time.
[0037] In specific implementation, the current time is obtained, and the target theme mode is determined from the night theme mode and the day theme mode according to the current time, sunrise time and sunset time. The night theme mode has a lower brightness than the day theme mode to reduce the driver's visual stress.
[0038] Specifically, the first time period is determined according to the sunrise time and the sunset time, and when the current time is within the first time period, the target theme mode corresponding to the current position of the vehicle is the daytime theme mode. When the current time is outside the first time period, the target theme mode corresponding to the current position of the vehicle is the nighttime theme mode.
[0039] For example, the sunrise time at the current location of vehicle A is calculated to be 06:00 and the sunset time is 18:00. The current time is obtained to be 12:20, and at this time, it can be determined that the target theme mode of vehicle A is the daytime theme mode.
[0040] In another example, the sunrise time at the current location of vehicle B is calculated to be 07:00 and the sunset time is 17:00. The current time is obtained to be 19:30, and at this time, it can be determined that the target theme mode of vehicle B is the night theme mode.
[0041] Through the above scheme, in response to the failure of calling the mobile service, the current location information of the vehicle is determined according to the preset location information callback function. The current location information of the vehicle is determined by the location information callback function. On the one hand, the user authorization is not required, which reduces the risk of leakage of user privacy data. On the other hand, the location information of the vehicle can still be obtained in areas with weak satellite signals, which improves the stability of location information acquisition. The sunrise time and sunset time corresponding to the current location information are calculated according to the current location information, so as to determine the target theme mode corresponding to the current location of the vehicle later. The current time is obtained, and the target theme mode is determined from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time. When the current time is between the sunrise time and the sunset time, it is represented as a daytime environment at this time, and the target theme mode is determined to be a daytime theme mode, which improves the visual clarity of the user. When the current time is outside the sunrise time and the sunset time, it is represented as a nighttime environment at this time, and the target theme mode is determined to be a night theme mode, which relieves the visual pressure of the driver. That is, the theme mode in the car can change with the current time, which enhances the intelligence of the system and improves the driving safety of the user.
[0042] In some embodiments, step 101 specifically includes:
[0043] Step 1011, register a preset location information callback function and obtain a callback result.
[0044] Step 1012: In response to the callback result being not empty, taking the location information corresponding to the callback result as the current location information.
[0045] or,
[0046] Step 1013: In response to the callback result being empty, read the first location information pre-stored in the database as the current location information.
[0047] In specific implementation, a preset location information callback function is registered, and a callback result is obtained after registration, wherein the callback result is longitude and latitude information. Based on the returned callback result, it is determined whether the location information is valid, that is, whether the longitude and latitude information corresponding to the callback result is empty.
[0048] When the callback result is not empty, that is, the callback result contains longitude and latitude information, the longitude and latitude information is used as the current location information.
[0049] When the callback result is empty, that is, no longitude and latitude information is returned in the callback result, the pre-stored first location information is read from the database and the first location information is used as the current location information. The first location information is the location corresponding to the last time the vehicle determined the target theme mode.
[0050] Exemplarily, a location information callback function is registered, and the callback result is 38°34′ north latitude, 116°43′ east longitude, so the current location information of the vehicle can be determined to be 38°34′ north latitude, 116°43′ east longitude.
[0051] Through the above scheme, the current location information of the vehicle is determined by judging whether the callback result is empty. If the callback result is not empty, the current location of the vehicle is the location corresponding to the callback result. If the callback result is empty, the location pre-stored in the database is used as the current location of the vehicle, so that the current location information of the vehicle can be determined in any case, which improves the usability of the system. At the same time, due to the change of the area where the vehicle is active in a short period of time, the change of sunrise time and sunset time is small. Therefore, the location corresponding to the last determination of the target theme mode can be used as the location when the target theme mode is determined this time.
[0052] In some embodiments, the callback frequency of the location information callback function can be set to once every 30 minutes, that is, every 30 minutes, the vehicle computer automatically determines the current location information through the location information callback function, and then determines the target theme mode corresponding to the current location information. In this embodiment, the callback frequency of the location information callback function can be set by the manufacturer before the vehicle leaves the factory, and can also be customized by the vehicle owner according to his own needs.
[0053] In some embodiments, after step 103, the method further includes:
[0054] Step 10A, deleting the first location information from the database, and storing the current location information in the database.
[0055] In specific implementation, after the vehicle determines the current location information, the first location information stored in the database is deleted, and the current location information determined this time is stored in the database, and encryption processing can be performed during storage to avoid leakage of user privacy.
[0056] Through the above scheme, the determined current location information is stored in the database, so that when the vehicle determines the target theme mode next time, if the callback result obtained is empty, it is used as the current location information of the vehicle next time.
[0057] In some embodiments, step 101 includes:
[0058] Step 1011, check whether there is a mobile service in the device application list of the vehicle.
[0059] Step 1012: In response to the mobile service not existing, determining that calling the mobile service fails.
[0060] In specific implementation, after the vehicle is started, it is checked whether there is a mobile service in the device application list of the vehicle. In this embodiment, the mobile service is preferably Google Mobile Service (GMS). When it is determined that there is no mobile service in the device application list of the vehicle, it is determined that the call to the mobile service fails. That is, GMS is not available at this time, and it is impossible to use GMS to obtain the sunrise time and sunset time. Therefore, the current location information of the vehicle is subsequently determined according to the preset location information callback function.
[0061] In some embodiments, after step 1011, the method further includes:
[0062] Step 101A: In response to the existence of the mobile service, determining that the calling of the mobile service is successful.
[0063] Step 101B, using the mobile service to determine the sunrise time and sunset time corresponding to the current location information.
[0064] In specific implementation, after checking whether there is a mobile service in the device application list of the vehicle, if there is a mobile service, it is determined that the call to the mobile service is successful, and the sunrise time and sunset time can be directly determined through GMS.
[0065] Through the above scheme, when it is determined that the mobile service is available, the sunrise time and sunset time corresponding to the current location information can be directly obtained by using the mobile service, thereby improving the acquisition efficiency and shortening the acquisition time.
[0066] In some embodiments, after determining that the target theme mode is the daytime theme mode in step 103, the method further includes:
[0067] Step 10A, obtaining the brightness inside the vehicle, and determining a first target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle.
[0068] Step 10B, obtaining the current brightness of the central control screen in the vehicle, and controlling the brightness of the central control screen in the vehicle to be adjusted from the current brightness to the first target brightness.
[0069] In specific implementation, the brightness inside the car is determined by an in-car sensor, and the first target brightness of the central control screen inside the car is determined based on the in-car brightness. The first target brightness can be determined by searching a database, or by comparing the in-car brightness with a preset brightness threshold.
[0070] Case 1: Determine the brightness of the first target by searching the database.
[0071] According to the in-vehicle brightness, a database is searched to obtain a first target brightness of the in-vehicle central control screen corresponding to the in-vehicle brightness, wherein the database pre-stores a correspondence between the in-vehicle brightness and the first target brightness of the in-vehicle central control screen, and the correspondence may include at least one of the following: a relationship table, a function relationship, a curve relationship, and a bar graph relationship.
[0072] Exemplarily, the correspondence between the interior brightness and the first target brightness of the interior central control screen is pre-set, such as the interior brightness is 500lm, and the corresponding brightness of the interior central control screen is 50%; the interior brightness is 600lm, and the corresponding brightness of the interior central control screen is 60%; the interior brightness is 700lm, and the corresponding brightness of the interior central control screen is 70%; the interior brightness is 800lm, and the corresponding brightness of the interior central control screen is 80%; the interior brightness is 900lm, and the corresponding brightness of the interior central control screen is 90%; the interior brightness is 1000lm, and the corresponding brightness of the interior central control screen is 100%.
[0073] Case 2: The first target brightness is determined by comparing the brightness inside the vehicle with a preset brightness threshold.
[0074] A first preset brightness threshold is obtained, and the brightness inside the vehicle is compared with the first preset brightness threshold. In response to the brightness inside the vehicle being greater than the first preset brightness threshold, it indicates that the vehicle is in a strong light environment, and the brightness of the central control screen inside the vehicle corresponds to the first brightness. In response to the brightness inside the vehicle being less than or equal to the first preset brightness threshold, it indicates that the vehicle is in a normal light environment, and the brightness of the central control screen inside the vehicle corresponds to the second brightness.
[0075] For example, the first preset brightness threshold is 800lm. When the brightness inside the vehicle is greater than 800lm, it means that the vehicle is in a strong light environment, and the brightness of the central control screen inside the vehicle is 80%-100% accordingly. When the brightness inside the vehicle is less than or equal to 800lm, it means that the vehicle is in a normal light environment, and the brightness of the central control screen inside the vehicle is 60%-80% accordingly.
[0076] The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is adjusted from the current brightness to the first target brightness.
[0077] In some embodiments, the current brightness of the central control screen in the vehicle can be compared with the first target brightness. If the current brightness is greater than or equal to the first target brightness, it means that the brightness of the central control screen is sufficient to ensure that the user can see the information on the central control screen clearly. There is no need to adjust the brightness of the central control screen in the vehicle, avoiding unnecessary adjustment operations.
[0078] Through the above solution, when the vehicle is in daytime theme mode, a light color theme is displayed, and the screen brightness can be adjusted to increase according to the current brightness in the car to improve the visual clarity of the central control screen, improve the display effect of the in-vehicle central control screen, and facilitate the acquisition of central control screen information. At the same time, the driving safety factor is improved.
[0079] In some embodiments, after determining that the target theme mode is the night theme mode in step 103, the method further includes:
[0080] Step 10a, obtaining the brightness inside the vehicle, and determining a second target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle.
[0081] Step 10b, obtaining the current brightness of the central control screen in the vehicle, and controlling the brightness of the central control screen in the vehicle to be adjusted from the current brightness to the second target brightness.
[0082] In specific implementation, the brightness inside the car is determined by an in-car sensor, and the second target brightness of the central control screen inside the car is determined based on the in-car brightness. The second target brightness can be determined by searching a database, or by comparing the in-car brightness with a preset brightness threshold.
[0083] Case 1: Determine the brightness of the second target by searching the database.
[0084] According to the in-vehicle brightness, a database is searched to obtain a second target brightness of the in-vehicle central control screen corresponding to the in-vehicle brightness, wherein the database pre-stores a correspondence between the in-vehicle brightness and the second target brightness of the in-vehicle central control screen, and the correspondence may include at least one of the following: a relationship table, a function relationship, a curve relationship, and a bar graph relationship.
[0085] Exemplarily, the correspondence between the interior brightness and the second target brightness of the interior central control screen is pre-set, such as the interior brightness is 500lm, and the corresponding brightness of the interior central control screen is 50%; the interior brightness is 400lm, and the corresponding brightness of the interior central control screen is 40%; the interior brightness is 300lm, and the corresponding brightness of the interior central control screen is 30%; the interior brightness is 200lm, and the corresponding brightness of the interior central control screen is 20%; the interior brightness is 100lm, and the corresponding brightness of the interior central control screen is 10%.
[0086] Case 2: The second target brightness is determined by comparing the brightness inside the vehicle with a preset brightness threshold.
[0087] A second preset brightness threshold is obtained, and the vehicle interior brightness is compared with the second preset brightness threshold. In response to the vehicle interior brightness being greater than the second preset brightness threshold, it indicates that the vehicle is in a low-light environment, and the brightness of the vehicle interior central control screen corresponds to the third brightness. In response to the vehicle interior brightness being less than or equal to the second preset brightness threshold, it indicates that the vehicle is in a dark environment, and the brightness of the vehicle interior central control screen corresponds to the fourth brightness.
[0088] For example, the second preset brightness threshold is 250lm. When the brightness inside the vehicle is greater than 250lm, it means that the vehicle is in a low-light environment, and the brightness of the central control screen inside the vehicle is 20%-40% accordingly. When the brightness inside the vehicle is less than or equal to 250lm, it means that the vehicle is in a dark environment, and the brightness of the central control screen inside the vehicle is 10%-20% accordingly.
[0089] The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is adjusted from the current brightness to the second target brightness.
[0090] In some embodiments, the current brightness of the central control screen in the vehicle can be compared with a second target brightness. If the current brightness is less than or equal to the second target brightness, it indicates that the brightness of the central control screen in the vehicle is dim, and there is no need to adjust the brightness of the central control screen in the vehicle, thereby avoiding unnecessary adjustment operations.
[0091] Through the above solution, when the vehicle is in night theme mode, a dark theme is displayed, and the screen brightness can be adjusted to lower according to the current brightness inside the car, thereby alleviating the driver's visual stress and effectively reducing the large visual difference caused by the different lighting environments inside and outside the car, thereby improving driving safety.
[0092] In some embodiments, step 103 further includes:
[0093] Step A, obtaining the current brightness of a target light in the vehicle, wherein the target light includes at least one of the following: an interior ambient light, an interior step light, a trunk light, or a door light.
[0094] Step B: determining a third target brightness corresponding to the target theme mode, and controlling the brightness of the target light in the vehicle to be adjusted from the current light brightness to the third target brightness.
[0095] In a specific implementation, the current brightness of the target light in the vehicle is obtained, wherein the target light includes at least one of the following: an interior atmosphere light, an interior step light, a trunk light, or a door light. After determining the target theme mode of the vehicle, a third target brightness corresponding to the target light in the target theme mode is searched, and the brightness of the target light in the vehicle is controlled to be adjusted from the current brightness to the third target brightness.
[0096] Exemplarily, the target light is the step light in the vehicle. When the target theme mode corresponding to the vehicle's location is the daytime theme mode, the third target brightness of the step light in the vehicle is found to be 0%, that is, in the daytime theme mode, there is no need to turn on the step light, which reduces unnecessary power consumption and improves the vehicle's endurance.
[0097] In another example, the target light is the interior atmosphere light. When the target theme mode corresponding to the vehicle's location is the night theme mode, the third target brightness of the interior atmosphere light is found to be 70%, that is, the interior atmosphere light is controlled to be turned on in the night mode, and the brightness is controlled at 70%, creating a comfortable driving environment for the user.
[0098] In another example, the target light is a trunk light. When the target theme mode corresponding to the vehicle's location is a night theme mode, the third target brightness of the trunk light is found to be 100%, that is, the trunk light is controlled to be turned on in the night mode, so that the user can see the items in the trunk clearly when the outdoor environment brightness is low, which is convenient for the user to take the items.
[0099] When adjusting the brightness of the target light in the car, a prompt message can also be sent to the user, wherein the prompt message is used to remind the user that the light in the car is about to be adjusted. The prompt message includes at least one of the following: voice broadcast, HUD display, instrument display, central control screen display, window display, and in-car equipment linkage. Among them, HUD display is head-up display. For example, if the prompt message is HUD display, the prompt message will be projected in front of the user.
[0100] For example, the prompt information is in the form of voice broadcast, the content of the prompt information is in the form of text, and the target light in the vehicle is the step light in the vehicle. When the brightness of the step light in the vehicle is adjusted, the voice broadcasts the prompt information of "the brightness of the step light will be adjusted for you".
[0101] Through the above scheme, while adjusting the target lights in the car, a prompt message is sent to the user to inform the user that the target lights in the car are about to be adjusted, so as to avoid the problem of sudden adjustment causing the user to be frightened, resulting in reduced driving safety for the user.
[0102] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0103] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0104] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides an in-vehicle theme mode determination device.
[0105] refer to Figure 2 , Figure 2 The in-vehicle theme mode determination device of the embodiment includes:
[0106] The information acquisition module 201 is configured to determine the current location information of the vehicle according to a preset location information callback function in response to a failure in calling the mobile service;
[0107] A time determination module 202 is configured to calculate a sunrise time and a sunset time corresponding to the current location information according to the current location information;
[0108] The mode determination module 203 is configured to obtain the current time, and determine the target theme mode from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time.
[0109] In some embodiments, the information acquisition module 201 is specifically configured to:
[0110] Register the preset location information callback function and get the callback result;
[0111] In response to the callback result being not empty, taking the location information corresponding to the callback result as the current location information; or,
[0112] In response to the callback result being empty, first location information pre-stored in the database is read as current location information.
[0113] In some embodiments, the device further includes a storage module, and the storage module is specifically configured to:
[0114] The first location information is deleted from the database, and the current location information is stored in the database.
[0115] In some embodiments, the information acquisition module 201 specifically includes:
[0116] A search unit configured to search whether a mobile service exists in a device application list of the vehicle;
[0117] The determining unit is configured to determine that calling the mobile service fails in response to the mobile service not existing.
[0118] In some embodiments, the information acquisition module 201 further includes a time determination unit, and the time determination unit is specifically configured to:
[0119] In response to the mobile service existing, determining that calling the mobile service is successful;
[0120] The mobile service is used to determine the sunrise time and sunset time corresponding to the current location information.
[0121] In some embodiments, the device further includes a first brightness adjustment module, wherein the first brightness adjustment module is configured to:
[0122] Acquire the brightness inside the vehicle, and determine a first target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle;
[0123] The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is controlled to be adjusted from the current brightness to the first target brightness.
[0124] In some embodiments, the device further includes a second brightness adjustment module, wherein the second brightness adjustment module is configured to:
[0125] Acquire the brightness inside the vehicle, and determine a second target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle;
[0126] The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is controlled to be adjusted from the current brightness to the second target brightness.
[0127] In some embodiments, the device further includes a third brightness adjustment module, and the third brightness adjustment module is configured to:
[0128] Acquire the current light brightness of a target light in the vehicle, wherein the target light includes at least one of the following: an interior ambient light, an interior step light, a trunk light, or a door light;
[0129] A third target brightness corresponding to the target theme mode is determined, and the brightness of the target light in the vehicle is controlled to be adjusted from the current light brightness to the third target brightness.
[0130] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0131] The device of the above embodiment is used to implement the corresponding in-vehicle theme mode determination method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0132] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for determining the in-vehicle theme mode described in any of the above embodiments is implemented.
[0133] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0134] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0135] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0136] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0137] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0138] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0139] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0140] The electronic device of the above embodiment is used to implement the corresponding in-vehicle theme mode determination method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0141] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the in-vehicle theme mode determination method as described in any of the above embodiments.
[0142] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0143] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the in-vehicle theme mode determination method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0144] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides a vehicle, including the in-vehicle theme mode determination device in the above-mentioned embodiments, the electronic device in the above-mentioned embodiments, and the computer-readable storage medium in the above-mentioned embodiments, and the vehicle equipment implements the in-vehicle theme mode determination method described in any of the above embodiments.
[0145] The vehicle of the above-mentioned embodiment is used to implement the method for determining the in-vehicle theme mode described in any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0146] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0147] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0148] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0149] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0150] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0151] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0152] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0153] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A method for determining a theme mode in a vehicle, characterized in that: include: In response to a failure in calling the mobile service, determining the current location information of the vehicle according to a preset location information callback function; Calculate the sunrise time and sunset time corresponding to the current location information according to the current location information; The current time is obtained, and a target theme mode is determined from a night theme mode and a day theme mode according to the current time, the sunrise time, and the sunset time.
2. The method according to claim 1, characterized in that: The determining the current position information of the vehicle according to the preset position information callback function includes: Register the preset location information callback function and get the callback result; In response to the callback result being not empty, taking the location information corresponding to the callback result as the current location information; or, In response to the callback result being empty, first location information pre-stored in the database is read as current location information.
3. The method according to claim 2, characterized in that After determining the target theme mode from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time, the method further includes: The first location information is deleted from the database, and the current location information is stored in the database.
4. The method according to claim 1, characterized in that: The response to the failure of calling the mobile service includes: Check if the mobile service exists in the vehicle's device application list; In response to the mobile service not existing, it is determined that calling the mobile service fails.
5. The method according to claim 4, characterized in that After checking the vehicle's device app list for the mobile service, also include: In response to the mobile service existing, determining that calling the mobile service is successful; The mobile service is used to determine the sunrise time and sunset time corresponding to the current location information.
6. The method according to claim 1, characterized in that After determining that the target theme mode is the daytime theme mode, the method further includes: Acquire the brightness inside the vehicle, and determine a first target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle; The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is controlled to be adjusted from the current brightness to the first target brightness.
7. The method according to claim 1, characterized in that After determining that the target theme mode is the night theme mode, the method further includes: Acquire the brightness inside the vehicle, and determine a second target brightness of the central control screen inside the vehicle according to the brightness inside the vehicle; The current brightness of the central control screen in the vehicle is obtained, and the brightness of the central control screen in the vehicle is controlled to be adjusted from the current brightness to the second target brightness.
8. The method according to claim 1, characterized in that After determining the target theme mode from the night theme mode and the day theme mode according to the current time, the sunrise time and the sunset time, the method further includes: Acquire the current light brightness of a target light in the vehicle, wherein the target light includes at least one of the following: an interior ambient light, an interior step light, a trunk light, or a door light; A third target brightness corresponding to the target theme mode is determined, and the brightness of the target light in the vehicle is controlled to be adjusted from the current light brightness to the third target brightness.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the program.
10. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 9.
Citation Information
Cited By
In-vehicle theme mode determination method and apparatus, and device, storage medium and vehicle
WO2026001588A1
