Guest greeting lamp control method and system, vehicle and medium
Through the user operation type, the welcome enable signal is output and the target welcome mode is determined. Combined with the duty cycle and the preset relationship, the problem of incorrect pattern recognition and out-of-sync animation in the welcome lighting control is solved, and efficient lighting control is achieved. and user experience improvement.
Patent Information
- Application Number
- CN202411151496.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-10-11
AI Technical Summary
The existing Yingbin lighting control logic algorithm has problems such as insufficient hardware precision leading to incorrect pattern recognition, hardware startup time and timing errors causing lamp animations to be out of sync, and unclear exception handling logic leading to interruption errors.
By outputting the welcome enable signal based on the user's operation type, the target welcome mode is determined, and the accuracy of lighting mode recognition is ensured by calculating the duty cycle and the preset relationship, achieving precise synchronization and exception handling of lamp animations.
It improves the control efficiency and user experience of the welcome lighting function, ensures accurate recognition of lighting patterns and synchronized execution of animations, and reduces the occurrence of interruption errors.
Smart Images

Figure CN118765019A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle welcome light control, and in particular to a welcome light control method, system, vehicle and medium. Background Art
[0002] With the improvement of people's living standards and the rapid development of the automobile industry, cars are no longer just a means of transportation in the traditional sense, but have been given more functional requirements in terms of experience. In addition to providing drivers with lighting and signal functions that comply with regulations, automotive lamps also provide multi-scene and multi-mode welcome light modes as an important carrier of experience. The control logic algorithm of the welcome light is an important part of realizing this function. Although the control logic algorithm of the welcome light has been studied in the relevant technology and has achieved certain technical effects, the welcome light function involves the sending and receiving responses of the hardware and software signals of the body domain controller (BDC) and multiple lamp electronic units. Incorrect pattern recognition may occur due to insufficient hardware accuracy, or hardware startup time and timing errors may cause the welcome animations of each lamp to be out of sync, or the exception handling logic may be unclear, resulting in interrupt errors. Summary of the invention
[0003] In view of this, the present invention provides a welcome light control method, system, vehicle and medium to solve the problem raised in the above technical background that the existing welcome light function execution process lacks in-depth research, resulting in many defects, which in turn seriously affects user use.
[0004] In a first aspect, the present invention provides a welcome light control method, the method comprising:
[0005] In response to a preset operation of the vehicle by the user, outputting a welcome enable signal of the vehicle based on the operation type of the preset operation;
[0006] Determining a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle;
[0007] Control the vehicle's welcome lights to execute the welcome animation corresponding to the target welcome mode.
[0008] The present invention determines the target welcome mode based on the welcome enable signal output according to the user's operation type of the vehicle, so as to control the vehicle's welcome lights to execute the welcome animation corresponding to the target welcome mode. This can realize in-depth research on the execution process of the welcome light function and correctly identify the target welcome mode corresponding to the vehicle, which not only improves the user's control efficiency of the welcome lights, but also improves the user experience to a certain extent.
[0009] In an optional implementation, determining the target welcome mode corresponding to the welcome enable signal includes:
[0010] Calculate the average duty cycle of the welcome enable signal;
[0011] The current welcome animation corresponding to the average duty cycle is determined based on a preset relationship, and the current welcome animation is determined as a target welcome mode, wherein the preset relationship is a mapping relationship between different duty cycle intervals and the welcome animation.
[0012] The present invention determines the target welcome mode based on the average duty cycle of the welcome enable signal and the mapping relationship between different duty cycle intervals and the welcome animation, which can ensure the accuracy of vehicle welcome light pattern recognition, thereby improving the user's control efficiency and usage experience of the welcome light.
[0013] In an optional implementation manner, the process of establishing the preset relationship includes:
[0014] Obtaining device parameters of the vehicle, wherein the device parameters include crystal oscillator accuracy and capacitor discharge characteristics of the vehicle body domain controller;
[0015] Determine the duty cycle signal accuracy and duty cycle forbidden zone width based on device parameters;
[0016] Determine the number of modes corresponding to the welcome animation supported by the vehicle based on the duty cycle signal accuracy and the duty cycle restricted area width;
[0017] For each welcoming animation, respectively obtain the welcoming enable signal, calculate the current duty cycle corresponding to the welcoming enable signal, and determine the corresponding duty cycle interval based on the current duty cycle, the duty cycle signal accuracy and the preset error;
[0018] A preset relationship is established based on the duty cycle intervals corresponding to all welcoming animations.
[0019] The preset relationship of the present invention is constructed to determine the duty cycle signal accuracy and the duty cycle restricted zone width based on the vehicle's equipment parameters, and to utilize them to realize the determination of the number of corresponding modes of the welcome animation, and to combine them with the current duty cycle of the welcome animation to jointly determine the duty cycle intervals corresponding to different welcome animations, which can provide an accurate mapping relationship between different duty cycle intervals and the welcome animation, thereby ensuring the subsequent efficient control of the welcome light.
[0020] In an optional implementation, in the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the welcome light control method further includes:
[0021] Respectively obtaining a first duration corresponding to when the vehicle outputs a welcome enable signal and a second duration corresponding to when the vehicle performs a welcome function;
[0022] Calculate the absolute difference between the second duration and the first duration;
[0023] Based on the first duration, the second duration and the absolute difference, a preset playback action corresponding to the welcoming animation is determined, and the preset playback action includes continue execution, wait and frame skip operations.
[0024] During the welcome animation process executed on the vehicle's welcome lights, the present invention confirms the preset playback action corresponding to the welcome animation based on the first duration corresponding to the vehicle's output of a welcome enable signal and the second duration corresponding to the vehicle's execution of the welcome function. This can ensure the precise synchronization of the welcome animations of multiple lamps on the entire vehicle, achieve signal synchronization during the execution of the welcome animation, and greatly enhance the user experience.
[0025] In an optional implementation, determining a preset play action corresponding to the welcoming animation based on the first duration, the second duration, and the absolute difference includes:
[0026] If the absolute difference is less than the preset time difference threshold, the preset play action corresponding to the welcoming animation is determined to continue to be executed;
[0027] If the first duration is less than the second duration, and the absolute difference is not less than the preset time difference threshold, then determining that the preset playback action corresponding to the welcoming animation is waiting;
[0028] If the first duration is greater than the second duration, and the absolute difference is not less than a preset time difference threshold, it is determined that the preset playback action corresponding to the welcoming animation is a frame skipping operation.
[0029] The present invention jointly determines the preset playback action corresponding to the welcome animation based on the first duration corresponding to the vehicle outputting the welcome enable signal, the second duration corresponding to the vehicle executing the welcome function, and the size relationship between the difference between the two and the set threshold, and can accurately synchronize the welcome animations of multiple lamps on the entire vehicle.
[0030] In an optional implementation, the welcome light control method further includes:
[0031] During the process of controlling the vehicle's welcome lights to execute the welcome animation corresponding to the target welcome mode, the welcome enable signal is kept output until the welcome animation is finished playing and then stops.
[0032] The present invention controls the welcome enable signal time to be longer than the welcome animation time so that the welcome function corresponding to the vehicle's welcome light is completed, which can ensure the completion of the welcome animation playback and achieve signal synchronization after the welcome function is completed.
[0033] In an optional implementation, the operation type of the preset operation includes an unlocking operation and a charging operation, and in response to the user's preset operation on the vehicle, outputting a welcome enable signal of the vehicle based on the operation type of the preset operation includes:
[0034] Detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal, wherein the vehicle unlocking signal is generated by the vehicle in response to a user's unlocking operation on the vehicle, and the battery charging signal is generated by the vehicle in response to a user's charging operation on the vehicle;
[0035] If it exists, the welcome enable signal of the vehicle is output accordingly;
[0036] If not, the process returns to the step of detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal.
[0037] The present invention determines the output type of the welcome enable signal by detecting the vehicle unlocking signal or the battery charging signal, thereby ensuring the correct output of the welcome enable signal and improving the subsequent determination of the target welcome mode of the vehicle.
[0038] In an optional implementation, before outputting a welcome light enabling signal of the vehicle based on the operation type of the preset operation, the welcome light control method further includes:
[0039] When a vehicle unlocking signal or a battery charging signal is detected in the vehicle, the vehicle's welcome power signal is output and after waiting for a first preset time, the vehicle's welcome enable signal is output accordingly, wherein the welcome power signal is used to initialize the vehicle's welcome lights, and the first preset time is determined based on the time required for the vehicle's welcome lights to turn on.
[0040] The present invention is designed to output the vehicle's welcome power signal and wait for a first preset time before correspondingly outputting the vehicle's welcome enable signal to achieve signal synchronization when the welcome function is started. This can reduce errors caused by signal asynchrony, ensure the effectiveness of the welcome enable signal, and further improve subsequent precise control of the welcome light.
[0041] In an optional implementation, before determining the target welcome mode corresponding to the welcome enable signal, the welcome light control method further includes:
[0042] Obtain the current status data of the vehicle, including the power gear, vehicle anti-theft status and vehicle start status;
[0043] Determine whether a preset condition is met based on the current state data, the preset condition including at least one of the power gear is OFF, the vehicle anti-theft state is ON, and the vehicle is in an unstarted state;
[0044] If yes, then determining the target welcome mode corresponding to the welcome enable signal is executed;
[0045] If not, return to the step of obtaining the current status data of the vehicle.
[0046] The present invention can ensure the normal operation of the vehicle welcoming function by designing the determination process of the vehicle's current power gear, the vehicle's anti-theft state and the vehicle's starting state and setting preconditions.
[0047] In an optional implementation, in the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the welcome light control method further includes:
[0048] Detecting whether the vehicle has a new welcome enable signal, where the new welcome enable signal is output by the vehicle in response to a user's current preset operation on the vehicle;
[0049] Determine the current welcome mode corresponding to the new welcome enable signal;
[0050] If the current welcome mode is the same as the target welcome mode, the vehicle is controlled to stop outputting a new welcome enable signal and continue to execute the welcome animation corresponding to the target welcome mode until the welcome animation ends;
[0051] If the current welcome mode is different from the target welcome mode, the vehicle is controlled to wait for the second preset time and then stop executing the welcome animation corresponding to the target welcome mode, and the vehicle is controlled to execute the welcome animation corresponding to the current welcome mode after waiting for the first preset time, wherein the second preset time is determined based on the time required for the vehicle's welcome lights to turn off.
[0052] The present invention can ensure the normal execution of the welcome animation corresponding to the vehicle welcome mode by designing a repeated detection process of the welcome enable signal within the welcome animation execution cycle.
[0053] In an optional implementation, in the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the welcome light control method further includes:
[0054] Detect whether the vehicle has a preset interruption operation;
[0055] If there is a preset interrupt operation, the vehicle is controlled to stop executing the welcome animation corresponding to the target welcome mode, and the vehicle is controlled to execute the corresponding interrupt processing.
[0056] The present invention can ensure the vehicle's timely response to external events by designing a detection process for preset interrupt operations during the execution cycle of the welcoming animation, thereby further improving the user's efficiency and experience in using the vehicle.
[0057] In a second aspect, the present invention provides a welcome light control system, the system comprising:
[0058] A response module, configured to output a welcome enable signal of the vehicle based on an operation type of the preset operation in response to a preset operation of the vehicle by a user;
[0059] A determination module, used for determining a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle;
[0060] The control module is used to control the vehicle's welcome light to execute a welcome animation corresponding to a target welcome mode.
[0061] The welcome light control system of the present invention, through in-depth research on the execution process of the welcome light function, determines the target welcome mode based on the welcome enable signal output corresponding to the user's operation type of the vehicle, so as to control the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode. It not only realizes the correct identification of the target welcome mode, but also improves the user's control efficiency of the welcome light and enhances the user's experience.
[0062] In a third aspect, the present invention provides a vehicle, comprising a controller, the controller comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes a welcome light control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0063] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute a welcome light control method according to the first aspect or any corresponding embodiment thereof.
[0064] The welcome light control method and system of the present invention determine the target welcome mode through the welcome enable signal output according to the user's operation type of the vehicle, so as to control the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode. This method and system can realize in-depth research on the execution process of the welcome light function, which not only correctly identifies the target welcome mode corresponding to the vehicle, but also improves the user's control efficiency and usage experience of the welcome light. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 is a flow chart of a welcome light control method according to an embodiment of the present invention;
[0067] Figure 2 is a flow chart of another welcome light control method according to an embodiment of the present invention;
[0068] Figure 3 It is a block diagram of the network system architecture of the vehicle welcome function;
[0069] Figure 4 It is the logic algorithm block diagram of the vehicle welcome light control;
[0070] Figure 5 It is a schematic diagram of synchronous logic judgment of the welcoming animation process;
[0071] Figure 6 This is a schematic diagram of the end synchronization of the welcome animation;
[0072] Figure 7 is a structural block diagram of a welcome light control system according to an embodiment of the present invention;
[0073] Figure 8 It is a schematic diagram of the structure of a controller of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 described embodiments are 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0075] An embodiment of the present invention provides an embodiment of a welcome light control method. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0076] In this embodiment, a welcome light control method is provided, which is applied to a controller in a hybrid vehicle, such as a single chip microcomputer, a microprocessor, etc. Figure 1 is a flow chart of a welcome light control method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0077] Step S101 , in response to a preset operation of a vehicle by a user, outputting a welcome enable signal of the vehicle based on the operation type of the preset operation.
[0078] It should be noted that the preset operations and their corresponding operation types in this embodiment are not limited here, and are adaptively set based on actual needs. For example, the preset operations include opening / closing the door, getting on / off the vehicle, inserting the key / pressing the start button, starting / stopping, turning, braking, accelerating / decelerating, charging, etc. Among them, the operation types corresponding to opening / closing the door, inserting the key / pressing the start button, and charging are vehicle unlocking types, which are only used as examples.
[0079] Step S102 : determining a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle.
[0080] It should be noted that the welcome animation of the vehicle's welcome light is an animation effect displayed through light projection, which is usually automatically triggered when the vehicle is unlocked, providing the owner with a sense of ritual experience. Specifically, the welcome animation function of the vehicle's welcome light is usually realized through LED technology, which can show various dynamic effects when the vehicle is unlocked, such as light projection, light language animation, etc., aiming to increase the aesthetics of the vehicle and enhance the owner's experience. In addition, the welcome animation can be customized, and can also be linked to functional scenes such as door opening warning, charging and discharging, and holiday easter eggs, so that the owner can feel more convenience and pleasure in the process of using the vehicle. In this embodiment, the specific content of the target welcome mode is determined according to the actual vehicle model and the adaptability of the user's personalized settings.
[0081] Step S103, controlling the vehicle's welcome light to execute a welcome animation corresponding to the target welcome mode.
[0082] The welcome light control method of an embodiment of the present invention determines the target welcome mode based on the welcome enable signal output corresponding to the user's operation type of the vehicle, so as to control the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode. It not only realizes an in-depth study of the execution process of the welcome light function and correctly identifies the target welcome mode corresponding to the vehicle, but also improves the user's control efficiency and usage experience of the welcome light to a certain extent.
[0083] In this embodiment, a welcome light control method is provided. Figure 2 is a flow chart of another welcome light control method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0084] Step S201 , in response to a preset operation of the vehicle by the user, outputting a welcome enable signal of the vehicle based on the operation type of the preset operation.
[0085] In this embodiment, the operation types of the preset operation include an unlocking operation and a charging operation. Specifically, the above step S201 includes:
[0086] Step A1, detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal, wherein the vehicle unlocking signal is generated by the vehicle in response to a user's unlocking operation on the vehicle, and the battery charging signal is generated by the vehicle in response to a user's charging operation on the vehicle.
[0087] In this embodiment, when the user unlocks the target vehicle through the Bluetooth key, the target vehicle will generate a vehicle unlocking signal accordingly; when the target vehicle recognizes the hard-wired connection signal of the charging gun, it will generate a battery charging signal accordingly. This is only an exemplary description and is not intended to be limiting.
[0088] Step A2: If yes, then the welcome enable signal of the vehicle is output accordingly.
[0089] Step A3: If not, return to step A1 to detect whether the vehicle has a vehicle unlocking signal or a battery charging signal.
[0090] In the embodiment of the present invention, the output type of the welcome enable signal is determined by detecting the vehicle unlocking signal or the battery charging signal, so as to ensure the correct output of the welcome enable signal and thus improve the subsequent determination of the target welcome mode of the vehicle.
[0091] In actual applications, when the vehicle performs the welcome function, the body domain controller BDC outputs a welcome enable signal and sends it to the control unit corresponding to each welcome light of the vehicle, that is, the lamp electronic unit, to control the operation of the corresponding welcome light. However, due to the hardware delay, the corresponding welcome animations played by each lamp electronic unit are not synchronized, which seriously affects the playback effect of the welcome animation. Therefore, the present embodiment designs a corresponding signal synchronization processing flow to ensure the playback effect of the welcome animation. Specifically, before outputting the vehicle's welcome enable signal based on the operation type of the preset operation, the welcome light control method of the present embodiment also includes: when a vehicle unlocking signal or a battery charging signal is detected in the vehicle, the vehicle's welcome power signal is output and the vehicle's welcome enable signal is output after a first preset time, wherein the welcome power signal is used to initialize the vehicle's welcome light, and the first preset time is determined based on the time required for the vehicle's welcome light to turn on.
[0092] It should be noted that the specific value of the first preset time in this embodiment is adaptively set based on actual needs. Specifically, by designing the output of the vehicle's welcome power signal and waiting for the first preset time before correspondingly outputting the vehicle's welcome enable signal to achieve signal synchronization when the welcome function is activated, the error caused by signal asynchrony can be reduced, the effectiveness of the welcome enable signal is guaranteed, and the subsequent precise control of the welcome light is improved.
[0093] Step S202 , determining a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle.
[0094] Specifically, determining the target welcome mode corresponding to the welcome enable signal in the above step S202 includes:
[0095] Step S2021, calculating the average duty cycle of the welcome enable signal.
[0096] It should be noted that the duty cycle is the ratio of the effective time to the time of a cycle, usually expressed as a percentage. For example, if the cycle of a signal is 1 second, of which 0.5 seconds is a high-level state, then the duty cycle of the signal is 50%. In practical applications, such as pulse width modulation (PWM) technology, the output of the circuit is controlled by changing the duty cycle of the signal. In PWM, when the signal is high, the output load receives power supply and generates the corresponding physical quantity; when the signal is low, it does not receive power supply and the physical quantity is zero; by changing this "switching" time, the average value of the output signal can be controlled.
[0097] Step S2022, determining the current welcome animation corresponding to the average duty cycle based on a preset relationship, and determining the current welcome animation as the target welcome mode, wherein the preset relationship is a mapping relationship between different duty cycle intervals and the welcome animation.
[0098] The embodiment of the present invention determines the target welcome mode based on the average duty cycle of the welcome enable signal and the mapping relationship between different duty cycle intervals and the welcome animation, which can ensure the accuracy of vehicle welcome light pattern recognition, thereby improving the user's control efficiency and usage experience of the welcome light.
[0099] It should be noted that the process of establishing the preset relationship in this embodiment includes:
[0100] Step B1, obtaining device parameters of the vehicle, wherein the device parameters include crystal oscillator accuracy and capacitor discharge characteristics of the vehicle body domain controller.
[0101] In this embodiment, the specific content of the equipment parameters is determined based on the adaptability of the actual vehicle model, wherein the capacitor discharge characteristics are mainly reflected in its ability to store electrical energy and provide electrical energy to the load through the discharge process, and its discharge speed and voltage change are affected by the capacitor capacity, circuit load, and charging and discharging conditions, which can be monitored by setting specific indicators, such as capacitor discharge delay.
[0102] Step B2, determining the duty cycle signal accuracy and the duty cycle forbidden zone width based on device parameters.
[0103] Step B3, determining the number of modes corresponding to the welcome animation supported by the vehicle based on the duty cycle signal accuracy and the duty cycle forbidden zone width.
[0104] In this embodiment, the number of modes represents the maximum number of welcome modes that can be set for the current vehicle model, and the specific number and content are adaptively adjusted based on the actual vehicle model.
[0105] Step B4, for each welcoming animation, respectively obtain the welcoming enable signal, calculate the current duty cycle corresponding to the welcoming enable signal, and determine the corresponding duty cycle interval based on the current duty cycle, the duty cycle signal accuracy and the preset error.
[0106] In this embodiment, the specific value of the preset error is adaptively adjusted based on actual needs. For example, the preset error is 0.001, which is only used as an exemplary description.
[0107] Step B5, constructing a preset relationship based on the duty cycle intervals corresponding to all the welcoming animations.
[0108] The construction of the preset relationship in the embodiment of the present invention determines the duty cycle signal accuracy and the duty cycle restricted zone width based on the vehicle's equipment parameters, which are used to determine the number of corresponding modes of the welcome animation, and are combined with the current duty cycle of the welcome animation to jointly determine the duty cycle intervals corresponding to different welcome animations. This can provide an accurate mapping relationship between different duty cycle intervals and the welcome animation, thereby ensuring subsequent efficient control of the welcome lights.
[0109] In actual applications, when the vehicle triggers the welcome function, it needs to meet certain setting conditions. Therefore, in this embodiment, the precondition is set to determine whether the current state of the vehicle meets the triggering of the welcome function. Specifically, before determining the target welcome mode corresponding to the welcome enable signal, the welcome light control method of this embodiment also includes:
[0110] Step C1, obtaining the current status data of the vehicle, the current status data including the power gear, the vehicle anti-theft status and the vehicle starting status.
[0111] In this embodiment, the specific method for acquiring the current status data is not limited here, and is obtained based on conventional data acquisition means in the art.
[0112] Step C2, judging whether a preset condition is met based on the current state data, wherein the preset condition includes at least one of the power gear is OFF, the vehicle anti-theft state is ON, and the vehicle is in an unstarted state.
[0113] Step C3: if yes, then determine the target welcome mode corresponding to the welcome enable signal.
[0114] Step C4: if not, return to step C1 to obtain the current status data of the vehicle.
[0115] In the embodiment of the present invention, the normal operation of the vehicle welcoming function can be ensured by designing the determination process of the vehicle's current power gear, vehicle anti-theft status and vehicle starting status and setting preconditions.
[0116] Step S203, controlling the vehicle's welcome light to execute a welcome animation corresponding to the target welcome mode.
[0117] Specifically, the above step S203 includes:
[0118] Step S2031, respectively obtaining a first duration corresponding to the vehicle outputting a welcome enable signal and a second duration corresponding to the vehicle executing a welcome function.
[0119] In this embodiment, the specific method for obtaining the first duration and the second duration is not limited here, and both are obtained based on conventional data acquisition means in the field, such as by setting a timer to obtain the corresponding duration.
[0120] Step S2032, calculating the absolute difference between the second duration and the first duration.
[0121] Step S2033, based on the first duration, the second duration and the absolute difference, determine the preset play action corresponding to the welcoming animation, the preset play action includes continue execution, wait and frame skip operations.
[0122] Specifically, in the above step S2033, based on the first duration, the second duration and the absolute difference, determining the preset play action corresponding to the welcoming animation includes:
[0123] Step D1: if the absolute difference is less than the preset time difference threshold, the preset play action corresponding to the welcoming animation is determined to continue to be executed.
[0124] In this embodiment, the specific value of the preset time difference threshold is adaptively set based on actual needs.
[0125] Step D2: if the first duration is less than the second duration, and the absolute difference is not less than the preset time difference threshold, then the preset play action corresponding to the welcoming animation is determined to be waiting.
[0126] Step D3: if the first duration is greater than the second duration, and the absolute difference is not less than a preset time difference threshold, then it is determined that the preset playback action corresponding to the welcoming animation is a frame skipping operation.
[0127] In this embodiment, the preset playback action corresponding to the welcome animation is jointly determined based on the first duration corresponding to the vehicle outputting the welcome enable signal, the second duration corresponding to the vehicle executing the welcome function, and the relationship between the difference between the two and the set threshold. This can ensure the accurate synchronization of the welcome animations of multiple lamps on the vehicle, achieve signal synchronization during the execution of the welcome animation, and greatly enhance the user experience.
[0128] In this embodiment, the welcome light control method further includes: in the process of controlling the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode, keep outputting the welcome enable signal until the welcome animation is finished playing. Specifically, in this embodiment, by controlling the welcome enable signal time to be longer than the welcome animation time, the welcome function corresponding to the vehicle's welcome light is completed, and the welcome animation is finished playing, so as to achieve signal synchronization after the completion of the welcome function execution.
[0129] It should be noted that, in order to prevent the occurrence of repeated output of the welcome enable signal due to multiple user operations during the execution of a welcome animation of a welcome mode, this embodiment designs a repeated detection process of the welcome enable signal during the execution cycle of the welcome animation to ensure the normal execution of the welcome animation corresponding to the vehicle welcome mode. Specifically, in the process of controlling the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode, the welcome light control method of this embodiment also includes:
[0130] Step E1, detecting whether the vehicle has a new welcome enable signal, where the new welcome enable signal is output by the vehicle in response to a user's current preset operation on the vehicle.
[0131] Step E2, determining the current welcome mode corresponding to the new welcome enable signal.
[0132] It should be noted that the specific detection of the welcome enable signal and the determination process of the current welcome mode in this embodiment can refer to the relevant content above, and will not be repeated here.
[0133] Step E3, if the current welcome mode is the same as the target welcome mode, the vehicle is controlled to stop outputting a new welcome enable signal, and continues to execute the welcome animation corresponding to the target welcome mode until the welcome animation is finished.
[0134] Step E4, if the current welcome mode is different from the target welcome mode, control the vehicle to wait for the second preset time and then stop executing the welcome animation corresponding to the target welcome mode, and control the vehicle to execute the welcome animation corresponding to the current welcome mode after waiting for the first preset time, wherein the second preset time is determined based on the time required for the vehicle's welcome lights to turn off.
[0135] In this embodiment, the specific value of the second preset time is adaptively adjusted based on actual needs.
[0136] It should be noted that during the execution of a welcome animation in a welcome mode, if there are other matters that need to be handled with priority, that is, external event requests of the vehicle, they need to be handled in a timely manner to improve the normal operation of various matters of the vehicle. Therefore, in this embodiment, the detection process of the corresponding preset interrupt operation is designed to ensure the timely response of the vehicle to external events, aiming to improve the user's efficiency and experience of using the vehicle. Specifically, in the process of controlling the vehicle's welcome light to execute the welcome animation corresponding to the target welcome mode, the welcome light control method of this embodiment also includes:
[0137] Step F1, detecting whether the vehicle has a preset interruption operation.
[0138] In this embodiment, the specific content of the preset interruption operation is not limited here, such as the brake pedal being pressed.
[0139] Step F2: if there is a preset interruption operation, the vehicle is controlled to stop executing the welcoming animation corresponding to the target welcoming mode, and the vehicle is controlled to execute the corresponding interruption processing.
[0140] In actual applications, when the brake pedal is pressed, it indicates that there may be a potential driving safety hazard in the driving scenario, and the vehicle needs to be slowed down or stopped. Therefore, in this embodiment, the vehicle needs to be controlled to stop playing the welcome animation and respond and process the vehicle's braking request in a timely manner.
[0141] In a specific embodiment, in order to overcome the problems of incorrect vehicle welcome light pattern recognition, unsynchronized welcome animation, and exception handling interrupt errors ignored in the existing vehicle welcome light control scheme, a vehicle welcome function network system architecture is proposed. The mode definition of the welcome light, signal synchronization control, and exception handling logic algorithm are collaboratively designed with software and hardware through the characteristics of the chips and circuit devices selected for the actual vehicle model. The welcome light mode can be accurately defined, the welcome animations of multiple lamps on the entire vehicle can be precisely synchronized, and the welcome animation interrupt requirements can be met.
[0142] In a specific embodiment, Figure 3 This is the network system architecture diagram of the vehicle welcome function. Figure 3It can be seen that the driving scenarios in which the user operates the vehicle include unlocking scenarios and charging scenarios. Specifically, in the unlocking scenario of the vehicle, the NFC controller 2 (Near Field Communication) detects the NFC signal of the card key 1, or the Bluetooth antenna 4 detects the Bluetooth signal of the Bluetooth key 3 and transmits it to the Bluetooth module 5; the Bluetooth module 5 recognizes the signal and sends the vehicle unlocking signal to the body domain controller BDC 8; or the RF module 7 detects the RF signal of the remote control key 6 and sends the vehicle unlocking signal to the body domain controller BDC 8. In the charging scenario, the PCU 11 (Power Control Unit) recognizes the hard-wire connection signal of the charging gun 10, and the BMS12 (Battery Management System) outputs the battery charging signal to the body domain controller BDC 8. After receiving the vehicle unlocking signal or the vehicle charging signal, the body domain controller BDC 8 judges the welcome mode and outputs the corresponding welcome power signal and welcome enable signal to the lamp 9; the electronic unit in the lamp 9 recognizes the welcome mode and drives the optical unit to perform the welcome animation. In addition, if an abnormality such as repeated welcome function requests or interruption requests occurs, the vehicle is controlled to generate an overlap signal or an interruption signal and send it to the body domain controller BDC 8 for corresponding abnormality processing.
[0143] In a specific embodiment, based on Figure 3 Based on the vehicle welcome function network system architecture, the corresponding vehicle welcome light control logic algorithm is designed, including three parts: mode judgment, signal synchronization and exception handling.
[0144] See also Figure 4 , the algorithm is as follows:
[0145] 1. Pattern judgment.
[0146] In this embodiment, mode judgment includes welcome mode definition and mode recognition, wherein the mode definition defines the welcome mode preconditions, mode quantity and interval range; and the mode recognition defines the signal calculation method of the welcome mode.
[0147] 1.1. Mode definition
[0148] In this embodiment, the precondition for the vehicle welcome light function to be executed is that the power gear is in the OFF gear, the vehicle anti-theft state is ON, and the vehicle is not started. Specifically, the number of modes of the vehicle welcome light function is determined by the following formula:
[0149]
[0150] Where mod is the number of welcome modes, Δ is the PWM duty cycle signal accuracy of the welcome enable signal of the body domain controller BDC, and F b is the duty cycle forbidden zone width. It should be noted that Δ and F b These are design parameters, which are determined based on the crystal oscillator accuracy and capacitor discharge characteristic adaptability of the body domain controller BDC.
[0151] In this embodiment, the welcoming mode may include getting on the vehicle, starting charging, and ending charging, and the maximum number of welcoming modes is determined by mod.
[0152] In this embodiment, the range of the duty cycle signal of the welcome enable signal PWM of each welcome mode is:
[0153]
[0154] Among them, I j is the interval of the welcome enable signal PWM duty cycle signal, mod j For a certain set welcome mode j, is the duty cycle of the PWM signal of the welcome mode j, and b is the capacitor discharge delay of the lamp detection circuit.
[0155] 1.2. Pattern recognition.
[0156] In this embodiment, after receiving the vehicle unlocking signal or the vehicle charging signal, the body domain controller BDC sends a welcome power signal to the lamp. After the lamp electronic unit is fully started, the body domain controller BDC outputs a welcome enable signal. The lamp electronic unit detects the signal waveform within m welcome enable signal cycles and calculates the mean duty cycle D of the welcome enable signal within n cycles. The lamp electronic unit determines the interval where the mean duty cycle D of the welcome enable signal is located, determines the welcome mode and executes it. The specific expression is:
[0157]
[0158] Where D is the average duty cycle of the welcome enable signal in n cycles out of m cycles, m, n are the number of welcome enable signal cycles and n∈m, d i is the duty cycle of the i-th welcome enable signal. In practical applications, the value of D falls within the set I j The range is the corresponding welcome mode.
[0159] 2. Signal synchronization.
[0160] In this embodiment, signal synchronization takes into account hardware delay, signal difference synchronization between BDC and each lamp electronic unit, and response synchronization after the welcome animation is played, and corresponding start synchronization, process synchronization, and end synchronization are designed.
[0161] 2.1. Start synchronization.
[0162] In this embodiment, in order to start the welcome function of each lamp electronic unit synchronously, after the body domain controller BDC receives the vehicle unlocking / locking signal or the vehicle charging signal, it sends a welcome power signal to the lamp. After the lamp electronic unit is fully started after time T on , the body domain controller BDC sends a welcome enable signal. Specifically, the startup time T on is calculated according to the following formula:
[0163] T ob = T delay-on + T up + T RC-on + ε
[0164] where T delay-on is the chip startup delay, T up is the chip startup time, T RC-on is the charging time of the peripheral circuit capacitor, and ε is the time margin. It should be noted that the time margin ε is an empirical value, and the other parameters are the parameters in the specification of the selected chip model.
[0165] 2.2. Process synchronization.
[0166] In this embodiment, in order to synchronize the welcome function of each lamp electronic unit, also known as the light control unit, i.e., (Light Control Unit, LCU), during the execution process, the lamp electronic unit makes a logical judgment on the difference between the time of the welcome enable signal of the body domain controller BDC and its own clock oscillator time within the total cycle S, and takes continue execution, wait, and skip frame operations according to the difference situation, as shown in Table 1 below and Figure 5 shown.
[0167] Table 1 Process synchronization logical judgment
[0168] state Total period S Period Difference action CASE1 <![CDATA[S n <S n ']]> <![CDATA[S dif <TH]]> continue CASE2 <![CDATA[S n <S n ']]> <![CDATA[S dif >TH]]> wait CASE3 <![CDATA[S n >S n ']]> <![CDATA[S dif <TH]]> continue CASE4 <![CDATA[S n >S n ']]> <![CDATA[S dif >TH]]> Frame Skipping
[0169] It should be noted that in the table, S n is the total cycle duration of BDC (i.e., the first duration), S n ' is the total cycle duration of the lamp (i.e., the second duration), S dif = |S n '- S n | is the cycle duration difference (i.e., the absolute difference), and TH is the preset time difference threshold. Specifically, for status CASE1: S n < S n ', S dif < TH, it indicates that the lamp execution speed is faster than BDC but less than the set threshold, which is regarded as synchronized, so the welcome action continues to be executed. For status CASE2: S n<S n ', S dif >When TH, it indicates that the execution speed of the lamp is faster than that of the BDC and greater than the set threshold value. It is necessary to wait until the synchronization position with the BDC and then continue to execute the welcome action. For status CASE3: S n >S n ', S dif <When TH, it indicates that the execution speed of the lamp is slower than that of the BDC but less than the set threshold value, which is regarded as synchronization. Therefore, the welcome action continues to be executed. For status CASE4: S n >S n ', S dif >When TH, it indicates that the execution speed of the lamp is slower than that of the BDC and greater than the set threshold value. It is necessary to skip frames to the synchronization position with the BDC and then continue to execute the welcome action.
[0170] 2.3. End synchronization.
[0171] It should be noted that if the welcome enable signal time is shorter than the welcome animation time, the welcome animation may not be played completely; if the welcome enable signal time is equal to the welcome animation time, the welcome animation may not be played completely due to the asynchronous timing of the BDC and the LCU. Therefore, in this embodiment, in order to synchronize after the welcome function of each lamp electronic unit is executed, the welcome enable signal time is longer than the welcome animation time. When the welcome animation ends, the lamp electronic unit plays an empty animation (i.e., all lights are turned off) until the welcome enable signal is interrupted. Refer to Figure 6 the schematic diagram of the end synchronization of the welcome animation.
[0172] 3. Abnormal handling.
[0173] In this embodiment, the abnormal handling includes signal overlap and interruption handling. Among them, the signal overlap defines the control logic for receiving a new welcome signal again during the execution of the welcome action; the interruption handling defines the interruption situation of the welcome action.
[0174] 3.1. Signal overlap.
[0175] In this embodiment, during the execution cycle of the welcome animation, when the body domain controller BDC receives a new vehicle unlocking / locking signal or a vehicle charging signal, it is necessary to judge the welcome mode of this signal. Specifically, when the welcome mode corresponding to the new signal repeats the welcome mode being executed, the BDC does not respond and continues to execute the current welcome action until the end; when the welcome mode corresponding to the new signal does not repeat the welcome mode being executed, the BDC responds and powers off the welcome power signal, powers off the welcome enable signal, T off After time, the welcome power signal is powered on, T onAfter the time (see the previous formula), the welcome enable signal is powered and the new welcome animation is executed. It should be noted that T off It indicates the total time for the chip to be turned off and its peripheral filter circuit to discharge, that is, the time when the charge in the chip circuit is completely released and the chip stops working. Specifically, T off Calculated as follows:
[0176] T off =T delay-off +T down +T RC-off +ε
[0177] Among them, T delay-off is the chip shut down delay, T down is the chip off time, T RC-off is the discharge time of the peripheral circuit capacitor, and ε is the time margin. It should be noted that the time margin ε is an empirical value, and the other parameters are the parameters in the specification of the selected chip model; among them, the chip shutdown time T down and T on Chip startup time T in the time formula up The values of the two can be the same or different. In practical applications, due to the characteristics of the chip, in most cases T up The value is less than T down .
[0178] 3.2. Interrupt handling.
[0179] In this embodiment, during the execution cycle of the welcome animation, when the body domain controller BDC receives the signal shown in Table 2, interrupt processing is performed in the order of powering off the welcome power signal and powering off the welcome enable signal.
[0180] Table 2 Welcoming mode interrupt processing
[0181] Serial number Interrupt handling 1 The power position is switched from OFF to ON. 2 Engine start 3 Brake pedal depressed 4 Hazard warning (double flash) / passing light / turn signal / brake light / position light function is on 5 The Bluetooth key goes from a long-range area to an undetected state 6 The welcome enable signal is at a low level for n consecutive cycles
[0182] In summary, the welcome light control method of the embodiment of the present invention solves the problems of incorrect pattern recognition due to insufficient hardware precision, or asynchronous welcome animations of various lamps due to hardware startup time and timing errors, or interruption errors caused by unclear exception handling logic. It can effectively ensure that the mode judgment of the welcome light function execution process is accurate, the action execution is synchronous, and the interrupt response is correct, and does not involve hardware changes. It has the significant advantages of simple operation process, low control cost and strong flexibility.
[0183] In this embodiment, a welcome light control system is also provided, which is used to implement the above embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As the term "module" is used below, it can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0184] The present invention provides a welcome light control system, such as Figure 7 As shown, the system includes:
[0185] The response module 701 is used to output a welcome enable signal of the vehicle based on the operation type of the preset operation in response to the user's preset operation on the vehicle.
[0186] The determination module 702 is used to determine a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle.
[0187] The control module 703 is used to control the vehicle's welcome light to execute a welcome animation corresponding to a target welcome mode.
[0188] In some optional embodiments, the response module 701 includes: a first response submodule, a second response submodule, a third response submodule and a fourth response submodule; wherein the first response submodule is used to detect whether the vehicle has a vehicle unlocking signal or a battery charging signal, wherein the vehicle unlocking signal is generated by the vehicle in response to the user's unlocking operation on the vehicle, and the battery charging signal is generated by the vehicle in response to the user's charging operation on the vehicle; the second response submodule is used to output the vehicle's welcome enable signal if it exists; the third response submodule is used to return to the step of detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal if it does not exist; the fourth response submodule is used to output the vehicle's welcome power signal and wait for a first preset time before outputting the vehicle's welcome enable signal when detecting that the vehicle has a vehicle unlocking signal or a battery charging signal, wherein the welcome power signal is used to initialize the vehicle's welcome light, and the first preset time is determined based on the time required for the vehicle's welcome light to turn on.
[0189] In some optional embodiments, the determination module 702 includes: a first determination submodule and a second determination submodule; wherein the first determination submodule is used to calculate the average duty cycle of the welcome enable signal; the second determination submodule is used to determine the current welcome animation corresponding to the average duty cycle based on a preset relationship, and determine the current welcome animation as the target welcome mode, wherein the preset relationship is a mapping relationship between different duty cycle intervals and the welcome animation.
[0190] In some optional implementations, the determination module 702 further includes: a third determination submodule and a fourth determination submodule; wherein the third determination submodule is used to obtain device parameters of the vehicle, wherein the device parameters include the crystal oscillator accuracy and capacitor discharge characteristics of the vehicle body domain controller; determine the duty cycle signal accuracy and the duty cycle forbidden zone width based on the device parameters; determine the number of modes corresponding to the welcome animation supported by the vehicle based on the duty cycle signal accuracy and the duty cycle forbidden zone width; for each welcome animation, obtain the welcome enable signal respectively, calculate the current duty cycle corresponding to the welcome enable signal, and based on the current duty cycle, the duty cycle signal The accuracy and preset error determine the corresponding duty cycle interval; a preset relationship is established based on the duty cycle intervals corresponding to all welcome animations; a fourth determination submodule is used to obtain the current status data of the vehicle, the current status data includes power gear, vehicle anti-theft status and vehicle start-up status; based on the current status data, it is determined whether the preset conditions are met, the preset conditions include the power gear is OFF, the vehicle anti-theft status is ON, and the vehicle is in at least one of the unstarted state; if so, the target welcome mode corresponding to the welcome enable signal is determined; if not, the step of obtaining the current status data of the vehicle is returned again.
[0191] In some optional embodiments, the control module 703 includes: a first control submodule, a second control submodule and a third control submodule; wherein the first control submodule is used to respectively obtain a first duration corresponding to the vehicle outputting a welcome enable signal and a second duration corresponding to the vehicle executing a welcome function; the second control submodule is used to calculate the absolute difference between the second duration and the first duration; the third control submodule is used to determine a preset playback action corresponding to the welcome animation based on the first duration, the second duration and the absolute difference, and the preset playback action includes continue execution, wait and frame skipping operations.
[0192] In some optional embodiments, the third control submodule includes: a first control unit, a second control unit and a third control unit; wherein the first control unit is used to determine that the preset playback action corresponding to the welcome animation is to continue execution if the absolute difference is less than a preset time difference threshold; the second control unit is used to determine that the preset playback action corresponding to the welcome animation is to wait if the first duration is less than the second duration and the absolute difference is not less than the preset time difference threshold; the third control unit is used to determine that the preset playback action corresponding to the welcome animation is a frame skip operation if the first duration is greater than the second duration and the absolute difference is not less than the preset time difference threshold.
[0193] In some optional embodiments, the response module 701 also includes: a synchronization submodule, a repetition submodule and an interruption submodule; wherein the synchronization submodule is used to keep outputting a welcome enable signal while controlling the vehicle's welcome light to execute a welcome animation corresponding to a target welcome mode, until the welcome animation stops playing; the repetition submodule is used to detect whether the vehicle has a new welcome enable signal, which is output by the vehicle in response to the user's current preset operation on the vehicle; determine the current welcome mode corresponding to the new welcome enable signal; if the current welcome mode is the same as the target welcome mode, control the vehicle to stop outputting the new welcome enable signal. An enable signal is sent, and the welcome animation corresponding to the target welcome mode continues to be executed until the welcome animation is finished; if the current welcome mode is different from the target welcome mode, the vehicle is controlled to wait for the second preset time and then stop executing the welcome animation corresponding to the target welcome mode, and the vehicle is controlled to execute the welcome animation corresponding to the current welcome mode after waiting for the first preset time, wherein the second preset time is determined based on the time required for the vehicle's welcome lights to turn off; an interrupt submodule is used to detect whether the vehicle has a preset interrupt operation; if there is a preset interrupt operation, the vehicle is controlled to stop executing the welcome animation corresponding to the target welcome mode, and the vehicle is controlled to execute the corresponding interrupt processing.
[0194] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.
[0195] The welcome light control system in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0196] The welcome light control system of the embodiment of the present invention can conduct in-depth research on the execution process of the welcome light function, realize the correct identification of the target welcome mode, and also improve the user's control efficiency of the welcome light and enhance the user's experience.
[0197] A vehicle is also provided in an embodiment of the present invention, and the vehicle includes a controller. The controller in this embodiment is a vehicle controller, which is used to perform operations such as power supply / power off, sleep and wake up of the sub-controllers and network nodes under it, and each power supply interface thereof can collect the real-time current output. Other controllers with the above functions are applicable.
[0198] Figure 8 is a schematic diagram of the structure of the controller provided by an optional embodiment of the present invention, such as Figure 8As shown, the controller includes: one or more processors 101, a memory 102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the controller, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple controllers can be connected, and each controller provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 101 is taken as an example.
[0199] The processor 101 may be a central processing unit, a network processor or a combination thereof. The processor 101 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0200] The memory 102 stores instructions executable by at least one processor 101 so as to enable at least one processor 101 to implement the method shown in the above embodiment.
[0201] The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the controller, etc. In addition, the memory 102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 102 may optionally include a memory remotely arranged relative to the processor 101, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0202] The memory 102 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 102 may also include a combination of the above types of memory.
[0203] The controller also includes a communication interface 103, which is used for the main control chip to communicate with other devices or communication networks.
[0204] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor main control chip or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0205] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A welcome light control method, characterized in that: The method comprises: In response to a preset operation of the vehicle by the user, outputting a welcome enable signal of the vehicle based on the operation type of the preset operation; Determining a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle; Controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode.
2. The welcome light control method according to claim 1, characterized in that: The determining the target welcome mode corresponding to the welcome enable signal includes: Calculating an average duty cycle of the welcome enable signal; The current welcome animation corresponding to the average duty cycle is determined based on a preset relationship, and the current welcome animation is determined as a target welcome mode, wherein the preset relationship is a mapping relationship between different duty cycle intervals and the welcome animation.
3. The welcome light control method according to claim 2, characterized in that: The process of constructing the preset relationship includes: Acquiring device parameters of the vehicle, wherein the device parameters include crystal oscillator accuracy and capacitor discharge characteristics of a vehicle body domain controller; Determining a duty cycle signal accuracy and a duty cycle forbidden zone width based on the device parameters; Determining the number of modes corresponding to the welcoming animation supported by the vehicle based on the duty cycle signal accuracy and the duty cycle forbidden zone width; For each welcoming animation, respectively obtain a welcoming enable signal, calculate a current duty cycle corresponding to the welcoming enable signal, and determine a corresponding duty cycle interval based on the current duty cycle, the duty cycle signal accuracy and a preset error; A preset relationship is established based on the duty cycle intervals corresponding to all welcoming animations.
4. The welcome light control method according to claim 1, characterized in that: In the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the method further includes: Respectively obtaining a first duration corresponding to the vehicle outputting a welcome enable signal and a second duration corresponding to the vehicle executing a welcome function; Calculate the absolute difference between the second duration and the first duration; Based on the first duration, the second duration and the absolute difference, a preset playback action corresponding to the welcoming animation is determined, and the preset playback action includes continuing execution, waiting and frame skipping operations.
5. The welcome light control method according to claim 4, characterized in that: The determining, based on the first duration, the second duration and the absolute difference, a preset playback action corresponding to the welcoming animation includes: If the absolute difference is less than the preset time difference threshold, determining that the preset play action corresponding to the welcoming animation is to continue to execute; If the first duration is less than the second duration, and the absolute difference is not less than the preset time difference threshold, determining that the preset playback action corresponding to the welcoming animation is waiting; If the first duration is greater than the second duration, and the absolute difference is not less than a preset time difference threshold, it is determined that the preset playback action corresponding to the welcoming animation is a frame skipping operation.
6. The welcome light control method according to claim 1, characterized in that: The method further comprises: During the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the welcome enable signal is outputted until the welcome animation is finished playing and then stops.
7. The welcome light control method according to claim 1, characterized in that: The operation type of the preset operation includes an unlocking operation and a charging operation, and in response to the preset operation of the vehicle by the user, outputting the welcome enable signal of the vehicle based on the operation type of the preset operation includes: Detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal, wherein the vehicle unlocking signal is generated by the vehicle in response to a user's unlocking operation on the vehicle, and the battery charging signal is generated by the vehicle in response to a user's charging operation on the vehicle; If so, a welcome enable signal of the vehicle is output accordingly; If not, the process returns to the step of detecting whether the vehicle has a vehicle unlocking signal or a battery charging signal.
8. The welcome light control method according to claim 7, characterized in that: Before outputting the welcome enabling signal of the vehicle based on the operation type of the preset operation, the method further includes: When a vehicle unlocking signal or a battery charging signal is detected in the vehicle, the vehicle's welcome power signal is output and after waiting for a first preset time, the vehicle's welcome enable signal is output accordingly, wherein the welcome power signal is used to initialize the vehicle's welcome lights, and the first preset time is determined based on the time required for the vehicle's welcome lights to turn on.
9. The welcome light control method according to claim 2, characterized in that: Before determining the target welcome mode corresponding to the welcome enable signal, the method further includes: Acquiring current status data of the vehicle, the current status data including power gear position, vehicle anti-theft status and vehicle start status; Determine whether a preset condition is met based on the current state data, wherein the preset condition includes at least one of the power gear is OFF, the vehicle anti-theft state is ON, and the vehicle is in an unstarted state; If yes, determining the target welcome mode corresponding to the welcome enable signal; If not, return to the step of obtaining the current status data of the vehicle.
10. The welcome light control method according to claim 8, characterized in that: In the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the method further includes: Detecting whether the vehicle has a new welcome enable signal, where the new welcome enable signal is output by the vehicle in response to a user's current preset operation on the vehicle; Determining a current welcome mode corresponding to the new welcome enable signal; If the current welcome mode is the same as the target welcome mode, controlling the vehicle to stop outputting the new welcome enable signal, and continuing to execute the welcome animation corresponding to the target welcome mode until the welcome animation ends; If the current welcome mode is different from the target welcome mode, the vehicle is controlled to stop executing the welcome animation corresponding to the target welcome mode after waiting for a second preset time, and the vehicle is controlled to execute the welcome animation corresponding to the current welcome mode after waiting for a first preset time, wherein the second preset time is determined based on the time required for the vehicle's welcome lights to be turned off.
11. The welcome light control method according to claim 1, characterized in that: In the process of controlling the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode, the method further includes: Detecting whether the vehicle has a preset interruption operation; If there is a preset interruption operation, the vehicle is controlled to stop executing the welcome animation corresponding to the target welcome mode, and the vehicle is controlled to execute the corresponding interruption processing.
12. A welcome light control system, characterized in that: The system comprises: a response module, configured to output a welcome enable signal of the vehicle based on an operation type of the preset operation in response to a preset operation of the vehicle by a user; a determination module, configured to determine a target welcome mode corresponding to the welcome enable signal, wherein the target welcome mode is any one of a plurality of welcome animations supported by the vehicle; A control module is used to control the welcome light of the vehicle to execute the welcome animation corresponding to the target welcome mode.
13. A vehicle, characterized in that: The vehicle includes a controller, which includes: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the welcome light control method described in any one of claims 1 to 11 by executing the computer instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the welcome light control method according to any one of claims 1 to 11.
Citation Information
Cited By
Vehicle intelligent welcome control method and system
CN119527215A
