CN108965274A - The analysis method and device of DBC file - Google Patents
The analysis method and device of DBC file Download PDFInfo
- Publication number
- CN108965274A CN108965274A CN201810714878.XA CN201810714878A CN108965274A CN 108965274 A CN108965274 A CN 108965274A CN 201810714878 A CN201810714878 A CN 201810714878A CN 108965274 A CN108965274 A CN 108965274A
- Authority
- CN
- China
- Prior art keywords
- signal
- message
- currently chosen
- dbc
- processing unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of analysis method and device of DBC file, analytic method includes packet parsing step, and packet parsing step is the following steps are included: read a DBC file;Show DBC file;The message currently chosen is parsed according to DBC database;The digital signal position for each signal that the message currently chosen includes is shown in a manner of matrix arrangement, each signal is shown by a corresponding color respectively.The present invention parses DBC file, the content of database is visualized, engineer is intuitively presented in a manner of matrix arrangement, real-time display data, and each signal is shown with different color, keep engineer more intuitive, convenient when data are checked, reading efficiency is improved, to improve the efficiency of system development, debugging and test.
Description
Technical field
The present invention relates to data analytic technique field more particularly to a kind of DBC file (database file, a kind of .dbc lattice
The file of formula .dbc extension name can be used for defining CAN network) analysis method and device.
Background technique
CAN (Controller Area Network, controller local area network) communication is a kind of real-time, reliable, simple
Network communication largely applies to the electric industries such as industrial manufacture, vehicle, robot.
Currently, generally carrying out data parsing for the CAN bus technology used in vehicle with DBC database format, setting
In standby debugging process, a large amount of signals need to read, and each signal will confirm, and need whether quickly to dock each signal
Correctly, still, DBC format had not only been supported in the prior art but also CAN bus analysis tool convenient to use, cause seriously to reduce
The efficiency of system development, debugging and test.
Summary of the invention
A brief summary of one or more aspects is given below to provide to the basic comprehension in terms of these.This general introduction is not
The extensive overview of all aspects contemplated, and be both not intended to identify critical or decisive element in all aspects also non-
Attempt to define the range in terms of any or all.Its unique purpose is to provide the one of one or more aspects in simplified form
A little concepts are with the sequence for more detailed description given later.
The technical problem to be solved by the present invention is to not only not support DBC format in the prior art but also convenient to use to overcome
CAN bus analysis tool, cause seriously reduce system development, debugging and test efficiency defect, a kind of DBC file is provided
Analysis method and device.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of analytic method of DBC file, the analytic method include packet parsing step, the packet parsing step packet
Include following steps:
Read a DBC file;
Show the DBC file;
The message currently chosen is parsed according to DBC database;
The digital signal position for each signal that the message currently chosen includes is shown in a manner of matrix arrangement, each letter
It number is shown respectively by a corresponding color.
Optionally, the step of executing the digital signal position for showing each signal that the message currently chosen includes it
Afterwards, the packet parsing step is further comprising the steps of:
CAN bus, the CAN communication data that real time parsing receives are accessed, and are shown currently in a manner of matrix arrangement
The information for each signal that the message chosen includes.
Optionally, execute it is described according to DBC database come after the step of parsing the message currently chosen, the message solution
It is further comprising the steps of to analyse step:
Show the attribute information for the message currently chosen.
Optionally, it is described show currently choose message attribute information the step of in, the attribute information of the message
Message name, transmission types, extension frame, message length, ID (identifier), period and annotation including message.
Optionally, the analytic method further includes the signal resolution step executed side by side with the packet parsing step, institute
State signal resolution step the following steps are included:
Read a DBC file;
Show the signal that the DBC file includes;
The signal currently chosen is parsed according to DBC database;
The digital signal position for the signal currently chosen is shown in a manner of matrix arrangement, each signal passes through correspondence respectively
A color be shown.
Optionally, after the step of executing the digital signal position of the signal for showing and currently choosing, the signal resolution
Step is further comprising the steps of:
CAN bus, the CAN communication data that real time parsing receives are accessed, and are shown currently in a manner of matrix arrangement
The information for the signal chosen.
Optionally, execute it is described according to DBC database come after the step of parsing the signal currently chosen, the signal solution
It is further comprising the steps of to analyse step:
Show the attribute information for the signal currently chosen.
Optionally, it is described show currently choose signal attribute information the step of in, the attribute information of the signal
Signal name, physical values, transmission types including signal, extension frame, message length, ID, the period, bus value, precision, start bit,
Signal length, offset, physical maximum, physics minimum value, default value, unit, array format, data type, annotation and value
Description.
Optionally, when executing the packet parsing step,
The DBC file is read by tool of a programming development environment,
In the operation interface of described program exploitation environment, show that the message currently chosen includes in a manner of matrix arrangement
Each signal digital signal position;
When executing the signal resolution step,
The DBC file is read using described program exploitation environment as tool,
In the operation interface of described program exploitation environment, the number for the signal currently chosen is shown in a manner of matrix arrangement
Word signal position.
Optionally, described program exploitation environment is LabVIEW (a kind of programming development environment).
A kind of resolver of DBC file, including processing unit and display unit;
The processing unit and the display unit communicate to connect;
The processing unit is configured to read a DBC file;
The display unit is configured to show the DBC file, and receives the instruction for choosing a message;
The processing unit is additionally configured to parse the message currently chosen according to DBC database;
The display unit is additionally configured to show each signal that the message currently chosen includes in a manner of matrix arrangement
Digital signal position, each signal is shown by a corresponding color respectively.
Optionally, the resolver further includes CAN data acquisition unit;
The CAN data acquisition unit and the processing unit communicate to connect;
After the display unit shows the digital signal position for each signal that the message currently chosen includes, the CAN
Data acquisition unit is configured to access CAN bus, and real-time reception CAN communication Data Concurrent is sent to the processing unit;
The processing unit is additionally configured to the CAN communication data that real time parsing receives;
After the CAN communication data that the processing unit parsing receives, the display unit is additionally configured to arrange with matrix
The mode of column shows the information for each signal that the message currently chosen includes.
Optionally, it after the processing unit parses the message currently chosen according to DBC database, is additionally configured to generate
The attribute information for the message currently chosen;
The display unit is additionally configured to show the attribute information for the message currently chosen.
Optionally, the attribute information of the message include the message name of message, transmission types, extension frame, message length,
ID, period and annotation.
Optionally, after the processing unit reads the DBC file,
The display unit is additionally configured to show the signal that the DBC file includes, and receives the finger for choosing a signal
It enables;
The processing unit is additionally configured to parse the signal currently chosen according to DBC database;
The display unit is additionally configured to show the digital signal position for the signal currently chosen in a manner of matrix arrangement.
Optionally, the resolver further includes CAN data acquisition unit;
The CAN data acquisition unit and the processing unit communicate to connect;
After the display unit shows the digital signal position for the signal currently chosen, the CAN data acquisition unit is matched
It is set to access CAN bus, real-time reception CAN communication Data Concurrent is sent to the processing unit;
The processing unit is additionally configured to the CAN communication data that real time parsing receives, and in a manner of matrix arrangement
Show the information for the signal currently chosen.
Optionally, it after the processing unit parses the signal currently chosen according to DBC database, is additionally configured to generate
The attribute information for the signal currently chosen;
The display unit is additionally configured to show the attribute information for the signal currently chosen.
Optionally, the attribute information of the signal includes the signal name of signal, physical values, transmission types, extension frame, message
Length, ID, the period, bus value, precision, start bit, signal length, offset, physical maximum, physics minimum value, default value,
Unit, array format, data type, annotation and value description.
Optionally, the processing unit is configured to read the DBC file by tool of a programming development environment;
The display unit is configured in the operation interface that described program develops environment, is shown in a manner of matrix arrangement
The digital signal position for each signal that the message currently chosen includes;
When the processing unit is additionally configured to according to DBC database to parse the signal currently chosen, the displaying is single
Member is configured in the operation interface that described program develops environment, and the number for the signal currently chosen is shown in a manner of matrix arrangement
Word signal position.
Optionally, described program exploitation environment is LabVIEW.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention
Apply example.
The positive effect of the present invention is that:
The present invention parses DBC file, and the content of database is visualized, intuitive in a manner of matrix arrangement
Ground is presented to engineer, real-time display data, and each signal and is shown with different colors, makes engineer in data school
It is more intuitive when core, convenient, reading efficiency is improved, to improve the efficiency of system development, debugging and test.
Detailed description of the invention
After the detailed description for reading embodiment of the disclosure in conjunction with the following drawings, it better understood when of the invention
Features described above and advantage.In the accompanying drawings, each component is not necessarily drawn to scale, and has similar correlation properties or feature
Component may have same or similar appended drawing reference.
Fig. 1 is the flow chart of the packet parsing step of the analytic method of the DBC file of present pre-ferred embodiments.
Fig. 2 is the flow chart of the signal resolution step of the analytic method of the DBC file of present pre-ferred embodiments.
Fig. 3 is the structural schematic diagram of the resolver of the DBC file of present pre-ferred embodiments.
Fig. 4 is the schematic diagram of the first operation interface of the displaying message of present pre-ferred embodiments.
Fig. 5 is the schematic diagram of the second operation interface of the displaying message of present pre-ferred embodiments.
Fig. 6 is the schematic diagram of the third operation interface of the displaying signal of present pre-ferred embodiments.
Fig. 7 is the schematic diagram of the 4th operation interface of the displaying signal of present pre-ferred embodiments.
Description of symbols:
Processing unit 1
Display unit 2
CAN data acquisition unit 3
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.Note that below in conjunction with attached drawing and specifically real
The aspects for applying example description is merely exemplary, and is understood not to carry out any restrictions to protection scope of the present invention.
It provides and is described below so that those skilled in the art can implement and using the present invention and be incorporated into specific
In application background.Various modifications and various uses in different application will be readily apparent for those skilled in the art
, and general principle defined herein is applicable to the embodiment of wider range.The present invention is not limited to herein as a result,
The embodiment provided, but the broadest range consistent with principle disclosed herein and novel features should be awarded.
In the following detailed description, many specific details are elaborated to provide to more thorough understanding of the invention.However, right
In it should be apparent to those skilled in the art that practice of the invention can need not be confined to these details.In other words, known
Structure and device be shown in block diagram form without display the details of, to avoid the fuzzy present invention.
Note that use in the case where, it is mark left, right, front and rear, top, bottom, positive and negative, clockwise and anticlockwise only
It is used for convenience, and does not imply that any specific fixed-direction.In fact, they are used for reflection pair
Relative position and/or direction between the various pieces of elephant.
The present embodiment provides a kind of analytic method of DBC file, the analytic method include packet parsing step and with institute
State the signal resolution step that packet parsing step executes side by side.
As shown in Figure 1, the packet parsing step the following steps are included:
Step 101 reads DBC file.
In this step, the DBC file is read by tool of a programming development environment.
In the present embodiment, described program exploitation environment is LabVIEW.LabVIEW software programming environment is installed,
LabVIEW provides pattern development, and variable is transmitted in the form of line.Respectively with operation interface and programming interface, use is allowed
Desired function is realized faster in family.
In this step, the DBC file is parsed, and reads the key signal of model composition: place ID, arrangement lattice
The information such as formula, data type, start bit, length, precision, offset, unit.
Step 102 shows the message that DBC file includes.
In this step, the DBC file is shown using structure tree list.
Refering to what is shown in Fig. 4, left side is DBC list in the operation interface of LabVIEW, different message (examples can be opened
Such as, " OBC_2_Inlet "), the signal of current message can also be unfolded.
The message that step 103, parsing are currently chosen.
In this step, definition structure number information obtains mouse choice information using event triggered fashion.User can
It is selected to open a message according to list, refering to what is shown in Fig. 4, mouse chooses " OBC_2_Inlet " message, after choosing, according to DBC number
The message currently chosen is parsed according to library.
The attribute information of message that step 104, displaying are currently chosen and comprising each signal digital signal position.
In this step, refering to what is shown in Fig. 4, in the right side display frames of the operation interface of LabVIEW, when selecting a message
When (" OBC_2_Inlet "), the digital signal for each signal that the message currently chosen includes is shown in a manner of matrix arrangement
Position, each signal be shown respectively by a corresponding color (in Fig. 4 signal show position each signal actually divide
Do not shown with different colors), and hide the distinctive information of signal.
In this step, refering to what is shown in Fig. 4, in the right side display frames of the operation interface of LabVIEW, when selecting a message
When (" OBC_2_Inlet "), the attribute information for the message currently chosen is also showed that.
In the present embodiment, the attribute information of the message includes the message name of message, transmission types, extension frame, message
Length, ID, period and annotation.
In the present embodiment, when not receiving data (as shown in Figure 4), by its signal array format sequence digital display
Show, and uses color as differentiation.
Step 105, access CAN bus.
In this step, CAN bus is accessed by CAN data collecting plate card, receive CAN communication data and parses reception
The CAN communication data arrived.
The information for each signal that the message that step 106, displaying are currently chosen includes.
In this step, refering to what is shown in Fig. 5, in the right side display frames of the operation interface of LabVIEW, with matrix arrangement
Mode show each signal that the message currently chosen includes information (in Fig. 5 signal show position each signal with " 0 ", " 1 "
To indicate).
In the present embodiment, there are two individual threads in software, carry out data interaction using queue.Process one will
CAN communication data are sequentially stored into queue, and two real-time query quene state of process reads data, and sentence when data is received
It is disconnected whether identical with current selection message, if identical, successively according to scheduled interface display.
In the present embodiment, when data is received (as shown in Figure 5), its signal is filled by correct data, equally
It is distinguished using color.
As shown in Fig. 2, the signal resolution step the following steps are included:
Step 201 reads DBC file.
In this step, the DBC file is read with LabVIEW tool.
Step 202 shows the signal that DBC file includes.
In the present embodiment, message comprising an at least signal or does not include signal.
In this step, refering to what is shown in Fig. 6, in the operation interface of LabVIEW, left side is DBC list, can be opened not
Same message (for example, " OBC_2_Inlet "), can also be unfolded the signal (for example, " OBC_2_Chksum ") of current message.
The signal that step 203, parsing are currently chosen.
In this step, user can select to open a signal according to list, refering to what is shown in Fig. 6, mouse chooses " OBC_2_
After choosing, the signal currently chosen is parsed according to DBC database for Chksum " signal.
The attribute information for the signal that step 204, displaying are currently chosen and digital signal position.
In this step, refering to what is shown in Fig. 6, in the right side display frames of the operation interface of LabVIEW, when selecting a signal
When (" OBC_2_Chksum "), the digital signal position for the signal currently chosen, each signal are shown in a manner of matrix arrangement
It is shown respectively by a corresponding color, color filling only is carried out to the signal currently chosen, and be highlighted.
In this step, refering to what is shown in Fig. 6, in the right side display frames of the operation interface of LabVIEW, when selecting a signal
When (" OBC_2_Chksum "), the attribute information for the signal currently chosen is also showed that.
In the present embodiment, the attribute information of the signal includes the signal name of signal, physical values, transmission types, extension
Frame, message length, ID, the period, bus value, precision, start bit, signal length, offset, physical maximum, physics minimum value,
Default value, unit, array format, data type, annotation and value description.
Step 205, access CAN bus.
In this step, CAN bus is accessed by CAN data collecting plate card, receive CAN communication data and parses reception
The CAN communication data arrived.
The information for the signal that step 206, displaying are currently chosen.
In this step, refering to what is shown in Fig. 7, in the right side display frames of the operation interface of LabVIEW, with matrix arrangement
Mode shows that (signal shows that the signal of position is indicated with " 0 ", " 1 " in Fig. 7, the signal chosen for the information of the signal currently chosen
For " OBC_ACchrgMaxPwAllow ").
The analytic method of DBC file provided in this embodiment visualizes the content of DBC database, with matrix arrangement
Mode be intuitively presented to engineer, real-time display data, and each signal and shown with different colors, make engineering
Teacher is more intuitive, convenient when data are checked, and reading efficiency is improved, to improve the effect of system development, debugging and test
Rate.
As shown in figure 3, the present embodiment also provides a kind of resolver of DBC file, the resolver includes that processing is single
Member 1, display unit 2 and CAN data acquisition unit 3, processing unit 1 are logical with display unit 2 and CAN data acquisition unit 3 respectively
Letter connection.
In the present embodiment, processing unit 1 can be the processor of calculating equipment, but not limit processing unit 1 specifically,
As long as being able to achieve corresponding function, can be selected accordingly according to the actual situation.
In the present embodiment, display unit 2 can be display screen, but not limit display unit 2 specifically, as long as being able to achieve
Corresponding function can be selected accordingly according to the actual situation.
In the present embodiment, CAN data acquisition unit 3 can be CAN data collecting plate card, but not limit CAN specifically
Data acquisition unit 3 can be selected accordingly according to the actual situation as long as being able to achieve corresponding function.
Processing unit 1 is configured to read a DBC file by tool of a programming development environment.
In the present embodiment, described program exploitation environment is LabVIEW.LabVIEW software programming environment is installed,
LabVIEW provides pattern development, and variable is transmitted in the form of line.Respectively with operation interface and programming interface, use is allowed
Desired function is realized faster in family.
In the present embodiment, processing unit 1 parses the DBC file, and reads the key signal of model composition: place
The information such as ID, array format, data type, start bit, length, precision, offset, unit.
Display unit 2 is configured so that structure tree list shows the DBC file.
Refering to what is shown in Fig. 4, left side is DBC list, can be beaten in the operation interface for the LabVIEW that display unit 2 is shown
Different messages (for example, " OBC_2_Inlet ") is opened, the signal of current message can also be unfolded.
Processing unit 1 is additionally configured to parse the message currently chosen according to DBC database.
In the present embodiment, definition structure number information obtains mouse choice information using event triggered fashion.User
It can be selected to open a message according to list, display unit 2 is configured to receive the instruction for choosing the message, refering to what is shown in Fig. 4, mouse
Mark chooses " OBC_2_Inlet " message, and after choosing, processing unit 1 parses the message currently chosen according to DBC database.
Display unit 2 be additionally configured to show the attribute information of message currently chosen and comprising each signal number letter
Number position.
In the present embodiment, refering to what is shown in Fig. 4, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, when selecting a message (" OBC_2_Inlet "), display unit 2 shows the report currently chosen in a manner of matrix arrangement
The digital signal position for each signal that text includes, each signal (are believed respectively by a corresponding color to be shown in Fig. 4
Number display position each signal actually shown respectively with different colors), and hide the distinctive information of signal.
In the present embodiment, refering to what is shown in Fig. 4, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, when selecting a message (" OBC_2_Inlet "), the attribute information for the message currently chosen is also showed that.
In the present embodiment, the attribute information of the message includes the message name of message, transmission types, extension frame, message
Length, ID, period and annotation can be shown accordingly with default no attribute information according to the parsing of practical DBC.
CAN data acquisition unit 3 is configured to access CAN bus, and real-time reception CAN communication Data Concurrent is sent to processing unit
1。
Processing unit 1 is additionally configured to receive CAN communication data and parses the CAN communication data received.
After parsing the CAN communication data received, display unit 2 is additionally configured to show in a manner of matrix arrangement current
The information for each signal that the message chosen includes.
In the present embodiment, refering to what is shown in Fig. 5, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, shown in a manner of matrix arrangement each signal that the message currently chosen includes information (in Fig. 5 signal show position
Each signal is indicated with " 0 ", " 1 ").
In the present embodiment, there are two individual threads in software, carry out data interaction using queue.Process one will
CAN communication data are sequentially stored into queue, and two real-time query quene state of process reads data, and sentence when data is received
It is disconnected whether identical with current selection message, if identical, successively according to scheduled interface display.
Display unit 2 is additionally configured to show the signal that the DBC file includes.
In the present embodiment, message comprising an at least signal or does not include signal.
In the present embodiment, refering to what is shown in Fig. 6, left side is in the operation interface for the LabVIEW that display unit 2 is shown
DBC list can open different messages (for example, " OBC_2_Inlet "), can also be unfolded current message signal (for example,
“OBC_2_Chksum”)。
Processing unit 1 is additionally configured to parse the signal currently chosen according to DBC database.
In the present embodiment, user can select to open a signal according to list, and display unit 2 is configured to receive described in selection
The instruction of signal, refering to what is shown in Fig. 6, mouse chooses " OBC_2_Chksum " signal, after choosing, processing unit 1 is according to DBC data
Library parses the signal currently chosen.
Display unit 2 is configured to show attribute information and the digital signal position of the signal currently chosen.
In the present embodiment, refering to what is shown in Fig. 6, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, when selecting a signal (" OBC_2_Chksum "), display unit 2 shows the letter currently chosen in a manner of matrix arrangement
Number digital signal position, each signal is shown by a corresponding color respectively, only to the signal currently chosen into
Row color filling, and be highlighted.
In the present embodiment, refering to what is shown in Fig. 6, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, when selecting a signal (" OBC_2_Chksum "), display unit 2 also shows that the attribute information for the signal currently chosen.
In the present embodiment, the attribute information of the signal includes the signal name of signal, physical values, transmission types, extension
Frame, message length, ID, the period, bus value, precision, start bit, signal length, offset, physical maximum, physics minimum value,
Default value, unit, array format, data type, annotation and value description.
After parsing the CAN communication data received, display unit 2 is additionally configured to show in a manner of matrix arrangement current
The information for the signal chosen.
In the present embodiment, refering to what is shown in Fig. 7, being shown on the right side of the operation interface of the LabVIEW of the displaying of display unit 2
In frame, shown in a manner of matrix arrangement the signal currently chosen information (in Fig. 7 signal show position signal with " 0 ", " 1 "
It indicates, the signal chosen is " OBC_ACchrgMaxPwAllow ").
The resolver of DBC file provided in this embodiment visualizes the content of DBC database, with matrix arrangement
Mode be intuitively presented to engineer, real-time display data, and each signal and shown with different colors, make engineering
Teacher is more intuitive, convenient when data are checked, and reading efficiency is improved, to improve the effect of system development, debugging and test
Rate.
Although for simplify explain the above method is illustrated to and is described as a series of actions, it should be understood that and understand,
The order that these methods are not acted is limited, because according to one or more embodiments, some movements can occur in different order
And/or with from it is depicted and described herein or herein it is not shown and describe but it will be appreciated by those skilled in the art that other
Movement concomitantly occurs.
Offer is to make any person skilled in the art all and can make or use this public affairs to the previous description of the disclosure
It opens.The various modifications of the disclosure all will be apparent for a person skilled in the art, and as defined herein general
Suitable principle can be applied to other variants without departing from the spirit or scope of the disclosure.The disclosure is not intended to be limited as a result,
Due to example described herein and design, but should be awarded and principle disclosed herein and novel features phase one
The widest scope of cause.
Claims (20)
1. a kind of analytic method of DBC file, which is characterized in that the analytic method includes packet parsing step, the message
Analyzing step the following steps are included:
Read a DBC file;
Show the DBC file;
The message currently chosen is parsed according to DBC database;
The digital signal position for each signal that the message currently chosen includes, each signal point are shown in a manner of matrix arrangement
It is not shown by a corresponding color.
2. analytic method as described in claim 1, which is characterized in that execution is described to show that the message currently chosen includes each
After the step of digital signal position of a signal, the packet parsing step is further comprising the steps of:
CAN bus, the CAN communication data that real time parsing receives are accessed, and is shown in a manner of matrix arrangement and is currently chosen
Message each signal for including information.
3. analytic method as described in claim 1, which is characterized in that execution is described to parse current choosing according to DBC database
In message the step of after, the packet parsing step is further comprising the steps of:
Show the attribute information for the message currently chosen.
4. analytic method as claimed in claim 3, which is characterized in that in the attribute information of the message for showing and currently choosing
The step of in, the attribute information of the message include the message name of message, transmission types, extension frame, message length, ID, period
And annotation.
5. analytic method as described in claim 1, which is characterized in that the analytic method further includes walking with the packet parsing
Suddenly the signal resolution step that executes side by side, the signal resolution step the following steps are included:
Read a DBC file;
Show the signal that the DBC file includes;
The signal currently chosen is parsed according to DBC database;
The digital signal position for the signal currently chosen is shown in a manner of matrix arrangement, each signal passes through corresponding one respectively
Color is shown.
6. analytic method as claimed in claim 5, which is characterized in that execute the number letter of the signal for showing and currently choosing
After the step of number position, the signal resolution step is further comprising the steps of:
CAN bus, the CAN communication data that real time parsing receives are accessed, and is shown in a manner of matrix arrangement and is currently chosen
Signal information.
7. analytic method as claimed in claim 5, which is characterized in that execution is described to parse current choosing according to DBC database
In signal the step of after, the signal resolution step is further comprising the steps of:
Show the attribute information for the signal currently chosen.
8. analytic method as claimed in claim 7, which is characterized in that in the attribute information of the signal for showing and currently choosing
The step of in, the attribute information of the signal include the signal name of signal, physical values, transmission types, extension frame, message length,
ID, the period, bus value, precision, start bit, signal length, offset, physical maximum, physics minimum value, default value, unit,
Array format, data type, annotation and value description.
9. the analytic method as described in any one of claim 1~8, which is characterized in that execute the packet parsing step
When,
The DBC file is read by tool of a programming development environment,
In the operation interface of described program exploitation environment, show that the message currently chosen includes each in a manner of matrix arrangement
The digital signal position of a signal;
When executing the signal resolution step,
The DBC file is read using described program exploitation environment as tool,
In the operation interface of described program exploitation environment, the number letter for the signal currently chosen is shown in a manner of matrix arrangement
Number position.
10. analytic method as claimed in claim 9, which is characterized in that it is LabVIEW that described program, which develops environment,.
11. a kind of resolver of DBC file, which is characterized in that including processing unit and display unit;
The processing unit and the display unit communicate to connect;
The processing unit is configured to read a DBC file;
The display unit is configured to show the DBC file, and receives the instruction for choosing a message;
The processing unit is additionally configured to parse the message currently chosen according to DBC database;
The display unit is additionally configured to the number for each signal for showing that the message currently chosen includes in a manner of matrix arrangement
Word signal position, each signal are shown by a corresponding color respectively.
12. resolver as claimed in claim 11, which is characterized in that the resolver further includes that the acquisition of CAN data is single
Member;
The CAN data acquisition unit and the processing unit communicate to connect;
After the display unit shows the digital signal position for each signal that the message currently chosen includes, the CAN data
Acquisition unit is configured to access CAN bus, and real-time reception CAN communication Data Concurrent is sent to the processing unit;
The processing unit is additionally configured to the CAN communication data that real time parsing receives;
After the CAN communication data that the processing unit parsing receives, the display unit is additionally configured to matrix arrangement
Mode shows the information for each signal that the message currently chosen includes.
13. resolver as claimed in claim 11, which is characterized in that the processing unit is parsed according to DBC database
After the message currently chosen, it is additionally configured to generate the attribute information for the message currently chosen;
The display unit is additionally configured to show the attribute information for the message currently chosen.
14. resolver as claimed in claim 13, which is characterized in that the attribute information of the message includes the message of message
Name, transmission types, extension frame, message length, ID, period and annotation.
15. resolver as claimed in claim 11, which is characterized in that after the processing unit reads the DBC file,
The display unit is additionally configured to show the signal that the DBC file includes, and receives the instruction for choosing a signal;
The processing unit is additionally configured to parse the signal currently chosen according to DBC database;
The display unit is additionally configured to show the digital signal position for the signal currently chosen in a manner of matrix arrangement.
16. resolver as claimed in claim 15, which is characterized in that the resolver further includes that the acquisition of CAN data is single
Member;
The CAN data acquisition unit and the processing unit communicate to connect;
After the display unit shows the digital signal position for the signal currently chosen, the CAN data acquisition unit is configured to
CAN bus is accessed, real-time reception CAN communication Data Concurrent is sent to the processing unit;
The processing unit is additionally configured to the CAN communication data that real time parsing receives, and is shown in a manner of matrix arrangement
The information for the signal currently chosen.
17. resolver as claimed in claim 15, which is characterized in that the processing unit is parsed according to DBC database
After the signal currently chosen, it is additionally configured to generate the attribute information for the signal currently chosen;
The display unit is additionally configured to show the attribute information for the signal currently chosen.
18. resolver as claimed in claim 17, which is characterized in that the attribute information of the signal includes the signal of signal
Name, physical values, transmission types, extension frame, message length, ID, period, bus value, precision, start bit, signal length, offset
Amount, physical maximum, physics minimum value, default value, unit, array format, data type, annotation and value description.
19. the resolver as described in any one of claim 11~18, which is characterized in that the processing unit is configured to
The DBC file is read by tool of a programming development environment;
The display unit is configured in the operation interface that described program develops environment, is shown in a manner of matrix arrangement current
The digital signal position for each signal that the message chosen includes;
When the processing unit is additionally configured to according to DBC database to parse the signal currently chosen, the display unit is matched
It is set in the operation interface of described program exploitation environment, the number letter for the signal currently chosen is shown in a manner of matrix arrangement
Number position.
20. resolver as claimed in claim 19, which is characterized in that it is LabVIEW that described program, which develops environment,.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810714878.XA CN108965274A (en) | 2018-06-29 | 2018-06-29 | The analysis method and device of DBC file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810714878.XA CN108965274A (en) | 2018-06-29 | 2018-06-29 | The analysis method and device of DBC file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108965274A true CN108965274A (en) | 2018-12-07 |
Family
ID=64485270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810714878.XA Pending CN108965274A (en) | 2018-06-29 | 2018-06-29 | The analysis method and device of DBC file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965274A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769002A (en) * | 2019-11-01 | 2020-02-07 | 上海电气集团股份有限公司 | LabVIEW-based message analysis method, system, electronic device and medium |
CN111427940A (en) * | 2020-03-26 | 2020-07-17 | 陶朝林 | Self-adaptive database conversion method and device |
CN112378420A (en) * | 2020-10-30 | 2021-02-19 | 北斗星通智联科技有限责任公司 | Signal simulation method and system for automobile navigation test and electronic equipment |
CN113867318A (en) * | 2021-09-30 | 2021-12-31 | 东风汽车集团股份有限公司 | Automatic integration method for hardware-in-loop test engineering of CAN communication controller |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102592414A (en) * | 2012-02-23 | 2012-07-18 | 北京智华驭新汽车电子技术开发有限公司 | Test platform of driver active safety early warning system |
CN103246765A (en) * | 2013-04-24 | 2013-08-14 | 胡松伟 | Developing method for equipping virtual training platform |
CN103605349A (en) * | 2013-11-26 | 2014-02-26 | 厦门雅迅网络股份有限公司 | Remote data real-time collection, analysis and statistical system and method based on CAN-bus |
US20140101636A1 (en) * | 2012-10-08 | 2014-04-10 | National Instruments Corporation | Automated Analysis of Compilation Processes in a Graphical Specification and Constraint Language |
CN104460429A (en) * | 2014-11-04 | 2015-03-25 | 盛瑞传动股份有限公司 | CAN signal analyzing method and device |
CN106919484A (en) * | 2017-03-06 | 2017-07-04 | 广州致远电子股份有限公司 | A kind of universal serial bus Time Series Analysis Method and device |
CN107992026A (en) * | 2017-12-13 | 2018-05-04 | 南京越博动力系统股份有限公司 | A kind of method of the parsing DBC analysis messages based on LABVEIW |
-
2018
- 2018-06-29 CN CN201810714878.XA patent/CN108965274A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102592414A (en) * | 2012-02-23 | 2012-07-18 | 北京智华驭新汽车电子技术开发有限公司 | Test platform of driver active safety early warning system |
US20140101636A1 (en) * | 2012-10-08 | 2014-04-10 | National Instruments Corporation | Automated Analysis of Compilation Processes in a Graphical Specification and Constraint Language |
CN103246765A (en) * | 2013-04-24 | 2013-08-14 | 胡松伟 | Developing method for equipping virtual training platform |
CN103605349A (en) * | 2013-11-26 | 2014-02-26 | 厦门雅迅网络股份有限公司 | Remote data real-time collection, analysis and statistical system and method based on CAN-bus |
CN104460429A (en) * | 2014-11-04 | 2015-03-25 | 盛瑞传动股份有限公司 | CAN signal analyzing method and device |
CN106919484A (en) * | 2017-03-06 | 2017-07-04 | 广州致远电子股份有限公司 | A kind of universal serial bus Time Series Analysis Method and device |
CN107992026A (en) * | 2017-12-13 | 2018-05-04 | 南京越博动力系统股份有限公司 | A kind of method of the parsing DBC analysis messages based on LABVEIW |
Non-Patent Citations (4)
Title |
---|
ZHANJIWUSHUANG: "《labview 怎样分析CAN数据并实时显示 》", 《中国电子技术论坛》 * |
六月酒香: "《怎么用labview的树型控件来切换界面》", 《中国电子技术论坛》 * |
咚咚需要些加大马力: "《关于CAN报文解析的实验》", 《新浪博客》 * |
钟文浩: "《电动汽车CAN报文的解析及应用》", 《汽车电器》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110769002A (en) * | 2019-11-01 | 2020-02-07 | 上海电气集团股份有限公司 | LabVIEW-based message analysis method, system, electronic device and medium |
CN111427940A (en) * | 2020-03-26 | 2020-07-17 | 陶朝林 | Self-adaptive database conversion method and device |
CN111427940B (en) * | 2020-03-26 | 2023-09-05 | 陶朝林 | Self-adaptive database conversion method and device |
CN112378420A (en) * | 2020-10-30 | 2021-02-19 | 北斗星通智联科技有限责任公司 | Signal simulation method and system for automobile navigation test and electronic equipment |
CN113867318A (en) * | 2021-09-30 | 2021-12-31 | 东风汽车集团股份有限公司 | Automatic integration method for hardware-in-loop test engineering of CAN communication controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965274A (en) | The analysis method and device of DBC file | |
Jensen et al. | Coloured Petri Nets and CPN Tools for modelling and validation of concurrent systems | |
CN102402481B (en) | The fuzz testing of asynchronous routine code | |
US7950004B2 (en) | Devices systems and methods for testing software | |
CN106021102B (en) | The generation method and device of automatic test file | |
US8155769B2 (en) | Industrial control with integrated machine vision | |
EP1679601A2 (en) | Method for automatic graphical profiling of a dialog system | |
CN102222043B (en) | Testing method and testing device | |
CN102246471A (en) | Testing apparatus and test method | |
CN109299150A (en) | A kind of configurable multi-data source adaptation rule engine solution | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN108920496A (en) | A kind of rendering method and device | |
US20050091026A1 (en) | Modelling and simulation method | |
CN108768790A (en) | Distributed search cluster monitoring method and device, computing device, storage medium | |
CN113722020A (en) | Interface calling method, device and computer readable storage medium | |
Gehlot | From petri NETS to colored petri NETS: A tutorial introduction to NETS based formalism for modeling and simulation | |
CN109189679A (en) | Interface test method and system, electronic equipment, storage medium | |
US5812145A (en) | Message sequence chart analyzer | |
CN102110045A (en) | Simulator for displaying debugging information in real time | |
EP2972880A1 (en) | Kernel functionality checker | |
CN110334001A (en) | A kind of method and apparatus that batch automatically generates echo test | |
US7254524B1 (en) | Method and system for a simulation authoring environment implemented in creating a simulation application | |
Ipate | Complete deterministic stream X-machine testing | |
CN110618881B (en) | Method and system for simulating message queue | |
US20060198501A1 (en) | Method and device for constructing a voice dialog |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181207 |
|
RJ01 | Rejection of invention patent application after publication |