An electronic device, a vehicle, a detection method, an electronic apparatus, and a storage medium
By converting raindrop impact signals into pulse signals through a sensing circuit and adjusting the sensing sensitivity using a voltage divider and amplification circuit, the problems of complexity and high power consumption in rain sensor detection algorithms are solved, achieving efficient and accurate rain detection and human-computer interaction functions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
Existing rain gauge sensors rely on complex and power-consuming algorithms for sampling and analyzing raindrop impact signals based on the piezoelectric effect, making it difficult to efficiently detect rainfall and reduce the complexity of the detection algorithm.
The raindrop impact signal is converted into a pulse signal by the sensing circuit, which simplifies the processing. The sensing sensitivity is adjusted by the voltage divider circuit and the amplification circuit to adapt to different target events. The processor controls the signal processing circuit to switch or adjust the voltage divider ratio and amplification factor.
The complexity and power consumption of the detection algorithm have been reduced, the detection accuracy and applicability of the rain sensor have been improved, the anti-interference ability has been enhanced, and human-computer interaction functions have been supported.
Smart Images

Figure CN122316296A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic technology, and more particularly to an electronic device, a vehicle, a testing method, an electronic device, and a storage medium. Background Technology
[0002] Rain gauges are based on the piezoelectric effect and can convert the mechanical vibrations generated when raindrops hit the ground into electrical signals. The amplitude of these electrical signals is then sampled and analyzed to assess the amount of rainfall. Summary of the Invention
[0003] One embodiment of this application provides an electronic device, vehicle, and electronic equipment, wherein the electronic device processes a first electrical signal generated by a sensing element through a sensing circuit and outputs a pulse signal, so that the processor can directly analyze the pulse signal to detect the target event, thereby eliminating the need for sampling analysis and other processing steps, which helps to reduce the complexity and power consumption of the detection algorithm.
[0004] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein a first sensing circuit includes at least one signal processing circuit, each signal processing circuit including a voltage divider circuit and an amplifier circuit; by preset voltage division ratio and preset amplification factor, the sensing sensitivity of the signal processing circuit can be adjusted, thereby improving the accuracy of detecting target events.
[0005] Another embodiment of this application provides an electronic device, vehicle, and electronic equipment, wherein a first sensing circuit includes an output circuit that modulates the electrical signal converted by the sensing element and outputs it as a pulse signal, thereby simplifying the processor's signal processing algorithm and enhancing the anti-interference capability of the electronic device.
[0006] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein the preset voltage division ratio and preset amplification factor of the signal processing circuit are adapted to each other, making the signal processing circuit suitable for detecting different target events, thereby expanding the applicability of the electronic device.
[0007] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein the voltage divider circuit includes a first adjustable resistor, and the amplifier circuit includes a second adjustable resistor. By adjusting the resistance value, the voltage division ratio and amplification factor are set, making the signal processing circuit suitable for detecting different target events, and the circuit structure is simple.
[0008] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein by providing at least two signal processing circuits in a sensing circuit, and each of the at least two signal processing circuits having a different sensitivity to a first electrical signal, the electronic device can select or switch a suitable signal processing circuit according to the sensing sensitivity required to detect a target event, thereby expanding the applicability of the electronic device.
[0009] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein when the sum of the high-level width or low-level width of the pulse signal output by the sensing circuit reaches a preset threshold, the processor controls the switching of the signal processing circuit or adjusts the preset voltage division ratio and preset amplification factor of the signal processing circuit, thereby realizing the switching of the sensing sensitivity of the electronic device after a certain amount of rain is detected, so as to detect other target events in a rain event.
[0010] Another embodiment of this application provides an electronic device, vehicle, and electronic equipment, wherein the processor responds to the control instructions of the vehicle processor to control the switching of the signal processing circuit or adjust the preset voltage division ratio and preset amplification factor of the signal processing circuit, thereby using the information obtained by the vehicle processor as the basis for adjusting the sensing sensitivity of the electronic device, which is beneficial to improving the flexibility of using the electronic device for human-computer interaction.
[0011] Another embodiment of this application provides an electronic device, vehicle, or electronic device, wherein by simultaneously providing an electronic device including at least one signal processing circuit and an electronic device including at least two signal processing circuits, the electronic device including at least two signal processing circuits can be controlled to switch between different signal processing circuits based on the detection result of the electronic device including at least one signal processing circuit.
[0012] Another embodiment of this application provides an electronic device, vehicle, and electronic equipment, wherein by simultaneously providing an electronic device with a fixed sensing sensitivity and an electronic device with an adjustable sensing sensitivity, the electronic device with the fixed sensing sensitivity is suitable for detecting rainfall, and the electronic device with the adjustable sensing sensitivity can adjust its own sensing sensitivity according to the rainfall detection of the electronic device with the fixed sensing sensitivity.
[0013] Another embodiment of this application provides an electronic device, a vehicle, and an electronic device. The vehicle includes a body, a vehicle controller, and the electronic device. The electronic device is positioned appropriately on the body panels and / or interior trim and / or vehicle components to ensure the accuracy of target event detection. Furthermore, based on the differences in vibration intensity of different target events, an appropriate sensing sensitivity can be set for the electronic device to further improve the detection accuracy of each target event.
[0014] Another embodiment of this application provides a detection method and storage medium, wherein the target event indicated by the vibration signal is determined based on the analysis of the pulse signal, making it easier for the processor to identify and process the pulse signal, and reducing the complexity and power consumption of the detection algorithm.
[0015] Another embodiment of this application provides a detection method and storage medium, wherein rain events of different rainfall ranges can be determined based on the pulse width or duty cycle of the pulse signal, thereby improving the sensing sensitivity of electronic devices without increasing the complexity of the algorithm.
[0016] Another embodiment of this application provides a detection method and storage medium, wherein a knocking event occurring during a rain event can be identified based on the change or difference in the pulse width of multiple consecutive pulse signals, thereby retaining the rainfall detection function while also taking into account the human-computer interaction function, further expanding the scope of application.
[0017] Another embodiment of this application provides a detection method and storage medium, wherein a light rainfall event can be identified based on the peak value of a pulse signal, thereby improving the sensitivity of the sensor.
[0018] Another embodiment of this application provides a detection method and storage medium, wherein each sensing element has at least two sensing modes, and the accuracy of detecting the target event is further improved by setting the sensing modes of the sensing elements and determining the target event based on the pulse signals obtained in the set sensing modes.
[0019] Another embodiment of this application provides a detection method and storage medium, wherein a sensing element is installed on a vehicle, and the sensing mode of the sensing element can be set according to different vehicle conditions, thereby responding more flexibly to human-machine interaction needs and improving the vehicle's intelligence level.
[0020] Another embodiment of this application provides a detection method and storage medium, wherein a vehicle can be controlled to perform corresponding control operations based on the detected target event, thereby increasing the interaction between the vehicle and the user and improving the vehicle's intelligence level.
[0021] To achieve one or more of the above objectives, a first aspect of the embodiments of this application provides an electronic device, including: a sensing element, a sensing circuit, and a processor, wherein the sensing circuit includes a first sensing circuit;
[0022] The sensing element is used to sense vibration signals, convert the vibration signals into a first electrical signal, and transmit the first electrical signal to the sensing circuit;
[0023] The first sensing circuit processes the first electrical signal to obtain an output signal and transmits the output signal to the processor so that the processor can detect the target event indicated by the vibration signal based on the output signal. The output signal is a pulse signal.
[0024] A second aspect of the embodiments of this application provides a vehicle, comprising:
[0025] The vehicle body includes multiple body panels, multiple interior trim pieces, and vehicle components connected to the body panels and / or the interior trim pieces;
[0026] A vehicle controller, which is installed on the vehicle body and is used to control the operation of the vehicle;
[0027] The electronic device according to any one of claims 1 to 17, wherein the sensing elements of the electronic device are respectively disposed on the vehicle body panel and / or the interior trim and / or the vehicle components, and the processor is electrically connected to the vehicle controller.
[0028] A third aspect of the embodiments of this application provides a detection method, comprising:
[0029] The pulse signal is acquired; the pulse signal is generated by sensing vibration signals.
[0030] Based on the analysis of the pulse signal, the target event indicated by the vibration signal is determined.
[0031] A fourth aspect of the embodiments of this application provides an electronic device, including: a processor and a memory configured to store a computer program capable of running on the processor.
[0032] When the processor is configured to run a computer program, the steps of the aforementioned method are executed.
[0033] A fifth aspect of the embodiments of this application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method.
[0034] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 1 ;
[0036] Figure 2 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 2 ;
[0037] Figure 3 This is a schematic diagram of a voltage divider circuit in an embodiment of this application;
[0038] Figure 4 This is a schematic diagram of the structure of an amplifier circuit in an embodiment of this application;
[0039] Figure 5 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 3 ;
[0040] Figure 6 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 4 ;
[0041] Figure 7 This is a schematic diagram of the signal processing circuit in an embodiment of this application;
[0042] Figure 8 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 5 ;
[0043] Figure 9 This is a schematic diagram of the electronic device composition framework in the embodiments of this application. Figure 6 ;
[0044] Figure 10 This is a schematic diagram of the circuit structure of the electronic device in the embodiments of this application. Figure 1 ;
[0045] Figure 11 This is a schematic diagram of the circuit structure of the electronic device in the embodiments of this application. Figure 2 ;
[0046] Figure 12 This is a schematic diagram of the structure of a vehicle according to an embodiment of this application;
[0047] Figure 13 This is a flowchart illustrating the detection method in an embodiment of this application;
[0048] Figures 14A-14D This is a waveform diagram of a pulse signal in an embodiment of this application;
[0049] Figure 15 This is a schematic diagram illustrating the working principle of the switching transistor in the embodiments of this application;
[0050] Figure 16 This is a waveform diagram of another pulse signal according to an embodiment of this application;
[0051] Figure 17 This is a schematic diagram of the composition structure of the electronic device in the embodiments of this application. Detailed Implementation
[0052] In order to gain a more detailed understanding of the features and technical content of the embodiments of this application, the implementation of the embodiments of this application will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of this application.
[0053] In related technologies, rain gauges, based on the piezoelectric effect, convert the mechanical vibrations generated when raindrops hit the ground into electrical signals. These signals are then sampled and analyzed for amplitude to assess rainfall. The algorithms for assessing rainfall by analyzing amplitude are complex. Furthermore, the high frequency of raindrop falls necessitates a high sampling frequency, resulting in high power consumption.
[0054] Based on this, embodiments of this application provide an electronic device, a vehicle, and an electronic device, wherein the electronic device processes the first electrical signal generated by the sensing element through a sensing circuit and outputs a pulse signal, so that the processor can directly analyze the pulse signal to detect the target event, thereby eliminating the need for sampling analysis and other processing steps, which helps to reduce the complexity and power consumption of the detection algorithm.
[0055] Figure 1 This is a schematic diagram of the composition structure of the electronic devices in the embodiments of this application. Figure 1 ,like Figure 1 As shown, the electronic device 10 includes: a sensing element 11, a sensing circuit 12, and a processor 13. The sensing circuit 12 includes a first sensing circuit 120.
[0056] The sensing element 11 is used to sense vibration signals, convert the vibration signals into a first electrical signal, and transmit the first electrical signal to the sensing circuit;
[0057] The first sensing circuit 120 processes the first electrical signal to obtain an output signal and transmits the output signal to the processor 13, so that the processor can detect the target event indicated by the vibration signal based on the output signal. Exemplarily, the output signal is a pulse signal. Exemplarily, the first electrical signal is an analog signal. Exemplarily, the target event is a different vibration event acting on the surface of a target element to which the sensing element is attached. The target element is, for example, the body of a vehicle.
[0058] It should be noted that this application provides an electronic device for detecting a target event. This electronic device processes a first electrical signal through a sensing circuit and outputs a pulse signal. A processor then analyzes the pulse signal, for example, analyzing at least one of the pulse count, pulse width, pulse peak value, and duty cycle, thereby determining the target event indicated by the currently monitored vibration signal. The processor can directly analyze the pulse signal to detect the target event, eliminating the need for sampling and analysis processes, which helps reduce the complexity and power consumption of the detection algorithm.
[0059] For example, the pulse signal can be one or more sets of pulse signals, enabling the processor to detect the target event indicated by the vibration signal based on the output set of one or more sets of pulse signals. Each set of pulse signals includes one or more pulse signals, and each set of pulse signals corresponds to one vibration event of the target event acting on the sensing element. For example, for a knocking event, one knocking event corresponds to one set of pulse signals, and two knocking events correspond to two sets of pulse signals. It should be noted that when the knocking force is too strong and the interval between two knocks is very short, two knocking events may also correspond to one set of pulse signals.
[0060] Each set of pulse signals can also correspond to the multiple vibrations of the sensing element caused by the target event within a unit time or a specific time period. For example, for a rain event, raindrops will continuously collide with the sensing element within a unit time or a specific time period, generating a set of pulse signals.
[0061] In some embodiments, such as Figure 2 As shown, the first sensing circuit 120 includes at least one signal processing circuit 21, and each signal processing circuit includes a voltage divider circuit and an amplifier circuit.
[0062] The input terminal of the voltage divider circuit is connected to the output terminal of the sensing element to receive the first electrical signal and output the second electrical signal after dividing the first electrical signal according to the preset voltage division ratio.
[0063] The input terminal of the amplifier circuit is connected to the output terminal of the voltage divider circuit to receive the second electrical signal and amplify the second electrical signal based on a preset amplification factor to output the output signal.
[0064] The main function of a voltage divider circuit is to control the voltage input to subsequent amplifier circuits. Specifically, it divides the voltage of the first electrical signal from a higher voltage into two or more lower voltages, and inputs the second electrical signal of one of the lower voltages into the subsequent amplifier circuit.
[0065] An amplifier circuit is a circuit that can enhance the amplitude or power of a signal. It is typically used to amplify weak input signals to a sufficiently high level for subsequent processing, transmission, or driving other circuits or loads.
[0066] The voltage divider circuit includes a preset voltage division ratio, the amplifier circuit includes a preset amplification factor, and the preset voltage division ratio and preset amplification factor of the signal processing circuit are matched, making the signal processing circuit suitable for detecting different target events, thereby expanding the application range of electronic devices.
[0067] In some embodiments, the voltage divider circuit includes a first adjustable resistor, configured to adjust the resistance value of the first adjustable resistor in response to processor control to adjust a preset voltage division ratio; and / or, the amplifier circuit includes a second adjustable resistor, configured to adjust the resistance value of the second adjustable resistor in response to processor control to adjust a preset amplification factor. By adjusting the resistance value to set the voltage division ratio and amplification factor, the signal processing circuit is adapted to detect different target events, and the circuit structure is simple.
[0068] An adjustable resistor, also known as a variable resistor, is an electronic component whose resistance can be adjusted. By adjusting the resistance of one or more adjustable resistors in a voltage divider circuit, a specific voltage division ratio can be obtained. By adjusting the resistance of one or more adjustable resistors in an amplifier circuit, a specific amplification factor can be obtained, thereby obtaining a sensing sensitivity suitable for target event detection.
[0069] For example, a voltage divider circuit includes at least two resistors connected in series. (e.g.) Figure 3 As shown, the voltage divider circuit consists of resistors R1 and R2 connected in series. One end of resistor R1 is connected to a sensing element to receive the first electrical signal, and one end of resistor R2 is grounded. The midpoint between resistors R1 and R2 serves as the output terminal of the voltage divider circuit. The voltage divider principle is R1:R2 = U1:U2, where U1 and U2 are the voltages across the two resistors, respectively. By adjusting the resistance values, different voltage division ratios can be achieved, thus obtaining the desired output voltage. Resistors R1 and / or R2 can be set as adjustable resistors, and the voltage division ratio can be adjusted by changing their resistance values.
[0070] For example, setting R1vsR2 to 1k vs 10k allows smaller electrical signals to enter the amplifier circuit, thus providing higher sensing sensitivity and making it suitable for detecting target events that produce small vibration signal intensity, such as rain. Setting R1vsR2 to 5k vs 5k allows medium electrical signals to enter the amplifier circuit, thus providing moderate sensing sensitivity and making it suitable for detecting target events that produce medium vibration signal intensity, such as knocking events. Setting R1vsR2 to 10k vs 1k, etc., allows larger electrical signals to enter the amplifier circuit, thus providing lower sensing sensitivity and making it suitable for detecting target events that produce larger vibration signal intensity, such as collision events.
[0071] For example, the amplifier circuit includes an operational amplifier and one or more resistors. Figure 4As shown, the amplifier circuit includes at least an operational amplifier, resistors R3 and R4. The negative input terminal of the operational amplifier is grounded through resistor R3, and the output terminal is connected to the negative input terminal through resistor R4. The positive input terminal of the operational amplifier receives the first electrical signal, and the output terminal serves as the output terminal of the amplifier circuit. Since R4 / R3 determines the amplification factor of the amplifier circuit, resistors R4 and / or R3 can be set as adjustable resistors, and the amplification factor can be adjusted by changing their resistance values.
[0072] For example, the preset voltage division ratio includes at least a first voltage division ratio and a second voltage division ratio, and the preset amplification factor includes at least a first amplification factor and a second amplification factor. The first voltage division ratio is adapted to the first amplification factor, and the second voltage division ratio is adapted to the second amplification factor.
[0073] When the preset voltage division ratio is the first voltage division ratio and / or the preset amplification factor is the first amplification factor, the signal processing circuit is suitable for detecting the first target event, which can also be understood as the signal processing circuit having a first sensing sensitivity to the first electrical signal.
[0074] When the preset voltage division ratio is the second voltage division ratio and / or the preset amplification factor is the second amplification factor, the signal processing circuit is suitable for detecting the second target event, which can also be understood as the signal processing circuit having a second sensing sensitivity to the first electrical signal.
[0075] It should be noted that the preset voltage division ratio can include more voltage division ratios, and the preset amplification factor can also include more amplification factors.
[0076] It should also be noted that the preset voltage division ratio can include at least two voltage division ratios, and the preset amplification factor can include one amplification factor. That is, the sensing sensitivity can be adjusted by simply changing different voltage division ratios to suit the detection of different target events. Alternatively, the preset voltage division ratio can include one voltage division ratio, and the preset amplification factor can include at least two amplification factors. That is, the sensing sensitivity can be adjusted by simply changing different amplification factors to suit the detection of different target events.
[0077] In some embodiments, such as Figure 5 As shown, the first sensing circuit 120 includes at least two signal processing circuits, namely signal processing circuit 21 to signal processing circuit 2N, where N is an integer greater than or equal to 2, and each of the at least two signal processing circuits has a different sensitivity to the first electrical signal.
[0078] By setting at least two signal processing circuits in a sensing circuit, and each of the at least two signal processing circuits having a different sensitivity to the first electrical signal, the electronic device can select or switch the appropriate signal processing circuit according to the sensitivity required to detect the target event, thereby expanding the applicability of the electronic device.
[0079] In this circuit, at least two voltage divider circuits of the signal processing circuits are connected in parallel (i.e., voltage divider circuit 1 to voltage divider circuit N are connected in parallel), and at least two amplifier circuits of the signal processing circuits are connected in parallel (i.e., amplifier circuit 1 to amplifier circuit N are connected in parallel). The preset voltage division ratio and preset amplification factor of each signal processing circuit are adapted to make the signal processing circuit suitable for detecting the corresponding target event. The first sensing circuit is configured to respond to the processor's control to select the signal processing circuit to adjust the sensing sensitivity to the first electrical signal.
[0080] It should be noted that the voltage divider circuit and amplification circuit of each signal processing circuit can be used as a whole. The first sensing circuit is configured to select a signal processing circuit in response to the processor's control selection signal to adjust the sensing sensitivity to the first electrical signal. Alternatively, the voltage divider circuit and amplification circuit can be controlled independently. The first sensing circuit is configured to select the voltage divider circuit in response to the processor's first control selection signal and select the amplification circuit in response to the processor's second control selection signal to adjust the sensing sensitivity to the first electrical signal.
[0081] In some embodiments, each voltage divider circuit includes a voltage divider switching element that is controlled to be connected or disconnected by the processor to enable or disable the voltage divider circuit; each amplifier circuit includes an amplification switching element that is controlled to be connected or disconnected by the processor to enable or disable the amplifier circuit.
[0082] The voltage divider switching element responds to the processor's control to connect or disconnect, enabling or disabling the corresponding voltage divider circuit, i.e., selecting the corresponding voltage division ratio. Similarly, the amplification switching element responds to the processor's control to connect or disconnect, enabling or disabling the corresponding amplifier circuit, i.e., selecting the corresponding amplification factor.
[0083] Voltage divider switching elements and amplifying switching elements include, but are not limited to: switching transistors, metal-oxide-semiconductor field-effect transistors (MOSFETs), bipolar junction transistors (BJTs), and insulated-gate bipolar transistors (IGBTs).
[0084] In some embodiments, such as Figure 6As shown, the first sensing circuit 120 includes at least two signal processing circuits, including a first signal processing circuit 21 and a second signal processing circuit 22; the first signal processing circuit 21 includes a first voltage divider circuit 211 and a first amplifier circuit 212; the first voltage divider circuit 211 includes a first voltage divider switching element, and the first amplifier circuit 212 includes a first amplifier switching element; the second signal processing circuit 22 includes a second voltage divider circuit 221 and a second amplifier circuit 222; the second voltage divider circuit 221 includes a second voltage divider switching element, and the second amplifier circuit 222 includes a second amplifier switching element.
[0085] The first voltage divider switch element and the first amplification switch element are responsive to the processor's control to connect or disconnect, causing the corresponding first voltage divider circuit 211 and first amplification circuit 212 to operate or not operate. The second voltage divider switch element and the second amplification switch element are responsive to the processor's control to connect or disconnect, causing the corresponding second voltage divider circuit 221 and second amplification circuit 222 to operate or not operate.
[0086] It should be noted that at least two signal processing circuits may further include an i-th signal processing circuit, where i is an integer from 2 to N. The i-th signal processing circuit includes an i-th voltage divider circuit and an i-th amplifier circuit. The i-th voltage divider circuit includes an i-th voltage divider switching element, and the i-th amplifier circuit includes an i-th amplification switching element. The i-th voltage divider switching element and the i-th amplification switching element are capable of being connected or disconnected in response to the processor's control, thereby enabling or disabling the corresponding i-th voltage divider circuit and i-th amplifier circuit.
[0087] In some embodiments, the first voltage divider circuit includes: a first voltage divider resistor, a second voltage divider resistor, and a first voltage divider switch element. The first end of the first voltage divider resistor serves as the input terminal of the first voltage divider circuit. The second end of the first voltage divider resistor is connected to the first end of the first voltage divider switch element. The second end of the first voltage divider switch element is grounded through the second voltage divider resistor. The second end of the first voltage divider switch element serves as the output terminal of the first voltage divider circuit. The control terminal of the first voltage divider switch element is connected to the processor.
[0088] The first amplifier circuit includes: an operational amplifier, a first amplifying resistor, and a first amplifying switching element. The first input terminal of the operational amplifier is connected to the output terminal of the first voltage divider circuit, and the second input terminal of the operational amplifier is grounded through a resistor. The first end of the first amplifying resistor is connected to the second input terminal of the operational amplifier, the second end of the first amplifying resistor is connected to the first end of the first amplifying switching element, the second end of the first amplifying switching element is connected to the output terminal of the operational amplifier, and the control terminal of the first amplifying switching element is connected to the processor.
[0089] The second voltage divider circuit includes: a third voltage divider resistor, a fourth voltage divider resistor, and a second voltage divider switch element. The first end of the third voltage divider resistor serves as the input end of the second voltage divider circuit. The second end of the third voltage divider resistor is connected to the first end of the second voltage divider switch element. The second end of the second voltage divider switch element is grounded through the fourth voltage divider resistor. The second end of the second voltage divider switch element serves as the output end of the second voltage divider circuit. The control end of the second voltage divider switch element is connected to the processor.
[0090] The second amplification circuit includes: an operational amplifier, a second amplification resistor, and a second amplification switching element. The first input terminal of the operational amplifier is connected to the output terminal of the second voltage divider circuit, and the second input terminal of the operational amplifier is grounded through a resistor. The first end of the second amplification resistor is connected to the second input terminal of the operational amplifier, the second end of the second amplification resistor is connected to the first end of the second amplification switching element, the second end of the second amplification switching element is connected to the output terminal of the operational amplifier, and the control terminal of the second amplification switching element is connected to the processor.
[0091] In some embodiments, the second voltage divider resistor of the first voltage divider circuit and the fourth voltage divider resistor of the second voltage divider circuit can be the same resistor, that is, at least two voltage divider circuits are grounded through the same resistor.
[0092] In some embodiments, the first input terminal of the operational amplifier may also be connected in series with a resistor to the output terminal of the first voltage divider circuit. Different amplifier circuits may share an operational amplifier or may be configured with independent operational amplifiers.
[0093] like Figure 7 As shown, the first voltage divider circuit includes: a first voltage divider resistor R1, a second voltage divider resistor R3, and a first voltage divider switch element k1; the second voltage divider circuit includes: a third voltage divider resistor R2, a second voltage divider resistor R3, and a second voltage divider switch element k2; the first voltage divider resistor R1 and the third voltage divider resistor R2 are connected in parallel and then connected in series with the second voltage divider resistor R3 and grounded; the control terminal of the first voltage divider switch element k1 is connected to the processor, and the processor controls the first voltage divider switch element k1 to be connected so that the first voltage divider circuit works; the control terminal of the second voltage divider switch element k2 is connected to the processor, and the processor controls the second voltage divider switch element k2 to be connected so that the second voltage divider circuit works.
[0094] The first amplifier circuit includes: an operational amplifier OP and a first amplification resistor R. 11 and the first amplifying switching element k 11 The second amplifier circuit includes: an operational amplifier OP and a second amplification resistor R. 22 Second amplification switching element k 22 The positive input terminal of the operational amplifier OP is connected in series with resistor R4 and then to the output terminals of the first and second voltage divider circuits. The negative input terminal of the operational amplifier OP is grounded through resistor R5. The output terminal of the operational amplifier OP is connected in series with the first amplification resistor R.11 The negative input terminal of the operational amplifier OP is then connected to form the first feedback path, and the output terminal of the operational amplifier OP is connected in series with the second amplification resistor R. 22 The second feedback path is formed by connecting the negative input terminal of the operational amplifier (OP) to the first amplification switching element (k). 11 The control terminal is connected to the processor, and the processor controls the first amplifying switching element k. 11 The connection enables the first amplifier circuit to operate, that is, the first feedback path is turned on, and the second amplification switching element k... 22 The control terminal is connected to the processor, and the processor controls the second amplifying switching element k. 22 The connection enables the second amplifier circuit to operate, that is, the second feedback path is turned on.
[0095] In some embodiments, when the sum of the high-level width or low-level width of the pulse signal output by the sensing circuit reaches a preset threshold, the processor disconnects the first voltage divider switch element and the first amplification switch element, and connects the second voltage divider switch element and the second amplification switch element; or, the processor adjusts the first voltage division ratio to the second voltage division ratio and the first amplification factor to the second amplification factor.
[0096] The high-level width represents the duration of the pulse signal being in a high-level state (usually represented as 1 or logic "true"), and the low-level width represents the duration of the pulse signal being in a low-level state (usually represented as 0 or logic "false"). In this embodiment, the target event is characterized by the high-level width or low-level width of the pulse signal.
[0097] The high-level width or low-level width of the pulse signal (referred to as "pulse signal width") is used to represent the duration of the vibration signal generated by the target event. The higher the intensity of the vibration signal generated by the target event, the longer the duration of the vibration signal, and the wider the width of the pulse signal output by the first sensing circuit; conversely, the lower the intensity of the vibration signal generated by the target event, the shorter the duration of the vibration signal, and the narrower the width of the pulse signal output by the first sensing circuit.
[0098] The processor detects whether a target event has occurred by summing the high-level width or low-level width of each pulse signal in each group of pulse signals output by the sensing circuit. Each group of pulse signals includes one or more pulse signals generated per unit time or within a specific time. According to the attenuation characteristics of the vibration signal, the vibration amplitude of the vibration signal gradually decreases over time, and the interval and width of the pulse signals in each group of pulse signals also change over time.
[0099] For example, when the target event is rain, the size of the raindrops can be determined by the width of a single pulse signal, and the overall amount of rainfall can be determined by the sum of the widths of all pulse signals in each group of pulse signals. As another example, when the target event is a knocking or collision event, whether a knocking or collision event has occurred can be determined by the sum of the widths of all pulse signals in each group of pulse signals.
[0100] In some embodiments, the first sensing circuit is used to process the first electrical signal to obtain an output signal, the output signal including a first type of pulse signal, the low-level width of the first type of pulse signal representing the target event.
[0101] In other embodiments, the first sensing circuit is used to process the first electrical signal to obtain an output signal, the output signal including a second type of pulse signal, the high-level width of the second type of pulse signal representing the target event.
[0102] In this embodiment, the electrical signal converted by the sensing element is divided, amplified, and modulated by the first sensing circuit, and finally a pulse signal is output. This allows the processor to directly analyze the pulse signal to detect the target event, eliminating the need for sampling analysis and other processing steps, which helps to reduce the complexity and power consumption of the detection algorithm.
[0103] In some embodiments, the processor is also connected to an on-board processor; the processor is configured to, according to control commands sent by the on-board processor, disconnect the first voltage divider switch element and the first amplification switch element, and connect the second voltage divider switch element and the second amplification switch element; or, adjust the first voltage division ratio to the second voltage division ratio, and adjust the first amplification factor to the second amplification factor.
[0104] In other words, the processor can also respond to control commands from the onboard processor to switch the signal processing circuit or adjust the preset voltage division ratio and preset amplification factor of the signal processing circuit. This allows the information acquired by the onboard processor to be used as a basis for adjusting the sensing sensitivity of electronic devices, improving the flexibility of using electronic devices for human-machine interaction. Control commands can be generated based on specific events or vehicle operating states, or they can be generated by user control operations. For example, specific events may include a user approaching or leaving the vehicle. For example, vehicle operating states may include the vehicle being in motion, the vehicle speed being zero, or the absence of users or living beings inside the vehicle.
[0105] In some embodiments, the sensing circuit further includes a second sensing circuit, the second sensing circuit including at least one signal processing circuit; the sensing element includes a first sensing element and a second sensing element; the first sensing element is connected to the first sensing circuit, the first sensing circuit being connected to a first interface of the processor; the second sensing element is connected to the second sensing circuit, the second sensing circuit being connected to a second interface of the processor.
[0106] In some embodiments, the processor is configured to, in response to determining that the second interface has received the output signal and detecting a first target event indicated by the vibration signal based on the output signal, control the first voltage divider switch element and the first amplifying switch element in the first sensing circuit to disconnect, and control the second voltage divider switch element and the second amplifying switch element to connect.
[0107] By simultaneously providing an electronic device including at least one signal processing circuit and an electronic device including at least two signal processing circuits, the electronic device including at least two signal processing circuits can be controlled to switch between different signal processing circuits based on the detection result of the electronic device including at least one signal processing circuit.
[0108] In some embodiments, the second sensing circuit may include only one signal processing circuit. Exemplarily, the voltage division ratio and amplification ratio of this signal processing circuit are fixed, meaning its sensing sensitivity is fixed, for example, in a signal processing circuit suitable for detecting rainfall. By simultaneously providing an electronic device with fixed sensing sensitivity and an electronic device with adjustable sensing sensitivity, the electronic device with fixed sensing sensitivity is suitable for detecting rainfall, and the electronic device with adjustable sensing sensitivity can adjust its own sensing sensitivity based on the rainfall detection results of the electronic device with fixed sensing sensitivity.
[0109] In another example, the second sensing circuit may include only one signal processing circuit whose voltage division ratio and amplification ratio are adjustable, i.e., the sensing sensitivity of the signal processing circuit is adjustable. In yet another example, the second sensing circuit may also include two or more signal processing circuits.
[0110] In some implementations, the first and second sensing circuits are connected to different interfaces of the processor, allowing the processor to determine the sensing circuit from which the signal originates based on the interface through which the signal is received. Additionally or optionally, the processor can adjust the voltage division ratio and / or amplification ratio (i.e., sensing sensitivity) of one sensing circuit (e.g., the first sensing circuit) based on the signal transmitted by one sensing circuit (e.g., the second sensing circuit).
[0111] In some embodiments, the second sensing circuit includes a third signal processing circuit, which includes a voltage divider circuit and an amplification circuit. The voltage divider circuit includes a third voltage division ratio, and the amplification circuit includes a third amplification factor. Adapted to the third voltage division ratio and the third amplification factor, the third signal processing circuit is suitable for detecting a third target event. The third target event can serve as an event that switches the sensing sensitivity of the first sensing circuit. Exemplarily, the sensing sensitivity corresponding to the third voltage division ratio and the third amplification factor is higher than the sensing sensitivity corresponding to the first voltage division ratio and the first amplification factor. Exemplarily, when the second sensing circuit includes multiple signal processing circuits, the second sensing circuit is defaulted to the third signal processing circuit, and the sensing sensitivity of the third signal processing circuit is higher than the sensing sensitivity of the signal processing circuit (e.g., the first signal processing circuit) that the first sensing circuit defaults to.
[0112] like Figure 8 As shown, the sensing element 11 includes a first sensing element 111 and a second sensing element 112, and the sensing circuit 12 includes a first sensing circuit 120 and a second sensing circuit 121. The first sensing circuit 120 includes signal processing circuits 21 to 2N, where N is an integer greater than or equal to 2. The second sensing circuit 121 includes a signal processing circuit 31, which includes a voltage divider circuit and an amplifier circuit.
[0113] In some embodiments, the first sensing element 111 is connected to the first sensing circuit 120, and the second sensing element 112 is connected to the second sensing circuit 121. That is, different sensing elements correspond to different sensing circuits, and there is a one-to-one correspondence between the sensing elements and the sensing circuits.
[0114] It should be noted that each signal processing circuit has a different sensitivity to the first electrical signal based on a preset voltage division ratio and preset amplification factor. Higher sensitivity means the signal processing circuit can better receive and process weaker electrical signals, making it easier to detect target events with weaker vibration signals, thus ensuring good reception and processing quality even with low signal strength. Lower sensitivity means the signal processing circuit can receive and process stronger electrical signals, meaning it can only detect target events with stronger vibration signals, thus reducing the signal processing circuit's response to noise and interference, and consequently reducing the probability of false positives. In other words, selecting an appropriate sensitivity ensures that the electronic device can detect signals within a specific range and maintain a stable output.
[0115] The sensitivity of the sensor needs to be matched with the intensity of the vibration signal generated by the target event being detected. Different target events (e.g., rain, knocking, or collision) require appropriate sensitivity to be used to detect different target events, or different vibration signal intensities of the same target event (e.g., light rain, moderate rain, heavy rain) require appropriate sensitivity to be used to detect different parameters of the same target event (e.g., rainfall).
[0116] In some embodiments, such as Figure 9 As shown, the first sensing circuit 120 may include an output circuit 32 in addition to at least one signal processing circuit 21; the input terminal of the output circuit is connected to the output terminal of the amplifier circuit, and is used to receive the third electrical signal and process the third electrical signal to output an output signal.
[0117] The output circuit is specifically used to modulate the third electrical signal to output a pulse signal. By modulating the electrical signal obtained from the sensing element into a pulse signal, the output circuit simplifies the processor's signal processing algorithm and enhances the anti-interference capability of the electronic devices.
[0118] In some embodiments, the output circuit includes an output switching element; a first terminal of the output switching element is connected to a power supply and a processor, a second terminal of the output switching element is grounded, a control terminal of the output switching element is connected to the output terminal of at least one signal processing circuit, and the first terminal of the output switching element outputs an output signal; the output switching element is used to modulate a third electrical signal output by at least one signal processing circuit into a pulse signal.
[0119] By using a third electrical signal to control the on and off of the output switching element in the output circuit, pulse signals of different widths or frequencies can be generated, thereby modulating the third electrical signal into a pulse signal. This simplifies the processor's signal processing algorithm and enhances the anti-interference capability of electronic devices.
[0120] Output switching elements include, but are not limited to: switching transistors, metal-oxide-semiconductor field-effect transistors (MOSFETs), bipolar junction transistors (BJTs), and insulated-gate bipolar transistors (IGBTs).
[0121] For example, the output switching element is an NMOS transistor, which includes a gate (G) (corresponding to the control terminal), a source (S) (corresponding to the second terminal), and a drain (D) (corresponding to the first terminal). The drain (D) of the NMOS transistor can be connected to the power supply after being connected in series with a resistor. When the voltage of the third electrical signal (corresponding to Vgs) is greater than a certain threshold voltage, the NMOS transistor is turned on, and the processor receives a low-level signal. When the voltage of the third electrical signal is less than the certain threshold voltage, the NMOS transistor is turned off, and the processor receives a high-level signal.
[0122] For example, the output switching element is a PMOS transistor, which includes a gate G (corresponding to the control terminal), a source S (corresponding to the first terminal), and a drain D (corresponding to the second terminal). The drain D of the PMOS transistor can be grounded after being connected in series with a resistor. When the voltage of the third electrical signal (corresponding to Vgs) is less than a certain threshold voltage, the PMOS transistor is turned on, and the processor receives a high-level signal. When the voltage of the third electrical signal is greater than the certain threshold voltage, the PMOS transistor is turned off, and the processor receives a low-level signal.
[0123] like Figure 10 As shown, the electronic device includes: a sensing element, a first sensing circuit, and a processor (e.g., an MCU). The first sensing circuit includes: a first signal processing circuit, a second signal processing circuit, and an output circuit. The first signal processing circuit includes a first voltage divider circuit and a first amplifier circuit. The second signal processing circuit includes a second voltage divider circuit and a second amplifier circuit.
[0124] The first voltage divider circuit includes: a first voltage divider resistor R1, a second voltage divider resistor R3, and a first voltage divider switch element k1; the second voltage divider circuit includes: a third voltage divider resistor R2, a second voltage divider resistor R3, and a second voltage divider switch element k2; the first voltage divider resistor R1 and the third voltage divider resistor R2 are connected in parallel and then connected in series with the second voltage divider resistor R3 and grounded; the control terminal of the first voltage divider switch element k1 is connected to the processor I / O1 interface, and the processor controls the first voltage divider switch element k1 to be connected so that the first voltage divider circuit works; the control terminal of the second voltage divider switch element k2 is connected to the processor I / O3 interface, and the processor controls the second voltage divider switch element k2 to be connected so that the second voltage divider circuit works.
[0125] The first amplifier circuit includes: an operational amplifier OP and a first amplification resistor R. 11 and the first amplifying switching element k 11 The second amplifier circuit includes: an operational amplifier OP and a second amplification resistor R. 22 Second amplification switching element k 22 The positive input terminal of the operational amplifier OP is connected in series with resistor R4 and then to the output terminals of the first and second voltage divider circuits. The negative input terminal of the operational amplifier OP is grounded through resistor R5. The output terminal of the operational amplifier OP is connected in series with the first amplification resistor R. 11 The negative input terminal of the operational amplifier OP is then connected to form the first feedback path, and the output terminal of the operational amplifier OP is connected in series with the second amplification resistor R. 22 The second feedback path is formed by connecting the negative input terminal of the operational amplifier (OP) to the first amplification switching element (k). 11 The control terminal is connected to the processor I / O1 interface, and the processor controls the first amplification switching element k. 11 The connection enables the first amplifier circuit to operate, that is, the first feedback path is turned on, and the second amplification switching element k... 22The control terminal is connected to the processor I / O3 interface, and the processor controls the second amplification switching element k. 22 The connection enables the second amplifier circuit to operate, that is, the second feedback path is turned on.
[0126] The output terminal of the operational amplifier OP is connected to the control terminal (such as the gate of a MOSFET) of the output switching element k3 after series resistor R6. The first terminal (such as the drain of a MOSFET) of the output switching element k3 is connected to a 3.3V power supply after series resistor R7, and serves as the output terminal of the first sensing circuit, connected to the processor I / O2 interface. The second terminal (such as the source of a MOSFET) of the output switching element k3 is grounded.
[0127] In some embodiments, the output circuit further includes a voltage regulator component. A first terminal of the voltage regulator component is connected to the output terminal of at least one signal processing circuit, and the first terminal is also connected to the control terminal of an output switching element. A second terminal of the voltage regulator component is grounded. The voltage regulator component is used to clamp the third electrical signal within a preset voltage range. Providing a stable output voltage through the voltage regulator component also protects other components in the circuit from damage due to excessive voltage and enables precise regulation of the output voltage.
[0128] like Figure 11 As shown, the voltage regulator component can be a Zener diode D, with its positive terminal grounded and its negative terminal connected to the control terminal of the output switching element k3. For example, in the reverse breakdown state, the Zener diode D stabilizes the third electrical signal at the forward voltage of the output switching element k3, causing k3 to conduct and the processor to receive a low-level signal; otherwise, k3 is de-energized, and the processor receives a high-level signal.
[0129] In some embodiments, the target event includes at least one of the following: a rain event, a knocking event, and a collision event; the sensing element includes a piezoelectric component. That is, the electronic device provided in this application embodiment can be a piezoelectric sensor that uses the piezoelectric effect to convert the mechanical vibration generated by the impact of the target event into an electrical signal, and determines the target event based on changes in the electrical signal.
[0130] It should be noted that the target event may also include other events indicated by vibration signals.
[0131] For example, the first target event is a rain event, and the second target event is a knocking event or a collision event.
[0132] The resistance values in the first voltage divider circuit and the first amplifier circuit, which are suitable for detecting rainfall, and the resistance values in the second voltage divider circuit and the second amplifier circuit, which are suitable for detecting knocks and collisions, can be pre-calibrated and set. According to the control instructions of the processor, the resistance values are switched between these two sets to obtain different sensing sensitivities, thus making them suitable for target event detection in different scenarios.
[0133] Alternatively, parallel voltage divider circuits and parallel amplifier circuits can be set up, with switching elements in each voltage divider circuit and amplifier circuit to achieve switching between the first voltage divider circuit and the first amplifier circuit and the second voltage divider circuit and the second amplifier circuit, thereby obtaining different sensing sensitivities and making them suitable for target event detection in different scenarios.
[0134] For example, the first target event is light to moderate rain, and the second target event is moderate to heavy rain.
[0135] The resistance values in the first voltage divider circuit and the first amplifier circuit, which are suitable for detecting light rain, and the resistance values in the second voltage divider circuit and the second amplifier circuit, which are suitable for detecting moderate to heavy rain, can be pre-calibrated and set. According to the control instructions of the processor, the resistance values can be switched between these two sets to obtain different sensing sensitivities, thereby improving the detection accuracy of rainfall.
[0136] Alternatively, parallel voltage divider circuits and parallel amplifier circuits can be set up, with switching elements in each voltage divider circuit and amplifier circuit to achieve switching between the first voltage divider circuit and the first amplifier circuit and the second voltage divider circuit and the second amplifier circuit, thereby obtaining different sensing sensitivities and improving the detection accuracy of rainfall.
[0137] by Figure 11 Taking the provided electronic device as an example, the control method of the electronic device will be further illustrated. The electronic device is set to the first signal processing circuit by default, that is, k2 is disconnected and k1 is turned on. At this time, it is suitable for detecting rain events. Its sensing sensitivity is high and it can identify some light rain. In other words, the recognition of light rain does not affect the recognition of ordinary knocking events. When the detected rainfall reaches a certain level (for example, the sum of the widths of the low level and the high level of the pulse signal is greater than a preset threshold), the processor controls the disconnection of k1 and the turning on of k2. At this time, the electronic device switches to the second signal processing circuit, which is suitable for detecting knocking events or collision events. Its sensing sensitivity is low. It will not recognize rain events, but it can recognize knocking events and collision events.
[0138] Alternatively or additionally, a third signal processing circuit and a corresponding switching element k3 may be added, so that the first signal processing circuit, the second signal processing circuit and the third signal processing circuit can be adapted to identify light rain, moderate rain and heavy rain respectively.
[0139] It should be noted that the voltage divider circuit (i.e., the ratio of R1 to R3, or the ratio of R2 to R3) determines the magnitude of the allowed signal voltage amplitude. Each voltage divider circuit has a matching amplifier circuit, which enables k... 11 k 22 This means selecting different magnification levels. For example, enabling k1 will simultaneously select k. 11That is, they are a set of matched signal processing circuits; if k2 is enabled, then k is selected. 22 That is, they are another set of matched signal processing circuits.
[0140] The electronic device provided in this application embodiment can improve the detection accuracy of rainfall by setting at least two signal processing circuits in a sensing circuit, and each of the at least two signal processing circuits has a different sensing sensitivity to the first electrical signal.
[0141] Furthermore, when the sum of the high-level width or low-level width of the pulse signal output by the sensing circuit reaches a preset threshold, the processor controls the switching of the signal processing circuit or adjusts the preset voltage division ratio and preset amplification factor of the signal processing circuit, thereby enabling the switching of the sensing sensitivity of the electronic device after a certain amount of rainfall is detected, so as to detect other target events during rain events.
[0142] This application also provides a vehicle, such as... Figure 12 As shown, vehicle 1200 includes:
[0143] Body 1201, the body includes multiple body panels, multiple interior trim pieces, and vehicle components connected to the body panels and / or interior trim pieces;
[0144] The vehicle controller 1202 is installed on the vehicle body and is used to control the operation of the vehicle.
[0145] The electronic device 1203 provided in any of the embodiments of this application has sensing elements respectively disposed on the vehicle body panel and / or interior parts and / or vehicle components, and the processor is electrically connected to the vehicle controller.
[0146] It should be noted that the vehicle controller 1202, in response to the target event detected by the electronic device 1203, executes the vehicle control operation corresponding to the target event.
[0147] In some embodiments, the vehicle body typically includes multiple body panels, multiple interior trim pieces, and multiple vehicle components. The multiple body panels can be assembled to form an overall vehicle structure, such as a cabin or cargo compartment. For example, body panels include doors, windows, hood, trunk lid, roof, front bumper, rear bumper, and fenders. Interior trim pieces are installed in the cabin and cargo compartment to enhance vehicle comfort and provide interfaces and equipment, such as headliners, floors, dashboards, door panels, center console panels, pillar trim pieces, and window sills. Vehicle components are located within the cabin and cargo compartment and include seats, steering wheels, instrument panels, center console screens, armrests, and license plates.
[0148] The vehicle provided in this application, with electronic devices installed in suitable locations such as the vehicle body panel and / or interior parts and / or vehicle components, can ensure the accuracy of target event detection. Furthermore, based on the differences in vibration intensity of different target events, appropriate sensing sensitivities can be set for the electronic devices to further improve the detection accuracy of each target event.
[0149] Based on the above embodiments of this application, this application also provides a detection method. For example, this method can be performed by, for example, Figure 1 The electronic device 10 shown is used to perform this action. It can also be performed by, for example... Figure 12 The vehicle shown, 1200, is used for execution. It can also be performed by, for example... Figure 17 The electronic device 1700 shown is used to perform this operation. For example... Figure 13 As shown, the method specifically includes:
[0150] Step 1301: Acquire the pulse signal, which is generated by sensing the vibration signal;
[0151] Step 1302: Based on the analysis of the pulse signal, determine the target event indicated by the vibration signal.
[0152] Understandably, different vibration signals are generated under the action of different target events, and thus different vibration signals are converted into different pulse signals. Therefore, based on the analysis of the pulse signal, the target event indicated by the vibration signal can be determined, making it easier for the processor to identify and process the pulse signal, thereby reducing the complexity and power consumption of the detection algorithm.
[0153] In some embodiments, one or more factors, such as the time, location, and parameters of the pulse signal itself, can be analyzed to determine the target event indicated by the vibration signal. For example, a longer duration of the pulse signal, i.e., continuous reception of the pulse signal, suggests a higher probability that the target event is a rain event or a forceful impact event. As another example, receiving pulse signals at multiple locations on multiple vehicle body panels suggests a higher probability that the target event is a rain event.
[0154] In some embodiments, determining the target event indicated by the vibration signal based on the analysis of the pulse signal includes: determining the target event indicated by the vibration signal based on the analysis of parameters of the pulse signal, wherein the parameters include at least one of the number of pulses, pulse width, pulse peak value, and duty cycle of the pulse signal.
[0155] In some embodiments, when the target event is a rain event, the parameters include the pulse width. Based on the analysis of the parameters of the pulse signal, determining the target event indicated by the vibration signal includes: determining the target event as a rain event corresponding to a first rainfall range in response to the pulse width being less than or equal to a first threshold; determining the target event as a rain event corresponding to a second rainfall range in response to the pulse width being greater than the first threshold and less than or equal to a second threshold; and determining the target event as a rain event corresponding to a third rainfall range in response to the pulse width being greater than the second threshold, wherein the second threshold is greater than the first threshold, the first rainfall range is less than the second rainfall range, and the second rainfall range is less than the third rainfall range.
[0156] The embodiments of this application can determine rain events with different rainfall ranges based on the pulse width of the pulse signal, thereby improving the sensing sensitivity of electronic devices without increasing the complexity of the algorithm.
[0157] In some embodiments, the pulse width is specifically the sum of the high-level width or low-level width of each pulse signal in a group of pulse signals, and each group of pulse signals includes one or more pulse signals generated per unit time or within a specific time period. When the sensing element vibrates due to the action of a target event, the vibration amplitude of the vibration signal gradually decreases over time according to the attenuation characteristics of the vibration signal, and the interval and width of the pulse signals in each group of pulse signals also change over time.
[0158] For example, the rainfall event corresponding to the first rainfall range is light rain or less; the rainfall event corresponding to the second rainfall range is moderate rain; and the rainfall event corresponding to the third rainfall range is heavy rain or more.
[0159] In some embodiments, when the target event is a rain event, the parameters include pulse width. The target event indicated by the vibration signal is determined based on the analysis of the parameters of the pulse signal. The method further includes: determining the raindrop size based on the pulse width of a single pulse signal; and determining the overall rainfall amount based on the sum of the widths of multiple pulse signals. For example, pulse width (large raindrops) > pulse width (medium raindrops) > pulse width (small raindrops), and the sum of pulse widths (heavy rain) > the sum of pulse widths (medium raindrops) > the sum of pulse widths (small raindrops).
[0160] It should be noted that the greater the force of the rain hitting the panel, the greater the force impulse transmitted to the panel, the longer the duration of the elastic wave of the signal (the longer the decay time), and the wider the low-level signal or high-level signal. Therefore, the amount of rain can be determined based on the cumulative width of the low-level signal or high-level signal.
[0161] In some embodiments, the method further includes: in response to determining that a plurality of pulse signals with pulse widths greater than a second threshold are interspersed among a plurality of consecutive pulse signals with pulse widths less than a first threshold, determining that the target event is a tapping event occurring in a rain event corresponding to a first rainfall range. The tapping event occurring in a rain event can be identified based on the changes or differences in the pulse widths of the plurality of consecutive pulse signals, thereby retaining the rainfall detection function while also incorporating human-computer interaction functionality, further expanding the scope of application.
[0162] For example, Figure 14A Ideally, the pulse signal should remain at a high level when there is no rain. Figure 14B During light rain, the pulse width of low-level signals is relatively narrow. Figure 14C The pulse width of the low-level signal is wider during heavy rain. Figure 14D Ideally, during light rain, the pulse width of the low-level signal is narrow. When a knocking event with strong vibration is detected, the pulse width of the low-level signal suddenly widens, then returns to a narrow pulse width. This understandably means that a knock occurred during the light rain.
[0163] In some embodiments, the parameters include a duty cycle. Based on the analysis of the parameters of the pulse signal, determining the target event indicated by the vibration signal includes: determining the target event as a rain event corresponding to a first rainfall range in response to a duty cycle less than or equal to a fourth threshold; determining the target event as a rain event corresponding to a second rainfall range in response to a duty cycle greater than the fourth threshold and less than or equal to a fifth threshold; determining the target event as a rain event corresponding to a third rainfall range in response to a duty cycle greater than the fifth threshold; wherein the fifth threshold is greater than the fourth threshold, the first rainfall range is less than the second rainfall range, and the second rainfall range is less than the third rainfall range.
[0164] Duty cycle describes the proportion of time a pulse signal is at a high (or low) level within a cycle to the total cycle time. Embodiments of this application can determine rainfall events with different rainfall ranges based on the duty cycle of the pulse signal, thereby improving the sensing sensitivity of electronic devices without increasing algorithm complexity.
[0165] For example, the intensity of rain can be determined based on the interval between two low-level pulse signals, or it can be understood as distinguishing between heavy rain (close to 1), moderate rain (close to 0.5), and light rain (close to 0) based on the duty cycle of the low-level signal.
[0166] In some embodiments, the parameters include the pulse peak value. Based on the analysis of the parameters of the pulse signal, determining the target event indicated by the vibration signal includes: in response to the pulse peak value being less than a third threshold, determining the target event as a rain event corresponding to a first rainfall range. The third threshold can be the amplitude of the high-level signal of the pulse signal. The first rainfall range can correspond to a light rainfall range; that is, based on the pulse peak value of the pulse signal, a light rainfall event is identified, thereby improving the sensitivity of the sensing.
[0167] Taking a switching transistor as an example, the switching transistor has the characteristics of the amplification region, such as... Figure 15 As shown. When the electrical signal converted from the force of the light rain impact panel is in the amplification zone, because the output of the amplification zone is not a completely digital logic state (on or off), but rather an amplification of an analog signal, although a pulse signal can be output, the amplitude of the pulse signal may not reach its peak value. For example... Figure 16 As shown, the amplitude of the pulse signal is between the high and low levels of the pulse signal, which makes the pulse signal of light rain appear as spikes and of varying lengths, and basically cannot reach the pulse peak. This characteristic also helps to identify light rain or even smaller drizzle.
[0168] In some embodiments, the vibration signal is detected by at least one sensing element, each sensing element having at least two sensing modes, each sensing mode having a different sensitivity to the vibration signal; correspondingly, determining the target event indicated by the vibration signal based on the analysis of the pulse signal includes: setting the sensing mode of at least one sensing element; and determining the target event indicated by the vibration signal based on the pulse signal obtained under the set sensing mode. By setting the sensing mode of the sensing element and determining the target event based on the pulse signal obtained under the set sensing mode, the accuracy of detecting the target event is further improved.
[0169] For example, each sensing element is connected to its corresponding sensing circuit, and each sensing circuit has at least one signal processing circuit. The sensing mode is set by selecting or switching a suitable signal processing circuit, or by adjusting the resistance value of the signal processing circuit to set the voltage division ratio and amplification factor, so that the signal processing circuit is suitable for detecting different target events, thereby expanding the scope of application.
[0170] In some embodiments, the at least one sensing element is disposed on the inner side of the vehicle body panel. Exemplarily, different sensing elements may be disposed on the inner side of different body panels. As another example, different sensing elements may be disposed on the inner side of different locations on the same body panel.
[0171] In some embodiments, at least two sensing modes include a first sensing mode and a second sensing mode, wherein the first sensing mode is adapted to detect a first target event and the second sensing mode is adapted to detect a second target event. For example, the first target event includes a rain event, and the second target event includes a tapping event and / or a collision event.
[0172] In some embodiments, the sensing element is the sensing element of any electronic device provided in this application embodiment, the first sensing mode corresponds to a first sensing sensitivity, and the second sensing mode corresponds to a second sensing sensitivity. For example, the sensing sensitivity of the first sensing mode is higher than the sensing sensitivity of the second sensing mode.
[0173] In some embodiments, setting the sensing mode of at least one sensing element includes: setting the sensing element to a second sensing mode in response to determining at least one of the following conditions:
[0174] The vehicle's speed is 0;
[0175] The vehicle was empty.
[0176] There is at least one user within the vehicle's preset distance range.
[0177] For example, in-vehicle sensors can be used to detect whether someone is inside the vehicle. Another example is determining whether at least one user is within a preset distance of the vehicle based on wireless communication between the user's device (e.g., a mobile phone, wearable device, car key, etc.) and the vehicle.
[0178] For example, when someone is inside the vehicle or the vehicle is in motion, the roof piezoelectric sensor defaults to the first sensing mode, suitable for detecting rainfall; when the vehicle is parked or the occupants have left, the roof piezoelectric sensor switches to the second sensing mode, suitable for detecting impacts. Understandably, when no one is inside the vehicle or it is parked, detecting rainfall is less necessary, and switching to the second sensing mode is more conducive to further human-machine interaction, reducing the impact of excessively high sensitivity on the detection of impacts / collisions.
[0179] In some embodiments, at least one sensing element includes a first sensing element and a plurality of second sensing elements. The first sensing element is disposed on the inner side of the roof panel and is in a first sensing mode; the second sensing elements are disposed on the inner side of other vehicle body panels and are in a second sensing mode. The first sensing mode corresponds to a first sensing sensitivity, and the second sensing mode corresponds to a second sensing sensitivity. By installing sensing elements on the vehicle, the sensing modes of the sensing elements can be set according to different vehicle conditions, thereby more flexibly responding to human-machine interaction needs and improving the vehicle's intelligence level. Furthermore, sensing elements with different sensing modes can be installed at different locations on the vehicle, thereby adapting to the detection needs of different locations and improving the vehicle's intelligence level.
[0180] It should be noted that the sensing modes of each sensing element can be preset based on the different body panels. For example, the first sensing element installed on the roof and front and rear covers is suitable for detecting rain events, while the second sensing element installed on the doors and other locations is suitable for detecting knocks and collisions.
[0181] In some embodiments, setting the sensing mode of at least one sensing element includes: in response to receiving a pulse signal from a first sensing element, setting a second sensing element to the first sensing mode.
[0182] For example, to address situations where light rain might not be detected (such as a light drizzle), and to reduce the possibility of misidentifying other noises such as wind and leaves, this embodiment of the application provides a first sensing element (e.g., in a first sensing mode) suitable for detecting rainfall on the roof panel, and second sensing elements (e.g., in a second sensing mode) suitable for detecting impacts / collisions on other parts of the vehicle body. When rainwater is detected by the first sensing element on the roof, the processor controls the first sensing elements on other parts of the vehicle body to switch to the second sensing mode.
[0183] In some embodiments, the sensing mode of the first sensing element suitable for detecting rain events can be a fixed mode, i.e., the sensing sensitivity is fixed, while the sensing mode of the second sensing element suitable for detecting impacts is adjustable, i.e., the sensing sensitivity is adjustable. In other embodiments, the sensing mode of the first sensing element suitable for detecting rain events can also be adjustable, i.e., the sensing mode is adjusted according to the amount of rainfall, thereby allowing for further subdivision of rainfall and improving the accuracy of rainfall detection.
[0184] In some embodiments, setting the sensing mode of at least one sensing element includes: in response to the sum of the high-level width or low-level width of a pulse signal reaching a preset threshold, setting the sensing element to a second sensing mode.
[0185] For example, the sensing element is set to a first sensing mode for detecting rain events, and a second sensing mode for detecting knocking events. For instance, when someone is inside the vehicle or the vehicle is in motion, the roof piezoelectric sensor is set to the first sensing mode by default, suitable for detecting rainfall; when the vehicle is parked or the occupants have left the vehicle, the roof piezoelectric sensor switches to the second sensing mode, suitable for detecting knocking events. Understandably, when no one is inside the vehicle or it is parked, the necessity for detecting rainfall is not strong, and switching to the second sensing mode is more conducive to further human-machine interaction, reducing the impact of excessively high sensing sensitivity on the detection of knocking / collision events.
[0186] In some embodiments, the first target event is a rain event, and the second target event is a knocking or collision event; in the first sensing mode, the sensing element is connected to a first sensing circuit, and the first sensing circuit is configured with a first voltage division ratio and a first amplification factor to be suitable for detecting the first target event; in the second sensing mode, the sensing element is connected to a second sensing circuit, and the second sensing circuit is configured with a second voltage division ratio and a second amplification factor to be suitable for detecting the second target event.
[0187] It should be noted that the detection method provided in this application embodiment selects or switches a suitable sensing mode according to the required sensing sensitivity, which is the same concept as the electronic device provided in this application embodiment selects or switches a suitable signal processing circuit according to the required sensing sensitivity. The specific implementation process is detailed in the foregoing embodiments and will not be repeated here.
[0188] In some embodiments, the method further includes: in response to determining a target event, performing a vehicle control operation corresponding to the target event.
[0189] For example, the aforementioned vehicle control operations may include, but are not limited to: unlocking operations, vehicle control operations, remote request operations, and prompting operations. Unlocking operations are operations that release the locked state of a specific object, such as waking up the vehicle's infotainment system, unlocking a door, or unlocking the trunk. Vehicle control operations are operations that control the operating state of vehicle components, such as opening a door, activating windshield wipers, or enabling autonomous driving. Remote request operations are operations that send remote requests to associated electronic devices of the vehicle, such as initiating a communication request or synchronizing vehicle status information. Prompting operations are operations that provide prompts to the user through sound, images, text, vibration, etc., such as reminding the user of driving safety. For example, when the target event includes a rain event, the vehicle control operations corresponding to the target event may include vehicle control operations and / or prompting operations. For instance, when the rainfall is light to moderate, the driver is prompted that it is starting to rain, and the windshield wipers are activated; simultaneously, real-time traffic conditions or historical traffic conditions under similar weather conditions can be retrieved to remind the user of the weather's impact on the journey. When the rainfall is heavy, the windshield wiper speed is increased according to the rainfall. When rainfall is very heavy, data on flooded areas can be obtained to remind drivers to avoid flooded areas or warn of the risk of wading through water, and to optimize driving routes.
[0190] In another example, the target event includes a tapping event, and the corresponding vehicle control operation may include an unlocking operation, a vehicle control operation, and / or a prompting operation. Additionally or optionally, different vehicle control operations may be performed depending on the number of taps, the force applied, and the location of the tapping event. For example, when the number of taps is two, the vehicle control operation may be an unlocking operation or a vehicle control operation (such as unlocking and opening the door, opening the hood, opening the trunk, etc.); or, for example, when the tapping location is the left front door, the vehicle control operation may be to wake up the vehicle's infotainment system and provide a voice prompt for user interaction.
[0191] Another example is that the target event includes a collision event, and the vehicle control operation corresponding to the target event may include vehicle control operation, remote request operation, and / or prompt operation. For example, when a collision is detected, the driver is alerted to the collision, and the vehicle is controlled to decelerate, stop, or move in the opposite direction, while vehicle status information may also be sent to associated electronic devices.
[0192] The detection method provided in this application determines the target event indicated by the vibration signal based on the analysis of the pulse signal. By directly analyzing the pulse signal to detect the target event, the sampling and analysis processes are eliminated, which helps to reduce the complexity and power consumption of the detection algorithm.
[0193] This application also provides an electronic device, such as... Figure 17 As shown, the electronic device 1700 includes: a processor 1701 and a memory 1702 configured to store computer programs capable of running on the processor;
[0194] When the processor 1701 is configured to run a computer program, it executes the method steps described in the foregoing embodiments.
[0195] Of course, in practical applications, such as Figure 17 As shown, the various components in this electronic device are coupled together via a bus system 1703. It can be understood that the bus system 1703 is used to enable communication between these components. In addition to a data bus, the bus system 1703 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1703 in the figure.
[0196] In practical applications, the aforementioned processor can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), controller, microcontroller, and microprocessor. It is understood that, for different devices, the electronic devices used to implement the functions of the aforementioned processor can also be other types, and the embodiments of this application do not specifically limit them.
[0197] The aforementioned memory can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provides instructions and data to the processor.
[0198] In an exemplary embodiment, this application also provides a computer-readable storage medium, such as a memory including a computer program, which can be executed by a processor of an electronic device to perform the steps of the aforementioned method.
[0199] This application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any of the methods in this application.
[0200] Optionally, the computer program product can be applied to the electronic device in the embodiments of this application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0201] This application also provides a computer program.
[0202] Optionally, the computer program can be applied to the electronic device in the embodiments of this application. When the computer program is run on a computer, it causes the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.
[0203] It should be understood that in the embodiments of this application, data such as user information are involved. When the embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0204] It should be understood that the terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items. The expressions “having,” “may have,” “comprising,” and “including,” or “may include” and “may contain” used herein may be used to indicate the presence of a corresponding feature (e.g., an element such as a number, function, operation, or component), but do not exclude the presence of additional features.
[0205] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and are not necessarily used to describe a specific order or sequence. For example, without departing from the scope of this invention, first information may also be referred to as second information, and similarly, second information may also be referred to as first information.
[0206] The technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0207] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatus, and devices can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical, or other forms.
[0208] The units described above 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 may be selected to achieve the purpose of this embodiment according to actual needs.
[0209] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0210] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. An electronic device, characterized in that, The electronic device includes: a sensing element, a sensing circuit, and a processor, wherein the sensing circuit includes a first sensing circuit; The sensing element is used to sense vibration signals, convert the vibration signals into a first electrical signal, and transmit the first electrical signal to the sensing circuit; The first sensing circuit is used to process the first electrical signal to obtain an output signal and transmit the output signal to the processor so that the processor can detect the target event indicated by the vibration signal based on the output signal. The output signal is a pulse signal.
2. The electronic device according to claim 1, wherein, The first sensing circuit includes at least one signal processing circuit and an output circuit, and each of the signal processing circuits includes a voltage divider circuit and an amplifier circuit; The input terminal of the voltage divider circuit is connected to the output terminal of the sensing element, and is used to receive the first electrical signal, and to divide the first electrical signal according to a preset voltage division ratio to output the second electrical signal. The input terminal of the amplifier circuit is connected to the output terminal of the voltage divider circuit, and is used to receive the second electrical signal, amplify the second electrical signal based on a preset amplification factor, and output the third electrical signal. The input terminal of the output circuit is connected to the output terminal of the amplifier circuit, and is used to receive the third electrical signal and process the third electrical signal to output the output signal.
3. The electronic device according to claim 2, wherein, The voltage divider circuit includes a first adjustable resistor, and the voltage divider circuit is configured to adjust the resistance value of the first adjustable resistor in response to the control of the processor to adjust the preset voltage division ratio. And / or, The amplification circuit includes a second adjustable resistor, which is configured to adjust the resistance value of the second adjustable resistor in response to control by the processor to adjust the preset amplification factor.
4. The electronic device according to claim 3, wherein, The preset voltage division ratio includes a first voltage division ratio and a second voltage division ratio, and the preset amplification factor includes a first amplification factor and a second amplification factor. The first voltage division ratio is adapted to the first amplification factor, and the second voltage division ratio is adapted to the second amplification factor. When the preset voltage division ratio is the first voltage division ratio and / or the preset amplification factor is the first amplification factor, the signal processing circuit is adapted to detect the first target event; When the preset voltage division ratio is the second voltage division ratio and / or the preset amplification factor is the second amplification factor, the signal processing circuit is adapted to detect the second target event.
5. The electronic device according to claim 2, wherein, The first sensing circuit includes at least two of the signal processing circuits, and each of the at least two signal processing circuits has a different sensitivity to the first electrical signal.
6. The electronic device according to claim 5, wherein, At least two of the signal processing circuits are connected in parallel, and at least two of the signal processing circuits are connected in parallel. The preset voltage division ratio of each signal processing circuit is adapted to the preset amplification factor, so that the signal processing circuit is suitable for detecting the corresponding target event. The first sensing circuit is configured to adjust the sensing sensitivity to the first electrical signal in response to the control selection signal processing circuit of the processor.
7. The electronic device according to claim 6, wherein, Each of the voltage divider circuits includes a voltage divider switching element that is controlled to be turned on or off by the processor to enable or disable the voltage divider circuit. Each of the amplifier circuits includes an amplification switching element that is controlled to be turned on or off by the processor to enable or disable the amplifier circuit.
8. The electronic device according to claim 7, wherein, At least two of the signal processing circuits include a first signal processing circuit and a second signal processing circuit; The first signal processing circuit includes a first voltage divider circuit and a first amplifier circuit; the first voltage divider circuit includes a first voltage divider switching element, and the first amplifier circuit includes a first amplifier switching element. The second signal processing circuit includes a second voltage divider circuit and a second amplifier circuit; the second voltage divider circuit includes a second voltage divider switching element, and the second amplifier circuit includes a second amplifier switching element.
9. The electronic device according to claim 8, wherein, The first voltage divider circuit includes: a first voltage divider resistor, a second voltage divider resistor, and a first voltage divider switch element. The first end of the first voltage divider resistor serves as the input terminal of the first voltage divider circuit. The second end of the first voltage divider resistor is connected to the first end of the first voltage divider switch element. The second end of the first voltage divider switch element is grounded through the second voltage divider resistor. The second end of the first voltage divider switch element serves as the output terminal of the first voltage divider circuit. The control terminal of the first voltage divider switch element is connected to the processor. The first amplification circuit includes: an operational amplifier, a first amplification resistor, and a first amplification switching element. The first input terminal of the operational amplifier is connected to the output terminal of the first voltage divider circuit, and the second input terminal of the operational amplifier is grounded through a resistor. The first end of the first amplification resistor is connected to the second input terminal of the operational amplifier, the second end of the first amplification resistor is connected to the first end of the first amplification switching element, the second end of the first amplification switching element is connected to the output terminal of the operational amplifier, and the control terminal of the first amplification switching element is connected to the processor. The second voltage divider circuit includes: a third voltage divider resistor, a fourth voltage divider resistor, and a second voltage divider switch element. The first end of the third voltage divider resistor serves as the input terminal of the second voltage divider circuit. The second end of the third voltage divider resistor is connected to the first end of the second voltage divider switch element. The second end of the second voltage divider switch element is grounded through the fourth voltage divider resistor. The second end of the second voltage divider switch element serves as the output terminal of the second voltage divider circuit. The control terminal of the second voltage divider switch element is connected to the processor. The second amplification circuit includes: an operational amplifier, a second amplification resistor, and a second amplification switching element. The first input terminal of the operational amplifier is connected to the output terminal of the second voltage divider circuit, and the second input terminal of the operational amplifier is grounded through a resistor. The first terminal of the second amplification resistor is connected to the second input terminal of the operational amplifier, the second terminal of the second amplification resistor is connected to the first terminal of the second amplification switching element, the second terminal of the second amplification switching element is connected to the output terminal of the operational amplifier, and the control terminal of the second amplification switching element is connected to the processor.
10. The electronic device according to claim 4 or 8, wherein, When the sum of the high-level width and low-level width of the pulse signal output by the sensing circuit reaches a preset threshold, the processor disconnects the first voltage divider switch element and the first amplification switch element, and connects the second voltage divider switch element and the second amplification switch element; or, it adjusts the first voltage division ratio to the second voltage division ratio and the first amplification factor to the second amplification factor.
11. The electronic device according to claim 4 or 8, wherein, The processor is also connected to an on-board processor; the processor is configured to, according to control commands sent by the on-board processor, disconnect the first voltage divider switch element and the first amplification switch element, and connect the second voltage divider switch element and the second amplification switch element; or, adjust the first voltage division ratio to the second voltage division ratio and adjust the first amplification factor to the second amplification factor.
12. The electronic device according to claim 8, wherein, The sensing circuit further includes a second sensing circuit, which includes at least one of the signal processing circuits. The sensing element includes a first sensing element and a second sensing element; The first sensing element is connected to the first sensing circuit, and the first sensing circuit is connected to the first interface of the processor. The second sensing element is connected to the second sensing circuit, and the second sensing circuit is connected to the processor's second interface.
13. The electronic device according to claim 12, wherein, The processor is configured to, in response to determining that the second interface has received the output signal and detecting a first target event indicated by the vibration signal based on the output signal, control the first voltage divider switch element and the first amplifying switch element in the first sensing circuit to disconnect, and control the second voltage divider switch element and the second amplifying switch element to connect.
14. The electronic device according to claim 13, wherein, The second sensing element is installed on the inside of the roof panel; The first sensing element is installed on the inside of a different vehicle body panel than the one on which the second sensing element is installed.
15. The electronic device according to claim 2, wherein, The output circuit includes an output switching element; The first end of the output switching element is connected to the power supply and the processor, the second end of the output switching element is grounded, the control end of the output switching element is connected to the output end of the at least one signal processing circuit, and the first end of the output switching element outputs the output signal; the output switching element is used to modulate the third electrical signal output by the at least one signal processing circuit into the pulse signal.
16. The electronic device according to claim 15, wherein, The output circuit further includes a voltage regulator component, the first end of which is connected to the output end of the at least one signal processing circuit, the first end of which is also connected to the control end of the output switching element, and the second end of which is grounded. The voltage regulator is used to clamp the third electrical signal within a preset voltage range.
17. The electronic device according to claim 1, wherein, The target event includes at least one of the following: rain event, knocking event, collision event; The sensing element includes a piezoelectric component.
18. A vehicle, wherein, The vehicles include: The vehicle body includes multiple body panels, multiple interior trim pieces, and vehicle components connected to the body panels and / or the interior trim pieces; A vehicle controller, which is installed on the vehicle body and is used to control the operation of the vehicle; The electronic device according to any one of claims 1 to 17, wherein the sensing elements of the electronic device are respectively disposed on the vehicle body panel and / or the interior trim and / or the vehicle components, and the processor is electrically connected to the vehicle controller.
19. A detection method, wherein, The method includes: Acquire a pulse signal, which is generated by inducing a vibration signal; Based on the analysis of the pulse signal, the target event indicated by the vibration signal is determined.
20. The method according to claim 19, wherein, The determination of the target event indicated by the vibration signal based on the analysis of the pulse signal includes: Based on the analysis of the parameters of the pulse signal, the target event indicated by the vibration signal is determined, wherein the parameters include at least one of the pulse number, pulse width, pulse peak value and duty cycle of the pulse signal.
21. The method according to claim 20, wherein, The parameters include the pulse width, and the determination of the target event indicated by the vibration signal based on the analysis of the parameters of the pulse signal includes: In response to the pulse width being less than or equal to a first threshold, the target event is determined to be a rain event corresponding to a first rainfall range; In response to the pulse width being greater than the first threshold and less than or equal to the second threshold, the target event is determined to be a rain event corresponding to the second rainfall range; In response to the pulse width being greater than the second threshold, the target event is determined to be a rain event corresponding to the third rainfall range; The second threshold is greater than the first threshold, the first rainfall range is less than the second rainfall range, and the second rainfall range is less than the third rainfall range.
22. The method according to claim 21, wherein, The method further includes: In response to determining that among a plurality of consecutive pulse signals with pulse widths less than the first threshold, there are several pulse signals with pulse widths greater than the second threshold, the target event is determined to be a knocking event occurring in a rain event corresponding to the first rainfall range.
23. The method of claim 20, wherein, The parameters include the pulse peak value, and the determination of the target event indicated by the vibration signal based on the analysis of the parameters of the pulse signal includes: In response to the pulse peak value being less than a third threshold, the target event is determined to be a rain event corresponding to a first rainfall range.
24. The method of claim 20, wherein, The parameters include the duty cycle, and the determination of the target event indicated by the vibration signal based on the analysis of the parameters of the pulse signal includes: In response to the duty cycle being less than or equal to the fourth threshold, the target event is determined to be a rain event corresponding to the first rainfall range; In response to the duty cycle being greater than the fourth threshold and less than or equal to the fifth threshold, the target event is determined to be a rain event corresponding to the second rainfall range; In response to the duty cycle being greater than the fifth threshold, the target event is determined to be a rain event corresponding to the third rainfall range; The fifth threshold is greater than the fourth threshold, the first rainfall range is less than the second rainfall range, and the second rainfall range is less than the third rainfall range.
25. The method according to claim 19, wherein, The vibration signal is detected by at least one sensing element, which is disposed on the inner side of the vehicle body panel. Each sensing element has at least two sensing modes, and each sensing mode has a different sensitivity to the vibration signal. The determination of the target event indicated by the vibration signal based on the analysis of the pulse signal includes: Set the sensing mode of at least one sensing element; The target event indicated by the vibration signal is determined based on the pulse signal obtained in the set sensing mode.
26. The method of claim 25, wherein, The at least two sensing modes include a first sensing mode and a second sensing mode, wherein the first sensing mode is adapted to detect a first target event and the second sensing mode is adapted to detect a second target event.
27. The method according to claim 26, wherein, The sensing modes with at least one sensing element include: The sensing element is set to a second sensing mode in response to determining at least one of the following conditions: The speed of the vehicle is 0; The vehicle was unoccupied. There is at least one user within a preset distance range of the vehicle.
28. The method according to claim 26, wherein, The at least one sensing element includes a first sensing element and a plurality of second sensing elements, wherein the first sensing element is disposed on the inner side of the roof panel and is in the first sensing mode; the second sensing elements are disposed on the inner side of other body panels and are in the second sensing mode.
29. The method according to claim 28, wherein, The sensing modes that include at least one sensing element include: In response to receiving the pulse signal from the first sensing element, the second sensing element is set to the first sensing mode.
30. The method according to claim 26, wherein, The sensing modes that include at least one sensing element include: In response to the sum of the high-level width or low-level width of the pulse signal reaching a preset threshold, the sensing element is set to the second sensing mode.
31. The method according to claim 26, wherein, The first target event is a rain event, and the second target event is a knocking or collision event; In the first sensing mode, the sensing element is connected to a first sensing circuit, which is configured with a first voltage division ratio and a first amplification factor to detect the first target event. In the second sensing mode, the sensing element is connected to a second sensing circuit, which is configured with a second voltage division ratio and a second amplification factor to detect the second target event.
32. The method according to any one of claims 19-30, wherein, The method further includes: In response to determining the target event, the vehicle control operation corresponding to the target event is executed.
33. An electronic device, wherein, The electronic device includes: a processor and a memory configured to store computer programs capable of running on the processor. Wherein, when the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 19 to 32.
34. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 19 to 32.