CN116737475A - Chip diagnosis method, device, equipment and storage medium - Google Patents
Chip diagnosis method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN116737475A CN116737475A CN202310618151.2A CN202310618151A CN116737475A CN 116737475 A CN116737475 A CN 116737475A CN 202310618151 A CN202310618151 A CN 202310618151A CN 116737475 A CN116737475 A CN 116737475A
- Authority
- CN
- China
- Prior art keywords
- diagnosis
- chip
- target data
- core
- mpu core
- 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
- 238000003745 diagnosis Methods 0.000 title claims abstract description 182
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000004590 computer program Methods 0.000 claims description 16
- 238000002405 diagnostic procedure Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 10
- 238000004519 manufacturing process Methods 0.000 abstract description 9
- 238000011160 research Methods 0.000 abstract description 8
- 230000006870 function Effects 0.000 description 17
- 238000004891 communication Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012827 research and development Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000004171 remote diagnosis Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a chip diagnosis method, a device, equipment and a storage medium. The method is applied to a chip, and the chip comprises: an MCU core and an MPU core, the chip diagnosis method being performed by the MCU core, the chip diagnosis method comprising: receiving a diagnostic signal; determining target data from the diagnostic signal; and if the MPU core is in an idle state, sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of automobiles, in particular to a chip diagnosis method, a device, equipment and a storage medium.
Background
In recent years, with the continuous development of new energy automobiles, the trend of "software defined automobiles" is more obvious. The automotive electronics architecture is also converted from the original distributed controller architecture to a centralized domain controller architecture. The central domain controller has a plurality of SOC chips, wherein the MPU core CAN only diagnose through the Ethernet according to the AUTOSAR architecture, and the traditional MCU chip mostly diagnoses through the CAN bus. Therefore, once the domain controller architecture is replaced, the multiple controllers of the whole vehicle need to replace chips, and the research and development difficulty and the research and development cost are greatly increased. And the cost of the Ethernet harness is higher than that of the CAN harness, and the production cost is increased. Moreover, because of numerous functions on the domain controller, including OTA upgrade, remote diagnosis, etc., the conventional AUTOSAR architecture cannot process multiple diagnostic requests simultaneously, and once multiple external devices send diagnostic requests to the controller simultaneously, the functions are disabled.
Disclosure of Invention
The embodiment of the invention provides a chip diagnosis method, a device, equipment and a storage medium, which are used for realizing the function of enabling an SOC chip to be compatible with diagnosis through a CAN bus and reducing research, development and production cost.
According to an aspect of the present invention, there is provided a chip diagnosis method applied to a chip including: an MCU core and an MPU core, the chip diagnosis method being performed by the MCU core, the chip diagnosis method comprising:
receiving a diagnostic signal;
determining target data from the diagnostic signal;
and if the MPU core is in an idle state, sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data.
In some embodiments, the diagnostic signal is CAN protocol data;
determining target data from the diagnostic signal, comprising:
performing decryption operation on the CAN protocol data to obtain decrypted CAN protocol data;
and extracting target data from the decrypted CAN protocol data.
In some embodiments, the diagnostic signal carries identification information of a diagnostic source;
and if the MPU core is in an idle state, sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data, and then further comprising:
receiving a diagnosis result sent by the MPU core;
and sending the diagnosis result to a target diagnosis source corresponding to the identification information.
In some embodiments, if the MPU core is in an idle state, sending the target data to the MPU core to enable the MPU core to diagnose the chip according to the target data, including:
if the diagnosis signal sent by the target diagnosis source is not received within the preset time, judging that the MPU core is in an idle state, and sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data.
According to another aspect of the present invention, there is provided a chip diagnosis method applied to a chip including: an MCU core and an MPU core, the chip diagnosis method being executed by the MPU core, the chip diagnosis method comprising:
receiving target data sent by an MCU core;
and diagnosing the chip according to the target data.
In some embodiments, after implementing the diagnosis of the chip according to the target data, further comprising:
and sending the diagnosis result to the MCU core so that the MCU core sends the diagnosis result to a target diagnosis source.
According to another aspect of the present invention, there is provided a chip diagnosis apparatus comprising:
a first receiving module for receiving a diagnostic signal;
a determining module for determining target data according to the diagnostic signal;
and the first sending module is used for sending the target data to the MPU core if the MPU core is in an idle state, so that the MPU core can realize diagnosis of the chip according to the target data.
According to another aspect of the present invention, there is provided a chip diagnosis apparatus comprising:
the third receiving module is used for receiving target data sent by the MCU core;
and the diagnosis module is used for realizing the diagnosis of the chip according to the target data.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the chip diagnostic method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the chip diagnosis method according to any one of the embodiments of the present invention.
In the embodiment of the invention, the MCU core receives the diagnosis signal, and determines the target data according to the diagnosis signal, and if the MPU core is in an idle state, the MCU core sends the target data to the MPU core so as to enable the MPU core to realize the diagnosis of the chip according to the target data. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a chip diagnosis method in an embodiment of the invention;
FIG. 2 is a flow chart of another chip diagnosis method in an embodiment of the invention;
FIG. 3 is a schematic diagram of a chip diagnosis method in an embodiment of the invention;
fig. 4 is a schematic structural view of a chip diagnosis device according to an embodiment of the present invention;
fig. 5 is a schematic structural view of another chip diagnosis device in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device implementing a chip diagnosis method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a chip diagnosis method according to an embodiment of the present invention, where the method may be applied to the case of chip diagnosis, and the method may be performed by a chip diagnosis device according to an embodiment of the present invention, where the device may be implemented in software and/or hardware, as shown in fig. 1, and the method specifically includes the following steps:
s101, receiving a diagnosis signal.
In this embodiment, the Chip diagnosis method is applied to a Chip, which may specifically be an SOC (System on Chip) Chip, and the Chip includes: an MCU (Micro Controller Uint, micro control unit) core and an MPU (Micro Processor Uint, micro processing unit) core, the chip diagnosis method being executed by the MCU core.
In this embodiment, the diagnostic signal may be a signal transmitted from an external diagnostic source to diagnose a chip failure. By way of example, external diagnostic sources may include: OTA (Over-The-Air) upgrade module, remote diagnosis module and vehicle external diagnosis instrument, wherein, OTA upgrade module and remote diagnosis module can send The diagnosis signal through The mode of high in The clouds communication, and vehicle external diagnosis instrument can be connected with The automobile end through equipment such as computer and then send The diagnosis signal.
Specifically, the MCU core receives diagnostic signals transmitted from an external diagnostic source. In the actual operation process, the received diagnosis signals are in a first-come first-served principle so as to realize the coordinated control of each diagnosis system and ensure that the diagnosis resources of the controller are used as required.
S102, determining target data according to the diagnosis signals.
The target data may be data for determining a diagnosis signal, specifically, what portion or function of the chip is to be diagnosed. In actual operation, the target data may be in the form of binary data. For example, if the target data is 0001, it may represent that the diagnostic signal requires diagnosing the chip part 1; if the target data is 0010, it may represent that the diagnostic signal requires diagnosis of the function 2 of the chip, or the like.
Specifically, after receiving a diagnostic signal sent from an external diagnostic source, the MCU core determines target data according to the diagnostic signal.
And S103, if the MPU core is in an idle state, transmitting the target data to the MPU core so that the MPU core can diagnose the chip according to the target data.
The idle state may be a state in which the MPU core is idle, i.e., not performing chip diagnosis.
Specifically, if the MPU core is in an idle state, the MCU core transmits the target data to the MPU core, so that the MPU core can diagnose the chip according to the target data.
In the actual operation, the MCU core may transmit the target data to the MPU core by means of IPC (Inter-Process Communication ) communication. When the MPU core is in an idle state and can execute a chip diagnosis function, the MCU core transmits target data to the MPU core, and the state of the MPU core can be updated to a non-idle state.
Otherwise, if the MPU core is in a non-idle state, a prompt message is generated.
In the embodiment of the invention, the MCU core receives the diagnosis signal, and determines the target data according to the diagnosis signal, and if the MPU core is in an idle state, the MCU core sends the target data to the MPU core so as to enable the MPU core to realize the diagnosis of the chip according to the target data. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
Optionally, the diagnostic signal is CAN protocol data.
In this embodiment, the diagnostic signal is in the form of data of the CAN protocol.
Determining target data from the diagnostic signal, comprising:
and carrying out decryption operation on the CAN protocol data to obtain decrypted CAN protocol data.
In the actual operation process, in order to ensure the communication safety, the diagnostic signal sent by the external diagnostic source to the MCU core is generally data in an encryption mode, and after the MCU core receives the diagnostic signal, the diagnostic signal needs to be decrypted to obtain the decrypted diagnostic signal in the form of CAN protocol data. The specific decryption method and process are not limited in this embodiment.
And extracting target data from the decrypted CAN protocol data.
Specifically, after the MCU checks the diagnosis signal to decrypt, the decrypted CAN protocol data CAN include a check code, a file header, target data and other data. The MCU core extracts useful target data from the decrypted CAN protocol data.
Optionally, the diagnostic signal carries identification information of the diagnostic source.
In this embodiment, the identification information may be used to identify from which external diagnostic source the diagnostic signal specifically originates, and different external diagnostic sources may set different identification information, where the identification information may be represented by canid. Illustratively, the identification information canid of the diagnostic signal from the OTA upgrade module may be 001, the identification information canid of the diagnostic signal from the remote diagnostic module may be 002, and the identification information canid of the diagnostic signal from the vehicle external diagnostic apparatus may be 003.
If the MPU core is in the idle state, the method further comprises the steps of:
and receiving the diagnosis result sent by the MPU core.
The diagnosis result may be a result fed back after the SOC chip is checked by the MPU to perform diagnosis. The diagnosis result may be, for example, that the component a has failed or that no failure has been diagnosed.
Specifically, the MPU core generates a diagnosis result after diagnosing the chip according to the target data and sends the diagnosis result to the MCU core, and the MCU core receives the diagnosis result sent by the MPU core.
And sending the diagnosis result to a target diagnosis source corresponding to the identification information.
It should be explained that the target diagnostic source may be an external diagnostic source corresponding to the identification information carried by the diagnostic signal.
Specifically, after receiving the diagnosis result, the MCU core determines a target diagnosis source according to the identification information carried by the diagnosis signal, and then sends the diagnosis result to the target diagnosis source corresponding to the identification information. For example, the identification information canid carried by the diagnostic signal may be 002, and if the MCU core determines that the target diagnostic source is a remote diagnostic module according to the identification information 002, the MCU core sends the diagnostic result to the remote diagnostic module.
Optionally, if the MPU core is in an idle state, sending the target data to the MPU core, so that the MPU core can diagnose the chip according to the target data, including:
if the diagnostic signal sent by the target diagnostic source is not received within the preset time, judging that the MPU core is in an idle state, and sending the target data to the MPU core so that the MPU core can diagnose the chip according to the target data.
The preset time may be a time preset by a user according to an actual situation, which is not limited in this embodiment. Preferably, the preset time may be 10 seconds.
Specifically, if the diagnostic signal transmitted from the same diagnostic source is not received within a preset time, for example, 10 seconds, it may be determined that the MPU core is in an idle state, and the MCU core transmits the target data to the MPU core, so that the MPU core performs a diagnosis of the chip according to the target data.
According to the technical scheme, the MCU core receives the diagnosis signal, wherein the diagnosis signal is CAN protocol data, then the MCU core checks the CAN protocol data to perform decryption operation to obtain decrypted CAN protocol data, the MCU core extracts target data from the decrypted CAN protocol data, if the diagnosis signal sent by the target diagnosis source is not received within a preset time, the MCU core judges that the MPU core is in an idle state, the MCU core sends the target data to the MPU core, so that the MPU core CAN realize diagnosis of the chip according to the target data, and finally the MCU core receives a diagnosis result sent by the MPU core and sends the diagnosis result to the target diagnosis source corresponding to the identification information. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
Example two
Fig. 2 is a flowchart of another chip diagnosis method according to an embodiment of the present invention, where the method may be applied to the case of chip diagnosis, and the method may be performed by a chip diagnosis device according to an embodiment of the present invention, where the device may be implemented in software and/or hardware, as shown in fig. 2, and the method specifically includes the following steps:
s201, receiving target data sent by the MCU core.
In this embodiment, the chip diagnosis method is applied to a chip, which may specifically be an SOC chip, and the chip includes: the MCU core and the MPU core, the chip diagnosis method is executed by the MPU core.
Specifically, the MPU core receives target data transmitted by the MCU core.
S202, diagnosis of the chip is achieved according to the target data.
Specifically, the MPU core performs diagnosis on the chip according to the target data transmitted by the MCU core.
According to the embodiment of the invention, the MPU core receives the target data sent by the MCU core, and the MPU core realizes the diagnosis of the chip according to the target data. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
Optionally, after the diagnosis of the chip is implemented according to the target data, the method further includes:
and sending the diagnosis result to the MCU core so that the MCU core sends the diagnosis result to a target diagnosis source.
Specifically, the MPU core generates a diagnosis result after implementing diagnosis of the chip according to the target data transmitted by the MCU core, and then transmits the diagnosis result to the MCU core, so that the MCU core transmits the diagnosis result to the target diagnosis source.
According to the technical scheme, the MPU core receives target data sent by the MCU core, diagnosis of the chip is achieved according to the target data, and then the diagnosis result is sent to the MCU core, so that the MCU core sends the diagnosis result to a target diagnosis source. Through the technical scheme of the invention, the SOC chip CAN be compatible with the function of diagnosis through the CAN bus, and the research, development and production costs are reduced.
Example III
Fig. 3 is a schematic diagram of a chip diagnosis method in an embodiment of the invention. As shown in fig. 3, the SOC chip package has two major parts: the MCU core and the MPU core communicate through an IPC communication mode. Wherein, the MCU core comprises: can module, cannif module, DPC (Diagnosis Protocol Convert, diagnostic protocol conversion) module, and MPU core includes: the DM module is a module for realizing a diagnostic function in an adaptive AUTOSAR (adaptive AUTOSAR) architecture.
The DPC module in the embodiment of the invention is a software module based on an AUTOSAR architecture, is deployed in an MCU core of a vehicle-mounted SOC chip, can be multiplexed in all codes conforming to the AUTOSAR architecture, and can reduce the research and development cost and shorten the development period of a controller.
The chip diagnosis method can be described as follows: the MCU core of the SOC chip receives the CAN diagnosis signal through interruption, sends the CAN diagnosis signal to the canif module through a CAN module of a classic AUTOSAR (classical AUTOSAR) architecture, and then transmits the diagnosis signal to the DPC module. The DPC module receives the diagnosis signal and determines target data according to the diagnosis signal, and if the MPU core is in an idle state, the DPC module sends the target data to the MPU core in an IPC communication mode. The DM module in the MPU core receives the target data sent by the DPC module in the MCU core, and the diagnosis of the chip is realized according to the target data. And after diagnosis is finished, sending a diagnosis result to a DPC module in the MCU core in an IPC communication mode. After receiving the diagnosis result, the DPC module in the MCU core sends the diagnosis result to a target diagnosis source corresponding to the identification information carried by the diagnosis signal.
The technical scheme of the embodiment of the invention CAN solve the problem that the SOC chip cannot be diagnosed through the CAN bus in the prior art, so that the SOC chip CAN be compatible with the function of diagnosing through the CAN bus, other controllers are hung under the domain controller without replacing a main chip supporting Ethernet diagnosis, most controllers of the whole vehicle, such as a vehicle door, a vehicle window, an acoustic controller and the like, CAN be reused, and the research and development cost is reduced; meanwhile, the whole wire harness does not need to be completely redesigned, a large number of old CAN wire harnesses CAN be reused, and the research, development and production cost is reduced. In addition, the embodiment of the invention also provides software processing logic under the condition that a plurality of external devices send diagnostic signals to the controller at the same time, so that the diagnostic signals sent from various diagnostic sources (the OTA upgrading module, the remote diagnostic module and the vehicle external diagnostic instrument) are not affected, and the stability of the controller software is improved.
Example IV
Fig. 4 is a schematic structural view of a chip diagnosis device according to an embodiment of the present invention. The present embodiment may be applied to the case of chip diagnosis, and the apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in any device that provides a function of chip diagnosis, as shown in fig. 4, where the chip diagnosis apparatus specifically includes: a first receiving module 301, a determining module 302 and a first transmitting module 303.
Wherein, the first receiving module 301 is configured to receive a diagnostic signal;
a determining module 302, configured to determine target data according to the diagnostic signal;
and a first sending module 303, configured to send the target data to the MPU core if the MPU core is in an idle state, so that the MPU core can implement diagnosis on a chip according to the target data.
Optionally, the diagnostic signal is CAN protocol data;
the determining module 302 includes:
the decryption unit is used for performing decryption operation on the CAN protocol data to obtain decrypted CAN protocol data;
and the extraction unit is used for extracting target data from the decrypted CAN protocol data.
Optionally, the diagnostic signal carries identification information of a diagnostic source;
the chip diagnosis device further includes:
the second receiving module is used for sending the target data to the MPU core if the MPU core is in an idle state, so that the MPU core can receive a diagnosis result sent by the MPU core after diagnosing the chip according to the target data;
and the second sending module is used for sending the target data to the MPU core if the MPU core is in an idle state, so that the MPU core can realize diagnosis of the chip according to the target data and then send the diagnosis result to a target diagnosis source corresponding to the identification information.
Optionally, the first sending module 303 includes:
and the sending unit is used for judging that the MPU core is in an idle state if the diagnostic signal sent by the target diagnostic source is not received within the preset time, and sending the target data to the MPU core so as to enable the MPU core to realize the diagnosis of the chip according to the target data.
The product can execute the chip diagnosis method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the chip diagnosis method.
Example five
Fig. 5 is a schematic structural view of a chip diagnosis device according to an embodiment of the present invention. The present embodiment may be applied to the case of chip diagnosis, and the apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in any device that provides a function of chip diagnosis, as shown in fig. 5, where the chip diagnosis apparatus specifically includes: a third receiving module 401 and a diagnostic module 402.
The third receiving module 401 is configured to receive target data sent by the MCU core;
and a diagnosis module 402, configured to implement diagnosis of the chip according to the target data.
Optionally, the chip diagnosis device further includes:
and the third sending module is used for sending the diagnosis result to the MCU core after the diagnosis of the chip is realized according to the target data, so that the MCU core sends the diagnosis result to a target diagnosis source.
The product can execute the chip diagnosis method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the chip diagnosis method.
Example six
Fig. 6 shows a schematic diagram of an electronic device 50 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 50 includes at least one processor 51, and a memory, such as a Read Only Memory (ROM) 52, a Random Access Memory (RAM) 53, etc., communicatively connected to the at least one processor 51, in which the memory stores a computer program executable by the at least one processor, and the processor 51 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 52 or the computer program loaded from the storage unit 58 into the Random Access Memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52 and the RAM 53 are connected to each other via a bus 54. An input/output (I/O) interface 55 is also connected to bus 54.
Various components in the electronic device 50 are connected to the I/O interface 55, including: an input unit 56 such as a keyboard, a mouse, etc.; an output unit 57 such as various types of displays, speakers, and the like; a storage unit 58 such as a magnetic disk, an optical disk, or the like; and a communication unit 59 such as a network card, modem, wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The processor 51 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 51 performs the various methods and processes described above.
In some embodiments, the chip diagnosis method may be implemented as a computer program, which is tangibly embodied on a computer-readable storage medium, such as the storage unit 58. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 50 via the ROM 52 and/or the communication unit 59. When the computer program is loaded into RAM 53 and executed by processor 51, one or more steps of the chip diagnosis method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to perform the chip diagnostic method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method of diagnosing a chip, the method comprising: an MCU core and an MPU core, the chip diagnosis method being performed by the MCU core, the chip diagnosis method comprising:
receiving a diagnostic signal;
determining target data from the diagnostic signal;
and if the MPU core is in an idle state, sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data.
2. The method of claim 1, wherein the diagnostic signal is CAN protocol data;
determining target data from the diagnostic signal, comprising:
performing decryption operation on the CAN protocol data to obtain decrypted CAN protocol data;
and extracting target data from the decrypted CAN protocol data.
3. The method of claim 1, wherein the diagnostic signal carries identification information of a diagnostic source;
and if the MPU core is in an idle state, sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data, and then further comprising:
receiving a diagnosis result sent by the MPU core;
and sending the diagnosis result to a target diagnosis source corresponding to the identification information.
4. The method of claim 1, wherein if the MPU core is in an idle state, transmitting the target data to the MPU core to cause the MPU core to perform a diagnosis of a chip based on the target data, comprising:
if the diagnosis signal sent by the target diagnosis source is not received within the preset time, judging that the MPU core is in an idle state, and sending the target data to the MPU core so that the MPU core can realize the diagnosis of the chip according to the target data.
5. A method of diagnosing a chip, the method comprising: an MCU core and an MPU core, the chip diagnosis method being executed by the MPU core, the chip diagnosis method comprising:
receiving target data sent by an MCU core;
and diagnosing the chip according to the target data.
6. The method of claim 5, further comprising, after implementing the diagnosis of the chip based on the target data:
and sending the diagnosis result to the MCU core so that the MCU core sends the diagnosis result to a target diagnosis source.
7. A chip diagnosis device, comprising:
a first receiving module for receiving a diagnostic signal;
a determining module for determining target data according to the diagnostic signal;
and the first sending module is used for sending the target data to the MPU core if the MPU core is in an idle state, so that the MPU core can realize diagnosis of the chip according to the target data.
8. A chip diagnosis device, comprising:
the third receiving module is used for receiving target data sent by the MCU core;
and the diagnosis module is used for realizing the diagnosis of the chip according to the target data.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the chip diagnostic method of any one of claims 1-4 or the chip diagnostic method of any one of claims 5-6.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores computer instructions for causing a processor to implement the chip diagnosis method of any one of claims 1-4 or the chip diagnosis method of any one of claims 5-6 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310618151.2A CN116737475A (en) | 2023-05-29 | 2023-05-29 | Chip diagnosis method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310618151.2A CN116737475A (en) | 2023-05-29 | 2023-05-29 | Chip diagnosis method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116737475A true CN116737475A (en) | 2023-09-12 |
Family
ID=87914362
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310618151.2A Pending CN116737475A (en) | 2023-05-29 | 2023-05-29 | Chip diagnosis method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116737475A (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080086250A1 (en) * | 2006-10-05 | 2008-04-10 | Renesas Technology America, Inc. | Squib driver circuit diagnostic system and method |
CN107450003A (en) * | 2016-05-30 | 2017-12-08 | 瑞萨电子株式会社 | The method of semiconductor device, electronic control system and assessment electronics control system |
CN109541987A (en) * | 2018-10-17 | 2019-03-29 | 同济大学 | A kind of plug and play type intelligent automobile domain controller and method with redundancy structure |
CN111469780A (en) * | 2020-05-22 | 2020-07-31 | 苏州途驰安电子科技有限公司 | Vehicle circuit structure compatible with multiple data acquisition modes |
CN111752830A (en) * | 2020-06-22 | 2020-10-09 | 中国第一汽车股份有限公司 | Automobile diagnosis system, and updating method, device and equipment of automobile diagnosis system |
CN114064080A (en) * | 2021-11-17 | 2022-02-18 | 国汽智控(北京)科技有限公司 | Vehicle software upgrading method, device, equipment and storage medium |
CN114265386A (en) * | 2021-12-10 | 2022-04-01 | 重庆长安汽车股份有限公司 | SOA-based application service diagnosis framework and method |
CN114625647A (en) * | 2022-03-14 | 2022-06-14 | 东风汽车集团股份有限公司 | Detection method, device, equipment and computer readable storage medium |
WO2022235265A1 (en) * | 2021-05-05 | 2022-11-10 | Zeku, Inc. | Debug channel for communication between a processor and an external debug host |
CN115390546A (en) * | 2022-08-16 | 2022-11-25 | 北京经纬恒润科技股份有限公司 | Vehicle diagnostic communication method, device, equipment and medium |
CN115712908A (en) * | 2022-10-31 | 2023-02-24 | 中汽创智科技有限公司 | Inter-chip data processing method, device, equipment and storage medium |
CN115756322A (en) * | 2022-11-15 | 2023-03-07 | 中国第一汽车股份有限公司 | Data storage method and device, electronic equipment and storage medium |
CN115933591A (en) * | 2022-11-30 | 2023-04-07 | 中国第一汽车股份有限公司 | Controller diagnosis method, device, equipment and storage medium |
CN116009510A (en) * | 2022-12-26 | 2023-04-25 | 博泰车联网科技(上海)股份有限公司 | Vehicle-mounted control system abnormality processing method and device and vehicle |
CN116166302A (en) * | 2023-01-05 | 2023-05-26 | 联合汽车电子有限公司 | Vehicle-mounted central gateway system, software refreshing method thereof and computer storage medium |
-
2023
- 2023-05-29 CN CN202310618151.2A patent/CN116737475A/en active Pending
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080086250A1 (en) * | 2006-10-05 | 2008-04-10 | Renesas Technology America, Inc. | Squib driver circuit diagnostic system and method |
CN107450003A (en) * | 2016-05-30 | 2017-12-08 | 瑞萨电子株式会社 | The method of semiconductor device, electronic control system and assessment electronics control system |
CN109541987A (en) * | 2018-10-17 | 2019-03-29 | 同济大学 | A kind of plug and play type intelligent automobile domain controller and method with redundancy structure |
CN111469780A (en) * | 2020-05-22 | 2020-07-31 | 苏州途驰安电子科技有限公司 | Vehicle circuit structure compatible with multiple data acquisition modes |
CN111752830A (en) * | 2020-06-22 | 2020-10-09 | 中国第一汽车股份有限公司 | Automobile diagnosis system, and updating method, device and equipment of automobile diagnosis system |
WO2022235265A1 (en) * | 2021-05-05 | 2022-11-10 | Zeku, Inc. | Debug channel for communication between a processor and an external debug host |
CN114064080A (en) * | 2021-11-17 | 2022-02-18 | 国汽智控(北京)科技有限公司 | Vehicle software upgrading method, device, equipment and storage medium |
CN114265386A (en) * | 2021-12-10 | 2022-04-01 | 重庆长安汽车股份有限公司 | SOA-based application service diagnosis framework and method |
CN114625647A (en) * | 2022-03-14 | 2022-06-14 | 东风汽车集团股份有限公司 | Detection method, device, equipment and computer readable storage medium |
CN115390546A (en) * | 2022-08-16 | 2022-11-25 | 北京经纬恒润科技股份有限公司 | Vehicle diagnostic communication method, device, equipment and medium |
CN115712908A (en) * | 2022-10-31 | 2023-02-24 | 中汽创智科技有限公司 | Inter-chip data processing method, device, equipment and storage medium |
CN115756322A (en) * | 2022-11-15 | 2023-03-07 | 中国第一汽车股份有限公司 | Data storage method and device, electronic equipment and storage medium |
CN115933591A (en) * | 2022-11-30 | 2023-04-07 | 中国第一汽车股份有限公司 | Controller diagnosis method, device, equipment and storage medium |
CN116009510A (en) * | 2022-12-26 | 2023-04-25 | 博泰车联网科技(上海)股份有限公司 | Vehicle-mounted control system abnormality processing method and device and vehicle |
CN116166302A (en) * | 2023-01-05 | 2023-05-26 | 联合汽车电子有限公司 | Vehicle-mounted central gateway system, software refreshing method thereof and computer storage medium |
Non-Patent Citations (2)
Title |
---|
***等: "电动汽车工程手册", 31 December 2019, 机械工业出版社, pages: 532 * |
杨艳秋;李建勇;曹长修;: "基于嵌入式MPU和CAN总线的测控***设计", 微计算机信息, no. 05 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113766487B (en) | Cloud mobile phone information acquisition method, device, equipment and medium | |
CN110609755A (en) | Message processing method, device, equipment and medium for cross-block chain node | |
CN111736867A (en) | FPGA updating device, method and storage medium | |
CN112559125A (en) | Container application migration method and device, electronic equipment and computer readable medium | |
CN115794313A (en) | Virtual machine debugging method, system, electronic equipment and storage medium | |
CN114064091A (en) | OTA (over the air) upgrade control method and device, electronic equipment and automatic driving vehicle | |
CN113656239A (en) | Monitoring method and device for middleware and computer program product | |
CN112887355B (en) | Service processing method and device for abnormal server | |
CN115933591B (en) | Controller diagnosis method, device, equipment and storage medium | |
CN116700776A (en) | Information management method, device, equipment and storage medium of battery management system | |
CN116737475A (en) | Chip diagnosis method, device, equipment and storage medium | |
CN114070889B (en) | Configuration method, traffic forwarding device, storage medium, and program product | |
CN114915516A (en) | Communication method and device | |
CN115225556A (en) | Detection method, device, equipment and storage medium | |
CN114996169B (en) | Device diagnosis method, device, electronic device, and storage medium | |
CN113535187B (en) | Service online method, service updating method and service providing method | |
CN116756061A (en) | External equipment adaptation method, device, equipment and storage medium | |
CN117033029A (en) | Data transmission method, device, equipment and medium | |
CN117389927A (en) | Data processing method, device, equipment and medium for automobile open system architecture | |
CN114756433A (en) | Data processing method, device, equipment and storage medium | |
CN116467144A (en) | Application program monitoring method, device, equipment, chip and medium | |
CN117193825A (en) | Method and device for calling update function, electronic equipment and storage medium | |
CN115782585A (en) | Monitoring system, method and medium for enabling signal transmission node | |
CN116279286A (en) | Unlocking method, device, equipment and medium of engine | |
CN116804932A (en) | Vehicle software identification recognition method and device, electronic equipment and storage 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 |