Signal processing method and device, equipment, storage medium and vehicle
By sequentially detecting and parsing the data subframes in the AK protocol, and using reference timestamps and parity checks, the inefficiency problem caused by the complexity of AK protocol data processing is solved, ensuring the integrity and accuracy of vehicle wheel speed data.
Patent Information
- Application Number
- CN202410780121.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-08
AI Technical Summary
The processing method of AK protocol data in the existing technology is complex, resulting in low efficiency and inability to effectively parse the vehicle's wheel speed data, which may result in data loss or transmission errors.
By acquiring the first signal and the second signal of the vehicle, detecting multiple consecutive data subframes in sequence, determining the target data subframe, and continuing to detect when the amount of data carried by the undetected data subframe is greater than or equal to the preset threshold, Use base timestamps to determine data bit edge timestamps and perform parity checks to ensure data integrity and accuracy.
It ensures that subframes with important information will not be missed, saves computing resources and time, improves the efficiency and accuracy of data processing, simplifies the data processing process, and reduces the impact of noise and interference.
Smart Images

Figure CN118748680A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, in particular to the field of wheel speed sensor technology, and specifically to a signal processing method, device, equipment, storage medium and vehicle. Background Art
[0002] The AK protocol is a communication protocol widely used in the field of automotive electronics, mainly used for data transmission between controllers and measuring devices. The data of the AK protocol can include the driving information of the vehicle. Parsing the data of the AK protocol is crucial for the functions of vehicle driving status monitoring, control system and driving assistance system.
[0003] However, the method for processing AK protocol data in the related art is relatively complex, resulting in low efficiency. Summary of the invention
[0004] The present application provides a signal processing method, device, equipment, storage medium and vehicle to at least solve the technical problem that the processing method of AK protocol data in the related art is relatively complex and leads to low efficiency. The technical solution of the present application is as follows:
[0005] According to the first aspect provided by the present application, a signal processing method is provided, including: acquiring a first signal and a second signal of a vehicle; the first signal carries wheel speed data of the vehicle, and the first signal includes multiple continuous data subframes; the second signal is the wheel speed signal of the vehicle; within a first task cycle, according to the second signal, multiple continuous data subframes are detected in sequence to determine a target data subframe; the target data subframe is parsed to obtain the wheel speed data of the vehicle, and when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold, the undetected data subframe continues to be detected.
[0006] According to the above technical means, the present application can detect multiple consecutive data subframes in sequence, thereby ensuring that no subframe containing important information is missed. At the same time, the subframe can be detected by the indication of the second signal, thereby saving computing resources and time. After the target data subframe is detected, no further detection of other subframes will be performed, which further improves efficiency.
[0007] In one possible embodiment, the above method also includes: for any data subframe in multiple consecutive data subframes, determining a reference timestamp of the data subframe based on the second signal; the reference timestamp is the timestamp corresponding to the falling edge of the speed replacement pulse signal in the first signal; if there is no data in the data subframe in the first time period after the reference timestamp, the data subframe is removed.
[0008] According to the above-mentioned technical means, the present application can ensure the integrity and accuracy of subsequent data analysis by removing the data subframe when there is no data in the first time period corresponding to the reference timestamp, that is, the data subframe may have data loss or transmission errors, so as to avoid misjudgment of wheel speed data due to incomplete or erroneous data.
[0009] In one possible method, multiple data bit edge timestamps on a target data subframe are determined based on a reference timestamp; the time intervals between two adjacent timestamps in the multiple data bit edge timestamps are the same; the data bit edge timestamp is a timestamp corresponding to a rising edge or a falling edge; data values corresponding to each of the multiple data bit edge timestamps are determined based on edge types corresponding to each of the multiple data bit edge timestamps; the edge types include rising edges and falling edges; and the data values corresponding to each of the multiple data bit edge timestamps are parsed to obtain the wheel speed data of the vehicle.
[0010] According to the above-mentioned technical means, the present application uses a reference timestamp to determine the data bit edge timestamp, and further parses these data bit edge timestamps to obtain the vehicle's wheel speed data, which can improve the synchronization and accuracy of the data, simplify the data processing process, efficiently decode the communication protocol, and reduce the impact of noise and interference.
[0011] In one possible method, a parity check is performed on the data values corresponding to each of the multiple data bit edge timestamps; the data values corresponding to each of the multiple data bit edge timestamps are parsed to obtain the wheel speed data of the vehicle, including: when the parity check of the first data array passes, the data values corresponding to each of the multiple data bit edge timestamps are parsed to obtain the wheel speed data of the vehicle.
[0012] According to the above technical means, the present application can determine the vehicle's wheel speed data based on the data values corresponding to multiple data bit edge timestamps when the parity check of the data values corresponding to multiple data bit edge timestamps passes, thereby improving the accuracy and reliability of the data.
[0013] In a possible manner, when the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold, detection of the undetected data subframe is stopped.
[0014] According to the above technical means, the present application can stop detection when the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold, which can improve system efficiency and thus help to efficiently and stably parse the data.
[0015] In one possible manner, for the last incomplete data subframe detected in the first task cycle, in the second task cycle, the incomplete data subframe and the data subframe detected in the second task cycle are detected; the second task cycle is adjacent to the first task cycle and is located after the first task cycle.
[0016] According to the above technical means, the present application can ensure a complete data frame by placing the last incomplete data subframe detected in the first task cycle in the second task cycle for detection, thereby ensuring the integrity and accuracy of the data during transmission.
[0017] In a possible manner, if the sum of the amount of data carried by the incomplete data subframe and the amount of data carried by the data subframe detected in the second task period is greater than a preset amount, the target data subframe is determined.
[0018] According to the above technical means, the present application considers the incomplete data subframes together with the data subframes in the second task cycle, and determines the target data subframe when the total amount of data carried by the two exceeds the preset amount, which can ensure the integrity of the data and improve the accuracy of data processing.
[0019] According to the second aspect provided by the present application, a signal processing device is provided, including an acquisition unit, a detection unit and a parsing unit; the acquisition unit is used to acquire a first signal and a second signal of the vehicle; the first signal carries the wheel speed data of the vehicle, and the first signal includes multiple continuous data subframes; the second signal is the wheel speed signal of the vehicle; the detection unit is used to detect multiple continuous data subframes in sequence according to the second signal within a first task cycle to determine the target data subframe; the parsing unit is used to parse the target data subframe to obtain the wheel speed data of the vehicle, and continue to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
[0020] In one possible embodiment, the device also includes: a determination unit and a removal unit; the determination unit is used to determine a reference timestamp of a data subframe according to a second signal for any data subframe in a plurality of consecutive data subframes; the reference timestamp is a timestamp corresponding to a falling edge of a speed replacement pulse signal in a first signal; and the removal unit is used to remove a data subframe if no data exists in the data subframe in a first time period after the reference timestamp.
[0021] In one possible manner, the parsing unit is specifically used to: determine multiple data bit edge timestamps on a target data subframe based on a reference timestamp; the time intervals between two adjacent timestamps in the multiple data bit edge timestamps are the same; the data bit edge timestamp is a timestamp corresponding to a rising edge or a falling edge; determine the data values corresponding to the multiple data bit edge timestamps based on the edge types corresponding to the multiple data bit edge timestamps; the edge types include rising edges and falling edges; parse the data values corresponding to the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle.
[0022] In one possible embodiment, the device also includes: a verification unit; a verification unit, used to perform parity check on the data values corresponding to each of the multiple data bit edge timestamps; and a parsing unit, used to parse the data values corresponding to each of the multiple data bit edge timestamps to obtain the vehicle's wheel speed data when the parity check of the first array passes.
[0023] In a possible manner, the detection unit is further configured to stop detecting the undetected data subframes when the amount of data carried by the undetected data subframes in the first signal is less than a preset threshold.
[0024] In one possible manner, the detection unit is also used to detect the incomplete data subframe and the data subframe detected in the second task cycle in a second task cycle for the last incomplete data subframe detected in the first task cycle; the second task cycle is a cycle adjacent to the first task cycle and located after the first task cycle.
[0025] In a possible manner, the determination unit is further configured to determine the target data subframe if the sum of the amount of data carried by the incomplete data subframe and the amount of data carried by the data subframe detected in the second task period is greater than a preset amount.
[0026] According to the third aspect provided by the present application, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0027] According to the fourth aspect provided by the present application, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method in the above-mentioned first aspect and any possible implementation method thereof.
[0028] According to the fifth aspect provided by the present application, a computer program product is provided, the computer program product comprising computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method of the above-mentioned first aspect and any possible implementation manner thereof.
[0029] Therefore, the above technical features of the present application have the following beneficial effects:
[0030] (1) The present application can detect multiple consecutive data subframes in sequence, thereby ensuring that no subframe containing important information is missed. At the same time, the subframe can be detected by the indication of the second signal, thereby saving computing resources and time. After the target data subframe is detected, no further detection of other subframes is performed, which further improves efficiency.
[0031] (2) The present application can ensure the integrity and accuracy of subsequent data analysis by removing the data subframe when there is no data in the first time period corresponding to the reference timestamp, that is, the data subframe may have data loss or transmission error, thereby avoiding misjudgment of wheel speed data due to incomplete or erroneous data.
[0032] (3) The present application uses a reference timestamp to determine the data bit edge timestamp, and further parses these data bit edge timestamps to obtain the vehicle's wheel speed data, which can improve the synchronization and accuracy of the data, simplify the data processing process, efficiently decode the communication protocol, and reduce the impact of noise and interference.
[0033] (4) The present application can determine the wheel speed data of the vehicle according to the data values corresponding to the multiple data bit edge timestamps, if the parity check of the data values corresponding to the multiple data bit edge timestamps is passed, thereby improving the accuracy and reliability of the data.
[0034] (5) The present application can stop detecting when the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold, which can improve system efficiency and thus help to efficiently and stably parse the data.
[0035] (6) The present application ensures a complete data frame by placing the last incomplete data subframe detected in the first task cycle in the second task cycle for detection, thereby ensuring the integrity and accuracy of the data during transmission.
[0036] (7) The present application considers the incomplete data subframes together with the data subframes in the second task period, and determines the target data subframe when the total amount of data carried by the two exceeds a preset amount, which can ensure the integrity of the data and improve the accuracy of data processing.
[0037] It should be noted that the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by the corresponding implementation method in the first aspect, and will not be repeated here.
[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0040] Figure 1 is a flow chart of a signal processing method according to an exemplary embodiment;
[0041] Figure 2 is a schematic diagram showing a target data subframe and data values corresponding to a plurality of data bit edge timestamps respectively according to an exemplary embodiment;
[0042] Figure 3 is a schematic diagram of a wheel speed sensor interface circuit according to an exemplary embodiment;
[0043] Figure 4 is a schematic diagram of a process of extracting a second signal according to an exemplary embodiment;
[0044] Figure 5 is a schematic diagram of a process of extracting a first signal according to an exemplary embodiment;
[0045] Figure 6 is a schematic diagram showing a signal processing flow according to an exemplary embodiment;
[0046] Figure 7 is a schematic diagram of another signal processing flow according to an exemplary embodiment;
[0047] Figure 8 is a schematic diagram of a first signal according to an exemplary embodiment;
[0048] Fig. 9 is a schematic diagram showing another first signal according to an exemplary embodiment;
[0049] Fig.10 is a schematic diagram showing another first signal according to an exemplary embodiment;
[0050] Fig.11 is a schematic diagram of a wheel speed sensor interface circuit according to an exemplary embodiment;
[0051] Fig.12 is a block diagram of a signal processing device according to an exemplary embodiment;
[0052] Fig.13It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0053] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0055] For ease of understanding, the signal processing method provided in the present application is specifically introduced below with reference to the accompanying drawings.
[0056] Figure 1 is a flow chart of a signal processing method according to an exemplary embodiment. Figure 1 As shown, the signal processing method comprises the following steps:
[0057] S101. A signal processing device obtains a first signal and a second signal of a vehicle.
[0058] The first signal may carry wheel speed data of the vehicle, and the first signal may include a plurality of continuous data subframes. The second signal may be a wheel speed signal of the vehicle.
[0059] Optionally, the first signal may be a speed pulse and a subsequent nine-bit data information bit in the AK protocol, wherein the speed pulse may calculate the wheel speed by the time interval between two adjacent speed pulses. The data information bit may include other additional information, such as rotation direction, air gap information, etc. The data information bit may adopt Manchester encoding to represent data 1 or 0 by detecting the rising edge or falling edge of the current. This application does not impose any specific restrictions on this.
[0060] In one possible manner, the signal processing device can capture the rising edge of the second signal in the AK protocol. When the microcontroller unit (MCU) configured by the signal processing device detects the rising edge of the speed signal changing from a low level to a high level, the configured interrupt service program will be triggered. In this interrupt service program, the signal processing device can record the current timestamp and store it in a third array. The third array is managed according to the principle of First In First Out (FIFO).
[0061] In one possible way, the signal processing device can simultaneously capture the rising edge and falling edge of the first signal in the AK protocol. Whenever the MCU detects a level change in the second signal (whether it is a rising edge from a low level to a high level, or a falling edge from a high level to a low level), the configured interrupt service routine will be triggered. In this interrupt service routine, the signal processing device can record the current timestamp and store it in the second array. At the same time, the program will also check the current level state of the signal (high level or low level) and record the state value in the fourth array. Both the second array and the fourth array are managed according to the FIFO principle, and the timestamp in the second array corresponds one to one to the level state value in the fourth array.
[0062] S102: The signal processing device detects a plurality of continuous data subframes in sequence according to the second signal within the first task cycle to determine a target data subframe.
[0063] Optionally, the first task period can be set according to actual needs. For example, the first task period can be 1 second. It can also be 100 milliseconds. This application does not make specific restrictions on this.
[0064] In one possible manner, the signal processing device can detect multiple continuous data subframes one by one according to the second signal of the vehicle in combination with a preset algorithm and logic during the first task cycle. The signal processing device will determine which data subframes may contain more critical and important information based on the changing trend and characteristics of the speed signal. The signal processing device can determine the target subframe by carefully analyzing each data subframe.
[0065] Optionally, the second signal may be used to characterize a speed pulse in an AK protocol, which is not specifically limited in the present application.
[0066] S103: The signal processing device parses the target data subframe to obtain the wheel speed data of the vehicle, and continues to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
[0067] In one possible manner, the signal processing device may determine multiple data bit edge timestamps on the target data subframe based on the reference timestamp. The signal processing device may determine the data values corresponding to the multiple data bit edge timestamps based on the edge types corresponding to the multiple data bit edge timestamps. The signal processing device may parse the data values corresponding to the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle. The specific implementation method of the signal processing device parsing the target data subframe to obtain the wheel speed data of the vehicle may refer to S301-S302 below. No further details will be given here.
[0068] In one possible manner, the signal processing device may determine the target data subframe, parse the target data subframe, obtain the wheel speed data of the vehicle, and then determine the amount of data carried by the undetected data subframe. The signal processing device may continue to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
[0069] Optionally, the preset threshold value may be set according to actual needs. For example, the preset threshold value may be 20 or 40. This application does not impose any specific limitation on this.
[0070] In a possible manner, the signal processing device may detect the undetected data subframes to determine the target data subframe from the undetected data subframes. The specific implementation of the signal processing device determining the target data subframe may refer to the aforementioned S102. No further details will be given here.
[0071] Based on the above technical solution, the signal processing method provided by the present application can obtain a first signal and a second signal of the vehicle, and then within a first task cycle, according to the second signal, detect multiple consecutive data subframes in sequence to determine the target data subframe, so as to further analyze the target data subframe to obtain the wheel speed data of the vehicle, and continue to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
[0072] Based on this, the present application can detect multiple consecutive data subframes in sequence, thereby ensuring that no subframe containing important information is missed. At the same time, the subframe can be detected by the indication of the second signal, thereby saving computing resources and time.
[0073] In some embodiments, the signal processing method provided in the embodiments of the present application further includes the following steps: S201-S202.
[0074] S201. A signal processing apparatus determines, for any data subframe among a plurality of consecutive data subframes, a reference timestamp of the data subframe according to a second signal.
[0075] The reference timestamp is a timestamp corresponding to a falling edge of the speed replacement pulse signal in the first signal.
[0076] Specifically, the signal processing device can determine the timestamp corresponding to each rising edge and falling edge in a plurality of consecutive data subframes. The signal processing device can determine the timestamp corresponding to the rising edge of the speed pulse in each data subframe as the starting timestamp of each data subframe. The starting timestamp of a data subframe is used to identify the end of the previous data subframe and the beginning of the data subframe. The signal processing device can determine the first falling edge timestamp after the starting timestamp as the reference timestamp.
[0077] S202: If the data subframe does not contain data in the first time period after the reference timestamp, the signal processing apparatus removes the data subframe.
[0078] In one possible manner, the signal processing device can store the timestamp corresponding to each rising edge and falling edge in the first signal in the second array. If there is no data in the first time period for the reference timestamp of the data subframe, the signal processing device removes the data subframe, that is, removes the data subframe from the array.
[0079] Optionally, the first time period can be set according to actual needs. For example, the first time period can be 50 microseconds. This application does not make specific restrictions on this.
[0080] Based on this, the present application can ensure the integrity and accuracy of subsequent data analysis by removing the data subframe when there is no data in the first time period corresponding to the reference timestamp, that is, the data subframe may have data loss or transmission errors, so as to avoid misjudgment of wheel speed data due to incomplete or erroneous data.
[0081] In some embodiments, when parsing the target data subframe to obtain the wheel speed data of the vehicle, the signal processing method provided in the embodiment of the present application further includes the following steps: S301-S302.
[0082] S301. A signal detection device determines a plurality of data bit edge timestamps on a target data subframe according to a reference timestamp.
[0083] Among them, the time intervals between two adjacent timestamps in the multiple data bit edge timestamps are the same. The data bit edge timestamp is a timestamp corresponding to a rising edge or a falling edge.
[0084] Optionally, the time interval between two adjacent timestamps may be the same as a preset time length. For example, the preset time length may be 50 microseconds or 20 microseconds. This application does not impose any specific restrictions on this.
[0085] Specifically, the signal processing device can determine the first valid data bit in the target data subframe based on the edge of the reference timestamp in the target data subframe after the preset duration. The signal processing device can determine multiple data bit edge timestamps in the target data subframe based on the timestamp of the first valid data bit and the preset duration.
[0086] S302. The signal processing apparatus determines data values corresponding to each of the plurality of data bit edge timestamps according to edge types corresponding to each of the plurality of data bit edge timestamps.
[0087] The edge types include rising edge and falling edge.
[0088] Specifically, the signal processing device can determine the edge corresponding to each data bit in the target data subframe, that is, determine whether the edge corresponding to each data bit is a rising edge or a falling edge. The signal processing device can determine the data value corresponding to the rising edge as 1, and the data value corresponding to the falling edge as 0, thereby determining the data values corresponding to each of the multiple data bit edge timestamps. The signal processing device can store the data values corresponding to each of the multiple data bit edge timestamps into the first array.
[0089] For example, Figure 2 As shown, it is a schematic diagram of a target data subframe and data values corresponding to each of the multiple data bit edge timestamps. The target data subframe includes a speed pulse and multiple data bits and non-data bit edges. Among them, (TD0, TD1, TD2, TD3, TD4, TD5, TD6, TD7, TD8, TD9, TD10, TD11, TD12, TD13) are used to characterize the timestamp corresponding to each rising edge or falling edge, including data bit edge timestamps and non-data bit edge timestamps. After the signal processing device parses the target data subframe, the data values corresponding to each of the multiple data bit edge timestamps are 110110101.
[0090] S403: The signal processing device parses the data values corresponding to the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle.
[0091] In one possible manner, the signal processing device may parse the data values corresponding to each of the plurality of data bit edge timestamps to determine the wheel speed data of the vehicle.
[0092] Specifically, the signal processing device may perform preprocessing on the binary array, such as error detection, verification, and calculation, to ensure the integrity and accuracy of the data. The signal processing device may parse the binary array according to a predetermined data format or protocol. The signal processing device may convert the parsed binary data into a more meaningful format or unit. The signal processing device may verify the parsed and converted data to ensure that they are within a reasonable range. For example, the speed value cannot be negative and cannot exceed the maximum speed of the vehicle.
[0093] Based on this, the present application uses a reference timestamp to determine the data bit edge timestamp, and further parses these data bit edge timestamps to obtain the vehicle's wheel speed data, which can improve the synchronization and accuracy of the data, simplify the data processing process, efficiently decode the communication protocol, and reduce the impact of noise and interference.
[0094] In some embodiments, the signal processing method provided in the embodiments of the present application can also perform parity check on the data values corresponding to each of the multiple data bit edge timestamps, so as to parse the data values corresponding to each of the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle, and also includes the following steps: S401.
[0095] S401. When the data values corresponding to the multiple data bit edge timestamps pass the parity check, the signal processing device analyzes the data values corresponding to the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle.
[0096] In one possible manner, the last bit of data in the data value corresponding to each of the multiple data bit edge timestamps is a check bit. The signal processing device may perform a parity check on the data value corresponding to each of the multiple data bit edge timestamps. The signal processing device may be configured with a parity check rule. The signal processing device may determine the wheel speed data of the vehicle according to the first array when the parity check of the data value corresponding to each of the multiple data bit edge timestamps passes.
[0097] In a possible manner, the signal processing device obtains the first array and determines the specific implementation manner of the wheel speed data of the vehicle, which can be referred to above S301-S303 and will not be described in detail here.
[0098] Based on this, the present application can determine the vehicle's wheel speed data according to the data values corresponding to multiple data bit edge timestamps when the parity check of the data values corresponding to multiple data bit edge timestamps passes, thereby improving the accuracy and reliability of the data.
[0099] In some embodiments, the signal processing method provided in the embodiments of the present application further includes the following steps: S501.
[0100] S501: When the amount of data carried by an undetected data subframe in a first signal is less than a preset threshold, the signal processing device stops detecting an undetected data subframe.
[0101] Specifically, after determining the target data subframe, the signal processing device may further determine whether the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold. The signal processing device may, when the amount of data carried by the undetected data subframe in the first signal is less than the preset threshold, indicate that the undetected data subframe in the first signal does not contain a complete data subframe, and stop detecting the undetected data subframe here.
[0102] Based on this, the present application can stop detection when the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold, which can improve system efficiency and thus help to efficiently and stably parse the data.
[0103] In some embodiments, the signal processing method provided in the embodiments of the present application further includes the following steps: S601.
[0104] S601. A signal processing device detects, in a second task cycle, the last incomplete data subframe detected in a first task cycle and the data subframe detected in a second task cycle.
[0105] The second task cycle may be a cycle adjacent to the first task cycle and located after the first task cycle.
[0106] Specifically, in combination with S101, the signal processing device can cache all the data in the second array, the third array, and the fourth array to the fifth array, the sixth array, and the seventh array respectively when detecting the data subframe. The signal processing device can process the data in the fifth array, the sixth array, and the seventh array by the method in S101-S103. Among them, the second array, the third array, and the fourth array can receive data in real time, and the three arrays are first-in-first-out arrays. The signal processing device can identify and manage different task cycles. When entering the second task cycle, as the data is continuously received, the second array, the third array, and the fourth array have completely received the incomplete data subframe, so the incomplete array can be completely and correctly processed within the second task cycle.
[0107] Based on this, the present application ensures a complete data frame by placing the last incomplete data subframe detected in the first task cycle in the second task cycle for detection, thereby ensuring the integrity and accuracy of the data during transmission.
[0108] In some embodiments, the signal processing method provided in the embodiments of the present application further includes the following steps: S701.
[0109] S701: The signal processing device determines a target data subframe if the sum of the amount of data carried by the incomplete data subframe and the amount of data carried by the data subframe detected in the second task period is greater than a preset amount.
[0110] Specifically, in combination with S601, the signal processing device can determine the target data subframe from the incomplete data subframe and the data subframe detected in the second task period when the sum of the number of data carried by the incomplete data subframe and the number of data carried by the data subframe detected in the second task period is greater than the preset number. The method for the signal processing device to determine the target data subframe can refer to the above S102. It will not be repeated here.
[0111] Based on this, the present application considers the incomplete data subframes together with the data subframes in the second task cycle, and determines the target data subframe when the total amount of data carried by the two exceeds a preset amount, which can ensure the integrity of the data and improve the accuracy of data processing.
[0112] In some embodiments, Figure 3 The figure shows a schematic diagram of a wheel speed sensor interface circuit.
[0113] Figure 3 The wheel speed sensor interface circuit in the system includes: wheel speed sensor power supply control circuit, wheel speed sensor power supply overcurrent protection circuit, sensor power supply interface diagnostic circuit, sensor signal conversion circuit, sensor signal processing circuit 1, sensor signal processing circuit 2, sensor signal interface diagnostic circuit, and sensor signal overcurrent protection circuit. Among them, the wheel speed sensor is an external sensor. The shared MCU, shared 12V power supply, shared 12V diagnostic power supply, and shared 5V power supply are common circuits on the domain controller board.
[0114] The main function of the wheel speed sensor power supply control circuit is to provide a stable working power supply voltage for the wheel speed sensor. This voltage is provided by the 12V power supply shared within the board and can be precisely controlled by the MCU. When the wheel speed sensor is not needed to work, the MCU can control the power supply control circuit to stop supplying power to the sensor to achieve energy saving.
[0115] The main responsibility of the sensor signal conversion circuit is to convert the current signal output by the wheel speed sensor into a voltage signal and perform necessary filtering and amplification. This conversion helps the circuit process the sensor signal more efficiently and stably, and reduces the possibility of errors in the signal processing circuit.
[0116] The main function of the sensor signal processing circuit 1 is to extract the speed signal (i.e., the second signal) and pass it to the MCU to calculate the wheel speed information. In addition, the sensor signal processing circuit 1 also supports a specific data parsing method that can accurately separate the data signal from the speed & data signal.
[0117] The sensor signal processing circuit 2 is focused on providing speed and data signals (ie, the first signal) to the MCU. Through an innovative data parsing method, the MCU can parse the data information contained in the wheel speed sensor signal.
[0118] The wheel speed sensor power supply overcurrent protection circuit is designed as a negative feedback protection mechanism. When an unexpected sensor power supply interface short circuits to ground occurs, the circuit can quickly reduce the power supply output current to prevent damage to the device or circuit due to excessive current.
[0119] The sensor signal overcurrent protection circuit is an overcurrent detection logic protection circuit. When a short circuit or other abnormality occurs to the ground at the sensor signal interface, it can quickly detect and close the current path to the ground of the sampling resistor to prevent the sampling resistor from being subjected to excessive current load.
[0120] The main function of the diagnostic circuit is to monitor the circuit status in real time and report it in time when a fault is detected. This includes the diagnostic circuits of the sensor power interface and the signal interface, which can diagnose the circuit in the non-working state and the working state respectively, ensuring that the wheel speed sensor is always in the expected working state, avoiding more serious faults, and also facilitating subsequent troubleshooting and maintenance.
[0121] In some real-time examples, combined with Figure 3 ,like Figure 4 FIG. 1 is a schematic diagram of a process of extracting a second signal.
[0122] When the sensor signal processing circuit 1 detects the rising edge of the second signal (speed signal), the signal is sent to the MCU. The MCU stores the timestamp corresponding to the rising edge of the speed signal in the second array. Alternatively, when the rising edge of the speed signal is detected, the detection is continued.
[0123] In some real-time examples, combined with Figure 3 ,like Figure 5 FIG. 1 is a schematic diagram of a process of extracting a first signal.
[0124] In one possible manner, when the sensor signal processing circuit 2 detects the rising edge or falling edge of the first signal (speed & data signal), the data bit edge timestamp of the first signal is stored in the second array, and the level value is stored in the fourth array. The meaning of the data in the second array corresponds to that in the fourth array.
[0125] In some real-time examples, such as Figure 6 The figure shows a schematic diagram of a signal processing flow.
[0126] Before performing the following process, the signal processing device may cache the data in the second data array to the fifth array, cache the data in the third array to the sixth array, and cache the data in the fourth array to the seventh array.
[0127] In one possible manner, the signal processing device may determine whether the level value corresponding to the target timestamp in the seventh array is a high level when the target timestamp exists in the fifth array. The signal processing device may determine that the resolution value corresponding to the target timestamp is 1 and stores it in the first array when the level value corresponding to the target timestamp in the seventh array is a high level, otherwise, determine that the resolution value corresponding to the target timestamp is 0 and stores it in the first array. The signal processing device may remove the target timestamp from the fifth array and remove the level value corresponding to the target timestamp from the seventh array.
[0128] The target timestamp is a plurality of data bit edge timestamps in the fifth array, and the time intervals between two adjacent timestamps in the plurality of data bit edge timestamps are the same.
[0129] In one possible manner, the signal processing device may add 1 to the count value. The signal processing device may determine whether the fifth array still has a target timestamp when the preset value is less than or equal to a preset value threshold (usually 8, 0 to 8 representing 9 data bits of the target frame).
[0130] In one possible manner, the signal processing device may determine whether the level value corresponding to the target timestamp in the seventh array is a high level when the target timestamp exists in the fifth array, otherwise, determine whether the last parsed value is 1. The signal processing device may remove the first data timestamp from the fifth array, remove the level value corresponding to the target timestamp from the seventh array, and change the count value to 0 when the last parsed value is 1. The signal processing device may determine that the data in the first array is a frame of invalid AK protocol data with missing data bits after removing the first data timestamp from the fifth array and removing the level value corresponding to the target timestamp from the seventh array, and determine whether to discard and adopt it according to the program judgment process. Otherwise, the signal processing device may change the count value to 0 when the last parsed value is 1.
[0131] In one possible manner, the signal processing device may determine whether the last parsed value is 1 when a preset value is greater than a preset value threshold (usually 8, 0 to 8 represents 9 data bits of the target frame). The signal processing device may remove the first data timestamp from the fifth array, remove the level value corresponding to the target timestamp from the seventh array, and change the count value to 0 when the last parsed value is 1. The signal processing device may determine that the first array is a complete frame of AK protocol wheel speed sensor data information with a correct parity check when the first data parity check is correct, and adopt it. The signal processing device may determine that the first array is a complete frame of AK protocol wheel speed sensor data information with a correct parity check when the first data parity check is incorrect, and discard it.
[0132] In a possible manner, when there is no target timestamp in the fifth array, the signal processing device may remove data in the seventh array whose timestamp is less than the preset time length of the speed timestamp from the seventh array.
[0133] Optionally, the preset numerical threshold value may be set according to actual needs. For example, the preset numerical threshold value may be 8 or 7. This application does not impose any specific limitation on this.
[0134] In some embodiments, in combination Figure 6 ,like Figure 7 , which is a schematic diagram of another signal processing flow.
[0135] In one possible manner, the signal processing device may obtain the fifth array, the sixth array, and the seventh array. The signal processing device may determine whether the first timestamp in the fifth array is greater than the difference between the first timestamp in the sixth group and the first duration when the data in the sixth array is 0, and parse the seventh array and the fifth array if it is less than. The signal processing device may determine whether the difference between the first timestamp in the fifth array and the first timestamp in the sixth group is less than or equal to the second duration when the first timestamp in the fifth array is greater than the difference between the first timestamp in the sixth group and the first duration.
[0136] Optionally, the first duration may be 660 microseconds, and the second duration may be 25 microseconds. This application does not impose any specific limitation on this.
[0137] In a possible manner, the signal processing device can determine whether the second timestamp in the sixth group is not 0 when the difference between the first timestamp in the fifth array and the first timestamp in the sixth group is less than or equal to the second duration. If it is 0, it is determined whether there is a first timestamp that meets the preset conditions in the fifth array. If it exists, the timestamp that meets the preset conditions is determined as the starting timestamp, and then the data in the fifth group and the seventh group are parsed. If it does not exist, the data in the fifth array, the sixth array, and the seventh array are cleared, and the parsing process ends. If it is not 0, the fifth array and the seventh array are parsed. In a possible manner, the signal processing device can shift all the data in the sixth array by one position left after parsing the fifth array and the seventh array. The signal processing device can determine whether the amount of remaining data in the fifth array is greater than a preset value after shifting all the data in the sixth array by one position left. The signal processing device can determine whether the data in the sixth array is not 0 when the amount of remaining data in the fifth array is greater than or equal to the preset value, and clear the data in the fifth array, the sixth array, and the seventh array when it is less than the preset value.
[0138] In a possible manner, the method for the signal processing device to parse the fifth array and the seventh array can refer to Figure 6 , I will not go into details here.
[0139] In some embodiments, in combination Figure 6 and Figure 7 ,like Figure 8 The figure shows a schematic diagram of a first signal.
[0140] In one possible manner, the signal processing device may determine the fifth array, the sixth array, and the seventh array. The signal processing device may determine that the sixth array data is 0. The signal processing device may determine that there is a first timestamp that meets the preset conditions, that is, the timestamp corresponding to the first rising edge in the second data frame (frame start timestamp). The frame start timestamp in the second data frame is used to identify the start of the second frame. The signal processing device may determine the first falling edge in the first data frame as the reference timestamp. The signal processing device may determine that there is no timestamp in the first data frame that is spaced by the first time period from the reference timestamp. The signal processing device may remove the data whose time in the fifth and seventh arrays is less than the start timestamp. The signal processing device may determine whether the amount of remaining data in the fifth array is greater than a preset value. The signal processing device determines that the amount of remaining data is 21, which is greater than the preset value 20. The signal processing device may parse the second data frame. In one possible manner, the signal processing device may determine that the sixth array data is 0. The signal processing device may determine that there is a first frame start timestamp that meets the preset conditions. The signal processing device may determine the falling edge timestamp of the speed replacement pulse in the second data frame, that is, the second timestamp. The signal processing device may determine the second timestamp as the reference timestamp. The signal processing device determines that there is a timestamp in the second data frame that is separated from the reference timestamp by a first time period, namely, the target timestamp.
[0141] The signal processing device can be based on Figure 8 The second frame is parsed by the method to obtain the first array 110110101. The signal processing device can perform a parity check on the first array. The signal processing device determines that the parity check of the first array is correct and adopts the data.
[0142] The signal processing device can parse the third data frame. The third data frame has only 7 edges, which is less than 20, and is parsed in the next cycle.
[0143] In some embodiments, in combination Figure 6 and Figure 7 ,like Fig. 9 , which is a schematic diagram of yet another first signal.
[0144] In one possible manner, the signal processing device can determine the fifth array, the sixth array, and the seventh array. The signal processing device can determine that the data in the sixth array is not 0. The signal processing device can determine that the first timestamp in the fifth array is greater than the difference between the first timestamp in the sixth array and the first duration. The signal processing device can determine that the difference between the first timestamp in the fifth array and the first timestamp in the sixth array is less than or equal to the second duration. The signal processing device can determine that the second timestamp in the sixth array is not 0. The signal processing device can parse the fifth array and the seventh array. The signal processing device can parse that the first array is an incomplete protocol frame 1101, which is adopted. The signal processing device can parse the second data frame, which has only 14 edges, less than 20, and is parsed in the next cycle.
[0145] In some embodiments, in combination Figure 6 and Figure 7 ,like Fig.10 As shown, it is a schematic diagram of another first signal. In one possible manner, the signal processing device can determine the fifth array, the sixth array and the fifth and seventh arrays. The signal processing device can determine that the data in the sixth array is not 0. The signal processing device can determine that the first timestamp in the fifth array is greater than the difference between the first timestamp in the sixth array and the first duration. The signal processing device can determine that the difference between the first timestamp in the fifth array and the first timestamp in the sixth array is greater than the second duration. The signal processing device can remove the data in the fifth and seventh arrays whose time is less than the second timestamp. The signal processing device can determine that the remaining data amount is 24, which is greater than 20, and determine that the data in the sixth array is not 0.
[0146] In one possible manner, the signal processing device may determine that the sixth array data is not 0. The signal processing device may determine that the first timestamp in the fifth array is less than the difference between the first timestamp and the first duration in the sixth array. The signal processing device may determine that there is a target timestamp in the fifth array and thus parse the fifth array and the seventh array. The signal processing device may parse that the first array is an incomplete protocol frame 1101 and adopt it. The signal processing device may determine that the remaining data amount is 16, which is less than 20, and parse it in the next cycle.
[0147] In some embodiments, Fig.11 As shown, a wheel speed sensor interface circuit is shown.
[0148] Fig.11 The circuit includes: a resistor, a power supply, a diode, a triode, an operational amplifier unit circuit, and a comparator unit circuit.
[0149] Embodiment 1:
[0150] In one possible manner, the first embodiment is implemented as a wheel speed sensor signal conversion circuit. The MCU controls the MCU output signal to be high level, thereby turning on T1. The wheel speed sensor current signal flows through the resistor R23 and T1 and is converted into a voltage signal. The wheel speed sensor voltage signal is filtered and amplified by the U2 operational amplifier unit circuit to obtain the wheel speed sensor voltage signal.
[0151] Embodiment 2:
[0152] In a possible manner, the second embodiment is an implementation of the sensor signal processing circuit 1. high Current range, determine the reference comparison voltage U of the U4 comparator unit circuit Ref_High The wheel speed sensor voltage signal is separated into a speed signal (second signal) through the U4 comparator unit circuit.
[0153] Embodiment three:
[0154] In one possible manner, the third embodiment is the implementation of the wheel speed sensor signal overcurrent protection circuit. mid Current range, determine the reference comparison voltage of the U4 comparator unit circuit URef_Mid The wheel speed sensor voltage signal is converted into a speed and data signal (first signal) through the U4 comparator unit circuit.
[0155] Embodiment 4:
[0156] In one possible manner, the fourth embodiment is the implementation of the wheel speed sensor signal overcurrent protection circuit. high The maximum current determines the reference comparison voltage U of the U3 comparator unit circuit. Ref_pro When an overcurrent scenario occurs, the output voltage of U2 will suddenly increase. Ref_pro After that, U3 can output a high level. After U3 outputs a high level, T2 is turned on, and then T1 is turned off. After T1 is turned off, the current loop is cut off and the current decreases.
[0157] Real-time example 5:
[0158] In one possible way, the wheel speed sensor signal diagnosis circuit is implemented. When an overcurrent scenario occurs, the output voltage of U2 suddenly increases. After the output voltage of U2 suddenly increases, the sensor signal diagnosis feedback signal voltage increases.
[0159] After the MCU detects that the voltage of the sensor signal diagnosis feedback signal increases to the protection threshold, it actively pulls down the MCU output signal, turns off T1, and cuts off the current loop. The MCU sets the fault flag and reports it to the vehicle computer.
[0160] Real-time example six:
[0161] In one possible way, real-time example six is the implementation of the wheel speed sensor signal diagnostic circuit. A short circuit to the ground or an open load causes the wheel speed sensor signal current to decrease. The reduction in U2 output voltage causes the U2 output voltage to decrease, and the sensor signal diagnostic feedback signal voltage decreases. After the MCU detects that the sensor signal diagnostic feedback signal voltage decreases to the minimum threshold, it determines that there is a short circuit to the ground or an open load scenario. The MCU sets the fault flag and reports it to the vehicle computer.
[0162] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve the above functions, the signal processing device or electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0163] The embodiment of the present application can exemplarily divide the functional modules of the signal processing device or electronic device according to the above method. For example, the signal processing device or electronic device may include various functional modules corresponding to the various functional divisions, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0164] Fig.12 is a block diagram of a signal processing device according to an exemplary embodiment. Figure 7 The signal processing device includes: an acquisition unit 801, a detection unit 802, a parsing unit 803, a determination unit 804, a removal unit 805 and a verification unit 806.
[0165] In one possible manner, the acquisition unit 801 is used to acquire a first signal and a second signal of the vehicle; the first signal carries wheel speed data of the vehicle, and the first signal includes a plurality of continuous data subframes; the second signal is the wheel speed signal of the vehicle.
[0166] In a possible manner, the detection unit 802 is used to detect a plurality of continuous data subframes in sequence according to the second signal within the first task period to determine the target data subframe.
[0167] In one possible manner, the parsing unit 803 is used to parse the target data subframe to obtain the wheel speed data of the vehicle, and continue to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
[0168] In one possible manner, the determination unit 804 is used to determine a reference timestamp of any data subframe in a plurality of consecutive data subframes according to the second signal; the reference timestamp is a timestamp corresponding to a falling edge of a speed replacement pulse signal in the first signal.
[0169] In a possible manner, the removing unit 805 is configured to remove the data subframe if no data exists in the data subframe in the first time period after the reference timestamp.
[0170] In one possible manner, the parsing unit 803 is specifically used to: determine multiple data bit edge timestamps on the target data subframe based on a reference timestamp; the time intervals between two adjacent timestamps in the multiple data bit edge timestamps are the same; the data bit edge timestamp is a timestamp corresponding to a rising edge or a falling edge; determine the data values corresponding to the multiple data bit edge timestamps based on the edge types corresponding to the multiple data bit edge timestamps; the edge types include rising edges and falling edges; parse the data values corresponding to the multiple data bit edge timestamps to obtain the wheel speed data of the vehicle.
[0171] In one possible manner, the check unit 806 is configured to perform parity check on data values corresponding to each of the plurality of data bit edge timestamps.
[0172] In a possible manner, the parsing unit 803 is used to parse the data values corresponding to the edge timestamps of the multiple data bits to obtain the wheel speed data of the vehicle when the parity check of the first data array passes.
[0173] In a possible manner, the detection unit 802 is further configured to stop detecting the undetected data subframes when the amount of data carried by the undetected data subframes in the first signal is less than a preset threshold.
[0174] In one possible manner, the detection unit 802 is also used to detect the incomplete data subframe and the data subframe detected in the second task cycle in the second task cycle for the last incomplete data subframe detected in the first task cycle; the second task cycle is a cycle adjacent to the first task cycle and located after the first task cycle.
[0175] In a possible manner, the determination unit 804 is further configured to determine the target data subframe if the sum of the amount of data carried by the incomplete data subframe and the amount of data carried by the data subframe detected in the second task period is greater than a preset amount.
[0176] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0177] Fig.13 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Fig.13 As shown, the electronic device includes but is not limited to: a processor 901 and a memory 902 .
[0178] The memory 902 is used to store executable instructions of the processor 901. It can be understood that the processor 901 is configured to execute instructions to implement the signal processing method in the above embodiment.
[0179] It should be noted that those skilled in the art can understand that Fig.13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include Fig.13 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0180] The processor 901 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 902, and calling data stored in the memory 902, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 901 may include one or more processing units. Optionally, the processor 901 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 901.
[0181] The memory 902 may be used to store software programs and various data. The memory 902 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one functional module (such as a determination unit, a processing unit, etc.), etc. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0182] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 902 including instructions, and the above instructions can be executed by the processor 901 of the electronic device 900 to implement the method in the above embodiment.
[0183] In actual implementation, Fig.12 The functions of the acquisition unit 801, the detection unit 802, the analysis unit 803, the determination unit 804, the removal unit 805 and the verification unit 806 in the embodiment can be realized by Fig.13 The processor 901 in the embodiment calls the computer program stored in the memory 902 to implement. The specific execution process can refer to the description of the method part in the above embodiment, which will not be repeated here.
[0184] Optionally, the computer-readable storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0185] In an exemplary embodiment, the present application also provides a computer program product including one or more instructions, and the one or more instructions can be executed by the processor 901 of the electronic device to complete the method in the above embodiment.
[0186] It should be noted that when the instructions in the above-mentioned computer-readable storage medium or one or more instructions in the computer program product are executed by the processor of the electronic device, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect as the above-mentioned method can be achieved. To avoid repetition, they will not be repeated here.
[0187] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0191] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the full classification part or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute the full classification part or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD and other media that can store program code.
[0192] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A signal processing method, characterized in that: Applied to vehicles, including: Acquire a first signal and a second signal of the vehicle; the first signal carries wheel speed data of the vehicle, and the first signal includes a plurality of continuous data subframes; the second signal is the wheel speed signal of the vehicle; In the first task cycle, according to the second signal, the plurality of continuous data subframes are detected in sequence to determine a target data subframe; The target data subframe is parsed to obtain the wheel speed data of the vehicle, and when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold, the undetected data subframe continues to be detected.
2. The method according to claim 1, characterized in that The method further comprises: For any data subframe in the plurality of consecutive data subframes, determining a reference timestamp of the data subframe according to the second signal; the reference timestamp is a timestamp corresponding to a falling edge of a speed replacement pulse signal in the first signal; If the data subframe does not have data in the first time period after the reference timestamp, the data subframe is removed.
3. The method according to claim 1 or 2, characterized in that: The parsing of the target data subframe to obtain the wheel speed data of the vehicle includes: According to the reference timestamp, a plurality of data bit edge timestamps on the target data subframe are determined; the time intervals between two adjacent timestamps in the plurality of data bit edge timestamps are the same; the data bit edge timestamp is a timestamp corresponding to a rising edge or a falling edge; Determine the data values corresponding to the multiple data bit edge timestamps respectively according to the edge types corresponding to the multiple data bit edge timestamps respectively; the edge types include rising edge and falling edge; The data values corresponding to the multiple data bit edge timestamps are analyzed to obtain the wheel speed data of the vehicle.
4. The method according to claim 1, characterized in that The method further comprises: Performing parity check on data values corresponding to each of the plurality of data bit edge timestamps; The step of parsing the data values corresponding to the plurality of data bit edge timestamps to obtain the wheel speed data of the vehicle includes: In the case that the parity check of the data values corresponding to the multiple data bit edge timestamps is passed, the data values corresponding to the multiple data bit edge timestamps are analyzed to obtain the wheel speed data of the vehicle.
5. The method according to claim 1, characterized in that The method further comprises: When the amount of data carried by the undetected data subframe in the first signal is less than a preset threshold, detection of the undetected data subframe is stopped.
6. The method according to claim 5, characterized in that The method further comprises: For the last incomplete data subframe detected in the first task cycle, in the second task cycle, the incomplete data subframe and the data subframe detected in the second task cycle are detected; the second task cycle is adjacent to the first task cycle and is located after the first task cycle.
7. The method according to claim 6, characterized in that The method further comprises: If the sum of the amount of data carried by the incomplete data subframe and the amount of data carried by the data subframe detected in the second task period is greater than the preset amount, a target data subframe is determined.
8. A signal processing device, characterized in that: The device comprises: The acquisition unit is used to acquire a first signal and a second signal of the vehicle; the first signal carries wheel speed data of the vehicle, and the first signal includes a plurality of continuous data subframes; the second signal is the wheel speed signal of the vehicle; The detection unit is used to detect the plurality of continuous data subframes in sequence according to the second signal within the first task cycle to determine the target data subframe; The parsing unit is used to parse the target data subframe to obtain the wheel speed data of the vehicle, and continue to detect the undetected data subframe when the amount of data carried by the undetected data subframe in the first signal is greater than or equal to a preset threshold.
9. The device according to claim 8, characterized in that The device further comprises: a determination unit and a removal unit; The determining unit is used to determine, for any data subframe of the multiple consecutive data subframes, a reference timestamp of the data subframe according to the second signal; the reference timestamp is a timestamp corresponding to a falling edge of a speed replacement pulse signal in the first signal; The removing unit is configured to remove the data subframe if there is no data in the data subframe in the first time period after the reference timestamp.
10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: When the computer-executable instructions stored in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is capable of performing the method as claimed in claims 1 to 7.
12. A vehicle, characterized in that: The vehicle comprises the device of claim 8 or 9.
