CN118244735A - Data loss node positioning method, device, equipment and storage medium - Google Patents
Data loss node positioning method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN118244735A CN118244735A CN202410266007.1A CN202410266007A CN118244735A CN 118244735 A CN118244735 A CN 118244735A CN 202410266007 A CN202410266007 A CN 202410266007A CN 118244735 A CN118244735 A CN 118244735A
- Authority
- CN
- China
- Prior art keywords
- node
- vehicle
- diagnosis
- data
- query
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 150
- 238000003745 diagnosis Methods 0.000 claims abstract description 373
- 230000006854 communication Effects 0.000 claims abstract description 332
- 238000004891 communication Methods 0.000 claims abstract description 331
- 230000008569 process Effects 0.000 claims abstract description 77
- 230000005540 biological transmission Effects 0.000 claims abstract description 48
- 238000005070 sampling Methods 0.000 description 13
- 230000003993 interaction Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 238000005265 energy consumption Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000011835 investigation Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013024 troubleshooting Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000003321 amplification Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses a data loss node positioning method, a device, equipment and a storage medium, wherein the method comprises the following steps: sending a communication record mode starting instruction to the vehicle; after the vehicle starts the communication record mode of each node of the bus of the vehicle according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle to carry out fault diagnosis on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, and the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded to form the communication record of each node in the fault diagnosis process; and sending a query instruction to the vehicle, querying the communication records recorded by each node in the fault diagnosis process, comparing and analyzing the communication records, and positioning the node with the lost data. Based on the scheme, the communication record mode is newly added on each node of the vehicle bus, so that when data loss occurs, the communication information of each node of the vehicle bus is recorded, and the node with the data loss is rapidly positioned.
Description
Technical Field
The present application relates to the field of vehicle diagnosis technologies, and in particular, to a method, an apparatus, a device, and a storage medium for locating a data loss node.
Background
When the abnormal condition occurs to the vehicle, the vehicle needs to be safely diagnosed for timely removing the fault in order to ensure the safety. The vehicle diagnosis typically implements various diagnostic functions by interaction of relevant diagnostic data with the vehicle ECU (Electronic control unit ) via the onboard diagnostic device.
The sharing and exchange of data inside the vehicle is achieved based on an automotive bus technology that connects the various ECUs inside the vehicle. The existing bus technology commonly adopted on automobiles comprises a local interconnection protocol LIN and a controller area network CAN, and the developing bus technology comprises a high-speed fault-tolerant network protocol FlexRay, a media guidance system transmission network MOST for automobile multimedia and navigation, and wireless network technologies such as Bluetooth, wireless local area network and the like which are compatible with computer networks.
In the process of diagnosing a vehicle, the vehicle is generally connected to a vehicle bus through a VCI (Vehicle Communication Interface, on-board communication interface) based on KWP (Keyword Protocol) and UDS (Unified diagnosticservices, unified diagnostic standard), and then the vehicle bus technology is used to interact diagnostic data with a vehicle ECU.
However, when the vehicle diagnosis is actually performed, the diagnosis data needs to be forwarded through a plurality of nodes of the vehicle bus in the transmission process, electromagnetic interference, circuit faults, electronic element damage and the like may occur, and further the failure of the diagnosis function execution caused by the loss of the diagnosis data occurs, so that the automobile fault cannot be further judged.
In order to further determine a vehicle failure, it is necessary to locate nodes where diagnostic data is lost.
However, the existing data loss node positioning method needs to disassemble, and the sampling equipment is connected before and after each node so as to confirm the data receiving and transmitting conditions of each node, so that the problems of high workload, high cost and low diagnosis efficiency exist.
Disclosure of Invention
The application mainly aims to provide a data loss node positioning method, a device, terminal equipment and a storage medium, and aims to solve the technical problems of high workload, high cost and low diagnosis efficiency of data loss node positioning in the prior art.
In order to achieve the above object, the present application provides a data loss node positioning method, which is applied to a diagnostic apparatus, comprising:
sending a communication record mode starting instruction to the vehicle;
After the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed;
sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle;
and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Optionally, before the step of sending the communication record mode starting instruction to the vehicle, the method further includes:
Sending a fault diagnosis instruction to a vehicle, and performing fault diagnosis on the vehicle to obtain a fault diagnosis execution result;
based on the execution result of the fault diagnosis, confirming whether the communication record mode of each node of the vehicle bus is started, and executing the steps when confirming that the communication record mode of each node of the vehicle bus is started: and sending a communication record mode starting instruction to the vehicle.
Optionally, the step of sending a query instruction to the vehicle to query the communication record recorded by each node in the fault diagnosis process to obtain the query result returned by the vehicle includes:
According to a preset first query mode or a second query mode, a query instruction is sent to the vehicle, communication records of all node records in the fault diagnosis process are queried, and a query result returned by the vehicle is obtained, wherein the first query mode refers to the communication records of diagnosis data corresponding to all node specified identifiers; the second query mode refers to the communication record of the diagnosis data of the designated number of each node.
Optionally, after the step of comparing and analyzing the communication record based on the query result and locating the node obtaining the data loss, the method further includes:
And sending a communication record mode closing instruction to the vehicle.
In order to achieve the above object, the present application further provides a data loss node positioning method, which is applied to a vehicle, and includes:
Receiving a communication record mode starting instruction sent by diagnostic equipment, and starting a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction;
Receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process;
and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
Optionally, before the step of receiving the communication record mode starting instruction sent by the diagnostic device and starting the communication record mode of each node of the vehicle bus according to the communication record mode starting instruction, the method further includes:
And receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identification through a bus according to the fault diagnosis instruction, and returning a fault diagnosis execution result to the diagnosis equipment.
Optionally, the step of receiving a query instruction sent by the diagnostic device, querying a communication record of each node, and returning a query result to the diagnostic device includes:
receiving a query instruction sent by diagnostic equipment, and analyzing and confirming a corresponding query mode of the query instruction, wherein the query mode is a first query mode or a second query mode;
When the query mode is a first query mode, querying a record table of each node for communication records of diagnostic data corresponding to the designated identifier;
And when the query mode is a second query mode, querying communication records of the diagnostic data with the designated number in the record table of each node.
Optionally, after the step of receiving the query instruction sent by the diagnostic device, querying the communication record of each node, and returning the query result to the diagnostic device, the method further includes:
And receiving a communication record mode closing instruction sent by the diagnostic equipment, closing the communication record mode of each node of the bus according to the communication record mode closing instruction, stopping recording the communication information of each node, and clearing the past communication record.
In addition, to achieve the above object, an embodiment of the present application also proposes a diagnostic apparatus including a memory, a processor, and a data loss node locating program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the data loss node locating method as described above.
The embodiment of the application also provides a vehicle, which comprises a memory, a processor and a data loss node positioning program stored in the memory and capable of running on the processor, wherein the data loss node positioning program realizes the steps of the data loss node positioning method when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a data loss node positioning program, and the data loss node positioning program realizes the steps of the data loss node positioning method when being executed by a processor.
The embodiment of the application provides a data loss node positioning method, a device, terminal equipment and a storage medium, which are implemented by sending a communication recording mode starting instruction to a vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss. Based on the scheme, when the diagnostic data is lost, the communication record function of each node of the vehicle bus is started to record the sending and receiving of the diagnostic data, so that the vehicle can be prevented from being disassembled, a plurality of sampling devices are prevented from being used for sampling, and the diagnostic operation of the data loss node is simpler and more convenient. And then, the diagnosis data receiving and transmitting records of all the nodes are searched and compared, so that the diagnosis data loss nodes are rapidly positioned for fault investigation, the workload is reduced, and the positioning efficiency of the automobile data loss nodes is effectively improved.
Drawings
FIG. 1 is a schematic diagram of a hardware architecture of a diagnostic device according to an embodiment of the method for locating a data loss node of the present application;
FIG. 2 is a schematic diagram of a hardware structure of a vehicle according to an embodiment of the method for locating a data loss node of the present application;
FIG. 3 is a flowchart of a first embodiment of a method for locating a data loss node according to the present application;
FIG. 4 is a flowchart of a second embodiment of a method for locating a data loss node according to the present application;
FIG. 5 is a flowchart of a third embodiment of a data loss node positioning method according to the present application;
FIG. 6 is a flowchart of a fourth embodiment of a data loss node positioning method according to the present application;
FIG. 7 is a flowchart of a fifth embodiment of a data loss node positioning method according to the present application;
Fig. 8 is a schematic diagram of a refinement flow of step S730 in an embodiment of the data loss node positioning method according to the present application;
FIG. 9 is a flowchart of a seventh embodiment of a data loss node positioning method according to the present application;
fig. 10 is a schematic functional module diagram of a first embodiment related to an embodiment of a data loss node positioning method according to the present application;
fig. 11 is a schematic functional block diagram of a fifth embodiment related to an embodiment of a data loss node positioning method according to the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The main solutions of the embodiments of the present application are: sending a communication record mode starting instruction to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Technical terms related to the embodiment of the application:
ECU (Electronic control unit ): also referred to as "cycle computer", "vehicle computer", etc. The ECU is a microcomputer controller dedicated to the vehicle and can be understood as the brain of the vehicle. The ECU mainly comprises a microprocessor (CPU), a memory (ROM, RAM), an input/output interface (I/O), an analog-to-digital converter (A/D), and large-scale integrated circuits such as shaping and driving. The ECU converts the input signal into a digital form, performs comparison processing according to stored reference data, calculates an output value, and then controls a plurality of adjusting servo elements such as a relay, a switch and the like through power amplification of the output signal.
In order to solve the problem of complicated operation, large workload, high cost and low positioning efficiency, the existing method for positioning the nodes with data loss is used for positioning the nodes with data loss diagnosis, and after the vehicle is disassembled, the sampling equipment is connected to the front and rear positions of a plurality of nodes of the vehicle so as to confirm the data receiving and transmitting conditions of the nodes.
The application provides a solution, by controlling the communication recording mode of each node of the vehicle bus, when data loss occurs, the communication information of each node of the vehicle bus can be recorded and analyzed in real time, the node for diagnosing the data loss can be further positioned rapidly, the vehicle can be prevented from being disassembled, and a plurality of sampling devices are prevented from being used for sampling, so that the diagnosis operation of the data loss node is simpler and more convenient. And the efficiency of positioning the data loss nodes of the automobile is effectively improved while the workload is reduced.
Specifically, referring to fig. 1, fig. 1 is a schematic hardware structure of a diagnostic device according to an embodiment of the data loss node positioning method of the present application.
The device of the embodiment of the application can be a diagnosis device.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a data loss node location program may be included in a memory 1005, which is a type of computer storage medium.
In the device structure shown in fig. 1, the network interface 1004 is mainly used for connecting to a network server, and is in data communication with the network server; the user interface 1003 is mainly used for interacting with a user and receiving an instruction input by the user; the processor 1001 and the memory 1005 may be provided in a diagnostic apparatus, which invokes a data loss node locating program stored in the memory 1005 through the processor 1001 and performs the data loss node locating method provided by the embodiment of the present application.
Specifically, the data loss node location program in the memory 1005, when executed by the processor, performs the steps of:
sending a communication record mode starting instruction to the vehicle;
After the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed;
sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle;
and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Further, the data loss node location program in the memory 1005, when executed by the processor, further performs the steps of:
Sending a fault diagnosis instruction to a vehicle, and performing fault diagnosis on the vehicle to obtain a fault diagnosis execution result;
based on the execution result of the fault diagnosis, confirming whether the communication record mode of each node of the vehicle bus is started, and executing the steps when confirming that the communication record mode of each node of the vehicle bus is started: and sending a communication record mode starting instruction to the vehicle.
Further, the data loss node location program in the memory 1005, when executed by the processor, further performs the steps of:
According to a preset first query mode or a second query mode, a query instruction is sent to the vehicle, communication records of all node records in the fault diagnosis process are queried, and a query result returned by the vehicle is obtained, wherein the first query mode refers to the communication records of diagnosis data corresponding to all node specified identifiers; the second query mode refers to the communication record of the diagnosis data of the designated number of each node.
Further, the data loss node location program when executed by the processor further performs the following operations:
And sending a communication record mode closing instruction to the vehicle.
According to the scheme, the communication recording mode starting instruction is sent to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Through the communication record mode of each node of control vehicle bus, realize when taking place the data loss, can carry out real-time recording and analysis to the communication information of each node of vehicle bus, further carry out quick location to the node that diagnostic data lost, can avoid disassembling the vehicle, also avoid using a plurality of data acquisition equipment to adopt the number for the diagnostic operation of data loss node is simple and easy more convenient. And the efficiency of positioning the data loss nodes of the automobile is effectively improved while the workload is reduced.
Specifically, referring to fig. 2, fig. 2 is a schematic diagram of a hardware structure of a vehicle according to an embodiment of the data loss node positioning method of the present application.
The device of the embodiment of the application can be a vehicle.
As shown in fig. 2, the apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 2 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 2, an operating system, a network communication module, a user interface module, and a data loss node location program may be included in a memory 1005, which is a type of computer storage medium.
In the device structure shown in fig. 2, the network interface 1004 is mainly used for connecting to a network server, and is in data communication with the network server; the user interface 1003 is mainly used for interacting with a user and receiving an instruction input by the user; the processor 1001 and the memory 1005 may be disposed in a vehicle, and the vehicle invokes a data loss node positioning program stored in the memory 1005 through the processor 1001 and executes the data loss node positioning method provided by the embodiment of the present application.
Specifically, the data loss node location program in the memory 1005, when executed by the processor, performs the steps of:
Receiving a communication record mode starting instruction sent by diagnostic equipment, and starting a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction;
Receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process;
and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
Further, the data loss node location program in the memory 1005, when executed by the processor, further performs the steps of:
And receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identification through a bus according to the fault diagnosis instruction, and returning a fault diagnosis execution result to the diagnosis equipment.
Further, the data loss node location program in the memory 1005, when executed by the processor, further performs the steps of:
receiving a query instruction sent by diagnostic equipment, and analyzing and confirming a corresponding query mode of the query instruction, wherein the query mode is a first query mode or a second query mode;
When the query mode is a first query mode, querying a record table of each node for communication records of diagnostic data corresponding to the designated identifier;
And when the query mode is a second query mode, querying communication records of the diagnostic data with the designated number in the record table of each node.
Further, the data loss node location program in the memory 1005, when executed by the processor, further performs the steps of:
And receiving a communication record mode closing instruction sent by the diagnostic equipment, closing the communication record mode of each node of the bus according to the communication record mode closing instruction, stopping recording the communication information of each node, and clearing the past communication record.
According to the scheme, the communication recording mode starting instruction sent by the diagnosis equipment is received, and the communication recording mode of each node of the vehicle bus is started according to the communication recording mode starting instruction; receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process; and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
Through the communication record mode of each node of control vehicle bus, realize when taking place the data loss, can carry out real-time recording and analysis to the communication information of each node of vehicle bus, further carry out quick location to the node that diagnostic data lost, can avoid disassembling the vehicle, also avoid using a plurality of data acquisition equipment to adopt the number for the diagnostic operation of data loss node is simple and easy more convenient. And the efficiency of positioning the data loss nodes of the automobile is effectively improved while the workload is reduced.
The method embodiment of the application is proposed based on the above-mentioned terminal equipment architecture but not limited to the above-mentioned architecture.
Referring to fig. 3, fig. 3 is a flowchart of a first embodiment of a data loss node positioning method according to the present application. The data loss node positioning method is applied to diagnostic equipment, and comprises the following steps:
Step S310: sending a communication record mode starting instruction to the vehicle;
Step S320: after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed;
step S330: sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle;
step S340: the method and the device mainly realize detection of price forms, particularly price forms of financial data, and improve positioning efficiency and identification accuracy of data loss nodes.
The steps of this embodiment are explained in detail as follows:
specifically, in the vehicle diagnosis process, the diagnosis apparatus needs to perform data interaction with the vehicle ECU to perform troubleshooting, and thus ensuring reliability of data communication is an important measure to ensure that vehicle diagnosis is performed smoothly.
When the vehicle diagnosis is actually carried out, diagnosis data need to be forwarded through a plurality of nodes of a vehicle bus in the transmission process, electromagnetic interference, circuit faults, electronic element damage and the like can possibly occur, and further, the failure of the diagnosis function execution caused by the loss of the diagnosis data occurs, so that the automobile faults cannot be further judged.
In order to further determine a vehicle failure, it is necessary to locate nodes where diagnostic data is lost.
However, the existing data loss node positioning method needs to disassemble, and the sampling equipment is connected before and after each node so as to confirm the data receiving and transmitting conditions of each node, so that the problems of high workload, high cost and low diagnosis efficiency exist.
Therefore, the application designs a data loss node positioning method aiming at the problems of the prior method. The data loss node positioning method specifically comprises the following steps:
Step S310: sending a communication record mode starting instruction to the vehicle;
It will be appreciated that in the event of a diagnostic data loss in the data interaction between the diagnostic device and the vehicle, it is necessary to troubleshoot the node within the vehicle where the diagnostic data is lost, for troubleshooting and subsequent repair of the fault. The loss of the diagnostic data refers to the situation that the diagnostic equipment cannot receive the diagnostic data or the received diagnostic data is incomplete due to line faults, electromagnetic interference, limited data processing capacity of nodes and the like in the communication process of the diagnostic equipment and the vehicle.
Firstly, the diagnostic equipment needs to send a communication record starting instruction to the vehicle, so that each node of the bus of the vehicle starts a communication record mode, and the data transmission record in the fault diagnosis process is conveniently inquired later, so that the node with the lost data can be quickly positioned.
Step S320: after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed;
specifically, after the communication record mode of each node of the vehicle is started, in order to obtain the data interaction record of the vehicle ECU in the fault diagnosis process, a fault diagnosis instruction needs to be sent to the vehicle to perform fault diagnosis on the vehicle.
During fault diagnosis, the vehicle receives the instruction and generates a corresponding identifier, distributes the instruction and the corresponding identifier through a bus, and distributes the result obtained by executing the instruction and the corresponding identifier back to the diagnosis equipment through the bus again, so that diagnosis data and diagnosis data identification are distributed through the bus. The diagnosis data comprise fault diagnosis instructions sent to the vehicle by the diagnosis equipment and results obtained by instruction execution. The identifier refers to an identifier for distinguishing diagnostic data of each frame, and the amount of diagnostic data may be large or small during the interaction of the diagnostic device with the vehicle ECU, and if the communication record is recording the diagnostic data, a large amount of repeated invalid data may be generated, and excessive storage resources may be occupied, so that a unique identifier may be defined for the diagnostic data interacted with each frame, and it is required to transmit together with the identifier when transmitting the diagnostic data. The diagnostic data identification refers to an identifier to which the diagnostic data corresponds.
And simultaneously, the vehicle records the diagnosis data and the transmission information of the diagnosis data identifier at each node of the bus, namely records the communication information of each node of the bus for receiving and transmitting the diagnosis data and the diagnosis data identifier, and forms the communication record of each node in the fault diagnosis process. Wherein, the transmission information refers to the identification of the diagnostic data, the type of the diagnostic data and the time of receiving and transmitting. Because the diagnostic data identification can distinguish each frame of diagnostic data, when the diagnostic data transmission information of the node is recorded each time, the complete diagnostic data is not required to be recorded, and only the diagnostic data identification transmitted each time can be recorded, thereby realizing the communication recording function and effectively utilizing resources.
Step S330: sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle;
It can be understood that, in order to obtain the communication record in the vehicle obtained in step S320, the diagnostic device needs to send a query command to the vehicle through the vehicle-mounted communication interface, query the communication record meeting the requirement of the query command of each node on the vehicle bus in the fault diagnosis process, obtain the query result, and transmit the query result back to the diagnostic device. The query instruction requirement means that the query instruction can require searching communication records on each node meeting preset conditions, and query results are generated based on the query instruction, and the query results are different due to different query instruction requirements. For example, the query command may be a request to query a communication record of a specified data identifier, a communication record of a specified time period, or a communication record of a specified data type, where the query result corresponds to a return of a communication record of a specified data identifier, a return of a communication record of a specified time period, a return of a communication record of a specified data type, or a return of no record.
Step S340: and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Specifically, based on the communication record query result obtained in step S330, comparing the communication records of each node, that is, the transmission condition of the diagnostic data, it can be found that the diagnostic data has only a receiving record at a certain node, but no transmitting record or no receiving and transmitting record of the diagnostic data at a certain node, and a receiving and transmitting record at a previous node, so as to locate that the certain node has a data loss phenomenon.
According to the scheme, the communication recording mode starting instruction is sent to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Through the communication record mode of each node of control vehicle bus, realize when taking place the data loss, can carry out real-time recording and analysis to the communication information of each node of vehicle bus, further carry out quick location to the node that diagnostic data lost, can avoid disassembling the vehicle, also avoid using a plurality of data acquisition equipment to adopt the number for the diagnostic operation of data loss node is simple and easy more convenient. And the efficiency of positioning the data loss nodes of the automobile is effectively improved while the workload is reduced.
Referring to fig. 4, fig. 4 is a flowchart of a second embodiment of the data loss node positioning method according to the present application. Based on the embodiment shown in fig. 3, in this embodiment, step S310 is as follows: before sending the communication record mode starting instruction to the vehicle, the method further comprises the following steps:
Step 410: sending a fault diagnosis instruction to a vehicle, and performing fault diagnosis on the vehicle to obtain a fault diagnosis execution result;
Step 420: based on the execution result of the fault diagnosis, confirming whether the communication record mode of each node of the vehicle bus is started, and executing the steps when confirming that the communication record mode of each node of the vehicle bus is started: and sending a communication record mode starting instruction to the vehicle.
It will be appreciated that in the embodiment shown in fig. 3, when it is determined that there is a data loss, a communication recording mode of each node of the vehicle bus is started, a diagnostic data transmission condition in the vehicle ECU is recorded, and the node that obtains the data loss is located based on the communication recording. Since the communication recording mode occupies the storage resources of the vehicle system and increases the power consumption, the communication recording mode is in a default off state when no data loss occurs.
Specifically, in the default off state of the communication recording mode, further judgment needs to be made on the condition of data loss in the interaction process of the diagnostic device and the vehicle ECU. And sending a fault diagnosis instruction to the vehicle through the diagnosis equipment, and performing fault diagnosis on the vehicle to obtain a fault diagnosis execution result returned by the vehicle.
Based on the execution result of the fault diagnosis, whether the fault diagnosis is executed normally or not is determined, and whether the communication record mode of each node of the vehicle bus is necessary to be started or not is further confirmed.
When the execution result of the fault diagnosis is that the execution is normal, in order to not occupy the system storage resource of the vehicle and keep the lowest energy consumption, unnecessary communication records are reduced, and at the moment, the communication record mode of each node of the vehicle bus is kept in a closed state; and when the execution result of the fault diagnosis is that the execution fails, it is determined that the data loss may occur in the process of transmitting the diagnosis data by the vehicle ECU. In order to quickly locate the node with the lost data and ensure the smooth progress of the vehicle fault diagnosis, the communication record mode of each node of the vehicle bus needs to be started. The execution result is the result of the vehicle executing according to the received fault diagnosis instruction.
For example, the diagnostic device may send instructions to read the fault code based on the diagnostic function of the OBD system, and from the fault code returned by the vehicle, it may be known what fault has occurred in particular in which part of the vehicle ECU. If no reply of the ECU is received within the maximum waiting time, the diagnosis data loss is possibly generated, the communication record mode of each node of the vehicle bus is confirmed to be started, and the steps are executed: communication record mode to each node of the bus; on the contrary, if the ECU receives the reply within the maximum waiting time, it means that no data loss occurs temporarily, and it is determined that the communication recording mode of each node of the vehicle bus does not need to be turned on, and it is only necessary to keep the communication recording mode of each node of the vehicle bus in the off state.
According to the scheme, the fault diagnosis is carried out on the vehicle by sending the fault diagnosis instruction to the vehicle, and the execution result of the fault diagnosis is obtained; based on the execution result of the fault diagnosis, confirming whether the communication record mode of each node of the vehicle bus is started, and executing the steps when confirming that the communication record mode of each node of the vehicle bus is started: sending a communication record mode starting instruction to the vehicle; sending a communication record mode starting instruction to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
By sending the fault diagnosis instruction to the vehicle in advance and controlling the communication record mode of each node of the vehicle bus based on the execution result of the fault diagnosis, the storage resource of the vehicle system can be saved, and the energy consumption of the vehicle can be reduced. Meanwhile, the quick positioning of the data loss node is realized through the communication record mode of each node of the vehicle bus, so that the cost can be effectively saved, and the positioning efficiency of the data loss node is improved.
Referring to fig. 5, fig. 5 is a flowchart of a third embodiment of a data loss node positioning method according to the present application. Based on the embodiment shown in fig. 3, in this embodiment, the step S330: sending a query instruction to the vehicle, querying communication records recorded by each node in the fault diagnosis process, and obtaining a query result returned by the vehicle comprises the following steps:
Step S3301: according to a preset first query mode or a second query mode, a query instruction is sent to the vehicle, communication records of all node records in the fault diagnosis process are queried, and a query result returned by the vehicle is obtained, wherein the first query mode refers to the communication records of diagnosis data corresponding to all node specified identifiers; the second query mode refers to the communication record of the diagnosis data of the designated number of each node.
Specifically, the communication record of each node of the vehicle bus includes data transmission time, data type, data identifier, and the like. And sending a query instruction to the vehicle through the diagnosis equipment, and inquiring and returning the designated communication record information by the vehicle according to the specific requirement of the query instruction. The diagnosis equipment can inquire the communication record of each node of the vehicle according to a first inquiry mode or a second inquiry mode, wherein the first inquiry mode refers to inquiring the communication record of diagnosis data corresponding to each node designated identifier; the second query mode refers to the communication record of the diagnosis data of the designated number of each node.
When the query mode is the first query mode, the diagnostic device needs to fill the identifier of the diagnostic data to be queried in the query instruction, send the query instruction to each node, query each node in each record table, and if the query result is found, reply the query result to the diagnostic device, for example, the receiving or sending time of the diagnostic data corresponding to the identifier. If no query is found, a reply is made to the diagnostic device that no record is made. The record table is formed by transmission information of diagnostic data recorded by each node after the communication record mode is started, and the record table comprises a plurality of communication records of the diagnostic data received and transmitted by the node.
When the query mode is the second query mode, the diagnostic device can set up the communication records of the designated number received or sent recently by each node in the query instruction, and each node of the vehicle can reply the records of the designated number received or sent recently to the diagnostic device after receiving the query instruction of the second query mode. For example, the diagnostic device needs to query the most recently received 100 communication records, and then the designated number of the communication records is 100, and the query command in the second query mode is filled with the received conditions, and after each node of the vehicle receives the query command, the information of the most recently received 100 diagnostic data transmissions of each node is returned. Meanwhile, the diagnosis equipment can also be filled in the query instruction as query conditions according to the information such as the diagnosis data type, the transmission time and the like received or sent by each node so as to adapt to different query requirements.
According to the scheme, the communication recording mode starting instruction is sent to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; according to a preset first query mode or a second query mode, a query instruction is sent to the vehicle, communication records of all node records in the fault diagnosis process are queried, and a query result returned by the vehicle is obtained, wherein the first query mode refers to the communication records of diagnosis data corresponding to all node specified identifiers; the second query mode refers to querying communication records of diagnostic data of the designated number of each node; and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
Different query requirements are met through different query modes, communication records of all nodes are quickly searched, and the positioning efficiency of the data loss node is further improved. Meanwhile, the disassembly of the vehicle can be avoided, and the use of a plurality of sampling devices for sampling is avoided, so that the diagnosis operation of the data loss node is simpler and more convenient.
Referring to fig. 6, fig. 6 is a flowchart of a fourth embodiment of a data loss node positioning method according to the present application. Based on the embodiment shown in fig. 3, in step S340: based on the query result, comparing and analyzing the communication record, and after locating the node with the data loss, further comprising:
step S610: and sending a communication record mode closing instruction to the vehicle.
It will be appreciated that after the rapid localization of the node of the data loss is achieved based on the embodiment shown in fig. 3 described above, the next fault diagnosis can be performed on the vehicle. In order to reduce unnecessary loss and to effectively utilize the storage resources of the vehicle system, it is necessary to turn off the communication recording mode of each node of the vehicle bus. The diagnostic device therefore needs to send an instruction to the vehicle to shut down the communication recording mode after locating the node that has obtained the data loss.
According to the scheme, the communication recording mode starting instruction is sent to the vehicle; after the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed; sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle; based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss; and sending a communication record mode closing instruction to the vehicle.
After the node with the data loss is located, a communication record mode closing instruction is sent to the vehicle, so that the communication record is closed under the default condition, the storage resource of a vehicle system can be effectively saved, and the energy consumption of the vehicle is reduced. Meanwhile, the quick positioning of the data loss node is realized through the communication record mode of each node of the vehicle bus, so that the cost can be effectively saved, and the positioning efficiency of the data loss node is improved.
Referring to fig. 7, fig. 7 is a flowchart of a fifth embodiment of a data loss node positioning method according to the present application. The data loss node positioning method is applied to a vehicle and comprises the following steps:
Step S710: receiving a communication record mode starting instruction sent by diagnostic equipment, and starting a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction;
Step S720: receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process;
Specifically, after the vehicle receives a communication record mode starting instruction sent by the diagnostic equipment, the communication record mode of each node of the bus is started, so that the subsequently generated diagnostic data transmission information can be conveniently recorded, the data transmission record in the fault diagnosis process can be conveniently queried subsequently, and the node with the lost data can be rapidly positioned.
It can be understood that, after the communication record mode of each node of the vehicle is started, in order to obtain the data interaction record of the vehicle ECU in the fault diagnosis process, the diagnostic device needs to send a fault diagnosis instruction to the vehicle, perform fault diagnosis on the vehicle, and the vehicle receives the fault diagnosis instruction sent by the diagnostic device, distributes the instruction and the corresponding identifier through the bus, and distributes the result obtained by executing the instruction and the corresponding identifier again through the bus and returns the result to the diagnostic device, thereby realizing the distribution of the diagnostic data and the diagnostic data identifier through the bus. The diagnosis data comprise fault diagnosis instructions sent to the vehicle by the diagnosis equipment and results obtained by instruction execution. The identifier refers to an identifier for distinguishing diagnostic data of each frame, and the amount of diagnostic data may be large or small during the interaction of the diagnostic device with the vehicle ECU, and if the communication record is recording the diagnostic data, a large amount of repeated invalid data may be generated, and excessive storage resources may be occupied, so that a unique identifier may be defined for the diagnostic data interacted with each frame, and it is required to transmit together with the identifier when transmitting the diagnostic data. The diagnostic data identification refers to an identifier to which the diagnostic data corresponds.
Further, when the communication record mode is in an on state, a record table is newly built in each node. And recording each piece of diagnosis data and the transmission information of the corresponding diagnosis data mark at a certain node by using the recording table, thereby forming the communication record of each node in the fault diagnosis process. Wherein, the transmission information refers to the identification of the diagnostic data, the type of the diagnostic data and the time of receiving and transmitting. Because the diagnostic data identification can distinguish each frame of diagnostic data, when the diagnostic data transmission information of the node is recorded each time, the complete diagnostic data is not required to be recorded, and only the diagnostic data identification transmitted each time can be recorded, thereby realizing the communication recording function and effectively utilizing resources.
For example, in this embodiment, in order to investigate the data loss condition occurring when the diagnostic device queries the fault information of the vehicle engine, after the communication recording mode of each node of the vehicle is started, the vehicle receives the instruction for reading the fault code of the engine sent by the diagnostic device, after receiving the instruction, firstly generates the identifier of the instruction, distributes the instruction and the identifier of the instruction to the engine control module internally, and the engine control module reads the fault code internally, generates the identifier corresponding to the fault code, transmits the fault code and the identifier of the fault code through each node of the bus, and finally transmits the fault code and the identifier of the fault code back to the diagnostic device. Since the vehicle is known to have a node where data is lost, data transmission is disconnected at a certain node when an instruction is internally distributed and an instruction execution result is returned. In the fault diagnosis process, each node receives and transmits an instruction for reading the engine fault code, and a record table of the node records the receiving and transmitting time and an identifier of the instruction for reading the engine fault code; while each node operates on the receipt and transmission of the engine fault code, the node's log records the time of receipt and transmission, as well as the engine fault code's identifier.
Step S730: and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
In order to enable the diagnosis equipment to obtain the communication record in the vehicle, the node with the lost data is positioned so as to carry out the next fault diagnosis, the vehicle receives the inquiry command sent by the diagnosis equipment, inquires the communication record of each node according to the requirement of the inquiry command, and returns the inquiry result to the diagnosis equipment.
According to the scheme, the communication recording mode starting instruction sent by the diagnosis equipment is received, and the communication recording mode of each node of the vehicle bus is started according to the communication recording mode starting instruction; receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process; and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
When the diagnostic data is lost, the communication record function of each node of the vehicle bus is started to record the sending and receiving of the diagnostic data, so that the vehicle can be prevented from being disassembled, and a plurality of sampling devices are prevented from being used for sampling, so that the diagnostic operation of the data loss node is simpler and more convenient. And then, the diagnosis data receiving and transmitting records of all the nodes are searched and compared, so that the diagnosis data loss nodes are rapidly positioned for fault investigation, the workload is reduced, and the positioning efficiency of the automobile data loss nodes is effectively improved.
Further, based on the embodiment shown in fig. 7, in step 710, the above steps are performed: the method comprises the steps of receiving a communication record mode starting instruction sent by diagnostic equipment, and before starting the communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, further comprising:
And receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identification through a bus according to the fault diagnosis instruction, and returning a fault diagnosis execution result to the diagnosis equipment.
It will be appreciated that in the embodiment shown in fig. 7, when it is determined that there is a data loss, the communication recording mode of each node of the vehicle bus is started, the diagnostic data transmission condition in the vehicle ECU is recorded, and the node that gets the data loss is located based on the communication recording. Since the communication recording mode occupies the storage resources of the vehicle system and increases the power consumption, the communication recording mode is in a default off state when no data loss occurs.
Specifically, in the default off state of the communication recording mode, further judgment needs to be made on the condition of data loss in the interaction process of the diagnostic device and the vehicle ECU. The vehicle obtains the execution result of the fault diagnosis by receiving the fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identification through the bus, and returning the execution result of the fault diagnosis to the diagnosis equipment. And then the diagnosis equipment determines whether the fault diagnosis is executed normally or not based on the execution result of the fault diagnosis, and further confirms whether the communication record mode of each node of the vehicle bus is necessary to be started or not.
Referring to fig. 8, fig. 8 is a detailed flowchart of step S730 in an embodiment of the data loss node positioning method according to the present application. Based on the embodiment shown in fig. 7, the step S730: receiving an inquiry command sent by diagnostic equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnostic equipment comprises the following steps:
step S7301: receiving a query instruction sent by diagnostic equipment, and analyzing and confirming a corresponding query mode of the query instruction, wherein the query mode is a first query mode or a second query mode;
Specifically, after receiving a query instruction sent by the diagnostic equipment, the vehicle starts to analyze the query instruction, confirms a query mode corresponding to the query instruction, and queries a record table on a vehicle bus according to the corresponding query mode. The query mode is a first query mode or a second query mode.
Step S7302: when the query mode is a first query mode, querying a record table of each node for communication records of diagnostic data corresponding to the designated identifier;
step S7303: and when the query mode is a second query mode, querying communication records of the diagnostic data with the designated number in the record table of each node.
Specifically, when the query mode is the first query mode, the vehicle needs to query the record table of each node for the communication record of the diagnostic data corresponding to the specified identifier, and if the query result is found, the query result is returned to the diagnostic device, for example, the time of receiving or transmitting the diagnostic data corresponding to the identifier. If no query is found, a reply is made to the diagnostic device that no record is made. The record table is formed by transmission information of diagnostic data recorded by each node after the communication record mode is started, and the record table comprises a plurality of communication records of the diagnostic data received and transmitted by the node.
When the query mode is the second query mode, each node of the vehicle replies the record of the designated number received or sent recently to the diagnosis device according to the query instruction. For example, the diagnostic device needs to query the most recently received 100 communication records, each node of the vehicle receives the designated number of 100, and after receiving the query command, the diagnostic device returns the information of the most recently received 100 diagnostic data transmissions from each node. Meanwhile, the information such as the diagnosis data type, the transmission time and the like received or transmitted by each node can also be used as the query condition in the query instruction so as to adapt to different query requirements.
According to the scheme, the communication recording mode starting instruction sent by the diagnosis equipment is received, and the communication recording mode of each node of the vehicle bus is started according to the communication recording mode starting instruction; receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process; receiving a query instruction sent by diagnostic equipment, and analyzing and confirming a corresponding query mode of the query instruction, wherein the query mode is a first query mode or a second query mode; when the query mode is a first query mode, querying a record table of each node for communication records of diagnostic data corresponding to the designated identifier; and when the query mode is a second query mode, querying communication records of the diagnostic data with the designated number in the record table of each node.
By receiving the query command and confirming the query mode, different query requirements are met according to different query modes, the communication records of all nodes are quickly searched, and the positioning efficiency of the data loss node is further improved. Meanwhile, the disassembly of the vehicle can be avoided, and the use of a plurality of sampling devices for sampling is avoided, so that the diagnosis operation of the data loss node is simpler and more convenient.
Referring to fig. 9, fig. 9 is a flowchart of a seventh embodiment of a data loss node positioning method according to the present application. Based on the embodiment shown in fig. 7, in step S730: the method comprises the steps of receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment, and further comprises the following steps:
Step S910: and receiving a communication record mode closing instruction sent by the diagnostic equipment, closing the communication record mode of each node of the bus according to the communication record mode closing instruction, stopping recording the communication information of each node, and clearing the past communication record.
It can be understood that, based on the embodiment described in fig. 5, the node where data is lost can be quickly located, however, keeping the communication record mode of each node of the vehicle bus in the on state may generate unnecessary storage data, occupy the storage resources of the vehicle system, and increase the loss of the vehicle. Therefore, after locating the node that gets the data loss, the communication record mode of each node needs to be turned off.
Specifically, the diagnostic device needs to send a command for closing the communication recording mode to the vehicle, after the vehicle receives the command for closing the communication recording mode, the vehicle closes the communication recording mode of each node of the bus, stops recording the communication information on each node, and clears the communication record which is generated in the past and stored, so as to avoid occupying unnecessary storage resources and improve the effective utilization rate of the vehicle system resources.
According to the scheme, the communication recording mode starting instruction sent by the diagnosis equipment is received, and the communication recording mode of each node of the vehicle bus is started according to the communication recording mode starting instruction; receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process; receiving an inquiry command sent by diagnostic equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnostic equipment; and receiving a communication record mode closing instruction sent by the diagnostic equipment, closing the communication record mode of each node of the bus according to the communication record mode closing instruction, stopping recording the communication information of each node, and clearing the past communication record.
After the node with the lost data is located, the vehicle receives a communication record mode closing instruction sent by the diagnosis equipment, stops recording the communication information of each node, and clears the communication record stored in the past, so that the communication record is kept closed by default, the storage resource of the vehicle system can be effectively saved, and the energy consumption of the vehicle is reduced. Meanwhile, the quick positioning of the data loss node is realized through the communication record mode of each node of the vehicle bus, so that the cost can be effectively saved, and the positioning efficiency of the data loss node is improved.
In addition, the embodiment of the application also provides a diagnostic device, referring to fig. 10, fig. 10 is a schematic diagram of functional modules of the diagnostic device related to the embodiment of the data loss node positioning method of the application. As shown in fig. 10, the diagnostic apparatus includes:
The sending module 01 is used for sending a communication record mode starting instruction to the vehicle;
the fault diagnosis module 02 is configured to send a fault diagnosis instruction to the vehicle after the vehicle starts a communication recording mode of each node of a bus of the vehicle according to the communication recording mode starting instruction, perform fault diagnosis on the vehicle, and in a diagnosis process, the vehicle distributes diagnosis data and a diagnosis data identifier through the bus, records transmission information of the diagnosis data and the diagnosis data identifier at each node of the bus, and forms a communication record of each node in the fault diagnosis process;
The record inquiring module 03 is used for sending an inquiring instruction to the vehicle, inquiring the communication record recorded by each node in the fault diagnosis process, and obtaining an inquiring result returned by the vehicle;
and the node positioning module 04 is used for comparing and analyzing the communication records based on the query result and positioning the nodes with data loss.
The principle and implementation process of the present embodiment for implementing the positioning of the data loss node are referred to the above embodiments, and are not repeated herein.
In addition, the embodiment of the application further provides a vehicle, and referring to fig. 11, fig. 11 is a schematic diagram of a functional module of the vehicle related to the embodiment of the data loss node positioning method of the application. As shown in fig. 11, the vehicle includes:
The communication record mode control module 10 is used for receiving a communication record mode starting instruction sent by the diagnostic equipment and starting the communication record mode of each node of the vehicle bus according to the communication record mode starting instruction;
The communication record generating module 20 receives a fault diagnosis instruction sent by the diagnosis device, distributes diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, records transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forms a communication record of each node in a fault diagnosis process;
the communication record query module 30 is configured to receive a query instruction sent by the diagnostic device, query the communication record of each node, and return a query result to the diagnostic device.
The principle and implementation process of the present embodiment for implementing the positioning of the data loss node are referred to the above embodiments, and are not repeated herein.
In addition, the embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium stores a data loss node positioning program, which when executed by a processor, implements the steps of the data loss node positioning method according to the above embodiment.
Because all the technical solutions of all the embodiments are adopted when the data loss node positioning program is executed by the processor, the data loss node positioning program at least has all the beneficial effects brought by all the technical solutions of all the embodiments, and is not described in detail herein.
It is noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. A data loss node positioning method, wherein the data loss node positioning method is applied to a diagnostic device, the data loss node positioning method comprising:
sending a communication record mode starting instruction to the vehicle;
After the vehicle starts a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction, a fault diagnosis instruction is sent to the vehicle, fault diagnosis is carried out on the vehicle, in the diagnosis process, the vehicle distributes diagnosis data and diagnosis data identifiers through the bus, the transmission information of the diagnosis data and the diagnosis data identifiers in each node of the bus is recorded, and communication records of each node in the fault diagnosis process are formed;
sending a query instruction to the vehicle, and querying communication records recorded by each node in the fault diagnosis process to obtain a query result returned by the vehicle;
and based on the query result, comparing and analyzing the communication record, and positioning the node with the data loss.
2. The method for locating a data loss node according to claim 1, further comprising, before the step of sending a communication record mode start instruction to the vehicle:
Sending a fault diagnosis instruction to a vehicle, and performing fault diagnosis on the vehicle to obtain a fault diagnosis execution result;
based on the execution result of the fault diagnosis, confirming whether the communication record mode of each node of the vehicle bus is started, and executing the steps when confirming that the communication record mode of each node of the vehicle bus is started: and sending a communication record mode starting instruction to the vehicle.
3. The method for locating a lost node according to claim 1, wherein the step of sending a query command to the vehicle to query the communication record recorded by each node in the fault diagnosis process to obtain the query result returned by the vehicle comprises the steps of:
According to a preset first query mode or a second query mode, a query instruction is sent to the vehicle, communication records of all node records in the fault diagnosis process are queried, and a query result returned by the vehicle is obtained, wherein the first query mode refers to the communication records of diagnosis data corresponding to all node specified identifiers; the second query mode refers to the communication record of the diagnosis data of the designated number of each node.
4. The method for locating a lost node according to claim 1, wherein after the step of comparing and analyzing the communication record based on the query result, locating the lost node further comprises:
And sending a communication record mode closing instruction to the vehicle.
5. The data loss node positioning method is characterized in that the data loss node positioning method is applied to a vehicle and comprises the following steps:
Receiving a communication record mode starting instruction sent by diagnostic equipment, and starting a communication record mode of each node of a vehicle bus according to the communication record mode starting instruction;
Receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identifiers through the bus according to the fault diagnosis instruction, recording transmission information of the diagnosis data and the diagnosis data identifiers on each node of the bus, and forming communication records of each node in a fault diagnosis process;
and receiving an inquiry command sent by the diagnosis equipment, inquiring the communication record of each node, and returning an inquiry result to the diagnosis equipment.
6. The method for locating a lost node according to claim 5, wherein the step of receiving a communication record mode start command sent by the diagnostic device and starting the communication record mode of each node of the bus of the vehicle according to the communication record mode start command further comprises:
And receiving a fault diagnosis instruction sent by the diagnosis equipment, distributing diagnosis data and diagnosis data identification through a bus according to the fault diagnosis instruction, and returning a fault diagnosis execution result to the diagnosis equipment.
7. The method for locating a lost node according to claim 6, wherein the steps of receiving a query command sent by a diagnostic device, querying a communication record of each node, and returning a query result to the diagnostic device, comprise:
receiving a query instruction sent by diagnostic equipment, and analyzing and confirming a corresponding query mode of the query instruction, wherein the query mode is a first query mode or a second query mode;
When the query mode is a first query mode, querying a record table of each node for communication records of diagnostic data corresponding to the designated identifier;
And when the query mode is a second query mode, querying communication records of the diagnostic data with the designated number in the record table of each node.
8. The method for locating a lost node according to claim 6, wherein after the steps of receiving a query command sent by a diagnostic device, querying a communication record of each node, and returning a query result to the diagnostic device, the method further comprises:
And receiving a communication record mode closing instruction sent by the diagnostic equipment, closing the communication record mode of each node of the bus according to the communication record mode closing instruction, stopping recording the communication information of each node, and clearing the past communication record.
9. A diagnostic device, characterized in that the diagnostic device comprises: a memory, a processor and a data loss node location program stored on the memory and executable on the processor, the data loss node location program configured to implement the steps of the data loss node location method of any of claims 1 to 4 or 5 to 8.
10. A vehicle, characterized in that the vehicle comprises: a memory, a processor and a data loss node location program stored on the memory and executable on the processor, the data loss node location program configured to implement the steps of the data loss node location method of any of claims 1 to 4 or 5 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410266007.1A CN118244735A (en) | 2024-03-07 | 2024-03-07 | Data loss node positioning method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410266007.1A CN118244735A (en) | 2024-03-07 | 2024-03-07 | Data loss node positioning method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118244735A true CN118244735A (en) | 2024-06-25 |
Family
ID=91557530
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410266007.1A Pending CN118244735A (en) | 2024-03-07 | 2024-03-07 | Data loss node positioning method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118244735A (en) |
-
2024
- 2024-03-07 CN CN202410266007.1A patent/CN118244735A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100504932C (en) | Method and device for a vehicle-related telematics service | |
CN112286171B (en) | Remote diagnosis method, device, vehicle and storage medium | |
CN110162008B (en) | CAN bus analysis method for new energy vehicle | |
US9075700B2 (en) | Data output device for vehicle | |
CN113608518B (en) | Data generation method, device, terminal equipment and medium | |
CN112051832B (en) | Fault testing method, device and system based on simulation node and storage medium | |
CN112068536A (en) | Universal self-adaptive vehicle remote diagnosis method, device and system | |
CN114326672A (en) | ECU simulation detection method, electronic device and storage medium | |
CN115145241A (en) | SOA service-based remote diagnosis method for vehicle-end CAN node and storage medium | |
CN115032973A (en) | Data transmission system, method, device, equipment and medium | |
CN118244735A (en) | Data loss node positioning method, device, equipment and storage medium | |
CN102710479B (en) | Automobile gateway system for inverse resolution of communication protocols | |
CN111880510A (en) | New energy automobile data acquisition and transmission method and equipment | |
CN115484184B (en) | Fault diagnosis method, fault diagnosis system, vehicle, and readable storage medium | |
CN116319402A (en) | Vehicle data acquisition and monitoring method, system, equipment and medium | |
CN111917692A (en) | Fuzzy test method, device, equipment and computer readable storage medium | |
CN112884942B (en) | Data recording and playback system and playback method thereof | |
CN114237195A (en) | OBD emission diagnosis method and related equipment | |
CN114399852A (en) | Data processing method and intelligent repair system for vehicle-mounted application program | |
CN109240260B (en) | Remote fault diagnosis method based on bus automatic switching and free configuration protocol | |
CN108803582B (en) | Automatic bus switching system and method suitable for remote fault diagnosis | |
CN111736578A (en) | Dual-CPU controller-based UDS diagnosis method and device | |
CN112968938B (en) | Diagnostic interaction system and interaction method thereof | |
CN114217931B (en) | Application program management method and intelligent repair system for user terminal | |
JPH10207746A (en) | System for collecting failure information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination |