A vehicle interior light control method, device, vehicle and storage medium
By introducing status and brightness control commands into the interior light control commands, the problem of single and unstable vehicle interior light control is solved, achieving more diverse and stable lighting control effects.
Patent Information
- Application Number
- CN202310737295.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-20
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2043-06-20
AI Technical Summary
Existing vehicle interior lighting control methods are too simplistic and unstable, making it difficult to achieve diversity and stability.
By adding status control commands and brightness control commands to the interior light control commands, the lighting or extinguishing mode and target brightness of the vehicle's interior lights are controlled in combination with the current status of the vehicle's interior lights.
It achieves versatility and stability in vehicle interior lighting control, avoids abrupt changes in lighting status, and improves user experience and driving safety.
Smart Images

Figure CN116653763B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicles, and more specifically, to a method, apparatus, vehicle, and storage medium for controlling interior lights in a vehicle within the field of vehicle control. Background Technology
[0002] In existing technologies, the control of vehicle interior lights is generally achieved through pulse width modulation (PWM) duty cycle control. Specifically, the control chip (Cortex A) sends the corresponding duty cycle command to the PWM actuator. This control mode is too simplistic and unstable. Summary of the Invention
[0003] This application provides a method, apparatus, vehicle, and storage medium for controlling vehicle interior lights. The method can, to a certain extent, make the control of vehicle interior lights more diverse and improve the stability of vehicle light control.
[0004] In a first aspect, a method for controlling vehicle interior lights is provided. The method includes: acquiring an interior light control command for the vehicle interior lights; acquiring a state control command and a brightness control command from the interior light control command, wherein the state control command and the brightness control command are located at different positions in the interior light control command, the state control command being used to control the manner in which the vehicle interior lights are turned on or off, and the brightness control command being used to control the target brightness of the vehicle interior lights; and controlling the vehicle interior lights based on the current state of the vehicle interior lights, the state control command, and the brightness control command.
[0005] In conjunction with the first aspect, the interior light control command includes N values, and the step of obtaining the status control command and brightness control command from the interior light control command includes: obtaining the first M values from the interior light control command to obtain the status control command; and obtaining the last L values from the interior light control command to obtain the brightness control command; wherein N, M, and L are all positive integers and M+L is less than or equal to N.
[0006] Combining the first aspect and the above implementation method, the inner light control instruction is stored in an N-bit register. Obtaining the first M values from the inner light control instruction to obtain the status control instruction includes: right-shifting the inner light control instruction in the register to obtain the first M values. Right-shifting the data means adding a preset value to the beginning of the register to change the position of the stored values in the register; discarding the values shifted out from the end of the register; and determining the status control instruction based on the first M values.
[0007] Combining the first aspect and the above implementation method, the step of right-shifting the data of the internal lamp control instruction in the register to obtain the first M values includes: adding K preset values to the beginning of the register to obtain a reference instruction, the end of the reference instruction being the first M values, where K is a positive integer and K+M=N; the step of determining the status control instruction based on the first M values includes: performing data type conversion on the reference instruction to obtain the status control instruction.
[0008] Combining the first aspect and the above implementation method, obtaining the brightness control instruction by acquiring the last L values from the inner light control instruction includes: acquiring the last L values from the inner light control instruction; adding O preset values before the last L values to obtain the brightness control instruction, where O is a positive integer and O+L=N.
[0009] Combining the first aspect and the above implementation method, the step of controlling the vehicle interior lights based on the current state of the vehicle interior lights, the state control command, and the brightness control command specifically includes: when the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, controlling the vehicle interior lights according to the state indicated by the state control command; and when the state indicated by the state control command is a brightness gradient state, and the current state of the vehicle interior lights is consistent with the state indicated by the state control command, maintaining the original state.
[0010] In conjunction with the first aspect and the above implementation method, the step of controlling the vehicle interior lights according to the state indicated by the state control command when the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command specifically includes: when the state indicated by the state control command is a brightness gradient state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, adjusting the brightness of the vehicle interior lights according to the brightness gradient state with a preset frequency and a preset amplitude.
[0011] Combining the first aspect and the above implementation method, when the state indicated by the state control command is a brightness gradient state, and the current state of the vehicle interior light is inconsistent with the state indicated by the state control command, adjusting the brightness of the vehicle interior light according to the brightness gradient state at a preset frequency and a preset amplitude specifically includes: when the current state of the vehicle interior light is a first brightness gradient state, and the state indicated by the state control command is a second brightness gradient state, adjusting the brightness of the vehicle interior light to the target brightness of the brightness control command, and adjusting the brightness of the vehicle interior light according to the second brightness gradient state at a preset frequency and a preset amplitude, wherein the first brightness gradient state and the second brightness gradient state are different brightness gradient states.
[0012] In conjunction with the first aspect and the above implementation method, the step of controlling the vehicle interior lights according to the state indicated by the state control command when the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command specifically includes: when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, controlling the vehicle interior lights to maintain a fixed brightness according to the fixed brightness state.
[0013] Combining the first aspect and the above implementation, the step of adjusting the brightness of the vehicle interior lights to the brightness corresponding to the fixed brightness state and keeping the brightness unchanged when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command specifically includes: adjusting the brightness of the vehicle interior lights to the highest brightness and keeping the brightness unchanged when the state indicated by the state control command is a first fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command; and adjusting the brightness of the vehicle interior lights to 0 and keeping the brightness unchanged when the state indicated by the state control command is a second fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command.
[0014] In conjunction with the first aspect and the above implementation method, the step of controlling the vehicle interior lights according to the fixed brightness state when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command specifically includes: adjusting the brightness of the vehicle interior lights to the target brightness of the brightness control command and keeping the brightness unchanged when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command.
[0015] In conjunction with the first aspect and the above implementation method, the step of controlling the vehicle interior lights based on the current state of the vehicle interior lights, the state control command, and the brightness control command further includes: when the state indicated by the state control command is a fixed brightness state, and the current state of the vehicle interior lights is consistent with the state indicated by the state control command, controlling the vehicle interior lights to maintain the fixed brightness state.
[0016] Combining the first aspect and the above implementation method, the step of controlling the vehicle interior lights to maintain the fixed brightness state when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is consistent with the state indicated by the state control command specifically includes: maintaining the original state when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior lights is consistent with the state indicated by the state control command.
[0017] Combining the first aspect and the above implementation method, when the state indicated by the state control command is a fixed brightness state and the current state of the vehicle interior light is consistent with the state indicated by the state control command, controlling the vehicle interior light to maintain the fixed brightness state specifically includes: when the brightness of the vehicle interior light is inconsistent with the target brightness of the brightness control command, adjusting the brightness of the vehicle interior light to the target brightness of the brightness control command and keeping it unchanged.
[0018] Secondly, a vehicle interior light control device is provided, comprising: an instruction acquisition module for acquiring interior light control instructions for the vehicle interior lights; an instruction decomposition module for acquiring a status control instruction and a brightness control instruction from the interior light control instructions, wherein the status control instruction and the brightness control instruction are located at different positions in the interior light control instructions, the status control instruction is used to control the way the vehicle interior lights are turned on or off, and the brightness control instruction is used to control the target brightness of the vehicle interior lights; and an interior light control module for controlling the vehicle interior lights based on the current status of the vehicle interior lights, the status control instructions, and the brightness control instructions.
[0019] Thirdly, a vehicle is provided, including a memory and a processor. The memory is used to store executable program code, and the processor is used to call and run the executable program code from the memory, causing the vehicle to perform the methods described in the first aspect or any possible implementation thereof.
[0020] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.
[0021] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.
[0022] In some embodiments of this application, an interior light control instruction is added to the interior light control instruction, which, together with the brightness control instruction, constitutes the interior light control instruction. The status control instruction is used to control the way the vehicle interior lights are turned on or off, and the brightness control instruction is used to control the target brightness of the vehicle interior lights. By controlling the vehicle interior lights together through the current state of the vehicle interior lights, the status control instruction, and the brightness control instruction, the control of the vehicle interior lights becomes more versatile. Simultaneously, due to the presence of the status control instruction, the interior light state can be locked at the execution end when controlling the interior lights, making the interior lights more stable in various scenarios and preventing abrupt changes.
[0023] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit this application. Attached Figure Description
[0024] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown.
[0025] Figure 2 A schematic flowchart of a vehicle interior light control method provided in an embodiment of this application is shown.
[0026] Figure 3 It shows that according to Figure 2 A flowchart illustrating a specific implementation of step S200 in the vehicle interior light control method shown in the corresponding embodiment.
[0027] Figure 4 It shows that according to Figure 2 A flowchart illustrating a specific implementation of step S300 in the vehicle interior light control method shown in the corresponding embodiment.
[0028] Figure 5 This is a schematic diagram of the structure of a vehicle interior light control device provided in an embodiment of this application.
[0029] Figure 6 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation
[0030] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0031] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0032] 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 can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0034] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of this application can be applied is shown.
[0035] like Figure 1 As shown, in this implementation environment, the system includes a control chip 100, a pulse-width modulation (PWM) actuator 200, and an inner lamp 300.
[0036] The control chip 100 is a chip installed and running in the vehicle, which can be a Snapdragon chip, a Dimensity chip, or a Tegar chip.
[0037] PWM actuator 200 and interior lights 300 are installed on the vehicle. PWM actuator 200 controls the on / off state of interior lights 300. Interior lights 300 are various lights located inside the vehicle cabin, including reading lights, dome lights, footwell lights, ambient lights, vanity mirror lights, glove box lights, and trunk lights. Reading lights provide illumination for passengers reading maps, books, or other reading materials and can be switched on / off. Dome lights are used for interior lighting and to indicate whether doors are reliably closed; they are often shared with reading lights. Footwell lights illuminate the front and rear footwell areas, including the driver's pedal area. Ambient lights are decorative lights used to create an ambient lighting effect inside the vehicle. Vanity mirror lights provide gentle and even illumination for passengers looking in the vanity mirror. Glove box lights provide illumination for passengers accessing items in the glove box. Trunk lights provide illumination for the trunk. The arrangement of interior lights throughout the vehicle is shown in the figure.
[0038] After receiving the interior light control command from the control chip 100, the PWM actuator 200 obtains the status control command and brightness control command from the interior light control command. The status control command and brightness control command are located at different positions within the interior light control command; the status control command controls how the vehicle's interior lights are turned on or off, and the brightness control command controls the target brightness of the vehicle's interior lights. Finally, based on the current status of the vehicle's interior lights, the status control command, and the brightness control command, the vehicle's interior lights 300 are controlled.
[0039] It should be noted that the control chip 100, PWM actuator 200 and inner lamp 300 can be connected via Bluetooth, USB (Universal Serial Bus) or other communication methods, and this invention does not impose any restrictions on this connection.
[0040] The implementation details of the technical solutions in the embodiments of this application are described in detail below:
[0041] Figure 2 A flowchart of a vehicle interior lighting control method according to an embodiment of this application is shown. This vehicle interior lighting control method can be executed by a PWM actuator, which can be... Figure 1 The PWM actuator 200 shown is illustrated. (Refer to...) Figure 2 As shown, the vehicle interior light control method includes at least the following:
[0042] S100: Obtain the interior light control command for the vehicle's interior lights.
[0043] S200, obtain a status control instruction and a brightness control instruction from the interior light control instruction. The status control instruction and the brightness control instruction are located in different positions of the interior light control instruction. The status control instruction is used to control the way the vehicle interior lights are turned on or off, and the brightness control instruction is used to control the target brightness of the vehicle interior lights.
[0044] S300, based on the current state of the vehicle interior lights, the state control command, and the brightness control command, control the vehicle interior lights.
[0045] In the embodiments of this application, an interior light control instruction is added to the interior light control instruction, which together with the brightness control instruction constitutes the interior light control instruction. The status control instruction is used to control the way the vehicle interior light is turned on or off, and the brightness control instruction is used to control the target brightness of the vehicle interior light. By controlling the vehicle interior light together with the current status of the vehicle interior light, the status control instruction and the brightness control instruction, the control of the vehicle interior light becomes more diverse and more stable.
[0046] In step S100, the internal light control command is issued by the control chip and sent to the PWM actuator.
[0047] In some embodiments, it is a 16-bit unsigned integer instruction string containing instruction information for controlling the internal light to turn on and off and instruction information for controlling the brightness of the internal light.
[0048] In step S200, the position of the status control instruction and the brightness control instruction refers to their position within the 16-bit unsigned integer instruction string.
[0049] The PWM actuator parses the internal light control commands to obtain the status control commands and brightness control commands contained therein. The specific method for obtaining the status control commands and brightness control commands can be found in the following embodiment.
[0050] Specifically, in some embodiments, the specific implementation of step S200 can be found in [reference needed]. Figure 3 . Figure 3 It is based on Figure 2 According to the detailed description of step S200 in the vehicle interior light control method shown in the corresponding embodiment, step S200 may include the following steps:
[0051] S210, obtain the first M values from the internal light control command to obtain the state control command.
[0052] S220, obtain the last L values from the inner light control command to obtain the brightness control command.
[0053] Where N, M, and L are all positive integers and M+L is less than or equal to N.
[0054] In the embodiments of this application, the status control instruction is the high-order instruction in the inner light control instruction, and its corresponding string is located in the first M positions of the string corresponding to the inner light control instruction. Therefore, the status control instruction is obtained by obtaining the first M values from the inner light control instruction.
[0055] The brightness control instruction is the low-order instruction in the internal light control instruction. Its corresponding string is located in the last L positions of the string corresponding to the internal light control instruction. Therefore, the brightness control instruction is obtained by obtaining the last L values from the internal light control instruction.
[0056] Specifically, in some embodiments, the specific implementation of step S210 can be found in the following embodiments. This embodiment is based on... Figure 3 According to the detailed description of step S210 in the vehicle interior light control method shown in the corresponding embodiment, in the vehicle interior light control method, the interior light control instruction is stored in an N-bit register, and step S210 may include the following steps:
[0057] The internal light control instruction is right-shifted in the register to obtain the first M values. Right-shifting means adding a preset value to the beginning of the register to change the position of the value stored in the register; the value shifted out from the end of the register is discarded.
[0058] Based on the first M values, the state control command is determined.
[0059] In the embodiments of this application, an N-bit register is used to store N-bit internal light control instructions. For the status control instructions in the high-order bits (i.e., the first M values of the internal light control instructions), the data of the internal light control instructions needs to be right-shifted in the register to move to the low-order bits before being obtained. The specific processing method is to add a preset value at the beginning of the register to change the position of the first M values of the internal light control instructions in the register until they move to the last M bits, and then directly obtain the M values.
[0060] Specifically, right-shifting the internal lamp control instruction in the register to obtain the first M values may include:
[0061] Add K preset values to the beginning of the register to obtain a reference instruction. The end of the reference instruction is the first M values, where K is a positive integer and K+M=N.
[0062] That is, K preset values are added to the beginning of the register, K=NM, to obtain the reference instruction. At this time, the values that were originally located in the first M bits of the internal light control instruction are located in the last M bits of the reference instruction. That is, the first M values in the internal light control instruction are the same as the last M values in the reference instruction. Then, the last M bits of the reference instruction are directly retrieved from the register according to the M bits, thus obtaining the valid data of the status control instruction.
[0063] Specifically, determining the state control command based on the first M values includes:
[0064] The reference instruction is converted to a different data type to obtain the status control instruction.
[0065] Specifically, after the data is right-shifted, the M-bit value after the reference instruction is directly obtained from the register by M bits, which is the valid data of the status control instruction. This M-bit valid data is then packaged into an unsigned integer instruction string to obtain the status control instruction.
[0066] Taking the internal light control instruction as a 16-bit unsigned integer instruction string as an example, when M is less than or equal to 8, this M bits of valid data can be packaged into an 8-bit unsigned integer instruction string; when M is greater than 8, this M bits of valid data can be packaged into a 16-bit unsigned integer instruction string to save resources.
[0067] Specifically, in some embodiments, the specific implementation of step S220 can be found in the following embodiments. This embodiment is based on... Figure 3 According to the detailed description of step S220 in the vehicle interior light control method shown in the corresponding embodiment, step S220 may include the following steps:
[0068] Obtain the last L values from the internal light control command;
[0069] The last L values in the internal light control command are packaged according to their number of bits to obtain the brightness control command.
[0070] In the embodiments of this application, the brightness control instruction is the low-order instruction in the inner light control instruction. Its corresponding string is located in the last L bits of the string corresponding to the inner light control instruction. Data can be directly obtained from the end in the register. Therefore, the last L values can be directly obtained from the inner light control instruction. These last L values are the valid data of the brightness control instruction. Packing these last L values into an unsigned integer instruction string according to the number of bits yields the brightness control instruction.
[0071] Taking the internal light control command as a 16-bit unsigned integer instruction string as an example, when L is less than or equal to 8, this L bits of valid data can be packaged into an 8-bit unsigned integer instruction string; when L is greater than 8, this L bits of valid data can be packaged into a 16-bit unsigned integer instruction string to save resources.
[0072] That is, when L is greater than 8, O preset values are added before the last L values to obtain the brightness control command, where O is a positive integer and O+L=N.
[0073] In the above embodiment, the status control instruction is the high-order instruction in the inner light control instruction. Its corresponding string is located in the first M positions of the string corresponding to the inner light control instruction. Therefore, the status control instruction is obtained by obtaining the first M values from the inner light control instruction.
[0074] The brightness control instruction is the low-order instruction in the internal light control instruction. Its corresponding string is located in the last L positions of the string corresponding to the internal light control instruction. Therefore, the brightness control instruction is obtained by obtaining the last L values from the internal light control instruction.
[0075] Understandably, in some other embodiments, the status control instruction can also be the low-order instruction in the internal light control instruction, and its corresponding string is located in the last M positions of the string corresponding to the internal light control instruction. Therefore, the status control instruction is obtained by obtaining the last M values from the internal light control instruction.
[0076] Brightness control instructions can also be high-order instructions in interior light control instructions. Their corresponding strings are located in the first L positions of the string corresponding to the interior light control instructions. Therefore, by obtaining the first L values from the interior light control instructions, the brightness control instructions can be obtained.
[0077] The method for obtaining the status control command can refer to the method for obtaining the low-order command in the inner light control command in step S220, and the method for obtaining the brightness control command can refer to the method for obtaining the high-order command in the inner light control command in step S210. This application will not elaborate further here.
[0078] In step S300, the state indicated by the state control command may include a brightness gradient state and a fixed brightness state. The brightness gradient state may include a first brightness gradient state and a second brightness gradient state; the fixed brightness state may include a first fixed brightness state and a second fixed brightness state.
[0079] Specifically, in some embodiments, the specific implementation of step S300 can be found in [reference needed]. Figure 4 . Figure 4 It is based on Figure 2 According to the detailed description of step S300 in the vehicle interior light control method shown in the corresponding embodiment, step S300 in the vehicle interior light control method may include the following steps:
[0080] S310, if the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, control the vehicle interior lights according to the state indicated by the state control command.
[0081] S320, if the state indicated by the state control command is a brightness gradient state, and the current state of the vehicle interior lights is consistent with the state indicated by the state control command, the original state shall be maintained.
[0082] In the embodiments of this application, when the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, the state of the vehicle interior lights is changed in all cases, and the vehicle interior lights are controlled according to the state indicated by the state control command.
[0083] When the current state of the vehicle's interior lights matches the state indicated by the state control command, if the state control command indicates a brightness gradient state, then the interior light control command can be ignored, allowing the interior lights to maintain their original brightness gradient state continuously. As long as the state control command indicates that the corresponding brightness gradient state remains unchanged, the PWM actuator will not respond to the interior light control command. It will still automatically change the interior light brightness at predetermined time intervals by a predetermined amplitude, ensuring uniform brightness changes without abrupt shifts, improving the user experience, and protecting the user's eye health and driving safety.
[0084] Specifically, in some embodiments, the specific implementation of step S310 can be found in the following embodiments. This embodiment is based on... Figure 4 According to the detailed description of step S310 in the vehicle interior light control method shown in the corresponding embodiment, step S310 may include the following steps:
[0085] When the state indicated by the state control command is a brightness gradient state, and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, the brightness of the vehicle interior lights is adjusted according to the brightness gradient state at a preset frequency and a preset amplitude.
[0086] When the vehicle interior lights switch to a brightness gradient state, the brightness of the vehicle interior lights will be adjusted at a preset frequency and preset amplitude until a final target brightness is reached. The target brightness can be the maximum brightness, the minimum brightness, or an intermediate brightness. In some embodiments, the minimum brightness can be 0, at which point the vehicle interior lights will turn off.
[0087] In some embodiments, the state indicated by the state control command may include only one brightness gradient state, in addition to other non-brightness gradient states.
[0088] At this time, when the vehicle interior lights switch to a brightness gradient state, the brightness of the vehicle interior lights is adjusted at a preset frequency and preset amplitude until it reaches the target brightness of the brightness control command.
[0089] In other embodiments, the brightness gradient state indicated by the state control command may be multiple, such as a first brightness gradient state and a second brightness gradient state.
[0090] At this time, if the current state of the vehicle interior lights is a first brightness gradient state, and the state control command indicates a second brightness gradient state, then the first brightness gradient state and the second brightness gradient state are different brightness gradient states. Therefore, it should also be considered that the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command. In this case, the brightness of the vehicle interior lights should be adjusted to the target brightness of the brightness control command, and the brightness of the vehicle interior lights should be adjusted according to the second brightness gradient state at a preset frequency and preset amplitude.
[0091] In some embodiments, the first brightness gradient state can be a gradually brightening state, and the second brightness gradient state can be a gradually dimming state.
[0092] In other embodiments, the first brightness gradient state can be a gradually dimming state, and the second brightness gradient state can be a gradually brightening state.
[0093] Specifically, in some other embodiments, the specific implementation of step S310 can be found in the following embodiments. This embodiment is based on... Figure 4 According to the detailed description of step S310 in the vehicle interior light control method shown in the corresponding embodiment, step S310 may include the following steps:
[0094] If the state indicated by the state control command is a fixed brightness state, and the current state of the vehicle interior lights is inconsistent with the state indicated by the state control command, the vehicle interior lights shall be controlled to maintain a fixed brightness according to the fixed brightness state.
[0095] When the vehicle interior lights switch to a fixed brightness state, they will maintain a fixed brightness. This fixed brightness can be the maximum brightness, the minimum brightness, or an intermediate brightness. In some embodiments, the minimum brightness can be 0, at which point the vehicle interior lights will turn off.
[0096] In some embodiments, the state indicated by the state control command may include only one fixed brightness state, in addition to other non-fixed brightness states.
[0097] At this time, when the vehicle interior lights switch to a fixed brightness state, the brightness of the vehicle interior lights is adjusted to the target brightness of the brightness control command and kept constant.
[0098] In other embodiments, the state indicated by the state control command may include multiple fixed brightness states, such as a first fixed brightness state and a second fixed brightness state.
[0099] In this embodiment, the first fixed brightness state is a constant-on state. When the state of the vehicle interior lights switches to the constant-on state, the brightness of the vehicle interior lights will be adjusted to the highest brightness and kept unchanged.
[0100] That is, when the state indicated by the state control command is the first fixed brightness state, and the current state of the vehicle interior light is inconsistent with the state indicated by the state control command, the brightness of the vehicle interior light is adjusted to the highest brightness and kept unchanged.
[0101] It should be noted that when the state indicated by the state control command is the first fixed brightness state, the inconsistency between the current state of the vehicle interior lights and the state indicated by the state control command can specifically include the case where the current state of the vehicle interior lights is the second fixed brightness state and the case where the current state of the vehicle interior lights is other non-fixed brightness states.
[0102] The second fixed brightness state is the off state. When the state of the vehicle interior lights switches to the off state, the brightness of the vehicle interior lights will be adjusted to 0 and kept unchanged.
[0103] That is, when the state indicated by the state control command is the second fixed brightness state, and the current state of the vehicle interior light is inconsistent with the state indicated by the state control command, the brightness of the vehicle interior light is adjusted to 0 and kept unchanged.
[0104] It should be noted that when the state indicated by the state control command is the second fixed brightness state, the inconsistency between the current state of the vehicle interior lights and the state indicated by the state control command can specifically include the case where the current state of the vehicle interior lights is the first fixed brightness state and the case where the current state of the vehicle interior lights is other non-fixed brightness states.
[0105] When there are multiple fixed brightness states indicated by the state control command, when the state of the vehicle interior light switches to the first fixed brightness state or the second fixed brightness state, the brightness of the vehicle interior light is adjusted to the target brightness of the brightness control command and kept unchanged.
[0106] In this embodiment, the first fixed brightness state and the second fixed brightness state are two different fixed brightness states, but their brightness needs to be determined according to the brightness control command.
[0107] In some embodiments of this application, step S300 may further include the following steps:
[0108] When the state indicated by the state control command is a fixed brightness state, and the current state of the vehicle interior lights is consistent with the state indicated by the state control command, the vehicle interior lights are controlled to maintain the fixed brightness state.
[0109] In one embodiment, if the state indicated by the state control command is a fixed brightness state, and the current state of the vehicle interior lights is consistent with the state indicated by the state control command, the original state is maintained. This embodiment applies to both one and multiple fixed brightness states.
[0110] In another embodiment, when the state indicated by the state control command is a fixed brightness state, and the current state of the vehicle interior light is consistent with the state indicated by the state control command, if the brightness of the vehicle interior light is inconsistent with the target brightness of the brightness control command, the brightness of the vehicle interior light is adjusted to the target brightness of the brightness control command and remains unchanged.
[0111] This solution is mainly applicable to situations where there is only one fixed brightness state.
[0112] At this point, although the state indicated by the status control command is consistent with the current state of the vehicle's interior lights, the brightness of the interior lights is inconsistent with the target brightness of the brightness control command. Therefore, it can be assumed that the brightness of the interior lights needs to be adjusted to the target brightness of the brightness control command. In this way, multiple levels can be adjusted under a fixed brightness state, increasing the versatility of vehicle lighting control.
[0113] The following describes an embodiment of the apparatus described in this application, which can be used to execute the vehicle interior lighting control method described in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the vehicle interior lighting control method described above.
[0114] Figure 5 A block diagram of a vehicle interior light control device according to an embodiment of this application is shown.
[0115] Reference Figure 5 As shown, a vehicle interior lighting control device 500 according to an embodiment of this application includes:
[0116] The instruction acquisition module 510 is used to acquire the interior light control instructions for the vehicle interior lights;
[0117] The instruction decomposition module 520 is used to obtain a status control instruction and a brightness control instruction from the interior light control instruction. The status control instruction and the brightness control instruction are located at different positions in the interior light control instruction. The status control instruction is used to control the way the vehicle interior lights are turned on or off, and the brightness control instruction is used to control the target brightness of the vehicle interior lights.
[0118] The interior light control module 530 is used to control the vehicle interior lights based on the current state of the vehicle interior lights, the state control command, and the brightness control command.
[0119] It should be noted that the vehicle interior lighting control device provided in the above embodiments is only illustrated by the division of the above functional modules when performing vehicle interior lighting control processing. In actual applications, the above functions can be assigned to different functional modules as needed. That is, the internal structure of the vehicle interior lighting control device will be divided into different functional modules to complete all or part of the functions described above.
[0120] Furthermore, the vehicle interior light control device and the vehicle interior light control method provided in the above embodiments belong to the same concept, and the specific way in which each module performs its operation has been described in detail in the method embodiments, and will not be repeated here.
[0121] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing embodiments of the present application is shown.
[0122] It should be noted that, Figure 6 The computer system of the vehicle shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0123] like Figure 6 As shown, the computer system includes a Central Processing Unit (CPU) 1801, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 1802 or programs loaded from storage portion 1808 into Random Access Memory (RAM) 1803, such as performing the methods described in the above embodiments. The RAM 1803 also stores various programs and data required for system operation. The CPU 1801, ROM 1802, and RAM 1803 are interconnected via a bus 1804. An Input / Output (I / O) interface 1805 is also connected to the bus 1804.
[0124] The following components are connected to I / O interface 1805: an input section 1806 including a keyboard, mouse, etc.; an output section 1807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to I / O interface 1805 as needed. Removable media 1811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 1810 as needed so that computer programs read from them can be installed into storage section 1808 as needed.
[0125] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 1809, and / or installed from removable medium 1811. When the computer program is executed by central processing unit (CPU) 1801, it performs various functions defined in the system of this application.
[0126] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0128] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0129] In another aspect, this application also provides a computer-readable medium, which may be included in the vehicle described in the above embodiments; or it may exist independently and not installed in the vehicle. The computer-readable medium carries one or more programs that, when executed by the vehicle, cause the vehicle to perform the methods described in the above embodiments.
[0130] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0131] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0132] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0133] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A vehicle interior light control method characterized by, The vehicle interior light control method specifically comprises: obtaining an interior light control instruction of a vehicle interior light; obtaining a state control instruction and a brightness control instruction from the interior light control instruction, the state control instruction and the brightness control instruction being located at different positions of the interior light control instruction, the state control instruction being used to control a manner of turning on or off of the vehicle interior light, and the brightness control instruction being used to control a target brightness of the vehicle interior light; controlling the vehicle interior light based on a current state of the vehicle interior light, the state control instruction and the brightness control instruction; wherein the interior light control instruction comprises N values, and the obtaining of the state control instruction and the brightness control instruction from the interior light control instruction specifically comprises: obtaining the first M values in the interior light control instruction to obtain the state control instruction; obtaining the last L values in the interior light control instruction to obtain the brightness control instruction; wherein N, M and L are positive integers and M+L is less than or equal to N; the interior light control instruction is stored in an N-bit register, and the obtaining of the first M values in the interior light control instruction to obtain the state control instruction specifically comprises: performing data right shift on the interior light control instruction in the register to obtain the first M values, wherein the data right shift refers to adding preset values at the beginning of the register to change the positions of the stored values in the register, and the values removed from the end of the register are discarded; determining the state control instruction based on the first M values; performing data right shift on the interior light control instruction in the register to obtain the first M values specifically comprises: adding K preset values at the beginning of the register to obtain a reference instruction, the tail of the reference instruction being the first M values, and K being a positive integer and K+M=N.
2. The method of claim 1, wherein, The controlling of the vehicle interior light based on the current state of the vehicle interior light, the state control instruction and the brightness control instruction specifically comprises: controlling the vehicle interior light according to the state indicated by the state control instruction in a case where the current state of the vehicle interior light is inconsistent with the state indicated by the state control instruction; maintaining the original state in a case where the state indicated by the state control instruction is a brightness gradual change state and the current state of the vehicle interior light is consistent with the state indicated by the state control instruction.
3. The method of claim 2, wherein, The controlling of the vehicle interior light according to the state indicated by the state control instruction in the case where the current state of the vehicle interior light is inconsistent with the state indicated by the state control instruction specifically comprises: adjusting the brightness of the vehicle interior light at a preset frequency and a preset amplitude according to the brightness gradual change state in the case where the state indicated by the state control instruction is a brightness gradual change state and the current state of the vehicle interior light is inconsistent with the state indicated by the state control instruction.
4. The method of claim 2, wherein, The controlling of the vehicle interior light according to the state indicated by the state control instruction in the case where the current state of the vehicle interior light is inconsistent with the state indicated by the state control instruction specifically comprises: In a case where the state indicated by the state control instruction is the fixed brightness state and the current state of the vehicle interior light is inconsistent with the state indicated by the state control instruction, the vehicle interior light is controlled to keep the fixed brightness unchanged according to the fixed brightness state.
5. The method of claim 2, wherein, The control of the vehicle interior light based on the current state of the vehicle interior light, the state control instruction and the brightness control instruction further comprises: In a case where the state indicated by the state control instruction is the fixed brightness state and the current state of the vehicle interior light is consistent with the state indicated by the state control instruction, the vehicle interior light is controlled to keep the fixed brightness state.
6. A vehicle interior light control device characterized by comprising: The apparatus comprises: An instruction obtaining module configured to obtain an interior light control instruction for a vehicle interior light; An instruction disassembling module configured to obtain a state control instruction and a brightness control instruction from the interior light control instruction, the state control instruction and the brightness control instruction being located at different positions of the interior light control instruction, the state control instruction being used to control a manner in which the vehicle interior light is lit or turned off, and the brightness control instruction being used to control a target brightness of the vehicle interior light; An interior light control module configured to control the vehicle interior light based on a current state of the vehicle interior light, the state control instruction and the brightness control instruction. The instruction disassembling module is further configured to obtain the first M values from the interior light control instruction to obtain the state control instruction, and obtain the last L values from the interior light control instruction to obtain the brightness control instruction, wherein N, M and L are positive integers and M+L is less than or equal to N. The interior light control instruction is stored in an N-bit register, and the instruction disassembling module is further configured to perform data right shift on the interior light control instruction in the register to obtain the first M values, wherein data right shift refers to adding preset values at the beginning of the register to change the positions of the stored values in the register, and the values removed from the end of the register are discarded; and determine the state control instruction based on the first M values. The instruction disassembling module is further configured to add K preset values at the beginning of the register to obtain a reference instruction, the tail of the reference instruction being the first M values, and K is a positive integer and K+M=N.
7. A vehicle characterized by comprising: The vehicle comprises: A memory configured to store executable program codes; A processor configured to call and run the executable program codes from the memory, so that the vehicle performs the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, which, when executed, implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Vehicle interior light control system, vehicle interior light driving device, vehicle interior light control method and recording medium
CN109041359A