Vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system and method

Through the vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system, using the CH32V307 microcontroller and ZDSD64GLGEAG chip, it solves the problems of large size, high cost and difficulty in data synchronization of existing equipment, realizes multi-channel real-time high-speed data acquisition, and improves vehicle safety. Structural life prediction and driver comfort monitoring.

CN118764335AActive Publication Date: 2024-10-11BEIJING INST OF TECH

Patent Information

Application Number
CN202410902801.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-11
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing vehicle vibration acceleration acquisition equipment is bulky and costly, and the measurement data is difficult to synchronize. It is impossible to obtain the stress distribution of the entire vehicle and a large amount of data redundant information cannot be utilized, which affects the life prediction of the vehicle body structure and driver comfort.

Method used

A vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system is designed, using CH32V307 microcontroller and ZDSD64GLGEAG chip. Through the combination of acquisition unit, data processing unit and storage unit, multi-channel real-time high-speed vibration data acquisition and storage is realized, reducing equipment cost. Volume and cost.

Benefits of technology

It realizes multi-channel real-time high-speed vibration data collection, reduces the system volume and cost, can be directly installed on the vehicle for long-term data collection, and improves the vehicle body structure life prediction and driver comfort monitoring capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764335A_ABST
    Figure CN118764335A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system and method, and relates to the field of vehicle data acquisition and storage, and the system comprises an acquisition unit, a data processing unit and a storage unit. The acquisition unit acquires vibration voltage signals at different positions of the vehicle body; the data processing unit takes a CH32V307 microcontroller as a core, converts a vibration voltage signal into a vibration acceleration value, communicates with a whole vehicle bus by adopting a double-path CAN channel form, receives bus data sent by each node of the whole vehicle, determines whole vehicle driving log data according to the bus data, and stores the whole vehicle driving log data into a memory of the CH32V307 microcontroller; and the storage unit is used for writing a vibration acceleration value in the memory of the CH32V307 microcontroller and the driving log data of the whole vehicle into the ZDSD64GLGEAG chip. According to the invention, the size and cost of the vehicle body data acquisition and storage equipment are reduced, and multi-channel real-time high-speed vibration data acquisition can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle data acquisition and storage, and in particular to a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system and method under off-road conditions. Background Art

[0002] Long-term operation of vehicles in an environment with large vibration and impact will cause certain damage to the vehicle body structure. Long-term exposure of mechanical structural components to alternating loads will affect the life of the machinery. Different structures will cause vibration fatigue under different conditions. In severe cases, the structure may even break and the product may fail. It also reduces the driver's comfort and the noise, vibration, and harshness (NVH) level of the vehicle. In order to prevent the vehicle from disintegrating during landing and causing huge economic losses, it is necessary to accurately record the magnitude and duration of the vehicle's vibration and impact acceleration to predict the life of the vehicle body structure.

[0003] At present, some researchers install multi-axis vibration acceleration sensors at different locations in the vehicle body, and combine simulation to analyze the impact and vibration data of the vehicle during airdrop or travel. Large equipment needs to obtain the vibration and impact acceleration values ​​of different parts, so multiple single-channel acceleration recorders are needed to be used simultaneously, but such equipment is bulky, costly, cumbersome to operate, and the measurement data is difficult to synchronize, resulting in the inability to obtain the stress distribution of the entire vehicle and the inability to use a large amount of redundant data information. Summary of the invention

[0004] The purpose of this application is to provide a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system and method, which can reduce the volume and cost of vehicle body vibration acceleration and bus data acquisition equipment, and realize multi-channel real-time and high-speed vibration data acquisition.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system, comprising: an acquisition unit, a data processing unit and a storage unit; the data processing unit is connected to the acquisition unit and the storage unit respectively;

[0007] The acquisition unit is used to collect vibration voltage signals at different positions of the vehicle body;

[0008] The data processing unit is based on a CH32V307 microcontroller, converts the vibration voltage signal into a vibration acceleration value, communicates with the vehicle bus in a dual-channel CAN channel form, receives bus data sent by each node of the vehicle, determines the vehicle driving log data according to the bus data, and stores the vibration acceleration value and the vehicle driving log data in the memory of the CH32V307 microcontroller;

[0009] The storage unit is used to write the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller into the ZDSD64GLGEAG chip.

[0010] Optionally, the acquisition unit includes a constant current power supply circuit, a DC blocking capacitor, an operational amplifier conditioning circuit and a plurality of vibration sensors; the plurality of vibration sensors are installed at different positions of the vehicle body; the constant current power supply circuit and the DC blocking capacitor are connected to each vibration sensor; the operational amplifier conditioning circuit is connected to the DC blocking capacitor;

[0011] The constant current power supply circuit is used to provide a constant current to each vibration sensor;

[0012] The DC blocking capacitor is used to couple the AC signal and also acts as a high-pass filter to filter out low-frequency noise.

[0013] The operational amplifier conditioning circuit is used to adjust the voltage range of the voltage signal to obtain vibration voltage signals at different positions of the vehicle body.

[0014] Optionally, the operational amplifier conditioning circuit uses two OP07C chips to perform two-stage operational amplifier conditioning on the voltage signal.

[0015] Optionally, the acquisition unit further includes a posture sensor; the posture sensor is installed at the center of the vehicle body, and the posture sensor is used to measure the posture data of the entire vehicle; the data processing unit is also used to store the posture data of the entire vehicle.

[0016] Optionally, the data processing unit is a CH32V307 microcontroller; the CH32V307 microcontroller is connected to the acquisition unit;

[0017] The CH32V307 microcontroller is used to convert the vibration voltage signal into a vibration voltage value, convert the vibration voltage value into a vibration acceleration value according to a preset vibration sensor characteristic curve, communicate with the vehicle bus in the form of a dual-channel CAN channel, receive bus data sent by each node of the vehicle, determine the vehicle driving log data based on the bus data, and store the vibration acceleration value and the vehicle driving log data.

[0018] Optionally, the CH32V307 microcontroller samples and stores the vibration acceleration values ​​in a dual-queue manner, and samples and stores the bus data in a single-queue manner.

[0019] Optionally, the CH32V307 microcontroller communicates with the vehicle bus via a CA-IS3052G chip.

[0020] Optionally, the CH32V307 microcontroller is also used to determine the maximum vibration acceleration, vibration duration, and vibration energy according to the vibration acceleration value in a vibration impact task; and determine the maximum vehicle speed, mileage, and recording date according to the bus data in a driving task.

[0021] Optionally, the storage unit writes the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller into the ZDSD64GLGEAG chip in TXT file format according to the FAT file format and the SDIO communication protocol.

[0022] In a second aspect, the present application provides a method for collecting and storing vehicle-mounted real-time vibration acceleration and bus data, comprising:

[0023] Determine a current task; the current task is a vibration impact task or a driving task;

[0024] If the current task is a vibration impact task, the vibration voltage signals at different positions of the vehicle body are collected, the vibration voltage signals are converted into vibration acceleration values, and the vibration acceleration values ​​are stored in the memory of the CH32V307 microcontroller; the vibration acceleration values ​​in the memory of the CH32V307 microcontroller are written into the ZDSD64GLGEAG chip;

[0025] If the current task is a driving task, a dual-channel CAN channel is used to communicate with the vehicle bus, bus data sent by each node of the vehicle is received, vehicle driving log data is determined based on the bus data, and the vehicle driving log data is stored in the memory of the CH32V307 microcontroller; the vehicle driving log data in the memory of the CH32V307 microcontroller is written into the ZDSD64GLGEAG chip.

[0026] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0027] The present application provides a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system and method. The acquisition unit can simultaneously acquire vibration voltage signals at multiple positions of the vehicle body, and can realize multi-channel real-time and high-speed vibration data acquisition. The vibration acceleration value and bus data are processed and stored through the CH32V307 microcontroller and the ZDSD64GLGEAG chip, which reduces the size and cost of the entire system. The entire system can be directly installed on the vehicle without the need for personnel to accompany it, and long-term data acquisition work can be carried out. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 The overall structure diagram of the vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system provided in the embodiment of the present application;

[0030] Figure 2 A schematic diagram of a constant current power supply circuit provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of an operational amplifier conditioning circuit provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of an operational amplifier power supply circuit provided in an embodiment of the present application;

[0033] Figure 5 A flow chart of a method for collecting and storing vehicle-mounted real-time vibration acceleration and bus data provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of the process of collecting and storing vibration data provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of the process of bus data acquisition and storage provided in an embodiment of the present application. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0037] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0038] like Figure 1 As shown, the vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system provided by the present application comprises: an acquisition unit 1, a data processing unit 2 and a storage unit 3. The data processing unit 2 is connected to the acquisition unit 1 and the storage unit 3 respectively.

[0039] (i) The acquisition unit 1 is used to acquire vibration voltage signals at different positions of the vehicle body.

[0040] In an exemplary embodiment, the acquisition unit 1 includes a constant current power supply circuit 11 , a DC blocking capacitor 13 , an operational amplifier conditioning circuit 14 and a plurality of vibration sensors 12 .

[0041] A plurality of vibration sensors 12 are installed at different positions of the vehicle body, including weak positions of the vehicle body and positions with large vibration impact. During measurement, the vibration sensor 12 is fixed to the vehicle body, and the base of the vibration sensor 12 generates the same vibration as the vehicle body and outputs a current signal. The constant current power supply circuit 11 and the DC blocking capacitor 13 are both connected to each vibration sensor 12. The operational amplifier conditioning circuit 14 is connected to the DC blocking capacitor 13.

[0042] The constant current power supply circuit 11 is used to provide constant current for each vibration sensor 12. The vibration sensor 12 needs a constant current source to work properly. To meet the 4.5mA constant current requirement of the vibration sensor 12, the input voltage is set to 2V, the sampling resistor is 400Ω, and the feedback resistor is 20kΩ, which is much larger than the sampling resistor, so that the constant current power supply circuit 11 keeps supplying power to the vibration sensor 12.

[0043] like Figure 2 As shown, the constant current power supply circuit 11 includes a single power supply operational amplifier circuit and a plurality of resistors. The voltage V0 at the pin 6 of the first operational amplifier circuit is 2VI = VCC + V11, VCC = V0-V11, where V11 = VL, that is, VCC = V0-VL, which is the voltage across RS. The current I2 at the pin 3 of the first operational amplifier circuit is 0, and the current IL flowing through the vibration sensor 12 is IL = I0 = VL / RS. Among them, VI is the input voltage of the first operational amplifier circuit, VCC is the power supply voltage, and V11 is the voltage at the pin 6 of the first operational amplifier circuit.

[0044] The DC blocking capacitor 13 is used to couple the AC signals output by each vibration sensor 12, output a voltage signal, and act as a high-pass filter to filter out low-frequency noise to ensure signal purity. That is, the DC blocking capacitor 13 couples the mA current signal output by the vibration sensor 12 into a voltage signal.

[0045] The operational amplifier conditioning circuit 14 is used to adjust the voltage range of the voltage signal to obtain vibration voltage signals at different positions of the vehicle body. Specifically, the operational amplifier conditioning circuit 14 scales down the voltage signal to a sampling voltage range allowed by the data processing unit 2 .

[0046] In this embodiment, the operational amplifier conditioning circuit 14 uses two OP07C chips to perform two-stage operational amplifier conditioning on the voltage signal. The first-stage operational amplifier chip is powered by a 12V power supply to meet the IEPE bias voltage requirement of 8V and is used to adjust the accuracy of the vibration sensor 12 signal; the second-stage operational amplifier chip reduces the 5V to 11V voltage output by the first-stage operational amplifier chip by 4 times to within 1.25V to 2.75V to meet the sampling port voltage requirement of the analog-to-digital conversion module 22.

[0047] After the voltage signal of the vibration sensor 12 is obtained, it needs to be processed by the operational amplifier conditioning circuit 14, such as Figure 3 As shown, the operational amplifier conditioning circuit 14 includes a voltage follower circuit and a proportional operational amplifier circuit. Among them, the voltage follower circuit plays a role of buffer isolation, which to a certain extent avoids the signal loss caused by the high output impedance and the low input impedance of the next stage. The proportional operational amplifier circuit can perform proportional operations on the signal and convert the voltage signal of the vibration sensor 12 into a voltage range of 0V to 3.3V supported by the microcontroller.

[0048] The vibration acceleration signals are mainly concentrated below 100 Hz, so the circuit design needs to avoid the influence of high-frequency signals on the acquisition as much as possible.

[0049] The operational amplifier conditioning circuit 14 requires power supply. The power supply circuit of this application is selected to meet the electromagnetic compatibility circuit, such as Figure 4 As shown in the figure, the core device of the circuit is the power module URB2412YMD-10WR3. A 4mH common-mode choke and a 4.7uF / 50V resistor are added to the front end of the power module to filter out interference above 100Hz in the power circuit. When the common-mode current flows through, a magnetic field in the same direction will be generated in the coil, increasing the inductive reactance of the coil, showing high impedance, thereby producing a strong damping effect and attenuating the common-mode interference current to ensure the stability of the circuit power supply in the acquisition unit 1 and improve the electromagnetic compatibility of the system.

[0050] In the present application, the acquisition unit 1 acquires vibration acceleration signals of three axes at the same position, converts the voltage into a voltage range acceptable to the microcontroller through a two-stage operational amplifier circuit, and transmits it to the analog-to-digital conversion module 22 of the data processing unit 2.

[0051] Furthermore, the acquisition unit 1 further comprises a posture sensor 15. The posture sensor 15 is installed at the center of the vehicle body, and the posture sensor 15 is used to measure the posture data of the whole vehicle. The data processing unit 2 is also used to store the posture data of the whole vehicle.

[0052] (ii) The data processing unit 2 is based on the CH32V307 microcontroller 21, converts the vibration voltage signal into a vibration acceleration value, communicates with the vehicle bus 5 in the form of a dual-channel CAN channel, receives the bus data sent by each node of the vehicle, determines the vehicle driving log data according to the bus data, and stores the vibration acceleration value and the vehicle driving log data in the memory of the CH32V307 microcontroller 21.

[0053] In an exemplary embodiment, the data processing unit 2 is a CH32V307 microcontroller 21. The CH32V307 microcontroller 21 has an analog-to-digital conversion module 22. The CH32V307 microcontroller 21 is connected to the acquisition unit 1.

[0054] The CH32V307 microcontroller 21 is used to convert the vibration voltage signal into a vibration voltage value, convert the vibration voltage value into a vibration acceleration value according to a preset vibration sensor characteristic curve, communicate with the vehicle bus 5 in the form of a dual CAN channel (a first CAN channel 6 and a second CAN channel 7), receive bus data sent by each node of the vehicle, determine the vehicle driving log data according to the bus data, and store the vibration acceleration value and the vehicle driving log data. Specifically, the vibration acceleration value and the vehicle driving log data are stored in the memory data area of ​​the CH32V307 microcontroller 21.

[0055] The CH32V307 microcontroller 21 reads the vibration voltage value from the analog-to-digital conversion module 22 and performs digital filtering processing; then, according to the vibration sensor characteristic curve, the vibration voltage value is converted into vibration acceleration data and stored in the memory of the CH32V307 microcontroller 21.

[0056] In this embodiment, the CH32V307 microcontroller 21 communicates with the vehicle bus 5 via the CA-IS3052G chip.

[0057] Furthermore, the CH32V307 microcontroller 21 is also used to determine the maximum value of vibration acceleration, vibration duration, and vibration energy according to the vibration acceleration value in a vibration impact task, and to determine the maximum vehicle speed, mileage, and recording date according to the bus data in a driving task.

[0058] As a preferred implementation manner, the CH32V307 microcontroller 21 uses a dual-queue method to sample and store the vibration acceleration values, and uses a single-queue method to sample and store the bus data.

[0059] Since the vibration acceleration value is collected at a high frequency, a dual queue method is used for sampling and storage. However, the vehicle data is collected at a low frequency and will not be affected by the long writing operation time, so a single queue method is used for sampling and storage.

[0060] This application uses a dual queue method to implement the data timing sampling function. The vibration acceleration value reads the conversion result once every 1ms through direct memory access (DMA) and triggers the next analog-to-digital conversion. The sampling frequency is 1KHz, and about 44Byte of data is generated per millisecond. If the vibration duration is within 60s, the entire vibration process generates 2.52MB of data. In order to avoid data loss and the influence of long file writing operation time on data timing sampling, two 44*90 buffers are opened to alternately store and process data. A characteristic curve is set for each sampling channel, and the vibration acceleration value corresponding to the AD count value can be obtained by looking up the curve table.

[0061] Among them, each voltage signal is an unsigned character variable, each microcontroller collects 12 signals, the timestamp occupies 3 characters, the data volume generated per millisecond is 15 characters, and the default vibration impact duration is less than 60s. The posture sensor 15 generates 2 frames of data each time, and the microcontroller records the data frame content each time. The data frame content occupies a total of 8 characters, and the acquisition end mark occupies 1 character per millisecond. Therefore, the data volume generated by the vibration signal and the posture sensor 15 per millisecond is 22 characters, that is, 44Byte. The total amount of data generated during the vibration period is: 22*1000*60=1320000 characters=2640000Byte=2.52MB.

[0062] Dual queues refer to using two arrays for caching during acquisition. Since a single data write operation takes a long time and affects sampling, two queues A and B are used for storage. When queue A is writing, queue B is collecting. Queues A and B collect and store vibration acceleration values, both in 44*90 size, where 44*90 represents 90ms of vibration acceleration value.

[0063] The vibration acceleration value collection starts. In the timer interrupt, the vibration acceleration value is first stored in queue A. After 90ms, queue A is full and the write operation is performed. During the write operation of queue A, the collected vibration acceleration value will be stored in queue B. After the write operation of queue A is completed, the data in queue A is cleared and queue B is waiting for the data to be full. When queue B is full of data, the write operation is performed. At this time, the collected vibration acceleration value is stored in queue A, and they are alternated in sequence.

[0064] The vehicle CAN communication circuit adopts a dual-channel form for data backup, which is divided into a first bus and a second bus. A CH32V307 microcontroller 21 has two CAN channels: a first CAN channel 6 and a second CAN channel 7, which communicate with the vehicle bus 5 through CA-IS3052G and collect data at the same time. The two CAN channels back up each other, and the bus status is determined according to the heartbeat frame. If the first bus fails, it switches to the second bus. One of the CAN channels is also connected to the attitude sensor 15, which can collect the attitude data of the whole vehicle in a vibration environment.

[0065] The storage of bus data adopts the method of interrupt collection and task screening. The data sent by all nodes on the vehicle bus 5 is collected and stored in the buffer array through CAN interrupt. When the task is executed, the data in the buffer is screened, and the bus data that is not repeated within 500ms is selected and written to the SD card at one time.

[0066] (iii) The storage unit 3 is used to write the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller 21 into the ZDSD64GLGEAG chip.

[0067] Specifically, the storage unit 3 stores the vibration acceleration value in a non-volatile storage chip, that is, the storage unit 3 periodically reads the data in the memory, and uses the built-in Fats file system to store the data in a txt document format in an external SDNANDFLASH memory.

[0068] In an exemplary embodiment, the storage unit 3 writes the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller 21 into the ZDSD64GLGEAG chip in TXT file format according to the FAT file format and the SDIO communication protocol.

[0069] The storage unit 3 uses the ZDSD64GLGEAG chip as the core, and writes the vibration acceleration value in the memory of the CH32V307 microcontroller 21 into the SD NANDFLASH chip in the TXT file format according to the FAT file format and the SDIO communication protocol. The external host computer 4 can read the previously stored vibration acceleration data file from the SD NANDFLASH chip through the USB bus according to the SDIO communication protocol.

[0070] The CH32V307 microcontroller 21 performs file opening, file continuation, file closing, file deletion and other operations on the SD card by calling the FAT file operation function.

[0071] The files include the total attribute file and the data file. The total attribute file includes the SD card capacity, number of records, current file number, recording duration, and maximum vibration value, i.e., vibration energy.

[0072] The file naming format is "(time of day) AA-BB-CC". "AA" indicates the vibration impact acceleration value or bus data; "BB" indicates the number of records; "CC" indicates the number of data files under the "BB" record.

[0073] The present application deploys software in the CH32V307 microcontroller 21, and the software design adopts a multi-task multi-threading mode. It is divided into 5 tasks. Among them, the data processing unit 2 involves the first task, the second task and the fourth task; the storage unit 3 involves the third task and the fifth task. The first task is responsible for processing and judging, and reading and recording the vibration acceleration value or the vehicle CAN bus data. When the first task is determined to record the vibration acceleration value, the second task and the third task will be executed. The second task is responsible for converting the vibration voltage value collected by the CH32V307 microcontroller 21 into the corresponding vibration acceleration value, and the third task is responsible for writing the vibration acceleration value to the SD card. When the first task is determined to record bus data, the fourth task and the fifth task will be executed. The fourth task is responsible for filtering the bus data collected by the CH32V307 microcontroller 21, and the fifth task is responsible for writing the required bus data to the SD card.

[0074] In an exemplary embodiment, the vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system includes four vibration sensors 12 , a posture sensor 15 , a CH32V307 microcontroller 21 , and a set of cables connected to the CH32V307 microcontroller 21 .

[0075] The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system provided by the present application is a controller box. When in use, it only needs to power on the microcontroller to work normally. It is convenient to replace and easy to operate. It can be directly installed on the vehicle without the need for personnel to accompany it for long-term data collection work. At the same time, the present application uses CH32V307 and ZDSD64GLGEAG chips to realize the vehicle-mounted multi-functional high-frequency vehicle vibration data and bus data acquisition and storage, which is low cost.

[0076] like Figure 5 As shown, based on the above-mentioned vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system, the present application also provides a vehicle-mounted real-time vibration acceleration and bus data acquisition and storage method, including:

[0077] Step 101: Determine a current task, which may be a vibration impact task or a driving task.

[0078] When the vibration acceleration value is detected to be greater than the set acceleration threshold and there is no bus data, it is determined to be a vibration impact task, and steps 102 to 105 are executed. When the bus data engine speed and vehicle speed are detected to be greater than certain thresholds, it is determined to be a driving task, and steps 106 to 109 are executed. In other states, data collection and storage are not performed.

[0079] Step 102: If the current task is a vibration impact task, vibration voltage signals at different positions of the vehicle body are collected, and the vibration voltage signals are converted into vibration acceleration values.

[0080] Step 103 : storing the vibration acceleration value into the memory of the CH32V307 microcontroller 21 .

[0081] Step 104: Calculate the maximum acceleration value, vibration duration, maximum energy and other parameters of this vibration through the vibration acceleration values ​​collected in real time, and store them in the memory of the CH32V307 microcontroller 21.

[0082] Step 105: Write the vibration acceleration value in the memory of the CH32V307 microcontroller 21 into the ZDSD64GLGEAG chip.

[0083] The CH32V307 microcontroller 21 establishes communication with the SD card (specifically, the ZDSD64GLGEAG chip) through the SDIO protocol, and writes the original vibration data and vibration characteristic data into the SD card. The storage format of the original vibration data is shown in Table 1, where the vibration data timestamps in columns 1 to 3 are relative timestamps, recording the relative time of this vibration impact test, columns 4 to 15 are four vibration sensors 12, a total of 12 axial vibration data, columns 16 to 21 are posture sensor 15 recorded data, including accelerometer values ​​and Euler angle data, and column 22 is the end symbol, indicating that 1ms data recording is complete.

[0084] Table 1 Original vibration data storage format

[0085]

[0086] Step 106: If the current task is a driving task, a dual-channel CAN channel is used to communicate with the vehicle bus 5 to receive bus data sent by each node of the vehicle.

[0087] Step 107: Filter the recorded bus data.

[0088] Step 108 : determining the vehicle driving log data according to the bus data, and storing the vehicle driving log data in the memory of the CH32V307 microcontroller 21 .

[0089] The CH32V307 microcontroller 21 sets a dual CAN channel to connect to the vehicle bus 5. After each node of the vehicle sends data, the ID number and bus data are stored in the memory of the CH32V307 microcontroller 21 through CAN interruption.

[0090] Since the transmission frequency of each node in the vehicle is different, it is meaningless to repeatedly record a frame of data, so this application selects 500ms as a recording cycle. The bus data in the memory of the CH32V307 microcontroller 21 is screened to determine that each frame of data appears only once every 500ms.

[0091] Further, according to the vehicle communication protocol, the filtered bus data is parsed to obtain characteristic parameters such as the mileage, maximum vehicle speed, maximum engine speed, etc., which constitute the vehicle driving log data.

[0092] Step 109: Write the vehicle driving log data in the memory of the CH32V307 microcontroller 21 into the ZDSD64GLGEAG chip. Specifically, the CH32V307 microcontroller 21 writes the vehicle driving log data and the original bus data into the SD card (specifically the ZDSD64GLGEAG chip), and the storage format of the original bus data is shown in Table 2.

[0093] Table 2 Original bus data storage format

[0094]

[0095] In an exemplary embodiment, the data acquisition part of the present application is divided into two categories: vibration acquisition and bus acquisition. Vibration acquisition is to process the voltage signal collected by the vibration sensor 12 and input it into the microcontroller through the operational amplifier conditioning circuit 14. Bus acquisition is to collect data information of each node of the vehicle through the CAN bus.

[0096] The process of collecting and storing vibration data is as follows: Figure 6 As shown, the program is divided into two threads. The first thread is for the acquisition of vibration data, which is executed in the timer interrupt. The analog-to-digital conversion module 22 of the microcontroller has a 12-bit precision and is configured as a single scan of the regular conversion group. The timer is configured to trigger the interrupt service function once every millisecond. After the initialization of each module is completed, the timer interrupt is enabled. The conversion result is read once every 1ms through DMA, and the next analog-to-digital conversion is triggered to achieve a sampling frequency of 1KHz.

[0097] The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system provided by the present application needs to record 44 bytes of data per millisecond, and the data per millisecond is temporarily stored in the memory of the microcontroller. If the amount of data written to the SD NAND FLASH at one time is too large and the writing time exceeds 1ms, it may be interrupted by a timing interrupt during the writing process, which will affect the data writing. Therefore, in the timing interrupt, the present application selects two arrays to cache the data, and each array can record 3960 bytes in size, a total of 90ms of data. When one of the arrays is full, a write task will be triggered, and the execution time of the write task is less than 90ms, thereby ensuring the effective recording of the data.

[0098] The second thread is for processing and storing vibration data, which is executed in the task queue. When a certain array in the timer interrupt is full, the flag is set high to indicate that data processing can be performed. According to the calibrated sensor characteristic curve, the vibration voltage value is converted into a vibration acceleration value, and the data stored in the array is updated. After the data processing is completed, the microcontroller uses the fats file operating system to call the f_open function to create a new txt document in the SD card and change the file name to the "(time of the day) ZD-BB-CC" format. "ZD" represents vibration impact acceleration data; "BB" represents the number of records; "CC" represents the number of data files under the "BB" record. Call the f_sync function to save the file, call the f_write function to write the collected data information under the newly created document, and call f_close to close the document to complete the data writing.

[0099] The process of collecting and storing bus data is as follows: Figure 7 As shown in the figure, the program is divided into two threads. The first thread is for acquiring bus data, which is executed in the CAN interrupt. The bus data records the ID number, data and timestamp. The ID number takes up 1 character, and the escape character takes up 1 character. The data size generated per frame is 8 characters, a total of 10 bytes. After receiving the bus data, the microcontroller directly stores the data in the structure array without any processing.

[0100] The second thread is for processing and storing vibration data, which is executed in the task queue. Read the data stored in the structure, traverse the data to filter the ID number, delete the data with the same ID number, keep only one set of data for each ID number, and clear the redundant data to form a structure array to be stored. The microcontroller uses the fats file operating system, calls the f_open function to create a new txt document in the SD card, and changes the file name to the "(time of the day) XS-BB-CC" format, where "XS" represents the vehicle bus data; "BB" represents the number of records; "CC" represents the number of data files under the "BB" record. Call the f_syns function to save the file, call the f_write function to write the collected data information under the newly created document, and call f_close to close the document to complete the data writing.

[0101] The present application can collect test data and bus data of multiple vibration sensors 12 at the same time, process the collected data, use a large-capacity SD card for data storage, and realize offline storage of vibration acceleration data or bus data. The entire system is small in size, low in cost, simple to operate, and can be mass-produced. That is, the present application can connect multiple vibration sensors 12, customize the installation position according to user needs, and is simple to operate. It can realize multi-channel real-time and high-speed vibration data collection, and can avoid the problems of complex processes and high costs required for collecting data parameters of vehicles in different working environments in the prior art.

[0102] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0104] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0105] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0106] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system, It is characterized in that The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system comprises: an acquisition unit, a data processing unit and a storage unit; the data processing unit is connected to the acquisition unit and the storage unit respectively; The acquisition unit is used to collect vibration voltage signals at different positions of the vehicle body; The data processing unit is based on a CH32V307 microcontroller, converts the vibration voltage signal into a vibration acceleration value, communicates with the vehicle bus in a dual-channel CAN channel form, receives bus data sent by each node of the vehicle, determines the vehicle driving log data according to the bus data, and stores the vibration acceleration value and the vehicle driving log data in the memory of the CH32V307 microcontroller; The storage unit is used to write the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller into the ZDSD64GLGEAG chip.

2. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 1, It is characterized in that The acquisition unit includes a constant current power supply circuit, a DC blocking capacitor, an operational amplifier conditioning circuit and a plurality of vibration sensors; the plurality of vibration sensors are installed at different positions of the vehicle body; the constant current power supply circuit and the DC blocking capacitor are connected to each vibration sensor; the operational amplifier conditioning circuit is connected to the DC blocking capacitor; The constant current power supply circuit is used to provide a constant current to each vibration sensor; The DC blocking capacitor is used to couple the AC signal and also acts as a high-pass filter to filter out low-frequency noise. The operational amplifier conditioning circuit is used to adjust the voltage range of the voltage signal to obtain vibration voltage signals at different positions of the vehicle body.

3. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 2, It is characterized in that The operational amplifier conditioning circuit uses two OP07C chips to perform two-stage operational amplifier conditioning on the voltage signal.

4. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 2, It is characterized in that The acquisition unit also includes a posture sensor; the posture sensor is installed at the center of the vehicle body, and the posture sensor is used to measure the posture data of the whole vehicle; the data processing unit is also used to store the posture data of the whole vehicle.

5. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 1, It is characterized in that The data processing unit is a CH32V307 microcontroller; the CH32V307 microcontroller is connected to the acquisition unit; The CH32V307 microcontroller is used to convert the vibration voltage signal into a vibration voltage value, convert the vibration voltage value into a vibration acceleration value according to a preset vibration sensor characteristic curve, communicate with the vehicle bus in the form of a dual-channel CAN channel, receive bus data sent by each node of the vehicle, determine the vehicle driving log data based on the bus data, and store the vibration acceleration value and the vehicle driving log data.

6. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 5, It is characterized in that The CH32V307 microcontroller samples and stores the vibration acceleration values ​​in a dual-queue manner, and samples and stores the bus data in a single-queue manner.

7. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 5, It is characterized in that The CH32V307 microcontroller communicates with the vehicle bus through the CA-IS3052G chip.

8. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 5, It is characterized in that The CH32V307 microcontroller is also used to determine the maximum value of vibration acceleration, vibration duration, and vibration energy according to the vibration acceleration value in a vibration impact task; and to determine the maximum vehicle speed, mileage, and recording date according to the bus data in a driving task.

9. The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to claim 1, It is characterized in that The storage unit writes the vibration acceleration value and vehicle driving log data in the memory of the CH32V307 microcontroller into the ZDSD64GLGEAG chip in the TXT file format according to the FAT file format and the SDIO communication protocol.

10. A vehicle-mounted real-time vibration acceleration and bus data acquisition and storage method, applied to the vehicle-mounted real-time vibration acceleration and bus data acquisition and storage system according to any one of claims 1 to 9, It is characterized in that The vehicle-mounted real-time vibration acceleration and bus data acquisition and storage method comprises: Determine a current task; the current task is a vibration impact task or a driving task; If the current task is a vibration impact task, the vibration voltage signals at different positions of the vehicle body are collected, the vibration voltage signals are converted into vibration acceleration values, and the vibration acceleration values ​​are stored in the memory of the CH32V307 microcontroller; the vibration acceleration values ​​in the memory of the CH32V307 microcontroller are written into the ZDSD64GLGEAG chip; If the current task is a driving task, a dual-channel CAN channel is used to communicate with the vehicle bus, bus data sent by each node of the vehicle is received, vehicle driving log data is determined based on the bus data, and the vehicle driving log data is stored in the memory of the CH32V307 microcontroller; the vehicle driving log data in the memory of the CH32V307 microcontroller is written into the ZDSD64GLGEAG chip.

Citation Information

Patent Citations

  • MEMS-based integrated scooter vibration data acquisition system

    CN105632137A

  • Vibration acceleration acquisition and storage system and method

    CN108615271A

  • Agricultural machinery vibration state multi-channel monitoring system based on acceleration sensor

    CN113267248A

  • Wireless vibration sensor, diagnosis method of electric drive component and automobile

    CN115096433A

  • Method for preventing virus-form FatFs from quickly reading large file data of SD card

    CN118114320A

Cited By

  • Whole vehicle cooperative control method for amphibious unmanned platform

    CN119717785A