Control method and control device of vehicle-mounted equipment, electronic equipment and medium

By integrating electric blinds, fans and electro-optical glass into the vehicle, harmful gas sensors are used to detect the concentration and generate control signals to quickly discharge harmful gases and provide visual alarms. This solves the problem of slow discharge of harmful gases in the vehicle and improves driving safety. .

CN118790011APending Publication Date: 2024-10-18FULSCIENCE AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411075398.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, the harmful gases in the vehicle are discharged slowly, making it difficult to remind the driver in time, which affects driving safety.

Method used

Electric blinds, fans, vehicle controllers and electro-optical glass are used to detect the concentration through harmful gas sensors, generate control signals to adjust the opening status of the blinds and fan speed, and use electro-optical glass to provide visual alarm reminders to quickly discharge harmful gases.

Benefits of technology

It achieves rapid discharge of harmful gases and visual alarm reminders, improving driver awareness and driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118790011A_ABST
    Figure CN118790011A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device of vehicle-mounted equipment, electronic equipment and a medium. The vehicle-mounted equipment comprises an electric shutter, a fan, a vehicle controller, a harmful gas sensor and a front windshield. The front windshield is at least partially made of electro-glass; the control method comprises the steps that when the concentration of harmful gas in a vehicle exceeds a preset threshold value, a voltage control signal, a shutter control signal and a fan rotating speed control signal are generated according to the concentration of the harmful gas; the voltage control signal is sent to the front windshield to adjust the color of an electro-glass part in the front windshield; the shutter control signal is sent to the electric shutter so as to adjust the opening state of the electric shutter; and the fan rotating speed control signal is sent to the fan to adjust the rotating speed of the fan, and the fan rotates to drive the harmful gas to be exhausted out of the vehicle from the exhaust passage of the electric shutter. Therefore, the harmful gas can be quickly exhausted out of the vehicle, and visual alarm reminding of the harmful gas is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a control method, a control device, an electronic device and a medium for vehicle-mounted equipment. Background Art

[0002] During the operation of the vehicle, harmful gases are sometimes generated in the cabin of the vehicle. Some harmful gases are colorless and odorless, and difficult to detect, which can harm human health and are not conducive to driving safety. Even if the user notices the presence of harmful gases in the car, the existing treatment method is to turn on the air conditioning external circulation and open the car windows to exhaust the harmful gases through natural wind. However, this treatment method is slow to exhaust harmful gases out of the car. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a control method, a control device, an electronic device and a medium for a vehicle-mounted device, so as to solve the problem of slow exhaust speed of harmful gases out of the vehicle in the prior art.

[0004] The embodiment of the present application provides a control method for a vehicle-mounted device, the vehicle-mounted device comprising an electric blind, a fan, a vehicle controller, a harmful gas sensor and a front windshield; the front windshield at least partially adopts electro-optical glass; the control method is applied to the vehicle controller; the vehicle controller is electrically connected to the electric blind, the fan, the harmful gas sensor and the front windshield respectively; the fan is integrated in the exhaust passage of the electric blind; the control method comprises:

[0005] Receiving the concentration of harmful gases in the vehicle collected by the harmful gas sensor;

[0006] When the concentration of the harmful gas exceeds a preset threshold, a voltage control signal, a shutter control signal and a fan speed control signal are generated according to the concentration of the harmful gas;

[0007] Sending the voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield;

[0008] Sending the shutter control signal to the electric shutter to adjust the opening state of the electric shutter;

[0009] The fan speed control signal is sent to the fan to adjust the fan speed, and the fan is rotated to drive harmful gases to be discharged from the vehicle interior through the exhaust passage of the electric shutter.

[0010] Further, determining a voltage control signal according to the concentration of the harmful gas includes:

[0011] According to the color change range of the electro-glass, a plurality of color change voltage values ​​are extracted from the color change voltage range of the electro-glass;

[0012] Dividing the concentration of the harmful gas into a plurality of concentration intervals;

[0013] Establishing a mapping relationship between the multiple concentration intervals and the multiple color-changing voltage values; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass;

[0014] Determine the concentration interval to which the harmful gas concentration belongs, and determine the target color change voltage value according to the mapping relationship;

[0015] The voltage control signal is generated according to the target color change voltage value.

[0016] Further, determining the shutter control signal according to the concentration of the harmful gas includes:

[0017] Determine the shutter opening value according to the concentration of the harmful gas;

[0018] The shutter control signal is generated according to the shutter opening value; the shutter control signal is used to control the electric shutter to open according to the shutter opening value.

[0019] Further, determining the fan speed control signal according to the harmful gas concentration includes:

[0020] Inputting the harmful gas concentration into a double closed-loop control system to obtain a fan speed compensation value;

[0021] The fan speed control signal is generated according to the fan speed compensation value.

[0022] Furthermore, the double closed-loop control system includes an outer loop control system and an inner loop control system; the outer loop control system adopts a position PID control algorithm, and the inner loop control system adopts an incremental PID control algorithm; the concentration of harmful gases is input into the double closed-loop control system to obtain a fan speed compensation value, including:

[0023] Inputting the harmful gas concentration into the outer loop control system, and generating a target speed value using a position PID control algorithm according to a difference between the harmful gas concentration and a preset harmful gas target concentration;

[0024] The target speed value is input into the inner loop control system, and the target speed value is generated using an incremental PID control algorithm according to the difference between the current actual speed value and the target speed value;

[0025] The outer loop control system generates the fan speed compensation value according to the harmful gas concentration target value and the harmful gas concentration value.

[0026] Furthermore, the control method further includes:

[0027] When the concentration of the harmful gas is lower than a preset threshold, a reverse voltage control signal, a shutter closing control signal and a fan closing control signal are generated;

[0028] Sending the reverse voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield to be transparent;

[0029] Sending the shutter closing control signal to the electric shutter to close the electric shutter;

[0030] The fan shutoff control signal is sent to the fan to shut down the fan speed.

[0031] The embodiment of the present application also provides a control device for an on-vehicle device, the on-vehicle device comprising an electric blind, a fan, a vehicle controller, a harmful gas sensor and a front windshield; the front windshield is at least partially electroluminescent glass; the control device is applied to the vehicle controller; the vehicle controller is electrically connected to the electric blind, the fan, the harmful gas sensor and the front windshield respectively; the fan is integrated in the exhaust passage of the electric blind; the control device comprises:

[0032] A receiving module, used for receiving the concentration of harmful gases in the vehicle collected by the harmful gas sensor;

[0033] A generating module, for generating a voltage control signal, a shutter control signal and a fan speed control signal according to the concentration of the harmful gas when the concentration of the harmful gas exceeds a preset threshold;

[0034] A sending module, used for sending the voltage control signal to the front windshield to adjust the color of the electro-glass part of the front windshield;

[0035] The sending module is further used to send the shutter control signal to the electric shutter to adjust the opening state of the electric shutter;

[0036] The sending module is also used to send the fan speed control signal to the fan to adjust the fan speed, and drive the harmful gas to be discharged from the vehicle interior through the exhaust passage of the electric shutter through the rotation of the fan.

[0037] Furthermore, when the generating module is used to determine the voltage control signal according to the concentration of the harmful gas, the generating module is used to:

[0038] According to the color change range of the electro-glass, a plurality of color change voltage values ​​are extracted from the color change voltage range of the electro-glass;

[0039] Dividing the concentration of the harmful gas into a plurality of concentration intervals;

[0040] Establishing a mapping relationship between the multiple concentration intervals and the multiple color-changing voltage values; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass;

[0041] Determine the concentration interval to which the harmful gas concentration belongs, and determine the target color change voltage value according to the mapping relationship;

[0042] The voltage control signal is generated according to the target color change voltage value.

[0043] An embodiment of the present application also provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the steps of the control method of the vehicle-mounted equipment as described above are performed.

[0044] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the vehicle-mounted device as described above are executed.

[0045] The embodiments of the present application provide a control method, a control device, an electronic device and a medium for vehicle-mounted equipment. By adding a fan to the electric blinds, when it is detected that the concentration of harmful gases in the vehicle exceeds a preset threshold, the electric blinds are automatically opened and the fan speed is adjusted to allow the harmful gases to be quickly discharged. At the same time, the characteristics of the electro-glass material are utilized to provide a visual alarm reminder of the harmful gases, which helps the driver to understand the situation in a timely manner and helps to improve driving safety.

[0046] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0048] Figures 1(a) and (b) show a schematic structural diagram of a vehicle-mounted device provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of the structure of an electric blind and a fan provided in an embodiment of the present application is shown;

[0050] Figure 3 A flow chart showing a method for controlling a vehicle-mounted device provided in an embodiment of the present application is shown;

[0051] Figure 4 A schematic diagram of the structure of a dual closed-loop control system provided in an embodiment of the present application is shown;

[0052] Figure 5 A schematic diagram showing the structure of a control device for an on-vehicle device provided in an embodiment of the present application is shown;

[0053] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0054] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.

[0055] Research has found that during the operation of a vehicle, harmful gases are sometimes generated in the cabin of the vehicle. Some harmful gases are colorless and odorless, making them difficult to detect, thus causing harm to human health and detrimental to driving safety. Even if users notice the presence of harmful gases in the car, the existing treatment method is to turn on the air conditioning external circulation and open the windows to exhaust the harmful gases through natural wind. However, this treatment method is slow in exhausting harmful gases out of the car.

[0056] Based on this, an embodiment of the present application provides a control method for vehicle-mounted equipment so that harmful gases can be quickly discharged from the vehicle, providing a visual alarm reminder of harmful gases, helping the driver to understand the situation in a timely manner, and improving driving safety.

[0057] Please refer to Figures 1(a) and (b), which are schematic diagrams of the structure of a vehicle-mounted device provided in an embodiment of the present application. As shown in Figure 1(a), the vehicle-mounted device includes an electric blind 1, a fan 2, a vehicle controller 3, a harmful gas sensor 4 and a front windshield 5; the front windshield 5 is at least partially made of electro-glass. Among them, the main component of the electro-glass is a vanadium oxide compound, which is usually colorless and transparent. When an electric field acts on it, it undergoes an oxidation-reduction reaction to form a colored compound, and the color of this colored compound can be adjusted according to the intensity and direction of the electric field.

[0058] The vehicle controller 3 is electrically connected to the electric shutter 1 , the fan 2 , the harmful gas sensor 4 and the front windshield 5 , respectively.

[0059] As shown in FIG1( b ), the vehicle controller 3 includes an analog / digital converter, a processing circuit, a voltage converter, and an amplifier. The harmful gas sensor is connected to the analog / digital converter, the analog / digital converter is connected to the processing circuit, the processing circuit is respectively connected to the voltage converter and the electric blinds, the processing circuit is connected to the voltage converter, the voltage converter is connected to the amplifier, and the amplifier is respectively connected to the fan and the front windshield.

[0060] The analog / digital converter converts the AD value collected by the harmful gas sensor into a voltage value. The conversion formula is: AD = (V / VCC) * 2^n (V represents the calculation voltage, VCC represents the power supply voltage, and n represents the number of bits converted by the AD chip). The processing circuit amplifies the voltage value converted from different harmful gas concentrations to a range of 0.5v to 1.5v, which is the color-changing voltage range of the electrochromic glass. When the concentration of harmful gases exceeds the acceptable concentration for the human body, such as 35ppm, the voltage value increases with the increase of the concentration of harmful gases, and the voltage acting on the electrochromic glass is also greater, thereby adjusting the color of the electrochromic glass according to different harmful gas concentrations to remind the driver whether the concentration of harmful gases exceeds the standard.

[0061] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of an electric blind and a fan provided in an embodiment of the present application. Figure 2 As shown in , the fan is integrated in the exhaust passage of the electric blinds; 6 represents the connection between the electric blinds and the fan; the speed of the fan is adjusted according to different concentrations of harmful gases, so as to quickly exhaust the harmful gases in the car.

[0062] As an example, the harmful gas may be carbon monoxide CO.

[0063] See also Figure 3 , Figure 3This is a flow chart of a control method for a vehicle-mounted device provided in an embodiment of the present application. Figure 3 As shown in , the control method provided by the embodiment of the present application includes:

[0064] S301, receiving the harmful gas concentration in the vehicle collected by the harmful gas sensor.

[0065] In this step, the harmful gas sensor in the vehicle collects the concentration of harmful gases in the vehicle in real time and sends the collected data to the vehicle controller.

[0066] S302: When the concentration of the harmful gas exceeds a preset threshold, a voltage control signal, a shutter control signal and a fan speed control signal are generated according to the concentration of the harmful gas.

[0067] In this step, an alarm threshold (i.e., preset threshold) is pre-set for the concentration of harmful gases. When the concentration of harmful gases exceeds the preset threshold, it means that the harmful gases need to be discharged out of the vehicle as soon as possible to avoid affecting physical health and vehicle operation safety. At the same time, the driver and passengers should be reminded promptly and clearly.

[0068] In a first possible implementation manner, determining a voltage control signal according to the concentration of the harmful gas includes:

[0069] According to the color change range of the electrochromic glass, a plurality of color-changing voltage values ​​are extracted from the color-changing voltage range of the electrochromic glass; the concentration of the harmful gas is divided into a plurality of concentration intervals; a mapping relationship between the plurality of concentration intervals and the plurality of color-changing voltage values ​​is established; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass; the concentration interval to which the concentration of the harmful gas belongs is determined, and a target color-changing voltage value is determined according to the mapping relationship; and the voltage control signal is generated according to the target color-changing voltage value.

[0070] In one example, when the harmful gas sensor detects that the concentration of harmful gas exceeds 35ppm, a CAN command is sent to open the blinds and the fan, and then it is determined whether the concentration of harmful gas exceeds 100ppm. If the concentration of harmful gas is between 35ppm and 100ppm, the voltage is amplified to a voltage range that turns the front windshield into light red according to the voltage value corresponding to the current harmful gas concentration; when the concentration of harmful gas exceeds 100ppm, the voltage is amplified to a voltage range that turns the front windshield into dark red; when the concentration of harmful gas is less than 100ppm, a reverse voltage is applied to the electro-glass, and the color of the glass changes from dark red to light red. When the concentration of harmful gas is less than 35ppm, the color of the glass changes from light red to transparent.

[0071] In a second possible implementation manner, determining the shutter control signal according to the concentration of the harmful gas includes:

[0072] The shutter opening value is determined according to the concentration of harmful gases; the shutter control signal is generated according to the shutter opening value; the shutter control signal is used to control the electric shutter to open according to the shutter opening value.

[0073] Among them, the harmful gas concentration is positively correlated with the shutter opening value, that is, the higher the harmful gas concentration, the larger the shutter opening value should be; when the harmful gas concentration exceeds a certain value, the shutter opening value can reach the maximum, that is, the electric shutter is fully opened.

[0074] In a specific implementation, a shutter control signal can be generated by the shutter opening value, and the shutter control signal drives the motor to drive the electric shutter to open according to the shutter opening value.

[0075] In a third possible implementation manner, determining the fan speed control signal according to the harmful gas concentration includes:

[0076] The harmful gas concentration is input into a double closed-loop control system to obtain a fan speed compensation value; and the fan speed control signal is generated according to the fan speed compensation value.

[0077] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of a dual closed-loop control system provided in an embodiment of the present application. Figure 4 As shown in , the dual closed-loop control system includes an outer-loop control system and an inner-loop control system; the outer-loop control system adopts a position PID control algorithm, and the inner-loop control system adopts an incremental PID control algorithm.

[0078] r1(t) represents the target value of harmful gas concentration in the vehicle (35ppm), e1(t) represents the difference between the target value of harmful gas concentration and the actual harmful gas concentration in the vehicle, u1(t) represents the target speed of the fan, e2(t) represents the difference between the target speed of the fan and the actual speed, and u2(t) represents the speed compensation. The outer loop of the control system adopts position PID (u(k) = Kp*e(k) + Ki*∑e(k) + Kd*[e(k)-e(k-1)]); the inner loop adopts incremental PID (Δu(k) = Kp*[e(k)-e(k-1)] + Ki*e(k) + Kd*[e(k)-2*e(k-1) + e(k-2)]). The two are calculated in series. The algorithm calculates the target speed according to the concentration of harmful gases by the outer loop system, and uses the target speed as the input of the inner loop system to control the fan speed, thereby achieving a dual closed-loop control system in which the outer loop controls the inner loop and the inner loop controls the speed.

[0079] Specifically, the harmful gas concentration is input into the outer-loop control system, and a position-type PID control algorithm is used to generate a target speed value according to the difference between the harmful gas concentration and a preset harmful gas target concentration; the target speed value is input into the inner-loop control system, and an incremental PID control algorithm is used to generate a target speed value according to the difference between the current actual speed value and the target speed value; the outer-loop control system generates the fan speed compensation value according to the harmful gas concentration target value and the harmful gas concentration value.

[0080] In this way, the double closed-loop control system has strong anti-interference ability, fast adjustment speed, and achieves energy-saving effect under the premise of ensuring the discharge of harmful gases in the vehicle.

[0081] S303: Send the voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield.

[0082] In this step, by sending a voltage signal to the front windshield to apply a corresponding voltage value to the electro-optical glass part, the color of the electro-optical glass part in the front windshield can be adjusted to achieve a striking reminder effect.

[0083] S304: Send the shutter control signal to the electric shutter to adjust the opening state of the electric shutter.

[0084] In this step, by sending a shutter control signal to the electric shutter, the opening state of the electric shutter can be adjusted, such as opening the electric shutter and adjusting the opening, so that harmful gases can be discharged from the vehicle through the shutter, while preparing for the fan to rotate to accelerate exhaust.

[0085] S305, sending the fan speed control signal to the fan to adjust the fan speed, and driving the harmful gas to be discharged from the vehicle interior through the exhaust passage of the electric blinds through the rotation of the fan.

[0086] In this step, the fan speed can be changed by sending a fan speed control signal to the fan, and the rotation of the fan drives the gas (including harmful gas) in the vehicle to be quickly discharged from the exhaust passage of the electric blinds.

[0087] Furthermore, the control method also includes:

[0088] When the concentration of harmful gases is lower than a preset threshold, a reverse voltage control signal, a shutter closing control signal and a fan closing control signal are generated; the reverse voltage control signal is sent to the front windshield to adjust the color of the electro-glass part of the front windshield to transparent; the shutter closing control signal is sent to the electric shutter to close the electric shutter; the fan closing control signal is sent to the fan to shut down the fan speed.

[0089] A control method for a vehicle-mounted device is provided in an embodiment of the present application, wherein the vehicle-mounted device includes an electric blind, a fan, a vehicle controller, a harmful gas sensor and a front windshield; the front windshield is at least partially made of electro-sensitive glass; the control method is applied to the vehicle controller; the vehicle controller is electrically connected to the electric blind, the fan, the harmful gas sensor and the front windshield, respectively; the fan is integrated on the exhaust passage of the electric blind; the control method includes: receiving the concentration of harmful gases in the vehicle collected by the harmful gas sensor; when the concentration of harmful gases exceeds a preset threshold, generating a voltage control signal, a blind control signal and a fan speed control signal according to the concentration of harmful gases; sending the voltage control signal to the front windshield to adjust the color of the electro-sensitive glass part of the front windshield; sending the blind control signal to the electric blind to adjust the opening state of the electric blind; sending the fan speed control signal to the fan to adjust the fan speed, and driving the harmful gases to be discharged from the exhaust passage of the electric blind to the interior of the vehicle through the rotation of the fan.

[0090] In this way, by adding a fan to the electric blinds, when it is detected that the concentration of harmful gases in the car exceeds the preset threshold, the electric blinds will automatically open and the fan speed will be adjusted so that the harmful gases can be quickly discharged; at the same time, the characteristics of the electro-glass material are utilized to provide a visual alarm reminder of harmful gases, helping the driver to understand the situation in a timely manner, which helps to improve driving safety.

[0091] Please refer to 5, Figure 5 This is a schematic diagram of the structure of a control device for a vehicle-mounted device provided in an embodiment of the present application. Figure 5 As shown in , the control device 400 includes:

[0092] A receiving module 410, configured to receive the concentration of harmful gases in the vehicle collected by the harmful gas sensor;

[0093] A generating module 420, for generating a voltage control signal, a shutter control signal and a fan speed control signal according to the concentration of the harmful gas when the concentration of the harmful gas exceeds a preset threshold;

[0094] A sending module 430, configured to send the voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield;

[0095] The sending module 430 is further used to send the shutter control signal to the electric shutter to adjust the opening state of the electric shutter;

[0096] The sending module 430 is further used to send the fan speed control signal to the fan to adjust the fan speed, and drive the harmful gas to be discharged from the vehicle interior through the exhaust passage of the electric shutter through the rotation of the fan.

[0097] Furthermore, when the generating module 420 is used to generate a voltage control signal according to the concentration of the harmful gas, the generating module 420 is used to:

[0098] According to the color change range of the electro-glass, a plurality of color change voltage values ​​are extracted from the color change voltage range of the electro-glass;

[0099] Dividing the concentration of the harmful gas into a plurality of concentration intervals;

[0100] Establishing a mapping relationship between the multiple concentration intervals and the multiple color-changing voltage values; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass;

[0101] Determine the concentration interval to which the harmful gas concentration belongs, and determine the target color change voltage value according to the mapping relationship;

[0102] The voltage control signal is generated according to the target color change voltage value.

[0103] Furthermore, when the generating module 420 is used to determine the shutter control signal according to the concentration of the harmful gas, the generating module 420 is used to:

[0104] Determine the shutter opening value according to the concentration of the harmful gas;

[0105] The shutter control signal is generated according to the shutter opening value; the shutter control signal is used to control the electric shutter to open according to the shutter opening value.

[0106] Further, when the generating module 420 is used to determine the fan speed control signal according to the concentration of the harmful gas, the generating module 420 is used to:

[0107] Inputting the harmful gas concentration into a double closed-loop control system to obtain a fan speed compensation value;

[0108] The fan speed control signal is generated according to the fan speed compensation value.

[0109] Furthermore, the dual closed-loop control system includes an outer loop control system and an inner loop control system; the outer loop control system adopts a position PID control algorithm, and the inner loop control system adopts an incremental PID control algorithm; when the generating module 420 is used to input the concentration of harmful gases into the dual closed-loop control system to obtain the fan speed compensation value, the generating module 420 is used to:

[0110] Inputting the harmful gas concentration into the outer loop control system, and generating a target speed value using a position PID control algorithm according to a difference between the harmful gas concentration and a preset harmful gas target concentration;

[0111] The target speed value is input into the inner loop control system, and the target speed value is generated using an incremental PID control algorithm according to the difference between the current actual speed value and the target speed value;

[0112] The outer loop control system generates the fan speed compensation value according to the harmful gas concentration target value and the harmful gas concentration value.

[0113] Furthermore, the generating module 420 is also used to generate a reverse voltage control signal, a shutter closing control signal and a fan closing control signal when the concentration of the harmful gas is lower than a preset threshold;

[0114] The sending module 430 is also used to send the reverse voltage control signal to the front windshield to adjust the color of the electro-glass part of the front windshield to transparent; and send the blinds closing control signal to the electric blinds to close the electric blinds; and send the fan shutoff control signal to the fan to shut off the fan speed.

[0115] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown in , the electronic device 500 includes a processor 510 , a memory 520 and a bus 530 .

[0116] The memory 520 stores machine-readable instructions executable by the processor 510. When the electronic device 500 is running, the processor 510 communicates with the memory 520 via the bus 530. When the machine-readable instructions are executed by the processor 510, the above-mentioned Figure 3 The specific implementation of the steps of the control method of the vehicle-mounted device in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0117] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 3 The specific implementation of the steps of the control method of the vehicle-mounted device in the method embodiment shown can be found in the method embodiment, and will not be repeated here.

[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0119] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0120] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0121] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0122] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0123] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for controlling a vehicle-mounted device, characterized in that: The vehicle-mounted equipment includes an electric blind, a fan, a vehicle controller, a harmful gas sensor and a front windshield; the front windshield is at least partially made of electro-glass; the control method is applied to the vehicle controller; the vehicle controller is electrically connected to the electric blind, the fan, the harmful gas sensor and the front windshield respectively; the fan is integrated in the exhaust passage of the electric blind; the control method includes: Receiving the harmful gas concentration in the vehicle collected by the harmful gas sensor; When the concentration of the harmful gas exceeds a preset threshold, a voltage control signal, a shutter control signal and a fan speed control signal are generated according to the concentration of the harmful gas; Sending the voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield; Sending the shutter control signal to the electric shutter to adjust the opening state of the electric shutter; The fan speed control signal is sent to the fan to adjust the fan speed, and the fan is rotated to drive harmful gases to be discharged from the vehicle interior through the exhaust passage of the electric shutter.

2. The control method according to claim 1, characterized in that: Determining a voltage control signal according to the concentration of the harmful gas includes: According to the color change range of the electro-glass, a plurality of color change voltage values ​​are extracted from the color change voltage range of the electro-glass; Dividing the concentration of the harmful gas into a plurality of concentration intervals; Establishing a mapping relationship between the multiple concentration intervals and the multiple color-changing voltage values; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass; Determine the concentration interval to which the harmful gas concentration belongs, and determine the target color change voltage value according to the mapping relationship; The voltage control signal is generated according to the target color change voltage value.

3. The control method according to claim 1, characterized in that: Determining the shutter control signal according to the concentration of the harmful gas includes: Determine the shutter opening value according to the concentration of the harmful gas; The shutter control signal is generated according to the shutter opening value; the shutter control signal is used to control the electric shutter to open according to the shutter opening value.

4. The control method according to claim 1, characterized in that: Determining the fan speed control signal according to the harmful gas concentration includes: Inputting the harmful gas concentration into a double closed-loop control system to obtain a fan speed compensation value; The fan speed control signal is generated according to the fan speed compensation value.

5. The control method according to claim 4, characterized in that: The double closed-loop control system includes an outer loop control system and an inner loop control system; the outer loop control system adopts a position PID control algorithm, and the inner loop control system adopts an incremental PID control algorithm; the concentration of harmful gases is input into the double closed-loop control system to obtain a fan speed compensation value, including: Inputting the harmful gas concentration into the outer loop control system, and generating a target speed value using a position PID control algorithm according to a difference between the harmful gas concentration and a preset harmful gas target concentration; The target speed value is input into the inner loop control system, and the target speed value is generated using an incremental PID control algorithm according to the difference between the current actual speed value and the target speed value; The outer loop control system generates the fan speed compensation value according to the harmful gas concentration target value and the harmful gas concentration value.

6. The control method according to claim 1, characterized in that: The control method further comprises: When the concentration of the harmful gas is lower than a preset threshold, a reverse voltage control signal, a shutter closing control signal and a fan closing control signal are generated; Sending the reverse voltage control signal to the front windshield to adjust the color of the electro-glass portion of the front windshield to be transparent; Sending the shutter closing control signal to the electric shutter to close the electric shutter; The fan shutoff control signal is sent to the fan to shut down the fan speed.

7. A control device for an on-vehicle device, characterized in that: The vehicle-mounted equipment includes an electric blind, a fan, a vehicle controller, a harmful gas sensor and a front windshield; the front windshield is at least partially made of electro-glass; the control device is applied to the vehicle controller; the vehicle controller is electrically connected to the electric blind, the fan, the harmful gas sensor and the front windshield respectively; the fan is integrated in the exhaust passage of the electric blind; The control device comprises: A receiving module, used for receiving the concentration of harmful gases in the vehicle collected by the harmful gas sensor; A generating module, for generating a voltage control signal, a shutter control signal and a fan speed control signal according to the concentration of the harmful gas when the concentration of the harmful gas exceeds a preset threshold; A sending module, used for sending the voltage control signal to the front windshield to adjust the color of the electro-glass part of the front windshield; The sending module is further used to send the shutter control signal to the electric shutter to adjust the opening state of the electric shutter; The sending module is also used to send the fan speed control signal to the fan to adjust the fan speed, and drive the harmful gas to be discharged from the vehicle interior through the exhaust passage of the electric shutter through the rotation of the fan.

8. The control device according to claim 7, characterized in that: When the generating module is used to determine the voltage control signal according to the concentration of the harmful gas, the generating module is used to: According to the color change range of the electro-glass, a plurality of color change voltage values ​​are extracted from the color change voltage range of the electro-glass; Dividing the concentration of the harmful gas into a plurality of concentration intervals; Establishing a mapping relationship between the multiple concentration intervals and the multiple color-changing voltage values; wherein the concentration of the harmful gas is positively correlated with the color depth of the electrochromic glass; Determine the concentration interval to which the harmful gas concentration belongs, and determine the target color change voltage value according to the mapping relationship; The voltage control signal is generated according to the target color change voltage value.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the control method of the vehicle-mounted device as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method of the vehicle-mounted device according to any one of claims 1 to 6 are executed.