A vehicle remote diagnosis method and system based on SOA service
By adopting the SOA service architecture in the vehicle remote diagnosis system and using TSP and TBOX to analyze and execute diagnostic instructions, the problem of being unable to perform remote diagnosis of SOA services in the existing technology is solved, and remote and local simultaneous diagnosis of the vehicle are realized. Improved vehicle performance and stability.
Patent Information
- Application Number
- CN202210600075.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-05-30
AI Technical Summary
The existing technology cannot realize vehicle remote diagnosis based on SOA services, especially the remote diagnosis of CAN protocol and DoIP protocol based on SOA services. As a result, the stability of diagnosis depends on the smooth network and it is difficult to achieve remote and local simultaneous diagnosis.
A vehicle remote diagnosis method based on SOA services is adopted. A diagnosis request is sent to the TSP through the vehicle terminal. After receiving it, the TSP sends a diagnosis instruction to TBOX. TBOX judges and executes the diagnosis instruction. If it can be executed, it diagnoses and feeds back the result. Otherwise, it returns an error. Code; TBOX serves as the diagnostic subject, parses and processes the IP address and controller logical address in the DoIP message, diagnoses the target controller, and performs diagnosis through CAN/CANFD node conversion and Ethernet nodes.
It realizes vehicle remote diagnosis based on SOA service architecture, improves the vehicle's electronic system development, power performance, safety performance and stability, and ensures the reliability and stability of remote diagnosis.
Smart Images

Figure CN114839959B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle fault remote diagnosis, and in particular to a vehicle remote diagnosis method and system based on SOA service. Background Art
[0002] With the rapid development of the automobile industry, more and more automobiles are using electronic control modules and vehicle-mounted integrated network systems. Through the vehicle-mounted terminal acquisition control module, the data on the internal bus of the automobile can be collected and transmitted to the background through the mobile Internet and big data applications. By real-time acquisition and monitoring of vehicle electronic control system data, the diagnosis center can diagnose the working status of vehicle components and module failures online; in addition, the accumulated monitoring and diagnosis data are analyzed, and the analysis results help the design department improve the vehicle's electronic system development to enhance power performance, safety performance and vehicle stability.
[0003] SOA (Service-Oriented Architecture) stands for service-oriented architecture. When a system receives a service request, it often needs to call another system to complete the service request.
[0004] In the existing technology of remote vehicle diagnosis, the following disadvantages generally exist:
[0005] In the current existing remote diagnosis technology, remote diagnosis based on CAN or DoIP protocol between a single controller or multiple controllers can be performed, but there is no mature method for remote diagnosis based on CAN and DoIP protocols of SOA services. In existing patents, there are also descriptions of vehicle remote diagnosis methods. For example, patent 201980058783X receives the TCP data packet of the diagnostic equipment through the data transmission control protocol TCP communication method and encapsulates it into a first data packet, and transmits it to the vehicle connector through remote communication; the vehicle connector converts the received first data packet into a TCP diagnostic instruction data packet and sends it to the vehicle. The operating stability of this method depends entirely on the smooth network, and its remote simulation of the DoIP local diagnosis method is difficult to achieve the purpose of remote and local simultaneous diagnosis. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a vehicle remote diagnosis method and system based on SOA service to solve the following problems in the prior art: 1) It is impossible to remotely diagnose SOA-based services; 2) It is impossible to implement CAN protocol remote diagnosis based on SOA services; 3) It is impossible to implement DoIP protocol remote diagnosis based on SOA services.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] A vehicle remote diagnosis method based on SOA service includes the following steps:
[0009] Step 1: The vehicle terminal sends a request for remote diagnosis to the TSP;
[0010] Step 2: After receiving the request, TSP sends a diagnostic instruction to TBOX;
[0011] Step 3: TBOX determines whether the diagnostic command is executed; if yes, proceed to step 4; if not, an error code is returned to TSP, and the vehicle terminal prompts that remote diagnosis cannot be performed;
[0012] Step 4: TBOX diagnoses the corresponding target controller according to the type of diagnostic instruction;
[0013] Step 5: After TBOX completes the diagnosis, it feeds back the diagnosis result data to TSP.
[0014] The present invention also provides a vehicle remote diagnosis system based on SOA service, characterized in that it includes TSP, TBOX and a vehicle controller terminal;
[0015] Among them, TSP is the subject of remotely reading diagnostic data, which is used to receive remote diagnostic requests, send remote diagnostic instructions to TBOX, and receive and analyze the diagnostic data uploaded by TBOX;
[0016] TBOX is used to judge the current vehicle status and whether it can be diagnosed. If it cannot be diagnosed, it will feedback the corresponding error code to TSP and give a prompt that the diagnosis cannot be performed on the vehicle terminal. At the same time, TBOX is used to receive and parse the diagnostic instructions issued by TSP, and diagnose the corresponding target controller according to the IP address and controller logical address in the DoIP message. After the diagnosis is completed, TBOX feedbacks the diagnostic result data to TSP.
[0017] The on-board controller terminal serves as the target controller to be diagnosed, and is used to respond to the diagnostic request sent by the Ethernet node to the TBOX. At the same time, the on-board controller terminal serves as the diagnostic gateway for the downstream CAN and CANFD nodes, and is used to convert the DoIP message sent by the CAN node to the TBOX into a DoCAN message and send it to the corresponding CAN / CANFD node. The CAN / CANFD Node corresponding to the CAN / CANFD node serves as the target controller to be diagnosed, responds to the diagnostic request sent by the TBOX, diagnoses itself, and feeds back the diagnostic results.
[0018] Compared with the prior art, the present invention has the following beneficial effects:
[0019] The method and system of the present invention achieve the purpose of remote diagnosis of vehicles by establishing CAN node and Ethernet node diagnosis processes based on the SOA service architecture, thereby helping to improve the electronic development of the vehicle and enhance the vehicle's power performance, safety performance and vehicle stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a flow chart of the vehicle remote diagnosis method based on SOA service according to the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
[0022] 1. A vehicle remote diagnosis method based on SOA service
[0023] Step 1: The vehicle terminal sends a request for remote diagnosis to the TSP. The user sends a request for remote diagnosis to the TSP through the vehicle terminal. TSP (Telematics Service Provider) is a telematics service provider that occupies a core position in the vehicle network industry chain, connecting automobiles, vehicle equipment manufacturers, network operators, and content providers.
[0024] Step 2: After receiving the request, TSP sends a diagnostic instruction to TBOX. During the process of sending the diagnostic instruction, TSP calls the remote control interface (based on the MQTT protocol) to send the diagnostic instruction. TBOX receives the remote control instruction sent by TSP, converts the MQTT protocol into DDS, calls the diagnostic service through the DDS service, and then sends the instruction to the corresponding domain controller according to the diagnostic instruction.
[0025] Step 3: TBOX determines whether the diagnostic instruction is executed; if yes, proceed to step 4; if not, return an error code to TSP, and the vehicle terminal prompts that remote diagnosis cannot be performed. Among the three processes of remote diagnosis, local diagnosis and OTA, the vehicle side can only support one process at a time, and there is no priority division. The corresponding process will be executed first, and if the vehicle is undergoing local diagnosis or OTA, it means that the remote diagnosis conditions are not met and the vehicle cannot be remotely diagnosed. If the vehicle is not currently undergoing remote diagnosis or OTA, it means that the remote diagnosis conditions are met and remote diagnosis can be performed.
[0026] Step 4: TBOX diagnoses the corresponding target controller according to the type of diagnostic instruction. TBOX receives and parses the diagnostic instruction sent by TSP, and diagnoses the corresponding target controller according to the IP address and controller logical address in the DoIP message. In the specific implementation, the vehicle controller terminal, as the target controller to be diagnosed, is not only responsible for correctly responding to the diagnostic request sent by the Ethernet node to TBOX, but also serves as the diagnostic gateway of the CAN and CANFD nodes, responsible for converting the DoIP message sent by the CAN node into a DoCAN message and forwarding it to the corresponding CAN / CANFD node. CAN / CANFDNode, as the target controller to be further diagnosed, is responsible for correctly responding to the diagnostic request sent by TBOX. If the diagnostic request sent by the Ethernet node to TBOX, the vehicle controller terminal acts as the target controller to be diagnosed and directly diagnoses the domain controller itself. If the CAN / CANFD controller under the domain controller needs to be diagnosed, the domain controller converts DoIP to CAN / CANFD, and then sends instructions to the corresponding controller. The controller responds to the CAN / CANFD protocol, and the domain controller converts CAN / CANFD to DoIP and uploads it to the cloud.
[0027] Step 5: After TBOX completes the diagnosis, it will feedback the diagnosis result data to TSP. During the data upload process, the diagnosis result is in the domain control of TBOX. Through the DDS service, the data collection center is called. The data collection center uploads the data to the data upload module through DDS and feedbacks it to TSP through MQTT.
[0028] 2. A vehicle remote diagnosis system based on SOA services
[0029] The vehicle remote diagnosis system based on SOA service is used to execute the above diagnosis method, including TSP (vehicle remote service provider), TBOX (vehicle communication basic terminal) and vehicle controller terminal;
[0030] Among them, TSP is the subject for remotely reading diagnostic data, which is used to receive remote diagnostic requests, send remote diagnostic instructions to TBOX, and receive and parse the diagnostic data uploaded by TBOX.
[0031] TBOX is used to judge the current vehicle status and whether it can be diagnosed. If it cannot be diagnosed, it will feedback the corresponding error code to TSP and give a prompt that the diagnosis cannot be performed on the vehicle terminal. At the same time, TBOX is used to receive and parse the diagnostic instructions issued by TSP, and diagnose the corresponding target controller according to the IP address and controller logical address in the DoIP message. After the diagnosis is completed, TBOX feedbacks the diagnostic result data to TSP.
[0032] The vehicle controller terminal (Eth Node) is the target controller to be diagnosed, and is used to respond to the diagnostic request sent by the Ethernet node to the TBOX; at the same time, the vehicle controller terminal is used as the diagnostic gateway of the CAN and CANFD nodes to convert the DoIP message sent by the CAN node to the DoCAN message and send it to the corresponding CAN / CANFD node. The CAN / CANFD Node is the final target controller to be diagnosed, and is responsible for correctly responding to the diagnostic request sent by the TBOX.
[0033] like Figure 1 As shown, the implementation process of the system of the present invention is as follows:
[0034] Step 1: TSP determines whether it needs to issue a diagnostic instruction. If it does, it proceeds to step 2; otherwise, it proceeds to step 1;
[0035] Step 2: TSP sends a diagnostic command to TBOX and goes to step 3;
[0036] Step 3: TBOX determines whether the diagnostic instruction can be executed. If it can be executed, go to step 4; if it cannot be executed, go to step 12;
[0037] Step 4: TBOX sends a diagnostic command to the Eth Node and goes to step 5;
[0038] Step 5: Eth Node determines the type of diagnostic instruction. If the instruction relies on the Ethernet node, it goes to step 6; if the instruction relies on the CAN node, it goes to step 7; if the instruction is not executable, it goes to step 12;
[0039] Step 6: Diagnose the domain controller itself and go to step 10;
[0040] Step 7: Send diagnostic instructions to CAN / CANFD Node and go to step 8;
[0041] Step 8: CAN / CANFD Node determines whether the command can be executed. If it can be executed, go to step 9; if not, go to step 12;
[0042] Step 9: The CAN / CANFD Node responds to the diagnosis and returns the diagnostic data to the Eth Node, and then proceeds to step 10;
[0043] Step 10: Eth Node returns diagnostic data to TBOX and goes to step 11;
[0044] Step 11: TBOX returns the diagnostic data to TSP and goes to step 1;
[0045] Step 12: Return error code to TSP and go to step 1.
[0046] As described above, the reminder system of the present invention is not limited to the configuration described above, and other systems that can implement the embodiments of the present invention may fall within the scope of protection of the present invention.
[0047] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A vehicle remote diagnosis method based on SOA service, characterized in that: The diagnostic method is performed based on SOA services and includes the following steps: Step 1: The vehicle terminal sends a request for remote diagnosis to the TSP; Step 2: After receiving the request, TSP sends a diagnostic instruction to TBOX; Step 3: TBOX determines whether the diagnostic command is executed; if yes, proceed to step 4; if not, an error code is returned to TSP, and the vehicle terminal prompts that remote diagnosis cannot be performed; Step 4: TBOX diagnoses the corresponding target controller according to the type of diagnostic instruction; in step 4, TBOX receives and parses the diagnostic instruction sent by TSP, and diagnoses the corresponding target controller according to the IP address and controller logical address in the DoIP message; the on-board controller terminal is used to respond to the diagnostic request sent by the Ethernet node to TBOX; the on-board controller terminal diagnoses itself and feeds back the diagnostic result to TBOX; the on-board controller terminal serves as a diagnostic gateway of the CAN / CANFD node, and sends the diagnostic request to the corresponding target controller through the CAN / CANFD node, and the target controller responds to the diagnostic request sent by the CAN node to TBOX; the on-board controller terminal converts the DoIP message sent by the CAN node to the DoCAN message, and sends it to the corresponding CAN / CANFD node; Step 5: After TBOX completes the diagnosis, it feeds back the diagnosis result data to TSP.
2. The vehicle remote diagnosis method based on SOA service according to claim 1 is characterized in that: In step 2, TSP calls the remote control interface based on the MQTT protocol to send diagnostic instructions to TBOX.
3. The vehicle remote diagnosis method based on SOA service according to claim 2 is characterized in that: In step 2, after receiving the diagnostic instruction sent by TSP, TBOX converts the MQTT protocol into DDS, calls the diagnostic service through the DDS service, and then sends the diagnostic instruction to the corresponding domain controller.
4. The vehicle remote diagnosis method based on SOA service according to claim 1, characterized in that: In step 5, the diagnosis result is in the domain control of TBOX, and the data collection center is called through the DDS service. The data collection center uploads the data to the data upload module through DDS and feeds back to the TSP through MQTT.
5. A vehicle remote diagnosis system based on SOA service, characterized in that: Including TSP, TBOX and vehicle controller terminal; Among them, TSP is the subject of remotely reading diagnostic data, which is used to receive remote diagnostic requests, send remote diagnostic instructions to TBOX, and receive and analyze the diagnostic data uploaded by TBOX; TBOX is used to judge the current vehicle status and whether it can be diagnosed. If it cannot be diagnosed, it will feedback the corresponding error code to TSP and give a prompt that the diagnosis cannot be performed on the vehicle terminal. At the same time, TBOX is used to receive and parse the diagnostic instructions issued by TSP, and diagnose the corresponding target controller according to the IP address and controller logical address in the DoIP message. After the diagnosis is completed, TBOX feedbacks the diagnostic result data to TSP. The on-board controller terminal serves as the target controller to be diagnosed, and is used to respond to the diagnostic request sent by the Ethernet node to the TBOX. At the same time, the on-board controller terminal serves as the diagnostic gateway for the downstream CAN and CANFD nodes, and is used to convert the DoIP message sent by the CAN node to the TBOX into a DoCAN message and send it to the corresponding CAN / CANFD node. The CAN / CANFD Node corresponding to the CAN / CANFD node serves as the target controller to be diagnosed, responds to the diagnostic request sent by the TBOX, diagnoses itself, and feeds back the diagnostic results.
