CN116968759A - Sensor signal processing method and device, electronic equipment and medium - Google Patents

Sensor signal processing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN116968759A
CN116968759A CN202310952963.0A CN202310952963A CN116968759A CN 116968759 A CN116968759 A CN 116968759A CN 202310952963 A CN202310952963 A CN 202310952963A CN 116968759 A CN116968759 A CN 116968759A
Authority
CN
China
Prior art keywords
sensor
detection
deviation value
candidate
preset threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310952963.0A
Other languages
Chinese (zh)
Inventor
张慧峰
苗志慧
齐儒赞
刘沛霖
欣白宇
陈伟轩
张宇彤
姜宇
王奎霖
宋同好
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310952963.0A priority Critical patent/CN116968759A/en
Publication of CN116968759A publication Critical patent/CN116968759A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints
    • G01R31/67Testing the correctness of wire connections in electric apparatus or circuits
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W50/02Ensuring safety in case of control system failures, e.g. by diagnosing, circumventing or fixing failures
    • B60W50/0205Diagnosing or detecting failures; Failure detection models
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W2050/0001Details of the control system
    • B60W2050/0043Signal treatments, identification of variables or parameters, parameter estimation or state estimation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W50/00Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
    • B60W50/02Ensuring safety in case of control system failures, e.g. by diagnosing, circumventing or fixing failures
    • B60W50/0205Diagnosing or detecting failures; Failure detection models
    • B60W2050/0215Sensor drifts or sensor failures

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The embodiment of the application discloses a sensor signal processing method, a sensor signal processing device, electronic equipment and a medium. The method comprises the following steps: acquiring detection signals of two candidate sensors, and determining a deviation value of the detection signals relative to a preset threshold value; selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value; and determining connection results of the two candidate sensors according to detection signals of the two candidate sensors obtained after the working condition adjustment, and processing the detection signals according to the connection results. According to the method, the deviation value of the detection signal and the preset threshold value is calculated, the working condition of the detection object is adjusted according to the deviation value, the adjusted detection signal is near the preset threshold value, normal operation of the detection object is guaranteed, the connection result of the sensor is judged according to the adjusted detection signal, whether the sensor is reversely connected or not is judged in advance, and the influence of the sensor on the detection object is avoided.

Description

Sensor signal processing method and device, electronic equipment and medium
Technical Field
The present application relates to the field of sensor technologies, and in particular, to a sensor signal processing method, a device, an electronic apparatus, and a medium.
Background
In the running process of the vehicle, the working state of some equipment often needs to be adjusted according to the actual running condition, so that a sensor is required to detect in real time and send the detection result to a vehicle terminal.
However, in practical operation, at least two sensors are often required to measure one device, which results in the problem that during the installation process, the installation distance is too short, and the sensor type and the connector are the same, so that the sensor is reversely connected.
The sensor is connected reversely and then adjusts the equipment, so that the equipment works abnormally, and the condition that the sensor is connected reversely cannot be identified before the equipment is started. When the vehicle runs, the equipment is often adjusted according to the detection signal obtained by detecting the reverse connection sensor after the vehicle is assembled, the problem that the equipment works abnormally can be caused, the sensor is checked after the abnormality occurs, and even if the reverse connection condition is checked, a great deal of effort is required to be spent on adjusting the connector, and even the related vehicle parts are detached to finish the adjustment.
Disclosure of Invention
The application provides a sensor signal processing method, a device, electronic equipment and a medium, which are used for judging the connection state of a sensor.
According to an aspect of the present application, there is provided a sensor signal processing method, the method comprising:
acquiring detection signals of two candidate sensors, and determining a deviation value of the detection signals relative to a preset threshold value;
selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value;
and determining connection results of the two candidate sensors according to detection signals of the two candidate sensors obtained after the working condition adjustment, and processing the detection signals according to the connection results.
According to another aspect of the present application, there is provided a sensor signal processing apparatus, the apparatus comprising:
and a deviation value determining module: acquiring detection signals of two candidate sensors, and determining a deviation value of the detection signals relative to a preset threshold value;
the detection object adjusting module: selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value;
the detection signal processing module: and determining connection results of the two candidate sensors according to detection signals of the two candidate sensors obtained after the working condition adjustment, and processing the detection signals according to the connection results.
According to another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the sensor signal processing method of any one of the embodiments of the present application.
According to another aspect of the present application, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a sensor signal processing method according to any one of the embodiments of the present application.
According to the technical scheme, detection signals of the two candidate sensors are obtained, and the deviation value of the detection signals relative to the preset threshold value is determined. Selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value; the detection object is adjusted with the aim of reducing the deviation value, so that the working condition of the detection object is guaranteed to be closer to an ideal state after the working condition of the detection object is adjusted, and the normal working of the detection object is guaranteed. According to the detection signals of the two candidate sensors obtained after the working condition adjustment, the connection results of the two candidate sensors are determined, and the detection signals are processed according to the connection results. According to the method, the deviation value of the detection signal and the preset threshold value is calculated, the working condition of the detection object is adjusted according to the deviation value, the detection signal obtained through detection after adjustment is changed to be near the preset threshold value, normal operation of the detection object is guaranteed, the connection result of the sensor is judged according to the detection signal after adjustment, whether the sensor is connected reversely or not is judged in advance, and the influence of the sensor connection reversely on the detection object is avoided.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a sensor signal processing method according to a first embodiment of the present application;
FIG. 2 is a flowchart of another sensor signal processing method according to a second embodiment of the present application;
FIG. 3 is a flow chart of a flag bit for checking the clean oxygen position according to a second embodiment of the present application;
FIG. 4 is a flowchart of a sensor signal processing method according to a second embodiment of the present application;
fig. 5 is a schematic structural diagram of a sensor signal processing device according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," "third," "fourth," "actual," "preset," and the like in the description and the claims of the present application and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a sensor signal processing method according to an embodiment of the present application, which is applicable to a situation of judging a connection condition of a sensor. Typically, it is applicable to the case of judging the connection condition of the oxygen sensor of the automobile. The method may be performed by a sensor signal processing device, which may be implemented in hardware and/or software, which may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, obtaining detection signals of the two candidate sensors, and determining a deviation value of the detection signals relative to a preset threshold.
The candidate sensor can be equipment capable of detecting the working state of the detection object, such as detecting the water level of a water tank, and a liquid level sensor can be adopted; detecting the stroke amount of an accelerator pedal, a pedal detection sensor may be employed; detecting the color, wherein a color sensor can be adopted; an auditory sensor may be used to detect the speech signal. The number of the candidate sensors is at least two, the specific number of the candidate sensors can be determined according to the requirement of the detection object, the candidate sensors can also be sensor groups, such as two sensor groups, each sensor group comprises two sensors, the sensors are respectively connected with the detection object, and detection of the detection object can be realized when one of the sensors fails. The detection signal is a signal capable of representing the operation state of the detection object.
The detection signals obtained by detection are obtained from the two candidate sensors, the detection signals are sent to an ECU (Electronic Control Unit, an electronic controller unit), the ECU compares the detection signals of the corresponding candidate sensors with a preset threshold value respectively, and difference processing is carried out on the detection signals and the preset threshold value after comparison.
Optionally, before acquiring the detection signals of the two candidate sensors, the method further includes:
controlling the detection object to be in a working state;
the adjustment detection object is in an open loop control mode.
The open loop control mode may be a mode in which the ECU does not adjust the operating state of the engine according to the detection signal detected by the sensor.
The above steps make the detection object in a working state, and ensure that the detection object is in the working state when the detection object is detected. The detection object is adjusted to be in an open loop control mode, the ECU does not adjust the detection object according to the detection signal, and the problem that the detection object is likely to work abnormally due to the fact that the detection object is adjusted according to the reverse connection result when the sensor is reversely connected is avoided. Therefore, open loop control is adopted, the working state of the detection object is only observed, and the detection object is not regulated according to the detection signal, so that the normal operation of the detection object is ensured.
S120, selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of the detection object of the target sensor to reduce the deviation value.
The target sensor may be a candidate sensor that satisfies the deviation value determination condition. The detection object can be equipment to be detected by the candidate sensor, such as an engine, a water tank, a manipulator joint, a belt conveyor and the like. The operating condition may be an operating mode that enables a reduction in the offset value.
The method includes the steps of providing an engine as a detection object, selecting a target sensor according to a calculated deviation value, judging whether the working condition of the engine is increased or decreased in oil injection according to the magnitude of a detection signal, and adjusting the engine according to the working condition to decrease the deviation value.
S130, determining connection results of the two candidate sensors according to detection signals of the two candidate sensors obtained after the working condition adjustment, and processing the detection signals according to the connection results.
The connection result may be that the candidate sensor connection is normal or the candidate sensor connection is reversed.
For example, assuming that the detection object is an engine, the candidate sensor 1 is taken as a target sensor, the fuel injection amount is increased to the engine corresponding to the target sensor, whether the detection signal of the candidate sensor 1 changes is observed, if the detection signal changes, the connection of the candidate sensor is normal, if the detection signal of the candidate sensor 2 changes, the detection signal of the candidate sensor 1 does not change, and the connection of the candidate sensor is reversed.
After the working condition of the detection object is adjusted, the detection object is detected through the candidate sensor to obtain a detection signal, the connection result of the candidate sensor is determined according to the change of the detection signal, and the detection signal is processed according to the connection result of the candidate sensor.
According to the technical scheme, detection signals of the two candidate sensors are obtained, and the deviation value of the detection signals relative to the preset threshold value is determined. Selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value; the detection object is adjusted with the aim of reducing the deviation value, so that the working condition of the detection object is guaranteed to be closer to an ideal state after the working condition of the detection object is adjusted, and the normal working of the detection object is guaranteed. According to the detection signals of the two candidate sensors obtained after the working condition adjustment, the connection results of the two candidate sensors are determined, and the detection signals are processed according to the connection results. According to the method, the deviation value of the detection signal and the preset threshold value is calculated, the working condition of the detection object is adjusted according to the deviation value, the detection signal obtained through detection after adjustment is changed to be near the preset threshold value, normal operation of the detection object is guaranteed, the connection result of the sensor is judged according to the detection signal after adjustment, whether the sensor is connected reversely or not is judged in advance, and the influence of the sensor connection reversely on the detection object is avoided.
Example two
Fig. 2 is a flowchart of another sensor signal processing method according to a second embodiment of the present application, where the embodiment of the present application is optimized based on the foregoing embodiment, and a scheme not described in detail in the embodiment of the present application is shown in the foregoing embodiment. In this embodiment, the detection target is an engine, and the detection signal is an oxygen sensor signal. As shown in fig. 2, the method in the embodiment of the present application specifically includes the following steps:
s210, obtaining detection signals of two candidate sensors, and determining a deviation value of the detection signals relative to a preset threshold.
Optionally, determining the deviation value of the detection signal with respect to the preset threshold value includes:
if the detection signal is in the preset range, determining a deviation value of the detection signal relative to a preset threshold value; the preset range comprises a preset threshold value.
The preset range may be a safety range value capable of ensuring that the engine is not affected during the adjustment when the engine operating state is adjusted, for example, the preset range may be [0.85 to 1.15]. The preset threshold is determined according to the working state of the engine, if the ideal working state of the engine is that the air-fuel ratio signal is 1, a preset range is selected near the value, so that the engine can normally run during adjustment. Wherein the air-fuel ratio may be a mass ratio of air to fuel, and the value of the air-fuel ratio decreases when the content of fuel increases, indicating that the air-fuel ratio is rich; when the fuel content decreases, the value of the air-fuel ratio increases, which indicates that the air-fuel ratio is lean.
Judging whether the detected signal is in a preset range or not, if so, making a difference between the detected signal and a preset threshold value, thereby determining a deviation value.
For example, assume that the detection signal of the candidate sensor 1 is λ1=1.15, the detection signal of the candidate sensor 2 is λ2=0.80, and the preset range is [0.85 to 1.15]. In contrast, λ1 is within the preset range, and λ2 is outside the preset range. Assume that the candidate sensor 1 corresponds to the cylinder group 1 and is marked as bank1; the candidate sensor 2 corresponds to the cylinder group 2 and is denoted as bank2. When the engine operating state is adjusted based on the detection signal, if the amount of fuel injection from bank1 3% is increased, the detection signal of the candidate sensor 1 should be relatively reduced by 3%, that is, λ1=1.12. However, if the sensor is connected reversely, the fuel injection quantity of bank2 is enriched by 3%, namely λ2=0.77, and after the adjustment is completed, the detection signal is separated from the preset range, so that the working state of the engine is abnormal. From this, it is apparent that the operations of the engine may be abnormal when the λ1 and λ2 are out of the predetermined range. Therefore, when the air-fuel ratio is out of range, the air-fuel ratio closed-loop control function is disabled, and the detection of an incomplete failure is reported.
By adopting the steps, whether the detection signal is in the preset range or not is judged in advance, so that the air-fuel ratio is not enriched due to the increase of the fuel injection amount when the working state of the engine is adjusted, and the engine is flameout; the problem of ignition failure of the engine caused by air-fuel ratio dilution due to the reduction of the fuel injection amount is avoided.
Optionally, before adjusting the engine in the open loop control mode, activating an oxygen sensor detection function is also included.
The oxygen sensor sensing function may be a module capable of sensing the amount of oxygen content in the engine exhaust. The amount of oxygen output may be responsive to the amount of engine air-fuel ratio.
For example, before starting the engine, the oxygen sensor detection function needs to be activated first, and as shown in fig. 3, after the ECU is powered up, it is first determined whether the oxygen sensor is connected reversely. If the fault flag bit is needed, the line oxygen position checking completion flag bit is cleared at the same time. The linear oxygen position marker bit can be a marker which can enable the ECU to judge whether the oxygen sensor is reversely connected, and when the oxygen sensor is reversely connected, the position marker bit is at a position 1; and when the position is not reversed, marking the position 0. The oxygen position checking completion flag bit can be a condition for judging completion of the position detection of the oxygen sensor, namely completion of the detection, and the linear oxygen position checking completion flag bit 1; and (5) incomplete detection, and checking the line oxygen position to finish the mark position 0.
By adopting the steps, if the fault of the peroxy sensor occurs, the marker bit is cleared while the marker bit of the line oxygen position is cleared, so that whether the oxygen sensor still has the fault or not can be detected when the power is on next time, and the detection accuracy is ensured.
S220, comparing the deviation values of the detection signals of the two candidate sensors relative to a preset threshold value.
S230, a candidate sensor corresponding to the detection signal with a large deviation value is taken as a target sensor.
The predetermined signal may be a deviation value of the candidate sensor from a predetermined threshold.
And judging the sizes of the two deviation values, and taking the candidate sensor corresponding to the detection signal with the larger deviation value as the target sensor.
For example, if the detection signals of the candidate sensors are λ1 and λ2 respectively, and if both λ1 and λ2 are greater than 1, and λ1> λ2, the deviation value of λ1 from the preset threshold is greater than λ2 from the preset threshold, the candidate sensor corresponding to the detection signal λ1 is taken as the target sensor; if λ1 and λ2 are both smaller than 1, and the deviation value of λ1> λ2 and λ2 from the preset threshold is larger than λ1 and the preset threshold, the candidate sensor corresponding to the detection signal λ2 is taken as the target sensor. If λ1 is greater than 1 and λ2 is less than 1, and |λ1| > |λ2|, the deviation value of λ1 and the preset threshold is greater than λ2 and the preset threshold, and the candidate sensor corresponding to the detection signal λ1 is used as the target sensor.
S240, if the detection signal of the target sensor is larger than a preset threshold value, adding a preset amount of oil injection quantity into the engine.
The preset oil injection quantity can be calibrated according to practical conditions, for example, the oil injection quantity can be 3%.
For example, if the detection signal of the target sensor is λ1=1.15, λ1> 1, the engine is operated in such a manner that the fuel injection amount is increased and the fuel injection amount is increased by 3% into the engine.
S250, if the detection signal of the target sensor is smaller than a preset threshold value, reducing the oil injection quantity of a preset quantity into the engine.
For example, if the detection signal of the target sensor is λ2=0.9, λ2 < 1, the engine is operated in such a manner that the injection amount is reduced and the injection amount is reduced by 3% into the engine.
And S260, if the deviation value of the detection signal of the target sensor obtained after the working condition adjustment relative to the preset threshold value is reduced, determining that the two candidate sensors are accurately connected, otherwise, determining that the two candidate sensors are connected incorrectly.
For example, if the detection signal λ1=0.95 of bank1, λ2=1.10 of bank2, the preset threshold value λ=1, λ2- λ > λ1- λ, so that the deviation value of λ2 is larger, the fuel injection amount is increased to bank2, the fuel injection is increased by 3%, and if the candidate sensor is connected reversely, bank1 is enriched by 3%; if the candidate sensor is not connected in reverse, bank2 is enriched by 3%.
Optionally, the steps further include: and setting a line oxygen zone bit according to the connection result of the candidate sensor.
For example, if the side lambda value is correspondingly reduced or increased by 3% after the enrichment or thinning operation, the installation positions of the side oxygen sensors of the bank1 and the bank2 are consistent with the design, the linear oxygen position flag bit is kept at 0, and the linear oxygen position verification is completed at the flag position 1; if the lambda value at the side is unchanged and the lambda value at the other side is reduced or increased by 3%, the mounting positions of the oxygen sensors at the bank1 and the bank2 are opposite to the design, and the problems of connection and disconnection exist, namely a linear oxygen position mark position 1 and a linear oxygen position verification completion mark position 1.
And S270, if the connection errors of the two candidate sensors are determined, exchanging the detection signals of the two candidate sensors, and processing the detection signals according to the connection results.
If the two candidate sensors are connected incorrectly, the sensors corresponding to the bank1 and the bank2 are exchanged, and after the exchange is completed, detection signals are detected according to the exchanged candidate sensors.
Illustratively, determining a signal acquisition path according to the line oxygen position marker bit, and if the signal acquisition path is 0, conforming to the designed path; if the detection signal is 1, exchanging signal acquisition paths to acquire correct detection signals on the bank1 side and the bank2 side.
By adopting the steps, the detection signals are processed according to the connection result, so that when the sensor is connected reversely, the sensor can be replaced without being disassembled, and the overhaul efficiency is improved.
For example, as shown in fig. 4, after the ECU is powered on, reading a line oxygen position verification completion flag bit and a line oxygen position flag bit in the memory, judging whether the line oxygen position verification completion flag bit is 1, if 1, indicating that the line oxygen position verification completion flag bit is already detected along with the sensor position, further judging whether the line oxygen position flag bit is 1, if 1, indicating that the oxygen sensor is reversely connected, replacing a detection signal of the sensor, after replacing, reading a detection signal of a candidate oxygen sensor, and realizing closed-loop control of the engine; if the value is set to 0, the connection is correct, the detection signal of the candidate oxygen sensor is read, and the closed-loop control of the engine is realized. If the linear oxygen position mark is set to 0, the sensor position is not detected, so that the oxygen sensor detection function needs to be activated, the engine is started after the oxygen sensor detection function is activated, the engine is adjusted to be in an open loop control mode, and a preset threshold value is set. Judging whether the detection signal is in a preset range, if so, judging the deviation value of the detection signal and a preset threshold value, adjusting the working state of the engine according to the deviation value, detecting the exhaust state of the engine by a sensor after the adjustment is finished, judging whether the oxygen sensor is reversely connected according to the detection signal obtained by detection, setting a corresponding marker bit if so, and judging whether the detection signal needs to be exchanged according to the marker bit; if the detection signal is judged to be out of the preset range, the engine fails, and fault information is reported. And when the ECU is powered down, writing the state of the line oxygen position checking completion flag bit and the line oxygen position flag bit of the oxygen sensor into a memory.
The embodiment of the application provides a sensor signal processing method, which is characterized in that the working state of an engine is determined by judging the detection signal of a sensor and the magnitude of a preset threshold value, and the position of an oxygen sensor is determined according to the detection signal detected after the working state is changed, so that the acquisition path of the detection signal is adjusted, the normal operation of the closed-loop control function of the engine can be ensured even if the oxygen sensor is connected reversely, and the assembly efficiency of a vehicle is improved.
Example III
Fig. 5 is a schematic structural diagram of a sensor signal processing device according to a third embodiment of the present application, where the device may execute the sensor signal processing method according to any embodiment of the present application, and the device has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 5, the apparatus includes:
the deviation value determination module 310: the method comprises the steps of obtaining detection signals of two candidate sensors, and determining deviation values of the detection signals relative to a preset threshold value;
the detection object adjustment module 320: the target sensor is selected from the candidate sensors according to the deviation value, and the working condition of the detection object of the target sensor is adjusted to reduce the deviation value;
detection signal processing module 330: and the detection signals are processed according to the connection results.
In an embodiment of the present application, the deviation value determining module 310 includes:
detection signal judging unit: if the detection signal is in the preset range, determining a deviation value of the detection signal relative to a preset threshold value; wherein the preset range includes the preset threshold.
In an embodiment of the present application, the detection object adjusting module 320 includes:
an offset value determination unit: the deviation value of the detection signals of the two candidate sensors relative to a preset threshold value is compared;
an object sensor determination unit: for use as a target sensor with respect to a detection signal having a large deviation value.
In the embodiment of the present application, the detection object is an engine, the detection signal is an oxygen sensor signal, and the detection object adjusting module 320 includes:
an injection amount increasing unit: if the detection signal of the target sensor is larger than a preset threshold value, adding a preset oil injection quantity into the engine;
an injection amount reducing unit: and the method is used for reducing the oil injection quantity of the preset quantity into the engine if the detection signal of the target sensor is smaller than the preset threshold value.
In an embodiment of the present application, the detection signal processing module 330 includes:
the sensor is connected with an accurate unit: the method comprises the steps of determining that two candidate sensors are accurately connected if a deviation value of a detection signal of a target sensor acquired after working condition adjustment relative to a preset threshold value is reduced;
sensor connection error unit: and determining that the two candidate sensors are connected incorrectly if the deviation value of the detection signal of the target sensor acquired after the working condition adjustment relative to the preset threshold value is unchanged.
Optionally, the sensor connection result judging unit includes:
the detection signal is to the pair of modulation units: for exchanging the detection signals of the two candidate sensors if it is determined that the two candidate sensors are connected incorrectly.
Optionally, the apparatus further includes:
an engine control module: for controlling the engine in an operating state.
An engine adjustment module: for adjusting the engine in an open loop control mode.
The sensor signal processing device provided by the embodiment of the application can execute the sensor signal processing method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the sensor signal processing method.
In some embodiments, the sensor signal processing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more steps of the sensor signal processing method described above may be performed when the computer program is loaded into the RAM 13 and executed by the processor 11. Alternatively, in other embodiments, the processor 11 may be configured to perform the sensor signal processing method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable sensor signal processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present application, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be executed in parallel, sequentially, or in a different order, so long as the information desired by the technical solution of the present application can be achieved, and the present application is not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of sensor signal processing, the method comprising:
acquiring detection signals of two candidate sensors, and determining deviation values of the detection signals relative to a preset threshold value;
selecting a target sensor from the candidate sensors according to the deviation value, and adjusting the working condition of a detection object of the target sensor to reduce the deviation value;
and determining a connection result of the two candidate sensors according to detection signals of the two candidate sensors obtained after the working condition adjustment, and processing the detection signals according to the connection result.
2. The method of claim 1, wherein selecting a target sensor from the candidate sensors based on the bias values comprises:
comparing deviation values of detection signals of the two candidate sensors relative to a preset threshold value;
the candidate sensor corresponding to the detection signal having a large deviation value is used as the target sensor.
3. The method of claim 1, wherein the test object is an engine and the test signal is an oxygen sensor signal;
adjusting the operating condition of the detection object of the target sensor to reduce the deviation value, including:
if the detection signal of the target sensor is larger than a preset threshold value, adding a preset oil injection quantity into the engine;
and if the detection signal of the target sensor is smaller than a preset threshold value, reducing the oil injection quantity of a preset quantity into the engine.
4. The method of claim 1, wherein determining the connection result to the two candidate sensors based on the detection signals of the two candidate sensors acquired after the adjustment of the operating condition comprises:
if the deviation value of the detection signal of the target sensor obtained after the working condition adjustment relative to the preset threshold value is reduced, determining that the two candidate sensors are accurately connected;
otherwise, determining that the two candidate sensors are connected incorrectly.
5. The method of claim 4, wherein processing the detection signal according to the connection result comprises:
if the connection errors of the two candidate sensors are determined, the detection signals of the two candidate sensors are exchanged.
6. The method of claim 1, wherein determining a deviation value of the detection signal from a preset threshold comprises:
if the detection signal is in the preset range, determining a deviation value of the detection signal relative to a preset threshold value; wherein the preset range includes the preset threshold.
7. The method of claim 1, wherein prior to acquiring the detection signals of the two candidate sensors, the method further comprises:
controlling the detection object to be in a working state;
the adjustment detection object is in an open loop control mode.
8. A sensor signal processing apparatus, the apparatus comprising:
and a deviation value determining module: the method comprises the steps of obtaining detection signals of two candidate sensors and determining deviation values of the detection signals relative to a preset threshold value;
the detection object adjusting module: the target sensor is selected from the candidate sensors according to the deviation value, and the working condition of the detection object of the target sensor is adjusted to reduce the deviation value;
the detection signal processing module: and the detection signals are processed according to the connection results.
9. An electronic device, the device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the sensor signal processing method of any one of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores computer instructions for causing a processor to implement the sensor signal processing method of any one of claims 1-7 when executed.
CN202310952963.0A 2023-07-31 2023-07-31 Sensor signal processing method and device, electronic equipment and medium Pending CN116968759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310952963.0A CN116968759A (en) 2023-07-31 2023-07-31 Sensor signal processing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310952963.0A CN116968759A (en) 2023-07-31 2023-07-31 Sensor signal processing method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN116968759A true CN116968759A (en) 2023-10-31

Family

ID=88472756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310952963.0A Pending CN116968759A (en) 2023-07-31 2023-07-31 Sensor signal processing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN116968759A (en)

Similar Documents

Publication Publication Date Title
CN110375888B (en) Method and apparatus for diagnosing coolant temperature sensor, vehicle, and storage medium
CN111120156B (en) Engine EGR rate deviation fault monitoring method and device
CN116907727B (en) Method and device for detecting fault of pressure sensor before vortex, vehicle and storage medium
CN111927640B (en) Engine fault detection method, device, equipment and computer readable storage medium
CN116878860B (en) Valve part stroke test system and test method
CN116380291A (en) Vehicle temperature sensor diagnosis method, device, equipment and storage medium
CN110631835B (en) Supercharging pressure credibility detection method and device
CN115219086A (en) Pressure sensor identification method, device, equipment and storage medium
CN116968759A (en) Sensor signal processing method and device, electronic equipment and medium
US9470653B2 (en) Method and apparatus for diagnosing disconnection of oxygen sensor
CN116626473A (en) Testing method, device, equipment and medium for vehicle-gauge master control chip
CN102866902B (en) Development object version automatic check method and system under complex environment
CN115144113B (en) Clutch pressure fluctuation detection method and device and electronic equipment
CN114673603B (en) Engine control system safety monitoring method, device, computer equipment and medium
CN117569938B (en) Method, device, equipment and medium for confirming injection time of diesel engine
CN116816526A (en) Method and device for detecting atmospheric pressure signal, electronic equipment and medium
CN114838454B (en) Test method, device and equipment of air conditioning equipment and storage medium
CN116624283A (en) State detection method, state detection device, vehicle and medium
CN114965878A (en) Oxygen sensor detection method, system, electronic equipment and storage medium
CN109388124B (en) Method and apparatus for determining whether an anomaly exists in a system
CN116008483A (en) Sulfur content detection method, device, equipment and medium
CN117269747A (en) Method, device, equipment and storage medium for detecting off-line of vehicle component
CN116572867A (en) Vehicle speed signal diagnosis method, device, equipment and storage medium
CN116106814A (en) OCV probe disconnection detection method, system, equipment and medium
CN115129020A (en) Fault detection method and system for sensor line

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination