Method and device for safe mirroring of intelligent driving vehicle data model
By using the OBD interface to control data mirroring in intelligent driving vehicles, the problem of data model window period after new parts is replaced is solved, and the rapid transmission and verification of data is realized, resource waste and energy consumption are reduced, and the vehicle's Operational efficiency and economicality.
Patent Information
- Application Number
- CN202411305236.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When replacing new parts of intelligent driving vehicles, data collection and learning are needed, resulting in waste of resources, high energy consumption, low operating efficiency in the short term, and a window period of data models, affecting usage efficiency and economicality.
By connecting the new piece to the OBD interface of the whole vehicle, using mirror control, the original data is completely copied to the new piece, establish a data communication link, perform checksum data transmission, reduce the time for re-acquisition of data, and ensure the continuity of the data model .
It reduces the window period of the data model, improves the practicality and economy of intelligent driving vehicles, ensures that new parts can be operated directly, reduces resource waste and energy consumption, and improves work efficiency.
Smart Images

Figure CN119109935A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention generally relate to the field of intelligent driving vehicle technology, and more particularly to a method and device for secure mirroring of an intelligent driving vehicle data model. Background Art
[0002] With the rise of artificial intelligence, more and more products are transforming towards intelligence and networking. In the automotive field, a large number of AI intelligent driving cockpit control technologies have also emerged. They use 3D depth cameras, 4D millimeter wave radars, laser radars and other sensors for deep learning, and timely grasp the vehicle's operating habits, route positions, driving styles, etc., bringing great convenience to life.
[0003] However, with the increasing use of intelligent and networked car smart driving cockpits, once quality after-sales problems occur, when replacing new parts, the new parts need to re-collect data and learn. Therefore, there will be a short-term blank period of artificial intelligence learning for new parts. The deep learning data, work habits, driving style, work time statistics, monthly traffic statistics, parameter intelligent optimization configuration, intelligent energy management, etc. accumulated in the early use are all reset to zero, without any data reference, and parameters need to be re-learned and optimized. The resulting problems will cause waste of resources in the short term, and even high energy consumption, inadequate work, low work efficiency and other problems. In order to solve the current situation, it is urgent to invent a terminal data model mirror control system and method that can realize parameter self-recovery of after-sales new parts, copy all the information of the original to ensure that there is no window period and maximize efficiency. Summary of the invention
[0004] To solve the above problems, the present invention connects the new part to the OBD interface of the whole vehicle after the old part to be updated is damaged, obtains the power supply of the whole vehicle through the OBD interface and maintains it in the same communication network as the old part, thus meeting the external conditions for data communication, and then completely copies the original data through mirror control, thereby performing calculations on the model of the original data, reducing the time for the model to re-collect data and re-learn, and the new part can be directly operated after installation, thus reducing the window period caused by the data model to a minimum, thereby improving practicality and economy.
[0005] According to an embodiment of the present invention, a method and apparatus for secure mirroring of an intelligent driving vehicle data model are provided.
[0006] In a first aspect of the present invention, a method for secure mirroring of an intelligent driving vehicle data model is provided. The method comprises: S01: Connect the ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; S02: After the old part is damaged, the new part is connected to the vehicle interface. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies on the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link. S03: The old part compares the verification key with the new part. After the old part calculates the verification key by itself and the comparison result is passed, it replies with a mirroring command, and the new part starts mirroring data transmission. After the data transmission is completed, the new part and the old part send check bits to each other. S04: After the verification is completed, the new part sends the software version after verifying the image to the old part. The old part confirms that the version information is consistent and replies to the new part. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
[0007] Furthermore, the main control microcontroller MCU described in S01 is used to run the system program, collect camera, millimeter wave radar, ultrasonic radar, and visual parameters, perform deep learning by collecting accelerator pedal, brake pedal, gear, vehicle speed, motor speed, and motor torque signals, and store the system parameters in the ferroelectric memory.
[0008] Furthermore, the new component described in S02 preferentially sends a handshake message to request to establish a data communication link with the old component. If there is no old component on the vehicle or the old component does not respond, the new component times out of the mechanism and reports a failure result through sound and light signals.
[0009] Furthermore, the specific steps of comparing the verification keys between the old part and the new part described in S03 are as follows: the old part sends a frame of message through a fixed CANID, the data length is 8 bytes, the first 6 bytes are random numbers, and the last 2 bytes are the verification password. The two parties have agreed on encryption rules and key parsing rules. After the new part receives and calculates the data, it also sends a frame of message through a fixed CANID, and the data length is 8 bytes for reply. The recalculation result verifies the result of the first 6 bytes, and the key password is calculated and placed in the last 2 bytes. At the same time, according to the 2 key passwords sent by the old part, combined with the established rules of both parties, the new part reverses the first 6 bytes and forms 8 bytes to return. The old part verifies the result. If it is completely correct, the old part replies with a frame of message to mirror the command.
[0010] Furthermore, the new component in S03 starts mirror data transmission, and the data includes the data stored in the external ferroelectric memory of the old component and the internal Flash program of the MCU microcontroller and the data of the external E2PROM memory.
[0011] In a second aspect of the present invention, a device for secure mirroring of an intelligent driving vehicle data model is provided. The device comprises: Connection module: used to connect ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; Communication module: used to connect the new part to the vehicle interface after the old part is damaged. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies to the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link; Mirror module: used to compare the verification key between the old and new parts. After the old part calculates the verification key by itself and the comparison result is passed, it replies with the mirror command, and the new part starts the mirror data transmission. After the data transmission is completed, the new and old parts send the verification bits to each other. Verification module: After the verification is completed, the new part sends the software version after verification mirroring to the old part. The old part replies to the new part after confirming that the version information is consistent. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
[0012] Furthermore, the main control microcontroller MCU described in the connection module is used to run the system program, collect camera, millimeter wave radar, ultrasonic radar, and visual parameters, perform deep learning by collecting accelerator pedal, brake pedal, gear, vehicle speed, motor speed, and motor torque signals, and store the system parameters in the ferroelectric memory.
[0013] Furthermore, the new component in the communication module preferentially sends a handshake message to request to establish a data communication link with the old component. If there is no old component on the vehicle or the old component does not respond, the new component times out of the mechanism and reports a failure result through sound and light signals.
[0014] Furthermore, the specific steps for comparing the verification keys between the old part and the new part described in the mirroring module are as follows: the old part sends a frame of message through a fixed CANID, the data length is 8 bytes, the first 6 bytes are random numbers, and the last 2 bytes are the verification password. The two parties have agreed on encryption rules and key parsing rules. After the new part receives and calculates the data, it also sends a frame of message through a fixed CANID, and the data length is 8 bytes for reply. The recalculation result verifies the result of the first 6 bytes, and the key password is calculated and placed in the last 2 bytes. At the same time, according to the 2 key passwords sent by the old part, combined with the established rules of both parties, the new part reverses the first 6 bytes and forms 8 bytes to return. The old part verifies the result. If it is completely correct, the old part replies with a frame of message to mirror the command.
[0015] Furthermore, the new component in the mirror module starts mirror data transmission, and the data includes the data stored in the external ferroelectric memory of the old component and the internal Flash program of the MCU microcontroller and the data of the external E2PROM memory.
[0016] The present invention connects the new part to the OBD interface of the whole vehicle after the old part to be updated is damaged, obtains the power supply of the whole vehicle through the OBD interface and maintains the same communication network as the old part, thus meeting the external conditions for data communication, and then completely copies the original data through mirror control, thereby performing calculations on the model of the original data, reducing the time for the model to re-collect data and re-learn, and the new part can be directly operated after being installed, thus reducing the window period for the data model to a minimum, thereby improving practicality and economy.
[0017] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Figure 1 A flow chart of a method for secure mirroring of an intelligent driving vehicle data model according to an embodiment of the present invention is shown; Figure 2 A block diagram of a device for secure mirroring of an intelligent driving vehicle data model according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0020] According to an implementation manner of the present invention, a method and device for secure mirroring of a data model of an intelligent driving vehicle are proposed. When an old part to be updated is damaged, a new part is connected to the OBD interface of the entire vehicle, and the power supply of the entire vehicle is obtained through the OBD interface. The new part is maintained in the same communication network as the old part, thus meeting the external conditions for data communication. The original data is then completely copied through mirroring control, thereby performing calculations on the model of the original data, reducing the time for the model to re-collect data and re-learn. The new part can be directly operated after installation, and the window period for the data model is reduced to a minimum, thereby improving practicality and economy.
[0021] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.
[0022] Figure 1 This is a flow chart of a method for secure mirroring of an intelligent driving vehicle data model according to an embodiment of the present invention. The method includes: S01: Connect the ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; S02: After the old part is damaged, the new part is connected to the vehicle interface. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies on the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link. S03: The old part compares the verification key with the new part. After the old part calculates the verification key by itself and the comparison result is passed, it replies with a mirroring command, and the new part starts mirroring data transmission. After the data transmission is completed, the new part and the old part send check bits to each other. S04: After the verification is completed, the new part sends the software version after verifying the image to the old part. The old part confirms that the version information is consistent and replies to the new part. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
[0023] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0024] In order to explain the above-mentioned method of secure mirroring of intelligent driving vehicle data model more clearly, a specific embodiment is described below. However, it is worth noting that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation of the present invention.
[0025] The following is a specific example to further illustrate the method of secure mirroring of the intelligent driving vehicle data model in more detail: This embodiment takes the CAN bus communication in the vehicle OBD interface as an example, but in specific use, communication is completed by interface methods including but not limited to CAN, CANFD, Flexray, USB, RS232 / TTL serial port, RS485, Ethernet port, Zigbee, 433MHz wireless, Lora, WIFI and Bluetooth.
[0026] This embodiment mainly consists of the following parts: main control microcontroller MCU, ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port.
[0027] The computing unit is the main control MCU, which is responsible for running the system program, collecting visual parameters of the camera, millimeter-wave radar, and ultrasonic radar, and collecting accelerator pedal, brake pedal, gear position, vehicle speed, motor speed, and motor torque signals through the CAN bus for deep learning, and storing the system parameters in a ferroelectric memory. Considering that deep learning often requires modification of system parameters, the present invention stores system parameters and model learning data in a ferroelectric memory. The ferroelectric memory can be read and written up to tens of billions of times, has a long service life, and data is not lost when power is off.
[0028] The 5G module is mainly responsible for communicating with the monitoring platform. The uploaded information includes the CAN information of the whole vehicle, such as the accelerator pedal, brake pedal, vehicle speed, gear, motor speed, and motor torque. At the same time, it can accept control commands issued by the monitoring platform, such as remote locking and speed limit. WIFI can share hotspots for drivers to connect to the Internet through WIFI. The Bluetooth module is responsible for near-field communication.
[0029] The ADC unit is mainly responsible for using the water level of the box, ambient temperature, motor voltage, and motor current.
[0030] The sweeping brush motor, push rod motor and fan are mainly used to control the speed of the sweeping disc motor.
[0031] The E2PROM storage unit is mainly used to store intelligent driving cockpit terminal learning model data, work log, driving habit MAP, monthly traffic statistics, and operation time.
[0032] When a new part is replaced due to quality problems, the old part can be connected to the new part via the CAN bus. At this time, the old part terminal reads the ferroelectric memory and external Flash data and communicates with the new part through the above connection method to transmit data.
[0033] The present invention is based on the CAN bus. When the old parts to be updated are damaged, the new parts are connected to the OBD interface of the whole vehicle. While obtaining the power of the whole vehicle through the OBD interface, they can also be kept in the same CAN bus network with the old parts, thus having the external conditions for data communication.
[0034] The new part sends a handshake message first, requesting to establish a data communication link with the old part. If there is no old part on the vehicle or the old part does not respond, the new part times out of the mechanism and reports the failure result through sound and light signals.
[0035] After the old part receives the handshake message, it replies on the validity of the data. After the new part receives the correctness reply, the old part and the new part establish a valid data communication link. The old part sends a CAN message frame through a fixed CANID of the CAN bus. The data length is 8 bytes. The first 6 bytes are random numbers, and the last 2 bytes are verification passwords. Both parties have agreed on encryption rules and key parsing rules. After the new part receives and calculates the data, it also sends a CAN message frame through a fixed CANID. The data length is 8 bytes for reply. The recalculation result verifies the result of the first 6 bytes, and the calculated key password is placed in the last 2 bytes. At the same time, according to the 2 key passwords sent by the old part and the established rules of both parties, the new part reverses the first 6 bytes and forms 8 bytes to return. The old part verifies the result. After it is completely correct, the old part replies with a CAN message frame to mirror the command.
[0036] In this embodiment, the old device sends a CANID of 0x7FE, a data length (DLC) of 8, data of 0x38 0x35 0x33 0x38 0x38 0x38 0x51 0x04, a random number of 0x38 0x35 0x33 0x38 0x38 0x38, and a verification password of 0x5104 (Intel format). After receiving the message, the new device verifies the first 6 bytes, i.e., 0x38 0x35 0x33 0x38 0x38 0x38, by using CRC16, and the result is 0x0E78 (Intel format). At the same time, the random number 0x08 0x05 0x03 0x08 0x08 is deduced based on the verification password 0x5104. 0x08, so the CANID sent by the new part is 0x7EF, the data length (DLC) is 8, and the data is 0x08 0x05 0x03 0x08 0x08 0x08 0x0E 0x78. The old part verifies the random number 0x38 0x35 0x33 0x38 0x38 0x38 just sent again through CRC16 verification to see if the result is 0x0E78. At the same time, a CRC16 verification is performed on the random number 0x08 0x05 0x03 0x08 0x08 0x08 sent by the new part to see if the result is 0x5104. If the old part replies with a CAN message 0x7EE, the data length (DLC) is 1, and the data is 0x84, it means that data mirroring can be performed. Then the new part starts mirror data transmission. If it fails, the old device replies with a CAN message 0x7EE, with a data length (DLC) of 1 and data 0x70, indicating a verification error command. Mirroring is not allowed, and the old device exits and enters sleep mode. If mirroring needs to continue, the process needs to start over from the beginning. The new device sends out an audible and visual reminder indicating failure.
[0037] After the old part calculates the verification key by itself and the comparison result is passed, it replies with the mirror command and the new part starts mirror data transmission. The data includes the data stored in the external ferroelectric memory of the old part, the internal Flash program of the MCU microcontroller, and the data of the external E2PROM memory.
[0038] After the data transmission is completed, both parties send check bits to each other: 0x13890245 (CRC32 check is performed according to the program data). After the check is completed, the new part sends the software version after verifying the image to the old part. The old part confirms that the version information is consistent and replies to the new part. The new part starts the sound and light signal prompt, and prompts the execution result through the LED indicator and buzzer sound. The old part exits the handshake mechanism, and the new part exits sleep. The after-sales service personnel can go to install and replace it.
[0039] In this embodiment, data mirroring can be performed using the CAN interface through the OBD diagnostic inspection port of the vehicle. The mirroring operation is convenient, and there is no need to find the specific location of the old device on the vehicle, no need to remove it, and no need to perform it point-to-point. It can be performed on the original CAN network of the vehicle. All vehicles with OBD diagnostic ports generally have this type of interface, standard interface definition, and easy operation with fool-proof design; the new part is connected through the OBD adapter cable, and it is automatically identified, automatically handshaked, automatically mirrored, and automatically backed up on the CAN network of the vehicle. The operation results are automatically prompted by various signals such as sound and light, without intervention, and no professional technical after-sales personnel are required, and the technical requirements for after-sales service personnel are extremely low; it not only relies on the safer CAN bus for communication, but also combines the CAN bus transmission handshake mechanism, security key mechanism, data encryption mechanism, data verification mechanism, etc., which is not easy to crack and attack, ensuring transmission security; the storage of autonomous learning model data is not only in the internal Flash of the single-chip microcomputer, but also in the external FRAM ferroelectric memory. FRAM has a read and write life of hundreds of millions of times, and the double-layer mechanism has dual protection to ensure the stability and reliability of the data mirroring process; the data model mirroring control operation reduces the chance of terminal device program outflow, and the disassembly of the program The risk of anti-decryption is further reduced, ensuring that the privacy of the program is not easily cracked, imitated or attacked by peers; the mirror image of the data model is stored in the internal Flash of the new microcontroller and the external ferroelectric FRAM, which is consistent with the original, and the data size, storage location, storage method, etc. are all consistent with the original. The integrity of the data is ensured by verification during all data transmission processes, and the data integrity and accuracy are verified by re-comparison of the internal Flash and external ferroelectric FRAM mirror data, thereby ensuring the absolute accuracy of the data; through mirror control, the original data is completely copied, so that the calculation can continue on the model of the original data, reducing the time for the model to re-collect data and re-learn. The new part can be directly operated after installation, and the window period generated by the data model is reduced to a minimum, which improves practicality and economy; the mirror control of the data model can inherit all previous data, including key data, such as the cumulative usage of traffic each month, and continue statistics and model calculations to ensure the integrity of data statistics, which is more conducive to the subsequent optimization of the data model; through high-speed CAN communication, the communication rate is fast, the mirror speed is fast, and the entire mirror copy of the model data can be completed in a short time, with little impact on the vehicle operation time.
[0040] Based on the same inventive concept, the present invention also proposes a device for secure mirroring of intelligent driving vehicle data models. The implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated. Figure 2 As shown, the device 100 includes: Connection module 101: used to connect ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; Communication module 102: used to connect a new part to the vehicle interface after the old part is damaged. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link; Mirror module 103: used to compare the verification key between the old part and the new part. After the old part calculates the verification key by itself and the comparison result is passed, it replies with a mirroring command, and the new part starts mirroring data transmission. After the data transmission is completed, the new part and the old part send check bits to each other; Verification module 104: After the verification is completed, the new part sends the software version after verification mirroring to the old part. The old part replies to the new part after confirming that the version information is consistent. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
[0041] The present invention proposes a device for secure mirroring of data models of intelligent driving vehicles. When an old part to be updated is damaged, a new part is connected to the OBD interface of the whole vehicle, the power supply of the whole vehicle is obtained through the OBD interface and the old part is maintained in the same communication network, thus meeting the external conditions for data communication. Then, the original data is completely copied through mirroring control, thereby performing calculations on the model of the original data, reducing the time for re-collecting data and re-learning the model. The new part can be directly operated after being installed, thus minimizing the window period for the data model and improving practicality and economy.
[0042] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.
[0043] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.
Claims
1. A method for secure mirroring of an intelligent driving vehicle data model, characterized in that: The method includes: S01: Connect the ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; S02: After the old part is damaged, the new part is connected to the vehicle interface. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies on the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link. S03: The old part compares the verification key with the new part. After the old part calculates the verification key by itself and the comparison result is passed, it replies with a mirroring command, and the new part starts mirroring data transmission. After the data transmission is completed, the new part and the old part send check bits to each other. S04: After the verification is completed, the new part sends the software version after verifying the image to the old part. The old part confirms that the version information is consistent and replies to the new part. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
2. The method for secure mirroring of an intelligent driving vehicle data model according to claim 1, characterized in that: The main control microcontroller MCU described in S01 is used to run the system program, collect camera, millimeter wave radar, ultrasonic radar, and visual parameters, perform deep learning by collecting accelerator pedal, brake pedal, gear, vehicle speed, motor speed, and motor torque signals, and store the system parameters in the ferroelectric memory.
3. The method for secure mirroring of an intelligent driving vehicle data model according to claim 1, characterized in that: The new part described in S02 sends a handshake message first, requesting to establish a data communication link with the old part. If there is no old part on the vehicle or the old part does not reply, the new part times out of the mechanism and reports a failure result through sound and light signals.
4. The method for secure mirroring of an intelligent driving vehicle data model according to claim 1, characterized in that: The specific steps of comparing the verification keys of the old part and the new part described in S03 are as follows: the old part sends a frame of message through a fixed CANID, the data length is 8 bytes, the first 6 bytes are random numbers, and the last 2 bytes are the verification password. The two parties have agreed on encryption rules and key parsing rules. After the new part receives and calculates the data, it also sends a frame of message through a fixed CANID, and the data length is 8 bytes for reply. The recalculation result verifies the result of the first 6 bytes, and the key password is calculated and placed in the last 2 bytes. At the same time, according to the 2 key passwords sent by the old part, combined with the established rules of both parties, the new part reversely deduces the first 6 bytes, and forms 8 bytes to return. The old part verifies the result. If it is completely correct, the old part replies with a frame of message to mirror the command.
5. The method for secure mirroring of an intelligent driving vehicle data model according to claim 1, characterized in that: The new component in S03 starts mirror data transmission, and the data includes the data stored in the external ferroelectric memory of the old component and the internal Flash program of the MCU microcontroller and the data of the external E2PROM memory.
6. A device for secure mirroring of intelligent driving vehicle data model, characterized in that: The device includes: Connection module: used to connect ferroelectric memory, external E2PROM memory, 5G communication unit, WIFI communication unit, BT Bluetooth communication unit, ADC detection unit, ultrasonic radar ranging unit, sweeping brush motor and push rod motor control unit, CAN communication unit, RS485 / RS232 communication unit, camera and debugging port to the main control microcontroller MCU; Communication module: used to connect the new part to the vehicle interface after the old part is damaged. The new part sends a handshake message first to request to establish a data communication link with the old part. After receiving the handshake message, the old part replies to the validity of the data. The new part receives the correctness reply, and the old part and the new part establish a valid data communication link; Mirror module: used to compare the verification key between the old and new parts. After the old part calculates the verification key by itself and the comparison result is passed, it replies with the mirror command, and the new part starts the mirror data transmission. After the data transmission is completed, the new and old parts send the verification bits to each other. Verification module: After the verification is completed, the new part sends the software version after verification mirroring to the old part. The old part replies to the new part after confirming that the version information is consistent. The new part starts the sound and light signal prompt, the old part exits the handshake mechanism, the new part exits sleep, and the after-sales service personnel install and replace the new part.
7. The device for secure mirroring of an intelligent driving vehicle data model according to claim 6, characterized in that: The main control microcontroller MCU described in the connection module is used to run the system program, collect camera, millimeter wave radar, ultrasonic radar, and visual parameters, perform deep learning by collecting accelerator pedal, brake pedal, gear, vehicle speed, motor speed, and motor torque signals, and store the system parameters in the ferroelectric memory.
8. The device for secure mirroring of an intelligent driving vehicle data model according to claim 6, characterized in that: The new part described in the communication module sends a handshake message first, requesting to establish a data communication link with the old part. If there is no old part on the vehicle or the old part does not reply, the new part times out of the mechanism and reports the failure result through sound and light signals.
9. The device for secure mirroring of an intelligent driving vehicle data model according to claim 6, characterized in that: The specific steps for comparing the verification keys between the old and new parts described in the mirror module are as follows: the old part sends a message frame through a fixed CANID, the data length is 8 bytes, the first 6 bytes are random numbers, and the last 2 bytes are the verification password. The two parties have agreed on encryption rules and key parsing rules. After the new part receives and calculates the data, it also sends a message frame through a fixed CANID, and the data length is 8 bytes for reply. The recalculation result verifies the result of the first 6 bytes, and the key password is calculated and placed in the last 2 bytes. At the same time, according to the 2 key passwords sent by the old part, combined with the established rules of both parties, the new part reverses the first 6 bytes and forms 8 bytes to return. The old part verifies the result. If it is completely correct, the old part replies with a message frame to mirror the command.
10. The device for secure mirroring of an intelligent driving vehicle data model according to claim 6, characterized in that: The new part in the mirror module starts mirror data transmission, and the data includes the data stored in the external ferroelectric memory of the old part, the internal Flash program of the MCU microcontroller, and the data of the external E2PROM memory.
