CN112015168B - Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols - Google Patents
Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols Download PDFInfo
- Publication number
- CN112015168B CN112015168B CN202010958453.0A CN202010958453A CN112015168B CN 112015168 B CN112015168 B CN 112015168B CN 202010958453 A CN202010958453 A CN 202010958453A CN 112015168 B CN112015168 B CN 112015168B
- Authority
- CN
- China
- Prior art keywords
- communication
- vehicle
- diagnosis
- function
- protocols
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric 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/0213—Modular 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
Abstract
A vehicle diagnosis method based on automatic switching of communication protocols comprises the following steps: sequentially acquiring communication protocols and corresponding communication parameters from corresponding relations among a plurality of communication protocols corresponding to the current diagnosis function, corresponding communication parameters and corresponding function commands, which are established in advance, and trying to establish communication with a vehicle communication module; when the communication is successfully established through a certain communication protocol, acquiring a corresponding function command according to the corresponding relation, and sending the function command to a vehicle communication module; and after a certain function command is sent, receiving effective feedback data of the vehicle communication module, and diagnosing according to the effective feedback data. The invention realizes the automatic protocol switching of the diagnosis function and improves the vehicle repairing efficiency.
Description
Technical Field
The invention belongs to the technical field of vehicle diagnosis, and particularly relates to a vehicle diagnosis method, a vehicle diagnosis system and vehicle diagnosis equipment based on automatic switching of communication protocols.
Background
The automobile diagnosis equipment is a special tool specially aiming at automobile detection and maintenance, and the automobile diagnosis equipment in the current market mainly provides the functions of reading fault codes, reading data streams, reading version information, performing functional tests, flashing data and the like. Since manufacturers write various communication protocols when calibrating the vehicle communication module, the automobile diagnostic equipment needs to provide various protocols to support automobile detection.
The conventional automobile diagnosis device can create different nodes according to different protocols (different nodes can be clicked to enter different diagnosis interfaces), which results in the complexity of the user when using the automobile diagnosis device being increased, and also results in the following problems:
1. when a user diagnoses a certain vehicle, a certain diagnosis function is required, the diagnosis function can support a plurality of protocols, at the moment, the protocol can be switched only by replacing nodes, time is required to search the nodes when the user is not familiar with diagnosis equipment, and even a wrong system is possibly caused, so that the vehicle repairing efficiency is influenced.
2. Some novice users do not know the automobile communication, and only repair the automobile from the diagnosis result of a single node, which may result in that the problem cannot be found or the problem of the automobile cannot be accurately positioned, and the efficiency of repairing the automobile is also influenced.
Disclosure of Invention
Based on the above, a vehicle diagnosis method, system and diagnosis device based on communication protocol automatic switching are provided to solve the above technical problems.
In order to solve the technical problems, the invention adopts the following technical scheme:
in one aspect, a vehicle diagnosis method based on automatic switching of communication protocols is provided, which is characterized by comprising the following steps:
s101, responding to a diagnosis function selected by a user, determining the current diagnosis function, sequentially acquiring communication protocols and corresponding communication parameters according to a preset communication protocol priority order from the corresponding relationship between a plurality of communication protocols corresponding to the current diagnosis function and corresponding communication parameters and function commands, and trying to establish communication with a vehicle communication module;
the corresponding relation also has a command for establishing communication, the attempt is communicated with the vehicle communication module, and the method further comprises the following steps:
interrupting the current communication;
sending the command for establishing communication to the vehicle communication module according to the communication protocol and the communication parameters;
if the vehicle communication module responds positively, the communication is established successfully;
s102, when the communication is successfully established through a certain communication protocol, acquiring a corresponding function command according to the corresponding relation, and sending the function command to a vehicle communication module;
s103, after a function command is sent, effective feedback fault data of the vehicle communication module are received, diagnosis is carried out according to the effective feedback fault data, if the effective feedback fault data of the vehicle communication module are not received, communication is tried to be established with the vehicle communication module through the next communication protocol and communication parameters according to the step S101, and if all the protocols are tried, a user is prompted to fail to realize the diagnosis function.
In another aspect, a vehicle diagnostic system based on automatic switching of communication protocols is provided, which includes a storage module including instructions loaded and executed by a processor, wherein the instructions, when executed, cause the processor to execute the above-mentioned vehicle diagnostic method based on automatic switching of communication protocols.
In still another aspect, a diagnostic apparatus having the above-described vehicle diagnostic system based on automatic switching of communication protocols is provided.
The invention realizes the automatic protocol switching of the diagnosis function, replaces the attempt of manually selecting the node by the user, saves the time for troubleshooting the vehicle problem, improves the vehicle repairing efficiency, assists the user to carry out command interaction for realizing the function, avoids unnecessary time waste caused by switching the node back and forth, and avoids the condition that a novice user only repairs the vehicle from the diagnosis result of a single node.
Drawings
The invention is described in detail below with reference to the following figures and detailed description:
FIG. 1 is a flow chart of the present invention.
Detailed Description
As shown in fig. 1, an embodiment of the present disclosure provides a vehicle diagnostic method based on automatic switching of a communication protocol, including the following steps:
s101, sequentially acquiring communication protocols and corresponding communication parameters from corresponding relations among a plurality of communication protocols corresponding to the current diagnosis function, corresponding communication parameters and corresponding function commands, and trying to establish communication with a vehicle communication module.
At present, protocols mainly supported by each communication module on an automobile are common: ISO15765, KWP2000 and the like, and after a communication protocol is determined, communication can be established with the vehicle communication module only by corresponding communication parameters.
The communication parameters include communication pins, baud rate and communication address.
In order to improve efficiency, the communication protocols and the corresponding communication parameters may be sequentially obtained according to a preset priority order of the communication protocols.
In this embodiment, the communication protocol priority order may be set by the following rules:
although the vehicle communication module can support multiple protocols when being calibrated in factory, generally, only one or two protocols are used for calibrating vehicle information, the read information is the operation result of an actual vehicle component, and the priority of the part of protocols needs to be improved.
The stored information corresponding to a part of protocols is not calibrated, the read information may be a default value and cannot be used as reference information for repairing vehicles, versions of communication modules of the same system at different periods may be different, manufacturers may have different calibration contents of the protocols, and therefore the priority of the part of protocols needs to be reduced.
In this embodiment, before step S101, the following steps may also be performed:
in response to a user selected diagnostic function, a current diagnostic function is determined. In an actual application scenario, a user selects a diagnostic function on a diagnostic interface, and the selected diagnostic function is used as a current diagnostic function.
Preferably, in order to further improve the efficiency, before step S101, the following steps may also be performed:
a. and responding to the diagnosis function selected by the user, and acquiring the current communication protocol and the communication parameters.
b. And c, judging whether the communication protocol priority order has a special priority, if so, executing the step c, and if not, executing the step S101.
c. And matching the current communication protocol with the communication protocols in the corresponding relation, if the matching is successful, trying to establish communication with the vehicle communication module through the current communication protocol and the communication parameters, executing the step S102, and if the matching is unsuccessful, executing the step S101.
In some cases, although the priority order of a plurality of communication protocols corresponding to a certain diagnostic function is defined, the priority order is only artificially defined, and it is difficult to say that the priority of the protocol in the subsequent order is always lower than that of the protocol in the previous order.
The current communication protocol and communication parameters refer to the currently used communication protocol and communication parameters when the diagnostic function is clicked, and if the diagnostic function B is completed, the user selects the diagnostic function a, and at this time, the current communication protocol and communication parameters are the communication protocol and communication parameters used when the diagnostic function B is successfully completed.
In this embodiment, the special priority may be represented as priority 0 by defining the special priority in the priority order to determine whether to attempt to establish communication from the current communication protocol first.
If with vehicle communication module: weichai EDC17CV44P949 is an example, which supports communication protocols such as KWP2000_ K, KWP2000_ CAN, 15031, 1939, etc.
The KWP2000_ K and KWP2000_ CAN protocols CAN support reading of information and faults of all modules on the vehicle, but part of faults need to be read through other protocols when being defined by a manufacturer. 15031 and 1939 are communication protocols supported by most communication modules, the supported functions are usually simpler, and the information that can be read is less, but the relevant information of the vehicle emission and the fault reported by the meter can be read through the two protocols.
Since the system supports more protocols, but the KWP2000_ K and the KWP2000_ CAN are also important in the vehicle repairing process, the priority order CAN be set as:
priority 0
Priority 1 KWP2000_ K
Priority 2 KWP2000_ CAN
Priority 315031
Priority 41939.
For example, if the current communication protocol is KWP2000_ K and KWP2000_ CAN, KWP2000_ K and 1939 are configured in the priority order of the communication protocols under the condition that the priority is 0, the current diagnostic function supports K line reading, and then the trial is carried out according to the current communication protocol (KWP 2000_ K) and the untried protocol order (according to the priority order: KWP2000_ CAN and 1939); if only KWP2000_ CAN and 1939 are configured in the priority sequence of the communication protocol, which indicates that K-line reading is not supported, the communication is tried to be established in sequence according to the priority sequence of the communication protocol.
Specifically, the correspondence relationship further includes a command for establishing communication, and the attempting to establish communication with the vehicle communication module further includes:
a. interrupting the current communication.
b. According to the communication protocol and the communication parameters, communication pins and a communication baud rate are set, and a command for establishing communication, such as an initialization command (optional) and a version information command, is sent to the vehicle communication module.
c. If the vehicle communication module responds positively, the communication is established successfully. Positive response means that the command is affirmed and the content of the command request is replied so as to confirm whether the current vehicle communication module supports the command request; in contrast, a negative response is present, which indicates that the current vehicle communication module does not support the command request. The positive response and the negative response are expressed differently according to different communication protocols, and are not listed.
In an embodiment, the correspondence is established in a database.
And S102, after communication is successfully established through a certain communication protocol, acquiring a corresponding function command according to the corresponding relation, and sending the function command to the vehicle communication module, such as a fault code reading command (corresponding to a fault code reading function), a data stream reading command (corresponding to a data stream reading function) and the like.
If the communication establishment of a communication protocol is unsuccessful, then communication with the vehicle communication module is attempted via the next communication protocol and communication parameters according to step S101.
And S103, after a function command is sent, receiving effective feedback fault data of the vehicle communication module (if the effective feedback fault data are received within a specified time), and diagnosing according to the effective feedback fault data.
If no effective feedback fault data of the vehicle communication module is received (no effective feedback fault data is received within the specified time), communication is tried to be established with the vehicle communication module through the next communication protocol and the communication parameters according to the step S101, and at this time, if all protocols are tried, the user is prompted that the diagnostic function is failed to be implemented.
Based on the same inventive concept, the present specification also provides a vehicle diagnostic system based on communication protocol automatic switching, which includes a storage module, where the storage module includes instructions (program codes) loaded and executed by a processor, and the instructions, when executed, cause the processor to execute the steps according to the various exemplary embodiments of the present invention described in the above-mentioned vehicle diagnostic method based on communication protocol automatic switching section of the present specification.
The memory module may include a readable medium in the form of a volatile memory unit, such as a random access memory unit (RAM) and/or a cache memory unit, and may further include a read only memory unit (ROM).
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Based on the same inventive concept, the embodiment of the present specification further provides a diagnostic device, which has the above vehicle diagnostic system based on automatic switching of communication protocols, and details are not repeated here.
The invention realizes the automatic protocol switching of the diagnosis function, replaces the attempt of manually selecting the node by the user, saves the time for troubleshooting the vehicle problem, improves the vehicle repairing efficiency, assists the user to carry out command interaction for realizing the function, avoids unnecessary time waste caused by switching the node back and forth, and avoids the condition that a novice user only repairs the vehicle from the diagnosis result of a single node.
However, those skilled in the art should realize that the above embodiments are illustrative only and not limiting to the present invention, and that changes and modifications to the above described embodiments are intended to fall within the scope of the appended claims, provided they fall within the true spirit of the present invention.
Claims (5)
1. A vehicle diagnosis method based on automatic switching of communication protocols is characterized by comprising the following steps:
s101, responding to a diagnosis function selected by a user, determining the current diagnosis function, sequentially acquiring communication protocols and corresponding communication parameters according to a preset communication protocol priority order from the corresponding relationship between a plurality of communication protocols corresponding to the current diagnosis function and corresponding communication parameters and function commands, and trying to establish communication with a vehicle communication module;
the corresponding relation also has a command for establishing communication, the attempt is communicated with the vehicle communication module, and the method further comprises the following steps:
interrupting the current communication;
sending the command for establishing communication to the vehicle communication module according to the communication protocol and the communication parameters;
if the vehicle communication module responds positively, the communication is established successfully;
s102, when the communication is successfully established through a certain communication protocol, acquiring a corresponding function command according to the corresponding relation, and sending the function command to a vehicle communication module;
s103, after a function command is sent, effective feedback fault data of the vehicle communication module are received, diagnosis is carried out according to the effective feedback fault data, if the effective feedback fault data of the vehicle communication module are not received, communication is tried to be established with the vehicle communication module through the next communication protocol and communication parameters according to the step S101, and if all the protocols are tried, a user is prompted to fail to realize the diagnosis function.
2. The method for vehicle diagnosis based on automatic switching of communication protocol as claimed in claim 1, further comprising the steps of:
responding to a diagnosis function selected by a user, and acquiring a current communication protocol and communication parameters;
judging whether the communication protocol priority order has a special priority, if so, executing the next step, and if not, executing the step S101;
and matching the current communication protocol with the communication protocol in the corresponding relation, if the matching is successful, trying to establish communication with the vehicle communication module through the current communication protocol and the communication parameters, and executing the step S102, and if the matching is unsuccessful, executing the step S101.
3. The method of claim 2, wherein the communication parameters include communication pin, baud rate and communication address.
4. A vehicle diagnostic system based on automatic switching of communication protocols, characterized by comprising a storage module including instructions loaded and executed by a processor, the instructions when executed causing the processor to execute a method according to any one of claims 1-3.
5. A diagnostic apparatus characterized by having a vehicle diagnostic system based on automatic switching of communication protocols according to claim 4.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010958453.0A CN112015168B (en) | 2020-09-14 | 2020-09-14 | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols |
CA3141178A CA3141178A1 (en) | 2020-09-14 | 2021-03-18 | Automatic switching vehicle diagnostic method, system and diagnostic equipment based on communication protocols |
PCT/CN2021/081581 WO2021223521A1 (en) | 2020-09-14 | 2021-03-18 | Vehicle diagnosis method and system based on automatic switching of communication protocols, and diagnosis device |
AU2021267059A AU2021267059A1 (en) | 2020-09-14 | 2021-03-18 | Vehicle diagnosis method and system based on automatic switching of communication protocols, and diagnosis device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010958453.0A CN112015168B (en) | 2020-09-14 | 2020-09-14 | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112015168A CN112015168A (en) | 2020-12-01 |
CN112015168B true CN112015168B (en) | 2021-08-06 |
Family
ID=73522453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010958453.0A Active CN112015168B (en) | 2020-09-14 | 2020-09-14 | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols |
Country Status (4)
Country | Link |
---|---|
CN (1) | CN112015168B (en) |
AU (1) | AU2021267059A1 (en) |
CA (1) | CA3141178A1 (en) |
WO (1) | WO2021223521A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015168B (en) * | 2020-09-14 | 2021-08-06 | 上海星融汽车科技有限公司 | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols |
CN112684777A (en) * | 2020-12-21 | 2021-04-20 | 上海星融汽车科技有限公司 | Vehicle remote diagnosis system based on cloud platform |
CN113012470A (en) * | 2021-03-18 | 2021-06-22 | 中国第一汽车股份有限公司 | Alarming method and parameter real-time adjusting method of front collision early warning system |
CN113282071A (en) * | 2021-04-26 | 2021-08-20 | 深圳市元征科技股份有限公司 | Vehicle diagnosis method, system and related device |
CN113359675A (en) * | 2021-06-22 | 2021-09-07 | 上海星融汽车科技有限公司 | Vehicle sensor fault diagnosis system |
CN113359680B (en) * | 2021-06-28 | 2023-05-23 | 潍柴动力股份有限公司 | Data acquisition method and vehicle-mounted terminal |
CN114143273A (en) * | 2021-11-24 | 2022-03-04 | 深圳数马电子技术有限公司 | Channel allocation method, device, computer equipment and computer readable storage medium |
CN116088486B (en) * | 2023-04-10 | 2023-06-13 | 深圳市星卡科技股份有限公司 | Diagnostic method and device for vehicle electric control system and vehicle diagnostic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102780725A (en) * | 2011-05-12 | 2012-11-14 | 上海通用汽车有限公司 | Communication protocol adaption device and communication protocol adaption method for vehicle diagnosis |
CN104155971A (en) * | 2014-08-07 | 2014-11-19 | 北京九五智驾信息技术股份有限公司 | Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus |
CN107889076A (en) * | 2017-10-26 | 2018-04-06 | 深圳市元征软件开发有限公司 | Vehicular diagnostic method and vehicle diagnostic device |
CN109115519A (en) * | 2018-09-21 | 2019-01-01 | 深圳市爱夫卡科技股份有限公司 | For the means of communication of automobile communication module, device, module and storage medium |
CN111208800A (en) * | 2018-01-25 | 2020-05-29 | 深圳市道通科技股份有限公司 | Automobile diagnosis method and device and vehicle communication interface |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7337245B2 (en) * | 1999-03-26 | 2008-02-26 | Dearborn Group, Inc. | Protocol adapter for passing diagnostic messages between vehicle networks and a host computer |
CN105024869A (en) * | 2014-04-24 | 2015-11-04 | 广西金奔腾汽车科技有限公司 | Automobile OBD communication pin intelligent identification method and device |
CN112015168B (en) * | 2020-09-14 | 2021-08-06 | 上海星融汽车科技有限公司 | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols |
-
2020
- 2020-09-14 CN CN202010958453.0A patent/CN112015168B/en active Active
-
2021
- 2021-03-18 WO PCT/CN2021/081581 patent/WO2021223521A1/en active Application Filing
- 2021-03-18 CA CA3141178A patent/CA3141178A1/en active Pending
- 2021-03-18 AU AU2021267059A patent/AU2021267059A1/en not_active Abandoned
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102780725A (en) * | 2011-05-12 | 2012-11-14 | 上海通用汽车有限公司 | Communication protocol adaption device and communication protocol adaption method for vehicle diagnosis |
CN104155971A (en) * | 2014-08-07 | 2014-11-19 | 北京九五智驾信息技术股份有限公司 | Self-diagnosis method for vehicle diagnosis apparatus protocols by vehicle diagnosis apparatus |
CN107889076A (en) * | 2017-10-26 | 2018-04-06 | 深圳市元征软件开发有限公司 | Vehicular diagnostic method and vehicle diagnostic device |
CN111208800A (en) * | 2018-01-25 | 2020-05-29 | 深圳市道通科技股份有限公司 | Automobile diagnosis method and device and vehicle communication interface |
CN109115519A (en) * | 2018-09-21 | 2019-01-01 | 深圳市爱夫卡科技股份有限公司 | For the means of communication of automobile communication module, device, module and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CA3141178A1 (en) | 2021-11-11 |
WO2021223521A1 (en) | 2021-11-11 |
CN112015168A (en) | 2020-12-01 |
AU2021267059A1 (en) | 2022-03-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112015168B (en) | Vehicle diagnosis method, system and diagnosis equipment based on automatic switching of communication protocols | |
CN110244691B (en) | Automobile diagnosis method, device and system | |
CN112860563A (en) | Automobile diagnostic instrument testing method, device, equipment and storage medium | |
CN115080299A (en) | Software fault feedback processing method, device, medium and equipment | |
CN109557907B (en) | Fault recording and resolving system for traction system | |
CN110198222B (en) | Plug-and-play test method and test master station for power distribution automation terminal | |
CN112596447B (en) | Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium | |
CN116431522A (en) | Automatic test method and system for low-code object storage gateway | |
CN111506641A (en) | Data management method, data acquisition platform, data management system and storage medium | |
CN111857103A (en) | Vehicle diagnosis method, device, equipment and storage medium | |
US11281521B1 (en) | Methods, systems and computer readable media for troubleshooting test environments using automated analysis of log file data | |
CN112462727A (en) | Vehicle-mounted part testing method and device | |
CN109960657B (en) | Test environment deployment method and related device | |
US20220283920A1 (en) | Test sequencing method, configuration generating method for devices and apparatus thereof | |
CN111031514A (en) | Data forwarding processor and data forwarding processing method based on wireless communication | |
CN114741219B (en) | Operating system based diagnostic system and method for computing software | |
CN111031095B (en) | Web service test execution method based on algebraic specifications | |
CN114063605B (en) | Remote programming method and device based on step space module and computer equipment | |
CN111176998B (en) | Configuration item testing method of hydraulic control software | |
CN114116466B (en) | Unit test method, device and medium based on operation log | |
CN116088470A (en) | Automobile diagnosis method, device, computer equipment and medium | |
CN115766393A (en) | Software and hardware configuration consistency checking method, device and system | |
CN116125946A (en) | Vehicle fault diagnosis method, system, electronic device and storage medium | |
CN115408268A (en) | OTA small flow flash test system and method | |
CN116723124A (en) | Internet of vehicles platform testing 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |