A method for configuring an ambient light in a vehicle and a vehicle

Through the interaction between the diagnostic instrument and the body controller, the vehicle ambient lights are automatically configured, which solves the complex and time-consuming problem of the traditional configuration process and improves the configuration efficiency and user experience of the ambient lights.

CN115723666BActive Publication Date: 2024-09-13CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211540497.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2024-09-13
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

The configuration process of traditional vehicle ambient lights is complex and time-consuming, requires frequent software program updates, and lacks a convenient offline configuration method, making it difficult to meet users' high requirements for ambient lighting experience.

Method used

Obtain the ambient light configuration code of the body controller through the diagnostic instrument, send automatic coding instructions and execute the automatic coding routine, and then send configuration request instructions to execute the configuration routine of the ambient light, realizing automatic configuration of the ambient light, reducing manual intervention and saving money. Design test time and support modular production line calibration.

Benefits of technology

It realizes the convenient configuration of vehicle ambient lights, improves user experience, simplifies the production line calibration process of ambient light drivers, and reduces the configuration complexity of after-sales replacement parts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115723666B
    Figure CN115723666B
Patent Text Reader

Abstract

The present invention discloses a method for configuring an ambient light in a vehicle and a vehicle. The vehicle comprises a diagnostic instrument, a body controller and a plurality of ambient lights. The method for configuring the ambient light in the vehicle comprises: the diagnostic instrument obtains an ambient light configuration code of the body controller, and determines whether to configure the ambient light according to the ambient light configuration code; when determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the body controller; the body controller executes the automatic coding routine of each ambient light according to the automatic coding instruction; when determining that the automatic coding routine is executed successfully, the diagnostic instrument sends a configuration request instruction to the body controller; the body controller executes the configuration routine of each ambient light according to the configuration request instruction, and the configuration of each ambient light in the vehicle can be completed through the interaction between the diagnostic instrument and the body controller after the vehicle is offline, without manually triggering the ambient light configuration process, thus saving design and testing time, and making it more convenient to write configuration information when replacing parts after sales.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of off-line configuration of vehicles, and in particular to a configuration method of an ambient light in a vehicle and the vehicle. Background Art

[0002] With the development of the automotive industry, people's requirements for vehicle practicality and safety have increased, and their demands for the user experience have also become increasingly demanding. For example, when it comes to the setting of vehicle ambient lighting, in addition to the application of vehicle music and light shows, the sense of ritual for unlocking the car when getting in and locking the car has also become a favorite lighting atmosphere for users. Traditional vehicle functions are no longer able to meet the current vehicle usage needs.

[0003] Currently, in many vehicle models, the ambient light software needs to be frequently updated to meet different lighting modes. When the program is changed, the supplier needs to flash the program online, which is a complex and time-consuming process. Summary of the Invention

[0004] The present invention provides a method for configuring ambient lights in a vehicle and a vehicle, so as to configure the ambient lights in the vehicle after the vehicle is offline.

[0005] According to one aspect of the present invention, a method for configuring an ambient light in a vehicle is provided. The vehicle includes a diagnostic instrument, a body controller, and a plurality of ambient lights. The method for configuring the ambient light in the vehicle includes:

[0006] The diagnostic instrument obtains an ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code;

[0007] When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller;

[0008] The vehicle body controller executes the automatic encoding routine of each of the atmosphere lights according to the automatic encoding instruction;

[0009] The diagnostic instrument sends a configuration request instruction to the vehicle body controller when determining that the automatic encoding routine is successfully executed;

[0010] The vehicle body controller executes a configuration routine for each ambient light according to the configuration request instruction.

[0011] Optionally, before the diagnostic instrument determines that the encoding routine is successful, the method further includes:

[0012] The diagnostic instrument sends a coding result query instruction to the vehicle body controller;

[0013] The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the result instruction to the diagnostic instrument;

[0014] The diagnostic instrument determines that the encoding routine is successfully executed based on the encoding result instruction; if so, the step of sending a configuration request instruction to the vehicle body controller is executed.

[0015] Optionally, the method for configuring the ambient light in the vehicle further includes:

[0016] If the diagnostic instrument determines that the encoding routine has failed according to the encoding result instruction, determining whether the number of consecutive failures of the encoding routine exceeds a first predetermined number;

[0017] If not, returning to the step of executing the diagnostic instrument sending an automatic coding instruction to the vehicle body controller;

[0018] If so, it is determined that the configuration of each of the atmosphere lights has failed.

[0019] Optionally, the configuration request instruction includes a group configuration request instruction; the body controller executes a configuration routine for each ambient light according to the configuration request instruction, including:

[0020] The vehicle body controller executes a group configuration routine for each ambient light according to the group configuration request instruction.

[0021] Optionally, after the vehicle body controller executes the group configuration routine of each ambient light according to the group configuration request instruction, the method further includes:

[0022] The diagnostic instrument sends a grouping result query instruction to the vehicle body controller;

[0023] The vehicle body controller generates a grouping result instruction according to the grouping result query instruction, and sends the grouping result instruction to the diagnostic instrument;

[0024] The diagnostic instrument determines the execution result of the group configuration routine according to the group result instruction.

[0025] Optionally, the method for configuring the ambient light in the vehicle further includes:

[0026] If the diagnostic instrument determines that the group configuration routine is successfully executed according to the grouping result instruction, then it is determined that the configuration of each of the atmosphere lights is successful;

[0027] If the diagnostic instrument determines that the group configuration routine has failed to execute according to the grouping result instruction, determining whether the number of consecutive failures of the group configuration routine exceeds a second preset number;

[0028] If not, returning to the step of executing the diagnostic instrument sending a configuration request instruction to the vehicle body controller;

[0029] If so, it is determined that the configuration of each of the atmosphere lights has failed.

[0030] Optionally, the configuration request instruction includes a brightness configuration request instruction; the vehicle body controller executes a configuration routine for each ambient light according to the configuration request instruction, including:

[0031] The vehicle body controller executes a brightness configuration routine for each of the ambient lights according to the brightness request configuration instruction.

[0032] Optionally, after the vehicle body controller executes the brightness configuration routine of each of the ambient lights according to the brightness request configuration instruction, the method further includes:

[0033] The diagnostic instrument sends a brightness configuration result query instruction to the vehicle body controller;

[0034] The vehicle body controller generates a brightness configuration result instruction according to the brightness configuration result query instruction, and sends the brightness configuration result instruction to the diagnostic instrument;

[0035] The diagnostic instrument determines a result of the brightness configuration routine based on the brightness configuration result instruction.

[0036] Optionally, the method for configuring the ambient light in the vehicle further includes:

[0037] If the diagnostic instrument determines that the result of the brightness configuration routine is successful according to the brightness result instruction, then determining that the configuration routine of each of the atmosphere lights is successful;

[0038] If the diagnostic instrument determines that the result of the brightness configuration routine is a failure according to the brightness result instruction, returning to the step of executing the diagnostic instrument sending a configuration request instruction to the vehicle body controller;

[0039] It is determined whether the number of consecutive failures of the brightness configuration routine exceeds a third preset number. If so, it is determined that the configuration routine of each of the atmosphere lights has failed.

[0040] According to another aspect of the present invention, a vehicle is provided, comprising: a diagnostic instrument, a body controller, and a plurality of ambient lights; the diagnostic instrument and the body controller configure the ambient lights using the above-mentioned method for configuring the ambient lights in a vehicle.

[0041] The configuration method of the ambient light in a vehicle provided by an embodiment of the present invention, after the vehicle is assembled off the line, first obtains the ambient light configuration code in the vehicle controller through the diagnostic instrument, and when it is determined that the ambient light needs to be configured according to the ambient light configuration code, sends an automatic coding instruction to the body controller, so that the body controller executes the automatic coding routine of each ambient light according to the automatic coding instruction. After the automatic coding routine is successful, the diagnostic instrument sends a configuration request instruction to the body controller, so that the body controller executes the configuration routine of each ambient light according to the configuration request instruction. The configuration of each ambient light in the vehicle can be completed through the interaction between the diagnostic instrument and the body controller, and there is no need to manually trigger the ambient light configuration process. The program is flashed by using the instruction of the diagnostic instrument to trigger the calibration routine. The calibration process can be actively triggered by the diagnostic instrument, which saves design and testing time, realizes the modularization of the production line calibration of the ambient light driver, and can write configuration information more conveniently during after-sales replacement.

[0042] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 is a flow chart of a method for configuring an ambient light in a vehicle provided by an embodiment of the present invention;

[0045] Figure 2 is a flow chart of another method for configuring ambient lighting in a vehicle provided by an embodiment of the present invention;

[0046] Figure 3 is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention;

[0047] Figure 4 is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention;

[0048] Figure 5 is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention;

[0049] Figure 6 is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention;

[0050] Figure 7 This is a flowchart of another method for configuring ambient light in a vehicle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0052] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] An embodiment of the present invention provides a method for configuring ambient lights in a vehicle. The method can configure the ambient lights in the vehicle after the vehicle is offline. The method can be executed by a diagnostic instrument and a body controller in the vehicle, and the method can be implemented in the form of software and / or hardware.

[0054] Figure 1 A flow chart of a method for configuring an ambient light in a vehicle provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0055] S110 , the diagnostic instrument obtains the ambient light configuration code of the vehicle body controller, and determines whether to configure the ambient light according to the ambient light configuration code.

[0056] Specifically, the ambient light configuration code can be stored in the vehicle body controller. If the vehicle has completed the ambient light configuration, or the vehicle model does not require the ambient light configuration, the flag bit of the ambient light configuration code is the first flag bit. If the vehicle needs to be configured with the ambient light, the flag bit of the ambient light configuration code is the second flag bit. After the vehicle is assembled, the vehicle can be controlled to be in the ignition state first, and the ambient light configuration code of the vehicle controller can be read through the diagnostic instrument. If the ambient light configuration code read is the first flag bit, it is determined that the vehicle does not need to be configured with the ambient light. If the ambient light configuration code read is the second flag bit, it is determined that the vehicle needs to be configured with the ambient light. Among them, the first flag bit can be "0" and the second flag bit can be "1".

[0057] Exemplarily, the diagnostic instrument may include a display. If the diagnostic instrument determines that the vehicle does not need to be configured with ambient light, the display may display “Ambient light configuration has been completed or ambient light configuration is not supported” to prompt the operator to stop the operation.

[0058] S120. When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0059] Specifically, if it is determined that the vehicle needs to be configured with ambient lighting, the diagnostic instrument sends an automatic encoding instruction to the body controller to trigger the automatic encoding routine of the body controller.

[0060] S130: The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0061] Specifically, upon receiving the automatic encoding instruction, the vehicle body controller uses an automatic addressing method to encode each ambient light to be configured, i.e., each ambient light has a unique address. The automatic encoding routine can be stored in the vehicle body controller as a software program. Upon receiving the automatic encoding instruction, the vehicle body controller triggers the automatic encoding routine to automatically encode each ambient light.

[0062] S140: When the diagnostic instrument determines that the automatic encoding routine is successfully executed, it sends a configuration request instruction to the vehicle body controller.

[0063] Specifically, when the body controller executes the automatic encoding routine, the diagnostic instrument will query the result of the body controller automatic encoding routine. When it is determined that the automatic encoding routine is successfully completed, it sends a configuration request instruction to the body controller to trigger the configuration routine of the body controller.

[0064] S150: The vehicle body controller executes a configuration routine for each ambient light according to the configuration request instruction.

[0065] Specifically, after receiving the configuration request, the vehicle body controller calls the ambient light configuration program to execute the configuration routine for each ambient light. This configuration routine may have different configuration information for each ambient light. During the execution of each ambient light configuration routine, each ambient light can be configured according to its address code.

[0066] The configuration method of the ambient light in a vehicle provided by an embodiment of the present invention, after the vehicle is assembled off the line, first obtains the ambient light configuration code in the vehicle controller through the diagnostic instrument, and when it is determined that the ambient light needs to be configured according to the ambient light configuration code, sends an automatic coding instruction to the body controller, so that the body controller executes the automatic coding routine of each ambient light according to the automatic coding instruction. After the automatic coding routine is successful, the diagnostic instrument sends a configuration request instruction to the body controller, so that the body controller executes the configuration routine of each ambient light according to the configuration request instruction. The configuration of each ambient light in the vehicle can be completed through the interaction between the diagnostic instrument and the body controller, and there is no need to manually trigger the ambient light configuration process. The program is flashed by using the instruction of the diagnostic instrument to trigger the calibration routine. The calibration process can be actively triggered by the diagnostic instrument, which saves design and testing time, realizes the modularization of the production line calibration of the ambient light driver, and can write configuration information more conveniently during after-sales replacement.

[0067] Exemplarily, the vehicle may include an ambient light driver for driving each ambient light. When executing the configuration routine of each ambient light, the ambient light driver may be specifically configured so that after the configuration is completed, the driver can drive each ambient light according to the information configured by the configuration routine, thereby realizing the configuration of each ambient light.

[0068] Optional, Figure 2 FIG. 1 is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 2 As shown, the configuration method of the ambient light in the vehicle includes:

[0069] S211. The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0070] S212. When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0071] S213. The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0072] S214. The diagnostic instrument sends a coding result query instruction to the vehicle body controller.

[0073] S215. The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the result instruction to the diagnostic instrument.

[0074] Specifically, after the body controller executes the automatic encoding routine of each ambient light, the diagnostic instrument can send a coding result query instruction to the body controller. After receiving the coding result query instruction, the body controller generates a coding result instruction based on the execution status of the current automatic encoding routine and feeds the coding result instruction back to the diagnostic instrument.

[0075] For example, the diagnostic instrument may send a coding result query command to the vehicle body controller after a first preset time after sending the automatic coding command, thereby reserving the first preset time for the vehicle body controller to execute the automatic coding routine. The first preset time can be set according to design requirements, for example, 2 seconds.

[0076] S216. The diagnostic instrument determines whether the encoding routine is executed successfully based on the encoding result instruction; if so, execute step S217; if not, execute step S219.

[0077] S217: When the diagnostic instrument determines that the automatic encoding routine is successfully executed, it sends a configuration request instruction to the vehicle body controller.

[0078] S218. The body controller executes the configuration routine of each ambient light according to the configuration request instruction.

[0079] S219: Determine whether the number of consecutive failures of the automatic encoding routine exceeds a first preset number; if so, execute step S220; if not, execute step S212.

[0080] S220: Determine that configuration of each ambient light fails.

[0081] Specifically, if the automatic encoding routine fails, the system can first determine the number of consecutive failures. If the failure count exceeds a first preset number, the automatic encoding routine will not be attempted again, and the ambient light configuration will be considered a failure. The configuration results can also be displayed on the display to prompt the operator to promptly repair the problem and avoid wasted work time. The first preset number can be set according to design requirements, for example, three times.

[0082] For example, when the vehicle body controller receives the encoding result query instruction, it may also be in the process of executing the automatic encoding routine. At this time, the vehicle body controller feeds back the encoding result instruction indicating "executing" to the diagnostic instrument. At this time, the diagnostic instrument can send the encoding result query instruction to the vehicle body controller once every second preset time until it receives the encoding result instruction indicating "success" or "failure", at which time it stops sending the encoding result query instruction; or until the number of consecutive transmissions of the encoding result query instruction exceeds a fourth preset number, it stops sending the encoding result query instruction and notifies the maintenance personnel through the display that the automatic encoding routine is abnormal. The second preset time and the fourth preset number can be set according to design requirements. For example, the second preset time can be 1 second, and the fourth preset number can be 5 times.

[0083] Optionally, the configuration request instruction includes a group configuration request instruction. Figure 3 This is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 3 As shown, the configuration method of the ambient light in the vehicle includes:

[0084] S310: The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0085] S320: When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0086] S330: The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0087] S340: When the diagnostic instrument determines that the automatic encoding routine is successfully executed, it sends a group configuration request instruction to the vehicle body controller.

[0088] S350: The vehicle body controller executes a group configuration routine for each ambient light according to the group configuration request instruction.

[0089] Specifically, the configuration request instruction includes a group configuration request instruction, that is, the configuration content of the ambient light can include group control. After receiving the group configuration request instruction, the body controller can group the ambient lights that have completed the address encoding to complete the group configuration routine of each ambient light. In this way, when the user controls the ambient lights in the vehicle to light up, the ambient lights can be lit in groups, effectively improving the sense of ritual of the ambient light lighting and enhancing the user's vehicle experience. The group configuration routine can be stored in the body controller in the form of a software program. After receiving the group configuration request instruction, the body controller triggers the group configuration routine to realize the group configuration of each ambient light.

[0090] S360: The diagnostic instrument sends a group result query instruction to the vehicle body controller.

[0091] S370. The vehicle body controller generates a grouping result instruction according to the grouping result query instruction, and sends the grouping result instruction to the diagnostic instrument.

[0092] S380. The diagnostic instrument determines the execution result of the group configuration routine according to the group result instruction.

[0093] Specifically, after the body controller executes the group configuration routine of each ambient light, the diagnostic instrument can send a group result query instruction to the body controller. After receiving the group result query instruction, the body controller generates a group result instruction based on the execution status of the current group configuration routine, and feeds the group result instruction back to the diagnostic instrument, so that the diagnostic instrument can determine the execution result of the group configuration routine based on the group result instruction.

[0094] For example, the diagnostic instrument may send a grouping result query command to the vehicle body controller a third preset time after sending the grouping configuration request command, thereby reserving the third preset time for the vehicle body controller to execute the grouping configuration routine. The third preset time can be set according to design requirements, for example, 2 seconds.

[0095] Optional, Figure 4 This is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 4 As shown, the configuration method of the ambient light in the vehicle includes:

[0096] S411. The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0097] S412: When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0098] S413. The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0099] S414. The diagnostic instrument sends a coding result query instruction to the vehicle body controller.

[0100] S415. The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the result instruction to the diagnostic instrument.

[0101] S416. The diagnostic instrument determines whether the encoding routine is executed successfully based on the encoding result instruction; if so, execute step S417; if not, execute step S419.

[0102] S417: Send a group configuration request instruction to the vehicle body controller.

[0103] S418. The body controller executes the group configuration routine of each ambient light according to the group configuration request instruction.

[0104] S419: Determine whether the number of consecutive failures of the automatic encoding routine exceeds a first preset number; if so, execute step S425; if not, execute step S412.

[0105] S420: The diagnostic instrument sends a grouping result query instruction to the vehicle body controller.

[0106] S421. The vehicle body controller generates a grouping result instruction according to the grouping result query instruction, and sends the grouping result instruction to the diagnostic instrument.

[0107] S422. The diagnostic instrument determines whether the group configuration routine is executed successfully according to the grouping result instruction; if so, execute step S423; if not, execute step S424.

[0108] S423: Determine whether the configuration of each atmosphere light is successful.

[0109] S424: Determine whether the number of consecutive failures of the group configuration routine exceeds a second preset number; if so, execute S425; if not, execute step S417.

[0110] S425: Determine that the configuration of each ambient light fails.

[0111] Specifically, if the diagnostic instrument determines that the group configuration routine is successfully executed according to the group result instruction, it is determined that the configuration of each atmosphere light is successful this time, and the result of the successful configuration can be displayed on the display to prompt the operator. It is also possible that the group configuration routine fails to execute. At this time, it can be combined with first determining how many times the failure of this execution is in the continuous failure of the group configuration routine. If the count value of the number of failures has exceeded the second preset number, the group configuration routine will no longer be attempted, and the configuration of the atmosphere light will be marked as a failure. The configuration result can be displayed on the display at the same time to prompt the operator to repair it in time to avoid wasting work time. Among them, the second preset number can be set according to the design requirements, for example, it can be 3 times.

[0112] For example, when the vehicle body controller receives the grouping result query instruction, it may also be in the process of executing the grouping configuration routine. In this case, the vehicle body controller feeds back a grouping result instruction indicating "executing" to the diagnostic instrument. In this case, the diagnostic instrument can send the grouping result query instruction to the vehicle body controller once every fourth preset time until it receives a coded result instruction indicating "success" or "failure", at which point it stops sending the grouping result query instruction; or until the number of consecutive grouping result query instructions exceeds a fifth preset number, at which point it stops sending the grouping result query instruction and notifies the maintenance personnel of the abnormality of the grouping configuration routine through the display. The fourth preset time and the fifth preset number can be set according to design requirements. For example, the fourth preset time can be 1 second, and the fifth preset number can be 5 times.

[0113] Optionally, the configuration request instruction includes a brightness configuration request instruction. Figure 5 This is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 5 As shown, the configuration method of the ambient light in the vehicle includes:

[0114] S510: The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0115] S520: When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0116] S530: The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0117] S540: When the diagnostic instrument determines that the automatic encoding routine is successfully executed, it sends a brightness configuration request instruction to the vehicle body controller.

[0118] S550: The vehicle body controller executes a brightness configuration routine for each ambient light according to the brightness request configuration instruction.

[0119] Specifically, the configuration request instruction includes a brightness configuration request instruction, that is, the configuration content of the ambient light may include the brightness configuration of the ambient light. After the body controller receives the brightness configuration request instruction, it can configure the brightness of each ambient light that has completed the address coding, that is, corresponding to the address coding of each ambient light, configure the brightness of each ambient light when it is lit one by one to complete the brightness configuration routine of each ambient light. In this way, when the user controls the ambient light in the vehicle to light up, the display brightness of each ambient light can be different, which can effectively improve the atmosphere of the ambient light, thereby improving the user's car experience. Among them, the brightness configuration routine can be stored in the body controller in the form of a software program. After the body controller receives the brightness configuration request instruction, it triggers the brightness configuration routine to realize the brightness configuration of each ambient light.

[0120] S560: The diagnostic instrument sends a brightness configuration result query instruction to the vehicle body controller.

[0121] S570: The vehicle body controller generates a grouping result instruction according to the brightness configuration result query instruction, and sends the brightness configuration result instruction to the diagnostic instrument.

[0122] S580: The diagnostic instrument determines the result of the brightness configuration routine according to the brightness configuration result instruction.

[0123] Specifically, after the body controller executes the brightness configuration routine of each ambient light, the diagnostic instrument can send a brightness configuration result query instruction to the body controller. After receiving the brightness configuration result query instruction, the body controller generates a brightness configuration result instruction based on the current execution status of the brightness configuration routine, and feeds the brightness configuration result instruction back to the diagnostic instrument, so that the diagnostic instrument can determine the execution result of the brightness configuration routine based on the brightness configuration result instruction.

[0124] For example, the diagnostic instrument may send a brightness configuration result query command to the vehicle body controller after the fifth preset time after sending the brightness configuration request command, thereby reserving the fifth preset time for the vehicle body controller to execute the brightness configuration routine. The fifth preset time can be set according to design requirements, for example, 2 seconds.

[0125] Optional, Figure 6 This is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 6 As shown, the configuration method of the ambient light in the vehicle includes:

[0126] S611. The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0127] S612: When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0128] S613: The vehicle body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0129] S414. The diagnostic instrument sends a coding result query instruction to the vehicle body controller.

[0130] S615. The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the result instruction to the diagnostic instrument.

[0131] S616. The diagnostic instrument determines whether the encoding routine is executed successfully based on the encoding result instruction; if so, execute step S617; if not, execute step S619.

[0132] S617: Send a brightness configuration request instruction to the vehicle body controller.

[0133] S618. The body controller executes a group configuration routine for each ambient light according to the brightness configuration request instruction.

[0134] S619: Determine whether the number of consecutive failures of the automatic encoding routine exceeds a first preset number; if so, execute step S625; if not, execute step S612.

[0135] S620: The diagnostic instrument sends a brightness configuration result query instruction to the vehicle body controller.

[0136] S621. The vehicle body controller generates a brightness configuration result instruction according to the brightness configuration result query instruction, and sends the brightness configuration result instruction to the diagnostic instrument.

[0137] S622. The diagnostic instrument determines whether the brightness configuration routine is executed successfully according to the brightness configuration result instruction; if so, execute step S623; if not, execute step S624.

[0138] S623: Determine whether the configuration of each atmosphere light is successful.

[0139] S624: Determine whether the number of consecutive failures of the brightness configuration routine exceeds a third preset number; if so, execute S625; if not, execute step S617.

[0140] S625: Determine that the configuration of each ambient light fails.

[0141] Specifically, if the diagnostic instrument determines that the brightness configuration routine is successfully executed according to the brightness configuration result instruction, it is determined that the configuration of each atmosphere light is successful this time, and the result of the successful configuration can be displayed on the display to prompt the operator. It is also possible that the brightness configuration routine fails to execute. At this time, it can be combined with first determining how many times the failure of this execution is in the continuous failure of the brightness configuration routine. If the count value of the number of failures has exceeded the third preset number, the brightness configuration routine will no longer be attempted, and the configuration of the atmosphere light will be marked as a failure. The configuration result can be displayed on the display at the same time to prompt the operator to repair it in time to avoid wasting work time. Among them, the third preset number can be set according to the design requirements, for example, it can be 3 times.

[0142] For example, when the vehicle body controller receives the brightness configuration result query instruction, it is possible that the brightness configuration routine is in the process of being executed. At this time, the vehicle body controller feeds back a coded result instruction indicating "executing" to the diagnostic instrument. At this time, the diagnostic instrument can send a brightness configuration result query instruction to the vehicle body controller once every sixth preset time until it receives a brightness configuration result instruction indicating "success" or "failure", at which time it stops sending the brightness configuration result query instruction; or until the number of consecutive brightness configuration result query instructions exceeds the sixth preset number, it stops sending the brightness configuration result query instruction and prompts the maintenance personnel through the display that the brightness configuration routine is abnormal. Among them, the sixth preset time and the sixth preset number of times can be set according to design requirements. For example, the sixth preset time can be 1s, and the sixth preset number of times can be 5 times.

[0143] Exemplarily, in other feasible embodiments of the present invention, after the automatic encoding routine is successfully executed, the grouping configuration routine and the brightness configuration routine may be executed in sequence; or, after the automatic encoding routine is successfully executed, the brightness configuration routine and the grouping configuration routine may be executed in sequence.

[0144] Figure 7 This is a flow chart of another method for configuring an ambient light in a vehicle provided by an embodiment of the present invention. Figure 7 As shown, the configuration method of the ambient light in the vehicle includes:

[0145] S711. The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller and determines whether to configure the ambient light according to the ambient light configuration code.

[0146] S712: When determining to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller.

[0147] S713. The body controller executes the automatic encoding routine of each ambient light according to the automatic encoding instruction.

[0148] S714. The diagnostic instrument sends a coding result query instruction to the vehicle body controller.

[0149] S715. The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the result instruction to the diagnostic instrument.

[0150] S716. The diagnostic instrument determines whether the encoding routine is executed successfully based on the encoding result instruction; if so, execute step S717; if not, execute step S719.

[0151] S717: When the diagnostic instrument determines that the automatic encoding routine is successfully executed, it sends a group configuration request instruction to the vehicle body controller.

[0152] S718. The body controller executes the group configuration routine of each ambient light according to the group configuration request instruction.

[0153] S719: Determine whether the number of consecutive failures of the automatic encoding routine exceeds a first preset number; if so, execute step S731; if not, execute step S712.

[0154] S720: The diagnostic instrument sends a grouping result query instruction to the vehicle body controller.

[0155] S721. The vehicle body controller generates a grouping result instruction according to the grouping result query instruction, and sends the grouping result instruction to the diagnostic instrument.

[0156] S722. The diagnostic instrument determines whether the group configuration routine is executed successfully according to the grouping result instruction; if so, execute step S723; if not, execute step S725.

[0157] S723: Send a brightness configuration request instruction to the vehicle body controller.

[0158] S724. The body controller executes a group configuration routine for each ambient light according to the brightness configuration request instruction.

[0159] S725. Determine whether the number of consecutive failures of the group configuration routine exceeds a second preset number; if so, execute S731; if not, execute step S717.

[0160] S726. The diagnostic instrument sends a brightness configuration result query instruction to the vehicle body controller.

[0161] S727. The vehicle body controller generates a brightness configuration result instruction according to the brightness configuration result query instruction, and sends the brightness configuration result instruction to the diagnostic instrument.

[0162] S728. The diagnostic instrument determines whether the brightness configuration routine is executed successfully based on the brightness configuration result instruction; if so, execute step S729; if not, execute step S730.

[0163] S730: Determine whether the configuration of each ambient light is successful.

[0164] S730: Determine whether the number of consecutive failures of the brightness configuration routine exceeds a third preset number; if so, execute S731; if not, execute step S723.

[0165] Specifically, after the automatic encoding routine is executed successfully, the group configuration routine and the brightness configuration routine are executed in sequence. At this time, after determining that the group configuration routine is executed successfully, the diagnostic instrument can continue to send a brightness configuration request instruction to the body controller, so that the group configuration and brightness configuration of the ambient light can be performed, and when any configuration routine fails, it is determined that the configuration of the ambient light has failed.

[0166] It should be noted that Figure 7 It is only shown by way of example that after the automatic encoding routine is successfully executed, the group configuration routine and the brightness configuration routine are executed in sequence. It can be understood that after the automatic encoding routine is successfully executed, the brightness configuration routine and the group configuration routine can also be executed in sequence. At this time, after determining that the brightness configuration routine is successfully executed, the diagnostic instrument can continue to send a group configuration request instruction to the body controller, which can configure the group and brightness of the ambient light, and when any configuration routine fails, it is determined that the configuration of the ambient light has failed.

[0167] Based on the same inventive concept, an embodiment of the present invention also provides a vehicle, including a diagnostic instrument, a body controller and multiple atmosphere lights, wherein the diagnostic instrument and the body controller adopt the method for configuring the atmosphere lights in the vehicle provided by any embodiment of the present invention to configure each of the atmosphere lights. Therefore, the vehicle provided by the embodiment of the present invention includes the technical features of the method for configuring the atmosphere lights in the vehicle provided by any embodiment of the present invention, and can achieve the beneficial effects of the method for configuring the atmosphere lights in the vehicle provided by any embodiment of the present invention. The similarities can be referred to the above description of the method for configuring the atmosphere lights in the vehicle provided by the embodiment of the present invention, and will not be repeated here.

[0168] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0169] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for configuring an ambient light in a vehicle, the vehicle comprising a diagnostic instrument, a body controller and a plurality of ambient lights, It is characterized in that The configuration method of the ambient light in the vehicle includes: The diagnostic instrument obtains the ambient light configuration code of the vehicle body controller, and determines whether to configure the ambient light according to the ambient light configuration code; When it is determined to configure the ambient light, the diagnostic instrument sends an automatic coding instruction to the vehicle body controller; The body controller executes the automatic encoding routine of each of the atmosphere lights according to the automatic encoding instruction; The diagnostic instrument sends a configuration request instruction to the vehicle body controller when determining that the automatic encoding routine is successfully executed; The vehicle body controller executes a configuration routine of each ambient light according to the configuration request instruction.

2. The method for configuring the vehicle ambient light according to claim 1, It is characterized in that Before the diagnostic instrument determines that the automatic encoding routine is successfully executed, the method further includes: The diagnostic instrument sends a coding result query instruction to the vehicle body controller; The vehicle body controller generates a coding result instruction according to the coding result query instruction, and sends the coding result instruction to the diagnostic instrument; The diagnostic instrument determines that the automatic encoding routine is executed successfully based on the encoding result instruction; if so, the step of sending a configuration request instruction to the body controller is executed.

3. The method for configuring the vehicle ambient light according to claim 2, It is characterized in that Also includes: If the diagnostic instrument determines that the automatic encoding routine has failed to execute according to the encoding result instruction, determining whether the number of consecutive failures of the automatic encoding routine exceeds a first preset number; If not, returning to the step of executing the diagnostic instrument sending an automatic coding instruction to the vehicle body controller; If so, it is determined that the configuration of each of the atmosphere lights has failed.

4. The method for configuring the vehicle ambient light according to claim 1, It is characterized in that The configuration request instruction includes a group configuration request instruction; The body controller executes a configuration routine of each ambient light according to the configuration request instruction, including: The vehicle body controller executes a group configuration routine for each ambient light according to the group configuration request instruction.

5. The method for configuring the vehicle ambient light according to claim 4, It is characterized in that After the body controller executes the group configuration routine of each ambient light according to the group configuration request instruction, it also includes: The diagnostic instrument sends a grouping result query instruction to the vehicle body controller; The vehicle body controller generates a grouping result instruction according to the grouping result query instruction, and sends the grouping result instruction to the diagnostic instrument; The diagnostic instrument determines the execution result of the grouping configuration routine according to the grouping result instruction.

6. The method for configuring the vehicle ambient light according to claim 5, It is characterized in that Also includes: If the diagnostic instrument determines that the group configuration routine is successfully executed according to the group result instruction, it is determined that the configuration of each of the atmosphere lights is successful; If the diagnostic instrument determines according to the grouping result instruction that the grouping configuration routine has failed to execute, determining whether the number of consecutive failures of the grouping configuration routine exceeds a second preset number; If not, returning to the step of executing the diagnostic instrument sending a configuration request instruction to the vehicle body controller; If so, it is determined that the configuration of each of the atmosphere lights has failed.

7. The method for configuring the vehicle ambient light according to claim 1, It is characterized in that The configuration request instruction includes a brightness configuration request instruction; The body controller executes a configuration routine of each ambient light according to the configuration request instruction, including: The vehicle body controller executes a brightness configuration routine of each of the ambient lights according to the brightness configuration request instruction.

8. The method for configuring the vehicle ambient light according to claim 7, It is characterized in that After the vehicle body controller executes the brightness configuration routine of each of the ambient lights according to the brightness configuration request instruction, the method further includes: The diagnostic instrument sends a brightness configuration result query instruction to the vehicle body controller; The vehicle body controller generates a brightness configuration result instruction according to the brightness configuration result query instruction, and sends the brightness configuration result instruction to the diagnostic instrument; The diagnostic instrument determines a result of the brightness configuration routine according to the brightness configuration result instruction.

9. The method for configuring the vehicle ambient light according to claim 8, It is characterized in that Also includes: If the diagnostic instrument determines that the result of the brightness configuration routine is successful according to the brightness configuration result instruction, then it is determined that the configuration routine of each of the atmosphere lights is successful; If the diagnostic instrument determines that the result of the brightness configuration routine is a failure according to the brightness configuration result instruction, returning to the step of executing the diagnostic instrument sending a configuration request instruction to the vehicle body controller; It is determined whether the number of consecutive failures of the brightness configuration routine exceeds a third preset number, and if so, it is determined that the configuration routine of each of the atmosphere lights has failed.

10. A vehicle, It is characterized in that include: A diagnostic instrument, a vehicle body controller and a plurality of atmosphere lights; the diagnostic instrument and the vehicle body controller configure each of the atmosphere lights using the configuration method of the atmosphere lights in a vehicle according to any one of claims 1 to 9.