Vehicle-mounted security log reading method, system, device and equipment and storage medium

By sending read request messages to the on-board controller for authentication and unlocking the secure log access rights, the problem of inability to read on-board security logs efficiently and securely in the prior art is solved, and efficient and secure log reading and management are achieved.

CN119938627APending Publication Date: 2025-05-06CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510036077.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-09
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, it is impossible to read on-board security logs efficiently and securely, and log management has security and reliability problems, such as possible tampering or illegal access during log transmission.

Method used

By sending a read request message to the on-board controller for authentication, if the authentication is passed, the security log access permission is unlocked, and then the read service message is sent to read the target security log. The method includes performing multiple batch readings based on log identification, read count and read batch to ensure the security of log content in transmission.

Benefits of technology

It realizes efficient reading of on-board security logs, improves operational efficiency, and ensures the security and reliability of the logs through an authentication mechanism, preventing log content from being tampered with or illegally accessed during transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938627A_ABST
    Figure CN119938627A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted security log reading method, system, device and equipment and a storage medium, and the method comprises the steps: sending a reading request message to a vehicle-mounted controller, so that the vehicle-mounted controller carries out the identity verification of the reading request message, and unlocking a security log access authority if the identity verification is passed; sending a reading service message to the vehicle-mounted controller, and reading the target security log from the vehicle-mounted controller based on the log identifier and the reading number in the reading service message; if the number of the read service messages is multiple, multiple batches of target security logs are read from the vehicle-mounted controller on the basis of the log identifiers, the read number and the read batches in the read service messages, and the technical problem that the vehicle-mounted security logs cannot be safely and efficiently read can be solved through the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a vehicle safety log reading method, system, device, equipment and storage medium. Background Art

[0002] With the rapid development of intelligent automobile technology, vehicle safety has received more and more attention. The management and analysis of vehicle safety logs is one of the important means to ensure vehicle safety. Modern vehicles are equipped with advanced diagnostic systems that can record various events and states of the vehicle in real time during driving and store them in the form of safety logs. By analyzing the vehicle safety logs, potential safety issues of the vehicle can be discovered and resolved in a timely manner, thereby improving the safety of the vehicle.

[0003] However, in the related art, when various events occur in the vehicle, the method of obtaining the vehicle safety log is relatively cumbersome, the number of logs obtained is huge, and the desired data cannot be extracted efficiently. In addition, the log management technology in the related art has security and reliability issues, such as the possibility of tampering with the log during transmission or illegal access. Summary of the invention

[0004] In view of the shortcomings of the related technologies mentioned above, the present application provides a method, system, device, equipment and storage medium for reading a vehicle safety log to solve the technical problem in the related technologies that the vehicle safety log cannot be read efficiently and safely.

[0005] The present application provides a method for reading a vehicle security log, which includes: sending a read request message to a vehicle controller so that the vehicle controller authenticates the read request message, and if the identity authentication is passed, unlocking the security log access right; after unlocking the security log access right, sending the read service message to the vehicle controller, and reading a target security log from the vehicle controller based on a log identifier and a read quantity in the read service message; if there are multiple read service messages, reading multiple batches of target security logs from the vehicle controller based on the log identifier, the read quantity and the read batch in the read service message.

[0006] In one embodiment of the present application, sending a read request message to the vehicle controller so that the vehicle controller authenticates the read request message includes: sending a read request message to the vehicle controller so that the vehicle controller returns a security parameter based on the read request message; calculating a key message according to the security parameter, and sending the key message to the vehicle controller so that the vehicle controller compares the key message with a pre-stored verification key;

[0007] If the comparison is successful, the identity authentication is passed; if the comparison fails, the identity authentication fails.

[0008] In one embodiment of the present application, if the comparison fails, the identity verification includes: if a negative response indicating a failure of verification is received from the vehicle-mounted controller, the identity verification fails.

[0009] In one embodiment of the present application, reading the target security log from the vehicle controller based on the log identifier and the read quantity in the read service message includes: determining the log type of the target security log according to the log identifier, the log type including a self-upgrade security boot log, a unified diagnostic log, an over-the-air download event log, and a vehicle self-diagnosis log; determining the number of logs of the target security log based on the read quantity, and reading the target security log from the vehicle controller based on the log type and the number of logs.

[0010] In one embodiment of the present application, before sending a read service message to the on-board controller, it also includes: setting the log identifier of the self-upgrade security boot log to the first security level; setting the log identifier of the unified diagnostic log to the second security level; setting the log identifier of the over-the-air download event log to the third security level; setting the log identifier of the on-board self-diagnostic log to the fourth security level; determining a readable security level range based on the security log access rights, and sending a read service message to the on-board controller based on the readable security level range.

[0011] In one embodiment of the present application, the vehicle-mounted security log reading method further includes: before sending a read request message to the vehicle-mounted controller, sending a calibration message to the vehicle-mounted controller for clock synchronization; after reading the target security log, performing time conversion on the timestamp in the target security log to obtain a readable time format.

[0012] An embodiment of the present application also provides a vehicle-mounted security log reading system, the vehicle-mounted security log reading system includes a reading device and a vehicle-mounted controller, the reading device includes a verification module, a forwarding module and a timing module; the verification module is used to send a read request message to the vehicle-mounted controller to unlock the security log access rights; the forwarding module is used to obtain the read service message and read the target security log from the vehicle-mounted controller based on the read service message; the timing module is used to send a timing message to the vehicle-mounted controller, and time-convert the timestamp in the target security log. The vehicle-mounted controller is used to receive the read request message and authenticate the reading device based on the read request message, and receive the read service message and send the target security log to the reading device based on the read service message.

[0013] An embodiment of the present application also provides a vehicle-mounted security log reading device, which includes: an authority unlocking module, which is used to send a read request message to a vehicle-mounted controller so that the vehicle-mounted controller authenticates the read request message, and if the identity authentication is passed, the security log access right is unlocked; a single-batch reading module, which sends the read service message to the vehicle-mounted controller after unlocking the security log access right, and reads the target security log from the vehicle-mounted controller based on the log identifier and read quantity in the read service message; a multi-batch reading module, which is used to read multiple batches of target security logs from the vehicle-mounted controller based on the log identifier, read quantity and read batch in the read service message if there are multiple read service messages.

[0014] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the electronic device implements the vehicle safety log reading method as described in any of the above embodiments.

[0015] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle safety log reading method as described in any of the above embodiments.

[0016] Beneficial effects of the present application: The embodiments of the present application provide a method, system, device, equipment and storage medium for reading a vehicle security log, the method comprising: sending a read request message to a vehicle controller so that the vehicle controller authenticates the read request message, if the identity authentication is passed, the security log access right is unlocked; sending a read service message to the vehicle controller, and reading a target security log from the vehicle controller based on the log identifier and the read quantity in the read service message; if there are multiple read service messages, multiple batches of target security logs are read from the vehicle controller based on the log identifier, the read quantity and the read batch in the read service message, by classifying the security log based on the log identifier, the log information of the target classification can be obtained more accurately, which is convenient for subsequent analysis and processing, a large number of logs can be quickly obtained in batches through the read quantity and the read batch, thereby improving the operation efficiency, and the identity authentication mechanism can effectively prevent the log content from being tampered with or illegally accessed during transmission, thereby enhancing the security and reliability of the vehicle security log.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of a vehicle-mounted safety log reading system shown in an exemplary embodiment of the present application;

[0019] Figure 2 is a flow chart of a vehicle safety log reading method shown in an exemplary embodiment of the present application;

[0020] Figure 3 is a schematic diagram of an identity authentication process shown in an exemplary embodiment of the present application;

[0021] Figure 4 is a block diagram of a vehicle-mounted safety log reading device shown in an exemplary embodiment of the present application;

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

[0023] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0024] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0025] It should be noted that in this application, "first", "second", etc. are only used to distinguish similar objects, and are not used to limit the order or precedence of similar objects. The variations of "including", "having", etc. described above indicate that the scope covered by the subject of the word is not exclusive except for the examples shown by the word.

[0026] It is understood that the various numbers, step numbers, and other reference numerals recorded in this application are distinguished for the convenience of description and are not intended to limit the scope of this application. The size of the reference numerals in this application does not mean the order of execution. The execution order of each process should be determined by its function and internal logic.

[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.

[0028] The embodiments of the present application respectively propose a vehicle-mounted safety log reading method, a vehicle-mounted safety log reading device, a vehicle-mounted safety log reading system, an electronic device, a computer-readable storage medium and a computer program product, which will be described in detail below.

[0029] See also Figure 1 , Figure 1 It is a schematic diagram of a vehicle-mounted security log reading system shown as an exemplary embodiment of the present application. The vehicle-mounted security log reading system includes a vehicle-mounted controller 101 and a reading device 102, wherein the vehicle-mounted controller 101 can be a gateway controller with a security log storage function, and the reading device 102 includes a verification module, a forwarding module and a time calibration module.

[0030] In one embodiment of the present application, the verification module is used to send a read request message to the vehicle controller 101 to unlock the security log access rights; the forwarding module is used to obtain the read service message and read the target security log from the vehicle controller 101 based on the read service message; the time calibration module is used to send a calibration message to the vehicle controller 101 and perform time conversion on the timestamp in the target security log. The vehicle controller 101 is used to receive the read request message and authenticate the reading device 102 based on the read request message, and receive the read service message and send the target security log to the reading device 102 based on the read service message.

[0031] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a method for reading a vehicle safety log according to an exemplary embodiment of the present application. Figure 2 As shown, in an exemplary embodiment, the vehicle safety log reading method includes at least steps S210 to S230, which are described in detail as follows:

[0032] Step S210, sending a read request message to the vehicle controller so that the vehicle controller authenticates the read request message, and if the authentication is successful, unlocking the security log access right.

[0033] In one embodiment of the present application, sending a read request message to the on-board controller so that the on-board controller authenticates the read request message includes: sending a read request message to the on-board controller so that the on-board controller returns security parameters based on the read request message; calculating a key message based on the security parameters, and sending the key message to the on-board controller so that the on-board controller compares the key message with a pre-stored verification key; if the comparison is successful, the identity authentication is passed, and if the comparison fails, the identity authentication fails.

[0034] In one embodiment of the present application, if the comparison fails, the identity authentication includes: if a negative response of verification failure returned by the vehicle controller is received, the identity authentication fails.

[0035] See also Figure 3 , Figure 3 is a schematic diagram of an identity verification process shown in an exemplary embodiment of the present application. Figure 3 In the process of verifying the reader, the reader sends a read request message to the ECU (Electronic Control Unit) through the UDS service. After receiving the read request message, the ECU returns security parameters to the reader. The security parameters are input parameters for the reader and the ECU to calculate the key. After receiving the security parameters, the reader calculates a key message based on the security parameters and the preset algorithm and sends it to the ECU. The ECU compares the key in the key message with the key pre-stored in the ECU. If the two keys are successfully compared, the identity authentication is passed and the security log access right is unlocked.

[0036] In one embodiment of the present application, the reading device sends a read request message including 27xx to request security parameters, where xx represents the security level corresponding to the requested security parameters (can be preset, for example, 01 is the first security level, 02 is the second security level, 03 is the third security level, and 04 is the fourth security level). After receiving the read request message including 27xx, the ECU will reply with a response instruction of 67yy, where yy represents the security parameters of the corresponding security level replied by the ECU. The reading device calculates the key based on the returned security parameters and sends the key to the ECU based on the key message. The ECU compares the received key and returns an affirmative response if they are the same, and unlocks the security log access rights of the corresponding security level.

[0037] Step S220, after unlocking the security log access right, sending a read service message to the vehicle controller, and reading the target security log from the vehicle controller based on the log identifier and the read quantity in the read service message.

[0038] In one embodiment of the present application, reading the target security log from the vehicle controller based on the log identifier and the read quantity in the read service message includes: determining the log type of the target security log according to the log identifier, the log types including self-upgrade security boot log, unified diagnostic log, over-the-air download event log and vehicle self-diagnosis log; determining the number of logs in the target security log based on the read quantity, and reading the target security log from the vehicle controller based on the log type and the number of logs.

[0039] In one embodiment of the present application, the vehicle-mounted safety log is divided into four types, including a self-upgrade safety boot log, a unified diagnostic log, an over-the-air download event log, and a vehicle-mounted self-diagnostic log. The log identifier of the self-upgrade safety boot log is set to 01, the log identifier of the unified diagnostic log is set to 02, the log identifier of the over-the-air download event log is set to 00, and the log identifier of the vehicle-mounted self-diagnostic log is set to 04.

[0040] In one embodiment of the present application, the record format of the unified diagnostic log is: 0x31+routine control type+routine ID, such as 31 01 02 03 (01 is to open routine control, 0203 is the pre-programming check routine ID before the bootloader is flashed and upgraded.

[0041] In one embodiment of the present application, the record format of the self-upgrade secure boot log is: rollback (0x01), secure boot failure: (0x02), self-upgrade failure (0x00).

[0042] In one embodiment of the present application, the recording format of the on-board self-diagnosis log is: authentication channel (0x01: CAN; 0x02: Ethernet) + authentication service ID + authentication result (authentication failed: 0x7f; authentication passed: authentication service ID + 0x40).

[0043] In one embodiment of the present application, before sending a read service message to the vehicle controller, it also includes: setting the log identifier of the self-upgrade security boot log to the first security level; setting the log identifier of the unified diagnostic log to the second security level; setting the log identifier of the over-the-air download event log to the third security level; setting the log identifier of the vehicle self-diagnostic log to the fourth security level; determining a readable security level range based on the security log access rights, and sending a read service message to the vehicle controller based on the readable security level range.

[0044] In one embodiment of the present application, the priority order of security levels from low to high is the first security level, the second security level, the third security level and the fourth security level, and the security log access rights of higher security levels can read the log types of lower security levels. For example, the security log access rights of the third security level can read the self-upgraded security boot log, the unified diagnostic log, the over-the-air download event log and the vehicle self-diagnosis log. The security log access rights of the first security level can only read the self-upgraded security boot log.

[0045] Step S230: If there are multiple read service messages, multiple batches of target security logs are read from the vehicle controller based on the log identifier, read quantity and read batch in the read service message.

[0046] In one embodiment of the present application, the vehicle-mounted security log reading method also includes: before sending a read request message to the vehicle-mounted controller, sending a calibration message to the vehicle-mounted controller for clock synchronization; after reading the target security log, converting the timestamp in the target security log to obtain a readable time format.

[0047] In one embodiment of the present application, sending a calibration message to the vehicle controller for clock synchronization includes obtaining the log time (year / month / day / hour / minute / second) that the user wants to obtain, and sending a calibration message to the vehicle controller through the OBD port in real time through the reading device, and the vehicle controller then sends the calibration message to the responding timing controller. After the calibration, the reading device performs identity authentication through the 0x27 service to unlock the security log access right, and after unlocking the security log access right, the log reading function is started through the 0x31 service, and the read service message is sent through 0x31 to obtain the target security log, thereby simplifying the log reading process and improving efficiency.

[0048] In one embodiment of the present application, the log reading function can be started through 0x31 after unlocking the security log access right, otherwise a negative response of 0x24 is returned. Sending a read service message through 0x31 to obtain the target security log includes: sending 31 01 83 05+log type+security level+read batch+read quantity (single batch read quantity), where the log type and security level are log identifiers, so that the log type and security level can be determined through the log identifier. The reading device in this embodiment supports reading 500 logs in a single batch. By defining the read quantity, the security log can be read in multiple batches in small quantities and multiple times, thereby improving the data processing efficiency.

[0049] In one embodiment of the present application, if the reading device sends 31 01 83 05 02 02 01 10: it means starting to read the first batch of 16 logs of the UDS log event (the reading service messages are all in hexadecimal), and the ECU replies with a positive response of 71 01 83 05 02 02 01 10. In this embodiment, the ECU replies 71 03 83 05 + log type + security level + log batch + read quantity + 4 bytes of timestamp + 16 bytes of log content + 9 bytes of 7A as log separator. Such a design can ensure the security and reliability of the log content during transmission and storage.

[0050] In one embodiment of the present application, the 4-byte timestamp replied by the ECU needs to be converted into a readable time format, so that the user can directly obtain the log time information through the readable time format.

[0051] See also Figure 4 , Figure 4 It is a block diagram of a vehicle-mounted safety log reading device shown in an exemplary embodiment of the present application.

[0052] like Figure 4 As shown, the exemplary vehicle-mounted security log reading device includes: an authority unlocking module 401 , a single batch reading module 402 and a multi-batch reading module 403 .

[0053] The permission unlocking module 401 is used to send a read request message to the vehicle controller so that the vehicle controller authenticates the read request message, and if the authentication is successful, the security log access right is unlocked;

[0054] The single batch reading module 402, after unlocking the security log access right, sends a reading service message to the vehicle controller, and reads the target security log from the vehicle controller based on the log identifier and the read quantity in the reading service message;

[0055] The multi-batch reading module 403 is used to read multiple batches of target security logs from the vehicle controller according to the log identifier, read quantity and read batch in the reading service message if there are multiple reading service messages.

[0056] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

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

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

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

[0060] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0061] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0062] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0063] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle-mounted safety log reading method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0064] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle safety log reading method provided in each of the above embodiments.

[0065] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for reading a vehicle safety log, characterized in that: The vehicle-mounted safety log reading method comprises: Sending a read request message to the vehicle-mounted controller, so that the vehicle-mounted controller authenticates the read request message, and if the authentication is successful, unlocking the security log access right; After unlocking the security log access right, sending the read service message to the vehicle controller, and reading the target security log from the vehicle controller based on the log identifier and the read quantity in the read service message; If there are multiple read service messages, multiple batches of target security logs are read from the vehicle controller based on the log identifier, read quantity and read batch in the read service message.

2. The vehicle safety log reading method according to claim 1, characterized in that: Sending a read request message to the vehicle-mounted controller so that the vehicle-mounted controller authenticates the read request message includes: Sending a read request message to the vehicle controller, so that the vehicle controller returns the security parameter based on the read request message; Calculating a key message according to the security parameter, and sending the key message to the vehicle controller so that the vehicle controller compares the key message with a pre-stored verification key; If the comparison is successful, the identity authentication is passed; if the comparison fails, the identity authentication fails.

3. The vehicle safety log reading method according to claim 2, characterized in that: If the comparison fails, the identity verification includes: If a negative verification failure response is received from the on-board controller, the identity verification fails.

4. The vehicle safety log reading method according to claim 1, characterized in that: Reading the target security log from the vehicle controller based on the log identifier and the read quantity in the read service message includes: Determine the log type of the target security log according to the log identifier, the log type including a self-upgrade security boot log, a unified diagnostic log, an over-the-air download event log, and an onboard self-diagnosis log; The number of logs of the target security log is determined based on the read quantity, and the target security log is read from the vehicle controller based on the log type and the number of logs.

5. The vehicle safety log reading method according to claim 4, characterized in that: Before sending the read service message to the vehicle controller, the method further includes: Setting the log identifier of the self-upgrade secure boot log to a first security level; Setting the log identifier of the unified diagnostic log to a second security level; Setting the log identifier of the over-the-air download event log to a third security level; Setting the log identifier of the on-board self-diagnosis log to the fourth safety level; A readable security level range is determined based on the security log access permission, and a read service message is sent to the vehicle controller based on the readable security level range.

6. The vehicle safety log reading method according to claim 1, characterized in that: The vehicle-mounted safety log reading method further includes: Before sending a read request message to the vehicle controller, sending a calibration message to the vehicle controller for clock synchronization; After reading the target security log, the timestamp in the target security log is time-converted to obtain a readable time format.

7. A vehicle-mounted safety log reading system, characterized in that: The vehicle-mounted safety log reading system includes a reading device and a vehicle-mounted controller, and the reading device includes a verification module, a forwarding module and a time calibration module; The verification module is used to send a read request message to the vehicle controller to unlock the security log access rights; The forwarding module is used to obtain the read service message and read the target security log from the vehicle controller based on the read service message; The time calibration module is used to send a calibration message to the vehicle controller and perform time conversion on the timestamp in the target security log; The vehicle-mounted controller is used to receive the read request message and authenticate the identity of the reading device based on the read request message, and to receive the read service message and send the target security log to the reading device based on the read service message.

8. A vehicle-mounted safety log reading device, characterized in that: The vehicle-mounted safety log reading device comprises: The permission unlocking module is used to send a read request message to the vehicle controller so that the vehicle controller authenticates the read request message, and if the authentication is successful, unlocks the security log access right; A single batch reading module, after unlocking the security log access right, sends the reading service message to the vehicle controller, and reads the target security log from the vehicle controller based on the log identifier and the read quantity in the reading service message; A multi-batch reading module is used to read multiple batches of target security logs from the vehicle controller based on the log identifier, read quantity and read batch in the read service message if there are multiple read service messages.

9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the vehicle safety log reading method as described in any one of claims 1-6.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the vehicle safety log reading method as described in any one of claims 1 to 6.