Method based on CAN bus data storage and system thereof

A CAN bus and data storage technology, applied in the field of computer communication, can solve the problems of inability to share and query CAN bus data, and achieve the effect of saving resources, avoiding repeated storage, and efficient management

Active Publication Date: 2016-03-23
CHINA AUTOMOTIVE ENG RES INST
View PDF2 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above-mentioned shortcoming of prior art, the object of the present invention is to provide a kind of method and its system based on CAN bus data storage, when being used to solve CAN bus data storage in the prior art, CAN bus data cannot be shared and queried The problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method based on CAN bus data storage and system thereof
  • Method based on CAN bus data storage and system thereof
  • Method based on CAN bus data storage and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Such as figure 1 As shown, it is a flow chart of a method based on CAN bus data storage in the embodiment of the present invention, which is described in detail as follows:

[0039] In step S101, collect CAN bus data;

[0040] Wherein, the way of collecting the CAN bus data is the collecting device 2, the collecting device 2 is connected to the CAN bus through the nodes, and when it is detected that the bus has data, it directly collects the CAN bus data.

[0041] In step S102, the CAN bus data is transmitted to the cache of the server 4 in the form of data packets, and a temporary table of the corresponding database 5 is generated;

[0042] Wherein, the CAN bus data is packaged into data packets, sent to the server 4 in the form of data packets, the server 4 and the acquisition device 2 can be connected through the mobile network 7, wired Ethernet, and USB network 8, and the server 4 receives the data package, a temporary table is generated in the database 5 for cach...

Embodiment 2

[0052] Such as figure 2 As shown, it is a network topology diagram based on CAN bus data storage in the embodiment of the present invention; the details are as follows:

[0053] Several acquisition devices 2 (as shown in A, B, and C, respectively represent acquisition devices with different numbers) transmit the CAN bus data collected to the server 4 through wired Ethernet, mobile network 7 and wired USB network 8 .

[0054] In the wired Ethernet network, the acquisition device 2 is connected to the switch 6 through a network cable, and the switch 6 is connected to the server 4 through a network cable to form a CAN bus data network. The server 4 polls the network IP of the collection device 2 sequentially to obtain the CAN bus data packets of the collection device 2. The collection device 2 can support a network transmission rate of 10 / 100Mb / s. During the test, it usually runs under normal power or idle mode, and the normal driving needs to be carried out on the drum bench. ...

Embodiment 3

[0060] Such as image 3 As shown, it is a system frame diagram based on CAN bus data storage in the embodiment of the present invention, and is described in detail as follows:

[0061] The collection device 2 is suitable for collecting CAN bus data;

[0062] The transmission unit 3 is adapted to transmit the CAN bus data to the cache of the server 4 in the form of data packets;

[0063] Wherein, the transmission methods of the transmission unit 3 include mobile network 7 , wired Ethernet, and USB network 8 , which will not be repeated here.

[0064] Server 4 is suitable for classifying the CAN bus data in the temporary table of the database 5 according to the collection device 2 names and the data source name to generate corresponding new data packets; the server 4 will The CAN bus data generates a corresponding new data packet, wherein the preset classification criteria include channel number, collection time, data length and CAN bus ID.

[0065] It is also suitable for ju...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method based on CAN bus data storage and a system thereof. The method includes: acquiring CAN bus data; transmitting the CAN bus data to a server cache in the manner of a data packet, and generating a corresponding database temporary list; classifying the CAN bus data in the database temporary list according to names of acquisition devices and names of data sources, and generating a corresponding new data packet; determining whether the database needs to store the new data packet in sequence according to a preset classification standard; saving the new data packet in the database if the database does not have the corresponding data packet according to the preset classification standard; and deleting the new data packet if the database has the corresponding data packet according to the preset classification standard. According to the method and the system thereof, a plurality of clients can simultaneously inquire and process multiple groups of data of the database, high-efficiency management of the CAN bus data is realized, repeated storage can be avoided, storage resources of the database are saved, and the storage efficiency of the database is improved via combined usage of multiple transmission modes.

Description

technical field [0001] The invention relates to the field of computer communication, in particular to a method and system for storing CAN bus data for vehicles. Background technique [0002] CAN (ControllerAreaNetwork, controller area network) bus has been widely used in data communication of automobile body due to its stable and high-speed characteristics. Using CAN bus for data communication has become the best choice for vehicle applications. However, the acquisition of data on a certain operating system is often exclusive and can only be acquired by a single application, so that other applications that need the same data cannot work normally. [0003] However, the existing CAN bus data storage is usually stored in the form of an Excel table, and the number of rows stored in the Excel table is limited. Therefore, when generating CAN bus data, multiple single files are often generated, which is not easy to query and share. For example, when a computer is connected to a CA...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/40H04L29/08
CPCH04L12/40006H04L67/568
Inventor 欧祖方张磊周婷婷
Owner CHINA AUTOMOTIVE ENG RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products