CN107347101B - A kind of car networking CAN collecting methods - Google Patents

A kind of car networking CAN collecting methods Download PDF

Info

Publication number
CN107347101B
CN107347101B CN201710701211.1A CN201710701211A CN107347101B CN 107347101 B CN107347101 B CN 107347101B CN 201710701211 A CN201710701211 A CN 201710701211A CN 107347101 B CN107347101 B CN 107347101B
Authority
CN
China
Prior art keywords
data
car networking
configuration file
car
signal
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
CN201710701211.1A
Other languages
Chinese (zh)
Other versions
CN107347101A (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.)
Wuhan English Stettlen Electron Technology Co Ltd
Original Assignee
Wuhan English Stettlen Electron Technology 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 Wuhan English Stettlen Electron Technology Co Ltd filed Critical Wuhan English Stettlen Electron Technology Co Ltd
Publication of CN107347101A publication Critical patent/CN107347101A/en
Application granted granted Critical
Publication of CN107347101B publication Critical patent/CN107347101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of car networking CAN collecting methods, the DBC files and configuration file gathered first according to the collection project of body information generation body information;The configuration file is sent to car-mounted terminal by car networking background server;Car-mounted terminal is according to the body information data on configuration file data acquisition bus;Body information data group bag is generated into data packet;By data packet back to car networking background server;Car networking background server will parse the data packet, and obtain the body information.The present invention is adaptable, and the dependence to terminal is small, can improve the security of data, has the advantages that rapidly and efficiently to obtain body information, is operated without manual site, simple efficient and not error-prone.The configuration file of the present invention has versatility, dynamically can match different automobile types in a car networking system, can also meet the collection requirement of multichannel CAN interface in a vehicle, so that car networking system has very strong compatibility.

Description

A kind of car networking CAN collecting methods
Technical field
The present invention relates to a kind of car networking CAN collecting methods, belong to automobile CAN data acquisition technology field.
Background technology
Existing body information collection is mainly applied to automotive performance and monitors.Automobile in use, with traveling , there is phenomena such as reliability reduction, economy is deteriorated with failure rate increase in Cheng Zengjia.This change procedure of automobile is inevitable , meet the rule of development, but if detected not in time, automobile will go wrong in the process of moving.It is so existing There is technology to be acquired acquisition body information to the data in CAN bus, to analyze automotive performance.
The prior art is that the body information in CAN bus is acquired for automotive performance analysis field, the car of collection Body information is fixed, it is not necessary to change configuration file repeatedly, so the prior art be configuration file is directly fixed in it is vehicle-mounted In terminal.The prior art disposably to vehicle body data acquisition and uploads platform by fixed acquisition configuration file.
However, with the development of automotive engineering and car networking technology, vehicle complete vehicle network is formed and also become increasingly complex, automobile All parts on automobile, controller, sensor are organically combined and form powerful modern cars by vehicle network. Body information, which is gathered and integrated, is no longer simply applied to analysis automotive performance and failure, while also develops into based on car networking Online vehicles information management.Body information becomes diversity, mutability, and body information collection cannot simply regularly, disposably Ground gathers body information, and should configure collection file in real time, and the vehicle body data of collection are handled, but the prior art Variation, the body information acquisition scheme of mutability are not occurred.
To sum up, the prior art has the disadvantage that:1) mode of localized configuration information is stored in car-mounted terminal, is caused vehicle-mounted The matching capacity of terminal and different vehicle reduces;2) fixed placement file collection body information, it is impossible to flexibly change collection project, And more projects and change will be presented in practice as the development of car networking, body information collection project, fixed placement file Acquisition mode can not meet the real demand often changed;3) artificial storage configuration file is needed, it is inconvenient.
The content of the invention
In view of the drawbacks described above of the prior art, the technical problems to be solved by the invention are to provide a kind of car networking CAN Collecting method, it is intended to which it is fixed to solve prior art arrangement file, it is impossible to flexibly the problem of change collection project;Together When, according to the actual demand of collection vehicle body information project, custom configuration file, saves network bandwidth;In addition, the present invention passes through clothes Business device directly changes configuration file, is operated without manual site, improves car-mounted terminal and the agreement matching capacity of different vehicle, and Whole process is simple, efficient and not error-prone.
The present invention is that technical solution is used by solving its technical problem:Provide a kind of car networking CAN data acquisitions Method, comprises the following steps:
Step S1, according to the collection project of body information, the DBC files and configuration file of generation body information collection;
Step S2, the configuration file is sent to car-mounted terminal by car networking background server by wireless network;
Step S3, described car-mounted terminal is according to the body information data on the configuration file data acquisition bus;
Step S4, according to group packet protocol, the body information data is packaged and generate data packet;
Step S5, by the data packet back to the car networking background server;
Step S6, car networking background server will parse the data packet, and obtain the body information.
Step S1 specifically includes procedure below:
The vehicle CAN bus agreement provided according to manufacturer, generates DBC files;
According to DBC file generated configuration files;The definition of each controller association message and signal in DBC is extracted first, Including controller title, the message ID of controller message, parameter name, start bit, parameter bit length, syllable sequence, data type, Yield value, bias, number range and unit;Setting gathers relevant parameter after extraction, including total where baud rate, signal Whether line interface sequence number, signal, which need, uploads, and completes the generation of configuration file.
Step S3 specifically includes procedure below:The baud rate is extracted, sets data transmission bauds, sets controller message Corresponding CAN interface sequence number;
The configuration file is handled, extraction frame ID, data start bit, bit length, syllable sequence, gain, offset, obtain Data in CAN bus on the frame ID;
The data value of body information parameters is parsed and calculated according to configuration file;
Repeat, until completing the extraction of all signal datas of configuration file, complete the body information data Extraction.
In step S4, described group of packet protocol, refers to that the definition according to car networking system data transmission agreement packages.
In data packet described in step S4, the identification code that MD5 values are configuration file is set;The MD5 values are used for the service Device verifies the data packet of passback, determines the unique corresponding relation between data packet and configuration file.
Data packet described in step S4 includes the signal list of fixation, and the signal list records need to be passed back to the car The signal of networking background server, and order and the data type of each signal between signal;Step S6 specifically include with Lower process:Data packet is verified, determines that data packet format is correct according to the definition of data packet by car networking background server, Then body information data parsing is carried out one by one, and all body informations in data packet are extracted according to signal list.
The fixed list information of each signal is not defined in data packet described in the step S4, by configuration file into action State is transmitted;Step S6 specifically includes procedure below:When car networking background server will carry out resolve packet, according in data packet Signal total number and each signal data type analytic signal data one by one;Then by extracting the MD5 values in data packet, Inquire corresponding configuration file signal name list;Finally, car networking background server passes through signal list and signal name Parsing, storage and the displaying of data are completed in list, complete data parsing.
When car networking background server does not have the corresponding profile information of MD5 values, car networking background server first to Car-mounted terminal inquires the signal name list of current configuration file, and car-mounted terminal arranges the MD5 values and signal name of configuration file Table is sent to server, car networking background server storage MD5 values and signal name list.
Further include step SA:Whether car networking background server monitoring third party sends collection request, and car networking backstage takes Business device verifies third-party authority;If third party has the authority for obtaining request items, configuration text is generated according to request items Part is sent to car-mounted terminal;If third party does not gather body information without the authority for obtaining request items.
The present invention is based on beneficial effect possessed by its technical solution:
(1) since the vehicle of different manufacturer's production is different, CAN bus agreement is also different, including frame ID settings, number A kind of car networking CAN collecting methods different according to type and byte number etc., that the application provides, provide according to manufacturer Vehicle CAN bus agreement, and by Vector Software Create DBC files, the advantage is that can directly and car enterprise research and development instrument Docking, quickly generates DBC files, and the time is saved for complicated car networking application;
(2) a kind of car networking CAN collecting methods that the application provides, can be packaged using static mode, be Will transmission signal data order and list fix, key in the signal name and transport protocol in by configuration file Signal name corresponded to, the signal data after parsing is carried out group by vehicle terminal software according to signal list and data type Bag, and to server transport;
(3) a kind of car networking CAN collecting methods that the application provides, can also be packaged by dynamical fashion, The CAN bus signal data title and order to be transmitted is not fixed, signal group bag is directly carried out by the definition of configuration file, It is crucial according to configuration file the type of each signal data, length, numerical value be dynamically filled into data packet, usefulness It is car networking system is gathered different vehicle according to application requirement different data, is improved the compatibility of system;
(4) a kind of car networking CAN collecting methods that the application provides, car networking background server storage configuration file The correspondence of MD5 values and each data packet, it is ensured that, can also be correct even if having modified acquisition parameter list in gatherer process Parsed and read, avoid data from malfunctioning when extracting;
(5) the application provide a kind of car networking CAN collecting methods, server can also to third party's requests verification its Authority, avoids body information from maliciously being obtained, and protects the necessary privacy of car owner;
(6) a kind of car networking CAN collecting methods that the application provides, terminal is adaptable, and the dependence to terminal is small, There is quick, effective acquisition body information, operated without manual site, it is simple, efficient and not error-prone;Pass through at the same time Car networking background server dynamically issues the CAN bus protocol profile of car-mounted terminal, enhances car-mounted terminal and vehicle Matching capacity, make with a car-mounted terminal possess matching various ability.
Brief description of the drawings
Fig. 1 is the body information collecting flowchart schematic diagram of the embodiment of the invention;
Fig. 2 is the schematic diagram of the generation configuration file of the embodiment of the invention;
Fig. 3 is the body information collection rights management schematic diagram of the embodiment of the invention.
Embodiment
The invention will be further described with reference to the accompanying drawings and examples.
The present invention provides a kind of car networking CAN collecting methods, with reference to Fig. 1, Fig. 2 and Fig. 3, are taken with car networking backstage Exemplified by device collection vehicle of being engaged in mileage, speed, parking brake state, service brake status information, process is as follows:
Step S1, according to the collection project of body information, the DBC files and configuration file of generation body information collection;
Step 1: the vehicle CAN bus agreement provided according to manufacturer, passes through Vector Software Create DBC files:
The DBC files of CAN bus are as follows:
BS_:
BU_:myECU
BO_2566909442Message_1:8myECU
SG_ accumulated distances:0|32@1+(1,0)[0|0]"km"Vector__XXX
BO_2566844695Message_2:8myECU
SG_ speeds:8|16@1+(0.00390625,0)[0|0]"Km/h"Vector__XXX
SG_ parking brake states:2|2@1+(1,0)[0|0]""Vector__XXX
SG_ service brake states:4|2@1+(1,0)[0|0]""Vector__XXX
Step 2: according to DBC file generated configuration files;The configuration file is total for recording car-mounted terminal collection CAN The body information of line, CAN bus sequence number, baud rate configuration, controller title, control where the configuration file includes controller Device message and vehicle trouble messages configuration, controller message include message ID configurations and message data definition.
The generating process of configuration file is as follows:The definition of each controller association message and signal in DBC is extracted first.Bag Include controller title, message ID, parameter name, start bit, parameter bit length, syllable sequence, data type, yield value, bias, Number range, unit.Repeat, until completing the extraction of all signal definitions of configuration file.Then setting collection is relevant Bus interface sequence number where parameter, including baud rate, signal, whether signal needs uploads.It is finally completed the life of configuration file Into.
Wherein, 1) baud rate configures:
In the present embodiment, three tunnel CAN interfaces are shared.High-speed CAN bus interface is corresponded to respectively, middling speed CAN bus connects Mouth, low speed CAN interface.This three tunnels CAN interface baud rate need to be respectively configured in baud rate configuration.Baud rate is according to reality Full Vehicle System CAN bus signal transmission rate is set.In the present embodiment, configuration file is enumerated each road CAN bus and is connect first The optional baud rate of mouth, then setting high-speed CAN baud rates are 250Kbps, and middling speed CAN baud rates are 250Kbps, and low speed The baud rate of CAN interface is 125Kbps.
2) the bus interface sequence number configuration where signal:
Method by increasing each signal name prefix configures the CAN interface position where signal, high-speed CAN Bus interface prefix is " HS ", and middling speed CAN interface prefix is " MS ", and low speed CAN interface prefix is " LS ", if necessary The prefix code name of expansible more multichannel CAN.For example " speed " signal in middling speed CAN interface, then signal name is revised as " MS speeds ".
3) whether signal needs upload configuration:
If some signal needs to upload, increase on signal name " suffix of _ W ", is otherwise only locally stored, Without remote transmission.In the present embodiment, all signals will carry out remote transmission.
4) configuration file by DBC file generateds is as follows:
BS_:
BU_:myECU
BO_2566909442Message_1:8myECU
SG_MS accumulated distances _ W:0|32@1+(1,0)[0|0]"km"
BO_2566844695Message_2:8myECU
SG_MS speeds _ W:8|16@1+(0.00390625,0)[0|0]"Km/h"
SG_MS parking brakes state _ W:2|2@1+(1,0)[0|0]""
SG_MS service brakes state _ W:4|2@1+(1,0)[0|0]""
BA_DEF_"HSBaudrate"ENUM"50000","100000","125000","250000","500000"," 1000000";
BA_DEF_"MSBaudrate"ENUM"50000","100000","125000","250000","500000"," 1000000";
BA_DEF_"LSBaudrate"ENUM"50000","100000","125000","250000","500000"," 1000000";
BA_"HSBaudrate"3;
BA_"MSBaudrate"3;
BA_"LSBaudrate"2;
Step S2, the configuration file is sent to car-mounted terminal by car networking background server by wireless network.Network The mode of transmission is varied, including GPRS, wifi, 3G, 4G cellular communications networks etc., in the present embodiment, car-mounted terminal Pass through GPRS and server communication.
Step S3, described car-mounted terminal is specifically included according to the body information data on the configuration file data acquisition bus Procedure below:
The baud rate configuration is extracted, sets data transmission bauds, the corresponding CAN interface sequence number of setting controller message;
The configuration file is handled, extraction frame ID, data start bit, bit length, syllable sequence, gain, offset, obtain Data in CAN bus on the frame ID;
The data value of body information parameters is parsed and calculated according to configuration file;
Repeat, until completing the extraction of all signal datas of configuration file, complete the body information data Extraction.
In the present embodiment, including:
1) car-mounted terminal parsing configuration file, the data transmission bauds of each CAN interface is set by baud rate;
2) car-mounted terminal gathers the message in the second tunnel CAN bus, in the message that ID is 2566909442, from data field 0bit start, extract 32bit, then according to the general analytic method of DBC signals, obtain accumulative mileage data.
3) car-mounted terminal gathers the message in the second tunnel CAN bus, in the message that ID is 2566844695, from data field 8bit start, extract 16bit, then according to the general analytic method of DBC signals, obtain vehicle speed data.
4) car-mounted terminal gathers the message in the second tunnel CAN bus, in the message that ID is 2566844695, from data field 2bit start, extract 2bit, then according to the general analytic method of DBC signals, obtain parking brake status data.
5) car-mounted terminal gathers the message in the second tunnel CAN bus, in the message that ID is 2566844695, from data field 4bit start, extract 2bit, then according to the general analytic method of DBC signals, obtain service brake status data.
6) parsing of all signal datas is completed by above-mentioned steps, obtains the body information in CAN bus.
It is noted that above-described " the general analytic method of DBC signals " is obtained according to following form:Meter Syllable sequence, yield value and offset needed for calculating, then obtain integer value according to syllable sequence, are finally multiplied by yield value, plus inclined Shifting amount obtains final signal numerical value.CAN message and signal format are defined as follows:
BO_CAN ID message names:Data field byte number ECU titles
SG_ signal names:Start bit | digit@syllable sequences data type (yield value, offset) [minimum value | maximum] " unit "
In above-mentioned definition:
Syllable sequence is:0 represents motorolla, 1 represents intel.
Data type:+:Represent without symbol shaping;- representative has symbol shaping;2 represent single precision floating datum;3 represent double essences Spend floating number.
Step S4, according to group packet protocol, the body information data is packaged and generate data packet.Described group of bag association View, refers to that the definition according to car networking system data transmission agreement packages.Data volume in the data packet of the present embodiment is determined It is adopted as shown in table 1:
Data volume definition in 1 data packet of table
Data type therein is as shown in table 2:
2 data type of table
Car-mounted terminal gathers the data in CAN bus according to configuration file, and packages to data, in data group bag Data order is corresponding with the order in configuration file.In the present embodiment, the data volume composing method in data packet is as follows:
It is unique to characterize data bag and configuration file such as the MD5 values that table 1BYTE 1 to BYTE 16 is configuration file Correspondence;
If the BYTE17 of table 1 is to BYTE18 bytes, because data total number is 4, it is hexadecimal to insert BYTE 17 0x00, BYTE 18 is hexadecimal 0x04;
Such as the BYTE19 bytes of table 1, because accumulative mileage selects single precision floating datum to be transmitted, hexadecimal number is inserted 0x01.Then from 20 bytes to 23 bytes, insert accumulative mileage value be converted to after single precision floating datum corresponding 4 byte 16 into Data processed.
Such as 24 bytes of BYTE of table 1, because speed selects single precision floating datum to be transmitted, hexadecimal number is inserted 0x01.Then from 25 bytes to 28 bytes, insert vehicle speed value and be converted to corresponding 4 byte hexadecimal number after single precision floating datum According to.
Such as 29 bytes of BYTE of table 1, because parking brake state selects single precision floating datum to be transmitted, hexadecimal is inserted Number 0x01.Then 30 bytes to 33 bytes, insert parking brake state value and are converted to corresponding 4 byte hexadecimal of single precision floating datum Data.
Such as 34 bytes of BYTE of table 1, because service brake state selects single precision floating datum to be transmitted, hexadecimal is inserted Number 0x01.Then 35 bytes to 38 bytes, insert parking brake state value and are converted to corresponding 4 byte hexadecimal of single precision floating datum Data.
By above-mentioned steps, the group bag of data volume in data packet is completed.Vehicle terminal software is according to transport protocol into one Step completes the group bag of whole data packet.
The embodiment is only preferred embodiment, and in practical operation, group bag data form slightly has with this group of bag data form Difference, but it is no more than inventive concept, it should regard as falling into the scope of the present invention.Such as the order using data and list Fixed group packet mode.
It is noted that in the present embodiment, data back is that timing returns, preferably 10 seconds transmission primarieses when normal, When vehicle breaks down, 1 second transmission primaries is brought up to.
Step S5, by the data packet back to the car networking background server.
Server is delivered a packet to, the identification code that MD5 values are configuration file is set;The MD5 values are used for the clothes Business device verifies the data packet of passback, determines the unique corresponding relation between data packet and configuration file.MD5 values are used In the corresponding configuration file of server matches, to obtain the list of signal and order, and then complete the correct of data and parse, deposit Storage and displaying.
Obviously in this step, it is related to the return data group bag of driving safety relative to the return data group of administrative monitoring class Right of the bag with preferential upload server.
Step S6, car networking background server will parse the data packet, and obtain the body information.
A kind of embodiment is:Data packet described in step S4 includes the signal list of fixation, the signal list records Need to be passed back to the signal of the car networking background server, and order and the data type of each signal between signal; Step S6 specifically includes procedure below:Data packet is verified, determined according to the definition of data packet by car networking background server Data packet format is correct, then carries out body information data parsing one by one, and all cars in data packet are extracted according to signal list Body information.
Another embodiment is:The fixed list information of each signal is not defined in data packet described in the step S4, Dynamic transmission is carried out by configuration file;Step S6 specifically includes procedure below:Car networking background server will carry out data packet During parsing, the data type of signal total number and each signal in data packet analytic signal data one by one;Then pass through The MD5 values in data packet are extracted, inquire corresponding configuration file signal name list;Finally, car networking background server leads to Cross signal list and parsing, storage and the displaying of data are completed in signal name list, complete data parsing.In the present embodiment, The MD5 values of 16 bytes are extracted first, obtain the correspondence between data packet and configuration file, and then obtain signal name row Table, i.e. 4 signals are respectively:Accumulative mileage, speed, parking brake state, service brake state.Then the 19th byte is parsed, is the discovery that list Accuracy floating-point number, so 20 to 23 byte datas of extraction, according to single precision floating datum recovering signal data, obtain actual add up Mileage value.By above-mentioned similar approach, the value of speed, parking brake state and service brake state is obtained successively, is then store in server In, complete the acquisition of body information.
When car networking background server does not have the corresponding profile information of MD5 values, car networking background server first to Car-mounted terminal inquires the signal name list of current configuration file, and car-mounted terminal arranges the MD5 values and signal name of configuration file Table is sent to server, car networking background server storage MD5 values and signal name list.
A kind of car networking CAN collecting methods provided by the invention, may also include step SA:Car networking background server Whether monitoring third party sends collection request, and car networking background server verifies third-party authority;Obtained if third party has The authority of request items, then generate configuration file according to request items and send to car-mounted terminal;If third party is without acquisition claims Purpose authority, then do not gather body information.
Third party can obtain body information to server application;For example, travelled on road, rear car is in order to avoid touching Hit, the body informations such as preceding vehicle speed, front truck braking conditions, the urgent lane change of front truck can be obtained, obtaining this aspect information in time has Help the generation that cuts down traffic accidents.In another example traffic police can obtain overspeed of vehicle, overweight information, in case administrative need.In another example ring Guarantor department can be with collection vehicle exhaust emissions information.Certainly, for different third parties, there are different power to body information collection Limit, server need to verify authority.
It is noted that the present invention is the CAN data acquisitions based on car networking, application field is not limited to the prior art Extract body information and applied to analysis automotive performance, detect the Vehicular system failure caused by vehicle service life.The present invention's Application field is following car networking technology, in car networking technology, each automobile be all can be communicated, information exchange. Existing car networking anti-collision technique be by judging that distance or prediction vehicle distances carry out anticollision between vehicle, and in the present invention, Can be by detecting body information, such as speed, braking state, when emergency brake occurs, speed, brake in vehicle CAN bus Car information avoids chasing after caused by front truck emergency brake by server, server notice or control rear automobile speed or steering Tail accident.And actually vehicle CAN information gathering can be also used for scene in car networking field.Scene 1, as being provided with automobile Vehicle-mounted weighing sensor is simultaneously connected with CAN bus, and traffic police can call the weighing information of automobile to server application, check vapour Whether car is overweight.Scene 2, environmental protection administration is acquired vehicle exhaust, and environmental protection administration configures vehicle exhaust to server application Configuration file is detected, and the configuration file is sent to automobile to be detected, obtains automobile emission gas analyzer report, environmental protection administration Associated vehicle can be punished or required according to this report to rectify and improve.Beneficial effect is, obtains in time on road with driving Body information, avoid traffic accident;Executive supervision department monitoring travel condition of vehicle, overweight state, tail gas pollution situation, carry out Relevant item is supervised, and is conducive to safeguard personal and public interest.
Preferred embodiment of the invention described in detail above.It should be appreciated that those of ordinary skill in the art without Need creative work to conceive according to the present invention and make many modifications and variations.Therefore, all technologies in the art Personnel are available by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Technical solution, all should be in the protection domain being defined in the patent claims.

Claims (5)

1. a kind of car networking CAN collecting methods, it is characterised in that comprise the following steps:
Step S1, according to the collection project of body information, the DBC files and configuration file of generation body information collection;
Step S2, the configuration file is sent to car-mounted terminal by car networking background server by wireless network;
Step S3, described car-mounted terminal is according to the body information data on the configuration file data acquisition bus;
Step S4, according to group packet protocol, the body information data is packaged and generate data packet;Described group of packet protocol, is Refer to and package according to the definition of car networking system data transmission agreement;In the data packet, MD5 values are set for configuration file Identification code;The MD5 values verify the data packet of passback for the server, determine data packet and configuration file Between unique corresponding relation;The fixed list information of each signal is not defined in the data packet, is carried out by configuration file Dynamic transmission;
Step S5, by the data packet back to the car networking background server;
Step S6, car networking background server will parse the data packet, and obtain the body information, specifically include following mistake Journey:
When car networking background server will carry out resolve packet, the number of signal total number and each signal in data packet According to type analytic signal data one by one;Then by extracting the MD5 values in data packet, corresponding configuration file signal name is inquired Claim list;Finally, car networking background server completes parsing, storage and the exhibition of data by signal list and signal name list Show, complete data parsing.
2. car networking CAN collecting methods according to claim 1, it is characterised in that:Step S1 specifically includes following Process:
The vehicle CAN bus agreement provided according to manufacturer, generates DBC files;
According to DBC file generated configuration files;The definition of each controller association message and signal in DBC is extracted first, including Controller title, the message ID of controller message, parameter name, start bit, parameter bit length, syllable sequence, data type, gain Value, bias, number range and unit;Set after extraction and gather relevant parameter, including the bus where baud rate, signal connects Mouthful sequence number, whether signal needs uploads, and completes the generation of configuration file.
3. car networking CAN collecting methods according to claim 2, it is characterised in that:Step S3 specifically includes following Process:
The baud rate is extracted, sets data transmission bauds, the corresponding CAN interface sequence number of setting controller message;
The configuration file is handled, extraction frame ID, data start bit, bit length, syllable sequence, gain, offset, it is total to obtain CAN Data on line on the frame ID;
The data value of body information parameters is parsed and calculated according to configuration file;
Repeat, until completing the extraction of all signal datas of configuration file, complete carrying for the body information data Take.
4. car networking CAN collecting methods according to claim 1, it is characterised in that:When car networking background server When not having the corresponding profile information of MD5 values, car networking background server is first to car-mounted terminal inquiry current configuration file The MD5 values of configuration file and signal name list are sent to server by signal name list, car-mounted terminal, and car networking backstage takes Business device storage MD5 values and signal name list.
5. car networking CAN collecting methods according to claim 1, it is characterised in that:Further include step SA:Car networking Whether background server monitoring third party sends collection request, and car networking background server verifies third-party authority;If the 3rd Side has the authority for obtaining request items, then generating configuration file according to request items sends to car-mounted terminal;If third party without The authority of request items is obtained, then does not gather body information.
CN201710701211.1A 2016-08-19 2017-08-16 A kind of car networking CAN collecting methods Active CN107347101B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2016106887588 2016-08-19
CN201610688758.8A CN106210131A (en) 2016-08-19 2016-08-19 A kind of car networking CAN collecting method

Publications (2)

Publication Number Publication Date
CN107347101A CN107347101A (en) 2017-11-14
CN107347101B true CN107347101B (en) 2018-05-04

Family

ID=57523077

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610688758.8A Pending CN106210131A (en) 2016-08-19 2016-08-19 A kind of car networking CAN collecting method
CN201710701211.1A Active CN107347101B (en) 2016-08-19 2017-08-16 A kind of car networking CAN collecting methods

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201610688758.8A Pending CN106210131A (en) 2016-08-19 2016-08-19 A kind of car networking CAN collecting method

Country Status (1)

Country Link
CN (2) CN106210131A (en)

Families Citing this family (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106444729A (en) * 2016-12-16 2017-02-22 普华基础软件股份有限公司 Trajectory capture system based on real-time system
CN106850372B (en) * 2017-02-22 2020-04-21 重庆长安新能源汽车科技有限公司 Method and system for testing controller CAN signal
CN107579890B (en) * 2017-07-31 2020-11-17 北汽福田汽车股份有限公司 Vehicle-mounted terminal and self-adaption method and device for vehicle-mounted terminal
CN107817786A (en) * 2017-11-09 2018-03-20 上汽通用五菱汽车股份有限公司 Vehicle off-line test method and system
CN108540363A (en) * 2017-12-30 2018-09-14 天津清源电动车辆有限责任公司 A kind of monitoring configuration method of electric-vehicle remote monitoring system
CN108418787B (en) * 2018-01-02 2021-02-26 深圳壹账通智能科技有限公司 Method for acquiring enterprise resource planning data, terminal device and medium
CN108282365A (en) * 2018-01-19 2018-07-13 北京新能源汽车股份有限公司 Vehicle configuration method, device, terminal, vehicle-mounted terminal and vehicle
CN110111585B (en) * 2018-02-01 2022-04-12 吉旗物联科技(上海)有限公司 Method for rapidly acquiring CANbus speed based on GPS
CN110505177B (en) * 2018-05-16 2023-06-30 杭州海康威视数字技术股份有限公司 Information collection system, terminal equipment and remote host
CN108833244A (en) * 2018-06-11 2018-11-16 无锡联力电子科技股份有限公司 A kind of new-energy automobile CAN bus remote collection method, apparatus and system
CN109639690B (en) * 2018-12-18 2021-09-24 重庆长安新能源汽车科技有限公司 Vehicle-mounted monitoring terminal and remote monitoring method and system thereof
CN111497764B (en) * 2019-01-31 2022-04-26 杭州海康汽车技术有限公司 Vehicle data processing method, system and device
CN109951542A (en) * 2019-03-12 2019-06-28 武汉光庭信息技术股份有限公司 CAN method of data capture, device and storage medium based on T-BOX
CN111010415B (en) * 2019-04-30 2022-02-18 长城汽车股份有限公司 Data transmission method and device for Internet of vehicles
CN110362361A (en) * 2019-07-19 2019-10-22 潍柴动力股份有限公司 The method and device of documenting
CN110445862A (en) * 2019-08-08 2019-11-12 重庆戴普思科技有限公司 A kind of vehicle body critical data acquisition mode
CN110545283B (en) * 2019-09-12 2022-08-23 潍柴动力股份有限公司 Bit-based J1939 variable data acquisition method
CN112583762A (en) * 2019-09-27 2021-03-30 北汽福田汽车股份有限公司 Control method and device for vehicle data acquisition
CN110660210A (en) * 2019-10-12 2020-01-07 扬州亚星客车股份有限公司 Data acquisition system and method based on CAN bus and wireless communication
CN110758389A (en) * 2019-11-08 2020-02-07 西南科技大学 Automobile driving state monitoring method and system based on millimeter wave radar technology
CN111142806A (en) * 2019-12-31 2020-05-12 北京三快在线科技有限公司 Vehicle data storage method, device, equipment and storage medium
CN111049937B (en) * 2019-12-31 2021-12-17 长城汽车股份有限公司 Data processing system and data transmission method of intelligent networked automobile
CN111181820A (en) * 2019-12-31 2020-05-19 智车优行科技(北京)有限公司 Method and apparatus for transmitting data, electronic device, and storage medium
CN111210539B (en) * 2020-01-02 2023-09-19 浙江吉利新能源商用车集团有限公司 Data analysis system for power storage battery
CN113079072B (en) * 2020-01-06 2022-11-11 广州汽车集团股份有限公司 Vehicle data acquisition method and system, computer equipment and storage medium
CN111258295A (en) * 2020-01-15 2020-06-09 重庆长安汽车股份有限公司 System and method for verifying big data acquisition and uploading accuracy
CN113259214B (en) * 2020-02-12 2023-01-13 彩虹无线(北京)新技术有限公司 Driving data monitoring system
CN111447128A (en) * 2020-03-24 2020-07-24 重庆长安汽车股份有限公司 Vehicle data acquisition and uploading method capable of being remotely and dynamically configured and storage medium
CN111489458A (en) * 2020-03-24 2020-08-04 联合汽车电子有限公司 Vehicle data recording method and system
CN111538317A (en) * 2020-05-27 2020-08-14 徐州徐工挖掘机械有限公司 Remote analysis method, device, system and medium for operating state of engineering machinery
CN111885099B (en) * 2020-06-05 2023-09-22 嘉兴行适安车联网信息科技有限公司 Method for supporting remote configuration of semaphore
CN112087483A (en) * 2020-07-25 2020-12-15 北京蜂云科创信息技术有限公司 Internet of vehicles CAN data acquisition method and equipment
CN112187936B (en) * 2020-09-29 2024-03-29 北京车和家信息技术有限公司 Vehicle data processing method, device, equipment, storage medium and vehicle
CN112255999B (en) * 2020-10-30 2021-11-26 安徽江淮汽车集团股份有限公司 Bus data acquisition method and device
CN114760084A (en) * 2021-03-10 2022-07-15 广州汽车集团股份有限公司 Vehicle data communication method, device and system
CN113067821A (en) * 2021-03-22 2021-07-02 聊城大学 CAN message analysis method based on single or multiple DBC files
CN113315816A (en) * 2021-05-10 2021-08-27 中寰卫星导航通信有限公司 Communication method, device and readable storage medium
CN113709226A (en) * 2021-08-20 2021-11-26 上海柴油机股份有限公司 Remote communication terminal data acquisition method based on configuration file
CN113872840B (en) * 2021-09-18 2023-05-09 杭州鸿泉物联网技术股份有限公司 CAN data acquisition and transmission method and device and vehicle-mounted terminal
CN115225699B (en) * 2021-11-17 2023-10-20 广州汽车集团股份有限公司 Vehicle data acquisition method, vehicle-mounted remote information processor and storage medium
CN116418619A (en) * 2021-12-30 2023-07-11 比亚迪股份有限公司 Electric automobile monitoring method and device and readable storage medium
CN114519025A (en) * 2022-02-16 2022-05-20 北京清研宏达信息科技有限公司 Method and system for automatically analyzing CAN bus data of intelligent network-connected automobile
CN114664003A (en) * 2022-03-23 2022-06-24 深圳市星卡软件技术开发有限公司 Method, device and equipment for remotely acquiring vehicle data
CN114793250B (en) * 2022-04-28 2023-07-04 重庆长安汽车股份有限公司 Configurable CAN data analysis method
CN114979121B (en) * 2022-05-25 2023-07-28 重庆长安汽车股份有限公司 Vehicle data uploading method and system based on functional configuration
CN114979217B (en) * 2022-05-31 2023-06-06 重庆长安汽车股份有限公司 Vehicle body big data transmission method
CN114937319A (en) * 2022-06-02 2022-08-23 重庆长安汽车股份有限公司 Vehicle data processing method and device, electronic equipment and medium
WO2024044976A1 (en) * 2022-08-30 2024-03-07 西门子股份公司 Data acquisition apparatus, method and system, electronic device, and storage medium
CN115529244B (en) * 2022-09-20 2024-06-14 重庆长安汽车股份有限公司 Data acquisition and transmission rule configuration method and device for vehicle terminal, server and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809962A (en) * 2012-09-03 2012-12-05 同济汽车设计研究院有限公司 Vehicle data acquisition terminal and vehicle information acquisition system
CN103108043A (en) * 2013-01-31 2013-05-15 厦门雅迅网络股份有限公司 Method for application database file self-adaptation electronic control unit (ECU) message collection
CN103605349A (en) * 2013-11-26 2014-02-26 厦门雅迅网络股份有限公司 Remote data real-time collection, analysis and statistical system and method based on CAN-bus
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN104935892A (en) * 2015-06-16 2015-09-23 湖南亿谷科技发展股份有限公司 Surveillance video collection method and system
CN104980516A (en) * 2015-06-26 2015-10-14 武汉光庭科技有限公司 Configurable method for multi-vehicle model body information acquisition system
CN105703990A (en) * 2014-11-28 2016-06-22 联创汽车电子有限公司 Analysis method and construction method of CAN communication message of vehicle controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9792435B2 (en) * 2014-12-30 2017-10-17 Battelle Memorial Institute Anomaly detection for vehicular networks for intrusion and malfunction detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809962A (en) * 2012-09-03 2012-12-05 同济汽车设计研究院有限公司 Vehicle data acquisition terminal and vehicle information acquisition system
CN103108043A (en) * 2013-01-31 2013-05-15 厦门雅迅网络股份有限公司 Method for application database file self-adaptation electronic control unit (ECU) message collection
CN103605349A (en) * 2013-11-26 2014-02-26 厦门雅迅网络股份有限公司 Remote data real-time collection, analysis and statistical system and method based on CAN-bus
CN103699410A (en) * 2013-12-20 2014-04-02 北京奇虎科技有限公司 Method and device for updating application programs
CN105703990A (en) * 2014-11-28 2016-06-22 联创汽车电子有限公司 Analysis method and construction method of CAN communication message of vehicle controller
CN104935892A (en) * 2015-06-16 2015-09-23 湖南亿谷科技发展股份有限公司 Surveillance video collection method and system
CN104980516A (en) * 2015-06-26 2015-10-14 武汉光庭科技有限公司 Configurable method for multi-vehicle model body information acquisition system

Also Published As

Publication number Publication date
CN107347101A (en) 2017-11-14
CN106210131A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN107347101B (en) A kind of car networking CAN collecting methods
CN103413452B (en) A kind of two-way active speed limit based on car networking and overspeed warning system
CN107422350B (en) Vehicle travel calculation method and device based on vehicle-mounted equipment and readable storage medium
US20030052796A1 (en) Service mediator system for vehicles and vehicle users in a traffic network
CN103676923A (en) An automobile fault diagnosing and processing method
CN101799686B (en) Vehicle-mounted diagnosis system
CN111415528B (en) Road safety early warning method and device, road side unit and storage medium
CN106302783A (en) Vehicle-mounted monitoring equipment and vehicle monitoring system
CN112003784B (en) Vehicle data transmission method, device, storage medium and device
KR20170025955A (en) Vehicle management system and vehicle management method using unified platform
US11945449B2 (en) Using ISA system to implement a speed policy identified based on behaivor parameters of a driving instance
CN109067857A (en) A kind of car networking big data analysis intelligent optimization algorithm
CN113645083A (en) CAN network anomaly detection method, gateway module, vehicle and readable storage medium
CN114401286B (en) Data uploading method and system based on vehicle-mounted terminal, storage medium and vehicle
CN104796863A (en) Method and system for forwarding information in vehicle multi-hop communication
CN109831515A (en) The test method and test signal generation device of tire on-line detecting system
WO2017211055A1 (en) Zigbee-based vehicle coordination system and coordination method
CN103723162A (en) Train axle temperature detecting method and vehicle-mounted unit plant
CN201163191Y (en) Vehicle-mounted GPS equipment with travelling recording function
CN204801823U (en) Be listed as accuse equipment dynamic monitoring system
CN103886771B (en) The running vehicle management method of a kind of school bus and system
CN111754765A (en) Information acquisition device
CN112866397B (en) Data storage method and Internet of vehicles system
CN211123752U (en) After-sale service system for operation vehicle
CN109819421A (en) Self Matching shows the display data transmissions method and system of equipment

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
CB03 Change of inventor or designer information

Inventor after: Mi Feng

Inventor after: Li Li

Inventor after: Liu Wei

Inventor before: Mi Feng

Inventor before: Li Li

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Internet of vehicles CAN data collection method

Effective date of registration: 20181008

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: 2018420000052

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Internet of vehicles CAN data collection method

Effective date of registration: 20200619

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2020420000034

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200605

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: 2018420000052

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20210623

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2020420000034

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A can data acquisition method for Internet of vehicles

Effective date of registration: 20210630

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2021420000064

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220620

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2021420000064

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method of can data acquisition for vehicle networking

Effective date of registration: 20220623

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2022420000181

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230609

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2022420000181

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A CAN data acquisition method for Vehicle-to-everything

Effective date of registration: 20230714

Granted publication date: 20180504

Pledgee: Guanggu Branch of Wuhan Rural Commercial Bank Co.,Ltd.

Pledgor: WUHAN INTEST ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2023420000302