CN104483960B - Automobile diagnosis communication module data transceiving parallel processing method - Google Patents
Automobile diagnosis communication module data transceiving parallel processing method Download PDFInfo
- Publication number
- CN104483960B CN104483960B CN201410627366.1A CN201410627366A CN104483960B CN 104483960 B CN104483960 B CN 104483960B CN 201410627366 A CN201410627366 A CN 201410627366A CN 104483960 B CN104483960 B CN 104483960B
- Authority
- CN
- China
- Prior art keywords
- communication module
- data
- host computer
- diagnosis communication
- request
- 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
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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides an automobile diagnosis communication module data transceiving parallel processing method. The method comprises steps that, a, a diagnosis communication module starts and realizes initialization operation; b, receiving sub threads or interruption service of request data of a host computer starts; c, a main thread of the diagnosis communication module is detected to receive a request mark of the host computer; d, the sub threads or the interruption service communicating with a diagnosis bus start; and e, a to-be-uploaded reply request mark is detected by the main thread of the diagnosis communication module, and reply data is transmitted by the diagnosis communication module to the host computer. According to the automobile diagnosis communication module data transceiving parallel processing method, the sub threads or the interruption service is opened on the diagnosis communication module on diagnosis equipment, so data interaction parallel processing is realized, the speed and efficiency of data interaction are improved through the method, and occasions, such as dynamic data flow and long time data monitoring requiring rapid and large-quantity bus data and calculation perform better.
Description
Technical field
The present invention relates to automobile diagnosis technique field, more particularly to a kind of vehicle diagnosis communication module data transmit-receive is located parallel
The method of reason.
Background technology
Vehicle fault diagnosis equipment is generally made up of host computer diagnostic function software and slave computer diagnosis communication module.It is upper
Owner will realize user operation, display, vehicle data analysis and show concrete diagnostic function to user;Slave computer diagnosis communication mould
Block is the data channel between host computer and vehicle diagnostics bus, and he is responsible for realizing receiving host computer instruction, parses and perform this
Instruction, while being responsible for carrying out data interaction with vehicle diagnostics bus, and is uploaded to host computer by related data.
With on automobile electronic control system it is more and more, become increasingly complex, vehicle fault diagnosis equipment is for vehicle
Breakdown maintenance it is also more and more important with daily maintenance, for the requirement also more and more higher of diagnostic device performance itself.One
, all there is the demand of mass data process in a little diagnostic application occasions, analysis, long-time data monitoring of such as dynamic data etc..
And the pattern between traditional diagnostic device and vehicle using question-response serial carries out data communication, this process can be described
For as shown in Figure 1:Host computer sends 101 → diagnosis communication of request of data module reception request → diagnosis communication module and examines to vehicle
Disconnected bus sends module reception vehicle diagnostics bus 103 → diagnosis communication of the reply module upload of 102 → diagnosis communication of request and replys
Receive to 104 → host computer of host computer and reply.
On vehicle diagnostics communication module in existing diagnostic device, during this serial data interactive mode, diagnosis is logical
News module with host computer when data interaction is carried out, it is impossible to is communicated with vehicle diagnostics bus, and is entered with vehicle diagnostics bus
When line command is interacted, can not be communicated with host computer.This mode can win completely when low speed low volume data is processed
Appoint, process application scenario and then perform poor in high speed, big data quantity.
The content of the invention
It is an object of the invention to provide a kind of method of vehicle diagnosis communication module data transmit-receive parallel processing, to improve
The speed and efficiency of diagnosis communication module data interaction.
The purpose of the present invention is achieved through the following technical solutions.
A kind of method of vehicle diagnosis communication module data transmit-receive parallel processing, including step:
a:Diagnosis communication module starts and initialization operation;
b:Start the sub-line journey or interruption service for receiving host computer request data;
c:The detection of diagnosis communication module main thread receives host computer request marks;
d:Start the sub-line journey with ALCL Assembly Line Communication Link communication or interrupt service;
e:The detection of diagnosis communication module main thread has reply request marks to be uploaded, and diagnosis communication module is on host computer
Pass complex data back.
It is further preferred that two sub- threads or two interruption services are set in diagnosis communication module in step a, respectively
For receiving request data and reception and vehicle diagnostics bus data interactive information from host computer.
It is further preferred that step b is specifically included:Host computer sends request of data, the host computer in diagnosis communication module
The sub-line journey of request data interrupts request data of the service reception from host computer, preserves data and is simultaneously equipped with host computer request mark
Note.
It is further preferred that step d is specifically included:When there is the request data from host computer to upload to host computer, examine
Sending to vehicle diagnostics bus with the sub-line journey of ALCL Assembly Line Communication Link communication in disconnected communication module is asked, and receives vehicle diagnostics bus
Data are replied, preserving data juxtaposition there are reply request marks to be uploaded.
If it is further preferred that diagnosis communication module main thread is not detected by host computer request marks in step c, directly
Into step e.
If it is further preferred that diagnosis communication module main thread is not detected by reply request mark to be uploaded in step e
Remember, then return to step c.
Compared with prior art, beneficial effect is the present invention:The vehicle diagnosis communication module data that the present invention is provided are received
The method for sending out parallel processing, it is real by opening up sub-line journey or interrupting method of service in the diagnosis communication module of diagnostic device
The parallel processing of existing data interaction;This processing method improves the speed and efficiency of data interaction so that dynamic dataflow, length
Time data monitoring etc. needs to gather the occasion that a large amount of, high-speed bus data are calculated, and performs better.
Description of the drawings
Fig. 1 is the vehicle diagnostics communication module serial data interaction diagrams in existing diagnostic device;
Fig. 2 is the vehicle diagnostics communication module parallel data interaction diagrams of the embodiment of the present invention 1;
Fig. 3 is the vehicle diagnostics communication module parallel data interaction diagrams of the embodiment of the present invention 2.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
Core concept of the present invention:Using diagnosis communication module the data interaction with host computer and with vehicle diagnostics number of buses
According to interaction in, and non-required at every moment processed, and cpu resource is taken completely, between command frame and command frame, number
The characteristics of according to being all interval between byte, by opening up sub-line journey or interrupting method of service, diagnosis communication module is allowed while can
To carry out the data interaction with host computer and vehicle diagnostics bus, the parallel processing of data interaction is realized.
Embodiment 1
Vehicle diagnostics communication module parallel data interaction flow of the present invention shown in Fig. 2 is referred to, including:
Step 201:Diagnosis communication module starts and initialization operation;
Specifically, two sub- threads are set in diagnosis communication module, are respectively used to receive the number of request from host computer
According to and with vehicle diagnostics bus data interactive information, and diagnosis communication module main thread then be used for check whether there is from host computer
Request to process, and whether have data to upload to host computer.
Step 202:Start the sub-line journey for receiving host computer request data;
Specifically, host computer sends request of data, and the sub-line journey of the host computer request data in diagnosis communication module is received
From the request data of host computer, preserve data and be equipped with host computer request marks.
Step 203:Diagnosis communication module main thread has detected whether to receive host computer request marks, if it has, into step
Rapid 204, otherwise, into step 205;
Step 204:Start the sub-line journey with ALCL Assembly Line Communication Link communication;
Specifically, the son with ALCL Assembly Line Communication Link communication when there is request data to upload to host computer, in diagnosis communication module
Thread sends to vehicle diagnostics bus and asks, and receives the reply data of vehicle diagnostics bus, and preserving data juxtaposition has to be uploaded
Reply request marks.
Step 205:Diagnosis communication module main thread detects whether reply request marks to be uploaded, if it has, into
Step 206, otherwise, return to step 203;
Step 206:Diagnosis communication module is uploaded to host computer and replys data.
Embodiment 2
Vehicle diagnostics communication module parallel data interaction flow of the present invention shown in Fig. 3 is referred to, including:
Step 301:Diagnosis communication module starts and initialization operation;
Specifically, two are arranged in diagnosis communication module and interrupts service, be respectively used to receive the request from host computer
Data and with vehicle diagnostics bus data interactive information, and diagnosis communication module main thread then be used for check whether there is from upper
Whether the request of machine will be processed, and have data to upload to host computer.
Step 302:Start the interruption service for receiving host computer request data;
Specifically, host computer sends request of data, and the interruption service of the host computer request data in diagnosis communication module connects
The request data from host computer is received, data is preserved and is equipped with host computer request marks.
Step 303:Diagnosis communication module main thread has detected whether to receive host computer request marks, if it has, into step
Rapid 304, otherwise, into step 305;
Step 304:Start the interruption service with ALCL Assembly Line Communication Link communication;
Specifically, when there is request data to upload to host computer, in diagnosis communication module with ALCL Assembly Line Communication Link communication in
Disconnected service sends to vehicle diagnostics bus asks, and receives the reply data of vehicle diagnostics bus, and preserving data juxtaposition has to be uploaded
Reply request marks.
Step 305:Diagnosis communication module main thread detects whether reply request marks to be uploaded, if it has, into
Step 306, otherwise, return to step 303;
Step 306:Diagnosis communication module is uploaded to host computer and replys data.
The method of the vehicle diagnosis communication module data transmit-receive parallel processing that the present invention is provided, leads in the diagnosis of diagnostic device
In news module, by opening up sub-line journey or interrupting method of service, the parallel processing of data interaction is realized;This processing method is carried
The speed and efficiency of high data interaction so that dynamic dataflow, long-time data monitoring etc. need that collection is a large amount of, high-speed bus
The occasion that data are calculated, performs better.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (6)
1. a kind of method of vehicle diagnosis communication module data transmit-receive parallel processing, it is characterised in that including step:
a:Diagnosis communication module starts and initialization operation;
b:Start the sub-line journey or interruption service for receiving host computer request data;
c:The detection of diagnosis communication module main thread receives host computer request marks;
d:Start the sub-line journey with ALCL Assembly Line Communication Link communication or interrupt service;
e:The detection of diagnosis communication module main thread has reply request marks to be uploaded, and diagnosis communication module is passed back on host computer
Complex data.
2. the method for vehicle diagnosis communication module data transmit-receive parallel processing as claimed in claim 1, it is characterised in that step
Two sub- threads or two interruption services are set in diagnosis communication module in a, are respectively used to receive the request from host computer
Data and reception and vehicle diagnostics bus data interactive information.
3. the method for vehicle diagnosis communication module data transmit-receive parallel processing as claimed in claim 2, it is characterised in that step
B is specifically included:Host computer sends request of data, the sub-line journey of the host computer request data in diagnosis communication module or interruption service
The request data from host computer is received, data is preserved and is equipped with host computer request marks.
4. the method for vehicle diagnosis communication module data transmit-receive parallel processing as claimed in claim 2, it is characterised in that step
D is specifically included:Host computer is uploaded to from host computer request data when having, communicating with ALCL Assembly Line Communication Link in diagnosis communication module
Sub-line journey send to vehicle diagnostics bus and ask, receive the reply data of vehicle diagnostics bus, preserve on data juxtaposition needs
The reply request marks of biography.
5. the method for vehicle diagnosis communication module data transmit-receive parallel processing as claimed in claim 2, it is characterised in that step
If diagnosis communication module main thread is not detected by host computer request marks in c, step e is directly entered.
6. the method for vehicle diagnosis communication module data transmit-receive parallel processing as claimed in claim 2, it is characterised in that step
If diagnosis communication module main thread is not detected by reply request marks to be uploaded, return to step c in e.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410627366.1A CN104483960B (en) | 2014-11-10 | 2014-11-10 | Automobile diagnosis communication module data transceiving parallel processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410627366.1A CN104483960B (en) | 2014-11-10 | 2014-11-10 | Automobile diagnosis communication module data transceiving parallel processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104483960A CN104483960A (en) | 2015-04-01 |
CN104483960B true CN104483960B (en) | 2017-04-19 |
Family
ID=52758517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410627366.1A Active CN104483960B (en) | 2014-11-10 | 2014-11-10 | Automobile diagnosis communication module data transceiving parallel processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104483960B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105208004B (en) * | 2015-08-25 | 2018-10-23 | 联创汽车服务有限公司 | A kind of data storage method based on OBD equipment |
CN108536121B (en) * | 2018-03-16 | 2021-04-23 | 深圳市道通科技股份有限公司 | Method and device for establishing logical channel and vehicle communication interface VCI |
CN109088867A (en) * | 2018-08-08 | 2018-12-25 | 浙江天地人科技有限公司 | A method of reducing data and uploads the connection frequency |
CN113341933B (en) * | 2021-06-23 | 2022-08-19 | 中国第一汽车股份有限公司 | Diagnostic system and method for vehicle central controller |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07129234A (en) * | 1993-10-29 | 1995-05-19 | Kawasaki Steel Corp | Monitoring method for automated facility |
CN101441476A (en) * | 2008-12-19 | 2009-05-27 | 奇瑞汽车股份有限公司 | Software implementing method of data link layer based on KWP2000 |
CN101807068A (en) * | 2010-02-12 | 2010-08-18 | 深圳市元征软件开发有限公司 | Universal bus parallelism-based vehicle diagnosis system and method |
CN102393738A (en) * | 2011-12-16 | 2012-03-28 | 哈尔滨工业大学 | Diagnostic device and test method of automobile electronic control unit (ECU) |
CN102955474A (en) * | 2011-08-26 | 2013-03-06 | 中国航空工业集团公司第六三一研究所 | Measurement control method and system of automobile ECU (electronic control unit) |
CN103838227A (en) * | 2012-11-21 | 2014-06-04 | 财团法人资讯工业策进会 | Vehicle body data processing device and vehicle body data processing method thereof |
-
2014
- 2014-11-10 CN CN201410627366.1A patent/CN104483960B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07129234A (en) * | 1993-10-29 | 1995-05-19 | Kawasaki Steel Corp | Monitoring method for automated facility |
CN101441476A (en) * | 2008-12-19 | 2009-05-27 | 奇瑞汽车股份有限公司 | Software implementing method of data link layer based on KWP2000 |
CN101807068A (en) * | 2010-02-12 | 2010-08-18 | 深圳市元征软件开发有限公司 | Universal bus parallelism-based vehicle diagnosis system and method |
CN102955474A (en) * | 2011-08-26 | 2013-03-06 | 中国航空工业集团公司第六三一研究所 | Measurement control method and system of automobile ECU (electronic control unit) |
CN102393738A (en) * | 2011-12-16 | 2012-03-28 | 哈尔滨工业大学 | Diagnostic device and test method of automobile electronic control unit (ECU) |
CN103838227A (en) * | 2012-11-21 | 2014-06-04 | 财团法人资讯工业策进会 | Vehicle body data processing device and vehicle body data processing method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104483960A (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104483960B (en) | Automobile diagnosis communication module data transceiving parallel processing method | |
CN112367233B (en) | Vehicle-mounted network ECU communication method and device based on service-oriented architecture | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN104112413B (en) | LED display bad point point detection system | |
CN112445630B (en) | Information interaction method and device and terminal equipment | |
CN113406946B (en) | Automobile diagnosis method and device and automobile diagnosis equipment | |
CN105786736A (en) | Method, chip and device for multi-chip cascading | |
CN112765077A (en) | PCI password card master control asynchronous dispatching system and method | |
CN107832248A (en) | A kind of data ferry-boat module and its data processing method with encryption and decryption functions | |
CN106656484B (en) | A kind of PCI cipher card drive system and its implementation | |
CN104021662A (en) | Apparatus, system and method for acquiring automobile running states based on automobile bus technology | |
KR20120126873A (en) | System for Dynamic Analysis of Embedded Software of Vehicle using UDS | |
CN112965463B (en) | Remote diagnosis system and remote diagnosis method | |
CN113905067A (en) | Intelligent network vehicle state monitoring and analyzing system and method | |
CN107769960B (en) | BMC management architecture based on CAN bus | |
CN104932820B (en) | Touch screen application method and system based on USB mapping | |
CN202975797U (en) | On-board diagnostic data acquisition system | |
CN103617145A (en) | User-defined bus and achievement method thereof | |
CN114979058B (en) | CAN multi-mailbox multiplexing processing method and system | |
CN203754167U (en) | Handheld terminal for elevator debugging and maintenance | |
CN110244638B (en) | Data monitoring device and method | |
CN104836710A (en) | Method and apparatus based on one-master with multi-slaves communication of distributed system | |
CN102467480A (en) | Virtual printing transmission system | |
CN111930645B (en) | TCPIP-based universal USB equipment network transparent transmission system and method | |
CN101436071A (en) | Diagnosis service safe verification method and apparatus of multiple-chip automobile controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |