CN112241156A - Diagnostic method, apparatus, computer device and storage medium - Google Patents

Diagnostic method, apparatus, computer device and storage medium Download PDF

Info

Publication number
CN112241156A
CN112241156A CN201911300561.2A CN201911300561A CN112241156A CN 112241156 A CN112241156 A CN 112241156A CN 201911300561 A CN201911300561 A CN 201911300561A CN 112241156 A CN112241156 A CN 112241156A
Authority
CN
China
Prior art keywords
diagnosis
controller
terminal
diagnostic
message
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
Application number
CN201911300561.2A
Other languages
Chinese (zh)
Inventor
王海波
原诚寅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing New Energy Vehicle Technology Innovation Center Co Ltd
Original Assignee
Beijing New Energy Vehicle Technology Innovation Center Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing New Energy Vehicle Technology Innovation Center Co Ltd filed Critical Beijing New Energy Vehicle Technology Innovation Center Co Ltd
Priority to CN201911300561.2A priority Critical patent/CN112241156A/en
Publication of CN112241156A publication Critical patent/CN112241156A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Abstract

The present application relates to a diagnostic method, apparatus, computer device and storage medium. The method comprises the following steps: simultaneously sending a first diagnosis message to a plurality of controllers; after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller; diagnosing the controller when the diagnosis starting information fed back by the controller is received; and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message. By adopting the method, the corresponding digital codes are compiled for the functions of each controller, so that the problems are specifically checked, the bus load in the diagnosis process can be reduced, the diagnosis efficiency is improved, and the rapid positioning is realized.

Description

Diagnostic method, apparatus, computer device and storage medium
Technical Field
The present application relates to the field of controller technologies, and in particular, to a diagnostic method, an apparatus, a computer device, and a storage medium.
Background
When the automobile breaks down, in order to timely judge the cause of the failure, the working state of each controller needs to be diagnosed to judge whether the controller works normally or fails.
At present, a function addressing mode is adopted, when the requested information is not in the condition of a specific certain controller, the request message is made in a function addressing mode, all controllers respond, and then the conversation with certain controllers is closed according to the response condition of the controllers.
However, the conventional method cannot diagnose a part of controllers, and has the problems of low diagnosis efficiency, increased bus load and the like.
Disclosure of Invention
In view of the above, there is a need to provide a diagnostic method, apparatus, computer device and storage medium capable of reducing bus load during diagnosis, improving diagnostic efficiency and fast positioning.
A diagnosis method is applied to a terminal device, and comprises the following steps:
simultaneously sending first diagnosis messages to a plurality of controllers;
after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller;
diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
In one embodiment, the sending the diagnostic request information to the controller includes:
and sending the diagnosis request information to the controller in a function addressing mode or a physical information mode.
A diagnostic method for use with a controller, the method comprising:
receiving a first diagnosis message sent by a terminal;
if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function;
responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is received;
and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
In one embodiment, the waiting for receiving request information sent by a terminal, responding to the request information and feeding back diagnosis start information to the terminal includes:
and responding to the request information and feeding back diagnosis starting information to the terminal when the request information sent by the terminal in a functional addressing mode or a physical information mode is received.
In one embodiment, the receiving terminal further includes, after the first diagnostic packet sent by the receiving terminal:
and if the first byte value in the first diagnostic message is not matched with the first preset function value, the diagnostic function is closed.
A diagnostic device is applied to terminal equipment, and the device comprises:
the first sending module is used for sending a first diagnosis message to the plurality of controllers simultaneously;
the second sending module is used for sending diagnosis request information to any one of the controllers after the diagnosis starting function information fed back by the controller is received;
the diagnosis module is used for diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and the third sending module is used for sending a second diagnosis message to the controller after receiving the diagnosis completion information fed back by the controller, so that the controller executes a diagnosis closing function according to the second diagnosis message.
A diagnostic device for use with a controller, the device comprising:
the first receiving module is used for receiving a first diagnosis message sent by a terminal;
the starting diagnosis module is used for starting a diagnosis function if a first byte value in the first diagnosis message is matched with a first preset function value;
the response module is used for responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is to be received;
and the diagnosis closing module is used for closing the diagnosis function if a first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value after the diagnosis is finished.
An onboard controller comprising at least a diagnostic device as described above applied to the controller.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as claimed in any one of the above when the computer program is executed.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of the preceding claims.
The diagnosis method, the diagnosis device, the computer equipment and the storage medium comprise the following steps: simultaneously sending a first diagnosis message to a plurality of controllers; after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller; diagnosing the controller when the diagnosis starting information fed back by the controller is received; and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message. The method can achieve targeted problem troubleshooting by compiling corresponding numbers for the functions of each controller, and can reduce the bus load in the diagnosis process, improve the diagnosis efficiency and realize quick positioning.
Drawings
FIG. 1 is a diagram of an exemplary diagnostic method;
FIG. 2 is a schematic diagram illustrating a flowchart of terminal device interaction with a controller in a diagnostic method according to an embodiment;
FIG. 3 is a diagram illustrating a structure of a message format in one embodiment;
FIG. 4 is a flowchart illustrating a diagnostic method applied to a terminal device according to an embodiment;
FIG. 5 is a flow diagram illustrating an exemplary implementation of a diagnostic method applied to a controller;
FIG. 6 is a block diagram of a diagnostic device applied to a terminal device according to an embodiment;
FIG. 7 is a block diagram of a controller to which a diagnostic device is applied according to an embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The diagnostic method provided by the application can be applied to the application environment shown in fig. 1. The terminal device 102 communicates with a plurality of controllers 104 through a network, wherein the plurality of controllers are encoded as a controller 1041 and a controller 1042 …, respectively, and the controller 104 n. The terminal device 102 may be, but is not limited to, a diagnostic apparatus, various personal computers, and a notebook computer.
In one embodiment, as shown in fig. 2, the method for diagnosing controllers is implemented by the terminal device 102 interacting with a plurality of controllers 104, and includes the following steps:
step S101: the first diagnostic messages are sent simultaneously to the plurality of controllers.
Specifically, existing diagnostics are all performed for a single controller or the control of the entire network system, and it is not possible to perform diagnostics on a part of controllers quickly and directly. In the present application, a part of the diagnostic functions, i.e. the functions of the individual controllers, are mainly implemented. For example, the vehicle control unit corresponds to a calculation processing function and is provided with a corresponding code 01101111, the engine control unit corresponds to a function of outputting running power and is provided with a corresponding code 00111111, and the like. Referring specifically to table 1, shown below:
TABLE 1 controller function and code correspondence table
Figure BDA0002321628250000051
Further, the message format of the first diagnostic message in this document is shown in fig. 3, and the data in the data field is the function code corresponding to each controller.
Step S102: and receiving a first diagnosis message sent by the terminal.
Specifically, the plurality of controllers simultaneously receive the first diagnostic message and identify codes in a data field in the first diagnostic message. When the terminal apparatus 102 simultaneously transmits a first diagnostic message to a plurality of controllers (the code in the data field in the first diagnostic message is 00000010), the plurality of controllers recognize the code 00000010 in the first diagnostic message.
Step S103: and if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function.
Specifically, the first byte value is the code in the data field. The first preset function value refers to the code value corresponding to the function of the different controller. Different controllers correspond to different functions, and the first preset function values in different controllers are different.
Further, if the code in the data field of the first diagnostic message sent by the terminal device 102 to the plurality of controllers at the same time is 00000010, the plurality of controllers identify and match the code 00000010, and only the first preset function value stored in the controller with the lane keeping function matches 00000010; the first preset function value stored in the controller having no lane keeping function does not match 00000010.
Step S104: and after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller.
Specifically, when a first preset function value stored in the controller having the lane keeping function matches 00000010, the on diagnosis function information is transmitted to the terminal device 102, and after the terminal device 102 receives the on diagnosis function information, the diagnosis request information is transmitted to the controller. The diagnostic information request information may be in the form of binary code, decimal code, and the like, and is not limited specifically.
Step S105: and responding to the request information and feeding back diagnosis starting information to the terminal after receiving the diagnosis request information sent by the terminal.
Step S106: and diagnosing the controller when the diagnosis starting information fed back by the controller is received.
Step S107: and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
Specifically, the format of the second diagnostic packet is the same as that of the first diagnostic packet, and the data field of the second diagnostic packet also stores the function codes corresponding to the controllers, where the function codes correspond to a second preset function value.
Further, the code corresponding to the shutdown diagnostic function of each controller is set to 0X7F (bin: 01111111), when the code in the data field of the second diagnostic packet sent by the terminal 102 to the controller is 01111111, the controller matches the second preset function value with 01111111, and if the second preset function value is matched with the 01111111, the controller executes the shutdown diagnostic function.
Step S108: and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
The method can achieve targeted problem troubleshooting by compiling corresponding numbers for the functions of each controller, and can reduce the bus load in the diagnosis process, improve the diagnosis efficiency and realize quick positioning.
As shown in fig. 4, the present application further provides a diagnostic method applied to the terminal device 102, where the method includes:
step S201: simultaneously sending first diagnosis messages to a plurality of controllers;
step S202: after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller;
step S203: diagnosing the controller when the diagnosis starting information fed back by the controller is received;
step S204: and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
In steps S201 to S204, codes corresponding to functions of different controllers are stored in the terminal device 102, and codes corresponding to functions are also stored in different controllers, and the terminal device 102 sends diagnosis request information to the plurality of controllers to diagnose the controller responding to the diagnosis request information, so as to diagnose part of the controllers, without reducing bus load in the diagnosis process, thereby improving diagnosis efficiency, and having more pertinence to problem troubleshooting, and being capable of quickly positioning problems.
In one embodiment, the step S202 includes:
step S2021: and sending the diagnosis request information to the controller in a function addressing mode or a physical information mode.
Specifically, the functional addressing is that one message corresponds to all controllers in the network, that is, all controllers in the network respond to the instruction; physical addressing is a point-to-point addressing scheme, where a message corresponds to a single controller.
As shown in fig. 5, the present application further provides a diagnostic method applied to the controller 104, the method comprising:
step S301: receiving a first diagnosis message sent by a terminal;
step S302: if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function;
step S303: responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is received;
step S304: and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
In steps S301-S304, different controller functions are encoded and stored in the respective controllers 104 based on the different controllers 104 implementing the different functions. For example, when the terminal device needs to perform diagnosis of the lane keeping function for the whole vehicle, after the at least one controller with the lane keeping function receives the information containing the lane keeping function code, the at least one controller starts the diagnosis function and responds to the diagnosis request of the terminal device to realize partial diagnosis.
In one embodiment, the step S303 includes:
step S3031: and responding to the request information and feeding back diagnosis starting information to the terminal when the request information sent by the terminal in a functional addressing mode or a physical information mode is received.
In one embodiment, after step S301, the method further includes:
step S301 a: and if the first byte value in the first diagnostic message is not matched with the first preset function value, the diagnostic function is closed.
Specifically, when the first preset function value in the controller does not match the first word number value in the received first diagnostic message, it indicates that the controller does not have the function corresponding to the first byte number value in the first diagnostic message, so the diagnostic function does not need to be turned on.
It should be understood that although the various steps in the flow charts of fig. 4-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 4-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a diagnostic apparatus applied to a terminal device, including: a first sending module 1, a second sending module 2, a diagnostic module 3 and a third sending module 4, wherein:
the first sending module 1 is used for sending a first diagnosis message to a plurality of controllers simultaneously;
the second sending module 2 is configured to send diagnosis request information to any one of the controllers after receiving the diagnosis starting function information fed back by the controller;
the diagnosis module 3 is used for diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and a third sending module 4, configured to send a second diagnosis packet to the controller when the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis packet.
In one embodiment, the second sending module 2 includes:
and the sending mode selection module 21 is used for sending the diagnosis request information to the controller in a function addressing mode or a physical information mode.
In one embodiment, as shown in fig. 7, there is also provided a diagnostic apparatus applied to a controller, including: a first receiving module 5, an on diagnostic module 6, a response module 7, and an off diagnostic module 8, wherein:
the first receiving module 5 is used for receiving a first diagnosis message sent by the terminal;
the starting diagnosis module 6 is configured to start a diagnosis function if a first byte value in the first diagnosis message matches a first preset function value;
the response module 7 is configured to respond to the request information and feed back diagnosis start information to the terminal when the diagnosis request information sent by the terminal is to be received;
and the diagnostic shutdown module 8 is configured to, after the diagnosis is completed, shutdown the diagnostic function if a first byte value in a second diagnostic message sent by the terminal to be received matches a second preset function value.
In one embodiment, the response module 7 includes:
and the transmission mode response module 71 is configured to respond to the request information and feed back diagnosis start information to the terminal when the request information sent by the terminal in a function addressing mode or a physical information mode is to be received.
In one embodiment, the first receiving module 5 further includes:
the matching module 5a is configured to close the diagnostic function if the first byte value in the first diagnostic message does not match the first preset function value.
For a specific definition of a diagnostic device, reference may be made to the above definition of a diagnostic method, which is not described in detail here. The various modules in a diagnostic device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a diagnostic method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided an onboard controller comprising at least:
the first receiving module is used for receiving a first diagnosis message sent by a terminal;
the starting diagnosis module is used for starting a diagnosis function if a first byte value in the first diagnosis message is matched with a first preset function value;
the response module is used for responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is to be received;
and the diagnosis closing module is used for closing the diagnosis function if a first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value after the diagnosis is finished.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
simultaneously sending first diagnosis messages to a plurality of controllers;
after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller;
diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
simultaneously sending first diagnosis messages to a plurality of controllers;
after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller;
diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving a first diagnosis message sent by a terminal;
if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function;
responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is received;
and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a first diagnosis message sent by a terminal;
if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function;
responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is received;
and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A diagnosis method is applied to terminal equipment, and is characterized by comprising the following steps:
simultaneously sending first diagnosis messages to a plurality of controllers;
after receiving the diagnosis starting function information fed back by any one of the controllers, sending diagnosis request information to the controller;
diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and sending a second diagnosis message to the controller after the diagnosis completion information fed back by the controller is received, so that the controller executes a diagnosis closing function according to the second diagnosis message.
2. The method of claim 1, wherein sending diagnostic request information to the controller comprises:
and sending the diagnosis request information to the controller in a function addressing mode or a physical information mode.
3. A diagnostic method for use with a controller, the method comprising:
receiving a first diagnosis message sent by a terminal;
if the first byte value in the first diagnostic message is matched with a first preset function value, starting a diagnostic function;
responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is received;
and after the diagnosis is finished, if the first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value, the diagnosis function is closed.
4. The method of claim 3, wherein the waiting for receiving request information sent by a terminal, responding to the request information and feeding back diagnosis start information to the terminal comprises:
and responding to the request information and feeding back diagnosis starting information to the terminal when the request information sent by the terminal in a functional addressing mode or a physical information mode is received.
5. The method of claim 3, wherein the receiving the first diagnostic packet sent by the terminal further comprises:
and if the first byte value in the first diagnostic message is not matched with the first preset function value, the diagnostic function is closed.
6. A diagnostic device applied to a terminal device, the device comprising:
the first sending module is used for sending a first diagnosis message to the plurality of controllers simultaneously;
the second sending module is used for sending diagnosis request information to any one of the controllers after the diagnosis starting function information fed back by the controller is received;
the diagnosis module is used for diagnosing the controller when the diagnosis starting information fed back by the controller is received;
and the third sending module is used for sending a second diagnosis message to the controller after receiving the diagnosis completion information fed back by the controller, so that the controller executes a diagnosis closing function according to the second diagnosis message.
7. A diagnostic device for use with a controller, the device comprising:
the first receiving module is used for receiving a first diagnosis message sent by a terminal;
the starting diagnosis module is used for starting a diagnosis function if a first byte value in the first diagnosis message is matched with a first preset function value;
the response module is used for responding to the request information and feeding back diagnosis starting information to the terminal when the diagnosis request information sent by the terminal is to be received;
and the diagnosis closing module is used for closing the diagnosis function if a first byte value in a second diagnosis message sent by the terminal to be received is matched with a second preset function value after the diagnosis is finished.
8. An on-board controller characterized in that it comprises at least the diagnostic device of claim 7.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201911300561.2A 2019-12-17 2019-12-17 Diagnostic method, apparatus, computer device and storage medium Pending CN112241156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911300561.2A CN112241156A (en) 2019-12-17 2019-12-17 Diagnostic method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911300561.2A CN112241156A (en) 2019-12-17 2019-12-17 Diagnostic method, apparatus, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN112241156A true CN112241156A (en) 2021-01-19

Family

ID=74168398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911300561.2A Pending CN112241156A (en) 2019-12-17 2019-12-17 Diagnostic method, apparatus, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112241156A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203070089U (en) * 2012-11-14 2013-07-17 安徽安凯汽车股份有限公司 New energy automobile body module program maintenance system
DE102013218808A1 (en) * 2013-09-19 2015-03-19 Robert Bosch Gmbh A method for testing a functionality of at least one safety function of an electronic control unit
CN105511448A (en) * 2015-12-30 2016-04-20 东风商用车有限公司 Integrated automotive diagnostic instrument and diagnosing method thereof
CN106371429A (en) * 2016-11-12 2017-02-01 驭联智能科技发展(上海)有限公司 Inside-vehicle equipment centralized detection method and system
CN107992022A (en) * 2017-11-27 2018-05-04 北京新能源汽车股份有限公司 A kind of control method of fault diagnosis, device, controller and system
CN108334058A (en) * 2018-02-13 2018-07-27 安徽江淮汽车集团股份有限公司 A kind of diagnostic system and method based on car body controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203070089U (en) * 2012-11-14 2013-07-17 安徽安凯汽车股份有限公司 New energy automobile body module program maintenance system
DE102013218808A1 (en) * 2013-09-19 2015-03-19 Robert Bosch Gmbh A method for testing a functionality of at least one safety function of an electronic control unit
CN105511448A (en) * 2015-12-30 2016-04-20 东风商用车有限公司 Integrated automotive diagnostic instrument and diagnosing method thereof
CN106371429A (en) * 2016-11-12 2017-02-01 驭联智能科技发展(上海)有限公司 Inside-vehicle equipment centralized detection method and system
CN107992022A (en) * 2017-11-27 2018-05-04 北京新能源汽车股份有限公司 A kind of control method of fault diagnosis, device, controller and system
CN108334058A (en) * 2018-02-13 2018-07-27 安徽江淮汽车集团股份有限公司 A kind of diagnostic system and method based on car body controller

Similar Documents

Publication Publication Date Title
CN110362308A (en) Page generation method, device, computer equipment and storage medium
CN107077407B (en) Vehicle control device
US11360698B2 (en) Electronic control unit for vehicle and method of writing data
EP2770432B1 (en) Electronic control device for automobile and data communication method
CN110119290A (en) The spare page switching method of application program, device, computer equipment and storage medium
CN109257426B (en) Service line resource loading method and device, computer equipment and storage medium
CN115314416B (en) Network card state automatic detection method and device, electronic equipment and storage medium
CN115454512A (en) Chip drive loading configuration method, device, equipment and storage medium
CN114064234A (en) Method and device for repairing WMI service
CN112241156A (en) Diagnostic method, apparatus, computer device and storage medium
CN109885331A (en) Method for upgrading software, control method, system, storage medium and electronic equipment
CN111177054B (en) Data transmission method, device, equipment and storage medium
CN111339007A (en) USB device control method and device, computer device and storage medium
CN112214336B (en) Data queue pushing method and device, computer equipment and storage medium
CN106293822A (en) A kind of from the method and device processing chip upgrade
CN115373919A (en) Soc debugging method and system, electronic equipment and storage medium
CN116300780A (en) Component configuration method, device, electronic equipment and storage medium
CN110879757B (en) Restarting method and device for abnormal operation of client and computer equipment
CN109542345B (en) Data writing and reading method and device of Flash memory
CN112311615B (en) Control method and device of network diagnosis function and related product
JP2014063350A (en) Automotive electronic control device
KR100526547B1 (en) Method for managing nand flash memory in terminal including dual dhip
CN114090309B (en) Method and device for repairing WMI service
CN115654117B (en) Gear switching control method, gear switching control device, computer equipment and storage medium
US20240004633A1 (en) Electronic control device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100176 floor 10, building 1, zone 2, yard 9, Taihe 3rd Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Beijing National New Energy Vehicle Technology Innovation Center Co.,Ltd.

Address before: 100176 1705, block a, building 1, No. 10, Ronghua Middle Road, economic and Technological Development Zone, Daxing District, Beijing

Applicant before: BEIJING NEW ENERGY VEHICLE TECHNOLOGY INNOVATION CENTER Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210119

RJ01 Rejection of invention patent application after publication