Upgrading system and method for double microprocessors

By establishing a UDS protocol service between the main microprocessor and the secondary microprocessor, using the main refresh service and slave refresh service in the UDS protocol, the problem that the secondary microprocessor cannot refresh through the unified diagnostic protocol is solved, and efficient data refresh is achieved and system development and maintenance costs are reduced.

CN119806572APending Publication Date: 2025-04-11SAIC GM WULING AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411763637.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

The prior art is difficult to refresh the secondary microprocessor between the primary and secondary microprocessors through a unified diagnostic protocol, especially if the secondary microprocessor cannot communicate with the vehicle bus.

Method used

By establishing a service of the UDS protocol between the main microprocessor and the secondary microprocessor, using the master refresh service and the slave refresh service in the UDS protocol, refresh messages satisfying the second type of communication protocol are generated and transmitted to realize data refresh of the secondary microprocessor.

Benefits of technology

It realizes effective refresh of auxiliary microprocessors, reduces development risks and maintenance costs, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806572A_ABST
    Figure CN119806572A_ABST
Patent Text Reader

Abstract

The invention provides an upgrading system and method for double microprocessors. According to the application, the UDS protocol service is established in the main microprocessor and the auxiliary microprocessor by using the UDS protocol, that is, the virtual main end associated with the UDS protocol is established in the main microprocessor, and the virtual slave end associated with the UDS protocol is established in the auxiliary microprocessor; and the main microprocessor and the auxiliary microprocessor communicate with each other by using a message generated by a second communication protocol. The main microprocessor serves as a virtual main end, a first refreshing message issued by the upper computer is generated into a second refreshing message meeting a second communication protocol through the main refreshing service in the UDS protocol, and the auxiliary microprocessor obtains refreshing data from the second refreshing message through the auxiliary refreshing service in the UDS protocol to conduct data refreshing. Therefore, the auxiliary microprocessor can fully utilize the service of the UDS protocol to realize refreshing, and meanwhile, the development risk and the maintenance cost of the auxiliary microprocessor are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of OTA technology, and in particular to an upgrade system, method, medium and electronic device for dual microprocessors. Background Art

[0002] Over-the-Air Technology (OTA) is a technology that enables remote management of mobile terminals through the air interface of mobile communications.

[0003] At present, OTA or software refresh has become a commonly used technology in the automotive electronics industry, and software updates and maintenance must also be achieved through software refresh. For MCU software refresh, a unified diagnostic protocol based on the vehicle bus is generally used to achieve software upgrades, and this method can only be performed when the microprocessor is connected to the vehicle bus. For controllers using a main microprocessor and an auxiliary microprocessor, the auxiliary microprocessor can only communicate with the main microprocessor, but not with the vehicle bus, and the auxiliary microprocessor cannot be refreshed through the unified diagnostic protocol.

[0004] Therefore, the present application provides an upgrade system for dual microprocessors to solve the above technical problems. Summary of the invention

[0005] The purpose of this application is to provide an upgrade system, method, medium and electronic device for dual microprocessors, which can solve at least one of the above-mentioned technical problems. The specific solution is as follows:

[0006] According to a specific implementation of the present application, in a first aspect, the present application provides an upgrade system for dual microprocessors, including:

[0007] The host computer, as a master end of communication, communicates with the slave end of the main microprocessor through the vehicle bus using messages generated by the first type of communication protocol, and is configured to: generate a first refresh message based on the refresh data of the auxiliary microprocessor using the master refresh service of the first type of communication protocol, and transmit the first refresh message to the main microprocessor, wherein the first type of communication protocol refers to a unified diagnostic protocol;

[0008] The main microprocessor, as a virtual master end of communication, communicates with the virtual slave end of the auxiliary microprocessor through the communication serial port using messages generated by the second type of communication protocol, and is configured as follows: as the slave end, using the slave refresh service in the first type of communication protocol to receive the first refresh message, as the virtual master end, using the master refresh service in the first type of communication protocol, using the second type of communication protocol to generate a second refresh message from the first refresh message, and transmitting the second refresh message to the auxiliary microprocessor, wherein the second type of communication protocol refers to a communication protocol that matches the communication serial port;

[0009] The auxiliary microprocessor is configured to: parse the received second refresh message based on the second type of communication protocol to obtain the first refresh message, parse the first refresh message using the slave refresh service in the first type of communication protocol to obtain the refresh data, and refresh data based on the refresh data.

[0010] Optionally, the host computer is further configured to: before transmitting the first refresh message to the main microprocessor, generate a first guidance instruction message of the first guidance instruction by using the main guidance service of the first type of communication protocol, and transmit the first guidance instruction message to the main microprocessor;

[0011] The main microprocessor is further configured to: as the slave end, receive the first guidance instruction message by using the slave guidance service in the first type of communication protocol, as the virtual master end, generate a second guidance instruction message from the first guidance instruction message by using the second type of communication protocol through the master guidance service in the first type of communication protocol, and transmit the second guidance instruction message to the auxiliary microprocessor;

[0012] The auxiliary microprocessor is also configured to: parse the received second guidance instruction message based on the second type of communication protocol to obtain the first guidance instruction message, parse the first guidance instruction message using the slave guidance service in the first type of communication protocol to obtain the first guidance instruction, and trigger the guidance program based on the first guidance instruction.

[0013] Optionally, the auxiliary microprocessor is further configured to: after the refresh is completed, use the refresh result generated by the slave refresh service as response information, generate a first response message through the second type of communication protocol, and transmit it to the main microprocessor;

[0014] The main microprocessor is further configured to: as the virtual master, parse the received first response message into the response information through the master refresh service in the first type of communication protocol; as the slave, convert the response information into a second response message of the first type of communication protocol through the slave refresh service in the first type of communication protocol, and transmit it to the host computer;

[0015] The host computer is further configured to: determine whether to refresh again based on the response information in the second response message by the master refresh service in the first type of communication protocol.

[0016] Optionally, the communication serial port includes a LIN serial port;

[0017] Correspondingly, before receiving the first response message, the main microprocessor is further configured to: set its LIN serial port to be able to receive the uploaded data of the auxiliary microprocessor, and set the communication data length of the LIN serial port to be consistent with the communication data length of the vehicle bus.

[0018] Optionally, the communication serial port includes a LIN serial port; the host computer is also configured to: when sending a message, the minimum communication interval of each frame of data is set to 8 milliseconds.

[0019] Optionally, the communication serial port includes a UART serial port;

[0020] Correspondingly, the main microprocessor is also configured to set the baud rate of the UART serial port to 115200 bps.

[0021] Optionally, the communication serial port includes a UART serial port;

[0022] The host computer is also configured as follows: when the master refresh service transmits the first refresh message, the minimum communication interval of each frame of data is set to 1 millisecond, the maximum transmission time of each frame of data is 2 milliseconds, and the maximum amount of data transmitted per second is 4Mbyte.

[0023] Optionally, the host computer is further configured such that: when the master refresh service transmits the first refresh message, the data volume of each frame of data is less than or equal to a preset data volume;

[0024] The main microprocessor is further configured to: establish a queue in the memory, wherein the amount of data stored in the queue is equal to an integer multiple of the preset amount of data.

[0025] Optionally, the preset data volume is 2k bytes.

[0026] According to a specific implementation of the present application, in a second aspect, the present application provides an upgrade method for a dual microprocessor, which is applied to a main microprocessor, comprising:

[0027] As a slave end in a first type of communication protocol, receiving a first refresh message transmitted by a host computer using a slave refresh service in the first type of communication protocol, wherein the first type of communication protocol refers to a unified diagnostic protocol;

[0028] As a virtual master, using the master refresh service in the first type of communication protocol, and using the second type of communication protocol to generate a second refresh message from the first refresh message, wherein the second type of communication protocol refers to a communication protocol that matches the communication serial port;

[0029] The second refresh message is transmitted to the auxiliary microprocessor through the communication serial port.

[0030] According to the specific implementation of the present application, in a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the upgrade method for a dual microprocessor as described in any of the above items is implemented.

[0031] According to the specific implementation of the present application, in a fourth aspect, the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the upgrade method for dual microprocessors as described in any of the above items.

[0032] Compared with the prior art, the above solution of the embodiment of the present application has at least the following beneficial effects:

[0033] The present application provides an upgrade system, method, medium and electronic device for dual microprocessors. The present application uses the UDS protocol to establish the service of the UDS protocol in the main microprocessor and the auxiliary microprocessor, that is, to establish a virtual master end associated with the UDS protocol in the main microprocessor, and to establish a virtual slave end associated with the UDS protocol in the auxiliary microprocessor, and to communicate between the main microprocessor and the auxiliary microprocessor using the message generated by the second type of communication protocol. As a virtual master end, the main microprocessor uses the master refresh service in the UDS protocol to generate a second refresh message that meets the second type of communication protocol from the first refresh message sent by the host computer, and the auxiliary microprocessor uses the slave refresh service in the UDS protocol to obtain refresh data from the second refresh message for data refresh. Thereby, the auxiliary microprocessor can fully utilize the service of the UDS protocol to realize refresh, and at the same time, reduce the development risk and maintenance cost of the auxiliary microprocessor. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of an upgrade system for dual microprocessors according to an embodiment of the present application is shown;

[0035] Figure 2A unit block diagram of an upgrade method for dual microprocessors according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0037] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0038] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0039] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0040] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0041] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.

[0042] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.

[0043] The optional embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0044] The embodiment provided in the present application is an embodiment of an upgrade system for dual microprocessors.

[0045] Combine the following Figure 1 The embodiments of the present application are described in detail.

[0046] The present application provides an upgrade system 10 for dual microprocessors, including: a host computer 11, a main microprocessor 12 and an auxiliary microprocessor 13.

[0047] The host computer, as the master end of communication, communicates with the slave end of the main microprocessor through the vehicle bus using messages generated by the first type of communication protocol, and is configured to: use the master refresh service of the first type of communication protocol to generate a first refresh message based on the refresh data of the auxiliary microprocessor, and transmit the first refresh message to the main microprocessor.

[0048] Among them, the first type of communication protocol refers to the unified diagnostic protocol.

[0049] Unified Diagnostic Services (UDS) is a universal automotive diagnostic protocol that is used for automotive fault diagnosis and supports multiple communication buses. It allows engineers to read, clear, and reset fault codes through a diagnostic instrument connected to the OBD port, improving maintenance efficiency and accuracy. The UDS protocol includes multiple services and involves multiple layers in the OSI model, such as the application layer and network layer, to ensure reliable data transmission.

[0050] The master end is the initiator of communication, and the slave end is the passive end of communication. The master end first sends data, and the slave end passively receives data. The slave end responds to the received data and feeds back information to the master end.

[0051] The vehicle bus includes but is not limited to a CAN bus and an Ethernet bus.

[0052] The main microprocessor, as a virtual master end of communication, communicates with the virtual slave end of the auxiliary microprocessor through the communication serial port using messages generated by the second type of communication protocol, and is configured as: as the slave end, it receives the first refresh message using the slave refresh service in the first type of communication protocol; as the virtual master end, it generates a second refresh message from the first refresh message using the second type of communication protocol through the master refresh service in the first type of communication protocol, and transmits the second refresh message to the auxiliary microprocessor.

[0053] The second type of communication protocol refers to a communication protocol that matches the communication serial port.

[0054] Since the main microprocessor and the auxiliary microprocessor are not connected through the vehicle bus but through the communication serial port, the main microprocessor and the auxiliary microprocessor cannot directly use the UDS protocol. The embodiment of the present application uses the UDS protocol to establish the service of the UDS protocol in the main microprocessor and the auxiliary microprocessor, that is, a virtual master end associated with the UDS protocol is established in the main microprocessor, and a virtual slave end associated with the UDS protocol is established in the auxiliary microprocessor, and the main microprocessor and the auxiliary microprocessor communicate through the messages generated by the second type of communication protocol.

[0055] The communication serial ports include UART serial port and LIN serial port.

[0056] The virtual master end is the initiator of communication, and the virtual slave end is the passive end of communication. The virtual master end first sends data, and the virtual slave end passively receives data. The virtual slave end responds to the received data and feeds back information to the virtual master end.

[0057] The auxiliary microprocessor is configured to: parse the received second refresh message based on the second type of communication protocol to obtain the first refresh message, parse the first refresh message using the slave refresh service in the first type of communication protocol to obtain the refresh data, and refresh data based on the refresh data.

[0058] The embodiment of the present application uses the UDS protocol to establish the service of the UDS protocol in the main microprocessor and the auxiliary microprocessor, that is, to establish a virtual master end associated with the UDS protocol in the main microprocessor, and to establish a virtual slave end associated with the UDS protocol in the auxiliary microprocessor, and to communicate between the main microprocessor and the auxiliary microprocessor using the messages generated by the second type of communication protocol. The main microprocessor, as a virtual master end, uses the master refresh service in the UDS protocol to generate a second refresh message that satisfies the second type of communication protocol from the first refresh message sent by the host computer, and the auxiliary microprocessor uses the slave refresh service in the UDS protocol to obtain refresh data from the second refresh message for data refresh. This enables the auxiliary microprocessor to fully utilize the service of the UDS protocol to achieve refresh, while reducing the development risk and maintenance cost of the auxiliary microprocessor.

[0059] In some specific embodiments, the host computer is also configured to: before transmitting the first refresh message to the main microprocessor, generate a first guidance instruction message of the first guidance instruction using the main guidance service of the first type of communication protocol, and transmit the first guidance instruction message to the main microprocessor.

[0060] The main microprocessor is also configured to: as the slave end, receive the first guidance instruction message using the slave guidance service in the first type of communication protocol; as the virtual master end, generate the second guidance instruction message from the first guidance instruction message through the main guidance service in the first type of communication protocol using the second type of communication protocol, and transmit the second guidance instruction message to the auxiliary microprocessor.

[0061] The auxiliary microprocessor is also configured to: parse the received second guidance instruction message based on the second type of communication protocol to obtain the first guidance instruction message, parse the first guidance instruction message using the slave guidance service in the first type of communication protocol to obtain the first guidance instruction, and trigger the guidance program based on the first guidance instruction.

[0062] The boot program can be refreshed using refresh data.

[0063] In this specific embodiment, before data is refreshed, the host computer first sends out a first guidance instruction message of a first guidance instruction, the main microprocessor converts the first guidance instruction message into a second guidance instruction message that satisfies the second type of communication protocol, and the auxiliary microprocessor triggers the guidance program through the guidance instruction in the second guidance instruction message to start the guidance program.

[0064] In some specific embodiments, the auxiliary microprocessor is further configured to: after the refresh is completed, use the refresh result generated by the slave refresh service as response information, generate a first response message through the second type of communication protocol, and transmit it to the main microprocessor.

[0065] The main microprocessor is also configured to: as the virtual master end, parse the received first response message into the response information through the master refresh service in the first type of communication protocol; as the slave end, convert the response information into a second response message of the first type of communication protocol through the slave refresh service in the first type of communication protocol, and transmit it to the host computer.

[0066] The host computer is further configured to: determine whether to refresh again based on the response information in the second response message by the master refresh service in the first type of communication protocol.

[0067] In this specific embodiment, the auxiliary microprocessor feeds back the refresh result as response information to the main microprocessor, and the main microprocessor feeds back to the host computer. If the response information is refresh success information, the host computer marks the corresponding vehicle refresh success information; if the response information is refresh failure information, the host computer verifies that the refresh data is correct, and then transmits the refresh data to the auxiliary microprocessor through the main microprocessor for refresh until the refresh is successful. Thus, the safety and reliability of the refresh are guaranteed through the response information.

[0068] In some specific embodiments, the communication serial port includes a LIN serial port.

[0069] Correspondingly, before receiving the first response message, the main microprocessor is further configured to: set its LIN serial port to be able to receive the uploaded data of the auxiliary microprocessor, and set the communication data length of the LIN serial port to be consistent with the communication data length of the vehicle bus.

[0070] This specific implementation sets the communication data length of the LIN serial port to be consistent with the communication data length of the vehicle bus, for example, the communication data length is 8 bytes, so that the first refresh message can be directly applied to the second refresh message that meets the LIN serial port communication, thereby improving the efficiency of message data conversion.

[0071] In some specific embodiments, the communication serial port includes a LIN serial port. The host computer is further configured to: when sending a message, the minimum communication interval of each frame of data is set to 8 milliseconds.

[0072] The commonly used high-speed transmission baud rate of the LIN serial port is 19200bps, which does not match the transmission rate of the host computer.

[0073] In this specific embodiment, in order to coordinate the communication between the host computer and the main microprocessor, and the LIN serial port communication between the main microprocessor and the auxiliary microprocessor, the minimum communication interval of each frame of data of the host computer is increased, the transmission rate of the host computer is reduced, the coordination and stability of the communication are ensured, and data backlog is avoided, thereby improving the data refresh efficiency.

[0074] In some specific embodiments, the communication serial port includes a UART serial port.

[0075] Correspondingly, the main microprocessor is also configured to set the baud rate of the UART serial port to 115200 bps.

[0076] Since each unit data in the first refresh message is 8 bytes, and each unit data in the second refresh message is 9 bytes, there is an extra check byte. Therefore, the unit data that can be transmitted by the first refresh message and the second refresh message per unit time is 9:8. The amount of data forwarded by the UART serial port per second must reach at least 9000 bytes, that is, 72000 bits, and the maximum channel utilization rate does not exceed 70%. The minimum baud rate of the UART serial port is 102858bps. Therefore, in this specific embodiment, the baud rate of the UART serial port is set to 115200bps to ensure that the refresh can be completed in a very short period of time.

[0077] In some specific embodiments, the communication serial port includes a UART serial port. The host computer is further configured such that when the master refresh service transmits the first refresh message, the minimum communication interval of each frame of data is set to 1 millisecond, the maximum transmission time of each frame of data is 2 milliseconds, and the maximum amount of data transmitted per second is 4Mbyte.

[0078] In this specific embodiment, in order to coordinate the communication between the host computer and the main microprocessor, and the UART serial communication between the main microprocessor and the auxiliary microprocessor, the communication mode of the host computer is set to ensure the coordination and stability of the communication, avoid data backlog, and thus improve the data refresh efficiency.

[0079] In some specific embodiments, the host computer is further configured such that when the master refresh service transmits the first refresh message, the data volume of each frame of data is less than or equal to a preset data volume.

[0080] The main microprocessor is further configured to: establish a queue in the memory, wherein the amount of data stored in the queue is equal to an integer multiple of the preset amount of data.

[0081] The capacity of the queue is larger than the amount of data in each frame to avoid data loss during transmission.

[0082] In some specific embodiments, the preset data amount is 2k bytes.

[0083] The data size of each frame is set to 2k bytes, which ensures that the data in the queue will not be overwritten by new data, resulting in data loss, and ensures that all messages can be forwarded, ensuring the security of data transmission.

[0084] The present application also provides a method embodiment that is based on the above embodiment. The explanation based on the same name meaning is the same as that of the above embodiment, and has the same technical effect as the above embodiment, which will not be repeated here.

[0085] like Figure 2 As shown, the present application provides an upgrade method for dual microprocessors, which is applied to a main microprocessor, comprising:

[0086] Step S201, as a slave end in a first type of communication protocol, using a slave refresh service in the first type of communication protocol to receive a first refresh message transmitted by a host computer, wherein the first type of communication protocol refers to a unified diagnostic protocol;

[0087] Step S202, as a virtual master end, using the master refresh service in the first type of communication protocol, and using the second type of communication protocol to generate a second refresh message from the first refresh message, wherein the second type of communication protocol refers to a communication protocol that matches the communication serial port;

[0088] Step S203: transmitting the second refresh message to the auxiliary microprocessor through the communication serial port.

[0089] The embodiment of the present application uses the UDS protocol to establish the service of the UDS protocol in the main microprocessor and the auxiliary microprocessor, that is, to establish a virtual master end associated with the UDS protocol in the main microprocessor, and to establish a virtual slave end associated with the UDS protocol in the auxiliary microprocessor, and to communicate between the main microprocessor and the auxiliary microprocessor using the messages generated by the second type of communication protocol. The main microprocessor, as a virtual master end, uses the master refresh service in the UDS protocol to generate a second refresh message that satisfies the second type of communication protocol from the first refresh message sent by the host computer, and the auxiliary microprocessor uses the slave refresh service in the UDS protocol to obtain refresh data from the second refresh message for data refresh. This enables the auxiliary microprocessor to fully utilize the service of the UDS protocol to achieve refresh, while reducing the development risk and maintenance cost of the auxiliary microprocessor.

[0090] Example 3

[0091] This embodiment provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method steps described in the above embodiment.

[0092] Example 4

[0093] An embodiment of the present application provides a non-volatile computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method steps described in the above embodiment.

[0094] Finally, it should be noted that: the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0095] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An upgrade system for dual microprocessors, characterized in that: include: The host computer, as a master end of communication, communicates with the slave end of the main microprocessor through the vehicle bus using messages generated by the first type of communication protocol, and is configured to: generate a first refresh message based on the refresh data of the auxiliary microprocessor using the master refresh service of the first type of communication protocol, and transmit the first refresh message to the main microprocessor, wherein the first type of communication protocol refers to a unified diagnostic protocol; The main microprocessor, as a virtual master end of communication, communicates with the virtual slave end of the auxiliary microprocessor through the communication serial port using messages generated by the second type of communication protocol, and is configured as follows: as the slave end, using the slave refresh service in the first type of communication protocol to receive the first refresh message, as the virtual master end, using the master refresh service in the first type of communication protocol, using the second type of communication protocol to generate a second refresh message from the first refresh message, and transmitting the second refresh message to the auxiliary microprocessor, wherein the second type of communication protocol refers to a communication protocol that matches the communication serial port; The auxiliary microprocessor is configured to: parse the received second refresh message based on the second type of communication protocol to obtain the first refresh message, parse the first refresh message using the slave refresh service in the first type of communication protocol to obtain the refresh data, and refresh data based on the refresh data.

2. The system according to claim 1, characterized in that The host computer is further configured to: before transmitting the first refresh message to the main microprocessor, generate a first guidance instruction message of the first guidance instruction by using the main guidance service of the first type of communication protocol, and transmit the first guidance instruction message to the main microprocessor; The main microprocessor is further configured to: as the slave end, receive the first guidance instruction message by using the slave guidance service in the first type of communication protocol, as the virtual master end, generate a second guidance instruction message from the first guidance instruction message by using the second type of communication protocol through the master guidance service in the first type of communication protocol, and transmit the second guidance instruction message to the auxiliary microprocessor; The auxiliary microprocessor is also configured to: parse the received second guidance instruction message based on the second type of communication protocol to obtain the first guidance instruction message, parse the first guidance instruction message using the slave guidance service in the first type of communication protocol to obtain the first guidance instruction, and trigger the guidance program based on the first guidance instruction.

3. The system according to claim 2, characterized in that The auxiliary microprocessor is further configured to: after the refresh is completed, use the refresh result generated by the slave refresh service as response information, generate a first response message through the second type of communication protocol, and transmit it to the main microprocessor; The main microprocessor is further configured to: as the virtual master, parse the received first response message into the response information through the master refresh service in the first type of communication protocol; As the slave end, converting the response information into a second response message of the first type of communication protocol through a slave refresh service in the first type of communication protocol, and transmitting the second response message to the host computer; The host computer is further configured to: determine whether to refresh again based on the response information in the second response message by the master refresh service in the first type of communication protocol.

4. The system according to claim 3, characterized in that The communication serial port includes a LIN serial port; Correspondingly, before receiving the first response message, the main microprocessor is further configured to: set its LIN serial port to be able to receive the uploaded data of the auxiliary microprocessor, and set the communication data length of the LIN serial port to be consistent with the communication data length of the vehicle bus.

5. The system according to claim 4, characterized in that The host computer is also configured to: when sending a message, the minimum communication interval of each frame of data is set to 8 milliseconds.

6. The system according to claim 1, characterized in that The communication serial port includes a UART serial port; Correspondingly, the main microprocessor is also configured to set the baud rate of the UART serial port to 115200 bps.

7. The system according to claim 6, characterized in that The host computer is also configured as follows: when the master refresh service transmits the first refresh message, the minimum communication interval of each frame of data is set to 1 millisecond, the maximum transmission time of each frame of data is 2 milliseconds, and the maximum amount of data transmitted per second is 4Mbyte.

8. The system according to claim 1, characterized in that The host computer is further configured such that: when the master refresh service transmits the first refresh message, the data volume of each frame of data is less than or equal to the preset data volume; The main microprocessor is further configured to: establish a queue in the memory, wherein the amount of data stored in the queue is equal to an integer multiple of the preset amount of data.

9. The system according to claim 8, characterized in that The preset data volume is 2k bytes.

10. A method for upgrading dual microprocessors, applied to a main microprocessor, characterized in that: include: As a slave end in a first type of communication protocol, receiving a first refresh message transmitted by a host computer using a slave refresh service in the first type of communication protocol, wherein the first type of communication protocol refers to a unified diagnostic protocol; As a virtual master, using the master refresh service in the first communication protocol, and using the second communication protocol to generate a second refresh message from the first refresh message, wherein the second communication protocol refers to a communication protocol that matches the communication serial port; The second refresh message is transmitted to the auxiliary microprocessor through the communication serial port.