Positioning Method and Device for Arbitration Field and Data Field

The bus CANFD signal is acquired through the oscilloscope, and the delay time is calculated using identifiers and baud rates to accurately locate the distinction between the arbitration field and the data field, which solves the measurement accuracy problem caused by the inaccurate oscilloscope algorithm and improves the accuracy of CANFD bus testing.

CN116248428BActive Publication Date: 2025-08-01BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211656895.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-22
Publication Date
2025-08-01
Estimated Expiration
2042-12-22

AI Technical Summary

Technical Problem

In the prior art, due to the inaccurate algorithm during oscilloscope interception, the measurement results of the CANFD bus arbitration field and the data field are relatively low.

Method used

The signals of the bus CANFD test device are collected through an oscilloscope, and the start bit of the arbitration field data frame is determined using an identifier, and the delay time is calculated based on the arbitration field baud rate and the preset data bit number, and the target bit is calculated based on the start bit and the delay time to accurately determine the distinction between the arbitration field and the data field.

Benefits of technology

The accuracy of parameter measurement results of the arbitration field and data field during CANFD bus testing is improved, and the precise positioning and distinction between the arbitration field and the data field is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248428B_ABST
    Figure CN116248428B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and device for positioning an arbitration field and a data field. The method for positioning the arbitration field and the data field includes collecting, by an oscilloscope, a signal sent by a device under test on a CANFD bus, where the signal includes an identifier and an arbitration field baud rate, determining a start bit of an arbitration field data frame in the signal based on the identifier, calculating a delay time according to the arbitration field baud rate and a preset number of data bits, and calculating a target bit of the signal based on the start bit and the delay time, where the target bit is a differentiating bit between the arbitration field data frame and the data field data frame in the signal. According to the embodiment of the present application, after positioning the start bit, a delay is performed based on the delay time, so that the arbitration field and the data field can be accurately positioned and differentiated, thereby improving the accuracy of the parameter measurement results of the arbitration field and the data field during CANFD bus testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of automotive bus automation testing, and particularly relates to a method and device for positioning an arbitration field and a data field. Background Art

[0002] In the automotive field, due to the good compatibility and low cost of the CANFD bus, its status in the current automotive electronic network system is becoming increasingly important. And the CANFD bus has a high dependence on the stability of the physical layer. Therefore, in the test of the CANFD bus, testing the physical layer has become the key content.

[0003] Currently, the CANFD bus test includes the automated measurement of the arbitration field and the data field. For the automated measurement of the arbitration field and the data field, the positioning and identification functions of an oscilloscope are mainly used, and the oscilloscope is used to intercept specific bits of the CANFD frame for measurement. However, due to the inaccurate algorithm during the interception by the oscilloscope, incorrect positions may be intercepted, resulting in a low accuracy of the measurement results. Summary of the Invention

[0004] The embodiments of this application provide a method and device for positioning an arbitration field and a data field, which can solve the problem in the prior art that due to the inaccurate algorithm during the interception by the oscilloscope, incorrect positions may be intercepted, resulting in a low accuracy of the measurement results.

[0005] In a first aspect, the embodiments of this application provide a method for positioning an arbitration field and a data field, and the method includes:

[0006] Collect the signal sent by the DUT (Device Under Test) of the CANFD bus through an oscilloscope, and the signal includes an identifier and an arbitration field baud rate.

[0007] Determine the start bit of the arbitration field data frame in the signal based on the identifier.

[0008] Calculate the delay time according to the arbitration field baud rate and the preset number of data bits.

[0009] Calculate the target bit of the signal based on the start bit and the delay time, and the target bit is the differentiation bit between the arbitration field data frame and the data field data frame in the signal.

[0010] In some embodiments, the determining the start bit of the arbitration field data frame in the signal based on the identifier includes:

[0011] Intercept the CANFD frame corresponding to the identifier in the signal through a preset programmed function of the oscilloscope, and the CANFD frame corresponds to the arbitration field data frame in the signal.

[0012] Determine that the frame start bit of the CANFD frame is the start bit of the arbitration field data frame.

[0013] In some embodiments, the calculating the delay time according to the arbitration field baud rate and the preset number of data bits includes:

[0014] Calculate the bit time based on the arbitration field baud rate,

[0015] Determine that the product of the bit time and the preset number of data bits is the delay time.

[0016] In some embodiments, after calculating the target bit of the signal based on the start bit and the delay time, the method further includes:

[0017] Intercept the data field data frame in the signal according to the target bit to obtain the first data frame of the data field,

[0018] Scale the first data frame of the data field at a preset scaling ratio to obtain the target data frame of the data field.

[0019] In some embodiments, the method further includes:

[0020] Measure the waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

[0021] In some embodiments, the measurement values include at least one of output voltage, bus waveform, rising edge, falling edge, bit time, and level value.

[0022] In some embodiments, the method further includes:

[0023] When the programmable multimeter is in the access state, measure the physical parameters of the data field data frame through the programmable multimeter, where the physical parameters include at least one of terminal resistance, internal resistance, current, and capacitance.

[0024] In some embodiments, the measuring the physical parameters through the multimeter when the multimeter is in the access state includes:

[0025] When the multimeter is in the access state, control the programmable multimeter to measure the physical parameters of the data field data frame through the programmable relay group.

[0026] In a second aspect, an embodiment of the present application provides a positioning device for an arbitration field and a data field. The positioning device for the arbitration field and the data field includes:

[0027] An acquisition module, configured to acquire a signal sent by a bus CANFD device under test through an oscilloscope, where the signal includes an identifier and an arbitration field baud rate,

[0028] A determination module, configured to determine the start bit of the arbitration field data frame in the signal based on the identifier.

[0029] A calculation module, configured to calculate a delay time according to the arbitration field baud rate and a preset number of data bits.

[0030] The calculation module is further configured to calculate a target bit of the signal based on the start bit and the delay time, and the target bit is a distinguishing bit between the arbitration field data frame and the data field data frame in the signal.

[0031] In some embodiments, the positioning device for the arbitration field and the data field further includes an interception module.

[0032] The interception module is configured to intercept the CANFD frame corresponding to the identifier in the signal through a preset program control function of an oscilloscope, and the CANFD frame corresponds to the arbitration field data frame in the signal.

[0033] The determination module is configured to determine that the frame start bit of the CANFD frame is the start bit of the arbitration field data frame.

[0034] In some embodiments, the calculation module is further configured to calculate a bit time based on the arbitration field baud rate.

[0035] The determination module is further configured to determine that the product of the bit time and the preset number of data bits is the delay time.

[0036] In some embodiments, the positioning device for the arbitration field and the data field further includes a scaling module.

[0037] The interception module is configured to, after calculating the target bit of the signal based on the start bit and the delay time, intercept the data field data frame in the signal according to the target bit to obtain a first data frame of the data field.

[0038] The scaling module is configured to scale the first data frame of the data field at a preset scaling ratio to obtain a target data frame of the data field.

[0039] In some embodiments, the positioning device for the arbitration field and the data field further includes a measurement module.

[0040] The measurement module is configured to measure waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

[0041] In some embodiments, the measurement values include at least one of output voltage, bus waveform, rising edge, falling edge, bit time, and level value.

[0042] In some embodiments, the measurement module is further configured to measure the physical parameters of the data field data frame through the programmable multimeter when the programmable multimeter is in the connected state, where the physical parameters include at least one of terminal resistance, internal resistance, current, and capacitance.

[0043] In some embodiments, the positioning device for the arbitration field and the data field further includes a control module.

[0044] The control module is configured to control the programmable multimeter to measure the physical parameters of the data field data frame through the programmable relay group when the multimeter is in the connected state.

[0045] In a third aspect, an embodiment of the present application provides an electronic device, which includes: a processor and a memory storing computer program instructions.

[0046] When the processor executes the computer program instructions, it implements the positioning method for the arbitration field and the data field described in any one of the embodiments of the first aspect.

[0047] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, they implement the positioning method for the arbitration field and the data field described in any one of the embodiments of the first aspect.

[0048] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device is caused to execute the positioning method for the arbitration field and the data field described in any one of the embodiments of the first aspect.

[0049] For the positioning method and device for the arbitration field and the data field in the embodiments of the present application, signals sent by the device under test on the CANFD bus are collected through an oscilloscope. The signals include an identifier and an arbitration field baud rate, and the start bit of the arbitration field data frame in the signal is determined based on the identifier. In this way, the identifier can be used as the trigger condition of the oscilloscope to determine the start bit of the arbitration field data frame, avoiding the randomness brought by edge triggering. Then, the delay time is calculated according to the arbitration field baud rate and the preset number of data bits, and the target bit of the signal is calculated based on the start bit and the delay time. The target bit is the discrimination bit between the arbitration field data frame and the data field data frame in the signal. In this way, after positioning the start bit and delaying based on the delay time, the arbitration field and the data field can be accurately positioned and distinguished, thereby improving the accuracy of the parameter measurement results of the arbitration field and the data field during the CANFD bus test. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0051] Figure 1 is a schematic flowchart of a method for positioning an arbitration field and a data field provided by an embodiment of the present application;

[0052] Figure 2 is a schematic architecture diagram of a system for positioning an arbitration field and a data field provided by an embodiment of the present application;

[0053] Figure 3 is a schematic structural diagram of a device for positioning an arbitration field and a data field provided by an embodiment of the present application;

[0054] Figure 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed Embodiments

[0055] The following will describe in detail the features and exemplary embodiments of various aspects of the present application. To make the purpose, technical solutions and advantages of the present application more clear and understandable, the following further describes the present application in detail in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than limiting the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

[0056] It should be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, article or device including the said elements.

[0057] As described in the background art, in the prior art, due to the inaccurate algorithm during the oscilloscope interception, the incorrect position may be intercepted, resulting in a low accuracy of the measurement result. To solve the above problems, the embodiments of the present application provide a method and device for positioning an arbitration field and a data field. The method for positioning the arbitration field and the data field can collect the signal sent by the bus CANFD under-test device through an oscilloscope. The signal includes an identifier and an arbitration field baud rate, and based on the identifier, the start bit of the arbitration field data frame in the signal is determined. In this way, the identifier can be used as the trigger condition of the oscilloscope to determine the start bit of the arbitration field data frame, avoiding the randomness brought by edge triggering. Then, the delay time is calculated according to the arbitration field baud rate and the preset number of data bits, and the target bit of the signal is calculated based on the start bit and the delay time. The target bit is the discrimination bit between the arbitration field data frame and the data field data frame in the signal. In this way, after positioning the start bit and delaying based on the delay time, the arbitration field and the data field can be accurately positioned and distinguished, thereby improving the accuracy of the parameter measurement results of the arbitration field and the data field during the CANFD bus test. First, the method for positioning the arbitration field and the data field provided by the embodiments of the present application will be introduced below.

[0058] Figure 1 FIG. shows a schematic flowchart of a method for positioning an arbitration field and a data field provided by an embodiment of the present application.

[0059] As Figure 1 shown, the method for positioning the arbitration field and the data field may specifically include the following steps:

[0060] S110, collect the signal sent by the bus CANFD under-test device through an oscilloscope. The signal may include an identifier and an arbitration field baud rate.

[0061] When testing the CANFD bus, the bus waveform is measured through an oscilloscope. First, the signal sent by the bus CANFD under-test device is collected. The signal may include the identifier of the message and the arbitration field baud rate. The identifier may be an identity number (Identity, ID) that can uniquely identify the message. The arbitration field baud rate may be the pre-set baud rate of the arbitration field signal, which can characterize the CANFD bus transmission frequency.

[0062] As an example, when testing the CANFD bus, first start the acquisition function of the oscilloscope (equivalent to pressing the run key on the control panel), and then set the parameters for CANFD measurement, such as setting the mathematical operator to subtraction to display the differential voltage difference, setting the channel for capture, setting the vertical scale and zoom, setting the y-axis offset and scale, etc., and set the oscilloscope to the bus mode, adjust the source of the bus signal, set the baud rate of the arbitration field signal and the standard used by CANFD, so that the signal can be captured. Then, collect the signal sent by the DUT (Device Under Test) of the CANFD bus through the oscilloscope, and further perform measurements.

[0063] S120, determine the start bit of the arbitration field data frame in the signal based on the identifier.

[0064] In some embodiments, S120 may specifically include:

[0065] Intercept the CANFD frame corresponding to the identifier in the signal through the preset programmed control function of the oscilloscope. The CANFD frame corresponds to the arbitration field data frame in the signal.

[0066] Determine that the frame start bit of the CANFD frame is the start bit of the arbitration field data frame.

[0067] When obtaining the identifier of the message in the signal, intercept the CANFD frame corresponding to the identifier in the signal. Specifically, intercept it through the preset programmed control function of the oscilloscope. The CANFD frame corresponds to the arbitration field data frame in the signal, and the start bit of the arbitration field data frame may be the frame start bit (SOF) of the CANFD frame.

[0068] As an example, as Figure 2 shown, when the power is on and the oscilloscope is connected, at this time, the oscilloscope can be connected to the two signals of CAN_H and CAN_L respectively, and use the oscilloscope to measure the waveform of the bus CANFD test device. Specifically, the oscilloscope receives the message sent by the bus CANFD test device, and according to the message ID in the message, uses the programmed control function of the oscilloscope to set the trigger condition to this message ID for intercepting the CANFD frame corresponding to this ID. In addition, the relay controls the connection of the KL30 and KL15 of the DUT to achieve various working conditions, and collects the signals of the bus CANFD test device under different working conditions.

[0069] In some examples, the architecture diagram of the positioning system for the arbitration field and the data field may further include resistors R1 and R2 for achieving different working conditions through the programmed control relay.

[0070] S130, calculate the delay time based on the arbitration field baud rate and the preset number of data bits.

[0071] The preset data bit number can be the data bit number set by the user according to experience and actual needs. For example, it can be 30 bits. The delay time can be the time for the oscilloscope to delay backward when intercepting the data frame.

[0072] In some embodiments, S130 may specifically include:

[0073] Calculate the bit time based on the arbitration field baud rate,

[0074] Determine the product of the bit time and the preset data bit number as the delay time.

[0075] The bit time is the reciprocal of the baud rate. For example, if the baud rate is 500K, then the bit time = 1 / 500000 = 0.000002s, that is, 2e -06 . After calculating the bit time, calculate the product of the bit time and the preset data bit number, and determine this product as the delay time. In this way, after delaying from the start bit by the delay time, it is possible to complete delaying the preset data bit number.

[0076] As an example, if the arbitration field baud rate of the message sent by the bus CANFD device under test received is 500K and the data field baud rate is 2M, obtain the number of bits 30 bits to be delayed set by the user, and calculate the bit time based on the arbitration field baud rate of 500K as 0.000002s. Then calculate the product of the bit time 0.000002s and the number of data bits 30 bits, and obtain the delay time as 6e -05 s.

[0077] S140, calculate the target bit of the signal based on the start bit and the delay time, and the target bit is the discrimination bit between the arbitration field data frame and the data field data frame in the signal.

[0078] Delay backward from the start bit by the delay time to obtain the target bit in the signal. The target bit can be used to distinguish the arbitration field data frame and the data field data frame in the signal, that is, this target bit can represent entering the data field from the arbitration field.

[0079] In the embodiments of the present application, the signal sent by the bus CANFD device under test is collected by the oscilloscope. The signal includes an identifier and an arbitration field baud rate, and based on the identifier, the start bit of the arbitration field data frame in the signal is determined. In this way, the identifier can be used as the trigger condition of the oscilloscope to determine the start bit of the arbitration field data frame, avoiding the randomness brought by edge triggering. Then, calculate the delay time according to the arbitration field baud rate and the preset data bit number, and calculate the target bit of the signal based on the start bit and the delay time. The target bit is the discrimination bit between the arbitration field data frame and the data field data frame in the signal. In this way, after positioning the start bit and delaying based on the delay time, it is possible to accurately position and distinguish the arbitration field and the data field, thereby improving the accuracy of the parameter measurement results of the arbitration field and the data field during CANFD bus testing.

[0080] In some embodiments, after S140: calculating the target bit of the signal based on the start bit and the delay time, the method for positioning the arbitration field and the data field may further include:

[0081] Intercepting the data field data frame in the signal according to the target bit to obtain the first data frame of the data field,

[0082] Scaling the first data frame of the data field at a preset scaling ratio to obtain the target data frame of the data field.

[0083] The target bit after being delayed based on the delay time represents entering the data field. Intercept the CANFD data frame in the signal with this target bit to obtain the first data frame of the data field. The preset scaling ratio can be a scaling ratio preset by the user according to needs. For example, it can be 6e -07 . Set the scaling ratio of the oscilloscope to scale the first data frame to obtain a clear and complete target data frame.

[0084] As an example, if the baud rate of the arbitration field of the CANFD message is 500K and the baud rate of the data field is 2M, obtain the number of data bits 30 bits that need to be delayed set by the user, and calculate the delay time as 6e based on the arbitration field baud rate 500K and the number of data bits 30 bits -05 s. Set the delay of the oscilloscope to 6e -05 That is, it can complete delaying 30 bits, so as to stably enter the data field of the standard frame. Then set the scaling ratio to an appropriate ratio, such as 6e -07 , and the oscilloscope can clearly capture the data field data frame, thus completing the test.

[0085] In the embodiments of the present application, by intercepting the data field data frame in the signal according to the target bit to obtain the first data frame of the data field, and scaling the first data frame of the data field at a preset scaling ratio to obtain the target data frame of the data field, in this way, the oscilloscope can clearly capture the target data frame of the data field, improving the accuracy of subsequent testing of the target data frame.

[0086] In some embodiments, the method for positioning the arbitration field and the data field may further include:

[0087] Measuring the waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

[0088] In some embodiments, the measurement values may include at least one of output voltage, bus waveform, rising edge, falling edge, bit time, and level value.

[0089] After positioning the data frames of the data field and the arbitration field, measure the waveform parameters such as the output voltage, bus waveform, rising edge, falling edge, bit time, and level value of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

[0090] In the embodiments of the present application, by measuring the waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values, in this way, by using the method of separately testing the arbitration field and the data field, the effectiveness and accuracy of the measurement results are improved.

[0091] In some embodiments, the positioning method of the arbitration field and the data field may further include:

[0092] When the programmable multimeter is in the connected state, the physical parameters of the data field data frame are measured by the programmable multimeter, and the physical parameters may include at least one of terminal resistance, internal resistance, current, and capacitance.

[0093] The programmable multimeter can be a multimeter that can be used for program control. If the programmable multimeter is in the connected state, the physical parameters such as the terminal resistance, internal resistance, current, and capacitance of the data field data frame are measured by the programmable multimeter, which can be directly measured by the programmable multimeter or indirectly measured by the voltage division method.

[0094] In some embodiments, when the programmable multimeter is in the connected state, measuring the physical parameters by the programmable multimeter may specifically include:

[0095] When the programmable multimeter is in the connected state, the programmable relay group is used to control the programmable multimeter to measure the physical parameters of the data field data frame.

[0096] The programmable relay group can be a relay group that can be used for program control. The connection of the sample to be measured can be controlled by the programmable relay group to simulate special working conditions such as power-on and power-off of the sample to be measured, short circuit or open circuit between the bus and the ground wire, and power supply wire. The programmable relay group can conduct tests on the open circuit and short circuit of the CANFD bus by conducting and disconnecting different paths, which can include working conditions such as CANH open circuit, CANL open circuit, CANH and CANL short circuit, CANH and power supply short circuit, CANL and power supply short circuit, CANH and ground short circuit, and CANL and ground short circuit.

[0097] As an example, as Figure 2 shown, when the power supply is powered on and the programmable multimeter is in the connected state, the programmable multimeter can conduct the on-off between CANH, CANL, the power supply, and the ground through the programmable relay group. At the same time, the programmable relay can be used to set whether the terminal resistance of the CANFD bus is connected to the bus, adjust the on-off of the sample KL30, KL15, KL31, and control whether CANH and CANL are open or short-circuited. Furthermore, the waveform parameters are measured by the oscilloscope, and the values of the terminal resistance, internal resistance, current, and capacitance are measured by the relay-controlled multimeter, so as to realize the physical layer test under various working conditions.

[0098] In the embodiments of the present application, when the programmable multimeter is in the access state, the programmable relay group is used to control the programmable multimeter to measure the physical parameters of the data field data frame of the data field. In this way, there is no need to manually test physical layer parameters such as resistance, and a multimeter can be used for direct measurement to achieve fully automated testing.

[0099] Figure 3 FIG. 6 is a schematic structural diagram of a positioning device 300 for an arbitration field and a data field shown according to an exemplary embodiment.

[0100] As Figure 3 shown, the positioning device 300 for the arbitration field and the data field may include:

[0101] An acquisition module 301, configured to acquire signals sent by a device under test of CANFD through an oscilloscope, where the signals include an identifier and an arbitration field baud rate.

[0102] A determination module 302, configured to determine a start bit of an arbitration field data frame in the signal based on the identifier.

[0103] A calculation module 303, configured to calculate a delay time according to the arbitration field baud rate and a preset number of data bits.

[0104] The calculation module 303 is further configured to calculate a target bit of the signal based on the start bit and the delay time, and the target bit is a differentiation bit between the arbitration field data frame and the data field data frame in the signal.

[0105] In some embodiments, the positioning device 300 for the arbitration field and the data field may include an interception module.

[0106] The interception module is configured to intercept a CANFD frame corresponding to the identifier in the signal through a preset programmable function of the oscilloscope, and the CANFD frame corresponds to the arbitration field data frame in the signal.

[0107] The determination module 302 is configured to determine the frame start bit of the CANFD frame as the start bit of the arbitration field data frame.

[0108] In some embodiments, the calculation module 303 is further configured to calculate a bit time based on the arbitration field baud rate.

[0109] The determination module 302 is further configured to determine that the product of the bit time and the preset number of data bits is the delay time.

[0110] In some embodiments, the positioning device 300 for the arbitration field and the data field may further include an interception module and a scaling module.

[0111] The intercepting module is used to intercept the data field data frame in the signal according to the target bit after calculating the target bit of the signal based on the start bit and the delay time, so as to obtain the first data frame of the data field.

[0112] The scaling module is used to scale the first data frame of the data field at a preset scaling ratio to obtain the target data frame of the data field.

[0113] In some embodiments, the positioning device 300 of the arbitration field and the data field may further include a measurement module.

[0114] The measurement module is used to measure the waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

[0115] In some embodiments, the measurement values may include at least one of output voltage, bus waveform, rising edge, falling edge, bit time, and level value.

[0116] In some embodiments, the measurement module is further used to measure the physical parameters of the data field data frame through a programmable multimeter when the programmable multimeter is in the access state, and the physical parameters include at least one of terminal resistance, internal resistance, current, and capacitance.

[0117] In some embodiments, the positioning device 300 of the arbitration field and the data field may further include a control module.

[0118] The control module is used to control the programmable multimeter to measure the physical parameters of the data field data frame through a programmable relay group when the multimeter is in the access state.

[0119] Thus, the signal sent by the bus CANFD under test of the device is collected by the oscilloscope. The signal includes an identifier and the arbitration field baud rate, and the start bit of the arbitration field data frame in the signal is determined based on the identifier. In this way, the identifier can be used as the trigger condition of the oscilloscope to determine the start bit of the arbitration field data frame, avoiding the randomness brought by edge triggering. Then, the delay time is calculated according to the arbitration field baud rate and the preset number of data bits, and the target bit of the signal is calculated based on the start bit and the delay time. The target bit is the discrimination bit between the arbitration field data frame and the data field data frame in the signal. In this way, after positioning the start bit and delaying based on the delay time, the arbitration field and the data field can be accurately positioned and distinguished, thereby improving the accuracy of the parameter measurement results of the arbitration field and the data field during the CANFD bus test.

[0120] Figure 4 The schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present application is shown.

[0121] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0122] Specifically, the above-mentioned processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured as one or more integrated circuits for implementing the embodiments of the present application.

[0123] The memory 402 may include a mass storage for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 402 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 402 may be internal or external to the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid-state memory.

[0124] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0125] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the arbitration field and data field positioning methods in the above embodiments.

[0126] In one example, the electronic device may further include a communication interface 403 and a bus 410. Among them, as Figure 4 shown, the processor 401, the memory 402, and the communication interface 403 are connected through the bus 410 and complete communication with each other.

[0127] The communication interface 403 is mainly used to implement communication between each module, device, unit, and / or device in the embodiments of the present application.

[0128] The bus 410 includes hardware, software, or both, and couples the components of the arbitration field and the data field positioning devices to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable bus, or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0129] The electronic device can execute the arbitration field and data field positioning method in the embodiments of the present application based on the signals sent by the device under test of the bus CANFD collected by the oscilloscope. The signals include identifiers and arbitration field baud rates, thereby implementing the combination Figure 1 of the arbitration field and data field positioning methods described.

[0130] In addition, in combination with the arbitration field and data field positioning methods in the above embodiments, the embodiments of the present application can be implemented by providing a computer storage medium. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, any one of the arbitration field and data field positioning methods in the above embodiments is implemented.

[0131] It should be clear that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present application.

[0132] The functional blocks shown in the above-described structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present application are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted via a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

[0133] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.

[0134] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block in the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable apparatus for positioning arbitration fields and data fields, to produce a machine such that these instructions executed via the processor of the computer or other programmable apparatus for positioning arbitration fields and data fields enable the implementation of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each block in the block diagrams and / or flowcharts, and the combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware for performing the specified functions or actions, or by a combination of dedicated hardware and computer instructions.

[0135] As described above, this is only the specific implementation manner of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application.

Claims

1. A positioning method for an arbitration field and a data field, characterized in that, Including: Collecting, by means of an oscilloscope, signals sent by the device under test on the CANFD bus, the signals including identifiers and arbitration field baud rates, Determining, based on the identifiers, the start bit of the arbitration field data frame in the signals, Calculating the delay time according to the arbitration field baud rate and the preset number of data bits, Calculating the target bit of the signal based on the start bit and the delay time, the target bit being the differentiating bit between the arbitration field data frame and the data field data frame in the signal; The determining, based on the identifiers, the start bit of the arbitration field data frame in the signals includes: Intercepting, by means of a preset programmed control function of the oscilloscope, the CANFD frame corresponding to the identifiers in the signals, the CANFD frame corresponding to the arbitration field data frame in the signals, Determining the frame start bit of the CANFD frame as the start bit of the arbitration field data frame.

2. The method according to claim 1, wherein The calculating the delay time according to the arbitration field baud rate and the preset number of data bits includes: Calculating the bit time based on the arbitration field baud rate, Determining the product of the bit time and the preset number of data bits as the delay time.

3. The method according to claim 1, characterized in that, After calculating the target bit of the signal based on the start bit and the delay time, the method further includes: Intercepting the data field data frame in the signal according to the target bit to obtain the first data frame of the data field, Scaling the first data frame of the data field at a preset scaling ratio to obtain the target data frame of the data field.

4. The method according to claim 1, wherein The method further includes: Measuring the waveform parameters of the arbitration field data frame and the data field data frame respectively to obtain measurement values.

5. The method according to claim 4, characterized in that, The measurement values include at least one of output voltage, bus waveform, rising edge, falling edge, bit time, and level value.

6. The method according to claim 1, characterized in that The method further includes: When the programmable multimeter is in the connected state, measuring the physical parameters of the data field data frame by means of the programmable multimeter, the physical parameters including at least one of terminal resistance, internal resistance, current, and capacitance.

7. The method according to claim 6, wherein The measuring the physical parameters by means of the programmable multimeter when the programmable multimeter is in the connected state includes: When the programmable multimeter is in the connected state, controlling the programmable multimeter to measure the physical parameters of the data field data frame by means of a programmable relay group.

8. A positioning device for an arbitration field and a data field, characterized in that, Including: An acquisition module, configured to collect, by means of an oscilloscope, signals sent by the device under test on the CANFD bus, the signals including identifiers and arbitration field baud rates, A determination module, configured to determine, based on the identifiers, the start bit of the arbitration field data frame in the signals, A calculation module, configured to calculate the delay time according to the arbitration field baud rate and the preset number of data bits, The calculation module is further configured to calculate the target bit of the signal based on the start bit and the delay time, the target bit being the differentiating bit between the arbitration field data frame and the data field data frame in the signal; The determination module includes: an intercepting module, configured to intercept, by means of a preset programmed control function of the oscilloscope, the CANFD frame corresponding to the identifiers in the signals, the CANFD frame corresponding to the arbitration field data frame in the signals; A determination module, configured to determine the frame start bit of the CANFD frame as the start bit of the arbitration field data frame.

9. The device according to claim 8, characterized in that The calculation module is further configured to calculate the bit time based on the arbitration field baud rate, The determining module is further configured to determine that the product of the bit time and the preset number of data bits is the delay time.

Citation Information

Patent Citations

  • Oscilloscope signal decoding method and device, and oscilloscope

    CN108226598A

  • CAN network sampling point detection method, device and system and storage medium

    CN110198255A