CN107943007A - A kind of decoding method of different automobile types engine data - Google Patents

A kind of decoding method of different automobile types engine data Download PDF

Info

Publication number
CN107943007A
CN107943007A CN201711337826.7A CN201711337826A CN107943007A CN 107943007 A CN107943007 A CN 107943007A CN 201711337826 A CN201711337826 A CN 201711337826A CN 107943007 A CN107943007 A CN 107943007A
Authority
CN
China
Prior art keywords
data
running computer
car running
parsing
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711337826.7A
Other languages
Chinese (zh)
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.)
Ji Qi (chengdu) Science And Technology Co Ltd
Original Assignee
Ji Qi (chengdu) Science And 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 Ji Qi (chengdu) Science And Technology Co Ltd filed Critical Ji Qi (chengdu) Science And Technology Co Ltd
Priority to CN201711337826.7A priority Critical patent/CN107943007A/en
Publication of CN107943007A publication Critical patent/CN107943007A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention discloses a kind of decoding method of different automobile types engine data, including data resolution module and protocol adaptor, data resolution module connection protocol adapter, protocol adaptor connects CAN parsing modules, K lines parsing module, J1708 parsing modules respectively, CAN parsing modules, K lines parsing module, J1708 parsing modules connect OBD equipment respectively, the present invention can be automatically generated the relevant analytical algorithm of car running computer OBD module contents by software, reduce the construction cycle, human cost is saved, while reduces error rate.In addition, the present invention is real also to have the characteristics that portability is strong.

Description

A kind of decoding method of different automobile types engine data
Technical field
The present invention relates to car networking technology field, is specially a kind of decoding method of different automobile types engine data.
Background technology
OBD is onboard diagnostic system.This system at any time monitors the operation conditions and exhaust gas aftertreatment system of engine Working status, once finding to be possible to cause to discharge exceeded situation, can send warning at once.When system breaks down, therefore Hinder lamp (MIL) or check that engine emergency warning lamp is bright, while fault message can be stored in memory by OBD system, pass through examining for standard Disconnected instrument and diagnosis interface can read relevant information in the form of error code.According to the prompting of error code, maintenance personal can be fast Speed accurately determines property and the position of failure.OBD is by the various component informations related with discharge, is connected to electronic control unit (ECU), ECU possesses detection and analysis and the function of discharge dependent failure.When there is discharging failure, ECU record fault messages And correlative code, and given a warning by trouble light, inform driver.ECU is ensured to fault message by standard data interface Access and processing.
Vehicle has popularized car running computer interface at present, and travel condition of vehicle, event can be read by car running computer OBD interfaces The information such as barrier, maintenance.In general, the data read from interface are initial data, processing need to be passed through so as to learn vehicle-state, and Each producer vehicle reading manner is different.Therefore, handling complex data Communication processing needs a large amount of manpowers and construction cycle.This Invention can be automatically generated the relevant source code of car running computer OBD module contents by software, reduce the construction cycle, save manpower into This, while reduce error rate.In addition, the present invention is real also to have the characteristics that portability is strong.
In conventional car running computer OBD modules parsing code numerous phases can be defined by different agreement in multiple source code files Variable is closed, and variable-definition can be used in different source program codes, many sources can be involved by changing some variable therein The change of file, has change all to need upgrade procedure again every time, and mesh source file is mostly by the way of manual compiling and modification, The change of one variable-definition, it would be desirable to many related source file relevant portions are changed one by one, it is time-consuming and laborious, hold very much It is error-prone, influence the development quality of whole product.
The content of the invention
It is an object of the invention to provide a kind of decoding method of different automobile types engine data, to solve above-mentioned background The problem of being proposed in technology.
To achieve the above object, the present invention provides following technical solution:A kind of encoding and decoding of different automobile types engine data Method, including data resolution module and protocol adaptor, the data resolution module connection protocol adapter, the protocol adaptation Device connects CAN parsing modules, K lines parsing module, J1708 parsing modules respectively, the CAN parsing modules, K lines parsing module, J1708 parsing modules connect OBD equipment respectively.
Preferably, comprise the following steps:
A, multiple car running computer OBD data are obtained, wherein, the car running computer OBD data variables include name variable and Multiple attribute fields;
B, by the multiple car running computer OBD data default files;
C, the default file is parsed, with respectively according to the title of each car running computer OBD data, part attribute Field and multiple initial car running computer OBD data variables define the multigroup design variables of file generated, and according to described multigroup pre- If variable generates corresponding multiple arrays;
D, the corresponding initial car running computer OBD data variables of content write-in in the multiple array are defined into file respectively In to generate multiple car running computer OBD data variable definition source files.
Compared with prior art, the beneficial effects of the invention are as follows:The present invention can be automatically generated car running computer OBD by software The relevant analytical algorithm of module contents, reduces the construction cycle, saves human cost, while reduces error rate, improves development quality; In addition, the present invention is suitable for different development platforms, have the advantages that portable height, universality are high.
Brief description of the drawings
Fig. 1 is principle of the invention block diagram.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
Referring to Fig. 1, the present invention provides a kind of technical solution:A kind of decoding method of different automobile types engine data, Including data resolution module 1 and protocol adaptor 2, the 1 connection protocol adapter 2 of data resolution module, the protocol adaptation Device 2 connects CAN parsing modules 3, K lines parsing module 4, J1708 parsing modules 5, the CAN parsing modules 3, the parsing of K lines respectively Module 4, J1708 parsing modules 5 connect OBD equipment 6 respectively.Wherein, CAN parsing modules are used to receive the car that OBD equipment reports Data-message, caches vehicle data;Determine vehicle data message-length, intercepted according to vehicle data message-length slow The vehicle data bag deposited;Protocol adaptor, for the data packet after interception to be carried out protocol adaptation, determines matched access association View;Data resolution module is used to parse data in the protocol adaptation, and data are converted to protocol data by byte stream Entity, the data after being parsed.
In the present invention, a kind of decoding method of different automobile types engine data, comprises the following steps:
A, multiple car running computer OBD data are obtained, wherein, the car running computer OBD data variables include name variable and Multiple attribute fields;
B, by the multiple car running computer OBD data default files;
C, the default file is parsed, with respectively according to the title of each car running computer OBD data, part attribute Field and multiple initial car running computer OBD data variables define the multigroup design variables of file generated, and according to described multigroup pre- If variable generates corresponding multiple arrays;
D, the corresponding initial car running computer OBD data variables of content write-in in the multiple array are defined into file respectively In to generate multiple car running computer OBD data variable definition source files.
The present invention can be automatically generated the relevant analytical algorithm of car running computer OBD module contents by software, reduce exploitation week Phase, saves human cost, while reduces error rate, improves development quality;In addition, the present invention is suitable for different development platforms, Have the advantages that portable height, universality are high.
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with Understanding without departing from the principles and spirit of the present invention can carry out these embodiments a variety of changes, modification, replace And modification, the scope of the present invention is defined by the appended.

Claims (2)

1. a kind of decoding method of different automobile types engine data, including data resolution module (1) and protocol adaptor (2), It is characterized in that:Data resolution module (1) the connection protocol adapter (2), the protocol adaptor (2) connect CAN respectively Parsing module (3), K lines parsing module (4), J1708 parsing modules (5), the CAN parsing modules (3), K line parsing modules (4), J1708 parsing modules (5) connect OBD equipment (6) respectively.
A kind of 2. decoding method of different automobile types engine data according to claim 1, it is characterised in that:Including with Lower step:
A, multiple car running computer OBD data are obtained, wherein, the car running computer OBD data variables include name variable and multiple Attribute field;
B, by the multiple car running computer OBD data default files;
C, the default file is parsed, with respectively according to the title of each car running computer OBD data, part attribute field And multiple initial car running computer OBD data variables define the multigroup design variables of file generated, and according to multigroup default change Amount generates corresponding multiple arrays;
D, respectively by the corresponding initial car running computer OBD data variables of content write-in in the multiple array define in file with Generate multiple car running computer OBD data variable definition source files.
CN201711337826.7A 2017-12-14 2017-12-14 A kind of decoding method of different automobile types engine data Pending CN107943007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711337826.7A CN107943007A (en) 2017-12-14 2017-12-14 A kind of decoding method of different automobile types engine data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711337826.7A CN107943007A (en) 2017-12-14 2017-12-14 A kind of decoding method of different automobile types engine data

Publications (1)

Publication Number Publication Date
CN107943007A true CN107943007A (en) 2018-04-20

Family

ID=61944078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711337826.7A Pending CN107943007A (en) 2017-12-14 2017-12-14 A kind of decoding method of different automobile types engine data

Country Status (1)

Country Link
CN (1) CN107943007A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108803580A (en) * 2018-08-15 2018-11-13 深圳市元征科技股份有限公司 A kind of method and relevant device of matching vehicle CAN agreement
CN112015453A (en) * 2020-09-14 2020-12-01 德明通讯(上海)有限责任公司 Firmware upgrading method for OBD (on-Board diagnostics) embedded equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130211828A1 (en) * 2012-02-13 2013-08-15 General Motors Llc Speech processing responsive to active noise control microphones
CN103970112A (en) * 2013-01-29 2014-08-06 北京金奔腾汽车科技有限公司 Automobile computer diagnostic instrument capable of automatically switching channel diagnosis
CN205186049U (en) * 2015-08-06 2016-04-27 四川九洲电器集团有限责任公司 OBD automobile -mounted terminal
CN105835755A (en) * 2016-05-04 2016-08-10 江苏新安电器有限公司 Intelligent automobile lamp control system based on OBD port and automobile body bus protocol self-adaptive method
CN106027605A (en) * 2016-04-30 2016-10-12 北京智驾互联信息服务有限公司 Data processing device of vehicle state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130211828A1 (en) * 2012-02-13 2013-08-15 General Motors Llc Speech processing responsive to active noise control microphones
CN103970112A (en) * 2013-01-29 2014-08-06 北京金奔腾汽车科技有限公司 Automobile computer diagnostic instrument capable of automatically switching channel diagnosis
CN205186049U (en) * 2015-08-06 2016-04-27 四川九洲电器集团有限责任公司 OBD automobile -mounted terminal
CN106027605A (en) * 2016-04-30 2016-10-12 北京智驾互联信息服务有限公司 Data processing device of vehicle state
CN105835755A (en) * 2016-05-04 2016-08-10 江苏新安电器有限公司 Intelligent automobile lamp control system based on OBD port and automobile body bus protocol self-adaptive method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108803580A (en) * 2018-08-15 2018-11-13 深圳市元征科技股份有限公司 A kind of method and relevant device of matching vehicle CAN agreement
CN108803580B (en) * 2018-08-15 2021-08-17 深圳市元征科技股份有限公司 Method for matching vehicle CAN protocol and related equipment
CN112015453A (en) * 2020-09-14 2020-12-01 德明通讯(上海)有限责任公司 Firmware upgrading method for OBD (on-Board diagnostics) embedded equipment

Similar Documents

Publication Publication Date Title
CN111694341A (en) Fault data storage method and device, vehicle-mounted equipment and storage medium
CN106850798A (en) A kind of automobile monitoring based on remote wireless control, diagnosis and the method and system demarcated
CN108255152B (en) vehicle diagnosis method, diagnosis box and computer readable storage medium
CN1794123A (en) Monitoring instrument of vehicle control system CAN/LIN network and its test method
CN107450525A (en) Vehicle fault detection apparatus and method
CN102981496A (en) Remote control and data storage method based on vehicle professional diagnosis
CN107719153A (en) Collection plate address automatic allocating method and device in battery management system
CN104636241B (en) Vehicle Controller daily record data automatic analysis method based on Requirements Modeling
CN114490161B (en) Fault diagnosis method and device, vehicle and storage medium
CN107943007A (en) A kind of decoding method of different automobile types engine data
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN106640305A (en) Monitoring system and method for vehicle emission control aftertreatment device
CN108021124A (en) Based on the automotive diagnostic system and diagnostic method being wirelessly transferred
CN111506047A (en) Vehicle diagnosis method, device and storage medium
CN109951542A (en) CAN method of data capture, device and storage medium based on T-BOX
CN110647139B (en) Evaluation test tool and evaluation test method for OBD (on-Board diagnostics) mass production vehicle
CN109782736A (en) Vehicle data read method, device, mobile unit
CN111123892A (en) Remote diagnosis system and method based on 5G technology
CN202080217U (en) Vehicle data collection, storage, analysis and display device
CN115859941A (en) Real-time analysis method and device for vehicle-mounted ATC log
FR3045822A1 (en) METHOD FOR SUPPLYING DIAGNOSTIC DATA FOR GENERATING CONTROL TESTS IN A TECHNICAL CONTROL PROCESS
CN109324593A (en) The trouble analysis system and failure analysis methods of automobile test
CN209248330U (en) A kind of vehicle trouble OBD detector
CN114661030A (en) Method and device for diagnosing function configuration
CN114488997A (en) ECU (electronic control Unit) flashing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420