CN107846419B - Method and system for transmitting OBD data of vehicle engine - Google Patents

Method and system for transmitting OBD data of vehicle engine Download PDF

Info

Publication number
CN107846419B
CN107846419B CN201711365495.8A CN201711365495A CN107846419B CN 107846419 B CN107846419 B CN 107846419B CN 201711365495 A CN201711365495 A CN 201711365495A CN 107846419 B CN107846419 B CN 107846419B
Authority
CN
China
Prior art keywords
protocol
data
vehicle
engine
control 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.)
Active
Application number
CN201711365495.8A
Other languages
Chinese (zh)
Other versions
CN107846419A (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.)
Yamei Zhilian Data Technology Co ltd
Original Assignee
Guangzhou Yame Information 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 Guangzhou Yame Information Technology Co ltd filed Critical Guangzhou Yame Information Technology Co ltd
Priority to CN201711365495.8A priority Critical patent/CN107846419B/en
Publication of CN107846419A publication Critical patent/CN107846419A/en
Application granted granted Critical
Publication of CN107846419B publication Critical patent/CN107846419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention provides a transmission method of vehicle engine OBD data, which is used for solving the technical problem that the OBD data of an engine ECU (electronic control unit) cannot be transmitted because different ECUs use different protocols.

Description

Method and system for transmitting OBD data of vehicle engine
Technical Field
The invention relates to the field of vehicle OBD data transmission, in particular to a method and a system for transmitting vehicle engine OBD data.
Background
At present, OBD data are generally transmitted by an ELM327 method, which sequentially searches several protocols commonly used in the current market, then globally broadcasts a request, and a vehicle replies which protocol is used for communication and transmission of OBD data by default according to ISO 15031-5.
The method CAN be normally used in most vehicles, but due to the updating of some vehicles, dozens of ECUs in the vehicle CAN use multiple protocols, for example, an engine ECU uses a CAN protocol, the rest ECUs use a K-wire protocol, and if the protocols are retrieved in a sequence of J1850- > K- > CAN, the data transmission protocol of the vehicle is identified as the K-wire protocol, so that the OBD data of the engine ECU cannot be requested to be transmitted.
Disclosure of Invention
The invention provides a transmission method of OBD data of a vehicle engine, aiming at solving the defect that the OBD data of the engine ECU can not be transmitted because different ECUs use different protocols in the prior art.
In order to realize the purpose, the technical scheme is as follows:
a transmission method of vehicle engine OBD data comprises the following steps:
s1, after a vehicle is started, a data application module initiates a data transmission request to a protocol identification control module;
s2, after receiving the data transmission request, the protocol identification control module starts a broadcast mode and searches protocols used by the ECU in the vehicle in sequence; then transmitting the searched protocol type to a protocol driving module; the protocol identification control module transmits the data transmission request to the protocol driving module;
s3, the protocol driving module packages the data transmission request according to the ith protocol searched by the protocol identification control module, and then transmits the packaged data to a signal conversion circuit, wherein the signal conversion circuit is used for converting the data into corresponding level signals; the initial value of i is 1;
s4, the level signal is transmitted to an ECU in the vehicle through the vehicle OBD port, and the ECU receives the level signal and then makes corresponding reply information to the vehicle OBD port;
s5, the signal conversion circuit transmits reply information to a protocol driving module after receiving the reply information, the protocol driving module performs data separation on the reply information and then transmits the separated data to a protocol identification control module, the protocol identification control module judges whether the reply information is sent by an engine ECU (electronic control Unit) according to the separated data, if so, the ECU is marked, a point-to-point physical addressing request mode is set to establish connection with the engine ECU, then engine OBD data are transmitted based on the established connection, and the protocol identification control module transmits the engine OBD data to a data application module after receiving the engine OBD data; if the reply message is not issued by the engine ECU, let i = i +1, and then step S3 is executed until the value of i is greater than the number of protocols searched by the protocol identification control module.
Preferably, the protocol type includes CAN protocol and K-wire protocol.
Preferably, the data application module, the protocol identification control module and the protocol driving module are integrated in the MCU.
Meanwhile, the invention also provides a system applying the method, and the specific scheme is as follows: the system comprises a data application module, a protocol identification control module, a protocol driving module, a signal conversion circuit, a vehicle OBD port and an ECU of a vehicle.
Compared with the prior art, the invention has the beneficial effects that:
1) the invention filters the data which is not the engine by judging whether the reply information is sent by the engine ECU, and simultaneously can accurately identify the OBD bottom layer protocol used by the engine ECU through the protocol type of the packed data transmission request when the reply information is judged to be sent by the engine ECU, thereby obtaining the complete engine OBD data.
2) The invention adopts the broadcast request and the point-to-point request mode, firstly adopts the broadcast request mode to identify all the vehicle ECUs supporting the OBD function, and switches to the point-to-point mode after finding out the engine ECU, and only communicates with the engine ECU, and other non-engine ECUs do not need to send data response requests, thereby reducing the workload of the non-engine, simultaneously reducing the load of a vehicle bus, reducing the interference reminding of other systems, and reducing the filtering of data by a request end.
Drawings
Fig. 1 is a schematic diagram of the structure of the components involved in the method.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the patent;
the invention is further illustrated below with reference to the figures and examples.
Example 1
As shown in fig. 1, the method of the present invention involves the following components: the system comprises a data application module, a protocol identification control module, a protocol driving module, a signal conversion circuit, a vehicle OBD port and an ECU of the vehicle.
The data application module, the protocol identification control module and the protocol driving module are integrated in the MCU and form a bus module together with the signal conversion circuit.
On the basis of the above, the method provided by the invention comprises the following steps:
s1, after a vehicle is started, a data application module initiates a data transmission request to a protocol identification control module;
s2, after receiving the data transmission request, the protocol identification control module starts a broadcast mode and searches protocols used by the ECU in the vehicle in sequence; then transmitting the searched protocol type to a protocol driving module; the protocol identification control module transmits the data transmission request to the protocol driving module;
s3, the protocol driving module packages the data transmission request according to the ith protocol searched by the protocol identification control module, and then transmits the packaged data to a signal conversion circuit, wherein the signal conversion circuit is used for converting the data into corresponding level signals; the initial value of i is 1;
s4, the level signal is transmitted to an ECU in the vehicle through the vehicle OBD port, and the ECU receives the level signal and then makes corresponding reply information to the vehicle OBD port;
s5, the signal conversion circuit transmits the reply information to the protocol drive module after receiving the reply information, the protocol drive module performs data separation on the reply information, the separated data is transmitted to the protocol identification control module, the protocol identification control module judges whether the reply information is sent by the engine ECU according to the separated data, if yes, the ECU is marked, a point-to-point physical addressing request mode is set to establish connection with the engine ECU, then engine OBD data is transmitted based on the established connection, and the protocol identification control module transmits the engine OBD data to the data application module after receiving the engine OBD data; if the reply message is not issued by the engine ECU, let i = i +1, and then step S3 is executed until the value of i is greater than the number of protocols searched by the protocol identification control module.
It should be understood that the above-described embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the claims of the present invention.

Claims (4)

1. A method for transmitting OBD data of a vehicle engine, applied to a vehicle having a plurality of ECUs using different protocols, comprising the steps of:
s1, after a vehicle is started, a data application module initiates a data transmission request to a protocol identification control module;
s2, after receiving the data transmission request, the protocol identification control module starts a broadcast mode and searches protocols used by the ECU in the vehicle in sequence; then transmitting the searched protocol type to a protocol driving module; the protocol identification control module transmits the data transmission request to the protocol driving module;
s3, the protocol driving module packages the data transmission request according to the ith protocol searched by the protocol identification control module, and then transmits the packaged data to a signal conversion circuit, wherein the signal conversion circuit is used for converting the data into corresponding level signals; the initial value of i is 1;
s4, the level signal is transmitted to an ECU in the vehicle through the vehicle OBD port, and the ECU receives the level signal and then makes corresponding reply information to the vehicle OBD port;
s5, the signal conversion circuit transmits reply information to the protocol driving module after receiving the reply information, the protocol driving module performs data separation on the reply information and then transmits the separated data to the protocol identification control module, the protocol identification control module judges whether the reply information is sent by the engine ECU according to the separated data, if so, the ECU is marked, a point-to-point physical addressing request mode is set to establish connection with the engine ECU, then, engine OBD data is transmitted based on the established connection, and other non-engine ECUs do not need to send data response requests; after receiving the engine OBD data, the protocol identification control module transmits the engine OBD data to the data application module; if the reply message is not sent by the engine ECU, i is made to i +1, and then step S3 is executed until the value of i is greater than the number of protocols searched by the protocol identification control module.
2. The method of transmitting vehicle engine OBD data according to claim 1, characterized in that: the protocol types comprise a CAN protocol and a K-line protocol.
3. The method of transmitting vehicle engine OBD data according to claim 1, characterized in that: the data application module, the protocol identification control module and the protocol driving module are integrated in the MCU.
4. A system according to any one of claims 1 to 3, wherein: the system comprises a data application module, a protocol identification control module, a protocol driving module, a signal conversion circuit, a vehicle OBD port and an ECU of a vehicle.
CN201711365495.8A 2017-12-18 2017-12-18 Method and system for transmitting OBD data of vehicle engine Active CN107846419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711365495.8A CN107846419B (en) 2017-12-18 2017-12-18 Method and system for transmitting OBD data of vehicle engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711365495.8A CN107846419B (en) 2017-12-18 2017-12-18 Method and system for transmitting OBD data of vehicle engine

Publications (2)

Publication Number Publication Date
CN107846419A CN107846419A (en) 2018-03-27
CN107846419B true CN107846419B (en) 2020-11-24

Family

ID=61664960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711365495.8A Active CN107846419B (en) 2017-12-18 2017-12-18 Method and system for transmitting OBD data of vehicle engine

Country Status (1)

Country Link
CN (1) CN107846419B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110926481A (en) * 2019-12-03 2020-03-27 华安鑫创控股(北京)股份有限公司 Vehicle positioning navigation method and device thereof
CN112073500B (en) * 2020-08-31 2022-02-25 安徽江淮汽车集团股份有限公司 Vehicle controller upgrading method, device, storage medium and device
CN112799375B (en) * 2020-12-25 2021-12-10 安徽工业大学 Vehicle-mounted bus detection system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638562A (en) * 2012-02-01 2012-08-15 浙江大学 Vehicle-mounted terminal communication method applied to engineering machinery vehicle networking
CN203365143U (en) * 2013-05-17 2013-12-25 绵阳新晨动力机械有限公司 Hand-held vehicle failure diagnosis system
CN104020851A (en) * 2014-06-17 2014-09-03 安徽猎豹汽车有限公司 Input device and method for vehicle information codes
CN105604664A (en) * 2015-12-23 2016-05-25 北京工业大学 Vehicle emission remote monitoring system based on OBD (on-board diagnostics) detection data
CN105892356A (en) * 2016-03-31 2016-08-24 大连楼兰科技股份有限公司 OBD device identification method and system based on data request types

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020865A (en) * 2012-11-23 2013-04-03 深圳市元征科技股份有限公司 Automotive engine individually-customized system and method
US9401923B2 (en) * 2013-10-23 2016-07-26 Christopher Valasek Electronic system for detecting and preventing compromise of vehicle electrical and control systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102638562A (en) * 2012-02-01 2012-08-15 浙江大学 Vehicle-mounted terminal communication method applied to engineering machinery vehicle networking
CN203365143U (en) * 2013-05-17 2013-12-25 绵阳新晨动力机械有限公司 Hand-held vehicle failure diagnosis system
CN104020851A (en) * 2014-06-17 2014-09-03 安徽猎豹汽车有限公司 Input device and method for vehicle information codes
CN105604664A (en) * 2015-12-23 2016-05-25 北京工业大学 Vehicle emission remote monitoring system based on OBD (on-board diagnostics) detection data
CN105892356A (en) * 2016-03-31 2016-08-24 大连楼兰科技股份有限公司 OBD device identification method and system based on data request types

Also Published As

Publication number Publication date
CN107846419A (en) 2018-03-27

Similar Documents

Publication Publication Date Title
US11810404B2 (en) Automobile diagnostic method, apparatus and vehicle communication interface
CN108540361B (en) Enhanced central gateway for vehicle networking
US9768979B2 (en) Can communication method and data frame structure for improving communication speed through increase in data amount
CN107846419B (en) Method and system for transmitting OBD data of vehicle engine
US8665891B2 (en) Gateway apparatus
US20160112215A1 (en) Method and apparatus for reducing load in can communication
WO2018196655A1 (en) Public network communication method for on-board electronic processing unit system
US11741122B2 (en) Vehicle data management device, vehicle data management system, and method of managing vehicle data
US20190243633A1 (en) Vehicular communication system
KR100696889B1 (en) inner vehicle communication system and gateway
KR101958477B1 (en) Lin communication system for vehicle and method for driving slave module in the system
CN111030902A (en) Vehicle electronic control unit refreshing method and system
US11362857B2 (en) Message processing method, apparatus, electronic control unit and readable storage medium
JPH10257078A (en) Vehicle multiple communication equipment
DE102017127284A1 (en) Operating method of a communication node for time synchronization in the vehicle network
CN105374083B (en) vehicle identification method and device
KR101612825B1 (en) Can controller, gateway for internal vehicle communication and control method the same
US20190305983A1 (en) Method and apparatus for configuring backup path in vehicle network
CN104283751A (en) Method and device for processing messages sent periodically on CAN bus
KR101704300B1 (en) Method for transmitting/receiving can message and system performing the same
US11171857B2 (en) Identifying an electronic device connected to a communication network that has XCP enabled
CN115242830B (en) Vehicle data processing method, vehicle and data processing system
CN112514331B (en) Method for operating a sensor device in a motor vehicle on the basis of a DSI protocol
JP2013082352A (en) Communication equipment for vehicle
JP7151930B2 (en) RELAY DEVICE, COMMUNICATION NETWORK SYSTEM AND COMMUNICATION CONTROL METHOD

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221223

Address after: 510630 Room 101, No. 227, Gaotang Road, Tianhe District, Guangzhou City, Guangdong Province (Location: Room 601) (office only)

Patentee after: Yamei Zhilian Data Technology Co.,Ltd.

Address before: 510630 ABCDEFG, Room 601, No.1 Hanjing Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU YAME INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right