CN105446284B - The data analysing method and device of CAN bus - Google Patents

The data analysing method and device of CAN bus Download PDF

Info

Publication number
CN105446284B
CN105446284B CN201410505839.0A CN201410505839A CN105446284B CN 105446284 B CN105446284 B CN 105446284B CN 201410505839 A CN201410505839 A CN 201410505839A CN 105446284 B CN105446284 B CN 105446284B
Authority
CN
China
Prior art keywords
data
bus
user
configuration information
frame
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.)
Active
Application number
CN201410505839.0A
Other languages
Chinese (zh)
Other versions
CN105446284A (en
Inventor
唐国良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201410505839.0A priority Critical patent/CN105446284B/en
Publication of CN105446284A publication Critical patent/CN105446284A/en
Application granted granted Critical
Publication of CN105446284B publication Critical patent/CN105446284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a kind of data analysing methods of CAN bus, comprising: obtains the configuration information of CAN bus;CAN bus carries out data acquisition according to configuration information;Obtain the data type of user's selection;All first data for meeting the data type that user selects are extracted from the data that CAN bus acquires, and all first data are managed for configuration according to preset data organizational form, wherein preset data organizational form includes the calculation formula of data;The first data are converted into metric second data according to the calculation formula of data.Each step is mutually indepedent in the data analysing method of CAN bus of the invention, so that user's operation is more convenient, and the data that CAN bus acquires can be converted to significant decimal data, user checks and analyzes more intuitive convenience, and various data and information are stored, increase reusability.The invention also discloses a kind of data analysis set-ups of CAN bus.

Description

The data analysing method and device of CAN bus
Technical field
The present invention relates to field of communication technology, in particular to the data analysing method of a kind of CAN bus and a kind of CAN bus Data analysis set-up.
Background technique
Controller local area network, abbreviation CAN, CAN bus agreement are Computer Controlled System for Vehicle and built-in industrial control The STD bus of local area network processed is one of most widely used fieldbus in the world.
The relevant technologies disclose a kind of metadata acquisition tool based on CAN protocol, which can pass through setting And complete the message acquisition of customizable, wherein the display mode of message is 16 system formats.
The above-mentioned metadata acquisition tool based on CAN protocol in the related technology has the drawback that:
1), the display mode of message is 16 system formats, although this conveniently checks initial data, cannot be observed well The changing condition of certain a kind of data, user institute it is observed that be exactly 16 system characters that a rule jumps, and be difficult to message Form first intention.
2), excessively specialized, so that not knowing about user (such as most of layman and one of its data meaning Divide the occurrence for being indifferent to data at all but be concerned about the user of the situation of change of data) it cannot be very when using the tool Easily complete whole process.
Therefore, it is necessary to improve to the relevant technologies.
Summary of the invention
The purpose of the present invention is intended at least solve above-mentioned one of technical problem to a certain extent.
For this purpose, an object of the present invention is to provide a kind of data analysing method of CAN bus, the number of the CAN bus The data that CAN bus acquires can be converted to significant decimal data according to analysis method in order to which user checks.
It is another object of the present invention to the data analysis set-ups for proposing a kind of CAN bus.
In order to achieve the above objectives, one aspect of the present invention embodiment proposes a kind of data analysing method of CAN bus, should The data analysing method of CAN bus is the following steps are included: obtain the configuration information of CAN bus;The CAN bus is matched according to Confidence breath carries out data acquisition;Obtain the data type of user's selection;It is extracted from the data that the CAN bus acquires and meets institute State user selection data type all first data, and according to preset data organizational form to all first data into Row configuration management, wherein the preset data organizational form includes the calculation formula of data;And the calculating according to the data First data are converted to metric second data by formula.
The data analysing method for the CAN bus that the embodiment of the present invention proposes, after the configuration information for obtaining CAN bus, CAN Bus carries out data acquisition according to configuration information, and then after the data type for obtaining user's selection, the number acquired from CAN bus Meet all first data of the data type of user's selection according to middle extraction, and according to preset data organizational form to all first Data are managed for configuration, and the first data are finally converted to metric second data according to the calculation formula of data.The CAN The data that CAN bus acquires can be converted to significant decimal data in order to which user looks by the data analysing method of bus It sees.
In order to achieve the above objectives, another aspect of the present invention embodiment also proposed a kind of data analysis set-up of CAN bus, The data analysis set-up of the CAN bus includes: that configuration information obtains module, for obtaining the configuration information of CAN bus;It is described CAN bus, for carrying out data acquisition according to the configuration information;Data analysis module, for obtaining the data of user's selection Type extracts all first data for meeting the data type that the user selects from the data that the CAN bus acquires, and All first data are managed for configuration according to preset data organizational form, wherein the preset data organizational form Calculation formula including data, and first data are converted to metric second according to the calculation formula of the data Data.
It is total to obtain module acquisition CAN by configuration information for the data analysis set-up for the CAN bus that the embodiment of the present invention proposes The configuration information of line, and then CAN bus carries out data acquisition according to configuration information, final data analysis module is obtaining user's choosing After the data type selected, all first data for meeting the data type that user selects are extracted from the data that CAN bus acquires, And all first data are managed for configuration according to preset data organizational form, and according to the calculation formula of data by first Data are converted to metric second data.Configuration information obtains module, CAN bus in the data analysis set-up of the CAN bus Mutually indepedent with data analysis module, so that user's operation is more convenient, and the data that can acquire CAN bus turn It is changed to significant decimal data, user checks more intuitive convenience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart according to the data analysing method of the CAN bus of the embodiment of the present invention;
Fig. 2 is the configuration information according to the CAN bus of the data analysing method of the CAN bus of one embodiment of the invention Display interface schematic diagram;
Fig. 3 is the data according to user's selection of the data analysing method of the CAN bus of a specific embodiment of the invention Speed-time diagram when type is speed;And
Fig. 4 is the block diagram according to the data analysis set-up of the CAN bus of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Following disclosure provides many different embodiments or example is used to realize different structure of the invention.For letter Change disclosure of the invention, hereinafter the component of specific examples and setting are described.Certainly, they are merely examples, and It is not intended to limit the present invention.In addition, the present invention can in different examples repeat reference numerals and/or letter.It is this heavy It is for purposes of simplicity and clarity, itself not indicate the relationship between discussed various embodiments and/or setting again.This Outside, the present invention provides various specific techniques and material example, but those of ordinary skill in the art may be aware that The applicable property of other techniques and/or the use of other materials.In addition, fisrt feature described below second feature it The structure of "upper" may include the embodiment that the first and second features are formed as directly contacting, and also may include other feature shape At the embodiment between the first and second features, such first and second feature may not be direct contact.
In the description of the present invention, it should be noted that unless otherwise specified and limited, term " installation ", " connected ", " connection " shall be understood in a broad sense, for example, it may be mechanical connection or electrical connection, the connection being also possible to inside two elements can , can also indirectly connected through an intermediary, for the ordinary skill in the art to be to be connected directly, it can basis Concrete condition understands the concrete meaning of above-mentioned term.
With reference to the accompanying drawings come describe the CAN bus proposed according to embodiments of the present invention data analysing method and CAN it is total The data analysis set-up of line.
As shown in Figure 1, the data analysing method of the CAN bus of the embodiment of the present invention the following steps are included:
S1 obtains the configuration information of CAN bus.
Fig. 2 is the configuration information according to the CAN bus of the data analysing method of the CAN bus of one embodiment of the invention Display interface schematic diagram.As shown in Fig. 2, in one embodiment of the invention, the configuration information of CAN bus may include baud Rate extends the configuration project such as frame or standard frame, data frame or remote frame, frame format and frame type, and the configuration information of CAN bus is used In the specification of planning CAN bus acquisition data and range etc..
S2, CAN bus carry out data acquisition according to configuration information.
Wherein, CAN bus can carry out data acquisition according to basic data collecting rule according to configuration information.
S3 obtains the data type of user's selection.
S4 extracts all first data for meeting the data type that user selects, and root from the data that CAN bus acquires All first data are managed for configuration according to preset data organizational form, wherein preset data organizational form includes data Calculation formula.
In one embodiment of the invention, all first data can be hexadecimal data.Of the invention one In a embodiment, preset data organizational form can also include: the title (NAME) of data, the unit (UNIT) of data, interception The length (LENGTH) of data and position, that is, data intercept start bit (STARTBIT) of data intercept.In general, CAN is total It can be able to be 8 16 to the data segment of its determining type, the data segment that each message data of line acquisition, which has one, Binary data, data segment data for identification, the hereinafter referred to as data segment are frame ID.
Further, in one particular embodiment of the present invention, the data type that user selects is speed (Vehicle_ Speed), after extracting all vehicle speed datas in the data that CAN bus acquires, according to preset data organizational form to all speeds Data are managed for configuration, wherein the frame ID of vehicle speed data is 0x121, and speed calculation formula is y=0.06875x, speed list Position is km/h, and the vehicle speed data start bit of interception is 0, and the vehicle speed data length of interception is 12.CAN bus is collected each A frame ID is the vehicle speed data of 0x121 all in accordance with speed calculation formula calculating speed, such as 12134ms, CAN bus acquisition To vehicle speed data be 19 00 01 04 10 00 00 AC when, then since 0 intercept 12-bit data, i.e. 000110010000= 400, then speed is y=0.06875*400=27.5km/h.And then all speeds are acquired as dependent variable, by CAN bus The time of each vehicle speed data draws figure as shown in Figure 3 as independent variable, wherein ordinate is speed, and abscissa is CAN bus Acquire the time of each vehicle speed data.User can be from variation tendency of the speed within each period be found out, thus just easily in Fig. 3 In information such as the extreme values of analysis certain time period speed.
First data are converted to metric second data according to the calculation formula of data by S5.
In one embodiment of the invention, the first data are being converted to metric according to the calculation formula of data After two data, can also include:
S6 obtains the display mode of user's selection.
In one embodiment of the invention, display mode may include: all first data of display, display all second All second data of data and display pictorialization.
S7 shows all first data or all second data according to the display mode that user selects.
Specifically, when showing all first data, it is contemplated that compatible problem, all first data are without any Change in order to which professional person analyzes initial data, and convenient for non-professional advanced crowd's study and uses.It needs to illustrate It is to show all first data, all second data of display, data can be read in order to user, and shows all of pictorialization Second data can check the variation tendency of the second data in order to user then to analyze data, such as determine the information such as extreme value, use Family can independently select display mode according to demand, and the data analysing method of the CAN bus of the embodiment of the present invention not only increases The analysis strategy of user also enhances the analytical effect of user.Further, in one embodiment of the invention, work as display All second data or pictorialization all second data in when there is the jump for not conforming to convention, user can be aobvious by selecting Show all first data come the first data corresponding when checking that the jump for not conforming to convention occur in the second data, consequently facilitating analysis produces The reason of raw jump.
In one embodiment of the invention, being shown according to the display mode that user selects to all second data can With the following steps are included:
S71 counts all second data as dependent variable, by the time of CAN bus progress data acquisition or all second According to number draw a diagram as independent variable.
S72 shows chart.
It should be noted that when the independent variable of chart is the time that CAN bus carries out data acquisition, it can be in order to user Check the size variation of the variation tendency of the second data and the second data in certain time period.
In one embodiment of the invention, the data analysing method of CAN bus can also include:
S8, the data type of storage configuration information and user's selection.
In one embodiment of the invention, it can be selected using plaintext or other means storage configuration information and user Data type etc., in order to carried out between different users data sharing with exchange, while also can be convenient and efficiently being counted According to management.Specifically, in one embodiment of the invention, can using the fixed for example binary data of file format come The data type etc. of storage configuration information and user's selection.It specifically, in one embodiment of the invention, can be by every Baud rate in bit and configuration information, the configurations project such as frame format is mapped one by one, to assign each Binary digit is stored with practical significance, and then when user reads configuration information, according to the file format of binary digit Inverting is carried out, and is shown as can recognize that data such as baud rates, frame format etc. give user.As shown in Fig. 2, user can lead to It crosses click preservation configuration button and carrys out storage configuration information, and configuration information can be read by clicking reading configuration button.
Further, in one embodiment of the invention, all first data and all second data can also be stored, In order to which user is checked next time.It specifically, can be by all second numbers when user needs to check all second data According in the memory for being loaded into host computer, and then show all second data.Further, in one embodiment of the invention, After the data of storage, which are changed by mistake, to be moved, initial value can be set by the unreasonable data being altered.
The data analysing method for the CAN bus that the embodiment of the present invention proposes, after the configuration information for obtaining CAN bus, CAN Bus carries out data acquisition according to configuration information, and then after the data type for obtaining user's selection, the number acquired from CAN bus Meet all first data of the data type of user's selection according to middle extraction, and according to preset data organizational form to all first Data are managed for configuration, and the first data are finally converted to metric second data according to the calculation formula of data.The CAN Each step is mutually indepedent in the data analysing method of bus, so that user's operation is more convenient, and can be by CAN bus The data of acquisition are converted to significant decimal data, and user checks and analyze more intuitive convenience, and to various data and letter Breath is stored, and the reusability of various data and information is increased.
Another aspect of the present invention embodiment also proposed a kind of data analysis set-up of CAN bus, as shown in figure 4, the CAN The data analysis set-up of bus includes: that configuration information obtains module 10, CAN bus 20 and data analysis module 30.Wherein, it configures Data obtaining module 10 is used to obtain the configuration information of CAN bus 20.CAN bus 20 is used to carry out data according to configuration information to adopt Collection, wherein CAN bus 20 can carry out data acquisition according to basic data collecting rule according to configuration information.Data analysis Module 30 is used to obtain the data type of user's selection, extracts from the data that CAN bus 20 acquires and meets the number that user selects All first data are managed for configuration according to all first data of type, and according to preset data organizational form, wherein pre- If Method of Data Organization includes the calculation formula of data, and the first data are converted to the decimal system according to the calculation formula of data The second data.
Specifically, in one embodiment of the invention, as shown in Fig. 2, the configuration information of CAN bus 20 may include wave Special rate extends the configuration project such as frame or standard frame, data frame or remote frame, frame format and frame type, and CAN bus 20 matches confidence It ceases for planning that CAN bus 20 acquires specification and the range etc. of data.Further, in one embodiment of the invention, All first data can be hexadecimal data.
Further, in one embodiment of the invention, the data analysis set-up of CAN bus can also be aobvious including data Show module 40.Data disaply moudle 40 is used to obtain the display mode of user's selection, and the display mode pair selected according to user All first data or all second data are shown.Further, in one embodiment of the invention, display mode can To include: all first data of display, all second data of display and all second data for showing pictorialization.Wherein, aobvious When showing all first data, it is contemplated that compatible problem, all first data are without any change, in order to professional person Initial data is analyzed, and convenient for non-professional advanced crowd's study and is used.
It should be noted that all first data of display, all second data of display, can read data in order to user, And the variation tendency of the second data can be checked to analyze data, such as really in order to user by showing all second data of pictorialization Determine the information such as extreme value, user can independently select display mode, the data analysis of the CAN bus of the embodiment of the present invention according to demand Device not only increases the analysis strategy of user, also enhances the analytical effect of user.Further, in a reality of the invention It applies in example, occurs not conforming to convention when in all second data of all second data or pictorialization that data disaply moudle 40 is shown Jump when, user can show all first data come when checking that the jump for not conforming to convention occur in the second data pairs by selection The first data answered, consequently facilitating the reason of analysis generates jump.
Further, in one embodiment of the invention, data disaply moudle 40 may include: submodule of drawing a diagram 41 and display sub-module 42.Wherein, submodule 41 of drawing a diagram is used for using all second data as dependent variable, by CAN bus The time of 20 progress data acquisitions or the number of all second data are drawn a diagram as independent variable.Display sub-module 42 is for showing Diagram table.It should be noted that when the independent variable of chart be CAN bus 20 carry out data acquisition time when, can in order to The size variation of the variation tendency of the second data and the second data in certain time period is checked at family.
Further, in one embodiment of the invention, preset data organizational form can also include: the title of data (NAME), position, that is, data intercept of the unit (UNIT) of data, the length (LENGTH) of data intercept and data intercept is opened Beginning position (STARTBIT).In general, CAN bus 20 acquire each message data have one can to determine its class The data segment of type, the data segment can be 8 16 binary datas, and data, the hereinafter referred to as data segment are the data segment for identification Frame ID.
Further, in one particular embodiment of the present invention, the data type that user selects is speed (Vehicle_ Speed), data analysis module 30 extracts all vehicle speed datas from the data that CAN bus 20 acquires, according to preset data tissue All vehicle speed datas are managed for configuration in mode, wherein the frame ID of vehicle speed data is 0x121, and speed calculation formula is y= 0.06875x, speed unit are km/h, and the vehicle speed data start bit of interception is 0, and the vehicle speed data length of interception is 12.Data point Module 30 is analysed to calculate the vehicle speed data that collected each frame ID of CAN bus 20 is 0x121 all in accordance with speed calculation formula Speed, such as 12134ms, CAN bus collects vehicle speed data when being 19 00 01 04 10 00 00 AC, then from 0 Start to intercept 12-bit data, i.e. 000110010000=400, then speed is y=0.06875*400=27.5km/h.In turn All speeds are acquired the time of each vehicle speed data as independent variable as dependent variable, using CAN bus 20 by data disaply moudle 40 Draw figure as shown in Figure 3, wherein ordinate is speed, and abscissa is the time that CAN bus 20 acquires each vehicle speed data.With It family can be from variation tendency of the speed within each period be found out in Fig. 3 easily, consequently facilitating analyzing certain time period speed The information such as extreme value.
Further, in one embodiment of the invention, the data analysis set-up of CAN bus 20 can also include storage Module 50, memory module 50 are used for the data type etc. using plaintext or other means storage configuration information and user's selection, with Convenient for carried out between different users data sharing with exchange, while also can be convenient and efficiently carrying out data management.Specifically, In one embodiment of the invention, memory module 50 can be stored using the fixed for example binary data of file format The data type etc. of configuration information and user's selection.Specifically, in one embodiment of the invention, memory module 50 can lead to It crosses to the baud rate in each binary digit and configuration information, the configurations project such as frame format is mapped one by one, to assign Each binary digit is stored with practical significance, and then when user reads configuration information, memory module 50 is according to two The file format of system position carries out inverting, and is shown as can recognize that data such as baud rates, frame format etc. give user.Such as figure Shown in 2, user can by click save configuration button come storage configuration information, and can by click read configuration button come Read configuration information.
Further, in one embodiment of the invention, memory module 50 can be also used for storing all first data With all second data, in order to which user is checked next time.Specifically, when user needs to check all second data, All second data can be loaded into the memory of host computer, and then data disaply moudle 40 shows all second data.Into One step, in one embodiment of the invention, after the data stored in memory module 50, which are changed by mistake, to be moved, it can will be altered Unreasonable data be set as initial value.
It should be noted that in one embodiment of the invention, configuration information obtains module 10, CAN bus 20, data Analysis module 30 and data disaply moudle 40 were not only mutually indepedent, but also interdepended, wherein each module can be transported individually Make, and when needing more preferably to obtain all second data of all second data or pictorialization, multiple modules, which complement each other, to be come Work.
It is total to obtain module acquisition CAN by configuration information for the data analysis set-up for the CAN bus that the embodiment of the present invention proposes The configuration information of line, and then CAN bus carries out data acquisition according to configuration information, final data analysis module is obtaining user's choosing After the data type selected, all first data for meeting the data type that user selects are extracted from the data that CAN bus acquires, And all first data are managed for configuration according to preset data organizational form, and according to the calculation formula of data by first Data are converted to metric second data.In the data analysis set-up of the CAN bus configuration information obtain module, CAN bus, Data analysis module and data disaply moudle etc. are mutually indepedent, so that user's operation is more convenient, and can be total by CAN The data of line acquisition are converted to significant decimal data, and user checks and analyze more intuitive convenience, and to various data and Information is stored, and the reusability of various data and information is increased.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding And modification, the scope of the present invention is by appended claims and its equivalent limits.

Claims (14)

1. a kind of data analysing method of CAN bus, which comprises the following steps:
Obtain CAN bus configuration information, wherein the configuration information include baud rate, extension frame or standard frame, data frame or Remote frame, frame format and frame type;
The CAN bus carries out data acquisition according to the configuration information;
Obtain the data type of user's selection;
All first data for meeting the data type that the user selects are extracted from the data that the CAN bus acquires, and All first data are managed for configuration according to preset data organizational form, wherein the preset data organizational form Calculation formula including data;And
First data are converted into metric second data according to the calculation formula of the data.
2. the method as described in claim 1, which is characterized in that the preset data organizational form further include: the title of data, The position of the unit of data, the length of data intercept and data intercept.
3. the method as described in claim 1, which is characterized in that in the calculation formula according to the data by described first Data are converted to after metric second data, further includes:
Obtain the display mode of user's selection;And
All first data or all second data are shown according to the display mode that the user selects.
4. method as claimed in claim 3, which is characterized in that the display mode include: display all first data, It shows all second data and shows all second data of pictorialization.
5. method as claimed in claim 4, which is characterized in that the display mode according to user selection is to all the Two data shown the following steps are included:
All second data are carried out to the time or described all the of data acquisition as dependent variable, by the CAN bus The number of two data is drawn a diagram as independent variable;And
Show the chart.
6. method according to any one of claims 1 to 5, which is characterized in that all first data are hexadecimal Data.
7. the method as described in claim 1, which is characterized in that further include:
Store the data type of the configuration information and user selection.
8. a kind of data analysis set-up of CAN bus characterized by comprising
Configuration information obtains module, for obtaining the configuration information of CAN bus, wherein the configuration information includes baud rate, expands Open up frame or standard frame, data frame or remote frame, frame format and frame type;
The CAN bus, for carrying out data acquisition according to the configuration information;And
Data analysis module extracts from the data that the CAN bus acquires and meets for obtaining the data type of user's selection All first data of the data type of user's selection, and according to preset data organizational form to all first data It is managed for configuration, wherein the preset data organizational form includes the calculation formula of data, and the meter according to the data It calculates formula and first data is converted into metric second data.
9. device as claimed in claim 8, which is characterized in that the preset data organizational form further include: the title of data, The position of the unit of data, the length of data intercept and data intercept.
10. device as claimed in claim 8, which is characterized in that further include:
Data disaply moudle, for obtaining the display mode of user's selection, and according to the display mode of user selection to institute It states all first data or all second data is shown.
11. device as claimed in claim 10, which is characterized in that the display mode includes: display all first numbers According to, display all second data and all second data for showing pictorialization.
12. device as claimed in claim 11, which is characterized in that the data disaply moudle includes:
Draw a diagram submodule, for will all second data as dependent variable, by CAN bus progress data acquisition Time or the numbers of all second data draw a diagram as independent variable;And
Display sub-module, for showing the chart.
13. the device as described in any one of claim 8-12, which is characterized in that all first data are hexadecimal Data.
14. device as claimed in claim 8, which is characterized in that further include:
Memory module, for storing the data type of the configuration information and user selection.
CN201410505839.0A 2014-09-26 2014-09-26 The data analysing method and device of CAN bus Active CN105446284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410505839.0A CN105446284B (en) 2014-09-26 2014-09-26 The data analysing method and device of CAN bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410505839.0A CN105446284B (en) 2014-09-26 2014-09-26 The data analysing method and device of CAN bus

Publications (2)

Publication Number Publication Date
CN105446284A CN105446284A (en) 2016-03-30
CN105446284B true CN105446284B (en) 2019-04-19

Family

ID=55556606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410505839.0A Active CN105446284B (en) 2014-09-26 2014-09-26 The data analysing method and device of CAN bus

Country Status (1)

Country Link
CN (1) CN105446284B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104954B (en) * 2017-04-06 2020-04-07 北京首都机场节能技术服务有限公司 Communication method, control terminal and communication system
JP7094762B2 (en) * 2018-04-16 2022-07-04 キヤノン株式会社 Programs, information processing equipment, and control methods
CN113810154A (en) * 2020-06-17 2021-12-17 国网信息通信产业集团有限公司 Serial port communication self-adaption method and device and remote communication module

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100562003C (en) * 2006-09-01 2009-11-18 杭州中导科技开发有限公司 Bus adapter of car running recorder CAN
CN201853115U (en) * 2010-08-20 2011-06-01 长沙中联重工科技发展股份有限公司 Vehicle control system
CN103576636B (en) * 2013-03-01 2016-02-17 上海大学 Based on intelligent touch screen display control program and the method for CAN
CN103577375B (en) * 2013-11-26 2016-05-04 中国科学院声学研究所 Bus control method and device that can compatible multiple CAN bus hardware circuit
CN103970110B (en) * 2014-05-27 2016-08-10 盛瑞传动股份有限公司 CAN analytic method, Apparatus and system

Also Published As

Publication number Publication date
CN105446284A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
US11158143B2 (en) Vehicle diagnostic method and device, and computer readable storage medium
CN106897284B (en) Recommendation method and device for electronic books
CN107291672B (en) Data table processing method and device
CN105446284B (en) The data analysing method and device of CAN bus
CN107180056B (en) Method and device for matching segments in video
CN104298679A (en) Application service recommendation method and device
CN104796300B (en) A kind of packet feature extracting method and device
CN103714004A (en) JVM online memory leak analysis method and system
CN105095721A (en) Fingerprint authentication display device and method
CN105868311A (en) Data analyzing method and device
CN105159475A (en) Character input method and device
CN104391879A (en) Method and device for hierarchical clustering
CN107122185A (en) One kind shows method for the visualization of distribution network parameters category information
CN114722091A (en) Data processing method, data processing device, storage medium and processor
CN108924010A (en) A kind of communication protocol recognition methods and device
CN110019042A (en) Report file generation method, apparatus and system
CN113407254A (en) Form generation method and device, electronic equipment and storage medium
CN106021852B (en) Blood glucose level data exception value calculating method based on density clustering algorithm and device
CN109999495B (en) Method and system for processing artificial intelligence AI unit state information
CN106355439A (en) Knowledge base modeling method for association relation analysis
CN106294456B (en) The method and apparatus of machine learning
CN111368413A (en) Tracking management method and system for clothing production plan
CN107272989B (en) Using starting method, apparatus and terminal device
CN104516916A (en) Method and device for analyzing network report incidence relation
CN108595375A (en) a kind of filtering method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant