Communication protection method between MCU (Microprogrammed Control Unit) and SOC (System On Chip) and related equipment

By encrypting and comparing the chip ID and key between the MCU and SOC, the lack of efficiency and security of the communication protection method of MCU and SOC in the prior art is solved, and efficient and secure communication protection is achieved.

CN119834966APending Publication Date: 2025-04-15SHENZHEN ZHONGHONG TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411904707.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

When ensuring security, the existing communication protection methods between MCU and SOC have problems such as low communication efficiency, high cost, poor flexibility and limited protection capabilities when facing complex attack methods.

Method used

By encrypting and calculating the chip ID and key between the SOC and the MCU, the first and second target encryption parameters are generated and compared. If the comparison results are consistent, a protected state will be reported. If the comparison results are inconsistent, an unprotected state will be reported. The SOC will perform the corresponding decision based on the comparison results.

Benefits of technology

This method effectively prevents external malicious MCU from replacing the current MCU, enhancing the protection capability and reliability of the system, and not affecting communication efficiency during security verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119834966A_ABST
    Figure CN119834966A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of safety communication of an automobile electronic control system, in particular to a communication protection method between an MCU (Microprogrammed Control Unit) and an SOC (System On Chip) and related equipment. The method comprises the following steps: in an SOC, acquiring a chip ID reported by an MCU; calculating the chip ID and the secret key to obtain a first target encryption parameter, and sending the first target encryption parameter to the MCU; in the MCU, the first target encryption parameter is received, the current chip ID and the secret key are calculated, and a second target encryption parameter is obtained; comparing the first target encryption parameter with the second target encryption parameter to obtain a comparison result and reporting the comparison result to the SOC; and in the SOC, executing a corresponding decision on the information reported by the MCU based on the comparison result. According to the application, the security of communication between the MCU and the SOC can be improved while the communication efficiency is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of secure communication technology for automotive electronic control systems, and in particular to a communication protection method and related equipment between an MCU and a SOC. Background Art

[0002] With the rapid development of Internet of Vehicles and autonomous driving technologies, the functions of vehicle terminals are becoming increasingly complex and the integration is constantly improving. In vehicle terminal systems, the collaborative work of microcontroller units (MCUs) and system-on-chips (SOCs) is the key to achieving complex functions such as vehicle status monitoring and driving assistance. The efficient and secure communication between MCUs and SOCs has become a key factor in ensuring the stability and reliability of vehicle terminal systems.

[0003] In the existing technology, in order to achieve secure communication between MCU and SOC, various means are usually used to enhance the security of communication. For example, a hardware encryption module can be used to encrypt data to ensure that the data is not stolen or tampered with during transmission. In addition, an identity authentication mechanism can be introduced, such as using digital certificates or dynamic passwords, to verify the identities of both parties in communication and prevent unauthorized devices from accessing the system. Another common method is to add a checksum or hash value to the communication protocol to detect whether there is data tampering by comparing the data integrity at both ends of the sender and receiver. These means have improved the security of communication to a certain extent, but there are still some shortcomings in practical applications.

[0004] However, existing communication protection methods have certain limitations in practical applications. For example, although traditional hardware encryption modules can provide high security, they are expensive and less flexible, making it difficult to adapt to the needs of different application scenarios. Although the identity authentication mechanism can effectively prevent unauthorized access, it may cause increased communication delays in some cases, affecting the real-time performance of the system. In addition, although the use of checksums or hash values ​​is simple and easy, their protection capabilities are limited when facing complex attack methods. Therefore, how to improve the security of communication between MCU and SOC while ensuring communication efficiency has become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The purpose of this application is to overcome the above-mentioned technical problems and provide a communication protection method and related equipment between MCU and SOC, which can improve the security of communication between MCU and SOC while ensuring communication efficiency.

[0006] In a first aspect, an embodiment of the present application discloses a communication protection method between an MCU and a SOC, which adopts the following scheme: A communication protection method between an MCU and a SOC, comprising: in the SOC, obtaining a chip ID reported by the MCU; calculating the chip ID and a key to obtain a first target encryption parameter, and sending the first target encryption parameter to the MCU; in the MCU, receiving the first target encryption parameter, and calculating the current chip ID and the key to obtain a second target encryption parameter; comparing the first target encryption parameter with the second target encryption parameter, obtaining the comparison result and reporting it to the SOC; in the SOC, executing a corresponding decision on the information reported by the MCU based on the comparison result.

[0007] By adopting the above technical solution, it is possible to effectively prevent external malicious MCUs from replacing the current MCU to ensure the security and reliability of the system. This method encrypts and calculates the chip ID and key between the SOC and MCU respectively, and then compares and feedbacks them. It can take timely measures when abnormal situations are detected, thereby enhancing the system's protection capabilities, while not affecting the communication efficiency between the two during security verification.

[0008] Optionally, the calculating the chip ID and the key to obtain the first target encryption parameter includes: performing a bitwise XOR calculation on the chip ID and the key to obtain the first target encryption parameter; wherein, in the MCU, a bitwise XOR calculation is also performed on the current chip ID and the key to obtain the second target encryption parameter.

[0009] By adopting the above technical solution, the first target encryption parameter is generated by bitwise XOR operation, which not only improves the efficiency of the encryption algorithm, but also enhances the security of the data. This method can effectively prevent illegal access and data tampering while ensuring rapid response, thus improving the protection capability of the entire system.

[0010] Optionally, comparing the first target encryption parameter with the second target encryption parameter, obtaining the comparison result and reporting it to the SOC, includes: when the comparison result is the same, the MCU reports protection status information to the SOC; when the comparison result is the same, the MCU reports unprotected status information to the SOC.

[0011] By adopting the above technical solution, the security and reliability of communication between MCU and SOC can be effectively improved. Specifically, by comparing the first target encryption parameter and the second target encryption parameter, it can be ensured that the data transmission process has not been tampered with, thereby enhancing the security of the system. When the comparison results are consistent, the MCU reports the protected state to the SOC. On the contrary, if the comparison results are inconsistent, the MCU will promptly report the unprotected state, so that the SOC can promptly know the current system state, so that in the unprotected state, security measures can be taken in time to avoid potential risks.

[0012] Optionally, in the SOC, corresponding decisions are executed on the information reported by the MCU based on the comparison result, including: when the SOC receives protection status information reported by the MCU, the SOC maintains a normal working state; when the SOC receives unprotected status information reported by the MCU, the SOC executes a restart program after running for a first preset time.

[0013] By adopting the above technical solution, when the SOC receives the protection status information reported by the MCU, the SOC maintains a normal working state to ensure the stability and security of the system; when the SOC receives the unprotected status information reported by the MCU, the SOC executes the restart program after running for the first preset time, avoiding the safety hazards caused by being in an unsafe state for a long time, and improving the reliability and self-recovery capability of the system.

[0014] Optionally, when the MCU does not receive the first target encryption parameter within a second preset time, the MCU restarts the SOC, wherein the MCU controls power on and off and startup of the SOC.

[0015] By adopting the above technical solution, when the MCU does not receive the first target encryption parameter within the second preset time, the MCU can detect the abnormal communication in time and actively restart the SOC to ensure the security and stability of the system. This mechanism avoids the security risks caused by communication interruption and improves the reliability and anti-interference ability of the system.

[0016] Optionally, the SOC is communicatively connected with the MCU via UART / SPI.

[0017] By adopting the above technical solutions, the security and reliability of communication between MCU and SOC are ensured, and illegal access and data tampering are effectively prevented. Specifically, the UART / SPI communication connection method not only ensures the speed and stability of data transmission, but also simplifies the hardware design and reduces the complexity of the system. In addition, this communication method supports a variety of application scenarios and improves the adaptability and flexibility of the system.

[0018] Optionally, the key is the same in the SOC and in the MCU, wherein the key is an input parameter obtained from the outside.

[0019] By adopting the above technical solution, the same key is used to ensure the consistency of the target encryption parameters generated by both parties, thereby improving the accuracy of the comparison result.

[0020] In a second aspect, an embodiment of the present application discloses a communication protection system between an MCU and a SOC, which adopts the following scheme: A communication protection system between an MCU and a SOC, comprising: an acquisition module, used for acquiring a chip ID reported by the MCU in the SOC; a calculation module, used for calculating the chip ID and a key, acquiring a first target encryption parameter, and sending the first target encryption parameter to the MCU; a receiving and calculation module, used for receiving the first target encryption parameter in the MCU, and calculating the current chip ID and the key to acquire a second target encryption parameter; a comparison module, used for comparing the first target encryption parameter with the second target encryption parameter, acquiring the comparison result and reporting it to the SOC; and an execution module, used for executing a corresponding decision in the SOC on the information reported by the MCU based on the comparison result.

[0021] By adopting the above technical solution, the acquisition module ensures that the SOC can accurately obtain the chip ID reported by the MCU, providing basic data for subsequent encryption and verification. The calculation module calculates the chip ID and the key to generate the first target encryption parameter, and sends it to the MCU to achieve preliminary encryption of the data. The receiving and calculation module enables the MCU to receive the first target encryption parameter, and use the same key to calculate the current chip ID to generate the second target encryption parameter. The comparison module generates a comparison result and reports it to the SOC by comparing the first target encryption parameter and the second target encryption parameter. The execution module executes the corresponding decision based on the comparison result. This ensures the security and stability of the system.

[0022] In a third aspect, an embodiment of the present application discloses a communication protection device between an MCU and a SOC, which adopts the following scheme: A communication protection device between an MCU and a SOC comprises: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement the steps of a communication protection method between an MCU and a SOC as described in any one of the above when executing the computer program.

[0023] In a fourth aspect, an embodiment of the present application discloses a computer-readable storage medium, which adopts the following scheme: A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication protection method between an MCU and a SOC as described above are implemented.

[0024] In summary, the present application includes at least one of the following beneficial technical effects: 1. By encrypting and calculating the chip ID and key between the SOC and MCU, and then comparing and feeding back, timely measures can be taken when abnormal situations are detected, thus enhancing the system's protection capabilities, while not affecting the communication efficiency between the two during security verification; 2. The first target encryption parameter is generated by bitwise XOR operation, which not only improves the efficiency of the encryption algorithm but also enhances the security of the data; 3. By comparing the first target encryption parameters with the second target encryption parameters, when the comparison results are consistent, the MCU reports the protected state to the SOC, so that the SOC maintains a normal working state and ensures the stable operation of the system. On the contrary, if the comparison results are inconsistent, the MCU will promptly report the unprotected state, prompting the SOC to take corresponding security measures to avoid potential risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A schematic diagram of a communication structure between an MCU and a SOC applied to a communication protection method between an MCU and a SOC disclosed in an embodiment of the present application; Figure 2 A flow chart of a communication protection method between an MCU and a SOC disclosed in an embodiment of the present application; Figure 3 for Figure 1 A specific flow chart of a disclosed communication protection method between an MCU and a SOC; Figure 4 A schematic diagram of the structure of a communication protection system between an MCU and a SOC disclosed in another embodiment of the present application; Figure 5 A schematic diagram of the structure of a communication protection device between an MCU and a SOC disclosed in yet another embodiment of the present application. DETAILED DESCRIPTION

[0026] The present application is further described in detail below in conjunction with the accompanying drawings.

[0027] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0028] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0029] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0030] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0031] [First embodiment] See also Figure 1 In this embodiment, a communication protection method between an MCU and a SOC is disclosed, which is applied between an MCU and a SOC. The MCU and the SOC are connected via a UART (Universal Asynchronous Receiver / Transmitter) or a SPI (Serial Peripheral Interface), and the MCU is used to control the power on and off and startup of the SOC.

[0032] See also Figure 2 , a communication protection method between an MCU and a SOC, comprising the following steps: S10. In SOC, obtain the chip ID reported by MCU; Among them, in step S10, the SOC first requests the MCU to obtain the MCU chip ID, and the MCU program obtains the chip ID of the chip from the chip register when it is powered on and initialized. When the SOC requests the MCU chip ID, the chip ID of the chip will be reported to the SOC.

[0033] S20, calculate the chip ID and the key, obtain the first target encryption parameter, and send it to the MCU; Among them, the key is a known parameter input in advance and used in both MCU and SOC. The calculation method of chip ID and key is bitwise exclusive OR (XOR) operation. The operation rule of XOR operation is based on binary bits, and each bit of the two operands is compared: if the two corresponding binary bits are different, the result of XOR operation is 1 on this bit; if the two corresponding binary bits are the same, the result of XOR operation is 0 on this bit.

[0034] For example, the MCU chip ID obtained in the SOC is 0x12345678, and the same key held by the MCU and the SOC is 0xaabbccdd.

[0035] First, split the two input parameters into bytes as follows: 0x12345678 can be split into: 12, 34, 56, 78; 0xaabbccdd can be split into: aa, bb, cc, dd; Then, a bitwise exclusive OR (XOR) operation is performed on each pair of bytes as follows: 12 XOR aa = b8; 34 XOR bb = 8f; 56 XOR cc = 9a; 78 XOR dd = a5; Finally, the results of the bitwise exclusive OR (XOR) operation are combined into a new hexadecimal number: b88f9aa5; that is, the first target encryption parameter is 0xb88f9aa5.

[0036] That is to say, according to the above input parameters and algorithm, the calculated output parameter is 0xb88f9aa5.

[0037] S30, in the MCU, receiving the first target encryption parameter, and calculating the current chip ID and the key to obtain the second target encryption parameter; Among them, while receiving the first target encryption parameter in the MCU, the current MCU chip ID and key are also calculated separately to obtain a new encryption parameter, that is, the second target encryption parameter.

[0038] It is noted here that in the MCU, a bitwise XOR operation is also used to ensure the uniformity of the operation methods of the two and avoid errors in subsequent comparison results caused by the operation method. The corresponding operation method can be found in the example in the above step S20 and will not be repeated here.

[0039] In addition, when executing step S30, if the first target encryption parameter is not received within the second preset time, such as 1 minute, the MCU restarts the SOC to restore the communication state between the two. In this way, the mechanism can avoid security risks caused by communication interruption and improve the reliability and anti-interference ability of the system.

[0040] S40: Compare the first target encryption parameter with the second target encryption parameter, obtain the comparison result and report it to the SOC.

[0041] Among them, the first target encryption parameter and the second target encryption parameter are based on the same key involved in the calculation. The difference lies in whether the chip ID reported by the MCU obtained in the SOC is the same as the current chip ID when calculated in the MCU (corresponding to the comparison result). If different, it means that the MCU has been replaced during the communication between the SOC and the MCU, and the data transmitted in the communication is at risk of being captured and tampered with.

[0042] Specifically, step S40 includes: S41, when the comparison result is the same, the MCU reports protection status information to the SOC; The protection status information indicates that the communication between the SOC and the MCU is secure, and the MCU promptly feeds back the protection status to the SOC.

[0043] S42: When the comparison results are the same, the MCU reports the unprotected state information to the SOC.

[0044] The unprotected state information indicates that the communication between the SOC and the MCU is no longer secure, and the MCU feeds back the unprotected state to the SOC technology.

[0045] Thus, the configuration of the above steps S41 and S42 can enable the SOC to timely know the current system status, so that when there is no protection status information, safety measures can be taken in time to avoid potential risks.

[0046] S50. In the SOC, a corresponding decision is made on the information reported by the MCU based on the comparison result.

[0047] Among them, when the reported information is protection status information, the SOC maintains a normal working state; when the reported information is unprotected status information, the SOC executes a restart program after running for a first preset time, such as 1 minute, to avoid safety hazards caused by being in an unsafe state for a long time, thereby improving the reliability and self-recovery ability of the system.

[0048] In order to more clearly explain the communication protection method between MCU and SOC disclosed in the embodiment of the present application, please refer to Figure 3 The specific execution process is as follows: S61, SOC requests the MCU chip ID instruction from the MCU; S62, MCU reports MCU chip ID information to SOC; S63, the SOC calculates a first encryption parameter by bitwise XOR based on the MCU chip ID and the known key; S64, the SOC sends the first encryption parameter to the MCU regularly; S65, determining whether the MCU has received the first encryption parameter within a certain time limit; S66: If yes, the MCU restarts the SOC; S67, if not, the MCU calculates the second encryption parameter by bitwise XOR based on the current MCU chip ID and the key; S68, determining whether the comparison results of the first encryption parameter and the second encryption parameter are the same; S69: If yes, the MCU reports the "protected" status; S70, SOC maintains normal operation; S71, if not, the MCU reports the "no protection" status; S72. After the SOC runs for a period of time, it executes a self-restart procedure.

[0049] The detailed description of each step above can be found in the above, and will not be repeated here.

[0050] In summary, the first embodiment of the present invention discloses a communication protection method between an MCU and a SOC. By encrypting and calculating the chip ID and the key between the SOC and the MCU, and then comparing and feeding back, measures can be taken in time when an abnormal situation is detected to enhance the protection capability of the system, and at the same time, the communication efficiency of the two during security verification can be ensured. Specifically, by generating the first target encryption parameter by using a bitwise XOR operation, not only the efficiency of the encryption algorithm is improved, but also the security of the data is enhanced. When the comparison results are consistent, the MCU reports the protected state to the SOC. On the contrary, if the comparison results are inconsistent, the MCU will report the unprotected state in time, so that the SOC can know the current system state in time, so that in the unprotected state, security measures can be taken in time to avoid potential risks.

[0051] [Second embodiment] See also Figure 4 In the second embodiment of the present application, a communication protection system between an MCU and a SOC is disclosed, and the system includes: an acquisition module 81, a calculation module 82, a receiving and calculation module 83, a comparison module 84 and an execution module 85.

[0052] Among them, the acquisition module 81 is used to obtain the chip ID reported by the MCU in the SOC; the calculation module 82 is used to calculate the chip ID and the key, obtain the first target encryption parameter, and send it to the MCU; the receiving and calculation module 83 is used to receive the first target encryption parameter in the MCU, and calculate the current chip ID and the key to obtain the second target encryption parameter; the comparison module 84 is used to compare the first target encryption parameter with the second target encryption parameter, obtain the comparison result and report it to the SOC; the execution module 85 is used to execute corresponding decisions in the SOC on the information reported by the MCU based on the comparison result.

[0053] It should be noted that the communication protection method between an MCU and a SOC implemented by the communication protection system between an MCU and a SOC disclosed in the second embodiment of the present application is the same as the first embodiment, so it will not be described in detail here. Optionally, each module in this embodiment and the above-mentioned other operations or functions are respectively for implementing the methods in the aforementioned embodiments.

[0054] [Third embodiment] See also Figure 5 In the third embodiment of the present application, a communication protection device between an MCU and a SOC is disclosed, and the device includes: a memory 91 and a processor 92, the memory 91 is used to store a computer program; the processor 92 is used to implement the steps of a communication protection method between an MCU and a SOC described in the first embodiment when executing the computer program. For details, please refer to the above, so it will not be described in detail here. The technical effect of a communication protection device between an MCU and a SOC provided by this embodiment in actual application is the same as the technical effect of a communication protection method between an MCU and a SOC in the first embodiment.

[0055] [Fourth embodiment] In the fourth embodiment of the present application, a computer-readable storage medium is disclosed. The computer-readable storage medium is, for example, a non-volatile memory, such as: magnetic media (such as hard disks, floppy disks, and tapes), optical media (such as CDROM disks and DVDs), magneto-optical media (such as optical disks), and hardware devices specially constructed to store and execute computer-executable instructions (such as read-only memory (ROM), random access memory (RAM), flash memory, etc.). A computer program is stored on the computer-readable storage medium. The computer-readable storage medium can be executed by one or more processors or processing devices to implement a communication protection method between an MCU and a SOC in the aforementioned embodiment.

[0056] In addition, it can be understood that the aforementioned embodiments are only exemplary descriptions of the present invention. Under the premise that the technical features do not conflict, the structures do not contradict, and the purpose of the present invention is not violated, the technical solutions of the various embodiments can be arbitrarily combined and used in combination.

[0057] In the several embodiments provided by the present invention, it should be understood that the disclosed methods, systems and devices can be implemented in other ways. For example, the modules included in the system described above are only schematic, and the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0058] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0059] In addition, each functional unit / module in each embodiment of the present invention may be integrated into one processing unit / module, or each unit / module may exist physically separately, or two or more units / modules may be integrated into one unit / module. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of hardware plus software functional units / modules.

[0060] The above-mentioned integrated unit / module implemented in the form of a software functional unit / module can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling one or more processors of a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0061] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention 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 invention.

Claims

1. A communication protection method between MCU and SOC, characterized in that: include: In SOC, obtain the chip ID reported by MCU; Calculate the chip ID and the key to obtain the first target encryption parameter, and send it to the MCU; In the MCU, the first target encryption parameter is received, and the current chip ID and the key are calculated to obtain the second target encryption parameter; Compare the first target encryption parameter with the second target encryption parameter, obtain the comparison result and report it to the SOC; In the SOC, corresponding decisions are made on the information reported by the MCU based on the comparison result.

2. The method according to claim 1, characterized in that: The step of calculating the chip ID and the key to obtain a first target encryption parameter includes: Performing a bitwise XOR calculation on the chip ID and the key to obtain a first target encryption parameter; Among them, in the MCU, the current chip ID and the key are also subjected to a bitwise XOR calculation to obtain the second target encryption parameter.

3. The method according to claim 1, characterized in that The comparing the first target encryption parameter with the second target encryption parameter, obtaining the comparison result and reporting it to the SOC includes: When the comparison result is the same, the MCU reports protection status information to the SOC; When the comparison result is the same, the MCU reports unprotected state information to the SOC.

4. The method according to claim 3, characterized in that: In the SOC, executing corresponding decisions on the information reported by the MCU based on the comparison result includes: When the SOC receives the protection status information reported by the MCU, the SOC maintains a normal working state; When the SOC receives the unprotected state information reported by the MCU, the SOC executes a restart procedure after running for a first preset time.

5. The method according to claim 3, characterized in that: When the MCU does not receive the first target encryption parameter within a second preset time, the MCU restarts the SOC, wherein the MCU controls power on and off and startup of the SOC.

6. The method according to claim 1, characterized in that The SOC is connected to the MCU for communication via UART / SPI.

7. The method according to claim 1, characterized in that The key is the same in the SOC and in the MCU, wherein the key is an input parameter obtained from the outside.

8. A communication protection system between MCU and SOC, characterized in that: include: The acquisition module is used to obtain the chip ID reported by the MCU in the SOC; A calculation module, used to calculate the chip ID and the key, obtain the first target encryption parameter, and send it to the MCU; A receiving and calculating module, used for receiving the first target encryption parameter in the MCU, and calculating the current chip ID and the key to obtain the second target encryption parameter; A comparison module, used for comparing the first target encryption parameter with the second target encryption parameter, obtaining a comparison result and reporting it to the SOC; The execution module is used to execute corresponding decisions in the SOC on the information reported by the MCU based on the comparison result.

9. A communication protection device between MCU and SOC, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program; The processor is used to implement the steps of a communication protection method between an MCU and a SOC as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the communication protection method between an MCU and a SOC as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • MCU program encryption method, intelligent terminal and storage medium

    CN111062007A

  • Message transmission method and apparatus

    CN113439425A

  • Secure communication method applicable to internal chips of vehicle-mounted ECU

    CN113765651A

  • Secure communication method and system between chips in vehicle-mounted intelligent ECU

    CN116094692A

  • DToF intelligent module communication method and device, dToF intelligent module and storage medium

    CN118642993A