Sound field playback CAN drive active noise reduction logic verification method and system
By establishing the correspondence between vehicle state parameters and sound field playback scenarios, candidate switching paths are generated and CAN signals are injected synchronously. Sound pressure response and controller mode are collected, and risk paths of the active noise cancellation system during the switching process are identified. This solves the problem of physical risks that are difficult to identify in the existing technology and achieves more reliable verification.
Patent Information
- Application Number
- CN202611546265.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-08
- Publication Date
- 2026-11-10
AI Technical Summary
Existing technologies struggle to identify potential physical risks in active noise cancellation systems during continuous vehicle operation mode switching, especially when the controller logic executes correctly, such as spatial breaks, deviations, or disappearances in the effective noise cancellation connectivity area.
By obtaining the range of vehicle status parameters, the correspondence between the sound field playback scene and the active noise cancellation mode is established, candidate switching paths are generated, CAN signals are injected synchronously to drive the sound field playback, sound pressure response and controller mode are collected, noise reduction amount is calculated and connected regions are divided, risk paths are identified, the set of permissible states is determined, and it is determined whether there is a risk of damage to the controller.
It enables dynamic tracking and identification of the spatial integrity of the noise reduction connectivity area during the switching of operating conditions of the active noise reduction system, improves the ability to identify potential spatial acoustic hazards under the correct execution of controller logic, and provides more reliable verification conclusions.
Smart Images

Figure CN123065780A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of testing and verification technology for automotive active noise control systems, and in particular to a method and system for verifying the CAN-driven active noise reduction logic of sound field playback. Background Technology
[0002] Active noise cancellation technology has been widely used in the automotive field. With the popularization of new energy vehicles, the masking effect of engine noise has weakened, and road noise and wind noise have become the main noise sources in the vehicle. The working scenarios of active noise cancellation systems have gradually expanded from the relatively steady-state engine order noise control to the control of road noise and wind noise with a wider operating range and more drastic changes in acoustic environment.
[0003] However, existing technologies are limited to verifying the internal state identifiers of the controller, making it difficult to reveal a type of physical risk that may still occur even when the controller logic is executed correctly.
[0004] Specifically, when the vehicle continuously crosses the mode switching boundary, even if the controller accurately completes the mode switching according to the preset logic, the effective noise reduction connected area formed by active noise reduction in the target head position area may still experience spatial breakage, deviation or disappearance during the switching process. Summary of the Invention
[0005] In a first aspect, the present invention provides a method for verifying the active noise reduction logic of a CAN driver for sound field playback, comprising:
[0006] S1. Obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone.
[0007] S2. Within the range of values, generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode, and use them as candidate switching paths.
[0008] Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence.
[0009] S3. Based on the spatial sound pressure distribution time series, calculate the noise reduction amount at each time step, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction target points. Then, according to the spatial adjacency relationship between the sampling points, connect the noise reduction target points to obtain the transient quiet zone connected region sequence during the switching process.
[0010] The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path.
[0011] S4. Based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths, determine the set of allowed states for active noise cancellation mode switching.
[0012] S5. For the vehicle operating condition to be verified, synchronously inject CAN signal and execute sound field playback to obtain the actual mode switching status of the controller.
[0013] Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
[0014] As a preferred embodiment of the sound field playback CAN-driven active noise cancellation logic verification method of the present invention, wherein: S1 specifically includes: reading the mode switching conditions, CAN signal definition and calibration parameters of the active noise cancellation controller, and determining the vehicle state parameters that affect the active noise cancellation mode switching;
[0015] For each vehicle status parameter, real vehicle data is collected and bench scans are performed. The change boundaries and operating boundaries of each vehicle status parameter before and after mode switching are recorded to determine the value range of each vehicle status parameter.
[0016] Based on the different combinations of values of each vehicle status parameter, extract the corresponding original in-vehicle noise data or call the corresponding sound field playback audio to determine the corresponding sound field playback scene.
[0017] Based on the output mode of the active noise cancellation controller under each combination of vehicle state parameter values, a correspondence table is established between vehicle state parameters, sound field playback scenarios, and active noise cancellation modes.
[0018] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: in step S1, the target head position region is determined, and the noise reduction compliance connected region of the target head position region in steady-state mode is obtained as a reference quiet zone, including:
[0019] Based on the seat on the active noise cancellation test bench, the designed ear point position of the target occupant is determined, and a spatial sampling area covering the range of head movement is established with the designed ear point position as the center, which is used as the target head position area.
[0020] When the active noise cancellation controller is in steady-state mode and the sound field playback scene remains unchanged, the sound pressure response of each sampling point in the target head position area is collected, and the noise reduction amount of each sampling point is calculated.
[0021] The sampling points where the noise reduction reaches the preset threshold are determined as noise reduction standard points. The adjacent noise reduction standard points are connected and divided to obtain the noise reduction standard connected area covering the designed ear point position, which serves as the reference quiet zone.
[0022] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: S2 includes:
[0023] Within the range of values for each vehicle state parameter, based on the corresponding relationship table, the start and end states of the mode before and after switching are selected, and the vehicle state parameters that trigger the mode switching are used to generate a continuous change sequence of working conditions from the start state to the end state according to the preset step size and time order, which serves as a candidate switching path.
[0024] At each moment of each candidate switching path, the vehicle state parameters at that moment are converted into corresponding CAN messages and sent to the active noise cancellation controller. At the same time, the sound field playback scene corresponding to the vehicle state parameters at that moment is invoked and played, so that the CAN input received by the active noise cancellation controller changes synchronously with the acoustic environment along the same candidate switching path.
[0025] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: the formation of the spatial sound pressure distribution time sequence and the controller mode sequence in S2 includes:
[0026] Multiple spatial sampling points are arranged within the target head region;
[0027] During the execution of each candidate switching path, the sound pressure response of each sampling point at each sampling time is collected according to a unified time reference. The sound pressure level of each sampling point at the corresponding sampling time is calculated based on the sound pressure response, and the sound pressure level of each sampling point is used to form the spatial sound pressure distribution at that sampling time.
[0028] Arrange each spatial sound pressure distribution in the order of sampling time to form a spatial sound pressure distribution time series;
[0029] Simultaneously, the mode identifiers output by the active noise cancellation controller at each sampling time are read and arranged in the order of sampling time to form a controller mode sequence.
[0030] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: in step S3, the noise reduction compliant points are connected according to the spatial adjacency relationship between sampling points to obtain a sequence of transient quiet zone connected regions during the switching process, including:
[0031] Sampling points are arranged at preset spatial intervals within the target head region, and spatial adjacency relationships are established between each sampling point;
[0032] The noise reduction amount of each sampling point is calculated based on the spatial sound pressure distribution time series and the reference sound pressure level of the sampling points in steady state mode, and the sampling points whose noise reduction amount reaches the preset noise reduction threshold are determined as noise reduction compliance points.
[0033] Based on spatial adjacency, adjacent noise reduction compliant points are divided into the same connected cluster, and each connected cluster is determined as the transient quiet zone connected region at that sampling time.
[0034] Arrange the transient static region connected regions corresponding to each sampling time in the order of sampling time to form the transient static region connected region sequence.
[0035] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: in step S3, determining the candidate switching path as a risky path includes:
[0036] Compare the controller mode sequence with the target mode changes corresponding to the candidate switching paths;
[0037] When the controller mode sequence completes the mode switching according to the target mode change within the preset switching time period, it is determined that the controller mode switching is correct;
[0038] Under the condition that the switch is correct, the sequence of transient quiet regions connected to the candidate switch path is compared with the reference quiet region;
[0039] A quiet zone preservation failure event is determined to have occurred when any of the following situations occur during the handover process:
[0040] First, the transient quiet zone connected region covering the design ear point location is split from a continuous connected region into multiple non-connected sub-regions;
[0041] Second, the transient quiet zone connected region no longer covers the design ear point position, or the overlap ratio between the transient quiet zone connected region and the reference quiet zone is lower than the preset overlap threshold.
[0042] Third, the geometric center of the transient quiet zone connected region is offset from the geometric center of the reference quiet zone by more than a preset distance threshold.
[0043] Fourth, there is no transient quiet zone connected region within the target head position area that meets the preset noise reduction threshold and covers the designed ear point position;
[0044] When the controller mode switch is correct and a quiet zone preservation failure event occurs, the candidate switching path is identified as a risk path.
[0045] As a preferred embodiment of the CAN driver active noise cancellation logic verification method for sound field playback described in this invention, wherein: in step S4, determining the set of active noise cancellation mode switching allowed states includes:
[0046] Candidate switching paths that have not experienced a quiet zone preservation failure event are screened, and the vehicle state parameter combination of each candidate switching path at each sampling time is extracted as a safe state point.
[0047] Deduplication of safe state points with the same combination of vehicle state parameters is performed, and the safe state points are sorted according to the order of change of the values of each vehicle state parameter in order to determine adjacent safe state points.
[0048] Connect adjacent safe state points that, under the same mode switching direction, have numerical differences in each vehicle state parameter dimension that do not exceed the corresponding parameter resolution, to form a continuous safe state interval.
[0049] By merging the continuous safe state intervals, we obtain the set of states that allow switching of active noise cancellation mode.
[0050] As a preferred embodiment of the CAN-driven active noise reduction logic verification method for sound field playback described in this invention, wherein: in step S5, determining whether the controller has a risk of damage and outputting a verification conclusion includes:
[0051] For the vehicle operating conditions to be verified, CAN signals are injected synchronously according to a unified time base and sound field playback is performed. At each sampling moment, the current vehicle status parameter combination and the current mode identifier output by the active noise cancellation controller are read.
[0052] Based on the current combination of vehicle status parameters, query the set of allowed states for switching active noise cancellation mode to determine whether the sampling moment belongs to an allowed switching state;
[0053] The change in the current mode identifier between adjacent sampling times is determined as the actual mode switching state;
[0054] When the current vehicle status parameter combination does not belong to the allowed switching state, but the actual mode switching status shows that a mode switch has occurred, or when the current vehicle status parameter combination belongs to the allowed switching state, but the actual mode switching status shows that a mode switch has not occurred, it is determined that the controller is at risk of being damaged.
[0055] Record the vehicle status parameter combination, actual mode switching status and occurrence time corresponding to the damage risk, and output the verification conclusion.
[0056] Secondly, the present invention provides a sound field playback CAN-driven active noise reduction logic verification system, comprising:
[0057] The module is used to obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone.
[0058] The acquisition module is used to generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode within the range of values, and to serve as candidate switching paths.
[0059] Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence.
[0060] The calculation and comparison module is used to calculate the noise reduction amount at each time step based on the spatial sound pressure distribution time series, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction standard points. The noise reduction standard points are connected according to the spatial adjacency relationship between the sampling points to obtain the transient quiet zone connected region sequence during the switching process.
[0061] The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path.
[0062] The determination module is used to determine the set of permissible states for active noise cancellation mode switching based on the combination of vehicle state parameters corresponding to candidate switching paths determined to be risky paths.
[0063] For the vehicle operating conditions to be verified, a CAN signal is injected synchronously and sound field playback is executed to obtain the actual mode switching status of the controller.
[0064] Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
[0065] The beneficial effects of this invention are as follows: By generating candidate paths that cross the mode switching boundary in a continuous working space, combining sound field playback and CAN signal synchronous injection to drive the controller to execute the switching, and collecting multi-point spatial sound pressure distribution in the target head position area, dynamic tracking and identification of the spatial integrity of the noise reduction compliant connected area during the switching process are realized; by condensing candidate paths that have not experienced quiet zone breakage into a set of permissible states bound to the switching direction, the physical safety boundary is used instead of the traditional rule table as the verification benchmark, which improves the ability to identify spatial acoustic hazards that may still occur under the condition that the controller logic is executed correctly, and enables the verification conclusion to reflect hidden risks that traditional methods cannot reveal. Attached Figure Description
[0066] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0067] Figure 1 This is a flowchart of the active noise reduction logic verification method for CAN drive in sound field playback in Example 1;
[0068] Figure 2 This is a structural diagram of the active noise reduction logic verification method for CAN driver in sound field playback in Example 1. Detailed Implementation
[0069] To make the above-mentioned objectives, features and advantages of the present invention more readily understood, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0070] Example 1, referring to Figure 1 and Figure 2 This is the first embodiment of the present invention, which provides a method for verifying the active noise reduction logic of CAN driver for sound field playback, including the following steps:
[0071] S1. Obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone.
[0072] S2. Within the range of values, generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode, and use them as candidate switching paths.
[0073] Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence.
[0074] S3. Based on the spatial sound pressure distribution time series, calculate the noise reduction amount at each time step, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction target points. Then, according to the spatial adjacency relationship between the sampling points, connect the noise reduction target points to obtain the transient quiet zone connected region sequence during the switching process.
[0075] The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path.
[0076] S4. Based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths, determine the set of allowed states for active noise cancellation mode switching.
[0077] S5. For the vehicle operating condition to be verified, synchronously inject CAN signal and execute sound field playback to obtain the actual mode switching status of the controller.
[0078] Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
[0079] S1. Obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone.
[0080] Specifically, this embodiment uses an active noise cancellation logic verification system for the driver's position as an example for description; the system includes a dynamic CAN signal injection host computer, a sound field playback stand, an active noise cancellation controller, a speaker and microphone system arranged in the same manner as the actual vehicle, and a spatial sampling device set in the target head position area; during implementation, the vehicle status parameter identification, value range determination and corresponding relationship table are completed first, and then the target head position area is determined and the reference quiet zone is obtained.
[0081] First, the software calibration file, mode switching condition file, and CAN message definition file of the active noise cancellation controller are read. Specifically, threshold parameters related to mode switching are extracted from the controller's calibration file, such as the vehicle speed threshold for enabling the active noise cancellation mode, the fault triggering condition for the protection off mode, and the suppression condition of mode switching when the window is open. The signal definitions, message IDs, periods, and dimensions related to the active noise cancellation logic are read from the CAN message definition file. The entry and exit conditions for each working mode are extracted from the mode switching condition file.
[0082] Based on the above reading results, the vehicle status parameters that affect the switching of active noise cancellation mode in this embodiment are determined to be: vehicle speed, window opening, door status, speaker malfunction status, and microphone malfunction status.
[0083] If engine speed, torque, or other control variables related to active noise reduction are also included in the controller calibration, they can be expanded and incorporated in the same way.
[0084] After determining the vehicle status parameters, the value range of each parameter is obtained. The method of obtaining the value range is not to simply refer to the theoretical range in the calibration file, but to adopt a combined approach of "real vehicle acquisition + bench scanning". Specifically, multi-condition acquisition is first carried out on the real vehicle. The test vehicle is arranged in a closed test road or a semi-anechoic test road and runs at different driving speeds, different window openings and different fault injection states, while recording CAN signals, controller output modes and in-vehicle noise audio.
[0085] By analyzing the state parameter values before and after the controller output mode change, the change boundaries of each vehicle state parameter before and after the mode switch are determined. By statistically analyzing the actual minimum, maximum and intermediate typical values in the experiment, the effective operating boundaries of each vehicle state parameter are determined. Subsequently, a fine scan is performed on the test bench around the above change boundaries. For example, the vehicle speed is scanned in steps of 2 km / h, the window opening is scanned in steps of 5%, and a normal / fault two-level switching scan is used for speaker failure and microphone failure, thereby further confirming the actual mode output of the controller under each parameter combination.
[0086] Through the above process, this embodiment finally determines that: the vehicle speed parameter range is 0 to 120 km / h, the window opening range is 0 to 100%, the door status includes two states: closed and not fully closed, the speaker fault status includes two states: normal and fault, and the microphone fault status includes two states: normal and fault.
[0087] The “range of values” here is not a purely theoretical range, but rather a working range that is directly related to the switching behavior of active noise cancellation modes and can be used in subsequent operating condition scanning and logic verification.
[0088] After obtaining the value range of each vehicle state parameter, a correspondence is established between the vehicle state parameters, the sound field playback scene, and the active noise cancellation mode. This correspondence is not an abstract mapping, but is established by confirming each item through "parameter combination - sound field sample - controller mode output".
[0089] The specific procedure is as follows: First, the original in-vehicle noise collected from the actual vehicle is classified according to the operating conditions to form a sound field playback audio library; each audio record is labeled with the corresponding vehicle speed, window opening, door status and fault status; then, a set of parameter combinations is selected from the aforementioned vehicle status parameter value range, the combination is converted into a CAN message and input to the active noise cancellation controller, and at the same time, the sound field playback audio with the same label as the parameter combination is played on the test bench, and the output mode is read after the controller stabilizes.
[0090] Record this set of "vehicle status parameter combination - sound field playback scene - controller output mode" as a record in the corresponding relationship table.
[0091] By iterating through all typical parameter combinations in this way, a complete correspondence table can be formed.
[0092] To make this mapping table feasible, a specific example is given below.
[0093] In this embodiment, for example, when the vehicle speed is 35km / h, the window opening is 0%, the door is closed, and the speaker and microphone are both working properly, the "medium-speed closed window road noise scenario" is invoked, and the controller outputs "road noise active noise reduction mode"; when the vehicle speed is 45km / h, the window opening is 30%, and other states are normal, the "medium-speed open window wind noise superimposed on road noise scenario" is invoked, and the controller outputs "protection shutdown mode".
[0094] For speaker malfunctions, microphone malfunctions, or low-speed operating conditions, they can be recorded as other entries in the corresponding relationship table in the same way.
[0095] Through this specific recording method, the correspondence table can not only explain which sound field playback scene should be called under what parameter combination, but also clarify what mode the controller should theoretically output under this combination, thus providing a clear benchmark for subsequent verification of "whether the mode switching is correct".
[0096] After completing the correspondence table, the target head position region is further determined.
[0097] In this embodiment, the target head position area is not a single ear point, nor is it a single point where the error microphone is located. Instead, it is a spatial area established around the actual range of movement of the target occupant's head. Specifically, the design ear point positions of the driver's left and right ear points are determined based on the seat installation position and standard driving posture on the active noise cancellation test bench. Then, a spatial sampling area covering the normal micro-movement range of the head is established with the center position of the left and right ear points as the reference.
[0098] For ease of implementation, this embodiment sets the region as a three-dimensional envelope, which covers 80mm to the left and right of the design ear point center in the left and right directions, 60mm to the front and back in the front and back directions, and 70mm to the top and bottom in the vertical direction; a three-dimensional sampling point array is arranged within this space at fixed intervals.
[0099] The target head position area determined in this way can accurately reflect the small-range fluctuations in the driver's head position under normal sitting posture. It will not ignore the differences in the distribution of the spatial sound field around the head due to a single-point measurement, thus providing a spatial basis for the subsequent extraction of "connected regions".
[0100] After the target head position region is determined, it is necessary to obtain the noise reduction compliant connected region of the target head position region in steady state mode as the reference quiet zone.
[0101] Therefore, this embodiment first selects a stable and repeatable baseline condition. The selected condition is: vehicle speed 35km / h, window opening 0%, door closed, speaker normal, microphone normal. According to the aforementioned correspondence table, the sound field playback scenario under this condition is "medium-speed closed window road noise scenario", and the controller output mode is "road noise active noise reduction mode". Under this condition, the sound field playback scenario is kept constant, and the controller is allowed to run stably for a period of time, for example, 10s. Then, the sound pressure response of each sampling point in the target head position area is collected.
[0102] To obtain the noise reduction amount, the active noise cancellation function was turned off again in the same scenario, and the reference sound pressure response at the same sampling point was collected.
[0103] For each sampling point, the noise reduction amount is calculated based on the current sound pressure level when active noise cancellation is turned on and the reference sound pressure level when active noise cancellation is turned off, where the noise reduction amount is equal to the reference sound pressure level minus the current sound pressure level; in this way, each sampling point obtains a corresponding noise reduction value.
[0104] Next, the noise reduction threshold is used to determine the noise reduction target.
[0105] In this embodiment, the preset threshold can be set to 3dB. That is, when the noise reduction of a certain sampling point is not less than 3dB, the sampling point is determined to be a noise reduction standard point. Then, according to the spatial adjacency relationship of the sampling points, the noise reduction standard points that are adjacent to each other in space are connected and divided.
[0106] Connectivity partitioning refers to grouping a set of noise-reduced, compliant points that can be continuously connected by adjacency into the same connected region. After connectivity partitioning, one or more noise-reduced, compliant connected regions may be obtained.
[0107] Among these connected regions, the noise reduction compliant connected region covering the designed ear point position is selected as the benchmark quiet zone.
[0108] If only one connected region covers the designed ear point location, then that region is directly determined as the reference quiet zone; if there are multiple connected regions, then the connected region that covers both the left and right ear design ear points is selected first; if there is no noise-reduction compliant connected region covering the designed ear point location, then the selected reference condition is not suitable for establishing the reference quiet zone, and it is necessary to reselect the steady-state mode condition or recheck the controller calibration and sound field playback consistency.
[0109] Thus, the range of vehicle state parameters, the corresponding relationship table, the target head position area, and the reference quiet zone are obtained, which serve as the basis for subsequent candidate switching path generation and quiet zone preservation judgment.
[0110] S2. Within the range of values, generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode, and use them as candidate switching paths.
[0111] Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence.
[0112] Specifically, in this embodiment, the generation of candidate switching paths is based on the "correspondence table of vehicle state parameters - sound field playback scene - active noise cancellation mode" that has been completed in S1.
[0113] First, select a set of starting states belonging to the pre-switch mode and a set of ending states belonging to the post-switch mode from the correspondence table, and then construct a continuous change process around the key parameters that cause the mode switch.
[0114] Specifically, taking the switch from the active road noise cancellation mode to the protection off mode in the driver's position as an example, the initial state is selected as "vehicle speed 35km / h, window opening 0%, door closed, speaker normal, microphone normal". This state corresponds to the medium-speed closed window road noise scenario, and the controller output mode is the active road noise cancellation mode. The ending state is selected as "vehicle speed 45km / h, window opening 30%, door closed, speaker normal, microphone normal". This state corresponds to the medium-speed open window wind noise superimposed on road noise scenario, and the controller output mode is the protection off mode.
[0115] Therefore, it can be concluded that at least vehicle speed and window opening are the trigger parameters for this mode switch, while the door status, speaker malfunction status, and microphone malfunction status remain unchanged during the switch.
[0116] After determining the start and end states, the vehicle state parameters that trigger the mode switching are continuously changed according to a preset step size and time sequence to generate multiple different candidate switching paths.
[0117] To ensure that the candidate switching paths can cover the changes in actual operating conditions and are easy to implement repeatedly on the test bench, this embodiment adopts a construction method that divides parameters, speeds, and order.
[0118] This embodiment can generate multiple candidate switching paths, including paths that only change the window opening, only change the vehicle speed, and simultaneously change both the vehicle speed and the window opening. Taking the path with simultaneous changes as an example, the vehicle speed linearly increases from 35km / h to 45km / h within 6 seconds, and the window opening linearly increases from 0% to 30%. The sampling period is 10ms, resulting in a total of 600 sampling moments.
[0119] By constructing multiple candidate switching paths with different parameter change directions and sequences, the active noise cancellation controller can undergo the process of transitioning from the pre-switching mode to the post-switching mode under various real-world boundary conditions, rather than being tested only under a single threshold jump.
[0120] After the candidate switching paths are generated, a unified timeline is established for each candidate switching path in the dynamic signal injection host computer.
[0121] During implementation, 10ms can be used as the basic time step. In each time step, the vehicle status parameter value corresponding to the current candidate switching path is read, and the vehicle status parameter at that moment is converted into the corresponding CAN message according to the predefined CAN message structure. The conversion process includes: mapping the vehicle speed parameter, window opening parameter, door status and fault status to the corresponding message ID, signal start bit, length and proportional coefficient according to the signal definition file, and then sending it to the active noise reduction controller by the host computer through the bus interface.
[0122] Since the vehicle state parameter values at each time step all originate from the same candidate switching path, the controller receives continuously changing dynamic operating conditions, rather than a series of discrete, static, independent messages.
[0123] The sound field playback control is performed synchronously with the dynamic CAN injection; specifically, at each time step, the sound field playback scene that should be played at that moment is determined based on the matching result of the current vehicle state parameters in the corresponding relationship table.
[0124] When the parameter value at a given moment corresponds exactly to a certain established typical scenario, the original in-vehicle noise audio corresponding to that scenario is directly called; when the parameter value at a given moment is between two typical scenarios, the audio of adjacent scenarios is linearly weighted and mixed according to the distance relationship between the current parameter and each typical scenario, or segmented and smooth switching is performed within a pre-set transition interval, thereby forming a transition sound field corresponding to the current operating condition.
[0125] To ensure that the sound field playback results can be used for subsequent noise reduction calculations, this embodiment performs amplitude and phase consistency calibration on the sound field playback system before executing the candidate switching path. Specifically, under the condition that the active noise cancellation controller does not output reverse control quantity, a reference playback is performed along the same candidate switching path, and the reference sound pressure level of each sampling point in the target head position area is collected at each sampling time. Subsequently, under the normal working condition of the active noise cancellation controller, playback is performed again along the same candidate switching path, and the current sound pressure level of each sampling point is collected at each sampling time. Subsequent noise reduction calculations are all based on the same sampling point and the same sampling time to avoid incomparable noise reduction due to different sound field scenarios, different paths, or different time bases.
[0126] Taking the aforementioned third candidate switching path as an example, the system first calls the audio of the "medium-speed closed window road noise scene" as the principal component. As the vehicle speed increases and the window opening increases, the weight of the audio of the "open window wind noise superimposed on road noise scene" is gradually increased, so that the noise environment played smoothly transitions from closed window road noise to open window wind noise superimposed on road noise.
[0127] In this way, the CAN input received by the controller at each moment and the acoustic environment it is in all come from the same candidate switching path, ensuring the consistency between changes in vehicle operating conditions and changes in the in-vehicle noise environment.
[0128] In order to form a spatial sound pressure distribution time series, multiple spatial sampling points are arranged in the target head position region that has been determined in S1.
[0129] Sampling points can be arranged in a regular dot matrix manner. For example, sampling points can be set at fixed intervals along the left-right, front-back, and up-down directions within the target head region to form a three-dimensional sampling matrix.
[0130] In practice, fixed miniature microphone arrays can be directly deployed at each sampling point, or a three-dimensional moving measurement rig can be used to scan and acquire data point by point under conditions of sufficient repeatability. Regardless of the sampling method used, a unified time axis injected into the host computer with dynamic signals is used as the sampling reference. The sound pressure response of each sampling point is collected within each time step. Subsequently, the corresponding sound pressure level is calculated based on the sound pressure response of each sampling point within that time step, and the sound pressure levels of all sampling points within the same time step are combined in order of their spatial location to obtain the spatial sound pressure distribution of that time step.
[0131] The spatial sound pressure distributions obtained from all time steps are then arranged in chronological order to form the spatial sound pressure distribution time series corresponding to the candidate switching path.
[0132] While forming the spatial sound pressure distribution time series, it is also necessary to form the controller mode sequence. The specific method is as follows: at each time step, the current output mode identifier of the active noise cancellation controller is read through the controller debugging interface, internal status message or diagnostic communication interface, and the mode identifier is bound to the current time step.
[0133] For example, standby mode can be encoded as 0, active noise reduction mode can be encoded as 1, and protection off mode can be encoded as 2.
[0134] Then, arrange the mode identifiers corresponding to all time steps in chronological order to obtain the controller mode sequence under the candidate switching path.
[0135] Since the spatial sound pressure distribution time series and the controller mode series are both obtained based on the same time axis, they can correspond to each other at each time step in subsequent steps, thereby realizing a direct correlation between "what mode the controller is in at a certain time" and "how the sound field is distributed in the target head position area at that time".
[0136] To illustrate the feasibility of this embodiment, a set of specific test parameters are given below.
[0137] Assume the total execution time of the third candidate switching path is 6s, the time step is 10ms, and there are a total of 600 sampling moments.
[0138] Between 0s and 2s, the vehicle speed linearly increases from 35km / h to 39km / h, and the window opening increases from 0% to 10%. During this phase, the controller maintains the active road noise reduction mode according to the corresponding relationship table. Between 2s and 4s, the vehicle speed continues to increase to 42km / h, and the window opening continues to increase to 20%. The controller gradually approaches the switching boundary. Between 4s and 6s, the vehicle speed increases to 45km / h, and the window opening increases to 30%. The controller output mode switches to the protection off mode.
[0139] The system performs four actions simultaneously in each time step: first, it generates and sends a CAN message based on the current parameter value; second, it calls and plays the corresponding sound field playback audio based on the current parameter value; third, it collects the sound pressure response of each sampling point in the target head position area and calculates its sound pressure level; and fourth, it reads the controller output mode identifier.
[0140] Ultimately, a spatial sound pressure distribution time series with a length of 600 frames and a controller mode sequence with a length of 600 frames were obtained.
[0141] The subsequent steps can be to extract the transient quiet zone connected regions frame by frame based on these two sequences and to determine the risk path.
[0142] S3. Based on the spatial sound pressure distribution time series, calculate the noise reduction amount at each time step, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction target points. Then, according to the spatial adjacency relationship between the sampling points, connect the noise reduction target points to obtain the transient quiet zone connected region sequence during the switching process.
[0143] The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path.
[0144] Specifically, in this embodiment, step S3 takes the outputs of the aforementioned steps S1 and S2 as input, including: the spatial sampling point arrangement within the target head position area, the reference quiet zone obtained in steady-state mode, the spatial sound pressure distribution time series corresponding to each candidate switching path, and the controller mode sequence corresponding to each candidate switching path.
[0145] The purpose of step S3 is not simply to determine whether the controller has completed the mode switch, but to further determine whether the effective noise reduction area in the target head position area remains intact and continuous, provided that the controller mode switch is correct, thereby identifying physical risk paths that are difficult to detect by traditional logic comparison methods.
[0146] In practice, a fixed sampling grid is first established within the target head position area according to the preset spatial spacing, and spatial adjacency relationships are established for each sampling point.
[0147] Taking the driver's head area as an example, regular dot matrix can be formed in the left-right, front-back, and up-down directions to create a three-dimensional sampling area covering the designed positions of the left and right ears and their surrounding activity range.
[0148] Each sampling point has unique spatial coordinates, and its connection relationship with adjacent sampling points is recorded in advance.
[0149] For example, in a regular grid, sampling points that are directly adjacent to each other in the left and right, front and back, and up and down directions can be set as adjacent points. This adjacency relationship remains unchanged throughout the entire test process. Subsequently, at any sampling time, as long as several noise reduction compliant points meet the preset adjacency relationship, these compliant points can be divided into the same connected cluster.
[0150] In this way, the extraction of transient quiet regions is based on a stable and well-defined geometric topology, avoiding changes in the region determination criteria caused by variations in sampling time.
[0151] After establishing the adjacency relationship, the noise reduction of each sampling point is calculated time-by-time for the spatial sound pressure distribution time series corresponding to each candidate switching path; specifically, at any sampling time, the current sound pressure level of each sampling point in the target head position area is read; then the reference sound pressure level pre-obtained for the sampling point in steady state mode in S1 is read.
[0152] In this embodiment, the reference sound pressure level is the sampling point sound pressure level when the current sound field playback scenario is the same and active noise reduction does not output the inverse control quantity.
[0153] Then, the noise reduction is calculated for each sampling point, using the formula: reference sound pressure level minus the current sound pressure level. Thus, the original spatial sound pressure distribution is transformed into the spatial noise reduction distribution at the same sampling time.
[0154] Since the reference sound pressure level corresponds one-to-one with each sampling point, the resulting noise reduction amount can accurately reflect the effectiveness of noise reduction at each position in the target head position area during mode switching, rather than simply reflecting the absolute magnitude of the sound pressure.
[0155] After obtaining the noise reduction amount at each sampling point, the noise reduction target point is determined according to the preset noise reduction threshold.
[0156] In this embodiment, the preset noise reduction threshold is set to 3dB. That is, when the noise reduction of a certain sampling point is greater than or equal to 3dB, the sampling point is determined to be a noise reduction qualified point. Then, within the current sampling time, all noise reduction qualified points are connected according to the pre-established spatial adjacency relationship. Specifically, starting from any unassigned noise reduction qualified point, the sampling points that are directly adjacent to it and also meet the noise reduction threshold condition are searched in turn, and a group of noise reduction qualified points that can reach each other are divided into the same connected cluster. The above process is repeated for the remaining unassigned noise reduction qualified points until all noise reduction qualified points within the current sampling time are assigned to a connected cluster.
[0157] In this way, one or more connected clusters are obtained at each sampling time, and each connected cluster corresponds to a transient static connected region in the target head position region.
[0158] Arrange the transient quiet zone connected regions corresponding to all sampling times in chronological order to form the transient quiet zone connected region sequence of the candidate switching path.
[0159] To make the subsequent judgment feasible, this embodiment provides a specific simulation scenario.
[0160] The candidate switching path is set as follows: the vehicle speed increases from 35km / h to 45km / h within 6 seconds, the window opening increases from 0% to 30% within the same time, and the controller target mode switches from "road noise active noise reduction mode" to "protection off mode".
[0161] A total of 75 sampling points were arranged in the target head position area, with a sampling period of 10ms, and a total of 600 frames of spatial sound pressure distribution were obtained.
[0162] The noise reduction distribution calculated for the first 300 frames shows that multiple sampling points near the design positions of the left and right ears all meet the noise reduction requirement of more than 3dB, and these sampling points form a continuous single connected cluster through adjacency, which is basically consistent with the reference quiet zone established in S1.
[0163] As the operating conditions change along the candidate switching path, around frame 340, the noise reduction of a group of sampling points near the outer side of the right ear drops below the threshold, causing the original single connected cluster to begin to shrink; in frame 362, the connected region covering both ears splits into two non-connected sub-regions; after frame 390, the right ear side region completely disappears, leaving only a small connected cluster near the left ear.
[0164] Therefore, the contraction, splitting, and local disappearance of transient quiet zones can be directly observed from the same candidate switching path without relying on human auditory judgment.
[0165] After extracting the transient quiet zone connected region sequence, it is further determined whether the candidate switching path belongs to a risk path. To avoid confusing general logical anomalies with the problem of "logically correct but quiet zone destroyed" that this solution aims to identify, this embodiment first determines whether the controller mode switching is correct.
[0166] Specifically, the controller mode sequence corresponding to the candidate switching path is compared with the target mode change predetermined according to the correspondence table.
[0167] If the controller mode sequence completes the transition from the pre-switch mode to the post-switch mode as required within the preset switching time period, and remains stable after the switch, then the controller mode switch under the candidate switching path is determined to be correct. For example, in the above simulation scenario, if the controller switches from "active road noise reduction mode" to "protection off mode" between frames 350 and 370, and then remains stable without jumping back, then the mode switch is considered to be correct.
[0168] Only when this condition is met can the determination of the quiet zone preservation destruction event proceed.
[0169] Assuming the controller mode switch is correct, the transient quiet zone connectivity sequence corresponding to the candidate switching path is compared with the baseline quiet zone to identify quiet zone preservation failure events.
[0170] In this embodiment, the following situations are defined as quiet zone preservation failure events: First, the transient quiet zone connected region covering the designed ear point position splits into multiple non-connected sub-regions; Second, the transient quiet zone connected region no longer covers the designed ear point position, or its overlap ratio with the reference quiet zone is lower than a preset overlap threshold; Third, the geometric center of the transient quiet zone connected region is offset from the geometric center of the reference quiet zone by more than a preset distance threshold; Fourth, there is no transient quiet zone connected region within the target head position region that meets the preset noise reduction threshold and covers the designed ear point position.
[0171] Using the aforementioned calculable criteria, physical acoustic field risks such as quiet zone splitting, coverage failure, spatial offset, and quiet zone disappearance can be transformed into test results that can be repeatedly judged.
[0172] A candidate switching path is deemed a risky path if and only if it meets two conditions simultaneously: First, the controller mode sequence shows that the mode switching is correct; second, the transient quiet zone connectivity sequence has experienced any of the aforementioned quiet zone preservation disruption events relative to the reference quiet zone.
[0173] In other words, this embodiment is not concerned with whether the controller has completed the switch logically, but rather whether, even if the controller has completed the switch logically, it still causes unacceptable physical sound field disruption within the target head position area.
[0174] The risk path obtained in this way can directly characterize the boundary condition of "correct control logic but destruction of the effective spatial noise reduction area", providing input for the subsequent construction of the set of permissible states.
[0175] S4. Based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths, determine the set of allowed states for active noise cancellation mode switching.
[0176] Specifically, candidate switching paths that are correctly switched in controller mode and have not experienced a quiet zone maintenance failure event are selected, and the vehicle state parameter combinations corresponding to the candidate switching path at each sampling time are extracted as safe state points.
[0177] The vehicle status parameter combination includes vehicle speed, window opening, door status, speaker malfunction status, and microphone malfunction status.
[0178] The safety status points are deduplicated and sorted according to the mode switching direction and the numerical order of each vehicle status parameter.
[0179] For adjacent safe state points in the same mode switching direction, if the numerical difference in each vehicle state parameter dimension does not exceed the corresponding parameter resolution, they are determined as candidate adjacent safe state points. For intermediate vehicle state parameter combinations between candidate adjacent safe state points, if they already exist in a candidate switching path where no quiet zone maintenance failure event has occurred, or if supplementary sound field playback verification confirms that no quiet zone maintenance failure event has occurred, the corresponding safe state points are connected as a continuous safe state interval.
[0180] The safe state intervals that belong to the same mode switching direction and overlap, connect, or continuously cover each other in the state space are merged to obtain the set of active noise reduction mode switching allowed states.
[0181] The allowed state set is used to characterize whether the active noise cancellation controller will cause the quiet zone preservation in the target head position area to be disrupted when performing mode switching under the corresponding vehicle state parameter combination and mode switching direction.
[0182] S5. For the vehicle operating condition to be verified, synchronously inject CAN signal and execute sound field playback to obtain the actual mode switching status of the controller.
[0183] Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion;
[0184] Specifically, the CAN signal is synchronously injected into the vehicle operating condition according to a unified time base and the sound field playback is performed. At each sampling moment, the current vehicle status parameter combination and the current mode identifier output by the active noise cancellation controller are read.
[0185] Based on the current vehicle status parameter combination, query the set of allowed states for active noise cancellation mode switching, determine whether the sampling moment belongs to an allowed switching state, and obtain the corresponding expected mode switching behavior.
[0186] The change of the current mode identifier between adjacent sampling times is determined as the actual mode switching state; when the mode identifier changes and remains stable for a preset duration, a valid mode switching is considered to have occurred.
[0187] If the current vehicle status parameter combination does not belong to the allowed switching state, but the actual mode switching status shows that a valid mode switch has occurred, it is determined that there is a risk of switching out of bounds; if the current vehicle status parameter combination belongs to the allowed switching state, and the corresponding expected mode switching behavior requires the target mode switch to be completed within the preset switching time period, but the actual mode switching status shows that the target mode switch has not been completed, it is determined that there is a risk of failing to switch when it should have been switched.
[0188] For example, if the allowed state set includes the state range of "vehicle speed 40km / h to 44km / h, window opening 10% to 20%, door closed, speaker normal, microphone normal", and the corresponding expected mode switching behavior is "switching from road noise active noise reduction mode to protection off mode", then when the vehicle speed is 39km / h and the window opening is 8%, the controller has already switched to protection off mode, which is judged as an over-limit switching risk; when the vehicle speed is 42km / h and the window opening is 12%, the controller still has not switched within the preset switching period, which is judged as a risk of failure to switch when it should have.
[0189] The system records the vehicle status parameter combination corresponding to the risk, the actual mode switching status, the time of occurrence, and the risk type, and outputs the verification conclusion.
[0190] This embodiment also provides a sound field playback CAN-driven active noise cancellation logic verification system, including:
[0191] The module is used to obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone.
[0192] The generation and acquisition module is used to generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode within the value range, and to serve as candidate switching paths.
[0193] Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence.
[0194] The calculation and comparison module is used to calculate the noise reduction amount at each time step based on the spatial sound pressure distribution time series, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction standard points. The noise reduction standard points are connected according to the spatial adjacency relationship between the sampling points to obtain the transient quiet zone connected region sequence during the switching process.
[0195] The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path.
[0196] The determination module is used to determine the set of permissible states for active noise cancellation mode switching based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths.
[0197] For the vehicle operating conditions to be verified, a CAN signal is injected synchronously and sound field playback is executed to obtain the actual mode switching status of the controller.
[0198] Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
[0199] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for verifying the active noise reduction logic of a CAN driver for sound field playback, characterized in that, include: S1. Obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone. S2. Within the range of values, generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode, and use them as candidate switching paths. Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence. S3. Based on the spatial sound pressure distribution time series, calculate the noise reduction amount at each time step, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction target points. Then, according to the spatial adjacency relationship between the sampling points, connect the noise reduction target points to obtain the transient quiet zone connected region sequence during the switching process. The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path. S4. Based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths, determine the set of allowed states for active noise cancellation mode switching. S5. For the vehicle operating condition to be verified, synchronously inject CAN signal and execute sound field playback to obtain the actual mode switching status of the controller. Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
2. The sound field playback CAN driver active noise reduction logic verification method as described in claim 1, characterized in that, S1 specifically includes: reading the mode switching conditions, CAN signal definition and calibration parameters of the active noise cancellation controller, and determining the vehicle status parameters that affect the active noise cancellation mode switching; For each vehicle status parameter, real vehicle data is collected and bench scans are performed. The change boundaries and operating boundaries of each vehicle status parameter before and after mode switching are recorded to determine the value range of each vehicle status parameter. Based on the different combinations of values of each vehicle status parameter, extract the corresponding original in-vehicle noise data or call the corresponding sound field playback audio to determine the corresponding sound field playback scene. Based on the output mode of the active noise cancellation controller under each combination of vehicle state parameter values, a correspondence table is established between vehicle state parameters, sound field playback scenarios, and active noise cancellation modes.
3. The sound field playback CAN driver active noise reduction logic verification method as described in claim 2, characterized in that, In step S1, the target head position region is determined, and the noise reduction compliant connected region of the target head position region in steady-state mode is obtained as the reference quiet zone, including: Based on the seat on the active noise cancellation test bench, the designed ear point position of the target occupant is determined, and a spatial sampling area covering the range of head movement is established with the designed ear point position as the center, which is used as the target head position area. When the active noise cancellation controller is in steady-state mode and the sound field playback scene remains unchanged, the sound pressure response of each sampling point in the target head position area is collected, and the noise reduction amount of each sampling point is calculated. The sampling points where the noise reduction reaches the preset threshold are determined as noise reduction standard points. The adjacent noise reduction standard points are connected and divided to obtain the noise reduction standard connected area covering the designed ear point position, which serves as the reference quiet zone.
4. The sound field playback CAN driver active noise reduction logic verification method as described in claim 3, characterized in that, S2 includes: Within the range of values for each vehicle state parameter, based on the corresponding relationship table, the start and end states of the mode before and after switching are selected, and the vehicle state parameters that trigger the mode switching are used to generate a continuous change sequence of working conditions from the start state to the end state according to the preset step size and time order, which serves as a candidate switching path. At each moment of each candidate switching path, the vehicle state parameters at that moment are converted into corresponding CAN messages and sent to the active noise cancellation controller. At the same time, the sound field playback scene corresponding to the vehicle state parameters at that moment is invoked and played, so that the CAN input received by the active noise cancellation controller changes synchronously with the acoustic environment along the same candidate switching path.
5. The sound field playback CAN driver active noise reduction logic verification method as described in claim 4, characterized in that, The S2 process forms a spatial sound pressure distribution time series and a controller mode sequence, including: Multiple spatial sampling points are arranged within the target head region; During the execution of each candidate switching path, the sound pressure response of each sampling point at each sampling time is collected according to a unified time reference. The sound pressure level of each sampling point at the corresponding sampling time is calculated based on the sound pressure response, and the sound pressure level of each sampling point is used to form the spatial sound pressure distribution at that sampling time. Arrange each spatial sound pressure distribution in the order of sampling time to form a spatial sound pressure distribution time series; Simultaneously, the mode identifiers output by the active noise cancellation controller at each sampling time are read and arranged in the order of sampling time to form a controller mode sequence.
6. The sound field playback CAN driver active noise reduction logic verification method as described in claim 5, characterized in that, In step S3, the noise reduction target points are connected according to the spatial adjacency relationship between sampling points to obtain the transient quiet zone connected region sequence during the switching process, including: Sampling points are arranged at preset spatial intervals within the target head region, and spatial adjacency relationships are established between each sampling point; The noise reduction amount of each sampling point is calculated based on the spatial sound pressure distribution time series and the reference sound pressure level of the sampling points in steady state mode, and the sampling points whose noise reduction amount reaches the preset noise reduction threshold are determined as noise reduction compliance points. Based on spatial adjacency, adjacent noise reduction compliant points are divided into the same connected cluster, and each connected cluster is determined as the transient quiet zone connected region at that sampling time. Arrange the transient static region connected regions corresponding to each sampling time in the order of sampling time to form the transient static region connected region sequence.
7. The sound field playback CAN driver active noise reduction logic verification method as described in claim 6, characterized in that, In step S3, determining the candidate switching path as a risky path includes: Compare the controller mode sequence with the target mode changes corresponding to the candidate switching paths; When the controller mode sequence completes the mode switching according to the target mode change within the preset switching time period, it is determined that the controller mode switching is correct; Under the condition that the switch is correct, the sequence of transient quiet zone connected regions corresponding to the candidate switch path is compared with the reference quiet zone; A quiet zone preservation failure event is determined to have occurred when any of the following situations occur during the handover process: First, the transient quiet zone connected region covering the design ear point location is split from a continuous connected region into multiple non-connected sub-regions; Second, the transient quiet zone connected region no longer covers the design ear point position, or the overlap ratio between the transient quiet zone connected region and the reference quiet zone is lower than the preset overlap threshold. Third, the geometric center of the transient quiet zone connected region is offset from the geometric center of the reference quiet zone by more than a preset distance threshold. Fourth, there is no transient quiet zone connected region within the target head position area that meets the preset noise reduction threshold and covers the designed ear point position; When the controller mode switch is correct and a quiet zone preservation failure event occurs, the candidate switching path is identified as a risk path.
8. The sound field playback CAN driver active noise reduction logic verification method as described in claim 7, characterized in that, In step S4, the set of allowed states for active noise cancellation mode switching is determined, including: Candidate switching paths that have not experienced a quiet zone preservation failure event are screened, and the vehicle state parameter combination of each candidate switching path at each sampling time is extracted as a safe state point. Deduplication of safe state points with the same combination of vehicle state parameters is performed, and the safe state points are sorted according to the order of change of the values of each vehicle state parameter in order to determine adjacent safe state points. Connect adjacent safe state points that, under the same mode switching direction, have numerical differences in each vehicle state parameter dimension that do not exceed the corresponding parameter resolution, to form a continuous safe state interval. By merging the continuous safe state intervals, we obtain the set of states that allow switching of active noise cancellation mode.
9. The sound field playback CAN driver active noise reduction logic verification method as described in claim 8, characterized in that, In step S5, it is determined whether there is a risk of damage to the controller, and a verification conclusion is output, including: For the vehicle operating conditions to be verified, CAN signals are injected synchronously according to a unified time base and sound field playback is performed. At each sampling moment, the current vehicle status parameter combination and the current mode identifier output by the active noise cancellation controller are read. Based on the current combination of vehicle status parameters, query the set of allowed states for switching active noise cancellation mode to determine whether the sampling moment belongs to an allowed switching state; The change in the current mode identifier between adjacent sampling times is determined as the actual mode switching state; When the current vehicle status parameter combination does not belong to the allowed switching state, but the actual mode switching status shows that a mode switch has occurred, or when the current vehicle status parameter combination belongs to the allowed switching state, but the actual mode switching status shows that a mode switch has not occurred, it is determined that the controller is at risk of being damaged. Record the vehicle status parameter combination, actual mode switching status and occurrence time corresponding to the damage risk, and output the verification conclusion.
10. A sound field playback CAN driver active noise reduction logic verification system, based on the sound field playback CAN driver active noise reduction logic verification method according to any one of claims 1 to 9, characterized in that, include: The module is used to obtain the value range of multiple vehicle state parameters that affect the switching of active noise cancellation mode, establish the correspondence between vehicle state parameters, sound field playback scene and active noise cancellation mode, determine the target head position area, and obtain the noise reduction standard connected area of the target head position area in steady state mode as the reference quiet zone. The generation and acquisition module is used to generate multiple continuously changing operating condition sequences that cause the active noise cancellation controller to switch from the pre-switching mode to the post-switching mode within the value range, and to serve as candidate switching paths. Along the candidate switching path, dynamic CAN signals are synchronously injected into the active noise cancellation controller and the sound field playback is driven. The sound pressure response and controller mode identifier of each sampling point in the target head position area are collected to form a spatial sound pressure distribution time series and a controller mode sequence. The calculation and comparison module is used to calculate the noise reduction amount at each time step based on the spatial sound pressure distribution time series, and mark the sampling points where the noise reduction amount reaches the preset noise reduction threshold as noise reduction standard points. The noise reduction standard points are connected according to the spatial adjacency relationship between the sampling points to obtain the transient quiet zone connected region sequence during the switching process. The transient quiet zone connectivity sequence of each candidate switching path is compared with the baseline quiet zone. If a candidate switching path still experiences a quiet zone preservation failure event when the controller mode sequence shows that the mode switching is correct, the candidate switching path is identified as a risk path. The determination module is used to determine the set of permissible states for active noise cancellation mode switching based on the combination of vehicle state parameters corresponding to the candidate switching paths determined to be risky paths. For the vehicle operating conditions to be verified, a CAN signal is injected synchronously and sound field playback is executed to obtain the actual mode switching status of the controller. Based on the correspondence between the actual mode switching state and the set of allowed states, determine whether the controller is at risk of damage and output the verification conclusion.
