Signal gain control method, device and circuit
By automatically adjusting the signal gain gear, the problem that fixed gain processing cannot take into account strong and weak signals is solved, the signal is processed within an appropriate range, and the stability and adaptability of signal processing are improved.
Patent Information
- Application Number
- CN202310332132.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, a fixed gain coefficient is used when processing automotive sensor signal gain, which cannot take into account both strong and weak signals, causing the input signal after gain processing to easily exceed the signal characteristic range.
By obtaining the characteristic information of the input signal, the signal gain gear is automatically adjusted until the characteristic information of the signal at the lowered signal gain gear does not exceed the corresponding upper limit threshold, or it is adjusted to the lowest signal gain gear, thereby achieving the signal gain gear. Adjust the bit from high to low to keep the input signal within the supported signal characteristic range.
The dynamic adjustment of the signal gain gear is realized to ensure that the input signal after gain processing is within the appropriate signal characteristic range, avoid out-of-range problems, and improve the stability and adaptability of signal processing.
Smart Images

Figure CN118740084A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to communication technology, and more particularly to a signal gain control method, device and circuit. Background Art
[0002] The car sensor is the input device of the car computer system. It converts various operating conditions of the car (such as vehicle speed) into input signals and transmits them to the computer so that the computer can perform relevant control processing based on the input signals. Gain processing is required after the input signal is generated and before it is sent to the computer.
[0003] In the related art, a fixed gain coefficient is often used to perform gain processing on the input signal.
[0004] However, the signal strength of the input signal in each scenario varies greatly, and the use of a fixed gain coefficient for gain processing cannot take into account both strong and weak signals, so that the input signal after gain processing is likely to exceed the signal characteristic range corresponding to the fixed gain coefficient. Summary of the invention
[0005] The present application provides a signal gain control method, device and circuit, which can realize automatic adjustment of the signal gain gear to prevent the input signal after gain processing from exceeding the signal characteristic range supported by the fixed gain coefficient.
[0006] On the one hand, the present application provides a signal gain control method, comprising:
[0007] Acquire first characteristic information of an input signal that is amplified according to an initial signal gain level;
[0008] When it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear; wherein, the higher the signal gain gear, the larger the signal gain coefficient.
[0009] On the other hand, the present application provides a signal gain control device, comprising: a memory and a processor, wherein the memory is used to store an executable program;
[0010] The processor is used to read and execute the executable program to implement the above-mentioned signal gain control method.
[0011] In another aspect, the present application provides a signal gain control circuit, comprising: a gear switching module, a control module, a sensor, and an amplification circuit; wherein the gear switching module comprises a multi-level signal gain gear, and the multi-level signal gain gear realizes different signal gain coefficients through resistors with different resistance values;
[0012] The sensor is connected to the control module and the amplifier circuit respectively, and is used to obtain the input signal processed by the amplifier circuit according to the initial signal gain gear, and output it to the control module; and is also used to obtain the input signal processed by the amplifier circuit according to the lowered signal gain gear, and output it to the control module;
[0013] The control module is connected to the gear switching module and is used to obtain the first characteristic information of the input signal, and when it is determined that the obtained first characteristic information exceeds the first characteristic upper limit threshold corresponding to the signal gain gear of the input signal, a switching signal for lowering the signal gain gear is sent to the gear switching module until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or the input signal has been adjusted to the lowest signal gain gear;
[0014] The gear switching module is connected to the amplifying circuit and is used to lower the signal gain gear according to the switching signal.
[0015] Compared with the related art, the present application includes obtaining the first characteristic information of an input signal that is amplified according to an initial signal gain gear; when it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal that is amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear, thereby realizing the adjustment of the signal gain gear from high to low, so that the input signal after gain processing can be in the signal characteristic range supported by the gain coefficient corresponding to the adjusted signal gain gear.
[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by implementing the present application. Other advantages of the present application can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide an understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.
[0018] Figure 1 A schematic diagram of a flow chart of a signal gain control method provided in an embodiment of the present application;
[0019] Figure 2 A schematic flow chart of another signal gain control method provided in an embodiment of the present application;
[0020] Figure 3 A schematic diagram of a working process of a circuit gear position determination module provided in an embodiment of the present application;
[0021] Figure 4 A schematic diagram of the working process of a state determination module provided in an embodiment of the present application;
[0022] Figure 5 A schematic diagram of the structure of a signal gain control circuit provided in an embodiment of the present application;
[0023] Figure 6 A schematic diagram of the structure of another signal gain control circuit provided in an embodiment of the present application;
[0024] Figure 7 A spectrum diagram of different signal gain levels provided in an embodiment of the present application;
[0025] Figure 8 A phase diagram of different signal gain levels provided in an embodiment of the present application;
[0026] Fig. 9 A schematic diagram of a process of automatic signal gain adjustment provided in an embodiment of the present application;
[0027] Fig.10 A schematic diagram for comparing a restored signal after a gear shift and an original signal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The present application describes multiple embodiments, but the description is exemplary rather than restrictive, and it is obvious to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present application. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.
[0029] The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in the present application may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present application may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other restrictions. In addition, various modifications and changes may be made within the scope of protection of the attached claims.
[0030] In addition, when describing representative embodiments, the specification may have presented the method and / or process as a specific sequence of steps. However, to the extent that the method or process does not rely on the specific order of the steps described herein, the method or process should not be limited to the steps of the specific order described. As will be understood by those of ordinary skill in the art, other sequences of steps are also possible. Therefore, the specific sequence of the steps set forth in the specification should not be interpreted as a limitation to the claims. In addition, the claims for the method and / or process should not be limited to the steps of performing them in the order written, and those skilled in the art can easily understand that these sequences can be changed and still remain within the spirit and scope of the embodiments of the present application.
[0031] The present application embodiment provides a signal gain control method, such as Figure 1 As shown, including:
[0032] Step 101, obtaining first characteristic information of an input signal amplified according to an initial signal gain level;
[0033] Step 102: When it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold value corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold value corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear; wherein, the higher the signal gain gear, the larger the signal gain coefficient.
[0034] The first characteristic information includes: signal amplitude and signal difference value.
[0035] Exemplarily, the input signals include: a vehicle speed signal, and an elastic wave signal generated when a collision occurs.
[0036] Exemplarily, the first feature upper limit threshold corresponds to the signal gain gear one by one, and the first feature upper limit threshold corresponding to each signal gain gear can be determined according to the range of the first feature supported by the signal gain coefficient under the signal gain gear. When the first feature information is the signal amplitude and the signal differential value, the first feature upper limit threshold can be the maximum signal amplitude and the maximum signal differential value supported by the signal gain coefficient under each signal gain gear.
[0037] Exemplarily, the initial signal gain gear is determined according to the current vehicle speed signal, or the initial signal gain gear is determined according to the default signal gain gear. If a third party physical quantity that can indicate the size of the signal can be obtained, the physical quantity is introduced as a preliminary judgment of the gear; if there is a vehicle speed signal, the initial signal gain gear is determined according to the vehicle speed signal, the greater the vehicle speed, the greater the initial signal gain gear, and a suitable threshold is set according to the vehicle speed to determine different signal gain gears; if there is no vehicle speed signal, or the vehicle speed signal is not sufficient to determine the effectiveness of the initial signal gain switch, the default signal gain gear is used as the initial signal gain gear.
[0038] In the related art, the amplifier circuit uses a fixed gain and can only output a fixed maximum signal value. However, when the same force is used for collision / knocking, the signal amplitude varies greatly when the force position is at different distances from the sensor. For example, when the force position is directly above the sensor, the signal is very strong, but when the sensor is far away, the signal is very weak, and it is difficult to take both into account at the same time. There are many application scenarios for automotive sensors, and the signal strength varies greatly in each scenario. For example, in the sentinel scenario, weak signals need to be amplified (to a dozen times or more, depending on the specific situation); in the vehicle collision scenario, the signal is very strong and needs to be reduced (by a few tenths of a second). The overall amplification factor differs by hundreds of times. If the amplifier circuit uses a fixed gain, it is difficult to take both small and large signals into account at the same time. Setting different gain circuits can adjust the signal magnitude, but it cannot be adjusted dynamically, so only the automatic gain method can solve this type of problem.
[0039] The signal gain control method provided in the embodiment of the present application obtains the first characteristic information of the input signal that is amplified according to the initial signal gain gear; when it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal that is amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear, thereby realizing the adjustment of the signal gain gear from high to low, so that the input signal after gain processing can be in the signal characteristic range supported by the gain coefficient corresponding to the adjusted signal gain gear.
[0040] In an exemplary embodiment, when it is determined that the first characteristic information of the input signal at the initial signal gain level does not exceed the first characteristic lower limit threshold corresponding to the initial signal gain level, the method further includes:
[0041] The initial signal gain level is increased, and the first characteristic information of the input signal amplified according to the increased signal gain level is obtained, until the first characteristic information of the input signal at the increased signal gain level exceeds the first characteristic lower limit threshold corresponding to the increased signal gain level, or the highest signal gain level has been adjusted.
[0042] In an exemplary embodiment, the method further comprises:
[0043] First, obtaining first characteristic information of an input signal that is amplified according to a current signal gain level;
[0044] Secondly, when it is determined that the first characteristic information of the input signal at the current signal gain gear exceeds the first characteristic upper limit threshold corresponding to the current signal gain gear within a preset time period, the current signal gain gear is lowered, and the first characteristic information of the input signal amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear.
[0045] The signal gain control method provided in the embodiment of the present application describes a process of increasing the initial signal gain level and then decreasing it.
[0046] In an exemplary embodiment, the step of lowering the initial signal gain level and acquiring first characteristic information of the input signal amplified according to the lowered signal gain level includes:
[0047] The signal gain level is gradually lowered from the initial signal gain level, and each time the signal gain level is lowered by one level, first characteristic information of the input signal amplified according to the lowered signal gain level is obtained.
[0048] Exemplarily, the specific process of this step includes:
[0049] First, obtaining first characteristic information of the input signal processed by the current signal gain level;
[0050] Secondly, when the first characteristic information of the processed input signal exceeds the first characteristic upper limit threshold value corresponding to the current signal gain gear, the signal gain gear is adjusted to a signal gain gear one level lower than the current signal gain gear, and the adjusted signal gain gear is used as the new current signal gain gear, and the signal gain gear reduction operation is continued until the first characteristic information of the processed input signal does not exceed the first characteristic upper limit threshold value corresponding to the current signal gain gear or has been adjusted to the lowest signal gain gear.
[0051] In an exemplary embodiment, the method further comprises:
[0052] First, obtaining second characteristic information of an input signal that is amplified according to the current signal gain level within a preset time period;
[0053] Secondly, when it is determined that the second characteristic information does not exceed the second characteristic threshold corresponding to the current signal gain level, the signal gain level is adjusted to a signal gain level higher than the current signal gain level.
[0054] Exemplarily, the operation of adjusting to a signal gain level higher than the current signal gain level occurs after the corresponding first characteristic information is adjusted down to not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain level, or after the signal gain level has been adjusted to the lowest signal gain level.
[0055] Wherein, the second characteristic information includes: the maximum amplitude of the signal.
[0056] Exemplarily, the specific process of amplifying the input signal according to the current signal gain level within a preset time period can be obtained by buffering the input signal at the current signal gain level and forming an input signal with a fixed frame length.
[0057] Exemplarily, the second characteristic threshold corresponds to the signal gain level one by one, and the second characteristic threshold corresponding to each signal gain level can be determined by the channel ratio at the signal gain level; wherein the channel ratio at the signal gain level is the result of a logarithmic operation (log) on the target ratio, and the target ratio is the ratio of the amplitude of the input signal to the amplitude of the background noise signal at the signal gain level.
[0058] The state when the second characteristic information of the input signal does not exceed the second characteristic threshold corresponding to the current signal gain level can be called a silent state.
[0059] In an exemplary embodiment, the step of adjusting the signal gain level to a signal gain level higher than the current signal gain level includes:
[0060] The current signal gain level is adjusted to the initial signal gain level, and the input signal is amplified according to the initial signal gain level.
[0061] In an exemplary embodiment, the step of adjusting the signal gain level to a signal gain level higher than the current signal gain level includes:
[0062] The current signal gain level is increased, and the second characteristic information of the input signal amplified according to the increased signal gain level within a preset time period is obtained, until the second characteristic information of the input signal at the increased signal gain level does not exceed the second characteristic threshold corresponding to the increased signal gain level, or it has been adjusted to the initial signal gain level.
[0063] Exemplarily, the step specifically includes:
[0064] The signal gain gear is adjusted to a signal gain gear that is one level lower than the adjusted signal gain gear, and the adjusted signal gain gear is used as the current signal gain gear, and the following signal gain gear increase operation is performed:
[0065] Acquire second characteristic information of an input signal processed by the current signal gain level within a preset time period;
[0066] When it is determined that the second characteristic information of the processed input signal does not exceed the second characteristic threshold corresponding to the current signal gain gear, the signal gain gear is adjusted to a signal gain gear one level higher than the current signal gain gear, and the adjusted signal gain gear is used as the new current signal gain gear, and the signal gain gear increasing operation is continued until the second characteristic information of the processed input signal does not exceed the second characteristic threshold corresponding to the current signal gain gear, or has been adjusted to the initial signal gain gear.
[0067] In an exemplary embodiment, the signal gain control method provided in the embodiment of the present application further includes:
[0068] First, in the process of adjusting the signal gain level, the input signal obtained at each adjusted signal gain level is converted and processed: wherein the conversion process includes: converting the input signal according to the adjustment ratio to obtain the input signal amplified according to the initial signal gain level; wherein the adjustment ratio includes: the ratio of the gain coefficient corresponding to the initial signal gain level to the gain coefficient corresponding to the adjusted signal gain level.
[0069] Secondly, operations adapted to preset processing targets are performed according to all the input signals obtained after the conversion processing.
[0070] Exemplarily, the preset processing target may specifically be collision detection, and a series of analysis operations adapted to the collision detection are then performed based on all the input signals obtained after the conversion processing.
[0071] In an exemplary embodiment, the initial signal gain gear is determined according to a current vehicle speed signal, or the initial signal gain gear is determined according to a default signal gain gear.
[0072] The embodiment of the present application provides a signal gain control device, comprising: a memory and a processor, wherein the memory is used to store an executable program;
[0073] The processor is used to read and execute the executable program to implement the signal gain control method described in any of the above embodiments.
[0074] The signal gain control device provided in the embodiment of the present application obtains the first characteristic information of the input signal that is amplified according to the initial signal gain gear; when it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal that is amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear, thereby realizing the adjustment of the signal gain gear from high to low, so that the input signal after gain processing can be in the signal characteristic range supported by the gain coefficient corresponding to the adjusted signal gain gear.
[0075] The embodiment of the present application also provides a signal gain control device, including: a sensor, a circuit gear determination module, a state determination module, a collision detection module, and an analog terminal circuit;
[0076] Among them, the circuit gear determination module is used to send a signal gain gear switching signal to the analog end circuit, so that the analog end circuit switches the signal gain gear to a specified signal gain gear.
[0077] The state discrimination module is used to cache the input signal of the signal gain level and form an input signal with a fixed frame length, and judge whether the silent state is met according to the input signal; the specific calculation index is to calculate the maximum amplitude or energy value of the frame signal, etc., which represents the characteristics of the signal state. When the characteristic index is less than the threshold e, it is a silent state.
[0078] The collision detection module is used to perform signal normalization according to input signals of different signal gain gears or perform algorithm recognition on the signal gain gear state of the tag signal.
[0079] Assuming the following scenario, the car is driving normally at the beginning, and a collision occurs after driving for a period of time. After the collision, the car drives a short distance before stopping. The flow chart of the signal gain control device provided in the embodiment of the present application to realize the automatic signal gain can be as follows: Figure 2 As shown, including:
[0080] Step 1: The sensor obtains the vehicle speed Can signal as an input signal and inputs it into the circuit gear determination module.
[0081] Step 2: The circuit gear determination module determines the signal gain gear to be switched according to the input signal, and sends the switching signal to the analog end circuit.
[0082] The circuit gear determination module determines, according to the input signal, that the signal gain gear to be switched is the initial signal gain gear.
[0083] Step 3: The analog end circuit switches to the corresponding signal gain gear according to the switching signal.
[0084] Step 4: When a collision occurs, the sensor obtains the elastic wave signal generated after the collision occurs, and inputs the obtained elastic wave signal into the state judgment module as an input signal.
[0085] Step 5, the state determination module determines whether the silent state is met according to the input signal. If it is met, the input signal is sent to the circuit gear determination module, and steps 3 and 4 are executed repeatedly until the collision process is completed and normal driving is resumed, and step 6 is executed.
[0086] Step 6: The analog end circuit switches the signal gain gear from the current signal gain gear to the initial signal gain gear.
[0087] Step 7: The sensor inputs all input signals obtained during the entire process into the collision detection module.
[0088] The working process diagram of the circuit gear determination module is as follows: Figure 3 As shown, including:
[0089] Step 1: Get the vehicle speed Can signal as the input signal.
[0090] Among them, when the vehicle speed Can signal cannot be obtained, go directly to step 4.
[0091] Step 2: Determine whether the speed is greater than the vehicle speed threshold.
[0092] Step 3: If it is greater than the threshold, obtain the specified signal gain level.
[0093] Step 4: Obtain the circuit signal amplitude and amplitude difference value at the current signal gain level;
[0094] Step 5: Determine whether the obtained signal amplitude and amplitude difference value are greater than the threshold corresponding to the current signal gain level;
[0095] Step 6: If it is not greater than the threshold corresponding to the current signal gain level, maintain the current signal gain level;
[0096] Step 7: If it is greater than the threshold corresponding to the current signal gain level, determine the target signal gain level to be switched.
[0097] The workflow of the state identification module is shown as follows: Figure 4 As shown, including:
[0098] Step 1, obtaining the elastic wave signal of the current signal gain level;
[0099] Step 2, obtaining frame data formed by the elastic wave signal;
[0100] Step 3, calculating the maximum amplitude and energy value of the obtained frame data;
[0101] Step 4: Determine whether the maximum amplitude and energy value are less than the threshold value corresponding to the current signal gain level. If not, return to step 2. If less, proceed to step 5.
[0102] Step 5: Enter the signal gain gear waiting state.
[0103] The present application also provides a signal gain control circuit. Figure 5 As shown, it includes: a gear switching module 21, a control module 22, a sensor 23, and an amplifying circuit 24; wherein the gear switching module 22 includes a multi-level signal gain gear, and the multi-level signal gain gear realizes different signal gain coefficients through resistors with different resistance values;
[0104] The sensor is connected to the control module 22 and the amplifier circuit 24 respectively, and is used to obtain the input signal processed by the amplifier circuit according to the initial signal gain gear, and output it to the control module; and is also used to obtain the input signal processed by the amplifier circuit according to the lowered signal gain gear, and output it to the control module 22;
[0105] The control module 22 is connected to the gear switching module 21, and is used to obtain the first characteristic information of the input signal, and when it is determined that the obtained first characteristic information exceeds the first characteristic upper limit threshold corresponding to the signal gain gear of the input signal, a switching signal for lowering the signal gain gear is sent to the gear switching module 21, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or the signal gain gear has been adjusted to the lowest signal gain gear;
[0106] The gear switching module 21 is connected to the amplifier circuit 24 and is used to lower the signal gain gear according to the switching signal.
[0107] In an exemplary instance, the control module is also used to obtain second characteristic information of the input signal that is amplified according to the current signal gain gear within a preset time length; when it is determined that the second characteristic information does not exceed the second characteristic threshold corresponding to the current signal gain gear, a switching signal to increase the signal gain gear is sent to the gear switching module.
[0108] In an exemplary embodiment, the control module is specifically configured to send a switching signal to the gear switching module to increase the gain of the signal to an initial signal gain gear.
[0109] In an exemplary embodiment, the control module is specifically used to send a switching signal to the gear switching module to increase the signal gain gear until the second characteristic information of the input signal under the increased signal gain gear does not exceed the second characteristic threshold corresponding to the increased signal gain gear, or has been adjusted to the initial signal gain gear.
[0110] The signal gain control circuit provided in the embodiment of the present application obtains the first characteristic information of the input signal that is amplified according to the initial signal gain gear; when it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal that is amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear, thereby realizing the adjustment of the signal gain gear from high to low, so that the input signal after gain processing can be in the signal characteristic range supported by the gain coefficient corresponding to the adjusted signal gain gear.
[0111] The present application also provides a signal gain control circuit. Figure 6 As shown, the gear switching module in the signal gain control circuit includes four signal gain gears. The four signal gain gears respectively realize different signal gain coefficients through R1, R2, R3, and R4. The different signal gain coefficients realized by R1, R2, R3, and R4 are: R1>R2>R3>R4. The gain coefficients realized by the four gain gears can be as follows Figure 7 As shown, the phase characteristics of the circuit are consistent, such as Figure 8 As shown, therefore, the signal reproduction can be corrected by directly using the inverse transformation method of the frequency point gain.
[0112] The gear switching logic is as follows:
[0113] (1) The gear switching time of electronic components is at the nanosecond level, which takes up very little time and basically does not affect the actual data collection (10k sampling rate).
[0114] (2) The same product adopts a multi-gear design with default gear and switch gear (the default gear gain is greater than the switched gear). The gear design parameters are generally related to the product definition. For example, in the field of low-speed micro-collision of automobiles, the signal volume is small, the default gear is R1, and the switch gear is R2-R3; in the high-speed collision project of automobiles, the signal is generally large after the collision, and the conventional signal is used as interference. At this time, the default gear is R2, and the switch gear is R3-R4;
[0115] (3) Switch from the default high-gain gear to the low-gain gear, and determine whether to switch gears based on whether the default gear amplitude threshold is greater than the predetermined threshold; once switched to the low-gain gear, the current signal will be kept in the low-gain gear, and will not be switched to the high-gain gear at will. There are two situations: (1) If the low-gain gear signal does not exceed the threshold, the gear will not be switched until the signal in the signal window displayed by the low-gain gear is small, enters a silent state, and remains for a certain period of time, and then enters the high-gain gear again; (2) If the low-gain gear signal exceeds the threshold again, the gear will be switched to a gear with a lower gain level again, and so on; a maximum of 3 switches. Until the signal in the signal window displayed by the low-gain gear is small, enters a silent state, and remains for a certain period of time, then enters the default gain gear again; the gear will not be switched frequently, and a maximum of 3 gear switches will be performed in a single collision signal.
[0116] The flow chart of the automatic gain adjustment of the input signal implemented by the signal gain control circuit provided in the embodiment of the present application can be as follows: Fig. 9 As shown, Fig. 9 As shown in the figure, the amplitude and differential value of the input signal after automatic gain adjustment are effectively reduced. The comparison diagram of the signal restoration after gear switching and the original signal can be shown as follows: Fig.10 As shown, Fig.10 As shown, the input signal at the signal gain level is basically restored to the original signal after restoration processing.
[0117] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
Claims
1. A signal gain control method, characterized in that: include: Acquire first characteristic information of an input signal that is amplified according to an initial signal gain level; When it is determined that the first characteristic information of the input signal at the initial signal gain gear exceeds the first characteristic upper limit threshold value corresponding to the initial signal gain gear, the initial signal gain gear is lowered, and the first characteristic information of the input signal amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold value corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear; wherein, the higher the signal gain gear, the larger the signal gain coefficient.
2. The method according to claim 1, characterized in that When it is determined that the first characteristic information of the input signal at the initial signal gain level does not exceed the first characteristic lower limit threshold corresponding to the initial signal gain level, the method further includes: The initial signal gain level is increased, and the first characteristic information of the input signal amplified according to the increased signal gain level is obtained, until the first characteristic information of the input signal at the increased signal gain level exceeds the first characteristic lower limit threshold corresponding to the increased signal gain level, or the highest signal gain level has been adjusted.
3. The method according to claim 2, characterized in that The method further comprises: Acquire first characteristic information of an input signal that is amplified according to a current signal gain level; When it is determined that the first characteristic information of the input signal at the current signal gain gear exceeds the first characteristic upper limit threshold value corresponding to the current signal gain gear within a preset time period, the current signal gain gear is lowered, and the first characteristic information of the input signal amplified according to the lowered signal gain gear is obtained, until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold value corresponding to the lowered signal gain gear, or it has been adjusted to the lowest signal gain gear.
4. The method according to claim 1, characterized in that: The step of lowering the initial signal gain level and obtaining first characteristic information of the input signal amplified according to the lowered signal gain level includes: The signal gain level is gradually lowered from the initial signal gain level, and each time the signal gain level is lowered by one level, first characteristic information of the input signal amplified according to the lowered signal gain level is obtained.
5. The method according to any one of claims 1 to 4, characterized in that: The first characteristic information includes: signal amplitude and signal difference value.
6. The method according to claim 1 or 3, characterized in that: The method further comprises: Acquire second characteristic information of an input signal that is amplified according to the current signal gain level within a preset time period; When it is determined that the second characteristic information does not exceed the second characteristic threshold corresponding to the current signal gain level, the signal gain level is adjusted to a signal gain level higher than the current signal gain level.
7. The method according to claim 6, characterized in that The step of adjusting the signal gain level to a signal gain level higher than the current signal gain level includes: The current signal gain level is adjusted to the initial signal gain level, and the input signal is amplified according to the initial signal gain level.
8. The method according to claim 6, characterized in that The step of adjusting the signal gain level to a signal gain level higher than the current signal gain level includes: The current signal gain level is increased, and the second characteristic information of the input signal amplified according to the increased signal gain level within a preset time period is obtained, until the second characteristic information of the input signal at the increased signal gain level does not exceed the second characteristic threshold corresponding to the increased signal gain level, or it has been adjusted to the initial signal gain level.
9. The method according to claim 6 or 8, characterized in that: The second characteristic information includes: the maximum amplitude of the signal.
10. The method according to claim 7, characterized in that The method further comprises: In the process of adjusting the signal gain level, the input signal obtained at each adjusted signal gain level is converted; wherein the conversion process includes: converting the input signal according to the adjustment ratio to obtain an input signal that is amplified according to the initial signal gain level if it is at the initial signal gain level; wherein the adjustment ratio includes: the ratio of the gain coefficient corresponding to the initial signal gain level to the gain coefficient corresponding to the adjusted signal gain level; An operation adapted to a preset processing target is performed according to all the input signals obtained after the conversion processing.
11. The method according to claim 1, 2, 4, 7, 8 or 10, characterized in that: The initial signal gain gear is determined according to the current vehicle speed signal, or the initial signal gain gear is determined according to a default signal gain gear.
12. A signal gain control device, characterized in that: include: A memory and a processor, wherein the memory is used to store an executable program; The processor is used to read and execute the executable program to implement the signal gain control method according to any one of claims 1 to 11.
13. A signal gain control circuit, characterized in that: include: A gear switching module, a control module, a sensor, and an amplifying circuit; wherein the gear switching module includes a multi-level signal gain gear, and the multi-level signal gain gear achieves different signal gain coefficients through resistors with different resistance values; The sensor is connected to the control module and the amplifier circuit respectively, and is used to obtain the input signal processed by the amplifier circuit according to the initial signal gain gear, and output it to the control module; and is also used to obtain the input signal processed by the amplifier circuit according to the lowered signal gain gear, and output it to the control module; The control module is connected to the gear switching module and is used to obtain the first characteristic information of the input signal, and when it is determined that the obtained first characteristic information exceeds the first characteristic upper limit threshold corresponding to the signal gain gear of the input signal, a switching signal for lowering the signal gain gear is sent to the gear switching module until the first characteristic information of the input signal at the lowered signal gain gear does not exceed the first characteristic upper limit threshold corresponding to the lowered signal gain gear, or the input signal has been adjusted to the lowest signal gain gear; The gear switching module is connected to the amplifying circuit and is used to lower the signal gain gear according to the switching signal.
Citation Information
Cited By
Signal detection apparatus and signal detection method
WO2026222679A1
