Redundancy calibration diagnosis method and device, equipment and storage medium

By acquiring and verifying the diagnostic environment information, sending and synchronizing the data set to the microcontroller, the problem of low calibration diagnosis efficiency in traditional redundant electric power steering systems is solved, and an efficient and reliable calibration process is achieved, ensuring the functional continuity of the system.

CN120560221APending Publication Date: 2025-08-29CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510683902.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-26
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

The calibration and diagnostic operation of traditional redundant electric power steering systems is inefficient, and it is easy to fail due to the environment's failure to meet the conditions, reducing the one-time pass rate.

Method used

By obtaining diagnostic environment information, if the conditions are met, a diagnostic data set is sent to the first microcontroller for writing. After successful, it is synchronized with the second microcontroller to ensure data consistency and verify the environment before writing to avoid abnormal states.

Benefits of technology

It improves the efficiency of calibration diagnosis, reduces the probability of misoperation, ensures consistency of calibration results, reduces failures caused by environmental failure, and maintains functional continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120560221A_ABST
    Figure CN120560221A_ABST
Patent Text Reader

Abstract

The invention provides a redundancy calibration diagnosis method, device and equipment and a storage medium, and the method comprises the steps: obtaining the current diagnosis environment information through responding to the completion of the diagnosis communication link connection with a first microcontroller, and if the current diagnosis environment information meets a preset diagnosis environment judgment condition, judging whether the current diagnosis environment information meets the preset diagnosis environment judgment condition; if yes, a diagnosis data set is sent to the first microcontroller based on the diagnosis communication link, so that the first microcontroller performs writing according to the diagnosis data set, and if the first microcontroller successfully writes the diagnosis data set, the first microcontroller and the second microcontroller are triggered to perform data synchronization so as to complete redundancy calibration diagnosis; according to the invention, connection and data transmission are carried out on the first microcontroller through the diagnosis communication link, and then through internal data synchronization of the microcontroller, repeated operation steps in the traditional technology are avoided, so that the efficiency is improved, the misoperation probability is reduced while the operation complexity is reduced, and the user experience is improved. And the current diagnosis environment information is also obtained and verified to avoid substandard environment, so that the one-time passing rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control, and in particular to a redundant calibration diagnosis method, device, equipment and storage medium. Background Art

[0002] The traditional master-slave redundant electric power steering system is designed based on a dual-segment communication architecture. The vehicle diagnostic interface and the main and auxiliary microcontrollers of the electric power steering system control unit are connected via the primary or redundant network segments, respectively, to achieve two-way data exchange and redundant control. During the calibration and diagnostic process, the diagnostic equipment must simultaneously send calibration diagnostic instructions to both the primary and auxiliary microcontrollers. The primary and auxiliary microcontrollers independently perform calibration operations based on diagnostic conditions and feedback the calibration results or diagnostic codes via their respective communication links. If the primary network segment communication is abnormal or the primary microcontroller calibration fails, the system automatically switches to the redundant network segment and the auxiliary microcontroller takes over control, ensuring the continuity of the steering function. If both chips feedback abnormalities, a global error is triggered and the process is forcibly terminated, requiring the vehicle status to be re-verified and the operation to be repeated.

[0003] Currently, this type of redundant architecture is widely used. Its hardware redundancy and dual-core verification mechanisms significantly improve system fault tolerance, preventing dual-system crashes caused by common faults. However, due to the different locations of diagnostic interfaces in existing technologies, technicians must perform calibration and diagnostic operations separately, which is inefficient. Furthermore, if the environmental conditions of one microcontroller do not meet the calibration diagnostic requirements, the calibration and diagnostic operation can easily fail, reducing the first-pass pass rate. Summary of the Invention

[0004] The purpose of the embodiments of the present invention is to provide a redundant calibration diagnosis method, device, equipment and storage medium to solve the above technical problems.

[0005] The present invention provides a redundant calibration diagnostic method, which includes: in response to the completion of the connection of a diagnostic communication link with a first microcontroller, obtaining current diagnostic environment information; if the current diagnostic environment information meets the preset diagnostic environment judgment condition, sending a diagnostic data set to the first microcontroller based on the diagnostic communication link, so that the first microcontroller writes according to the diagnostic data set; if the first microcontroller successfully writes the diagnostic data set, triggering the first microcontroller to synchronize data with the second microcontroller to complete the redundant calibration diagnosis.

[0006] In one embodiment of the present invention, after the first microcontroller writes according to the diagnostic data set, it also includes: if the first microcontroller fails to write the diagnostic data set, obtaining write exception information, feeding back the write exception information through the diagnostic communication link, terminating the current data writing operation and clearing the written data.

[0007] In one embodiment of the present invention, triggering the first microcontroller and the second microcontroller to synchronize data to complete redundant calibration diagnosis includes: in response to the first microcontroller successfully writing the diagnostic data set, the first microcontroller issues an inter-chip communication request to the second microcontroller; upon receiving the ready feedback from the second microcontroller, the first microcontroller sends the diagnostic data set to the second microcontroller through inter-chip communication, so that the second microcontroller performs synchronous writing according to the diagnostic data set.

[0008] In one embodiment of the present invention, after the second microcontroller performs synchronous writing according to the diagnostic data set, it also includes: if the first microcontroller receives a signal that the second microcontroller has successfully written the data, the first microcontroller generates diagnostic completion status information, and feeds back through the diagnostic communication link to end the process; if the first microcontroller receives a signal that the second microcontroller has failed to write the data synchronously, the first microcontroller generates synchronous writing failure information, and feeds back through the diagnostic communication link to end the process.

[0009] In one embodiment of the present invention, after the first microcontroller receives the signal indicating that the second microcontroller has successfully written the data synchronously, the process further includes: the first microcontroller extracts the written diagnostic data according to the preset verification partition information to obtain a first data set to be verified, generates verification request information according to the preset verification partition information and sends it to the second microcontroller, so that the second microcontroller extracts the written diagnostic data according to the verification request information to obtain a second data set to be verified and feeds it back to the first microcontroller, wherein the preset verification partition information includes the logical partition information of at least one microcontroller; the first microcontroller receives the second data set to be verified sent by the second microcontroller, and performs data verification based on the first data set to be verified and the second data set to be verified, wherein the data verification includes at least one of hash comparison, byte verification or dependency verification; if the first data set to be verified and the second data set to be verified pass the verification, the first microcontroller generates diagnostic completion status information and feeds back through the diagnostic communication link to end the process.

[0010] In one embodiment of the present invention, after data verification is performed based on the first data set to be verified and the second data set to be verified, it also includes: if the verification of the first data set to be verified and the second data set to be verified fails, the first microcontroller retrieves all the written diagnostic data to obtain first diagnostic retrieval data, and sends a diagnostic data retrieval request to the second microcontroller, so that the second microcontroller retrieves all the written diagnostic data according to the diagnostic data retrieval request, obtains second diagnostic retrieval data and feeds back to the first microcontroller; the first microcontroller receives the second diagnostic retrieval data sent by the second microcontroller, generates write data verification failure information, and feeds back the first diagnostic retrieval data, the second diagnostic retrieval data and the write data verification failure information through the diagnostic communication link to end the process.

[0011] In one embodiment of the present invention, after obtaining the current diagnostic environment information, it also includes: if the current diagnostic environment information does not meet the preset diagnostic environment judgment conditions, the first microcontroller feeds back a negative response code and terminates the redundant calibration diagnostic operation, and the negative response code includes that the vehicle condition is not met or the inter-chip communication is abnormal.

[0012] An embodiment of the present invention also provides a redundant calibration diagnostic device, which includes: a diagnostic condition detection module, which is used to obtain current diagnostic environment information in response to the completion of the diagnostic communication link connection with the first microcontroller; a calibration diagnosis execution module, which is used to send a diagnostic data set to the first microcontroller based on the diagnostic communication link if the current diagnostic environment information meets the preset diagnostic environment judgment condition, so that the first microcontroller writes according to the diagnostic data set; and a diagnostic data synchronization module, which is used to trigger the first microcontroller to synchronize data with the second microcontroller to complete redundant calibration diagnosis if the first microcontroller successfully writes the diagnostic data set.

[0013] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the redundant calibration diagnostic method as described in any one of the above embodiments.

[0014] An embodiment of the present invention further provides a computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the redundant calibration diagnostic method as described in any one of the above embodiments.

[0015] The present invention provides a redundant calibration diagnosis method, apparatus, device, and storage medium. In response to the completion of a diagnostic communication link connection with a first microcontroller, current diagnostic environment information is obtained. If the current diagnostic environment information meets a preset diagnostic environment determination condition, a diagnostic data set is sent to the first microcontroller based on the diagnostic communication link, so that the first microcontroller writes according to the diagnostic data set. If the first microcontroller successfully writes the diagnostic data set, the first microcontroller is triggered to synchronize data with the second microcontroller to complete redundant calibration diagnosis. The present invention completes the initial connection and data transmission through the diagnostic communication link of the first microcontroller, and then triggers internal data synchronization between the first and second microcontrollers. This avoids the need to connect two independent diagnostic interfaces separately in traditional technologies, eliminates repeated operation steps, thereby improving efficiency, and reduces the probability of misoperation while reducing operational complexity. Before sending diagnostic data, the current diagnostic environment information is first obtained and verified, avoiding calibration failures caused by substandard environments and improving the first-time pass rate. Secondly, a data synchronization mechanism ensures that the calibration results of the first and second microcontrollers are consistent, reducing logical conflicts caused by inconsistent states of the two controllers, while retaining redundant switching capabilities and maintaining functional continuity.

[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and it is clear that a person skilled in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0018] Figure 1 is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present invention;

[0019] Figure 2 is a flowchart of a redundant calibration diagnostic method shown in an exemplary embodiment of the present invention;

[0020] Figure 3 is a flow chart of a redundant calibration diagnostic method according to an exemplary embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of a redundant calibration diagnostic device according to an exemplary embodiment of the present invention;

[0022] Figure 5It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will describe embodiments of the present invention with reference to the accompanying drawings and specific embodiments. Those skilled in the art will readily appreciate the other advantages and benefits of the present invention from the disclosure herein. The present invention may also be implemented or applied through various other specific embodiments, and the details in this specification may be modified or altered based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are intended only to illustrate the present invention and are not intended to limit the scope of protection of the present invention.

[0024] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. Therefore, the illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.

[0025] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the embodiments of the present invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring the embodiments of the present invention.

[0026] The term "and / or" used in this disclosure describes the relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0027] Figure 1 FIG. 1 is a schematic diagram of an exemplary system architecture according to an exemplary embodiment of the present invention.

[0028] Reference Figure 1As shown, the system architecture may include a computer device 110, a first microcontroller 120, and a second microcontroller 130. In response to the completion of the diagnostic communication link connection between the computer device 110 and the first microcontroller 120, current diagnostic environment information is obtained. If the current diagnostic environment information meets a preset diagnostic environment determination condition, a diagnostic data set is sent to the first microcontroller 120 based on the diagnostic communication link, so that the first microcontroller 120 writes according to the diagnostic data set. If the first microcontroller 120 successfully writes the diagnostic data set, data synchronization is triggered between the first microcontroller 120 and the second microcontroller 130 to complete redundant calibration diagnosis. The computer device 120 is used to host a program implementation environment for executing the redundant calibration diagnostic method, including but not limited to microcomputers, embedded computers, industrial control computers, and cloud virtual machines. The first microcontroller 120 and the second microcontroller 130 interact with each other through inter-chip communication methods such as SPI and I2C. In the embodiments of the present invention, the first microcontroller 120 and the second microcontroller 130 refer to MCUs, wherein an MCU (microcontroller unit) is a small computer system that integrates functional modules such as a central processing unit, memory, input and output interfaces, timers, and analog-to-digital converters, and directly controls the device through built-in programs. The first microcontroller 120 and the second microcontroller 130 are respectively provided with an OBD (On-Board Diagnostics) diagnostic interface. In some embodiments, the microcontroller corresponding to the OBD diagnostic interface connected to the host diagnostic device is the first microcontroller, and the other microcontroller is the second microcontroller.

[0029] Exemplarily, in response to the completion of the diagnostic communication link connection between the computer device 110 and the first microcontroller 120, the current diagnostic environment information is obtained. If the current diagnostic environment information meets the preset diagnostic environment judgment condition, a diagnostic data set is sent to the first microcontroller 120 based on the diagnostic communication link, so that the first microcontroller 120 writes according to the diagnostic data set. If the first microcontroller 120 successfully writes the diagnostic data set, the first microcontroller 120 is triggered to synchronize data with the second microcontroller 130 to complete the redundant calibration diagnosis. The present invention completes the initial connection and data transmission through the diagnostic communication link of the first microcontroller. The first microcontroller sends the diagnostic data, and then triggers the internal data synchronization of the first and second microcontrollers, avoiding the need to connect two independent diagnostic interfaces separately in traditional technologies, eliminating repeated operation steps, thereby improving efficiency, and reducing the probability of misoperation while reducing operation complexity. Before sending diagnostic data, the current diagnostic environment information is first obtained and verified, avoiding calibration failures caused by substandard environments and improving the one-time pass rate. Secondly, the data synchronization mechanism ensures that the calibration results of the first microcontroller and the second microcontroller are consistent, reducing logical conflicts caused by inconsistent states of the dual controllers, while retaining redundant switching capabilities and maintaining functional continuity.

[0030] Figure 2 is a flowchart of a redundant calibration diagnosis method according to an exemplary embodiment of the present invention. The redundant calibration diagnosis method can be used in Figure 1 The implementation environment may be executed, and may also be implemented in other implementation environments, and the above implementation environment is not specifically limited here. Figure 3 It is a flowchart of a redundant calibration diagnosis method shown in an exemplary embodiment of the present invention.

[0031] Reference Figure 2 and Figure 3 As shown, the process of the redundant calibration diagnostic method includes at least steps S210 to S230, which are described in detail as follows:

[0032] In step S210 , in response to the completion of the diagnostic communication link connection with the first microcontroller, current diagnostic environment information is acquired.

[0033] In one embodiment of the present invention, when the diagnostic communication link between the host computer diagnostic device and the first microcontroller in the vehicle's redundant electric power steering system is physically connected successfully and the communication protocol handshake is completed, the host computer diagnostic device actively collects the current diagnostic environment information required for the diagnostic operation, including but not limited to the electrical environment, vehicle physical environment, communication quality, system status, etc. The above-mentioned host computer diagnostic device is connected through the vehicle's OBD diagnostic interface, wherein the OBD diagnostic interface is a standardized interface used by the vehicle for monitoring and diagnostic systems, mainly used to read vehicle status data, detect faults and store relevant information. The present invention only requires connecting one diagnostic interface, reducing the complexity of subsequent calibration diagnostic operations.

[0034] In step S220 , if the current diagnostic environment information meets the preset diagnostic environment determination condition, a diagnostic data set is sent to the first microcontroller based on the diagnostic communication link, so that the first microcontroller performs writing according to the diagnostic data set.

[0035] In one embodiment of the present invention, the host computer diagnostic device transmits a structured diagnostic data set to the first microcontroller via an established communication link. The diagnostic data set includes but is not limited to calibration parameters, verification information, and execution instructions.

[0036] In one embodiment of the present invention, after receiving data, the first microcontroller parses the content according to a preset protocol and first performs a data check on the diagnostic data set before writing calibration parameters to the target memory. This invention uses environmental conditions to intercept potential abnormal scenarios before data is written, preventing data loss caused by abnormal write conditions.

[0037] In one embodiment of the present invention, if the current diagnostic environment information does not meet the preset diagnostic environment judgment conditions, the first microcontroller feeds back a negative response code and terminates the redundant calibration diagnostic operation. The negative response code includes that the vehicle condition is not met or the inter-chip communication is abnormal.

[0038] In one embodiment of the present invention, when any diagnostic environment parameter is detected to not meet a preset safety threshold, a negative response code is sent to the host diagnostic device via the diagnostic communication link to clarify the fault type. Vehicle conditions not met include the vehicle not being turned off, the steering wheel not being straightened, the vehicle speed not reaching a preset numerical range, or data such as wheel speed, voltage, and torsion bar torque not meeting preset judgment conditions. Inter-chip communication anomalies refer to internal communication interruptions or verification failures between the first and second microcontrollers. Subsequent operations can be blocked in the event of an environmental anomaly to avoid forced writes that could cause system crashes or data corruption. The classified error codes in the negative response code can guide relevant technicians in quickly troubleshooting the root cause of the problem.

[0039] In step S230 , if the first microcontroller successfully writes the diagnostic data set, the first microcontroller is triggered to synchronize data with the second microcontroller to complete redundant calibration diagnosis.

[0040] In one embodiment of the present invention, if the first microcontroller fails to write the diagnostic data set, it obtains write exception information, feeds back the write exception information through the diagnostic communication link, terminates the current data write operation, and clears the written data.

[0041] In one embodiment of the present invention, triggering the first microcontroller to synchronize data with the second microcontroller to complete redundant calibration diagnosis includes, in response to the first microcontroller successfully writing the diagnostic data set, the first microcontroller issuing an inter-chip communication request to the second microcontroller, and upon receiving the ready feedback from the second microcontroller, the first microcontroller sending the diagnostic data set to the second microcontroller via inter-chip communication, so that the second microcontroller performs synchronous writing according to the diagnostic data set.

[0042] Specifically, the synchronization process with the second microcontroller is started only after the first microcontroller successfully writes the diagnostic data set into its own memory, which can ensure that the first microcontroller itself is in a normal state and avoid synchronization failure caused by an abnormality of the first microcontroller.

[0043] In the communication control process, the first microcontroller actively sends an inter-chip communication request to the second microcontroller. For example, the first microcontroller sends an interaction request instruction code to the second microcontroller, and the second microcontroller returns a ready feedback signal. After the second microcontroller is ready, the first microcontroller transmits the verified diagnostic data set to the second microcontroller via an internal communication link. After receiving the data, the second microcontroller executes the same write process as the first microcontroller.

[0044] If the first microcontroller receives a signal indicating that the synchronous writing is successful from the second microcontroller, the first microcontroller generates diagnosis completion status information and provides feedback via the diagnosis communication link to end the process.

[0045] If the first microcontroller receives the synchronous write failure signal from the second microcontroller, the first microcontroller generates synchronous write failure information and feeds back information through the diagnostic communication link to end the process.

[0046] In one embodiment of the present invention, a first microcontroller extracts the written diagnostic data according to preset verification partition information to obtain a first data set to be verified, generates verification request information according to the preset verification partition information and sends it to a second microcontroller, so that the second microcontroller extracts the written diagnostic data according to the verification request information to obtain a second data set to be verified and feeds it back to the first microcontroller, the preset verification partition information includes logical partition information of at least one microcontroller, the first microcontroller receives the second data set to be verified sent by the second microcontroller, and performs data verification based on the first data set to be verified and the second data set to be verified, and the data verification includes at least one of hash comparison, byte verification or dependency verification.

[0047] Specifically, the logical partition information refers to the address range and data type of a pre-divided storage area. It can be specified to perform block-wide verification or key field-by-key field verification. In some specific implementations, the first microcontroller extracts a specified data segment from its own memory based on the partition address to generate a first data set to be verified. The first microcontroller then encapsulates the partition address, data length, and verification method into a verification request message and sends it to the second microcontroller. The second microcontroller interprets the request, extracts data according to the same partitioning rules, generates a second data set to be verified, and returns the data set to the first microcontroller. The first microcontroller compares the two data sets, calculating whether the hash values ​​are consistent if using a hash comparison; or comparing the differences byte by byte if using a byte checksum. This verification process prevents data inconsistencies between the first and second microcontrollers due to communication interference or write anomalies. Partition verification quickly locates erroneous areas, avoiding the waste of resources required for a full disk scan. A hash check discrepancy can indicate overall data tampering or a communication error, while a byte checksum discrepancy can indicate localized storage unit damage or a write anomaly. Dependency errors can be detected through business rule verification to identify logical anomalies in the write process.

[0048] If the first data set to be verified and the second data set to be verified pass verification, the first microcontroller generates diagnosis completion status information and feeds back via the diagnosis communication link to end the process.

[0049] If the verification of the first data set to be verified and the second data set to be verified fails, the first microcontroller retrieves all the written diagnostic data to obtain first diagnostic retrieval data, and sends a diagnostic data retrieval request to the second microcontroller, so that the second microcontroller retrieves all the written diagnostic data according to the diagnostic data retrieval request, obtains second diagnostic retrieval data and feeds it back to the first microcontroller. The first microcontroller receives the second diagnostic retrieval data sent by the second microcontroller, generates write data verification failure information, and feeds back the first diagnostic retrieval data, the second diagnostic retrieval data and the write data verification failure information through the diagnostic communication link to end the process.

[0050] In one embodiment of the present invention, when the first microcontroller determines that there is a difference between the first data set to be verified and the second data set to be verified through hash comparison, byte proofreading, etc., it is determined that the verification has failed. The first microcontroller reads all the written diagnostic data from the non-volatile memory, including calibration parameters, check codes, etc., generates the first diagnostic retrieval data, and sends a diagnostic data retrieval request to the second microcontroller, requiring it to return a complete copy of the written data. After the second microcontroller parses the request, it reads the complete data stored in itself, generates the second diagnostic retrieval data and returns it. The first microcontroller packages the first diagnostic retrieval data and the second diagnostic retrieval data, and generates a write data verification failure message based on information such as the error type and the difference location. The complete data packet and the write data verification failure message are uploaded to the host computer diagnostic equipment through the diagnostic communication link for analysis by technical personnel, and the current process is terminated to prevent the erroneous data from taking effect. Full data retrieval can identify abnormal information such as local storage damage, communication bit flipping, version inconsistency, data integrity, etc. in the microcontroller, which is convenient for subsequent maintenance work.

[0051] The present invention provides a redundant calibration diagnosis method, apparatus, device, and storage medium. In response to the completion of a diagnostic communication link connection with a first microcontroller, current diagnostic environment information is obtained. If the current diagnostic environment information meets a preset diagnostic environment determination condition, a diagnostic data set is sent to the first microcontroller based on the diagnostic communication link, so that the first microcontroller writes according to the diagnostic data set. If the first microcontroller successfully writes the diagnostic data set, the first microcontroller is triggered to synchronize data with the second microcontroller to complete redundant calibration diagnosis. The present invention completes the initial connection and data transmission through the diagnostic communication link of the first microcontroller, and then triggers internal data synchronization between the first and second microcontrollers. This avoids the need to connect two independent diagnostic interfaces separately in traditional technologies, eliminates repeated operation steps, thereby improving efficiency, and reduces the probability of misoperation while reducing operational complexity. Before sending diagnostic data, the current diagnostic environment information is first obtained and verified, avoiding calibration failures caused by substandard environments and improving the first-time pass rate. Secondly, a data synchronization mechanism ensures that the calibration results of the first and second microcontrollers are consistent, reducing logical conflicts caused by inconsistent states of the two controllers, while retaining redundant switching capabilities and maintaining functional continuity.

[0052] The following describes an embodiment of the device of the present invention, which can be used to implement the redundant calibration diagnosis method of the above embodiment of the present invention. For details not disclosed in the embodiment of the device of the present invention, please refer to the embodiment of the redundant calibration diagnosis method of the present invention.

[0053] Figure 4 This is a schematic diagram of a redundant calibration diagnostic device according to an exemplary embodiment of the present invention. Figure 2 The method implementation process shown in the figure can be based on Figure 1 The present invention is executed in the implementation environment shown in , and may also be applicable to other exemplary implementation environments and specifically configured in other devices. This embodiment does not limit the implementation environment to which the apparatus is applicable.

[0054] like Figure 4 As shown, the exemplary redundant calibration diagnosis device includes: a diagnosis condition detection module 401 , a calibration diagnosis execution module 402 and a diagnosis data synchronization module 403 .

[0055] Among them, the diagnostic condition detection module 401 is used to obtain the current diagnostic environment information in response to the completion of the diagnostic communication link connection with the first microcontroller; the calibration diagnosis execution module 402 is used to send a diagnostic data set to the first microcontroller based on the diagnostic communication link if the current diagnostic environment information meets the preset diagnostic environment judgment conditions, so that the first microcontroller writes according to the diagnostic data set; the diagnostic data synchronization module 403 is used to trigger the first microcontroller and the second microcontroller to synchronize data to complete redundant calibration diagnosis if the first microcontroller successfully writes the diagnostic data set.

[0056] An embodiment of the present invention also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by one or more processors, the electronic device implements the redundant calibration diagnostic method provided in the above-mentioned embodiments.

[0057] Figure 5 FIG. 1 is a schematic diagram showing the structure of a computer system of an electronic device according to an exemplary embodiment of the present invention. Figure 5 The computer system 500 of the electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0058] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage portion into the random access memory (RAM) 503, such as executing the method in the above embodiment. In RAM 503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other via a bus. I / O interface 505 is also connected to bus 504, wherein I / O interface 505 refers to an input / output (Input / Output) interface.

[0059] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 508 including a hard disk; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed in the drive 510 as needed so that computer programs read therefrom can be installed into the storage section 508 as needed.

[0060] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product that includes a computer program carried on a computer-readable medium, the computer program including a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 509 and / or installed from a removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the various functions defined in the system of the present invention are performed.

[0061] It should be noted that the computer-readable medium shown in the embodiments of the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium may, for example, be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a 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 thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal may take a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0062] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present invention. Each box in the flowchart or block diagram may represent a module, program segment, or part of a code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes may also occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, as well as the combination of boxes in the block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0063] In the corresponding drawings of the above embodiments, connecting lines can represent the connection relationship between various components to represent more constituent signal paths (constituent_signalpath) and / or one or more ends of some lines have arrows to indicate the main information flow direction. The connecting lines serve as an identifier and are not a limitation to the scheme itself. Instead, the use of these lines in combination with one or more exemplary embodiments helps to connect circuits or logic units more easily. Any represented signal (determined by design requirements or preferences) may actually include one or more signals that can be transmitted in any direction and can be implemented with any appropriate type of signal scheme.

[0064] The units involved in the embodiments of the present invention may be implemented in software or hardware, and the units described may also be provided in a processor. In some cases, the names of these units do not limit the units themselves.

[0065] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned method. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.

[0066] An embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the redundant calibration diagnosis method as described in any one of the above embodiments.

[0067] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0068] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present invention.

[0069] It should be noted that the present invention is applicable to a wide variety of general-purpose or special-purpose computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above, and the like.

[0070] Other embodiments of the present invention will readily occur to those skilled in the art after considering the specification and practicing the embodiments disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art not disclosed herein.

[0071] It should be understood that the above contents of the present invention are only preferred exemplary embodiments of the present invention and are not intended to limit the implementation scheme of the present invention. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present invention. Therefore, the scope of protection of the present invention should be the scope of protection required by the claims.

Claims

1. A redundant calibration diagnostic method, characterized in that: The redundant calibration diagnostic method comprises: In response to the completion of the diagnostic communication link connection with the first microcontroller, obtaining current diagnostic environment information; If the current diagnostic environment information meets a preset diagnostic environment determination condition, sending a diagnostic data set to the first microcontroller based on the diagnostic communication link, so that the first microcontroller writes according to the diagnostic data set; If the first microcontroller successfully writes the diagnostic data set, the first microcontroller is triggered to synchronize data with the second microcontroller to complete redundant calibration diagnosis.

2. The redundant calibration diagnosis method according to claim 1, characterized in that: After causing the first microcontroller to write according to the diagnostic data set, the method further includes: If the first microcontroller fails to write the diagnostic data set, it obtains write exception information, feeds back the write exception information through the diagnostic communication link, terminates the current data write operation, and clears the written data.

3. The redundant calibration diagnosis method according to claim 1, characterized in that: Triggering the first microcontroller to synchronize data with the second microcontroller to complete redundant calibration diagnosis includes: In response to the first microcontroller successfully writing the diagnostic data set, the first microcontroller issues an inter-chip communication request to the second microcontroller; When receiving the ready feedback from the second microcontroller, the first microcontroller sends the diagnostic data set to the second microcontroller through inter-chip communication, so that the second microcontroller performs synchronous writing according to the diagnostic data set.

4. The redundant calibration diagnosis method according to claim 3, characterized in that: After causing the second microcontroller to perform synchronous writing according to the diagnostic data set, the method further includes: If the first microcontroller receives a signal indicating that the second microcontroller has successfully written the data, the first microcontroller generates diagnostic completion status information and provides feedback via the diagnostic communication link to end the process. If the first microcontroller receives the synchronous write failure signal from the second microcontroller, the first microcontroller generates synchronous write failure information and feeds back information through the diagnostic communication link to end the process.

5. The redundant calibration diagnosis method according to claim 4, characterized in that: After the first microcontroller receives the signal indicating that the second microcontroller has successfully written the data, the method further includes: The first microcontroller extracts the written diagnostic data according to preset verification partition information to obtain a first data set to be verified, generates verification request information according to the preset verification partition information and sends it to the second microcontroller, so that the second microcontroller extracts the written diagnostic data according to the verification request information to obtain a second data set to be verified and feeds it back to the first microcontroller, wherein the preset verification partition information includes logical partition information of at least one microcontroller; The first microcontroller receives a second data set to be verified sent by the second microcontroller, and performs data verification based on the first data set to be verified and the second data set to be verified, wherein the data verification includes at least one of a hash comparison, a byte check, or a dependency check; If the first data set to be verified and the second data set to be verified pass verification, the first microcontroller generates diagnosis completion status information and provides feedback through the diagnostic communication link to end the process.

6. The redundant calibration diagnosis method according to claim 5, characterized in that: After performing data verification based on the first dataset to be verified and the second dataset to be verified, the method further includes: If the verification of the first data set to be verified and the second data set to be verified fails, the first microcontroller retrieves all the written diagnostic data to obtain first diagnostic retrieved data, and sends a diagnostic data retrieval request to the second microcontroller, so that the second microcontroller retrieves all the written diagnostic data according to the diagnostic data retrieval request, obtains second diagnostic retrieved data, and feeds back the second diagnostic retrieved data to the first microcontroller; The first microcontroller receives the second diagnostic retrieval data sent by the second microcontroller, generates write data verification failure information, and feeds back the first diagnostic retrieval data, the second diagnostic retrieval data and the write data verification failure information through the diagnostic communication link to end the process.

7. The redundant calibration diagnosis method according to any one of claims 1 to 6, characterized in that: After obtaining the current diagnostic environment information, it also includes: If the current diagnostic environment information does not meet the preset diagnostic environment determination conditions, the first microcontroller feeds back a negative response code and terminates the redundant calibration diagnostic operation. The negative response code includes that the vehicle condition is not met or the inter-chip communication is abnormal.

8. A redundant calibration diagnostic device, characterized in that: The redundant calibration diagnostic device comprises: a diagnostic condition detection module, configured to obtain current diagnostic environment information in response to completion of the diagnostic communication link connection with the first microcontroller; a calibration diagnosis execution module, configured to send a diagnostic data set to the first microcontroller based on the diagnostic communication link if the current diagnostic environment information satisfies a preset diagnostic environment determination condition, so that the first microcontroller performs writing according to the diagnostic data set; The diagnostic data synchronization module is used to trigger the first microcontroller to synchronize data with the second microcontroller to complete redundant calibration diagnosis if the first microcontroller successfully writes the diagnostic data set.

9. An electronic device, characterized in that: It comprises a processor, a memory and a communication bus; the communication bus is used to connect the processor and the memory; the processor is used to execute the computer program stored in the memory to implement the redundant calibration diagnostic method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that A computer program is stored thereon, and the computer program is used to enable a computer to execute the redundant calibration diagnosis method according to any one of claims 1 to 7.