[go: up one dir, main page]

CN121375803A - Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer - Google Patents

Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer

Info

Publication number
CN121375803A
CN121375803A CN202511835307.8A CN202511835307A CN121375803A CN 121375803 A CN121375803 A CN 121375803A CN 202511835307 A CN202511835307 A CN 202511835307A CN 121375803 A CN121375803 A CN 121375803A
Authority
CN
China
Prior art keywords
vehicle
attitude
real
time
state
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
CN202511835307.8A
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.)
Flaircomm Microelectronics Inc
Original Assignee
Flaircomm Microelectronics Inc
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 Flaircomm Microelectronics Inc filed Critical Flaircomm Microelectronics Inc
Priority to CN202511835307.8A priority Critical patent/CN121375803A/en
Publication of CN121375803A publication Critical patent/CN121375803A/en
Pending legal-status Critical Current

Links

Landscapes

  • Indicating Or Recording The Presence, Absence, Or Direction Of Movement (AREA)

Abstract

The application provides a vehicle state identification method, device, equipment and medium based on a triaxial accelerometer, and relates to the technical field of automobile electronics. The method comprises a calibration stage, a data acquisition stage, a deviation value calculation stage, a vehicle state identification and decision stage, a vehicle state decision stage and a vehicle state decision stage, wherein the calibration stage is used for calculating and storing an initial posture angle theta 1 1 representing a horizontal stationary state of a vehicle, the data acquisition stage is used for calculating a real-time posture angle theta 2 2 representing a real-time state of the vehicle, the deviation value calculation stage is used for calculating a posture deviation value delta theta based on the initial posture angle theta 1 1 and the real-time posture angle theta 2 2, at least one group of posture deviation thresholds are preset, the posture deviation value delta theta is compared with the posture deviation thresholds, at the same time, at least two vehicle state signals are obtained through a vehicle communication interface, and the vehicle current state is comprehensively judged based on a comparison result of the posture deviation value delta theta and the posture deviation thresholds and the vehicle state signals. The application can realize reliable and accurate identification of the vehicle state with extremely low cost through the triaxial accelerometer, and obviously reduces the false triggering rate.

Description

Vehicle state identification method, device, equipment and medium based on triaxial accelerometer
Technical Field
The application relates to the technical field of automobile electronics, in particular to a method and a device for identifying a vehicle state based on a triaxial accelerometer, electronic equipment and a storage medium.
Background
The vehicle state identification (for short, vehicle state identification) is one of key functions in an automobile electronic system, and the key requirement is to accurately judge whether the vehicle is in a state of normal running, tilting, overturning or collision in real time, so as to provide basis for subsequent safety control (such as airbag triggering), abnormal early warning (such as anti-theft tilting alarm) and data statistics (such as driving behavior analysis).
Currently, the mainstream solution for achieving high-precision vehicle state identification in the industry relies on Inertial Measurement Units (IMUs). The IMU is generally integrated with the triaxial accelerometer and the triaxial gyroscope, can collect acceleration data and angular velocity data simultaneously, and solves the vehicle attitude through a data fusion algorithm, so that motion interference is effectively counteracted, and recognition accuracy is high. However, IMU hardware is expensive (typically 5-10 times that of a tri-axial accelerometer) and requires a high computational power on a mating micro-processing unit (MCU), making it difficult to use in large scale in economical passenger cars, commercial vehicles, or low cost post-loading vehicle-mounted devices such as simple anti-theft devices.
To reduce the cost, some schemes attempt to implement vehicle state recognition using only a low cost tri-axial accelerometer (G-sensor for short). The inherent drawbacks of the G-sensor limit its reliability in that the G-sensor measures the vector sum of all accelerations to which the vehicle is subjected, including both the gravitational acceleration component used to determine attitude and the linear acceleration (e.g., acceleration, braking) and centrifugal acceleration (e.g., cornering) components generated by the vehicle's motion. In the running process of the vehicle, the motion acceleration component can seriously interfere with the extraction of the gravity acceleration component, so that the deviation of the attitude calculation result based on the G-sensor is extremely large, and false triggering is caused. For example, when a vehicle is suddenly braked, the vehicle is easily misjudged to be inclined forwards, when the vehicle is turned, the vehicle is easily misjudged to be inclined sideways, and the false triggering rate is as high as more than 30%, so that the actual application requirements cannot be met.
Thus, there is a strong need in the art for a vehicle state identification scheme that can achieve high reliability identification while maintaining low cost.
Disclosure of Invention
The application aims to provide a vehicle state identification method, device, electronic equipment and storage medium based on a triaxial accelerometer, which can realize reliable and accurate identification of the vehicle state with extremely low cost and remarkably reduce false triggering rate.
In a first aspect, an embodiment of the present application provides a vehicle state identifying method based on a triaxial accelerometer, including:
S1, in a calibration stage, placing a vehicle on an absolute horizontal plane, controlling a triaxial accelerometer to acquire initial acceleration data at the moment, and calculating and storing an initial attitude angle theta 1 representing a horizontal stationary state of the vehicle based on the initial acceleration data, wherein the initial attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in the initial state;
S2, in a data acquisition stage, controlling the triaxial accelerometer to acquire triaxial real-time acceleration data of the vehicle in real time in the running process of the vehicle, and calculating a real-time attitude angle theta 2 representing the real-time state of the vehicle based on the triaxial real-time acceleration data, wherein the real-time attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in a motion state;
S3, calculating a posture deviation value delta theta based on an initial posture angle theta 1 and a real-time posture angle theta 2, wherein the posture deviation value delta theta is the absolute value of the difference between the real-time posture angle theta 2 and the initial posture angle theta 1, namely delta theta= |theta 2 – θ1 |, and is used for representing the deviation degree of the current posture of the vehicle relative to a horizontal reference;
S4, at least one group of gesture deviation thresholds are preset in the vehicle state recognition and decision stage, the gesture deviation value delta theta is compared with the gesture deviation thresholds, at least two vehicle state signals are obtained through a vehicle communication interface, and the current state of the vehicle is comprehensively judged based on the comparison result of the gesture deviation value delta theta and the gesture deviation thresholds and the vehicle state signals.
In one possible implementation, the calculation formula of the attitude angle θ is:
Wherein, the For the X-axis real-time acceleration value,For the real-time acceleration value of the Y-axis,And the real-time acceleration value is the Z-axis.
In a possible implementation manner, the method further includes:
After the initial attitude angle theta 1 is calculated, verifying whether the value of theta 1 is within a preset range, and if the value is beyond, re-executing the calibration stage.
In a possible implementation manner, the vehicle communication interface is a CAN bus interface, and the CAN bus interface establishes bidirectional data communication with a vehicle controller of a vehicle, so as to obtain a vehicle state signal in real time, where the vehicle state signal includes a vehicle speed signal and a vehicle power mode signal.
In a possible implementation manner, the gesture deviation threshold includes a first deviation threshold Δa and a second deviation threshold Δb;
The comprehensively judging the current state of the vehicle based on the comparison result of the attitude deviation value delta theta and the attitude deviation threshold value and the whole vehicle state signal comprises the following steps:
When the vehicle speed signal represents the vehicle speed to be 0, judging that the vehicle is in a normal state if delta theta is less than or equal to delta A, judging that the vehicle is in an inclined state if delta A is less than or equal to delta B, and judging that the vehicle is in a turning state if delta theta is more than delta B;
and suspending the tilt and rollover state recognition logic based on the attitude deviation value delta theta when the vehicle speed signal characterizes a vehicle speed greater than 0.
In a possible implementation manner, the comprehensively judging the current state of the vehicle based on the comparison result of the attitude deviation value Δθ and the attitude deviation threshold and the vehicle state signal further includes:
When the vehicle power mode signal characterizes that the power is in the OFF gear or the ACC gear, the first deviation threshold value Δa and the second deviation threshold value Δb are adjusted down by a preset angle to activate high-sensitivity anti-theft tilt/overturn monitoring.
In a possible implementation manner, the method further includes:
Verifying the duration of the attitude deviation value Δθ after determining that the vehicle is in a tilted or flipped state;
If the duration of delta theta exceeding the corresponding deviation threshold value is greater than or equal to the preset duration, outputting a tilting or overturning state signal, and if the duration is smaller than the preset duration, judging that the state signal is not output, wherein the state signal is not output.
In a second aspect, an embodiment of the present application provides a vehicle state recognition device based on a triaxial accelerometer, including:
The calibration module is used for placing the vehicle on an absolute horizontal plane, controlling the triaxial accelerometer to acquire initial acceleration data at the moment, and calculating and storing an initial attitude angle theta 1 representing a horizontal stationary state of the vehicle based on the initial acceleration data, wherein the initial attitude angle is an anticcosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in the initial state;
The data acquisition module is used for controlling the triaxial accelerometer to acquire triaxial real-time acceleration data of the vehicle in real time in the running process of the vehicle, and calculating a real-time attitude angle theta 2 representing the real-time state of the vehicle based on the triaxial real-time acceleration data, wherein the real-time attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in a motion state;
The deviation value calculating module is used for calculating a posture deviation value delta theta based on the initial posture angle theta 1 and the real-time posture angle theta 2, wherein the posture deviation value delta theta is the absolute value of the difference value between the real-time posture angle theta 2 and the initial posture angle theta 1, namely delta theta= |theta 2 – θ1 |, and is used for representing the deviation degree of the current posture of the vehicle relative to the horizontal reference;
The vehicle state recognition and decision module is used for presetting at least one group of gesture deviation threshold values, comparing the gesture deviation value delta theta with the gesture deviation threshold values, acquiring at least two vehicle state signals through a vehicle communication interface, and comprehensively judging the current state of the vehicle based on the comparison result of the gesture deviation value delta theta and the gesture deviation threshold values and the vehicle state signals.
In one possible implementation, the calculation formula of the attitude angle θ is:
Wherein, the For the X-axis real-time acceleration value,For the real-time acceleration value of the Y-axis,And the real-time acceleration value is the Z-axis.
In a possible implementation manner, the calibration module is further configured to:
After the initial attitude angle theta 1 is calculated, verifying whether the value of theta 1 is within a preset range, and if the value is beyond, re-executing the calibration stage.
In a possible implementation manner, the vehicle communication interface is a CAN bus interface, and the CAN bus interface establishes bidirectional data communication with a vehicle controller of a vehicle, so as to obtain a vehicle state signal in real time, where the vehicle state signal includes a vehicle speed signal and a vehicle power mode signal.
In a possible implementation manner, the gesture deviation threshold includes a first deviation threshold Δa and a second deviation threshold Δb;
The vehicle state identification and decision module is specifically used for:
When the vehicle speed signal represents the vehicle speed to be 0, judging that the vehicle is in a normal state if delta theta is less than or equal to delta A, judging that the vehicle is in an inclined state if delta A is less than or equal to delta B, and judging that the vehicle is in a turning state if delta theta is more than delta B;
and suspending the tilt and rollover state recognition logic based on the attitude deviation value delta theta when the vehicle speed signal characterizes a vehicle speed greater than 0.
In a possible implementation manner, the vehicle state identification and decision module is further specifically configured to:
When the vehicle power mode signal characterizes that the power is in the OFF gear or the ACC gear, the first deviation threshold value Δa and the second deviation threshold value Δb are adjusted down by a preset angle to activate high-sensitivity anti-theft tilt/overturn monitoring.
In a possible implementation manner, the vehicle state identification and decision module is further configured to:
Verifying the duration of the attitude deviation value Δθ after determining that the vehicle is in a tilted or flipped state;
If the duration of delta theta exceeding the corresponding deviation threshold value is greater than or equal to the preset duration, outputting a tilting or overturning state signal, and if the duration is smaller than the preset duration, judging that the state signal is not output, wherein the state signal is not output.
In a third aspect, the application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the computer program to perform the method according to the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon computer readable instructions executable by a processor to implement the method according to the first aspect.
Compared with the prior art, the vehicle state identification method based on the three-axis accelerometer is provided, in a calibration stage, a vehicle is placed on an absolute horizontal plane, the three-axis accelerometer is controlled to collect initial acceleration data at the moment, an initial attitude angle theta 1 representing a horizontal static state of the vehicle is calculated and stored based on the initial acceleration data, in a data collection stage, the three-axis accelerometer is controlled to collect three-axis real-time acceleration data of the vehicle in real time in a vehicle running process, a real-time attitude angle theta 2 representing the real-time state of the vehicle is calculated based on the three-axis real-time acceleration data, an attitude deviation value delta theta is calculated based on the initial attitude angle theta 1 and the real-time attitude angle theta 2, at least one group of attitude deviation thresholds are preset, the attitude deviation values delta theta and the attitude deviation thresholds are compared, at least two vehicle state signals are obtained through a vehicle communication interface, and the current state of the vehicle is comprehensively judged based on a comparison result of the attitude deviation value delta theta and the attitude deviation thresholds and the vehicle state signals. Compared with the prior art, the application can realize reliable and accurate identification of the vehicle state with extremely low cost through the triaxial accelerometer, and obviously reduces the false triggering rate.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a three-axis accelerometer-based vehicle state identification method provided by an embodiment of the application;
FIG. 2 shows a schematic view of an attitude angle θ provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a three-axis accelerometer-based vehicle state recognition device according to an embodiment of the present application;
fig. 4 shows a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is noted that unless otherwise indicated, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this application belongs.
In addition, the terms "first" and "second" etc. are used to distinguish different objects and are not used to describe a particular order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The application creatively utilizes the low-cost G-sensor, and realizes the identification reliability of the comparable high-order sensor under the extremely low hardware cost through simple single-point static calibration, accurate space included angle calculation algorithm and intelligent enabling logic based on the whole vehicle signal fusion.
Referring to fig. 1, fig. 1 is a flowchart of a vehicle state recognition method based on a triaxial accelerometer according to an embodiment of the present application, including the following steps S101 to S104:
S101, in a calibration stage, placing a vehicle on an absolute horizontal plane, controlling a triaxial accelerometer to acquire initial acceleration data at the moment, and calculating and storing an initial attitude angle theta 1 representing a horizontal stationary state of the vehicle based on the initial acceleration data, wherein the initial attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in the initial state;
The triaxial accelerometer is subjected to single-point calibration in an absolute horizontal plane, and measured data of the triaxial accelerometer comprise an X-axis acceleration value, a Y-axis acceleration value and a Z-axis acceleration value. Conventional IMUs or complex systems require multi-point and multi-pose calibration. The application simplifies the process, and only needs to stop the vehicle on an absolute horizontal plane (such as a horizontal table of a 4S shop or a maintenance workshop), and execute a calibration command once after the system is electrified, the G-sensor reading (the components of gravity acceleration on three axes) at the moment can be defined as a horizontal reference, and an initial calibration angle is calculated, so that the process is greatly convenient for production and after-sale maintenance.
The calculation formula of the attitude angle theta is as follows:
Wherein, the For the X-axis real-time acceleration value,For the real-time acceleration value of the Y-axis,And the real-time acceleration value is the Z-axis. The formula has definite physical meaning and small calculated amount, and is very suitable for running on an embedded MCU with limited resources. By monitoring the change of the angle theta relative to the initial calibration angle, whether the vehicle is leaning forward, backward, rolling or turning can be accurately perceived.
As shown in fig. 2, the attitude angle θ characterizes the angle between the Z-axis of the vehicle and the gravitational acceleration vector, the change of which directly reflects the degree of pitch or roll of the vehicle.
In some embodiments, the method further comprises the step of verifying whether the value of θ 1 is within a predetermined range after calculating the initial attitude angle θ 1, and if so, re-executing the calibration phase.
S102, in a data acquisition stage, controlling the triaxial accelerometer to acquire triaxial real-time acceleration data of a vehicle in real time in the running process of the vehicle, and calculating a real-time attitude angle theta 2 representing the real-time state of the vehicle based on the triaxial real-time acceleration data, wherein the real-time attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in a motion state;
S103, calculating a posture deviation value delta theta based on an initial posture angle theta 1 and a real-time posture angle theta 2, wherein the posture deviation value delta theta is the absolute value of the difference between the real-time posture angle theta 2 and the initial posture angle theta 1, namely delta theta= |theta 2 – θ1 |, and is used for representing the deviation degree of the current posture of the vehicle relative to a horizontal reference;
S104, in a vehicle state recognition and decision stage, at least one group of gesture deviation thresholds are preset, the gesture deviation value delta theta is compared with the gesture deviation thresholds, at least two vehicle state signals are obtained through a vehicle communication interface, and the current state of the vehicle is comprehensively judged based on the comparison result of the gesture deviation value delta theta and the gesture deviation thresholds and the vehicle state signals.
Specifically, the vehicle communication interface is a CAN bus interface, and the CAN bus interface establishes bidirectional data communication with a vehicle controller of a vehicle and is used for acquiring a vehicle state signal in real time, wherein the vehicle state signal comprises a vehicle speed signal and a vehicle power supply mode signal. The application fuses the whole vehicle signals (such as the vehicle speed and the power supply mode) as enabling conditions, for example, the inclination/overturn judgment is carried out only when the vehicle is stationary (the vehicle speed=0), and the motion acceleration interference is effectively filtered.
In some embodiments, the gesture deviation threshold includes a first deviation threshold ΔA and a second deviation threshold ΔB, for example, the first deviation threshold ΔA may be set to 60 degrees and the second deviation threshold ΔB may be set to 120 degrees.
In the step S104, based on the comparison result of the attitude deviation value Δθ and the attitude deviation threshold and the vehicle state signal, the current state of the vehicle is comprehensively determined, which may be implemented as follows:
When the vehicle speed signal represents the vehicle speed to be 0, judging that the vehicle is in a normal state if delta theta is less than or equal to delta A, judging that the vehicle is in an inclined state if delta A is less than or equal to delta B, and judging that the vehicle is in a turning state if delta theta is more than delta B;
and suspending the tilt and rollover state recognition logic based on the attitude deviation value delta theta when the vehicle speed signal characterizes a vehicle speed greater than 0.
According to the application, a vehicle speed signal is introduced, and when the vehicle speed is zero, the inclination or overturning state identification based on the attitude angle theta is started, so that the influence of linear acceleration and centrifugal acceleration generated by the motion of the vehicle on G-sensor reading is eliminated. The vehicle power mode signal is introduced, and the rollover monitoring function is activated only in a specific power mode (such as OFF gear or ACC gear, vehicle standing/standby) to reduce the risk of false alarms during normal running of the vehicle.
In some embodiments, in the step S104, based on the comparison result of the posture deviation value Δθ and the posture deviation threshold and the vehicle state signal, the method may further include:
When the vehicle power mode signal characterizes that the power is in the OFF gear or the ACC gear, the first deviation threshold value Δa and the second deviation threshold value Δb are adjusted down by a preset angle to activate high-sensitivity anti-theft tilt/overturn monitoring.
In some embodiments, the method further comprises the steps of verifying the duration of the attitude deviation value delta theta after the vehicle is judged to be in the inclined or overturned state, outputting an inclined or overturned state signal if the duration of the delta theta exceeding the corresponding deviation threshold value is greater than or equal to a preset duration, and judging to be instant interference and not outputting the state signal if the duration is smaller than the preset duration.
The vehicle state identification method based on the triaxial accelerometer provided by the embodiment of the application has the following beneficial effects:
1. The cost is obviously optimized, namely a monovalent three-axis accelerometer (G-sensor) is adopted to replace a high Inertial Measurement Unit (IMU), so that the hardware cost is greatly reduced, the cost barrier of the traditional scheme is broken, and the economic vehicle and low-cost afterloading market demand are met.
2. The recognition is reliable, the false alarm rate is low, the optimal judgment scene (such as starting tilting/overturning recognition when the vehicle is only stationary) is intelligently screened by fusing the vehicle signals such as the vehicle speed, the power supply mode and the like, the acceleration interference generated by the vehicle motion is filtered from the source, the recognition reliability is obviously improved, and the false triggering risk is effectively reduced.
3. The algorithm is simple and efficient, the core attitude angle calculation logic has definite physical meaning and small operation amount, has low performance requirement on a micro processing unit (MCU), can be adapted to a low-calculation-force embedded chip, and is easy to quickly integrate and develop and realize production landing.
4. The calibration operation is convenient, namely, a single-point horizontal calibration scheme is adopted, a complex multi-gesture calibration process is not needed, the calibration link in the production assembly is greatly simplified, and the operation difficulty and the time cost of after-sales maintenance are reduced.
In the embodiment, a vehicle state identification method based on the triaxial accelerometer is provided, and correspondingly, the application further provides a vehicle state identification device based on the triaxial accelerometer. The vehicle state recognition device based on the triaxial accelerometer can implement the vehicle state recognition method based on the triaxial accelerometer, and the vehicle state recognition device based on the triaxial accelerometer can be realized in a mode of software, hardware or combination of software and hardware. For example, the tri-axis accelerometer based vehicle state identification apparatus may include integrated or separate functional modules or units to perform the corresponding steps in the methods described above. Referring to fig. 3, a three-axis accelerometer-based vehicle state recognition device 10 of the present application includes:
The calibration module 101 is configured to place the vehicle on an absolute horizontal plane, control the triaxial accelerometer to collect initial acceleration data at the moment, calculate and store an initial attitude angle θ 1 representing a horizontal stationary state of the vehicle based on the initial acceleration data, where the initial attitude angle is an arccosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in the initial state;
the data acquisition module 102 is configured to control the triaxial accelerometer to acquire triaxial real-time acceleration data of the vehicle in real time during running of the vehicle, and calculate a real-time attitude angle θ 2 representing a real-time state of the vehicle based on the triaxial real-time acceleration data, where the real-time attitude angle is an inverse cosine value of an included angle between a gravity acceleration vector and a Z axis of the vehicle in a motion state;
The deviation value calculating module 103 is configured to calculate a deviation value Δθ of the current posture of the vehicle with respect to the horizontal reference based on the initial posture angle θ 1 and the real-time posture angle θ 2, where the deviation value Δθ is an absolute value of a difference value between the real-time posture angle θ 2 and the initial posture angle θ 1, i.e., Δθ= |θ 2 – θ1 |;
The vehicle state recognition and decision module 104 is configured to preset at least one set of gesture deviation thresholds, compare the gesture deviation value Δθ with the gesture deviation thresholds, obtain at least two vehicle state signals through the vehicle communication interface, and comprehensively determine the current state of the vehicle based on the comparison result of the gesture deviation value Δθ and the gesture deviation thresholds and the vehicle state signals.
In one possible implementation, the calculation formula of the attitude angle θ is:
Wherein, the For the X-axis real-time acceleration value,For the real-time acceleration value of the Y-axis,And the real-time acceleration value is the Z-axis.
In a possible implementation, the calibration module 101 is further configured to:
After the initial attitude angle theta 1 is calculated, verifying whether the value of theta 1 is within a preset range, and if the value is beyond, re-executing the calibration stage.
In a possible implementation manner, the vehicle communication interface is a CAN bus interface, and the CAN bus interface establishes bidirectional data communication with a vehicle controller of a vehicle, so as to obtain a vehicle state signal in real time, where the vehicle state signal includes a vehicle speed signal and a vehicle power mode signal.
In a possible implementation manner, the gesture deviation threshold includes a first deviation threshold Δa and a second deviation threshold Δb;
the vehicle state recognition and decision module 104 is specifically configured to:
When the vehicle speed signal represents the vehicle speed to be 0, judging that the vehicle is in a normal state if delta theta is less than or equal to delta A, judging that the vehicle is in an inclined state if delta A is less than or equal to delta B, and judging that the vehicle is in a turning state if delta theta is more than delta B;
and suspending the tilt and rollover state recognition logic based on the attitude deviation value delta theta when the vehicle speed signal characterizes a vehicle speed greater than 0.
In a possible implementation manner, the vehicle state identification and decision module 104 is further specifically configured to:
When the vehicle power mode signal characterizes that the power is in the OFF gear or the ACC gear, the first deviation threshold value Δa and the second deviation threshold value Δb are adjusted down by a preset angle to activate high-sensitivity anti-theft tilt/overturn monitoring.
In a possible implementation manner, the vehicle state identification and decision module 104 is further configured to:
Verifying the duration of the attitude deviation value Δθ after determining that the vehicle is in a tilted or flipped state;
If the duration of delta theta exceeding the corresponding deviation threshold value is greater than or equal to the preset duration, outputting a tilting or overturning state signal, and if the duration is smaller than the preset duration, judging that the state signal is not output, wherein the state signal is not output.
The vehicle state recognition device based on the triaxial accelerometer and the vehicle state recognition method based on the triaxial accelerometer provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the vehicle state recognition device based on the triaxial accelerometer based on the same inventive concept.
The embodiment of the application also provides electronic equipment corresponding to the method provided by the embodiment, wherein the electronic equipment can be a vehicle-mounted terminal or terminal equipment such as a mobile phone, a notebook computer, a tablet computer, a desktop computer and the like so as to execute the vehicle state identification method based on the triaxial accelerometer.
Referring to fig. 4, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 4, the electronic device 20 includes a processor 200, a memory 201, a bus 202 and a communication interface 203, where the processor 200, the communication interface 203 and the memory 201 are connected through the bus 202, and a computer program that can be run on the processor 200 is stored in the memory 201, and when the processor 200 runs the computer program, the vehicle state identification method based on the triaxial accelerometer provided by any one of the foregoing embodiments of the present application is executed.
The memory 201 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 203 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 202 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the vehicle state identification method based on the tri-axial accelerometer disclosed in any of the foregoing embodiments of the present application may be applied to the processor 200 or implemented by the processor 200.
The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 200 or by instructions in the form of software. The processor 200 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc., or may be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201, and in combination with its hardware, performs the steps of the above method.
The electronic equipment provided by the embodiment of the application and the vehicle state identification method based on the triaxial accelerometer provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the electronic equipment based on the triaxial accelerometer.
The embodiment of the application also provides a computer readable storage medium corresponding to the three-axis accelerometer-based vehicle state identification method provided in the previous embodiment, and a computer program (i.e. a program product) is stored on the computer readable storage medium, wherein the computer program, when being executed by a processor, can execute the three-axis accelerometer-based vehicle state identification method provided in any of the previous embodiments.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided by the above embodiment of the present application has the same beneficial effects as the method adopted, operated or implemented by the application program stored in the computer readable storage medium, because of the same inventive concept as the method for identifying the vehicle state based on the triaxial accelerometer provided by the embodiment of the present application.
It should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit the technical solution of the present application, and although the detailed description of the present application is given with reference to the above embodiments, it should be understood by those skilled in the art that the technical solution described in the above embodiments may be modified or some or all technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application, and all the modifications or substitutions are included in the scope of the claims and the specification of the present application.

Claims (10)

1.一种基于三轴加速度计的车态识别方法,其特征在于,包括:1. A vehicle status recognition method based on a triaxial accelerometer, characterized in that it includes: S1、校准阶段,将车辆放置于绝对水平面,控制三轴加速度计采集此时的初始加速度数据,基于所述初始加速度数据计算并存储表征车辆水平静止状态的初始姿态角θ1,所述初始姿态角为初始状态下重力加速度矢量与车辆 Z 轴夹角的反余弦值;S1. During the calibration phase, the vehicle is placed on an absolutely horizontal plane, and the triaxial accelerometer is controlled to collect the initial acceleration data at this time. Based on the initial acceleration data, the initial attitude angle θ1 , which represents the horizontal stationary state of the vehicle, is calculated and stored. The initial attitude angle is the inverse cosine value of the angle between the gravitational acceleration vector and the vehicle's Z-axis in the initial state. S2、数据采集阶段,在车辆运行过程中,控制所述三轴加速度计实时采集车辆的三轴实时加速度数据,基于所述三轴实时加速度数据计算表征车辆实时状态的实时姿态角θ2,所述实时姿态角为运动状态下重力加速度矢量与车辆 Z 轴夹角的反余弦值;S2. During the data acquisition phase, the three-axis accelerometer is controlled to collect real-time three-axis acceleration data of the vehicle during vehicle operation. Based on the real-time three-axis acceleration data, the real-time attitude angle θ2 , which represents the real-time state of the vehicle, is calculated. The real-time attitude angle is the inverse cosine value of the angle between the gravitational acceleration vector and the vehicle's Z-axis under motion. S3、偏差值计算阶段,基于初始姿态角θ1和实时姿态角θ2计算姿态偏差值 Δθ,所述姿态偏差值 Δθ 为实时姿态角θ2与初始姿态角θ1的差值绝对值,即 Δθ=|θ2 – θ1|,用于表征车辆当前姿态相对于水平基准的偏离程度;S3. Deviation value calculation stage: The attitude deviation value Δθ is calculated based on the initial attitude angle θ1 and the real-time attitude angle θ2. The attitude deviation value Δθ is the absolute value of the difference between the real-time attitude angle θ2 and the initial attitude angle θ1 , that is, Δθ=| θ2θ1 |, which is used to characterize the degree of deviation of the vehicle's current attitude from the horizontal reference. S4、车态识别与决策阶段,预设至少一组姿态偏差阈值,将姿态偏差值 Δθ与所述姿态偏差阈值进行比对,同时通过车辆通信接口获取至少两种整车状态信号,基于姿态偏差值Δθ与姿态偏差阈值的比对结果和所述整车状态信号,综合判断车辆当前状态。S4. In the vehicle status recognition and decision-making stage, at least one set of attitude deviation thresholds is preset. The attitude deviation value Δθ is compared with the attitude deviation thresholds. At the same time, at least two vehicle status signals are obtained through the vehicle communication interface. Based on the comparison result of the attitude deviation value Δθ and the attitude deviation thresholds and the vehicle status signals, the current vehicle status is comprehensively determined. 2.根据权利要求1所述的方法,其特征在于,姿态角 θ 的计算公式为:2. The method according to claim 1, wherein the formula for calculating the attitude angle θ is: 其中, 为 X 轴实时加速度值,为 Y 轴实时加速度值,为 Z 轴实时加速度值。 in, This represents the real-time acceleration value along the X-axis. This represents the real-time acceleration value along the Y-axis. This represents the real-time acceleration value along the Z-axis. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 计算初始姿态角θ1后,验证θ1的取值是否在预设范围内,若超出则重新执行校准阶段。After calculating the initial attitude angle θ1 , verify whether the value of θ1 is within the preset range. If it exceeds the range, re-execute the calibration phase. 4.根据权利要求1所述的方法,其特征在于,所述车辆通信接口为 CAN 总线接口,所述CAN 总线接口与车辆的整车控制器建立双向数据通信,用于实时获取整车状态信号,所述整车状态信号包括车速信号和车辆电源模式信号。4. The method according to claim 1, wherein the vehicle communication interface is a CAN bus interface, the CAN bus interface establishes bidirectional data communication with the vehicle controller for real-time acquisition of vehicle status signals, the vehicle status signals including vehicle speed signals and vehicle power mode signals. 5.根据权利要求1所述的方法,其特征在于,所述姿态偏差阈值包括第一偏差阈值 ΔA和第二偏差阈值 ΔB;5. The method according to claim 1, wherein the attitude deviation threshold includes a first deviation threshold ΔA and a second deviation threshold ΔB; 所述基于姿态偏差值 Δθ与姿态偏差阈值的比对结果和所述整车状态信号,综合判断车辆当前状态,包括:The determination of the vehicle's current state based on the comparison between the attitude deviation value Δθ and the attitude deviation threshold, and the vehicle state signal, includes: 当车速信号表征车速为 0 时,若 Δθ≤ΔA,判定车辆处于正常状态;若 ΔA<Δθ≤ΔB,判定车辆处于倾斜状态;若 Δθ>ΔB,判定车辆处于翻转状态;When the vehicle speed signal indicates a vehicle speed of 0, if Δθ≤ΔA, the vehicle is determined to be in a normal state; if ΔA<Δθ≤ΔB, the vehicle is determined to be in a tilted state; if Δθ>ΔB, the vehicle is determined to be in a rollover state. 当车速信号表征车速大于 0 时,暂停基于姿态偏差值 Δθ的倾斜和翻转状态识别逻辑。When the vehicle speed signal indicates a vehicle speed greater than 0, the tilt and roll state recognition logic based on the attitude deviation value Δθ is paused. 6.根据权利要求5所述的方法,其特征在于,所述基于姿态偏差值 Δθ与姿态偏差阈值的比对结果和所述整车状态信号,综合判断车辆当前状态,还包括:6. The method according to claim 5, characterized in that, the step of comprehensively judging the current state of the vehicle based on the comparison result of the attitude deviation value Δθ and the attitude deviation threshold and the vehicle state signal further includes: 当车辆电源模式信号表征电源处于 OFF 档或 ACC 档时,将第一偏差阈值 ΔA和第二偏差阈值ΔB下调预设角度,以激活高灵敏度防盗倾斜/翻转监测。When the vehicle power mode signal indicates that the power is in the OFF or ACC position, the first deviation threshold ΔA and the second deviation threshold ΔB are lowered by a preset angle to activate the high-sensitivity anti-theft tilt/rollover monitoring. 7.根据权利要求5所述的方法,其特征在于,所述方法还包括:7. The method according to claim 5, characterized in that the method further comprises: 在判定车辆处于倾斜或翻转状态后,验证姿态偏差值 Δθ 的持续时间;After determining that the vehicle is tilted or overturned, verify the duration of the attitude deviation value Δθ; 若 Δθ 超出对应偏差阈值的持续时间大于等于预设时长,输出倾斜或翻转状态信号;若持续时间小于预设时长,则判定为瞬时干扰,不输出状态信号。If the duration of Δθ exceeding the corresponding deviation threshold is greater than or equal to the preset duration, a tilt or flip status signal is output; if the duration is less than the preset duration, it is determined to be a momentary disturbance and no status signal is output. 8.一种基于三轴加速度计的车态识别装置,其特征在于,包括:8. A vehicle status recognition device based on a triaxial accelerometer, characterized in that it comprises: 校准模块,用于将车辆放置于绝对水平面,控制三轴加速度计采集此时的初始加速度数据,基于所述初始加速度数据计算并存储表征车辆水平静止状态的初始姿态角θ1,所述初始姿态角为初始状态下重力加速度矢量与车辆 Z 轴夹角的反余弦值;The calibration module is used to place the vehicle on an absolutely horizontal plane, control the triaxial accelerometer to collect the initial acceleration data at this time, calculate and store the initial attitude angle θ1 representing the horizontal stationary state of the vehicle based on the initial acceleration data, and the initial attitude angle is the inverse cosine value of the angle between the gravitational acceleration vector and the vehicle Z-axis in the initial state. 数据采集模块,用于在车辆运行过程中,控制所述三轴加速度计实时采集车辆的三轴实时加速度数据,基于所述三轴实时加速度数据计算表征车辆实时状态的实时姿态角θ2,所述实时姿态角为运动状态下重力加速度矢量与车辆 Z 轴夹角的反余弦值;The data acquisition module is used to control the triaxial accelerometer to collect real-time triaxial acceleration data of the vehicle during vehicle operation, and to calculate the real-time attitude angle θ2 , which characterizes the real-time state of the vehicle, based on the real-time triaxial acceleration data. The real-time attitude angle is the inverse cosine value of the angle between the gravitational acceleration vector and the vehicle's Z-axis under motion. 偏差值计算模块,用于基于初始姿态角θ1和实时姿态角θ2计算姿态偏差值 Δθ,所述姿态偏差值 Δθ 为实时姿态角θ2与初始姿态角θ1的差值绝对值,即Δθ=|θ2 – θ1|,用于表征车辆当前姿态相对于水平基准的偏离程度;The deviation value calculation module is used to calculate the attitude deviation value Δθ based on the initial attitude angle θ1 and the real-time attitude angle θ2. The attitude deviation value Δθ is the absolute value of the difference between the real-time attitude angle θ2 and the initial attitude angle θ1 , that is, Δθ=| θ2θ1 |, which is used to characterize the degree of deviation of the vehicle's current attitude from the horizontal reference. 车态识别与决策模块,用于预设至少一组姿态偏差阈值,将姿态偏差值 Δθ与所述姿态偏差阈值进行比对,同时通过车辆通信接口获取至少两种整车状态信号,基于姿态偏差值 Δθ与姿态偏差阈值的比对结果和所述整车状态信号,综合判断车辆当前状态。The vehicle status recognition and decision-making module is used to preset at least one set of attitude deviation thresholds, compare the attitude deviation value Δθ with the attitude deviation thresholds, and simultaneously acquire at least two vehicle status signals through the vehicle communication interface. Based on the comparison result of the attitude deviation value Δθ and the attitude deviation thresholds and the vehicle status signals, the module comprehensively determines the current status of the vehicle. 9.一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器运行所述计算机程序时以实现如权利要求1至7任一项所述的方法。9. An electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method as claimed in any one of claims 1 to 7. 10.一种计算机可读存储介质,其特征在于,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现如权利要求1至7任一项所述的方法。10. A computer-readable storage medium, characterized in that it stores computer-readable instructions thereon, the computer-readable instructions being executable by a processor to implement the method as claimed in any one of claims 1 to 7.
CN202511835307.8A 2025-12-08 2025-12-08 Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer Pending CN121375803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202511835307.8A CN121375803A (en) 2025-12-08 2025-12-08 Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202511835307.8A CN121375803A (en) 2025-12-08 2025-12-08 Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer

Publications (1)

Publication Number Publication Date
CN121375803A true CN121375803A (en) 2026-01-23

Family

ID=98471877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202511835307.8A Pending CN121375803A (en) 2025-12-08 2025-12-08 Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer

Country Status (1)

Country Link
CN (1) CN121375803A (en)

Similar Documents

Publication Publication Date Title
CN110843766B (en) Vehicle attitude detection method, device, vehicle terminal, vehicle and medium
US10482745B2 (en) Head lowering and turning reminding device, control method thereof and helmet
CN108515972B (en) Driving behavior sensing method and system based on information fusion
CN107031552A (en) A kind of car crass detection method and system
CN108520571B (en) Algorithm and device for judging vehicle driving state by accelerometer
CN106382946B (en) Parameter calibrating method and device
CN105270411A (en) Analysis method and device of driving behavior
JP2003531364A (en) Apparatus for checking the validity of the fall judgment
CN102767208B (en) Side rollover predicting method for wheel loaders
CN110345940B (en) Method for standardizing shared bicycle parking posture and direction and bicycle lock thereof
CN113635907B (en) Driving behavior detection method and device, electronic equipment and storage medium thereof
CN103544485B (en) Driver recognition method and device based on intelligent terminal
US11441924B2 (en) Method and device for detecting the standstill of a vehicle
JP6502782B2 (en) Bank angle detection device and bank angle detection method
CN111071258A (en) Driving behavior detection method and device, electronic equipment and readable storage medium
CN121375803A (en) Vehicle status recognition method, device, equipment and medium based on triaxial accelerometer
CN113362507B (en) Automatic locking method, device, computer equipment and storage medium
JP2010054374A (en) Mobile sensor
CN112165682A (en) Method, system and equipment for reporting position of vehicle-mounted equipment
CN108932836A (en) A kind of distant collision alarm method and system
CN121004996A (en) A method and apparatus for detecting vehicle fall.
CN118770232A (en) A method, system, terminal and storage medium for calculating the slope of a vehicle
CN110763482B (en) Vehicle-mounted electronic equipment state detection method and device
CN114264486B (en) Vehicle three-emergency detection method based on low-cost sensor
US11548389B2 (en) Control system and switch method for screen of vehicle

Legal Events

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