CN114967634A - Processor diagnostic device, processor diagnostic method, and electronic apparatus - Google Patents

Processor diagnostic device, processor diagnostic method, and electronic apparatus Download PDF

Info

Publication number
CN114967634A
CN114967634A CN202111087388.XA CN202111087388A CN114967634A CN 114967634 A CN114967634 A CN 114967634A CN 202111087388 A CN202111087388 A CN 202111087388A CN 114967634 A CN114967634 A CN 114967634A
Authority
CN
China
Prior art keywords
diagnosis
diagnostic
information
domain
storage
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
CN202111087388.XA
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.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor 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 Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202111087388.XA priority Critical patent/CN114967634A/en
Publication of CN114967634A publication Critical patent/CN114967634A/en
Priority to PCT/CN2022/119317 priority patent/WO2023041036A1/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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Abstract

The invention provides a processor diagnosis device, a processor diagnosis method and electronic equipment, which are used for reducing inter-core communication load, and are characterized in that a diagnosis strategy and a storage area are configured for each domain, when some domain has diagnosis information, whether the diagnosis information has a storage requirement is judged, only when the diagnosis information has the storage requirement, inter-core communication is carried out, the diagnosis information is sent to a diagnosis main control domain, so that the diagnosis main control domain stores the diagnosis information to the storage area corresponding to the diagnosis information, and the inter-core communication load is reduced.

Description

Processor diagnostic device, processor diagnostic method, and electronic apparatus
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a processor diagnostic apparatus, a processor diagnostic method, and an electronic device.
Background
With the development of science and technology and the improvement of industrial reliability and safety requirements, data diagnosis of the operation state of equipment is required in many fields, for example, in the automobile field, in order to ensure the reliable operation of a vehicle, the operation state of each object of the vehicle, such as a vehicle body domain, a power domain and an intelligent driving domain, can be diagnosed.
With the development of chip technology, technicians can configure a controller chip into a plurality of domains, so that each domain is respectively used for performing fault detection on one object, the plurality of domains include a diagnosis main domain and a plurality of other domains, the diagnosis main domain is used for performing inter-core communication with the other domains, and diagnosis information generated by the other domains is stored in a memory. Also taking the automobile field as an example, along with the development of the electronic and electrical architecture and the vehicle-mounted chip of the automobile, the ECU with multi-domain fusion is also produced. Compared with the prior art that an automobile body domain, a power domain and an intelligent driving domain are respectively controlled by three ECUs, algorithms corresponding to different domains can be integrated into one ECU, the ECU generally adopts a multi-core chip, and the algorithm of each domain is distributed into one or two cores in a preliminary scheme. The multi-core chip generally only sets one core to access external storage (Flash, EEPROM, etc.), and the other cores can only indirectly access the external storage through inter-core communication. Taking DRA821 as an example, a gateway domain, a vehicle body domain, an intelligent driving domain and a power domain are integrated, the function distribution is shown in fig. 1, and a diagram of diagnostic information transmission paths among four R cores in fig. 1 is shown in fig. 2.
When a plurality of domains in the current multi-domain fusion controller carry out inter-core communication, if diagnosis information is too much, the inter-core communication load is high, and further the real-time transmission of other information of each core is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a processor diagnostic apparatus, a processor diagnostic method, and an electronic device, so as to reduce inter-core communication load.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
a processor diagnostic apparatus including a plurality of domains and a storage area, one diagnostic master domain being provided in the plurality of domains, and each of the plurality of domains storing a diagnostic policy, each of the plurality of domains corresponding to the storage area for storing diagnostic information of the domain, the apparatus further comprising:
the storage requirement judging unit is used for judging whether the diagnostic information has a storage requirement when any domain has the diagnostic information; and
and the communication unit is used for sending the diagnosis information to a diagnosis main control domain when the diagnosis information has a storage requirement, so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information.
Optionally, in the processor diagnostic apparatus, when the storage requirement determining unit determines whether the diagnostic information has a storage requirement, the storage requirement determining unit includes:
acquiring the diagnosis type of the diagnosis information;
judging whether the diagnosis type of the diagnosis information belongs to a preset diagnosis type, when the diagnosis type of the diagnosis information belongs to the preset diagnosis type, indicating that the diagnosis information has a storage requirement, otherwise, indicating that the diagnosis information has no storage requirement.
Optionally, in the processor diagnostic apparatus, the preset diagnostic type includes a change in a fault code of a domain of the diagnostic information.
Optionally, the processor diagnostic apparatus further includes a storage unit for providing the storage area, each storage unit is preconfigured with a domain identifier, the domain identifier corresponds to a domain in the processor diagnostic apparatus,
the storage unit comprises a Flash storage unit and a RAM storage unit,
the Flash storage unit is used for providing a Flash storage area, the RAM storage unit is used for providing a RAM storage area,
and when the processor diagnosis device is detected to be initialized, mirroring the data information in the Flash storage area of each storage area to the RAM storage area of the storage area.
Optionally, in the processor diagnostic apparatus, the communication unit is further configured to ignore the diagnostic information when the diagnostic information has no storage requirement.
A processor diagnostic method applied to a processor diagnostic apparatus including a plurality of domains and a storage area, the plurality of domains having one diagnostic master domain and each of the plurality of domains storing a diagnostic policy, each of the plurality of domains corresponding to the storage area for storing diagnostic information of the domain, the method comprising:
when any domain has the diagnosis information, judging whether the diagnosis information has the storage requirement, and when the diagnosis information has the storage requirement, sending the diagnosis information to a diagnosis main control domain so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information.
Optionally, in the processor diagnosis method, the determining whether the diagnosis information has a storage requirement includes:
acquiring the diagnosis type of the diagnosis information;
judging whether the diagnosis type of the diagnosis information belongs to a preset diagnosis type;
and when the diagnosis type of the diagnosis information belongs to the preset diagnosis type, indicating that the diagnosis information has a storage requirement, otherwise, indicating that the diagnosis information has no storage requirement.
Optionally, in the processor diagnosis method, the preset diagnosis type at least includes: the fault code of the domain of diagnostic information changes.
Optionally, in the processor diagnostic method, the storage area includes a Flash storage area and a RAM storage area; the method further comprises the following steps:
and when the multi-domain fusion ECU diagnosis system is detected to be initialized, mirroring the data information in the Flash storage area of each storage area to the RAM storage area of the storage area.
An electronic device comprising a memory and a processor diagnostic apparatus, the memory storing a program adapted to be executed by the processor diagnostic apparatus, the processor diagnostic apparatus executing the program to implement the processor diagnostic method of any one of the above.
Based on the above technical solution, in the above solution provided in the embodiment of the present invention, in order to reduce inter-core communication load between domains in the multi-domain fusion ECU diagnostic system, a diagnostic software and a storage region are configured for each domain, when the diagnostic software of any domain generates diagnostic information and the diagnostic information has a storage requirement, inter-core communication is performed, and the diagnostic information is sent to the diagnostic master domain, thereby reducing inter-core communication load.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a DRA821 multi-domain fusion ECU diagnostic design framework in the prior art;
FIG. 2 is a diagram of diagnostic information transmission paths among four R cores in a DRA821 multi-domain fusion ECU diagnostic design scheme;
FIG. 3 is a schematic structural diagram of a processor diagnostic apparatus according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a multi-domain fusion ECU diagnostic system to which the processor diagnostic device disclosed in the embodiments of the present application is applied;
FIG. 5 is a schematic flow chart of a multi-domain fusion ECU diagnosis method disclosed in the embodiments of the present application;
fig. 6 is a schematic structural diagram of a diagnostic apparatus disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The application discloses a processor diagnosis scheme with a plurality of domains, in the scheme, the storage requirements of diagnosis information output by each domain can be judged in advance, and the inter-core communication is carried out when the diagnosis information has the storage requirements, so that the quantity of the diagnosis information for the inter-core communication is reduced, and the inter-core communication load is reduced.
First, some vocabularies in the technical solutions disclosed in the present application will be explained.
An ECU: electronic Control Unit, Electronic Control Unit, unless otherwise stated, the ECU referred to herein has a bus communication function.
DRA 821:Jacinto TM The DRA821x processor is a Ti Armv 864-bit architecture based System On Chip (SOC) having a dual core 64-bit Arm Cortex-a72 microprocessor subsystem, 4 Arm Cortex-R5 FMCUs.
Flash: one type of memory chip can modify the data in the memory chip through a specific program and has the performance of being electrically erasable and programmable, and the data can not be lost due to power failure.
RAM: random access memory, which can be read and written at any time and is fast, is usually used as a temporary data storage medium for an operating system or other programs in operation. The stored data will be lost upon power down.
Inter-core communication: and each core in the heterogeneous multi-core chip transmits a communication mechanism of information.
IPC: the interprocess communication means that data of two processes are interacted, and a half-duplex Unix pipeline, FIFOs, a message queue, a semaphore, a shared memory and a network Socket are commonly used.
Referring next to fig. 3, the structure of the processor diagnostic apparatus of the present application will be described, referring to fig. 3, the processor diagnostic apparatus includes a plurality of domains and a storage region, referring to fig. 3, the plurality of domains has a diagnostic master domain and at least 1 other domain, in a specific embodiment of the present disclosure, the other domains may be, for example, the R2 domain, the R3 domain, and the R4 domain, etc. shown in fig. 3, wherein the specific types of domains of the R2 domain, the R3 domain, and the R4 domain may be set by themselves based on user requirements, each domain corresponds to a storage region, such as the R1 storage region, the R2 storage region, the R3 storage region, and the R4 storage region shown in fig. 3, wherein the R1 storage region corresponds to the diagnostic master domain, the R2 storage region corresponds to the R2 domain, the R3 storage region corresponds to the R3 domain, and the R4 storage region corresponds to the R4 domain, and each of the plurality of domains stores a diagnostic policy, the diagnostic policy may be loaded in diagnostic software, each of the plurality of domains corresponding to a storage region for storing diagnostic information for the domain, the processor diagnostic apparatus further comprising: a storage requirement judging unit A and a communication unit B.
The storage requirement judging unit A is used for judging whether the diagnostic information has a storage requirement when any domain (other domains not the diagnostic main control domain) has the diagnostic information;
specifically, the storage demand judgment unit a (hereinafter, sometimes simply referred to as the demand judgment unit a or the judgment unit a) monitors the plurality of domains in real time, monitors the diagnosis result of the diagnosis policy corresponding to each domain, when it is determined that the diagnostic policy corresponding to any one of the plurality of domains has diagnostic information generated, it is determined whether the generated diagnostic information has a storage requirement based on a preset determination logic, when the diagnostic information has a storage requirement, the inter-core communication is required to be carried out so as to store the diagnostic information to a storage area corresponding to the domain generating the diagnostic information through the diagnostic main control domain, when the storage requirement does not exist, the inter-core communication is not needed, the diagnostic information is screened through the preset judgment logic, and the diagnostic information needing to be stored is obtained, so that the inter-core communication is not needed to be carried out on all the diagnostic information, and the inter-core communication load is reduced.
And the communication unit B is used for sending the diagnosis information to the diagnosis main control domain when the diagnosis information has a storage requirement, so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information, and when the diagnosis information has no storage requirement, the diagnosis information is ignored.
In the scheme, when the storage requirement judging unit A detects that the diagnostic information has a storage requirement, the diagnostic information is sent to a diagnosis main control domain through the inter-core communication unit B through the communication software of the domain, and then the diagnostic information is stored in a storage area corresponding to the domain generating the diagnostic information through the main control domain. For example, when the R2 domain generates the diagnostic information that needs to be stored, the inter-core communication unit B sends the R2 domain generated diagnostic information to the diagnostic master domain, and the diagnostic master domain stores the diagnostic information in the R2 storage area corresponding to the R2 domain.
According to the scheme, in order to reduce the inter-core communication load among the domains in the diagnosis device, a diagnosis strategy and a storage region are configured for each domain, when any domain has diagnosis information, whether the diagnosis information has a storage requirement is judged, when the diagnosis information generated by the diagnosis software of the domain has the storage requirement, the inter-core communication is carried out, the diagnosis information is sent to the diagnosis main control domain, and then the diagnosis information is stored to the corresponding storage region through the diagnosis main control domain, so that the screening of the diagnosis information for the inter-core communication is realized, the number of the diagnosis information for the inter-core communication is reduced, the inter-core communication of all the diagnosis information is not needed, and the inter-core communication load is reduced.
In the technical solution disclosed in this embodiment, each non-diagnostic main control domain may be configured with a set of judgment unit a and communication unit B, and the judgment unit a and the communication unit B process the diagnostic information of the non-diagnostic main control domain corresponding thereto, or a plurality of non-diagnostic main control domains may share a set of judgment unit a and communication unit B, and the judgment unit a and the communication unit B process the diagnostic information of each non-diagnostic main control domain.
In the technical solution disclosed in this embodiment, the storage areas corresponding to the domains may include a Flash storage area and a RAM storage area, the RAM storage area is used for storing diagnostic information, and specifically, the RAM storage area is used for temporarily storing the diagnostic information when the device is initialized.
In another embodiment disclosed in the present application, the processor diagnostic device may specifically be an ECU diagnostic device, and a specific structure of the ECU diagnostic device may be as shown in fig. 4, in an example disclosed in fig. 4, the storage area may include a Flash storage area and a RAM storage area, the Flash storage area and the RAM storage area are used for storing diagnostic information corresponding to each domain, in fig. 4, the R1 diagnostic information, the R2 diagnostic information, the R3 diagnostic information, and the R4 diagnostic information are diagnostic information corresponding to each domain, the diagnostic information is stored in the Flash storage area and the RAM storage area, information synchronization between the Flash storage area and the RAM storage area, and a type of the processor may be selected by a user according to a requirement, in one specific embodiment disclosed in the present application, referring to fig. 2, a type of the processor may be DRA821, and of course, the DRA821 is only one specific example disclosed in the present application, the processor may also be other types of processors capable of performing data diagnostics. For example, TDA4VM or DRA829V, etc. The type of microprocessor subsystem may be selected by the user, and in one embodiment of the present disclosure, the example shown in fig. 2 may be Cortex-a 72. For example, Cortex-M3 or the like may be used. The type of MCU may be selected according to user requirements, and in one embodiment of the present disclosure, the example MCU shown in fig. 2 may be Cortex-B5F, where the MCU is used to provide hardware basis for each domain, and the inter-core communication IPC is used to provide inter-core communication channel. In the example disclosed in fig. 3, when each non-diagnosis master domain corresponds to one set of the determination unit a and the communication unit B, in a specific example disclosed in the present application, the determination unit a and the communication unit B may be integrated in the non-diagnosis master domain, and when each non-diagnosis master domain shares one set of the determination unit a and the communication unit B, in a specific example disclosed in the present application, the determination unit a and the communication unit B may be integrated in the inter-core communication IPC.
In the technical solution disclosed in this embodiment, the storage requirement may refer to a requirement that a diagnosis main control domain of the system has a storage space for storing diagnosis information to an external storage Flash. When judging whether the storage requirement exists in the diagnosis information, judging whether the storage requirement exists in the diagnosis information based on the diagnosis type of the diagnosis information, at the moment, presetting a plurality of preset diagnosis types, when the diagnosis information belongs to the preset diagnosis type, indicating that the storage requirement exists in the diagnosis information, otherwise, indicating that the storage requirement does not exist in the diagnosis information. For example, the preset diagnosis type may include that a fault code of a domain of the diagnosis information changes, and when the fault code corresponding to the domain generating the diagnosis information is indicated to be changed by the diagnosis information, the diagnosis information is indicated to have a storage requirement.
Corresponding to the processor diagnosis device, the application also discloses a processor diagnosis method, which is applied to the processor diagnosis device, wherein the processor diagnosis device comprises a plurality of domains and a storage region, the plurality of domains comprise at least one diagnosis master domain and at least 1 other domain, each domain in the plurality of domains stores a diagnosis strategy, the diagnosis strategy can be loaded in diagnosis software, each domain in the plurality of domains corresponds to the storage region for storing the diagnosis information of the domain, and the processor diagnosis method comprises the steps S101-S104 shown in figure 5.
In step S101: and judging whether any domain has diagnosis information generation.
In this scheme, the diagnostic result of the diagnostic software corresponding to each domain is monitored in real time, whether diagnostic information is generated in the diagnostic software corresponding to any domain is judged, and when diagnostic information is generated in the diagnostic software corresponding to any domain, step S102 is executed.
In step S102: when any domain has the diagnosis information, judging whether the diagnosis information has the storage requirement, if so, executing the step S103, otherwise, executing the step S104.
In the step, when it is detected that diagnostic information is generated in diagnostic software of a certain domain, whether the diagnostic information has a storage requirement is judged based on preset judgment logic, in the scheme, when the diagnostic information has the storage requirement, inter-core communication is required to store the diagnostic information, when the storage requirement does not exist, the inter-core communication is not required, the diagnostic information can be ignored at the moment, the diagnostic information is filtered through the judgment of the preset judgment logic, so that the screening of the diagnostic information for the inter-core communication is realized, the inter-core communication is not required for all the diagnostic information, and the inter-core communication load is reduced.
Specifically, when judging whether the storage requirement exists in the diagnostic information, whether the storage requirement exists in the diagnostic information can be judged based on the diagnostic type of the diagnostic information. For example, when the diagnostic information indicates that the fault code corresponding to the domain generating the diagnostic information changes, the diagnostic information is indicated to have a storage requirement.
In step S103: when the diagnosis information has a storage requirement, the diagnosis information is sent to the diagnosis main control domain in an inter-core communication mode, so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information.
In the scheme, when the storage requirement of the diagnostic information is detected, the diagnostic information is sent to a diagnostic main control domain through inter-core communication IPC through communication software of the domain, and then the diagnostic information is stored in a storage area corresponding to the domain generating the diagnostic information through the diagnostic main control domain.
In the scheme, the storage requirement can refer to the requirement that a diagnosis main control domain of the system has storage space for storing diagnosis information to an external storage Flash.
In step S104: the diagnostic information is ignored.
When the diagnosis information has no storage requirement, the diagnosis information is shown to be stored without adopting a diagnosis main control domain, and at the moment, the diagnosis information can be ignored without sending the diagnosis information to the diagnosis main control domain through inter-core communication IPC.
According to the scheme, in order to reduce the inter-core communication load, a diagnosis strategy and a storage area are configured for each domain, when the diagnosis information generated by the diagnosis strategy of the domain has a storage requirement, the inter-core communication is carried out, and the diagnosis information is sent to the diagnosis main control domain, so that the screening of the diagnosis information for carrying out the inter-core communication is realized, the inter-core communication of all the diagnosis information is not needed, the quantity of the diagnosis information for the inter-core communication is reduced, and the inter-core communication load is reduced.
Corresponding to the above method, the present application also discloses a diagnostic device, fig. 6 is a hardware structure diagram of the diagnostic device provided in the embodiment of the present invention, and as shown in fig. 6, the diagnostic device includes: the method can comprise the following steps: at least one processor 100, at least one communication interface 200, at least one memory 300, and at least one communication bus 400;
in the embodiment of the present invention, the number of the processor 100, the communication interface 200, the memory 300, and the communication bus 400 is at least one, and the processor 100, the communication interface 200, and the memory 300 complete the communication with each other through the communication bus 400; it is clear that the communication connections shown by the processor 100, the communication interface 200, the memory 300 and the communication bus 400 shown in fig. 6 are only optional;
optionally, the communication interface 200 may be an interface of a communication module, such as an interface of a GSM module;
the processor 100 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention.
Memory 300 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
Wherein, the processor 100 is specifically configured to:
when any domain has the diagnosis information, judging whether the diagnosis information has the storage requirement, and when the diagnosis information has the storage requirement, sending the diagnosis information to the diagnosis main control domain so that the diagnosis main control domain stores the diagnosis information to the storage area corresponding to the diagnosis information. Corresponding to the method, the processor is further configured to perform the steps of the processor diagnostic method disclosed in any of the above embodiments of the present application.
In this embodiment, the electronic device may be an automobile, which may be a manually driven automobile, and may be an automobile with an unmanned function.
By combining the above solutions, it can be seen that in the multi-domain fusion ECU diagnosis solution disclosed in the embodiment of the present application, the nuclear diagnosis information corresponding to each domain can be managed individually, and only when the diagnosis main control domain needs to store the diagnosis information to the external Flash storage region, the diagnosis information needs to be transmitted through inter-core communication, so that the inter-core communication frequency is reduced, and the inter-core communication load caused by the transmission of the diagnosis information among the cores is reduced.
For convenience of description, the above system is described with the functions divided into various modules, which are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations of the invention.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are merely illustrative, wherein units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A processor diagnostic apparatus comprising a plurality of domains and a storage area, wherein one diagnostic master domain is provided in the plurality of domains, and each of the plurality of domains stores a diagnostic policy, and wherein each of the plurality of domains corresponds to the storage area for storing diagnostic information of the domain, the processor diagnostic apparatus further comprising:
the storage requirement judging unit is used for judging whether the diagnostic information has a storage requirement when any domain has the diagnostic information; and
and the communication unit is used for sending the diagnosis information to a diagnosis main control domain when the diagnosis information has a storage requirement, so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information.
2. The processor diagnostic apparatus according to claim 1, wherein the storage demand judging unit, when judging whether the diagnostic information has a storage demand, comprises:
acquiring the diagnosis type of the diagnosis information;
judging whether the diagnosis type of the diagnosis information belongs to a preset diagnosis type, when the diagnosis type of the diagnosis information belongs to the preset diagnosis type, indicating that the diagnosis information has a storage requirement, otherwise, indicating that the diagnosis information has no storage requirement.
3. The processor diagnostic apparatus according to claim 2, wherein the preset diagnostic type includes a change in a fault code of a domain of the diagnostic information.
4. The processor diagnostic device according to claim 1, further comprising a storage unit for providing the storage area,
each of the memory units is preconfigured with a domain identification corresponding to a domain within the processor diagnostic device,
the storage unit comprises a Flash storage unit and a RAM storage unit,
the Flash storage unit is used for providing a Flash storage area, the RAM storage unit is used for providing a RAM storage area,
when the processor diagnosis device is detected to be initialized, the data information in the Flash storage area of each storage area is mirrored to the RAM storage area of the storage area.
5. The processor diagnostic device of claim 1, wherein the communication unit is further configured to ignore the diagnostic information when the diagnostic information has no storage requirements.
6. A processor diagnostic method applied to a processor diagnostic apparatus including a plurality of domains and a storage area, the plurality of domains having one diagnostic master domain and each of the plurality of domains storing a diagnostic policy, each of the plurality of domains corresponding to the storage area for storing diagnostic information of the domain, the method comprising:
when any domain has the diagnosis information, judging whether the diagnosis information has the storage requirement, and when the diagnosis information has the storage requirement, sending the diagnosis information to a diagnosis main control domain so that the diagnosis main control domain stores the diagnosis information to a storage area corresponding to the diagnosis information.
7. The processor diagnostic method of claim 6, wherein determining whether the diagnostic information has a storage requirement comprises:
acquiring the diagnosis type of the diagnosis information;
judging whether the diagnosis type of the diagnosis information belongs to a preset diagnosis type;
and when the diagnosis type of the diagnosis information belongs to the preset diagnosis type, indicating that the diagnosis information has a storage requirement, otherwise, indicating that the diagnosis information has no storage requirement.
8. The processor diagnostic method according to claim 7, wherein the preset diagnostic type comprises at least: the fault code of the domain of diagnostic information changes.
9. The processor diagnostic method of claim 6, wherein the memory area comprises a Flash memory area and a RAM memory area; the method further comprises the following steps:
and when the multi-domain fusion ECU diagnosis system is detected to be initialized, mirroring the data information in the Flash storage area of each storage area to the RAM storage area of the storage area.
10. An electronic device, comprising a memory storing a program adapted to be executed by a processor diagnosing apparatus, and the processor diagnosing apparatus executing the program to implement the processor diagnosing method according to any one of claims 6 to 9.
CN202111087388.XA 2021-09-16 2021-09-16 Processor diagnostic device, processor diagnostic method, and electronic apparatus Pending CN114967634A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111087388.XA CN114967634A (en) 2021-09-16 2021-09-16 Processor diagnostic device, processor diagnostic method, and electronic apparatus
PCT/CN2022/119317 WO2023041036A1 (en) 2021-09-16 2022-09-16 Processor diagnosis apparatus, processor diagnosis method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111087388.XA CN114967634A (en) 2021-09-16 2021-09-16 Processor diagnostic device, processor diagnostic method, and electronic apparatus

Publications (1)

Publication Number Publication Date
CN114967634A true CN114967634A (en) 2022-08-30

Family

ID=82974500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111087388.XA Pending CN114967634A (en) 2021-09-16 2021-09-16 Processor diagnostic device, processor diagnostic method, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN114967634A (en)
WO (1) WO2023041036A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023041036A1 (en) * 2021-09-16 2023-03-23 长城汽车股份有限公司 Processor diagnosis apparatus, processor diagnosis method and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2446831B (en) * 2007-02-22 2011-06-15 Advanced Risc Mach Ltd Selective disabling of diagnostic functions within a data processing system
JP5310138B2 (en) * 2009-03-13 2013-10-09 株式会社デンソー Vehicle control system
JP5590022B2 (en) * 2011-12-28 2014-09-17 富士通株式会社 Information processing apparatus, control method, and control program
CN108628726B (en) * 2017-03-22 2021-02-23 比亚迪股份有限公司 CPU state information recording method and device
CN112882742A (en) * 2019-11-30 2021-06-01 华为技术有限公司 Software updating method and related equipment
CN112445630B (en) * 2020-11-18 2023-06-02 深圳市元征科技股份有限公司 Information interaction method and device and terminal equipment
CN114967634A (en) * 2021-09-16 2022-08-30 长城汽车股份有限公司 Processor diagnostic device, processor diagnostic method, and electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023041036A1 (en) * 2021-09-16 2023-03-23 长城汽车股份有限公司 Processor diagnosis apparatus, processor diagnosis method and electronic device

Also Published As

Publication number Publication date
WO2023041036A1 (en) 2023-03-23

Similar Documents

Publication Publication Date Title
US11842582B2 (en) Layered electrical architecture for vehicle diagnostics
CN105981336B (en) Abnormality detection electronic control unit, vehicle-mounted network system, and abnormality detection method
DE102015214915B4 (en) Flexible scheduling method and scheduling device in LIN communication
CN105703991B (en) Local interconnect network system and method
CN112000083A (en) ECU data flashing method, flashing device, flashing equipment and storage medium
JP2007034910A (en) Multi-cpu system and scheduler
CN114967634A (en) Processor diagnostic device, processor diagnostic method, and electronic apparatus
CN104683126B (en) Network management based on CAN
KR20100020253A (en) Monitoring apparatus for message transmission in network for a vehicle
KR100976710B1 (en) Gateway device for car
CN105785977B (en) The date storage method and electric-control system of the electric-control system of vehicle
US11167766B2 (en) Steering control apparatus and steering control method and, steering system
CN116319499A (en) Diagnostic method and device for vehicle, electronic equipment and storage medium
CN115225481B (en) Gateway diagnosis route configuration method and device, vehicle-mounted gateway, vehicle and medium
CN111740972B (en) Method, device, equipment and storage medium for updating communication protocol stack information
JP6979630B2 (en) Monitoring equipment, monitoring methods and programs
JP2020044917A (en) Electronic control device
CN110371055A (en) A kind of analysis method and device of automobile power source signal
Moniruzzaman et al. Optimizing controller area network system for vehicular automation
CN115016969B (en) Repairing method and device for automobile electronic system
CN116431391A (en) Data backup method, device, vehicle and storage medium
CN116775375A (en) Method and system for data storage
CN115658257A (en) Scheduling method, device, equipment and storage medium based on automobile function service
JP2008041425A (en) Fuse monitoring device and fuse monitoring method
CN115658449A (en) Fault diagnosis data storage method and device, computer equipment and medium

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