CN109240260A - Automatically switch the remote fault diagnosis method with free configuration protocol based on bus - Google Patents
Automatically switch the remote fault diagnosis method with free configuration protocol based on bus Download PDFInfo
- Publication number
- CN109240260A CN109240260A CN201810947285.8A CN201810947285A CN109240260A CN 109240260 A CN109240260 A CN 109240260A CN 201810947285 A CN201810947285 A CN 201810947285A CN 109240260 A CN109240260 A CN 109240260A
- Authority
- CN
- China
- Prior art keywords
- middleware
- instruction
- bus
- canecu
- diagnosis
- 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.)
- Granted
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/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention discloses the remote fault diagnosis methods automatically switched based on bus with free configuration protocol, comprising: calls corresponding middleware according to the CAN bus mode of current diagnosis in application terminal;Middleware calls vehicle essential information to obtain interface, corresponding instruction is obtained from repository, and send an instruction to diagnosis box by TCP communication modes;Instruction is transmitted to ECU by diagnosis box, so as to return to CANECU data packet and instruction execution state to diagnosis box after ECU is according to the corresponding diagnostic process of instruction execution;CANECU data packet and instruction execution state are transmitted to middleware by diagnosis box;Middleware parses CANECU data packet by the Command Line Parsing rule of repository, and parsing data and instruction is executed state and returns to application terminal, shows so that application terminal executes state to parsing data and instruction.The present invention can realize the remote fault diagnosis to a variety of models by the switching between bus.
Description
Technical field
The present invention relates to vehicle maintenance technical fields, more particularly to remote with free configuration protocol based on bus automatic switchover
Remote fault diagnosis method.
Background technique
Existing remote Diagnosis Technology is typically necessary the agreement for being expressly understood that and communicating with bottom hardware, could be hard with bottom
Part communication obtains relevant information, such as acquires automobile fault code, need to know the related specific agreement of vehicle, and these are producers
It is unwilling disclosed, is related to the technology secret of producer.Therefore, how agreement to be separated with software, both realizes remote fault diagnosis,
It is able to satisfy producer again to the privacy requirements of oneself agreement, becomes current research emphasis.
Summary of the invention
The embodiment of the present invention proposes the remote fault diagnosis method based on bus automatic switchover and free configuration protocol, can
By the switching between bus, the remote fault diagnosis to a variety of models is realized.
Automatically switched based on bus to solve the above problems, one embodiment of the present of invention provides one kind and freely configure association
The remote fault diagnosis method of view, suitable for being executed computer equipment, including at least following steps:
Application terminal corresponding middleware is called according to the CAN bus mode of current diagnosis;
The middleware calls vehicle essential information to obtain interface, corresponding instruction is obtained from repository, and pass through TCP
Described instruction is sent to diagnosis box by communication modes;
Described instruction is transmitted to ECU by the diagnosis box, so that the ECU is executed at corresponding diagnosis according to described instruction
After reason, CANECU data packet and instruction execution state are returned to the diagnosis box;
The CANECU data packet and described instruction are executed state and are transmitted to the middleware by the diagnosis box;
The middleware parses the CANECU data packet by the Command Line Parsing rule of the repository, and will
Parsing data and described instruction execute state return to the application terminal so that the application terminal to the parsing data with
Described instruction executes state and is shown.
Further, the middleware carries out the CANECU data packet by the Command Line Parsing rule of the repository
Parsing, specifically:
The middleware passes through SQL/ data after receiving the CANECU data packet and described instruction execution state
Rule, obtains the Command Line Parsing rule of pre-stored vehicle essential information from repository, and is advised according to the Command Line Parsing
Then the CANECU data packet is parsed, obtains parsing data.
Further, which is characterized in that described instruction is the dependent instruction for obtaining vehicle essential information, including box communication
Instruction and CAN communication instruction.
Further, which is characterized in that the diagnosis box supports the 4 road channels CAN and 2 road K lines, and is stored with for controlling
Access the program in corresponding data channel.
Further, which is characterized in that the application terminal is connect by JNI interface with the middleware, the centre
Part is connect by USB/TCP interface with the diagnosis box.
Further, which is characterized in that the middleware calls vehicle essential information to obtain interface, obtains from repository
Corresponding instruction, specifically:
The middleware calls vehicle essential information to obtain interface and obtains phase from repository by SQL/ data rule
The instruction answered.
The implementation of the embodiments of the present invention has the following beneficial effects:
It is provided in an embodiment of the present invention that a kind of automatically switched based on bus and the remote failure of free configuration protocol is examined is provided
Disconnected method, comprising: application terminal corresponding middleware is called according to the CAN bus mode of current diagnosis;The middleware calls
Vehicle essential information obtains interface, corresponding instruction is obtained from repository, and send described instruction by TCP communication modes
To diagnosis box;Described instruction is transmitted to ECU by the diagnosis box, so that the ECU executes corresponding diagnosis according to described instruction
After processing, CANECU data packet and instruction execution state are returned to the diagnosis box;The diagnosis box is by the CANECU data
Packet and described instruction execute state and are transmitted to the middleware;The middleware is right by the Command Line Parsing rule of the repository
The CANECU data packet is parsed, and parsing data and described instruction are executed state and return to the application terminal, with
Make the application terminal execute state to the parsing data and described instruction to show.The present invention can be by between bus
The remote fault diagnosis to a variety of models is realized in switching.
Detailed description of the invention
Fig. 1 is that a kind of remote failure based on bus automatic switchover and free configuration protocol provided in an embodiment of the present invention is examined
The flow diagram of disconnected method;
Fig. 2 is that a kind of remote failure based on bus automatic switchover and free configuration protocol provided in an embodiment of the present invention is examined
The structural schematic diagram of disconnected method;
Fig. 3 is the flow diagram of the method provided in an embodiment of the present invention for being connected to the part ECU;
Fig. 4 is the flow diagram provided in an embodiment of the present invention for obtaining vehicle essential information.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1 and Fig. 2, a kind of bus automatic switching method suitable for remote fault diagnosis is present embodiments provided,
Suitable for being executed in computer equipment, including at least following steps:
Corresponding middleware is called according to the CAN bus mode of current diagnosis in S101, application terminal;
S102, the middleware call vehicle essential information to obtain interface, corresponding instruction are obtained from repository, and lead to
It crosses TCP communication modes and described instruction is sent to diagnosis box;
Described instruction is transmitted to ECU by S103, the diagnosis box, so that the ECU is executed accordingly according to described instruction
After diagnostic process, CANECU data packet and instruction execution state are returned to the diagnosis box;
The CANECU data packet and described instruction are executed state and are transmitted to the middleware by S104, the diagnosis box;
S105, the middleware solve the CANECU data packet by the Command Line Parsing rule of the repository
Analysis, and parsing data and described instruction are executed into state and return to the application terminal, so that the application terminal is to the solution
Analysis data and described instruction execute state and are shown.
For step S105, the middleware is by the Command Line Parsing rule of the repository to the CANECU data packet
It is parsed, specifically:
The middleware passes through SQL/ data after receiving the CANECU data packet and described instruction execution state
Rule, obtains the Command Line Parsing rule of pre-stored vehicle essential information from repository, and is advised according to the Command Line Parsing
Then the CANECU data packet is parsed, obtains parsing data.
Preferably, described instruction is the dependent instruction for obtaining vehicle essential information, including box communication instruction and CAN communication
Instruction.
Preferably, the diagnosis box supports the 4 road channels CAN and 2 road K lines, and is stored with for controlling access corresponding data
The program in channel.
Preferably, the application terminal is connect by JNI interface with the middleware, and the middleware passes through USB/TCP
Interface is connect with the diagnosis box.
Preferably, the middleware calls vehicle essential information to obtain interface, and corresponding instruction, tool are obtained from repository
Body are as follows:
The middleware calls vehicle essential information to obtain interface and obtains phase from repository by SQL/ data rule
The instruction answered.
Specifically, as shown in figure 3, being connected to the method specific steps of the part ECU are as follows: application terminal selects new diagnostic machine
Type ECU;Middleware is called by JNI in application terminal, obtains the corresponding communication configuration of diagnosis type;Middleware passes through SQL/ data
Rule obtains corresponding communication configuration from repository and (learns that new diagnosis type is CAN line including bus connection wire road mode
Road);Middleware is based on communication configuration and sends instruction notification box connection CAN data channel;Diagnosis box " switching channel " returns afterwards
Return state is returned to application by the calling of JNI interface to middleware, middleware by state;Application terminal, which is shown, to be successfully connected
State.
Specifically, as shown in figure 3, the method automatically switched between hardware components supporting bus specific step is as follows: application eventually
Passing through K radiodiagnosis x money ECU before end;Application terminal selects new diagnosis type ECU;It is called by JNI application terminal
Middleware obtains the corresponding communication configuration of diagnosis type;Middleware is obtained corresponding logical by SQL/ data rule from repository
News configuration (learns that new diagnosis type is CAN route including bus connection wire road mode);Middleware is based on communication configuration hair
Instruction notification box is sent to connect CAN data channel;State is returned to after diagnosis box switching channel to middleware, middleware will return to shape
State returns to application terminal by the calling of JNI interface;Application terminal shows successfully connection status.
It is understood that as shown in figure 4, it is basic that the present embodiment obtains vehicle to obtain vehicle essential information as example
The specific steps of information are as follows: ALCL Assembly Line Communication Link connection type is CAN bus mode;Diagnostic application executes obtaining for vehicle essential information
It takes;Middleware is called by JNI mode in application terminal, and vehicle essential information is called to obtain interface;Middleware passes through SQL/ data
Rule obtains the instruction of vehicle essential information from repository;Middleware sends instructions to diagnosis box by TCP communication modes, refers to
Enable includes that box communication instruction and CAN communication instruct;Diagnosis box sends CAN communication and instructs to ECU;CAN is returned after ECU processing
ECU data packet and instruction execution state are to diagnosis box;Diagnosis box returns to returned data packet and instruction execution state forwarding
Between part;Middleware carries out resolve packet by the configuration rule of repository, and is answered by JNI interface returned data and state
With;Application terminal gets the data of middleware return, and the display layer in application terminal is shown.
It is provided in an embodiment of the present invention that a kind of automatically switched based on bus and the remote failure of free configuration protocol is examined is provided
Disconnected method, comprising: application terminal corresponding middleware is called according to the CAN bus mode of current diagnosis;The middleware calls
Vehicle essential information obtains interface, corresponding instruction is obtained from repository, and send described instruction by TCP communication modes
To diagnosis box;Described instruction is transmitted to ECU by the diagnosis box, so that the ECU executes corresponding diagnosis according to described instruction
After processing, CANECU data packet and instruction execution state are returned to the diagnosis box;The diagnosis box is by the CANECU data
Packet and described instruction execute state and are transmitted to the middleware;The middleware is right by the Command Line Parsing rule of the repository
The CANECU data packet is parsed, and parsing data and described instruction are executed state and return to the application terminal, with
Make the application terminal execute state to the parsing data and described instruction to show.The embodiment of the present invention can be by total
The remote fault diagnosis to a variety of models is realized in switching between line.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is a preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (6)
1. a kind of remote fault diagnosis method automatically switched based on bus with free configuration protocol characterized by comprising
Application terminal corresponding middleware is called according to the CAN bus mode of current diagnosis;
The middleware calls vehicle essential information to obtain interface, corresponding instruction is obtained from repository, and communicate by TCP
Described instruction is sent to diagnosis box by mode;
Described instruction is transmitted to ECU by the diagnosis box, so that the ECU executes corresponding diagnostic process according to described instruction
Afterwards, CANECU data packet and instruction execution state are returned to the diagnosis box;
The CANECU data packet and described instruction are executed state and are transmitted to the middleware by the diagnosis box;
The middleware parses the CANECU data packet by the Command Line Parsing rule of the repository, and will parsing
Data and described instruction execute state and return to the application terminal, so that the application terminal is to parsing data and described
Instruction execution state is shown.
2. the remote fault diagnosis method according to claim 1 automatically switched based on bus with free configuration protocol,
It is characterized in that, the middleware parses the CANECU data packet by the Command Line Parsing rule of the repository, tool
Body are as follows:
The middleware is advised after receiving the CANECU data packet and described instruction execution state by SQL/ data
Then, the Command Line Parsing rule of pre-stored vehicle essential information is obtained from repository, and according to the Command Line Parsing rule
The CANECU data packet is parsed, parsing data are obtained.
3. the remote fault diagnosis method according to claim 1 automatically switched based on bus with free configuration protocol,
It is characterized in that, described instruction is the dependent instruction for obtaining vehicle essential information, including box communication instruction and CAN communication instruction.
4. the remote fault diagnosis method according to claim 1 automatically switched based on bus with free configuration protocol,
It is characterized in that, the diagnosis box supports the 4 road channels CAN and 2 road K lines, and is stored with for controlling access corresponding data channel
Program.
5. the remote fault diagnosis method according to claim 1 automatically switched based on bus with free configuration protocol,
Be characterized in that, the application terminal connect by JNI interface with the middleware, the middleware pass through USB/TCP interface and
The diagnosis box connection.
6. the remote fault diagnosis method according to claim 1 automatically switched based on bus with free configuration protocol,
It being characterized in that, the middleware calls vehicle essential information to obtain interface, corresponding instruction is obtained from repository, specifically:
The middleware calls vehicle essential information to obtain interface, by SQL/ data rule, obtains from repository corresponding
Instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810947285.8A CN109240260B (en) | 2018-08-17 | 2018-08-17 | Remote fault diagnosis method based on bus automatic switching and free configuration protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810947285.8A CN109240260B (en) | 2018-08-17 | 2018-08-17 | Remote fault diagnosis method based on bus automatic switching and free configuration protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109240260A true CN109240260A (en) | 2019-01-18 |
CN109240260B CN109240260B (en) | 2020-08-21 |
Family
ID=65069796
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810947285.8A Active CN109240260B (en) | 2018-08-17 | 2018-08-17 | Remote fault diagnosis method based on bus automatic switching and free configuration protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240260B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115729220A (en) * | 2022-11-29 | 2023-03-03 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706372A (en) * | 2009-11-10 | 2010-05-12 | 奇瑞汽车股份有限公司 | Electronic-control vehicle remote diagnosis system and diagnosis method thereof |
CN201716590U (en) * | 2009-12-28 | 2011-01-19 | 上海通用汽车有限公司 | Automatic automobile bus switching instrument |
CN102402219A (en) * | 2010-09-09 | 2012-04-04 | 上海神珑信息技术有限公司 | Device and method for acquiring and monitoring automobile information on line based on controller area network (CAN) bus and general packet radio service (GPRS) communication |
CN202275322U (en) * | 2011-10-17 | 2012-06-13 | 芜湖比翼鸟航空科技有限公司 | Comprehensive detection platform for automotive electronics |
CN105137964A (en) * | 2015-09-17 | 2015-12-09 | 合肥工业大学 | Automobile fault remote diagnosis system based on cellphone APP |
CN105517131A (en) * | 2015-11-28 | 2016-04-20 | 广东欧珀移动通信有限公司 | Frequency band processing method and frequency band processing apparatus in communication terminal, and terminal |
CN206363155U (en) * | 2016-12-23 | 2017-07-28 | 北京一雄信息科技有限公司 | Vehicle failure remote diagnosis system |
CN206400286U (en) * | 2017-01-16 | 2017-08-11 | 宁德时代新能源科技股份有限公司 | A kind of test system based on hardware in loop equipment |
WO2017139930A1 (en) * | 2016-02-17 | 2017-08-24 | 吴伟民 | Vehicle remote fault detection method and system |
CN107450514A (en) * | 2017-07-31 | 2017-12-08 | 广州亿程交通信息有限公司 | Vehicle remote fault diagnosis management method and system |
CN207010992U (en) * | 2017-07-28 | 2018-02-13 | 岭南师范学院 | A kind of network vehicle-mounted diagnostic system |
CN108021119A (en) * | 2016-10-31 | 2018-05-11 | 河南蓝信科技股份有限公司 | A kind of EOAS device detection systems and its method |
CN108306939A (en) * | 2017-12-29 | 2018-07-20 | 深圳市元征科技股份有限公司 | A kind of data processing method, device and forwarding unit |
-
2018
- 2018-08-17 CN CN201810947285.8A patent/CN109240260B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706372A (en) * | 2009-11-10 | 2010-05-12 | 奇瑞汽车股份有限公司 | Electronic-control vehicle remote diagnosis system and diagnosis method thereof |
CN201716590U (en) * | 2009-12-28 | 2011-01-19 | 上海通用汽车有限公司 | Automatic automobile bus switching instrument |
CN102402219A (en) * | 2010-09-09 | 2012-04-04 | 上海神珑信息技术有限公司 | Device and method for acquiring and monitoring automobile information on line based on controller area network (CAN) bus and general packet radio service (GPRS) communication |
CN202275322U (en) * | 2011-10-17 | 2012-06-13 | 芜湖比翼鸟航空科技有限公司 | Comprehensive detection platform for automotive electronics |
CN105137964A (en) * | 2015-09-17 | 2015-12-09 | 合肥工业大学 | Automobile fault remote diagnosis system based on cellphone APP |
CN105517131A (en) * | 2015-11-28 | 2016-04-20 | 广东欧珀移动通信有限公司 | Frequency band processing method and frequency band processing apparatus in communication terminal, and terminal |
WO2017139930A1 (en) * | 2016-02-17 | 2017-08-24 | 吴伟民 | Vehicle remote fault detection method and system |
CN108021119A (en) * | 2016-10-31 | 2018-05-11 | 河南蓝信科技股份有限公司 | A kind of EOAS device detection systems and its method |
CN206363155U (en) * | 2016-12-23 | 2017-07-28 | 北京一雄信息科技有限公司 | Vehicle failure remote diagnosis system |
CN206400286U (en) * | 2017-01-16 | 2017-08-11 | 宁德时代新能源科技股份有限公司 | A kind of test system based on hardware in loop equipment |
CN207010992U (en) * | 2017-07-28 | 2018-02-13 | 岭南师范学院 | A kind of network vehicle-mounted diagnostic system |
CN107450514A (en) * | 2017-07-31 | 2017-12-08 | 广州亿程交通信息有限公司 | Vehicle remote fault diagnosis management method and system |
CN108306939A (en) * | 2017-12-29 | 2018-07-20 | 深圳市元征科技股份有限公司 | A kind of data processing method, device and forwarding unit |
Non-Patent Citations (2)
Title |
---|
宋冬冬等: "基于GA-SVM的多总线自动化测试系统故障诊断优化研究", 《电子测量与仪器学报》 * |
李杰: "基于CAN总线的汽车远程故障诊断及驾驶行为的研究", 《电子技术与软件工程》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115729220A (en) * | 2022-11-29 | 2023-03-03 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
CN115729220B (en) * | 2022-11-29 | 2024-05-31 | 重庆长安汽车股份有限公司 | Vehicle diagnostic system, method and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109240260B (en) | 2020-08-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763754B (en) | A kind of method of data processing, apparatus and system | |
CN108696416A (en) | A kind of VXLAN is mono- to return and dual homed hybrid access method, device and PE equipment | |
EP2999168B1 (en) | Collaboration method and system in a drni,distributed resilient network interconnect, system | |
CN108712737A (en) | A kind of method and system of information exchange | |
CN109347965B (en) | Communication method, device and related equipment | |
CN105072149A (en) | Method and device for building remote communication through proxy gateway | |
CN109240260A (en) | Automatically switch the remote fault diagnosis method with free configuration protocol based on bus | |
US7403606B1 (en) | General protocol for service control point | |
CN108093097A (en) | The connection method of camera and home gateway and home gateway | |
CN106161497A (en) | From WIFI module and the most adaptive method of attachment of WIFI module of adaptive connection protocol | |
CN103001962B (en) | Business support method and system | |
CN109309942A (en) | Method for switching network and device | |
CN100531431C (en) | Device for realizing maintenance of far end radio frequency terminal by local maintenance terminal | |
CN101540699A (en) | Method and device for realizing remote maintenance of network equipment | |
CN106533884B (en) | A kind of message transmitting method, convergence device, interchanger and VRRP system | |
CN105072148A (en) | Method and device for building connection with terminal | |
KR20040086588A (en) | Cellular communication standard employment by mobile cellular communication device for network management information exchange with network infrastructure device | |
CN105682157A (en) | Call method and system | |
CN115567733A (en) | SDK-based live broadcast room switching method, device, terminal and storage medium | |
CN108803582A (en) | A kind of bus automatic switchover system and method suitable for remote fault diagnosis | |
US7480285B2 (en) | Method for setting up communication paths between access points of a switching system, and switching system implementing the method | |
CN114390454A (en) | Message transmission method, system, electronic device and storage medium | |
CN108156164B (en) | Method for increasing PPP service for electric power wireless private network terminal | |
CN107113230A (en) | Determine the method, apparatus and system of generic route encapsulation gre tunneling mark | |
CN113326159B (en) | Method, apparatus, system and computer readable storage medium for fault injection |
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 |