Method, device and equipment for detecting state of drainage pipe for vehicle sunroof
By obtaining pressure values under vehicle-sealed testing conditions and combining them with calibration parameters to determine the blockage status of the drain pipe, the problem of the inability to actively detect drain pipe blockage in existing technologies is solved. This achieves automated, real-time blockage detection, reduces maintenance costs, and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- VOYAH AUTOMOBILE TECH CO LTD
- Filing Date
- 2026-01-07
- Publication Date
- 2026-05-12
AI Technical Summary
Existing vehicles lack proactive detection methods for sunroof drain pipe blockage, causing users to passively discover problems after they occur, increasing repair costs and impacting user experience.
By controlling the vehicle to enter a closed test state, the pressure sensor obtains the pressure value when the drain valve is open and closed, and combines it with preset calibration parameters to determine the blockage of the drain pipe, thus achieving automated detection.
It enables real-time detection of drain pipe blockage, reducing the risk of water entering the vehicle due to blockage, lowering maintenance costs, and improving user experience.
Smart Images

Figure CN122016193A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and in particular to a method, apparatus and equipment for detecting the condition of a drain pipe for a vehicle sunroof. Background Technology
[0002] In modern car design, to prevent water from entering the vehicle, vehicles typically have multiple drain pipes on the sunroof frame to guide water to the outside. However, after long-term use, sunroof drain pipes are prone to clogging of the outlets with mud, leaves, insects, and other debris, preventing water from draining in a timely manner.
[0003] Because drain pipe outlets are typically located in the vehicle chassis or concealed locations, users cannot directly observe their condition with the naked eye or through routine operations. When blockages accumulate to a certain extent, water can seep back into the vehicle, soaking carpets, seats, and other components, and even causing safety hazards such as short circuits. Current vehicles lack proactive detection methods for drain pipe blockages, meaning users often only discover the problem passively after it occurs, resulting in high repair costs and a compromised user experience. Summary of the Invention
[0004] The method, apparatus, and equipment for detecting the status of drainage pipes for vehicle sunroofs provided in this application are intended to improve the user experience.
[0005] In a first aspect, embodiments of this application provide a method for detecting the state of a drain pipe for a vehicle sunroof, wherein the drain pipe of the vehicle sunroof is equipped with a drain valve; including:
[0006] In response to a detection command, the vehicle is controlled to enter a preset closed test state; wherein, the closed test state indicates that the doors and windows are closed, the sunroof is closed, the air conditioning is in a preset air intake state, and the drain valve is in an open state.
[0007] Under the preset sealed test state, the first pressure value of the pressure sensor inside the vehicle is obtained;
[0008] With the drain valve closed, the second pressure value of the pressure sensor is obtained;
[0009] Based on the first pressure value, the second pressure value, and preset calibration parameters, the status of the sunroof's drain pipe is determined; wherein, the drain pipe status indicates the blockage of the sunroof's drain pipe.
[0010] In one possible implementation, the preset calibration parameters include an initial pressure value and a standard pressure difference; wherein, the initial pressure value represents the pressure value of the pressure sensor in the sealed test state when the sunroof drain pipe is completely unblocked; and the standard pressure difference represents the difference between the pressure value of the pressure sensor when the drain valve is closed and the pressure value of the pressure sensor when the drain valve is open in the sunroof drain pipe, which is in the completely unblocked state.
[0011] In one possible implementation, determining the state of the sunroof's drain pipe based on the first pressure value, the second pressure value, and preset calibration parameters includes:
[0012] Determine a first difference between the first pressure value and the initial pressure value;
[0013] Determine a second difference between the second pressure value and the first pressure value;
[0014] The status of the sunroof's drain pipe is determined based on the first difference, the second difference, and the standard pressure difference.
[0015] In one possible implementation, determining the state of the sunroof's drain pipe based on the first difference, the second difference, and the standard pressure difference includes:
[0016] If it is determined that the difference between the first difference and the standard pressure difference is less than a first preset threshold, and the second difference is less than a second preset threshold, then it is determined that the drain pipe is completely blocked.
[0017] If it is determined that the first difference is less than the third preset threshold, and the difference between the second difference and the standard pressure difference is less than the fourth preset threshold, then the drain pipe is determined to be in an unblocked state.
[0018] In one possible implementation, the method further includes:
[0019] If the difference between the standard pressure difference and the second difference is greater than the fifth preset threshold, then the drain pipe is determined to be partially blocked.
[0020] In one possible implementation, when the drain pipe is determined to be partially blocked, the method further includes:
[0021] The degree of blockage in the drain pipe is determined based on the second difference and the standard pressure difference.
[0022] In one possible implementation, the method further includes:
[0023] Based on the status of the skylight's drain pipe, a prompt message is output.
[0024] Secondly, embodiments of this application provide a detection device for the status of a drain pipe of a vehicle sunroof, wherein the drain pipe of the vehicle sunroof is equipped with a drain valve; comprising:
[0025] The control module is used to respond to the detection command and control the vehicle to enter a preset closed test state; wherein, the closed test state represents the closed state of the vehicle doors and windows, the closed state of the sunroof, the preset air intake state of the air conditioner, and the open state of the drain valve.
[0026] The first acquisition module is used to acquire the first pressure value of the pressure sensor inside the vehicle under the preset sealed test state.
[0027] The second acquisition module is used to acquire the second pressure value of the pressure sensor when the drain valve is closed.
[0028] The determination module is used to determine the status of the sunroof's drain pipe based on the first pressure value, the second pressure value, and preset calibration parameters; wherein the drain pipe status represents the blockage of the sunroof's drain pipe.
[0029] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0030] The memory stores computer-executed instructions;
[0031] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0033] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0034] The method, apparatus, and equipment for detecting the status of a sunroof drain pipe provided in this application embodiment involve a controller responding to a detection command and controlling the vehicle to enter a preset sealed test state. Under different operating conditions—with the drain valve open and closed—a first pressure value and a second pressure value inside the vehicle are acquired respectively. These values are then compared with preset calibration parameters to determine the drain pipe blockage status. This method allows the detection process to be triggered at any time. The controller judges the drain pipe status in real time based on pressure change characteristics, reducing the risk of water ingress into the vehicle due to drain pipe blockage, thereby reducing maintenance costs. Furthermore, it eliminates the need for additional dedicated detection equipment, reducing implementation costs and adapting to various vehicle models. Simultaneously, the detection process is fully automated, eliminating the need for manual operation of complex equipment and improving the user experience. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0036] Figure 1 A structural schematic diagram of a vehicle provided in this application;
[0037] Figure 2 A flowchart illustrating the method for detecting the condition of the drain pipe of a vehicle sunroof provided in this application. Figure 1 ;
[0038] Figure 3 A flowchart illustrating the method for detecting the condition of the drain pipe of a vehicle sunroof provided in this application. Figure 2 ;
[0039] Figure 4 A schematic diagram of the structure of the detection device for the condition of the drain pipe of a vehicle sunroof provided in this application.
[0040] Figure 5 A schematic diagram of the structure of the electronic device provided in this application.
[0041] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0043] Currently, existing technologies lack proactive detection methods for sunroof drain pipe blockages. Users often only discover the blockage passively after it occurs, leading to increased repair costs and a significant impact on the user experience. Therefore, considering the inherent airtightness of vehicle cabins and the fact that the sunroof drain pipe is a crucial airflow path, its blockage directly affects airflow efficiency. Under stable airflow conditions, such as a fixed air conditioning setting, the cabin pressure exhibits regular variations depending on the unobstructed flow path. Therefore, by capturing these pressure change patterns, a detection logic can be constructed to assess drain pipe blockage, providing early warnings of potential blockages and improving the user experience.
[0044] Figure 1 A structural schematic diagram of a vehicle provided in this application, such as Figure 1 As shown, the vehicle includes a controller, doors and windows, a sunroof, an air conditioner, and pressure sensors.
[0045] The controller is used to perform functions such as data storage, command issuance, and logical operations. This controller can be a cockpit domain controller or other controllers; this application embodiment does not limit the scope of the controller. The execution entity in this application embodiment can be this controller.
[0046] The skylight is equipped with multiple drain pipes, each containing a drain valve. It should be noted that this embodiment does not limit the number of drain pipes.
[0047] The doors, windows, and sunroof work together to create the sealed cabin environment required for testing. When testing is started, the controller controls the doors and windows to be completely closed, the sunroof to be closed, and the drain valve to be open, so as to prevent external air from flowing in or internal air from leaking and causing pressure data distortion, thus providing a stable and sealed basis for accurate detection of pressure changes.
[0048] As a stable air intake source, the air conditioner operates according to the fixed gear instructions issued by the controller, inputting a constant flow of air into the sealed cabin. This ensures that the air intake volume remains consistent during the testing process, so that the pressure change inside the vehicle is only related to the unobstructedness of the sunroof drain pipe. That is, when blocked, the gas exhaust path is obstructed, and the pressure change pattern changes. Thus, the blockage status is reflected by the pressure difference, avoiding the impact of air intake volume fluctuations on the accuracy of the test.
[0049] The pressure sensor, as a pressure data acquisition component, is installed at a preset detection location within the cabin to transmit the collected pressure data to the controller in real time, providing core data support for blockage determination. It should be noted that this application embodiment does not limit the installation location of the pressure sensor; for example, it can be inside the center console, under the headliner, etc.
[0050] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0051] Figure 2 A flowchart illustrating the method for detecting the condition of the drain pipe of a vehicle sunroof provided in this application. Figure 1 ,like Figure 2 As shown, the method includes:
[0052] S101. In response to the detection command, control the vehicle to enter the preset closed test state.
[0053] For example, the detection command refers to the signal command that triggers the vehicle to start the sunroof drain pipe blockage detection process. The detection command can be triggered by the user, such as by clicking the drain pipe detection control through the vehicle's operating interface, or by a voice command; it can also be triggered by the controller at a set time; or it can be triggered by associated conditions, such as automatically triggering within a preset time after the vehicle's rain sensor detects rainfall.
[0054] The preset airtightness test state is a standardized vehicle state set to ensure the accuracy of pressure detection. This includes the doors and windows being closed, the sunroof being closed, the air conditioning system operating at a preset intake state (the air conditioning system operates at a fixed calibrated setting, supplying a constant flow of air into the vehicle), and the drain valve being open. The drain valve is located at the end of the sunroof drain pipe; when open, the drain pipe remains unobstructed, allowing gas from inside the vehicle to escape through the drain hole. This embodiment does not limit the duration of establishing the airtightness test state; subsequent testing steps proceed only after all components have stabilized.
[0055] In one example, in response to the received detection command, the controller first sends a closing command to the actuators of all doors and windows. After confirming the door locking signal and the window raising / lowering position signal, it determines that the doors and windows have entered the closed state. Then, it controls the sunroof drive motor to run to the fully closed position and verifies the closed state through the sunroof position sensor. Next, it starts the air conditioning system and switches to the preset detection level (such as blower level 3, external circulation mode). The air intake volume is monitored in real time through the airflow sensor. After the air intake volume stabilizes within the calibrated range, it confirms that the air conditioning has entered the preset air intake state. Finally, it controls the drain valve actuator to be energized, switching the drain valve to the open state, completing the establishment of the preset airtightness test state.
[0056] Optionally, if the vehicle is equipped with a pressure relief valve, the controller can respond to a detection command by completely blocking the vent passage of the pressure relief valve to improve the overall vehicle sealing and thus improve the accuracy of the drain pipe status.
[0057] S102. Under the preset sealed test state, obtain the first pressure value of the pressure sensor inside the vehicle.
[0058] For example, the first pressure value refers to the real-time pressure data after the gas pressure inside the vehicle has stabilized under a preset sealed test state.
[0059] The first pressure value is obtained under the preset closed test state because the air intake in the vehicle is constant and the gas exhaust path (including the drain pipe) is unobstructed. The pressure data can truly reflect the basic pressure level under the current drain pipe condition.
[0060] In one example, after the controller confirms that the vehicle has entered the preset sealed test state, it sends a data acquisition command to the pressure sensor. After receiving the command, the pressure sensor collects multiple sets of in-vehicle pressure data at a preset sampling frequency and sends them to the controller. After receiving all the collected data, the controller removes the maximum and minimum values, calculates the average value of the remaining data, and uses this average value as the first pressure value.
[0061] S103. With the drain valve closed, obtain the second pressure value from the pressure sensor.
[0062] For example, the second pressure value refers to the real-time pressure data when the pressure inside the vehicle is stable after keeping all states except the drain valve unchanged in the preset sealed test state (doors and windows closed, sunroof closed, and the preset air intake state of the air conditioner continues), and only the drain valve is switched to the closed state.
[0063] The closed state of the drain valve means that after the controller issues a closing command, the drain valve actuator drives the valve core to close completely, blocking the gas discharge path of the sunroof drain pipe. At this time, the gas in the car can only be discharged through other preset exhaust channels. The pressure difference between opening and closing the valve reflects the unobstructed state of the drain pipe.
[0064] In one example, after the controller completes the acquisition of the first pressure value, it immediately sends a closing command to the drain valve actuator. After receiving the command, the drain valve actuator drives the valve to switch from the open state to the closed state. After waiting for a preset time interval, the controller sends a data acquisition command to the pressure sensor. The pressure sensor acquires multiple sets of pressure data at a preset sampling frequency. After receiving the data, the controller removes the maximum and minimum values and calculates the average value of the remaining data as the second pressure value.
[0065] S104. Based on the first pressure value, the second pressure value, and the preset calibration parameters, determine the status of the sunroof's drain pipe.
[0066] For example, the preset calibration parameters are baseline data calibrated and stored in the controller before the vehicle leaves the factory. Optionally, the preset calibration parameters include an initial pressure value and a standard pressure difference value; wherein, the initial pressure value represents the pressure value of the pressure sensor when the sunroof drain pipe is completely unobstructed and the vehicle is in a sealed test state; the standard pressure difference value represents the difference between the pressure value of the pressure sensor when the drain valve is closed and the pressure value of the pressure sensor when the drain valve is open, when the sunroof drain pipe is completely unobstructed. It is understood that the calibration parameters can be calibrated for each vehicle to improve the accuracy of the calibration parameters.
[0067] Optionally, after cleaning the drain pipe, the first and second pressure values of the drain pipe valve in the open and closed states can be collected to update the above calibration parameters.
[0068] The status of the drain pipe refers to the blockage of the sunroof drain pipe, which can include blocked and unblocked states. The blocked state can be further divided into completely blocked and partially blocked states.
[0069] In one example, the controller first calls the initial pressure value and standard pressure difference from the locally stored preset calibration parameters to determine the first difference between the first pressure value and the initial pressure value, and the second difference between the second pressure value and the first pressure value. Through preset logic relating the first difference, the second difference, the standard pressure difference, and the blockage status, the controller determines the relationship between the first difference, the second difference, and the standard pressure difference, thereby determining the current state of the drain pipe. The logic for determining the blockage status of the drain pipe is based on a comparison of the first difference, the second difference, and the standard pressure difference, with a preset threshold, such as ±0.01 kPa. For example, if the deviation of the first difference from 0 is within ±0.01 kPa, and the deviation of the second difference from the standard pressure difference is also within ±0.01 kPa (in other words, if the first difference ≈ 0 and the second difference ≈ the standard pressure difference), it can be determined as an unblocked state; if 0 < the first difference ≤ the standard pressure difference, and 0 ≤ the second difference < the standard pressure difference, it can be determined as a blocked state.
[0070] The method for detecting the status of a sunroof drain pipe provided in this application involves a controller responding to a detection command and controlling the vehicle to enter a preset sealed test state. Under different operating conditions—with the drain valve open and closed—the controller acquires a first pressure value and a second pressure value inside the vehicle, respectively. These values are then compared with preset calibration parameters to determine the drain pipe's blockage status. This method allows the detection process to be triggered at any time. The controller uses pressure change characteristics to determine the drain pipe status in real time, reducing the risk of water ingress due to drain pipe blockage and thus lowering maintenance costs. Furthermore, it eliminates the need for additional dedicated detection equipment, reducing implementation costs and adapting to various vehicle models. The detection process is fully automated, eliminating the need for manual operation of complex equipment and improving the user experience.
[0071] Figure 3 A flowchart illustrating the method for detecting the condition of the drain pipe of a vehicle sunroof provided in this application. Figure 2 ,like Figure 3 As shown, in this embodiment... Figure 2 Based on the embodiments, a method for detecting the condition of the drain pipe facing the vehicle sunroof is described in detail. The method includes:
[0072] S201. In response to the detection command, control the vehicle to enter the preset closed test state.
[0073] It should be noted that this step is similar to the aforementioned step S101, and will not be repeated here.
[0074] S202. Under the preset sealed test state, obtain the first pressure value of the pressure sensor inside the vehicle.
[0075] It should be noted that this step is similar to the aforementioned step S102, and will not be repeated here.
[0076] S203. With the drain valve closed, obtain the second pressure value from the pressure sensor.
[0077] It should be noted that this step is similar to the aforementioned step S103, and will not be repeated here.
[0078] S204. Determine the first difference between the first pressure value and the initial pressure value.
[0079] For example, the first difference refers to the absolute value of the difference between the first pressure value and the initial pressure value, which is used to reflect the degree of deviation of the current in-vehicle pressure from the reference state.
[0080] S205. Determine the second difference between the second pressure value and the first pressure value.
[0081] For example, the second difference refers to the absolute value of the difference between the second pressure value obtained when the drain valve is closed and the first pressure value obtained when the drain valve is open, reflecting the degree of influence of the drain valve's opening and closing on the vehicle's interior pressure. It is understood that the magnitude of this second difference is directly related to the blockage status of the sunroof drain pipe. When the drain pipe is unobstructed (not blocked), closing the drain valve will block the main exhaust path, causing a significant pressure increase, resulting in a larger second difference; when the drain pipe is blocked, closing the drain valve has a smaller impact on the exhaust path, resulting in a smaller second difference.
[0082] S206. Based on the first difference, the second difference, and the standard pressure difference, determine the status of the sunroof's drain pipe.
[0083] In some possible implementations, if the difference between the first difference and the standard pressure difference is less than a first preset threshold, and the second difference is less than a second preset threshold, then the drain pipe is determined to be completely blocked; if the first difference is less than a third preset threshold, and the difference between the second difference and the standard pressure difference is less than a fourth preset threshold, then the drain pipe is determined to be unblocked.
[0084] For example, the preset threshold refers to the critical value used to quantify the pressure difference comparison results and define different blockage states, including the first preset threshold, the second preset threshold, the third preset threshold, the fourth preset threshold, and the fifth preset threshold. It is calibrated based on a large amount of measured data during the vehicle development stage, stored in the vehicle controller, and supports dynamic optimization through remote online upgrades.
[0085] The first preset threshold is used to determine the degree of closeness between the first difference and the standard pressure difference, so as to confirm whether the degree of deviation of the current pressure from the benchmark reaches the characteristics of complete blockage. The calibration range can be, for example, 0.01kPa-0.03kPa, and in this embodiment, the value can be 0.01kPa.
[0086] The second preset threshold is used to determine the minimum degree of the second difference and to confirm whether the opening and closing of the drain valve has no effect on the pressure (i.e., the drain pipe is completely blocked). The calibration range can be, for example, 0 kPa-0.02 kPa, and in this embodiment, it can be 0.01 kPa.
[0087] The third preset threshold is used to determine the minimum degree of the first difference to confirm whether the current pressure is consistent with the reference state (i.e., the drain pipe is not blocked). The calibration range is consistent with the first preset threshold. In this embodiment, the value can be 0.01 kPa.
[0088] The fourth preset threshold is used to determine the degree of closeness between the second difference and the standard pressure difference, so as to confirm whether the effect of the drain valve switch on the pressure is consistent with the non-blockage state. The calibration range is consistent with the second preset threshold. In this embodiment, the value can be 0.01 kPa.
[0089] A complete blockage refers to a state where the internal passage of the sunroof drain pipe is completely blocked, preventing gas from escaping through the drain pipe. Specifically, a first difference less than a first preset threshold (|first difference - standard pressure difference| < first preset threshold) indicates that the current vehicle interior pressure deviates from the initial baseline, consistent with the calibration characteristics of a complete blockage. A second difference less than a second preset threshold indicates that when the drain valve is closed or opened, the vehicle interior pressure remains almost unchanged (because the drain pipe is completely blocked, the valve opening and closing cannot alter the exhaust path). Both conditions must be met simultaneously to determine a complete blockage state, avoiding misjudgment based on a single condition. For example, a very small second difference might indicate a pressure sensor malfunction, while a first difference close to the standard pressure might indicate environmental interference.
[0090] An unblocked state refers to a condition where the sunroof drain pipe's internal channels are completely unobstructed, allowing gas to freely escape through the drain pipe. Specifically, the first difference being less than the third preset threshold indicates that the current vehicle interior pressure is almost identical to the initial pressure benchmark, with no pressure increase due to drain pipe blockage. The second difference being less than the standard pressure difference (i.e., |second difference - standard pressure difference| < fourth preset threshold) indicates that the influence of the drain valve's opening and closing on pressure is consistent with the calibration characteristics of an unblocked state (because the drain pipe is unobstructed, valve closure significantly blocks the exhaust path, leading to pressure increase). A state where both conditions are met can be considered unblocked.
[0091] Understandably, when inspecting the vehicle's overall drain pipes, the aforementioned steps are used to control the opening and closing of all drain pipe valves. After collecting the first and second differences, based on the first and second differences, if the drain pipe is determined to be in an unblocked state, it means that all drain pipes of the vehicle are unblocked; if the drain pipe is determined to be in a completely blocked state, it means that all drain pipes of the vehicle are completely blocked.
[0092] In some possible implementations, if the difference between the standard pressure difference and the second difference is greater than the fifth preset threshold, then the drain pipe is determined to be partially blocked.
[0093] The fifth preset threshold is used to determine the degree of deviation between the standard pressure difference and the second difference, so as to confirm whether there is partial obstruction of air release in the drain pipe. The calibration range can be, for example, 0.02kPa-0.05kPa. In this embodiment, the value can be 0.02kPa.
[0094] Partial blockage refers to a situation where the internal passage of the sunroof drain pipe is not completely blocked, but there is a certain degree of narrowing or foreign object accumulation, resulting in obstructed gas discharge. Specifically, the difference between the standard pressure difference and the second difference is greater than the fifth preset threshold (|standard pressure difference - second difference| > fifth preset threshold). This indicates that due to partial blockage of the drain pipe, the drain valve cannot completely block the main exhaust path when closed, resulting in a pressure rise that is less than in the unblocked state, and this difference reaches a quantified critical value. This judgment condition takes effect only after completely blocking and unblocked states are excluded; that is, if this condition is met when the judgment logic for completely blocking and unblocked states is not satisfied, it can be judged as a partial blockage state.
[0095] It is understandable that when inspecting the drain pipes of the entire vehicle, if a drain pipe is found to be partially blocked, it means that at least one drain pipe in the vehicle is blocked. In some embodiments, when the controller determines that a drain pipe is partially blocked, it can control the opening and closing state of the drain valve of each drain pipe, while maintaining the consistency of the opening and closing states of other drain valves, and take the aforementioned steps to identify the blocked drain pipe.
[0096] For example, when detecting a target drain pipe, the drain valves of all other drain pipes are preset to be open, and this state remains unchanged throughout the detection of a single drain pipe. This reduces the impact of venting from non-target drain pipes and ensures that pressure changes are only related to the unobstructed flow of the target drain pipe. Furthermore, the controller can collect a first pressure value when the target drain valve is open and a second pressure value when the target drain valve is closed (while non-target drain valves remain locked open). The controller then calculates the first and second differences to determine the drain pipe status of the target drain pipe.
[0097] If the difference between the first difference and the standard pressure difference is less than a first preset threshold, and the second difference is less than a second preset threshold, then the target drain pipe is determined to be completely blocked. If the first difference is less than a third preset threshold, and the difference between the second difference and the standard pressure difference is less than a fourth preset threshold, then the target drain pipe is determined to be unblocked. If the difference between the standard pressure difference and the second difference is greater than a fifth preset threshold, then the target drain pipe is determined to be partially blocked. In this implementation, the controller can also determine the degree of blockage of the target drain pipe based on the second difference and the standard pressure difference. For example, the degree of blockage = 1 - second difference / standard pressure difference.
[0098] This method allows for the identification of the specific clogged drain pipe and the degree of blockage for each individual drain pipe, facilitating subsequent maintenance.
[0099] Optionally, when inspecting a target drain pipe, a flow sensor installed in the target drain pipe can be used to determine its drain pipe status. Understandably, during vehicle development, when the target drain pipe is completely unblocked, the drain valve is opened to introduce a constant flow of gas into the pipe (simulating an in-vehicle exhaust scenario), and the flow rate value output by the flow sensor is recorded to determine the flow range for the unblocked state. When the drain pipe is completely blocked, the flow rate value output by the flow sensor is recorded to determine the flow threshold for the completely blocked state. Under different proportions of partial blockage, the corresponding flow ranges are calibrated to form a flow rate-blockage degree mapping table, which is then stored in the controller.
[0100] For example, the controller acquires the first and second flow rates of the drain valve in both its open and closed states. Based on the difference between the first and second flow rates and the aforementioned mapping relationship between the calibrated flow range and blockage status, the controller determines the drain pipe status of the target drain pipe, as well as the degree of blockage if the target drain pipe is blocked. In this way, the flow sensor can directly detect the fluid flow state within the drain pipe, overcoming the shortcomings of pure pressure detection, which suffers from insignificant pressure changes and insufficient accuracy in determining low blockage levels (such as slight narrowing), thus improving the accuracy of drain pipe status determination.
[0101] S207. Output prompt information based on the status of the sunroof drain pipe.
[0102] For example, the prompt message refers to feedback information used to inform the user of the sunroof drain pipe status, so that the user can understand the drainage system status in a timely manner and take appropriate measures (such as cleaning the drain pipe or going to a repair shop for processing). This application embodiment does not limit the output format of the prompt message; for example, it can be displayed on the vehicle's infotainment system. For instance, a complete blockage displays a red warning icon + "Sunroof drain pipe is completely blocked, please go to a 4S shop immediately for processing"; partial blockage displays a yellow prompt icon + "Sunroof drain pipe is partially blocked (blockage level 11%), regular cleaning is recommended"; no blockage displays a green normal icon + "Sunroof drain pipe is unobstructed, no processing required"; the vehicle's infotainment system plays the corresponding prompt voice through the audio system; and text prompts are pushed to the bound user through the vehicle brand's official application for easy viewing later.
[0103] The method for detecting the status of a vehicle sunroof drain pipe provided in this application embodiment controls the vehicle to enter a preset sealed test state in response to a detection command. Under different operating conditions (open and closed of the drain valve), it acquires a first pressure value and a second pressure value inside the vehicle. It calculates a first difference between the first pressure value and the initial pressure value, and a second difference between the second pressure value and the first pressure value. Combining this with a preset standard pressure difference, it qualitatively determines the drain pipe status and finally provides feedback to the user with a prompt message. This method, based on calculating the dual pressure differences and comparing them with preset initial and standard pressure differences, not only achieves accurate qualitative differentiation between complete blockage, no blockage, and partial blockage, but also quantifies the degree of partial blockage. It can detect blockage risks in advance, reducing the likelihood of vehicle leaks. Furthermore, the entire detection process is automated, requiring no manual user intervention, and supports multiple triggering methods, adapting to various scenarios such as daily use, regular maintenance, and after-sales diagnostics. This improves the convenience of detection, enhances vehicle safety, and improves the user experience.
[0104] Figure 4 A schematic diagram of the structure of the detection device for the condition of the drain pipe of a vehicle sunroof provided in this application is shown below. Figure 4As shown, the detection device 300 for detecting the status of the drain pipe of a vehicle sunroof provided in this embodiment includes:
[0105] The control module 301 is used to respond to the detection command and control the vehicle to enter a preset closed test state; wherein, the closed test state represents the closed state of the vehicle doors and windows, the closed state of the sunroof, the preset air intake state of the air conditioner, and the open state of the drain valve.
[0106] The first acquisition module 302 is used to acquire the first pressure value of the pressure sensor inside the vehicle under a preset sealed test state.
[0107] The second acquisition module 303 is used to acquire the second pressure value of the pressure sensor when the drain valve is closed.
[0108] The determination module 304 is used to determine the status of the sunroof's drain pipe based on the first pressure value, the second pressure value, and preset calibration parameters; wherein, the drain pipe status represents the blockage of the sunroof's drain pipe.
[0109] In one possible implementation, the preset calibration parameters include an initial pressure value and a standard pressure difference value; wherein, the initial pressure value characterizes the pressure value of the pressure sensor when the sunroof drain pipe is completely unblocked and the vehicle is in a sealed test state; the standard pressure difference characterizes the difference between the pressure value of the pressure sensor when the drain valve is closed and the pressure value of the pressure sensor when the drain valve is open when the sunroof drain pipe is completely unblocked.
[0110] In one possible implementation, the determining module 304 is configured to:
[0111] Determine the first difference between the first pressure value and the initial pressure value;
[0112] Determine the second difference between the second pressure value and the first pressure value;
[0113] The status of the sunroof's drain pipe is determined based on the first difference, the second difference, and the standard pressure difference.
[0114] In one possible implementation, the determining module 304 is configured to:
[0115] If the difference between the first difference and the standard pressure difference is less than the first preset threshold, and the second difference is less than the second preset threshold, then the drain pipe is determined to be completely blocked.
[0116] If the first difference is determined to be less than the third preset threshold, and the difference between the second difference and the standard pressure difference is less than the fourth preset threshold, then the drain pipe is determined to be in an unblocked state.
[0117] In one possible implementation, the determining module 304 is configured to:
[0118] If the difference between the standard pressure difference and the second difference is greater than the fifth preset threshold, then the drain pipe is determined to be partially blocked.
[0119] In one possible implementation, when it is determined that the drain pipe is partially blocked, the determination module 304 is used to:
[0120] The degree of blockage in the drain pipe is determined based on the second difference and the standard pressure difference.
[0121] In one possible implementation, the device further includes an output module for:
[0122] Output prompt information based on the status of the sunroof's drain pipe.
[0123] The device for detecting the status of the drain pipe of a vehicle sunroof provided in this embodiment can execute the method provided in the above-described method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0124] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device 500 provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the electronic device 500 further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus. The electronic device may be, for example, a controller.
[0125] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0126] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0127] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0128] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0129] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0130] This application also provides a vehicle including an electronic device for performing the above-described method.
[0131] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0132] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0133] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0134] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0135] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0136] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0137] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0138] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0139] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0140] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for detecting the condition of a drain pipe for a vehicle sunroof, characterized in that, The sunroof drain pipe of the vehicle is equipped with a drain valve; including: In response to a detection command, the vehicle is controlled to enter a preset closed test state; wherein, the closed test state indicates that the doors and windows are closed, the sunroof is closed, the air conditioning is in a preset air intake state, and the drain valve is in an open state. Under the preset sealed test state, the first pressure value of the pressure sensor inside the vehicle is obtained; With the drain valve closed, the second pressure value of the pressure sensor is obtained; Based on the first pressure value, the second pressure value, and preset calibration parameters, the status of the sunroof's drain pipe is determined; wherein, the drain pipe status indicates the blockage of the sunroof's drain pipe.
2. The method according to claim 1, characterized in that, The preset calibration parameters include an initial pressure value and a standard pressure difference value; wherein, the initial pressure value represents the pressure value of the pressure sensor in the sealed test state when the sunroof drain pipe is completely unblocked; the standard pressure difference represents the difference between the pressure value of the pressure sensor when the drain valve is closed and the pressure value of the pressure sensor when the drain valve is open in the sunroof drain pipe, which is in the completely unblocked state.
3. The method according to claim 2, characterized in that, Determining the status of the sunroof's drain pipe based on the first pressure value, the second pressure value, and preset calibration parameters includes: Determine a first difference between the first pressure value and the initial pressure value; Determine a second difference between the second pressure value and the first pressure value; The status of the sunroof's drain pipe is determined based on the first difference, the second difference, and the standard pressure difference.
4. The method according to claim 3, characterized in that, Determining the status of the sunroof's drain pipe based on the first difference, the second difference, and the standard pressure difference includes: If it is determined that the difference between the first difference and the standard pressure difference is less than a first preset threshold, and the second difference is less than a second preset threshold, then it is determined that the drain pipe is completely blocked. If it is determined that the first difference is less than the third preset threshold, and the difference between the second difference and the standard pressure difference is less than the fourth preset threshold, then the drain pipe is determined to be in an unblocked state.
5. The method according to claim 4, characterized in that, The method further includes: If the difference between the standard pressure difference and the second difference is greater than the fifth preset threshold, then the drain pipe is determined to be partially blocked.
6. The method according to claim 5, characterized in that, When it is determined that the drain pipe is partially blocked, the method further includes: The degree of blockage in the drain pipe is determined based on the second difference and the standard pressure difference.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: Based on the status of the skylight's drain pipe, a prompt message is output.
8. A device for detecting the condition of a drain pipe for a vehicle sunroof, characterized in that, The sunroof drain pipe of the vehicle is equipped with a drain valve; including: The control module is used to respond to the detection command and control the vehicle to enter a preset closed test state; wherein, the closed test state represents the closed state of the vehicle doors and windows, the closed state of the sunroof, the preset air intake state of the air conditioner, and the open state of the drain valve. The first acquisition module is used to acquire the first pressure value of the pressure sensor inside the vehicle under the preset sealed test state. The second acquisition module is used to acquire the second pressure value of the pressure sensor when the drain valve is closed. The determination module is used to determine the status of the sunroof's drain pipe based on the first pressure value, the second pressure value, and preset calibration parameters; wherein the drain pipe status represents the blockage of the sunroof's drain pipe.
9. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.