Vehicle networking remote diagnosis method, device, electronic equipment and storage medium
Through the remote diagnosis method of the Internet of Vehicles, the collaborative work of the cloud and on-board modules solves the problems of complex operations, delays and limited functions of vehicle fault diagnosis, and achieves an efficient and stable remote diagnosis process, which is suitable for remote areas or inaccessible places. vehicle.
Patent Information
- Application Number
- CN202410127999.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-30
AI Technical Summary
Existing vehicle fault diagnosis methods have problems such as complex operations, delayed fault diagnosis, limited functions, and complex configuration of remote diagnosis processes. Especially in remote areas or difficult-to-reach vehicles, traditional near-end diagnosis and remote diagnosis methods are difficult to effectively solve.
Using the Internet of Vehicles remote diagnosis method, select the remote diagnosis task through the cloud management interface, send the task request to the vehicle, use the vehicle communication module to establish a link with the cloud, the remote diagnosis forwarding module updates the task status, and uses the remote diagnosis protocol parsing module to parse and send the diagnosis command to realize remote vehicle diagnosis.
It lowers the operating threshold, shortens fault diagnosis time, improves diagnosis efficiency and stability, eliminates the need for vehicle-side software updates, and enables flexible diagnosis process configuration and deeper vehicle data analysis.
Smart Images

Figure CN118034241B
Abstract
Description
Technical Field
[0001] The present application relates to the field of new energy vehicle technology, and in particular to a method, device, electronic equipment and storage medium for remote diagnosis of an Internet of Vehicles. Background Art
[0002] As a modern vehicle maintenance method, vehicle-connected fault diagnosis relies on sensors, control units and communication modules inside the vehicle to enable the vehicle to share its data and information in real time. This method can achieve instant detection, diagnosis and troubleshooting of vehicle faults. To achieve this goal, traditional vehicle fault diagnosis often uses a proximal diagnosis method, that is, physically connecting the vehicle to the diagnostic instrument and using the OBD interface on the vehicle to obtain the necessary diagnostic information.
[0003] However, this proximal diagnostic method has obvious limitations. First, it requires a physical connection, which means that specific hardware interfaces and cables must be available, and it may be complicated for ordinary car owners to operate. Second, proximal diagnosis may cause delays in fault diagnosis because it takes time to establish a connection between the vehicle and the diagnostic instrument. In addition, proximal diagnosis is difficult to use for vehicles in remote areas or that are difficult to directly access. In terms of functionality, proximal diagnosis is relatively limited, and usually only provides basic functions such as basic reading of fault codes and real-time data display.
[0004] To overcome these limitations, vehicle remote diagnosis methods have emerged. However, the traditional choice of protocols between remote diagnosis vehicles and the cloud also brings a series of problems. Traditional remote diagnosis mainly uses the MQTT protocol, rather than the standard DOIP UDS protocol. This leads to a mismatch in diagnostic protocols, especially in scenarios where the vehicle cloud uses MQTT and the in-vehicle diagnostic protocol usually uses DOIP+UDS. In addition, since most of the remote diagnosis processing procedures and logic are executed on the vehicle side, this makes the vehicle-side software update process particularly cumbersome when the remote diagnosis process and content need to be changed or configured. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a method, device, electronic device and storage medium for remote diagnosis of the Internet of Vehicles to solve the problems existing in the prior art, such as high threshold for proximal diagnosis operation, delay in fault diagnosis, relatively limited functions, complex vehicle-side software updates, and difficulty in flexibly configuring and changing remote diagnosis processes and contents.
[0006] In a first aspect of an embodiment of the present application, a method for remote diagnosis of an Internet of Vehicles is provided, comprising: selecting a remote diagnosis task using a cloud management interface, and sending a remote diagnosis task request to a vehicle end, and judging whether to start the remote diagnosis task based on the vehicle end's feedback on the remote diagnosis task request; when the vehicle end receives an instruction to start the remote diagnosis task, sending a link request to the cloud using an on-board communication module, and sending a response message of successful linking to a remote diagnosis forwarding module using the cloud; the remote diagnosis forwarding module initiates a link activation request based on the received response message, updates the vehicle remote diagnosis task status to successful activation, and triggers a remote diagnosis request; sends the remote diagnosis request to a remote diagnosis protocol parsing module through a message middleware, parses the remote diagnosis request using the remote diagnosis protocol parsing module, generates a remote diagnosis task instruction, and sends the remote diagnosis task instruction to a cloud communication component; uses the cloud communication component to send a remote diagnosis task instruction to the vehicle end through an established long link, and receives a response content returned by the vehicle end, and parses the response content using the remote diagnosis protocol parsing module to obtain a remote diagnosis result.
[0007] According to a second aspect of an embodiment of the present application, a remote diagnosis device for an Internet of Vehicles is provided, comprising: a request module, configured to select a remote diagnosis task using a management interface of a cloud, and send a remote diagnosis task request to a vehicle end, and determine whether to start the remote diagnosis task according to the feedback of the vehicle end on the remote diagnosis task request; a link module, configured to send a link request to the cloud using a vehicle communication module when the vehicle end receives an instruction to start the remote diagnosis task, and send a response message of successful linking to a remote diagnosis forwarding module using the cloud; an activation module, configured to initiate a link activation request according to the received response message by the remote diagnosis forwarding module, update the vehicle remote diagnosis task status to successful activation, and trigger the remote diagnosis request; a parsing module, configured to send the remote diagnosis request to the remote diagnosis protocol parsing module through a message middleware, parse the remote diagnosis request using the remote diagnosis protocol parsing module, generate a remote diagnosis task instruction, and send the remote diagnosis task instruction to the cloud communication component; a diagnosis module, configured to send a remote diagnosis task instruction to the vehicle end through an established long link using the cloud communication component, receive the response content returned by the vehicle end, parse the response content using the remote diagnosis protocol parsing module, and obtain a remote diagnosis result.
[0008] According to a third aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0009] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0010] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0011] By using the cloud management interface to select the remote diagnosis task, and sending the remote diagnosis task request to the vehicle side, judging whether to start the remote diagnosis task according to the feedback of the vehicle side to the remote diagnosis task request; when the vehicle side receives the instruction to start the remote diagnosis task, the vehicle communication module is used to send a link request to the cloud, and the cloud side sends the response message of successful link to the remote diagnosis forwarding module; the remote diagnosis forwarding module initiates a link activation request according to the received response message, updates the vehicle remote diagnosis task status to successful activation, and triggers the remote diagnosis request; the remote diagnosis request is sent to the remote diagnosis protocol parsing module through the message middleware, and the remote diagnosis request is parsed by the remote diagnosis protocol parsing module to generate a remote diagnosis task instruction, and the remote diagnosis task instruction is sent to the cloud communication component; the cloud communication component is used to send the remote diagnosis task instruction to the vehicle side through the established long link, and the response content returned by the vehicle side is received, and the response content is parsed by the remote diagnosis protocol parsing module to obtain the remote diagnosis result. This application adopts a remote diagnosis method to reduce the operation threshold, low fault diagnosis delay, and no need to rely on the software update of the vehicle side, which ensures the efficiency and stability of the entire remote diagnosis process. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0013] Figure 1 It is a flowchart of a remote diagnosis method for an Internet of Vehicles provided in an embodiment of the present application;
[0014] Figure 2 It is a structural diagram of a vehicle networking remote diagnosis device provided in an embodiment of the present application;
[0015] Figure 3 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0016] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0017] Vehicle-connected fault diagnosis is a vehicle maintenance method that uses communication technology between vehicles to enable vehicles to share data and information, thereby achieving fault detection, diagnosis and problem troubleshooting. Vehicle-connected fault diagnosis transmits vehicle data to diagnostic equipment for analysis through sensors, control units and communication modules inside the vehicle. The common method for vehicle fault diagnosis is to use proximal diagnosis, that is, to obtain diagnostic information by connecting the diagnostic instrument to the vehicle-side OBD interface through a physical connection line.
[0018] At present, the commonly used proximal diagnosis process in the prior art includes the following:
[0019] 1) Connect the diagnostic tool: The technician or the car owner connects the diagnostic tool (also called an OBD diagnostic tool, OBD stands for "On-Board Diagnostics") to the vehicle's diagnostic interface. This interface is usually located under the driver's seat or near the dashboard.
[0020] 2) Start the vehicle: After the vehicle is started, the diagnostic instrument establishes a connection with the vehicle's ECU (Electronic Control Unit). The diagnostic instrument can read the vehicle's real-time data and stored fault codes.
[0021] 3) Data reading and analysis: The diagnostic instrument reads the sensor data, control unit information, error codes, etc. inside the vehicle. The diagnostic instrument transmits this data to the connected device, such as a smartphone, tablet, or computer, through a standard communication protocol (such as the OBD-II protocol).
[0022] 4) Fault code analysis: The diagnostic tool can interpret the fault codes it reads, which represent problems that have occurred in the vehicle system. The diagnostic tool translates the fault codes into easy-to-understand terms that describe the nature and location of the problem.
[0023] 5) Problem location: On the diagnostic instrument screen, technicians or vehicle owners can view detailed information about the problem, including fault code, problem description and possible causes, which helps determine whether further inspection or repair is needed.
[0024] 8) Real-time data monitoring: The diagnostic instrument can also display real-time vehicle data, such as engine speed, vehicle speed, coolant temperature, etc. These data can help technicians understand the status of the vehicle and determine whether there are other problems.
[0025] 7) Maintenance suggestions: Based on fault codes and real-time data, the diagnostic tool can provide basic maintenance suggestions, such as checking specific components, clearing fault codes or making simple adjustments.
[0026] 8) Fault Clearing: After the problem is solved, the diagnostic tool usually allows the fault code to be cleared to confirm that the problem has been fixed.
[0027] However, the above-mentioned proximal diagnosis scheme in the prior art still has the following disadvantages:
[0028] 1) Physical access requirements:
[0029] Near-end diagnosis requires a physical connection between the vehicle and the diagnostic instrument, which usually requires specific hardware interfaces and cables. This makes it difficult to use and operate, especially for ordinary car owners.
[0030] 2) Limited real-time performance:
[0031] Near-end diagnosis requires the vehicle to be connected to the diagnostic instrument, which may take some time, especially when the problem is not obvious, and requires the owner or technician to find and connect to the diagnostic interface. This may cause a delay in diagnosing the problem.
[0032] 3) Unable to cope with distance issues:
[0033] For issues that require remote access to resolve, such as when the vehicle is in a remote area or out of direct contact, local diagnostics are not effective.
[0034] 4) Limited functionality:
[0035] Local diagnosis usually provides basic functions such as fault code reading, real-time data display and simple suggestions. In contrast, remote diagnosis can analyze vehicle data more comprehensively and perform more in-depth problem diagnosis.
[0036] In addition, traditional remote diagnosis between the car and the cloud does not use the standard DOIP UDS protocol, but instead uses the MQTT protocol through the car and the cloud. This method has the following problems: this protocol does not match the original car-cloud diagnostic protocol. The car cloud uses MQTT, but the in-vehicle diagnostic protocol generally uses DOIP+UDS, which causes protocol conversion problems; using the MQTT method, the main remote diagnostic processing flow and logic are on the car side, and the cloud only displays the remote diagnostic results. However, due to the cumbersome software update process on the car side, it is impossible to flexibly configure and change the remote diagnostic process and content.
[0037] In view of the problems existing in the prior art, this application proposes a method and device for remote diagnosis of the Internet of Vehicles. While solving the related problems caused by proximal diagnosis, the Internet of Vehicles remote diagnosis method of this application also uses the DOIP+UDS protocol to solve the problems caused by the traditional remote diagnosis of the Internet of Vehicles using the MQTT method. The system architecture involved in the Internet of Vehicles remote diagnosis method of this application is described below in conjunction with specific embodiments, which may specifically include the following contents:
[0038] 1. The cloud is the cloud part of the Internet of Vehicles, which is responsible for the specific remote diagnosis management functions, mainly including remote diagnosis services and access layers. The remote diagnosis services are mainly responsible for remote diagnosis configuration, remote diagnosis protocol parsing and remote diagnosis command issuance. The access layer is mainly responsible for establishing a remote connection with the vehicle.
[0039] 2. The vehicle-side diagnostic part is mainly responsible for the remote commands issued by the cloud and reporting the vehicle-side diagnostic results to the cloud. Among them, TBOX is responsible for establishing a connection between the vehicle and the cloud, and GW, the vehicle-side gateway, is responsible for routing and forwarding diagnostic commands.
[0040] 3. The remote diagnosis instructions between the vehicle and the cloud use the DOIP protocol, and the remote diagnosis function is enabled using MQTT instructions.
[0041] The contents of the technical solution of the present application are described in detail below with reference to the accompanying drawings and specific embodiments.
[0042] Figure 1 It is a flowchart of the vehicle networking remote diagnosis method provided in an embodiment of the present application. Figure 1 The vehicle networking remote diagnosis method can be executed by a remote diagnosis server. Figure 1 As shown, the vehicle networking remote diagnosis method may specifically include:
[0043] S101, using the cloud management interface to select a remote diagnosis task, and sending a remote diagnosis task request to the vehicle end, and judging whether to start the remote diagnosis task according to the feedback of the vehicle end to the remote diagnosis task request;
[0044] S102, when the vehicle receives the instruction to start the remote diagnosis task, it uses the vehicle communication module to send a connection request to the cloud, and uses the cloud to send a response message of successful connection to the remote diagnosis forwarding module;
[0045] S103, the remote diagnosis forwarding module initiates a link activation request according to the received response message, updates the vehicle remote diagnosis task status to activation success, and triggers a remote diagnosis request;
[0046] S104, sending the remote diagnosis request to the remote diagnosis protocol parsing module through the message middleware, parsing the remote diagnosis request using the remote diagnosis protocol parsing module, generating a remote diagnosis task instruction, and sending the remote diagnosis task instruction to the cloud communication component;
[0047] S105, using the cloud communication component to send a remote diagnosis task instruction to the vehicle side through the established long link, and receiving the response content returned by the vehicle side, using the remote diagnosis protocol parsing module to parse the response content to obtain the remote diagnosis result.
[0048] First, the technical terms involved in the embodiments of the present application in actual scenarios are explained, which may include the following:
[0049] OBD (On-Board Diagnostics): On-board diagnostic system. Currently all cars have OBD function and interface. The main purpose of OBD is to store vehicle fault information.
[0050] MQTT (Message Queuing Telemetry Transport): an IoT communication protocol;
[0051] ECU (Electronic Control Unit): vehicle-side electronic control unit.
[0052] CAN (Controller Area Network): Controller Area Network is a serial communication network that can realize distributed real-time control between vehicle-side components.
[0053] DOIP (Diagnostic Over Internet Protocol): DOIP is a vehicle diagnostic communication protocol based on Internet Protocol, which allows the vehicle to communicate with a remote server via the Internet.
[0054] UDS (Unified Diagnostic Services) communication protocol: UDS is a standard diagnostic service protocol that defines the communication method and message format between vehicles and diagnostic tools, including diagnostic sessions, fault code reading, parameter configuration and other functions.
[0055] DTC (Diagnostic Trouble Code): A diagnostic trouble code is a code that indicates a problem or malfunction with the vehicle. When the vehicle's electronic control unit (ECU) detects a problem or anomaly, it generates a trouble code to indicate the nature of the problem. Each trouble code is associated with a specific problem, such as an engine malfunction, an emission system problem, etc. Diagnostic tools can read the trouble code so that technicians can understand the possible problem with the vehicle and then take appropriate repair measures.
[0056] DID (Data Identifier): A data identifier is a digital code used to identify and obtain specific vehicle data. Each data identifier is associated with one or more specific vehicle parameters or data. By sending appropriate commands and identifiers, the diagnostic tool can request specific data of the vehicle, such as vehicle speed, engine speed, coolant temperature, etc. Data identifiers are defined in the OBD-II standard, and different vehicle manufacturers may support different data identifiers.
[0057] web: It is the web management interface of the Internet of Vehicles cloud, which is responsible for providing remote diagnostic function operations. The web users are maintenance and operation personnel.
[0058] vhr-backend: The backend management service in the remote diagnosis service of the Internet of Vehicles, responsible for connecting to the web end and issuing specific remote diagnosis.
[0059] terminal-center: equipment center, responsible for managing the basic information of vehicle-side equipment.
[0060] vhr-adapter: responsible for remote diagnosis protocol parsing and forwarding, also known as remote diagnosis protocol parsing module.
[0061] Terminal-gateway: TG for short, responsible for the access between the cloud and vehicle terminals of the Internet of Vehicles.
[0062] Tbox: The networking device on the vehicle side is responsible for establishing a connection with the cloud-based Internet of Vehicles platform.
[0063] vhr-doip-gateway: NG for short, the gateway responsible for doip communication with the vehicle end, that is, the cloud communication component.
[0064] In some embodiments, selecting a remote diagnosis task using a cloud management interface and sending a remote diagnosis task request to the vehicle side includes:
[0065] Select the remote diagnosis task in the web management interface of the cloud, determine the type and vehicle series corresponding to the remote diagnosis task, and use the background management service to call the device center request interface to send the remote diagnosis task request to the vehicle end;
[0066] Among them, the diagnostic interface corresponding to the remote diagnostic task includes reading the vehicle fault code, reading the vehicle data, reading the ECU fault code and / or reading the ECU data stream.
[0067] Specifically, the remote diagnosis technology of the present application is implemented through an integrated cloud management interface, allowing users or vehicle technicians to remotely diagnose vehicle faults. The following is a detailed description of the process of selecting a remote diagnosis task through the cloud web management interface, which may include the following:
[0068] Initialization of remote diagnosis task: The user or vehicle technician logs in through the web management interface of the cloud. In the interface after logging in, they can see a list of all vehicles that can be remotely diagnosed. Through this interface, they can select the vehicle that needs to be remotely diagnosed.
[0069] Select diagnostic task: After selecting a specific vehicle, the user or technician can further select the type and vehicle series of the remote diagnostic task. This step is very critical because different vehicle series and models may have different diagnostic protocols and interfaces. After selection, the background management service will automatically call the corresponding device center request interface to send the remote diagnostic task request to the corresponding vehicle end.
[0070] Remote diagnostic interface: The cloud system provides a variety of remote diagnostic interfaces for users or technicians to choose from, including:
[0071] a. Read vehicle fault codes: This can be achieved through the API endpoint [ / admin / remote-diagnosis:POST].
[0072] b. Read vehicle data: can be obtained through the API endpoint [ / admin / remote-diagnosis / read-vehicle-data].
[0073] c. Read ECU fault code: This can be achieved through the [ / admin / remote-diagnosis / read-ecu-dtc] endpoint.
[0074] d. Read ECU data stream: This can be achieved through the [ / admin / remote-diagnosis / read-ecu-data] endpoint.
[0075] Management of remote diagnosis tasks: In order to record and manage each remote diagnosis, the system has a special database table VHR_RemoteDiagnosis in the background. Every time a new remote diagnosis task is started, a new record will be added to this table. The table records in detail the start time, end time, diagnosis type, vehicle series, diagnosis status and any other information related to the diagnosis.
[0076] It should be noted that the opening and closing of remote diagnosis is a prerequisite for the entire remote diagnosis. This ensures that the vehicle's remote diagnosis function has been correctly turned on before any remote diagnosis operation. If the vehicle is not online, the web terminal will not be able to select the diagnostic task for diagnosis.
[0077] In some embodiments, the device center request interface is called by the background management service to send a remote diagnosis task request to the vehicle end, including:
[0078] Use the background management service to send a command to call the remote diagnosis task request through the device center request interface, start the timeout, and if no feedback is received from the vehicle end within the preset time, send the command to call the remote diagnosis task request again. When the number of times that no feedback is received from the vehicle end exceeds the preset number, update the remote diagnosis record status to timeout and send a prompt;
[0079] By using the message middleware, the vehicle terminal gateway and the remote diagnosis protocol parsing module used for remote diagnosis protocol parsing and forwarding are communicated bidirectionally. The vehicle terminal gateway sends the start instruction of the MQTT remote diagnosis task based on EMQ, and sets a predetermined timeout to monitor the response status of the vehicle.
[0080] Specifically, the embodiment of the present application provides a complete process of remote diagnostic communication with the vehicle side through the background management service, including a failure retry mechanism and forwarding of a two-way communication protocol.
[0081] Furthermore, the initialization remote diagnosis task request includes the following contents:
[0082] When a user or technician initiates a remote diagnosis request through the cloud interface, vhr-backend (the backend management service in the remote diagnosis service) will call the command calling interface [ / public / vehicles / remote-instructions] of the device center.
[0083] As the command is sent, a preset 10-second timeout begins. If no feedback is received from the vehicle terminal (vehicle end) within this time period, the command will be resent. This retry process is repeated up to 2 times (3 attempts in total).
[0084] If no feedback is received from the vehicle after three attempts, the system will generate a prompt: "No feedback received from the vehicle". At the same time, the remote diagnosis record status will be updated to "timeout" in the database.
[0085] Furthermore, message forwarding and protocol parsing include the following:
[0086] tg sends a call request to vhr-adapter (the module responsible for remote diagnosis protocol parsing and forwarding) through kafka, and the request will be sent to the kafka topic vhrAdapterTopic. vhr-adapter then forwards the call request to tg through kafka, and the request will be published to the kafka topic vhrTgTopic.
[0087] In the above stage, tg sends an MQTT remote diagnostic task start command to the vehicle terminal through EMQ. This command is published in the mqtt topic: Client / V1 / REMOTE_DIAG-DIAG_START_STOP / ${deviceID}. A timeout is set here and stored in redis to monitor the response status of the vehicle end.
[0088] Furthermore, the vehicle-side response and status update include the following:
[0089] When the Tbox on the vehicle sends a response to the mqtt topic Server / V1 / REMOTE_DIAG-DIAG_START_STOP / ${deviceID}, the system will delete the timeout set in redis.
[0090] After receiving the response from the vehicle, terminal-gateway will send a kafka response request to the topic vhrAdapterTboxTopic. After receiving the kafka request, vhr-adapter will parse the message type (according to the msgType in the message header). If no response is received from Tbox within the preset timeout, the sent content will be marked as "timeout".
[0091] According to the parsed message type, vhr-adapter will call the vhr-backend response interface [internal / remote-diagnosis / response:POST] to update the status of the vehicle remote diagnosis. If the response is successful, the status is updated to "start successfully", and if the response fails or times out, the status is updated to "start failed". The relevant status information will be recorded in the database table VHR_RemoteDiagnosiVehicle.status field.
[0092] In some embodiments, using the vehicle communication module to send a connection request to the cloud, and using the cloud to send a response message of successful connection to the remote diagnosis forwarding module, includes:
[0093] Initiate a TCP-based connection request to the cloud communication component port of the cloud using the vehicle communication module, and send the vehicle declaration information to the cloud in UDP mode, wherein the vehicle declaration information includes the vehicle identification number;
[0094] After the TCP link is established, the cloud communication component requests vehicle information via TCP, and the vehicle communication module returns the requested vehicle information to the cloud communication component via TCP;
[0095] After the cloud communication component receives the vehicle information, the response message of successful linking is sent to the remote diagnosis forwarding module through the message middleware. When the remote diagnosis forwarding module receives the response message, it calls the successful linking request of the background management service, and initiates a link activation request after synchronously receiving the response of the background management service.
[0096] Specifically, the embodiment of the present application also discloses a process for establishing a remote diagnostic link between the vehicle-mounted communication module and the cloud, which may include the following contents:
[0097] First, the vehicle communication module and the cloud establish a link request:
[0098] When remote diagnosis is required, Tbox (vehicle communication module) first initiates a TCP-based link establishment request. This request is for the ng component in the cloud, and it uses port 13400. In the standard diagnostic opening protocol (DOIP), the vehicle communication module usually sends the vehicle declaration information via UDP before the TCP connection is established. However, in this embodiment, this step is not implemented for the time being. However, if this step is followed, Tbox will send the vehicle declaration information via UDP three times in a row, including the vehicle identification number, i.e., VIN.
[0099] Second, the cloud requests vehicle information:
[0100] Once the TCP connection is successfully established, the ng component in the cloud will send a vehicle information request to Tbox via TCP. After receiving the request, Tbox will return the requested vehicle information via TCP.
[0101] Third, the communication between the cloud and the remote diagnosis forwarding module:
[0102] When the ng component successfully receives the vehicle information from Tbox, it will build a successful link response message. After that, the ng component sends this response message to the vhr-adapter through kafka, and the message is published under the vhrNgAdapterTopic topic. When the vhr-adapter receives this response message, it will call the link success request of the background management service. This request is intended to notify the background management service that the remote diagnostic link between the car and the cloud has been successfully established. After receiving this request, the background management service will return a response. Once the vhr-adapter receives this response synchronously, it will initiate a link activation request to ensure that the link is fully activated and ready for remote diagnosis.
[0103] In some embodiments, the remote diagnosis forwarding module initiates a link activation request according to the received response message, updates the vehicle remote diagnosis task status to activation success, and triggers the remote diagnosis request, including:
[0104] Use the backend management service to update the vehicle's diagnostic status to route activation, and use the message middleware to send the link activation request to the remote diagnostic forwarding module;
[0105] The remote diagnosis forwarding module uses the message middleware to initiate the link activation request, and uses TCP based on the DOIP protocol format in the cloud communication component to make a route activation request, and synchronously obtains the route activation response;
[0106] The routing activation response is transmitted to the remote diagnosis forwarding module, so that the remote diagnosis forwarding module initiates a link establishment response request to the background management service.
[0107] Specifically, the embodiment of the present application also describes in detail how to activate the link according to the received response message during the remote diagnosis process, thereby triggering the detailed implementation steps of the remote diagnosis request, for example, the following steps may be included:
[0108] Step 1: Link activation request initiated:
[0109] After receiving the response message, vhr-adapter first calls vhr-backend's link establishment success request. When vhr-adapter synchronously receives the response returned by vhr-backend, it will further initiate a link activation request. Correspondingly, vhr-backend will update the vehicle's diagnostic status to "route activated", which involves the modification of the VHR_RemoteDiagnosiVehicle.status table. Then, vhr-backend sends this link activation request to vhr-adapter through kafka.
[0110] Step 2: Link activation:
[0111] After receiving the link activation request, vhr-adapter will continue to initiate the activation request through kafka. This request will be forwarded to the ng component in the cloud. The ng component will make a route activation request based on the TCP protocol and in the DOIP protocol format. It should be noted that the standard route activation request message of DOIP is used here. After the request is sent, the ng component will synchronously receive the route activation response. After that, the ng component sends this route activation response back to the vhr-adapter through kafka.
[0112] Step 3: Link establishment response and task status update:
[0113] After vhr-adapter receives the route activation response, it will immediately call vhr-backend's link establishment response request. According to the content of the response, vhr-backend will update the vehicle remote diagnosis task status. If the link activation is successful, the status will be updated to "activation successful". This also involves the modification of the VHR_RemoteDiagnosiVehicle.status table. Subsequently, the system will trigger a remote diagnosis request. If the link activation fails in a certain step, vhr-backend needs to synchronously update the task status to failure, and may perform subsequent exception handling and error prompts.
[0114] In some embodiments, the remote diagnosis request is parsed by the remote diagnosis protocol parsing module to generate a remote diagnosis task instruction, and the remote diagnosis task instruction is sent to the cloud communication component, including:
[0115] When the remote diagnosis task status of the vehicle is successfully activated, a parsing operation of the remote diagnosis request is triggered, wherein the remote diagnosis request includes a diagnosis instruction and related file information;
[0116] The cloud communication component uses the established long link to encapsulate the remote diagnosis task instruction into a UDS instruction according to the DOIP protocol and sends it to the cloud communication component;
[0117] The cloud communication component sends the UDS command to the vehicle side, so that the vehicle side returns a response synchronously after receiving the UDS command, and sends the response content.
[0118] Specifically, the embodiment of the present application also discloses detailed implementation steps of how to use the remote diagnosis protocol parsing module to parse the remote diagnosis request, generate the remote diagnosis task instruction, and send it to the cloud communication component during the remote diagnosis process, which may include the following steps:
[0119] Step 1: Trigger remote diagnostic request analysis:
[0120] When the vehicle's remote diagnosis task status is updated to "Activation Successful", vhr-backend will trigger the parsing operation of the remote diagnosis request. This remote diagnosis request includes not only the diagnosis instructions, but also the file information related to the diagnosis, such as pdx file information. To ensure accurate execution, vhr-backend ensures that all preconditions are met before initiating the remote diagnosis request.
[0121] Step 2: Generate and send remote diagnosis task instructions:
[0122] Once parsed, vhr-backend will initiate a remote diagnostic request through kafka. Note that the kafka request will include all the pdx file information required for the diagnostic instructions. Then, vhr-adapter receives the request and sends the generated remote diagnostic task instructions to the ng component through kafka.
[0123] Step 3: Encapsulate the UDS command and send it:
[0124] After receiving the remote diagnosis task instruction, the ng component first uses the established long link to encapsulate the task instruction into a UDS instruction according to the DOIP protocol. It should be noted that the UDS instruction will be encapsulated in the DOIP way before sending. Then, the ng component sends this encapsulated UDS instruction to the vehicle end.
[0125] Step 4: Vehicle-side response:
[0126] After receiving the UDS command, the vehicle will synchronously return a response, which is usually ACK (Acknowledgement) or NACK (Negative Acknowledgement). However, this is only an immediate response, and the actual diagnostic response content, such as error code, diagnostic data, etc., will be sent again by the vehicle. This means that the vehicle will send the response content again at a later time.
[0127] Step 5: Subsequent response processing:
[0128] After receiving the responses from the vehicle, the ng component will further process these responses, such as parsing ACK or NACK, storing the actual diagnosis content, etc. After the processing is completed, the corresponding subsequent steps, such as error handling, feedback to users, etc., will be the same as the previous steps.
[0129] In some embodiments, a remote diagnosis task instruction is sent to the vehicle end through an established long link using a cloud communication component, and a response content returned by the vehicle end is received, and the response content is parsed using a remote diagnosis protocol parsing module to obtain a remote diagnosis result, including:
[0130] After receiving the response content returned by the vehicle, the cloud communication component passes the response content to the remote diagnosis protocol parsing module through the message middleware. The remote diagnosis protocol parsing module parses the received response content and calls the interface of the background management service for processing;
[0131] In the background management service, the remote diagnosis task status is updated according to the response result obtained by parsing. When the response result is successful, the remote diagnosis task status is updated to success; when the response result is failed, the remote diagnosis task status is updated to failure.
[0132] Specifically, the embodiment of the present application also discloses how to send remote diagnosis task instructions to the vehicle side through the cloud communication component using the established long link, receive and parse the response content of the vehicle side, and perform subsequent operations according to the parsing results in the process of remote diagnosis of the vehicle, and the detailed implementation steps, for example, may include the following steps:
[0133] Step 1: Receiving and forwarding the vehicle-side response:
[0134] The ng component, as a cloud communication component, receives the response content from the vehicle on the established long link. In order to ensure that the response content can be accurately processed by the remote diagnosis protocol parsing module, ng sends it to the vhr-adapter through the kafka message middleware.
[0135] Step 2: Parsing of response content:
[0136] vhr-adapter, as a remote diagnosis protocol parsing module, starts to parse the response content after receiving it from ng, and converts the complex vehicle-side response data into a more intuitive and easy-to-process format or structure.
[0137] Step 3: Calling and processing of background services:
[0138] After parsing, vhr-adapter calls vhr-backend interface and passes the parsed response content to the backend management service. After receiving the parsed response content, vhr-backend further processes it according to the content, mainly updating the remote diagnosis task status.
[0139] Step 4: Update the status of the remote diagnosis task:
[0140] vhr-backend will update the task status based on the parsed response. If the response indicates success, the remote diagnosis task status will be updated to "success". It should be noted that this is different from the traditional remote diagnosis method. In the traditional method, because it is an asynchronous operation, the task status may be updated to "sent" first. If the response indicates failure, the remote diagnosis task status will be updated to "failure".
[0141] Step 5: Exception handling:
[0142] In the above process, accidents or errors may occur at any stage, such as message loss, parsing errors, etc. To deal with these situations, it is necessary to set up corresponding exception handling mechanisms, such as retry, logging, warning notifications, etc.
[0143] In some embodiments, the remote diagnosis protocol parsing module parses the received response content and calls the interface of the background management service for processing, including:
[0144] A remote diagnosis task is configured for the remote fault diagnosis corresponding to each vehicle controller, and all remote diagnosis tasks are grouped into a vehicle remote diagnosis task set;
[0145] Assign a priority to each remote diagnosis task. The priority is used to characterize the importance of the remote diagnosis task. The priority is calculated based on the fault level, the average number of historical faults, and the total number of historical fault readings.
[0146] Using a predefined objective function as an optimization objective for scheduling the entire vehicle remote diagnosis task set, optimizing the objective function so as to execute the remote diagnosis tasks according to priority and minimize the total execution time;
[0147] Among them, the total number of historical fault readings is obtained by analyzing the fault warning messages reported by the vehicle side, the remote diagnosis task includes the fault code diagnosis task and the fault data diagnosis task, and the fault level includes the fault level of the fault code.
[0148] Specifically, in the above-mentioned remote diagnosis implementation method, remote diagnosis usually includes a vehicle controller, and usually there are more than 50 core controllers that can be diagnosed, and each controller contains at least 15 DTCs (fault codes) and more than 20 DIDs (fault data). Since each DTC and each DID are read in a single serial manner, and each reading is very slow, it will take at least more than ten minutes to read all the DTCs and DIDs of the above-mentioned vehicle controllers. Moreover, for vehicle remote diagnosis, maintenance personnel are more concerned about diagnoses with higher priority or more problems. In view of the above scenarios, in order to optimize the execution order of diagnostic tasks and improve the efficiency of diagnosis, this application proposes a diagnostic arrangement algorithm based on DTC fault level and historical DID reading trends and historical fault trends, which may specifically include the following contents:
[0149] 1) Algorithm model prerequisites: Note that in the remote diagnosis task, remote diagnosis of DTC and remote diagnosis of DID cannot be performed at the same time, so the following algorithm model is based on a single vehicle remote diagnosis of DTC or a single remote diagnosis of DID.
[0150] 2) The task scheduling algorithm model is as follows:
[0151] Diagnostic task representation: the diagnosis of each DTC and DID in the controller in remote diagnosis represents a diagnostic task. The task set of vehicle remote diagnosis is defined as T, which is expressed as follows: , which represents all diagnostic tasks to be executed.
[0152] Assign task priorities to each task Assign a priority ,in is a real number indicating the importance of the task. The priority includes DTC fault level, historical fault average value, and historical DID reading times.
[0153] Among them, for a single DTC ;
[0154] in, Indicates the fault level, The actual fault levels of DTC are divided into 1, 2, 3, and 4, among which level 1 is the highest and level 4 is the lowest.
[0155] in, Indicates the average number of historical faults that occurred for this DTC. The specific calculation method is as follows:
[0156]
[0157] Among them, the molecule Indicates the total number of times the DTC has failed in history, and the denominator indicates the total number of historical failures of the vehicle. That is, the total number of DTC faults in history comes from the fault warning messages reported by the vehicle. If a fault occurs on the vehicle, the specific DTC will be reported to the cloud in the form of a fault message. The cloud will record each fault message information in the database. Each warning message record in the database will be uniquely identified by vehicle ID+DTC+DTC occurrence time, that is = Sum (cloud alarm message record), where the cloud alarm message record is required to be unique based on vehicle ID + DTC + DTC occurrence time. If there is a duplication of vehicle ID + DTC + DTC occurrence time, deduplication processing is required.
[0158] It should be noted that if the above The larger the value, the greater the DTC's priority execution rights.
[0159] 3) Task scheduling objective function:
[0160] Define an objective function Represents the optimization goal of diagnostic task scheduling. In vehicle remote diagnosis, since we pay more attention to higher priority diagnosis, this objective function means that we want to achieve both the execution of diagnostic tasks that need attention and the minimization of total execution time.
[0161] 4) The objective function can be expressed as:
[0162]
[0163] in, Indicates the average historical diagnosis time of the DTC, which can be obtained from historical diagnosis tasks.
[0164] in, It's a task Whether the binary variable is executed or not, its specific calculation value is as follows:
[0165] = 1 for task is executed, i.e. >= hour =1;
[0166] = 0 means task is not executed. < hour =0;
[0167] In summary, the diagnostic task The execution order is based on the The values are executed in descending order. Whether it is executed depends on .
[0168] According to the technical solution provided in the embodiment of the present application, the embodiment of the present application has the following advantages:
[0169] Unified protocol and flexible configuration: The solution proposed in this application adopts the DOIP+UDS protocol to make the remote diagnosis communication protocol between the car and the cloud consistent. This brings about the uniformity of communication and eliminates the problems of protocol conversion and adaptation. At the same time, the cloud can flexibly configure and control the remote diagnosis process without the need for cumbersome software updates on the vehicle side, greatly improving the flexibility of configuration and the convenience of operation.
[0170] Remote diagnosis performance optimization: The DOIP+UDS protocol is used to optimize the performance of remote diagnosis between the vehicle and the cloud. This method can transmit diagnostic data more efficiently, accelerate the fault diagnosis process, shorten the diagnostic response time, and thus improve the overall diagnostic efficiency.
[0171] Reduce vehicle-side complexity: By controlling the configuration and processing content of remote diagnosis in the cloud, the processing logic on the vehicle side is relatively simplified, and only data transmission and operation procedures need to be followed according to the protocol. This helps reduce the complexity and maintenance costs of the vehicle side.
[0172] Improved remote problem-solving capabilities: Due to the use of a unified communication protocol, remote diagnosis can more comprehensively analyze vehicle data and achieve more in-depth problem diagnosis. The cloud can obtain more vehicle information and provide technicians with more accurate problem location and solutions.
[0173] Improve diagnostic efficiency: The diagnostic arrangement algorithm based on DTC fault level and historical DID historical fault trend can effectively improve the efficiency of vehicle diagnosis.
[0174] Application of DOIP+UDS communication protocol: Apply DOIP+UDS communication protocol to remote diagnosis between vehicle and cloud. The application of this protocol makes the communication between vehicle and cloud more unified, avoids the problems of protocol conversion and adaptation, and improves communication efficiency.
[0175] Cloud-controlled remote diagnosis process: Flexible control of the remote diagnosis process is achieved in the cloud. The cloud can dynamically configure diagnostic tasks and processes without relying on software updates on the vehicle side. This control method greatly improves the flexibility and operability of diagnosis.
[0176] Remote diagnosis task management mechanism: The remote diagnosis task management mechanism can realize dynamic management and allocation of diagnosis tasks in the cloud to ensure the accurate execution of diagnosis tasks.
[0177] Device connection and data transmission mechanism: This solution also involves the design of device connection and data transmission mechanism. The vehicle establishes a connection with the cloud through TBOX, and the cloud implements the issuance of diagnostic instructions and result responses to the vehicle through components such as the device center and adapter.
[0178] Remote diagnosis process optimization: This application also involves the optimization of the remote diagnosis process, including opening and closing remote diagnosis, establishing links and routing activation, requests and responses, etc. These optimization measures ensure the efficiency and stability of the entire remote diagnosis process.
[0179] Remote diagnostic task scheduling algorithm: For remote vehicle diagnosis, maintenance personnel pay more attention to diagnoses with higher priority or more problems. For the above scenarios, in order to optimize the execution order of diagnostic tasks and improve the efficiency of diagnosis, this application proposes a diagnostic scheduling algorithm based on DTC fault levels and historical DID historical fault trends.
[0180] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0181] Figure 2 Schematic diagram of the structure of the vehicle networking remote diagnosis device provided in the embodiment of the present application. Figure 2 As shown, the vehicle networking remote diagnosis device includes:
[0182] The request module 201 is configured to select a remote diagnosis task using the cloud management interface, and send a remote diagnosis task request to the vehicle end, and determine whether to start the remote diagnosis task according to the feedback of the vehicle end to the remote diagnosis task request;
[0183] The link module 202 is configured to send a link request to the cloud using the vehicle communication module when the vehicle receives the instruction to start the remote diagnosis task, and send a response message of successful link to the remote diagnosis forwarding module using the cloud;
[0184] The activation module 203 is configured as a remote diagnosis forwarding module to initiate a link activation request according to the received response message, update the vehicle remote diagnosis task status to activation success, and trigger the remote diagnosis request;
[0185] The parsing module 204 is configured to send the remote diagnosis request to the remote diagnosis protocol parsing module through the message middleware, parse the remote diagnosis request using the remote diagnosis protocol parsing module, generate a remote diagnosis task instruction, and send the remote diagnosis task instruction to the cloud communication component;
[0186] The diagnostic module 205 is configured to use the cloud communication component to send remote diagnostic task instructions to the vehicle side through the established long link, receive the response content returned by the vehicle side, and use the remote diagnostic protocol parsing module to parse the response content to obtain the remote diagnostic result.
[0187] In some embodiments, Figure 2 The request module 201 selects a remote diagnostic task in the web management interface of the cloud, determines the type and vehicle series corresponding to the remote diagnostic task, and uses the background management service to call the device center request interface to send a remote diagnostic task request to the vehicle side; wherein the diagnostic interface corresponding to the remote diagnostic task includes reading the whole vehicle fault code, reading the whole vehicle data, reading the ECU fault code and / or reading the ECU data stream.
[0188] In some embodiments, Figure 2 The request module 201 uses the background management service to send a command to call the remote diagnosis task request through the device center request interface, and starts the timeout. If no feedback is received from the vehicle end within the preset time, the command to call the remote diagnosis task request is sent again. When the number of times that no feedback is received from the vehicle end exceeds the preset number, the remote diagnosis record status is updated to timeout and a prompt is sent; using the message middleware, the vehicle terminal gateway and the remote diagnosis protocol parsing module used for remote diagnosis protocol parsing and forwarding are communicated in two directions. The vehicle terminal gateway sends the MQTT remote diagnosis task start instruction based on EMQ, and sets a predetermined timeout time to monitor the response status of the vehicle end.
[0189] In some embodiments, Figure 2 The link module 202 uses the on-board communication module to initiate a TCP-based link request to the cloud communication component port of the cloud. The on-board communication module sends the vehicle declaration information to the cloud in UDP mode, wherein the vehicle declaration information includes the vehicle identification number; after the TCP link is established, the cloud communication component requests the vehicle information through TCP, and the on-board communication module returns the requested vehicle information to the cloud communication component through TCP; after the cloud communication component receives the vehicle information, the response message of the successful link is sent to the remote diagnosis forwarding module through the message middleware, and when the remote diagnosis forwarding module receives the response message, it calls the link success request of the background management service, and after synchronously receiving the response of the background management service, it initiates a link activation request.
[0190] In some embodiments, Figure 2The activation module 203 uses the background management service to update the vehicle's diagnostic status to route activation, and uses the message middleware to send the link activation request to the remote diagnosis forwarding module; the remote diagnosis forwarding module uses the message middleware to initiate the link activation request, and uses TCP based on the DOIP protocol format in the cloud communication component to make a route activation request, and synchronously obtains the route activation response; the route activation response is transmitted to the remote diagnosis forwarding module, so that the remote diagnosis forwarding module initiates a link establishment response request to the background management service.
[0191] In some embodiments, Figure 2 The parsing module 204 triggers the parsing operation of the remote diagnosis request when the remote diagnosis task status of the vehicle is successfully activated, wherein the remote diagnosis request includes the diagnosis instruction and related file information; the cloud communication component uses the established long link to encapsulate the remote diagnosis task instruction into a UDS instruction according to the DOIP protocol and sends it to the cloud communication component; the cloud communication component sends the UDS instruction to the vehicle side, so that the vehicle side returns a response synchronously after receiving the UDS instruction, and sends the response content.
[0192] In some embodiments, Figure 2 The diagnostic module 205 is also used for the cloud communication component to receive the response content returned by the vehicle end, and then pass the response content to the remote diagnosis protocol parsing module through the message middleware. The remote diagnosis protocol parsing module parses the received response content and calls the interface of the background management service for processing; in the background management service, the remote diagnosis task status is updated according to the response result obtained by the analysis. When the response result is successful, the remote diagnosis task status is updated to success, and when the response result is failed, the remote diagnosis task status is updated to failure.
[0193] In some embodiments, Figure 2 The diagnostic module 205 is also used to configure a remote diagnostic task for the remote fault diagnosis corresponding to each vehicle controller, and to form all remote diagnostic tasks into a vehicle remote diagnostic task set; to assign a priority to each remote diagnostic task, and the priority is used to characterize the importance of the remote diagnostic task, and the priority is obtained by calculating the fault level, the average number of historical faults, and the total number of historical fault readings; to use a predefined objective function as the optimization target for task scheduling of the vehicle remote diagnostic task set, and to optimize the objective function so as to execute the remote diagnostic task according to the priority and minimize the total execution time; wherein the total number of historical fault readings is obtained by analyzing the fault warning message reported by the vehicle end, and the remote diagnostic task includes a fault coding diagnostic task and a fault data diagnostic task, and the fault level includes the fault level of the fault code.
[0194] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0195] Figure 3 Schematic diagram of the structure of the electronic device 3 provided in the embodiment of the present application. Figure 3 As shown, the electronic device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301. When the processor 301 executes the computer program 303, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 301 executes the computer program 303, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0196] Exemplarily, the computer program 303 may be divided into one or more modules / units, which are stored in the memory 302 and executed by the processor 301 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 303 in the electronic device 3.
[0197] The electronic device 3 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of the electronic device 3 and does not constitute a limitation of the electronic device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0198] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0199] The memory 302 may be an internal storage unit of the electronic device 3, for example, a hard disk or memory of the electronic device 3. The memory 302 may also be an external storage device of the electronic device 3, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 3. Further, the memory 302 may also include both an internal storage unit and an external storage device of the electronic device 3. The memory 302 is used to store computer programs and other programs and data required by the electronic device. The memory 302 may also be used to temporarily store data that has been output or is to be output.
[0200] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0201] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0202] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0203] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0204] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0205] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0206] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0207] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A remote diagnosis method for an Internet of Vehicles, characterized in that: include: Select a remote diagnosis task using the cloud management interface, and send a remote diagnosis task request to the vehicle end, and determine whether to start the remote diagnosis task based on the vehicle end's feedback on the remote diagnosis task request; When the vehicle receives the command to start the remote diagnosis task, it uses the vehicle communication module to send a connection request to the cloud, and uses the cloud to send a response message of successful connection to the remote diagnosis forwarding module; The remote diagnosis forwarding module initiates a link activation request according to the received response message, updates the vehicle remote diagnosis task status to activation success, and triggers the remote diagnosis request; Sending the remote diagnosis request to the remote diagnosis protocol parsing module through the message middleware, parsing the remote diagnosis request using the remote diagnosis protocol parsing module, generating a remote diagnosis task instruction, and sending the remote diagnosis task instruction to the cloud communication component; Using the cloud communication component to send the remote diagnosis task instruction to the vehicle end through the established long link, and receiving the response content returned by the vehicle end, using the remote diagnosis protocol parsing module to parse the response content, and calling the interface of the background management service for processing to obtain the remote diagnosis result; These include: A remote diagnosis task is configured for the remote fault diagnosis corresponding to each vehicle controller, and all remote diagnosis tasks are grouped into a vehicle remote diagnosis task set; Assigning a priority to each remote diagnosis task, wherein the priority is used to characterize the importance of the remote diagnosis task, and the priority is calculated based on the fault level, the average number of historical faults, and the total number of historical fault readings; Using a predefined objective function as an optimization objective for scheduling the entire vehicle remote diagnosis task set, optimizing the objective function so as to execute the remote diagnosis task according to the priority and minimize the total execution time; The total number of historical fault readings is obtained by analyzing the fault warning messages reported by the vehicle side, the remote diagnosis task includes a fault coding diagnosis task and a fault data diagnosis task, and the fault level includes the fault level of the fault code.
2. The method according to claim 1, characterized in that The method of selecting a remote diagnosis task using the cloud management interface and sending a remote diagnosis task request to the vehicle side includes: Selecting a remote diagnosis task in the web management interface of the cloud, determining the type and vehicle series corresponding to the remote diagnosis task, and using the background management service to call the device center request interface to send the remote diagnosis task request to the vehicle end; Among them, the diagnostic interface corresponding to the remote diagnostic task includes reading the whole vehicle fault code, reading the whole vehicle data, reading the ECU fault code and / or reading the ECU data stream.
3. The method according to claim 2, characterized in that The using of the background management service to call the device center request interface so as to send the remote diagnosis task request to the vehicle end includes: Using the background management service to send a command to call the remote diagnosis task request through the device center request interface, start a timeout, and if no feedback is received from the vehicle end within a preset time, send the command to call the remote diagnosis task request again. When the number of times that no feedback is received from the vehicle end exceeds a preset number, update the remote diagnosis record status to timeout and send a prompt; By using the message middleware, the vehicle terminal gateway and the remote diagnosis protocol parsing module used for remote diagnosis protocol parsing and forwarding are communicated bidirectionally. The vehicle terminal gateway sends the start instruction of the MQTT remote diagnosis task based on EMQ, and sets a predetermined timeout time to monitor the response status of the vehicle end.
4. The method according to claim 1, characterized in that: The method of using the vehicle-mounted communication module to send a link request to the cloud, and using the cloud to send a link success response message to the remote diagnosis forwarding module includes: Initiating a TCP-based link request to a cloud communication component port of the cloud using the vehicle communication module, wherein the vehicle communication module sends vehicle declaration information to the cloud in UDP, wherein the vehicle declaration information includes a vehicle identification number; After the TCP link is established, the cloud communication component requests vehicle information via TCP, and the vehicle communication module returns the requested vehicle information to the cloud communication component via TCP; After the cloud communication component receives the vehicle information, a successful link response message is sent to the remote diagnosis forwarding module through the message middleware. When the remote diagnosis forwarding module receives the response message, it calls the successful link request of the background management service, and initiates a link activation request after synchronously receiving the response of the background management service.
5. The method according to claim 4, characterized in that The remote diagnosis forwarding module initiates a link activation request according to the received response message, updates the vehicle remote diagnosis task status to activation success, and triggers the remote diagnosis request, including: Using the background management service to update the vehicle's diagnostic status to routing activation, and using the message middleware to send the link activation request to the remote diagnosis forwarding module; The remote diagnosis forwarding module uses the message middleware to initiate a link activation request, and uses TCP based on the DOIP protocol format to make a route activation request in the cloud communication component, and synchronously obtains a route activation response; The routing activation response is transmitted to the remote diagnosis forwarding module, so that the remote diagnosis forwarding module initiates a link establishment response request to the background management service.
6. The method according to claim 1, characterized in that The utilizing the remote diagnosis protocol parsing module to parse the remote diagnosis request, generate a remote diagnosis task instruction, and send the remote diagnosis task instruction to the cloud communication component includes: When the remote diagnosis task status of the vehicle is successfully activated, triggering a parsing operation of the remote diagnosis request, wherein the remote diagnosis request includes a diagnosis instruction and related file information; The cloud communication component utilizes the established long link to encapsulate the remote diagnosis task instruction into a UDS instruction according to the DOIP protocol; The cloud communication component sends the UDS command to the vehicle end, so that the vehicle end returns a response synchronously after receiving the UDS command, and sends the response content.
7. The method according to claim 6, characterized in that The method further includes: using the cloud communication component to send the remote diagnosis task instruction to the vehicle end through the established long link, receiving the response content returned by the vehicle end, parsing the response content using the remote diagnosis protocol parsing module, and calling the interface of the background management service for processing to obtain the remote diagnosis result; In the background management service, the remote diagnosis task status is updated according to the response result obtained by parsing. When the response result is successful, the remote diagnosis task status is updated to success; when the response result is failed, the remote diagnosis task status is updated to failure.
8. A remote diagnosis device for an Internet of Vehicles, characterized in that: include: The request module is configured to select a remote diagnosis task using a cloud management interface, send a remote diagnosis task request to the vehicle end, and determine whether to start the remote diagnosis task according to the feedback of the vehicle end to the remote diagnosis task request; The link module is configured to send a link request to the cloud using the vehicle communication module when the vehicle receives an instruction to start the remote diagnosis task, and send a response message of successful link to the remote diagnosis forwarding module using the cloud; An activation module, configured as a remote diagnosis forwarding module, initiates a link activation request according to a received response message, updates a vehicle remote diagnosis task status to activation success, and triggers a remote diagnosis request; A parsing module is configured to send the remote diagnosis request to a remote diagnosis protocol parsing module through a message middleware, parse the remote diagnosis request using the remote diagnosis protocol parsing module, generate a remote diagnosis task instruction, and send the remote diagnosis task instruction to a cloud communication component; The diagnosis module is configured to use the cloud communication component to send the remote diagnosis task instruction to the vehicle end through the established long link, receive the response content returned by the vehicle end, use the remote diagnosis protocol parsing module to parse the response content, and call the interface of the background management service for processing to obtain the remote diagnosis result; The method includes: configuring a remote diagnosis task for the remote fault diagnosis corresponding to each vehicle controller, and forming all remote diagnosis tasks into a vehicle remote diagnosis task set; assigning a priority to each remote diagnosis task, wherein the priority is used to characterize the importance of the remote diagnosis task, and the priority is calculated by the fault level, the average number of historical faults, and the total number of historical fault readings; using a predefined objective function as the optimization target for task scheduling of the vehicle remote diagnosis task set, and optimizing the objective function so as to execute the remote diagnosis task according to the priority and minimize the total execution time; wherein the total number of historical fault readings is obtained by analyzing the fault warning message reported by the vehicle end, and the remote diagnosis task includes a fault coding diagnosis task and a fault data diagnosis task, and the fault level includes the fault level of the fault code.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
