Vehicle electric detection method, device and equipment, storage medium and vehicle
By using a matching mechanism of random dynamic passwords and keys in vehicle inspection, the problem of leakage of inspection results caused by abnormal users accessing the vehicle is solved, and the security authentication between the vehicle and the server is achieved and the protection of inspection results is achieved.
Patent Information
- Application Number
- CN202311611070.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2025-05-30
AI Technical Summary
During the vehicle inspection process, abnormal users pretend to use the inspection server to access the vehicle, resulting in the leakage of the inspection results.
By generating a random dynamic password, generating a first key based on the password, sending a random dynamic password and a first key to the server, receiving the first encrypted data sent by the server, and encrypting the random dynamic password to obtain the second encrypted data. When the first encrypted data matches the second encrypted data, an electrical inspection is performed and the electrical inspection result is sent to the server.
It realizes safety authentication between the vehicle and the server, avoids abnormal users to obtain inspection results, and improves the security of inspection results and vehicle information. The one-time use of random dynamic passwords further prevents abnormal users from cracking the vehicle's encryption algorithm.
Smart Images

Figure CN120068130A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of vehicle detection, and particularly relates to a vehicle electrical inspection method, device, equipment, storage medium, and vehicle. Background Art
[0002] During the vehicle production process, to ensure the quality of the vehicle when it rolls off the production line, it is necessary to conduct End of Line (EOL) inspections on the vehicle at the end of the vehicle assembly production line, and make necessary adjustments to the faulty parts or circuits of the vehicle. In related technologies, a communication connection is established between the vehicle and the server, and an electrical inspection management program is deployed in the server. The electrical inspection management program is executed to send instructions and inspection execution files to the vehicle, so that the vehicle feeds back the electrical inspection results after executing the inspection execution files, realizing the EOL inspection. However, during the electrical inspection of the vehicle, if an abnormal user disguises as an electrical inspection server to access the vehicle, it will cause the leakage of the vehicle electrical inspection results. Summary of the Invention
[0003] Embodiments of this application provide a vehicle electrical inspection method, device, equipment, storage medium, and vehicle, which can solve the problem of leakage of electrical inspection results caused by abnormal users accessing the vehicle during the electrical inspection process.
[0004] In a first aspect, an embodiment of this application provides a vehicle electrical inspection method, which includes:
[0005] Respond to the electrical inspection authentication request sent by the server, generate a random dynamic password, and generate a first key based on the random dynamic password;
[0006] Send the random dynamic password and the first key to the server;
[0007] Receive the first encrypted data sent by the server, where the first encrypted data is data generated by the server based on the random dynamic password and the first key;
[0008] Encrypt the random dynamic password to obtain second encrypted data;
[0009] If the first encrypted data matches the second encrypted data, perform an electrical inspection and send the result of the electrical inspection to the server.
[0010] In some embodiments, the vehicle electrical inspection method further includes:
[0011] If the first encrypted data matches the second encrypted data, send an authentication passed message and a vehicle identification number to the server, so that the server stores the vehicle identification number associated with the authentication passed flag.
[0012] In some embodiments, before responding to the electrical inspection authentication request sent by the server, it further includes:
[0013] When accessing the first preset network, send an identification code acquisition request to the server, and the identification code acquisition request carries the pre-stored product serial number of the vehicle;
[0014] Receive the vehicle identification code sent by the server and store the vehicle identification code. The server queries the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0015] In some embodiments, when the first encrypted data matches the second encrypted data, perform an electrical inspection, and the results of the electrical inspection sent to the server include:
[0016] When the first encrypted data matches the second encrypted data, obtain the version number of the local inspection execution file and the version number of the remote inspection execution file. The inspection execution file is a program used to instruct the electrical inspection of the vehicle;
[0017] When the version number of the local inspection execution file is different from the version number of the remote inspection execution file, send a detection execution file download request to the server;
[0018] Receive the remote inspection execution file sent by the server according to the detection execution file download request, and update the local inspection execution file to the received remote inspection execution file;
[0019] Perform an electrical inspection according to the local inspection execution file and send the results of the electrical inspection to the server.
[0020] In some embodiments, receiving the remote inspection execution file sent by the server according to the detection execution file download request and updating the local inspection execution file to the received remote inspection execution file includes:
[0021] Receive the remote inspection execution file sent by the server within a preset time period according to the detection execution file download request, and update the local inspection execution file to the received remote inspection execution file;
[0022] When the upgrade time period is exceeded, stop the update and restore the local inspection execution file.
[0023] In some embodiments, the method further includes:
[0024] When the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program, send a data identifier update request to the server;
[0025] The receiving server sends the controller program upgrade file based on the data identifier update request, and upgrades the local LIN controller program according to the controller program upgrade file, so that the data identifier of the upgraded local LIN controller program is the same as that of the local CAN controller program.
[0026] In a second aspect, an embodiment of the present application further provides a vehicle electrical inspection method, including:
[0027] When it is detected that the vehicle to be inspected accesses the first preset network, an electrical inspection authentication request is sent to the vehicle;
[0028] Receive the random dynamic password and the first key sent by the vehicle. The random dynamic password is generated by the vehicle according to the electrical inspection authentication request, and the first key is generated by the vehicle according to the random dynamic password;
[0029] Generate the first encrypted data based on the random dynamic password and the first key, and send the first encrypted data to the vehicle, so that the vehicle performs an electrical inspection and returns an electrical inspection result when it is determined that the first encrypted data matches the second key data. The second key data is obtained by the vehicle encrypting the random dynamic password.
[0030] In some embodiments, the vehicle electrical inspection method further includes:
[0031] Receive the authentication passed information and the vehicle identification number sent by the vehicle when the first encrypted data matches the second encrypted data, and store the vehicle identification number associated with the authentication passed flag.
[0032] In some embodiments, when it is detected that the vehicle to be inspected accesses the first preset network, sending the electrical inspection authentication request to the vehicle includes:
[0033] When it is detected that the vehicle to be inspected accesses the first preset network, receive the identification code acquisition request sent by the vehicle. The identification code acquisition request carries the pre-stored product serial number of the vehicle;
[0034] Query the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and send the vehicle identification code to the vehicle. The first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0035] In some embodiments, after sending the first encrypted data generated based on the random dynamic password and the first key to the vehicle, it includes:
[0036] Receive the detection execution file download request sent by the vehicle when the version number of the local detection execution file is different from that of the remote detection execution file. The detection execution file is a program for instructing the electrical inspection of the vehicle;
[0037] Send a remote detection execution file to the vehicle according to the detection execution file download request, so that the vehicle updates the local detection execution file to the received remote detection execution file.
[0038] In some embodiments, sending a remote detection execution file to the vehicle according to the detection execution file download request includes:
[0039] Sending the remote detection execution file to the vehicle according to the detection execution file download request within a preset time period;
[0040] In the case of exceeding the upgrade time period, stop sending the remote detection execution file to the vehicle.
[0041] In some embodiments, the method further includes:
[0042] Receiving a data identifier update request sent by the vehicle when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program;
[0043] Sending a controller program upgrade file to the vehicle based on the data identifier update request, so that the vehicle upgrades the local LIN controller program according to the controller program upgrade file, and the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0044] In a third aspect, an embodiment of the present application further provides a vehicle electrical inspection device, including:
[0045] A first encryption module, configured to generate a random dynamic password in response to an electrical inspection authentication request sent by the server, and generate a first key based on the random dynamic password;
[0046] A first sending module, sending the random dynamic password and the first key to the server;
[0047] A first receiving module, receiving the first encrypted data sent by the server, where the first encrypted data is data generated by the server based on the random dynamic password and the first key;
[0048] A second encryption module, configured to encrypt the random dynamic password to obtain second encrypted data;
[0049] An electrical inspection engine module, configured to perform an electrical inspection in the case where the first encrypted data matches the second encrypted data, and send the result of the electrical inspection to the server.
[0050] In a fourth aspect, an embodiment of the present application further provides a vehicle electrical inspection device, including:
[0051] A second sending module, configured to send an electrical inspection authentication request to the vehicle when it is detected that the vehicle to be inspected accesses a first preset network;
[0052] A second receiving module, configured to receive a random dynamic password and a first secret key sent by a vehicle, where the random dynamic password is generated by the vehicle according to an electrical inspection authentication request, and the first secret key is generated by the vehicle according to the random dynamic password;
[0053] A third encryption module, configured to send first encrypted data to the vehicle based on the first encrypted data generated from the random dynamic password and the first secret key, so that the vehicle performs an electrical inspection and returns an electrical inspection result when it is determined that the first encrypted data matches the second secret key data, where the second secret key data is obtained by the vehicle encrypting the random dynamic password.
[0054] In a fifth aspect, an embodiment of the present application provides a vehicle electrical inspection device, including: a processor and a memory storing computer program instructions;
[0055] When the processor executes the computer program instructions, the above vehicle electrical inspection method is implemented.
[0056] In a sixth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above vehicle electrical inspection method is implemented.
[0057] In a seventh aspect, an embodiment of the present application provides a vehicle, including computer program instructions, and when the computer program instructions are executed by a processor, the above vehicle electrical inspection method is implemented.
[0058] In the present application, by generating a random dynamic password, generating a first secret key based on the random dynamic password, sending the random dynamic password and the first secret key to a server, receiving the first encrypted data sent by the server, encrypting the random dynamic password to obtain second encrypted data, and performing an electrical inspection and sending the result of the electrical inspection to the server when the first encrypted data matches the second encrypted data, secure authentication is performed between the vehicle and the server, which can, to a certain extent, prevent abnormal users from performing an electrical inspection on the vehicle to obtain the electrical inspection result and improve the security of the electrical inspection result and vehicle information; the random dynamic password is randomly generated and has a one-time nature, which can, to a certain extent, prevent abnormal users from cracking the encryption algorithm used by the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. Obviously, the following described drawings are only some embodiments of the present application, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0060] Figure 1 It is a schematic flowchart of a vehicle electrical inspection method provided by an embodiment of the present application;
[0061] Figure 2 It is a schematic diagram of the principle of the vehicle electrical inspection method provided by another embodiment of the present application;
[0062] Figure 3 It is a schematic diagram of the module structure of the vehicle and the server provided by another embodiment of the present application;
[0063] Figure 4 It is a schematic diagram of the hardware structure of the vehicle electrical inspection device provided by an embodiment of the present application;
[0064] Figure 5 It is a schematic diagram of the hardware structure of the vehicle electrical inspection device provided by an embodiment of the present application;
[0065] Figure 6 It is a schematic diagram of the structure of the vehicle electrical inspection equipment provided by an embodiment of the present application. Detailed implementation manners
[0066] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only intended to provide a better understanding of the present application by showing examples of the present application.
[0067] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, article or device including the elements.
[0068] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The embodiments will be described in detail below with reference to the accompanying drawings.
[0069] Specifically, to solve the problems of the prior art, the embodiments of the present application provide a vehicle electrical inspection method, device, equipment, storage medium, and vehicle. First, the vehicle electrical inspection method provided by the embodiments of the present application will be introduced below.
[0070] Figure 1 The flowchart of the vehicle electrical inspection method provided by an embodiment of the present application is shown. The method includes the following steps:
[0071] S110, in response to the electrical inspection authentication request sent by the server, generate a random dynamic password, and generate a first key based on the random dynamic password;
[0072] S120, send the random dynamic password and the first key to the server;
[0073] S130, receive the first encrypted data sent by the server, where the first encrypted data is the data generated by the server based on the random dynamic password and the first key;
[0074] S140, encrypt the random dynamic password to obtain second encrypted data;
[0075] S150, in the case where the first encrypted data matches the second encrypted data, perform an electrical inspection and send the result of the electrical inspection to the server.
[0076] The vehicle electrical inspection method provided by the present application can be applied to the off-line inspection of vehicles on the production line. The equipment for off-line inspection of vehicle production lines includes a server, calibration station equipment and vehicle identification equipment respectively arranged at multiple inspection stations. The vehicle electrical inspection method provided by the present application can be applied to vehicles. Multiple inspection stations are set up corresponding to the off-line inspection, and each inspection station corresponds to one or more electrical inspection items. The vehicle passes through each inspection station in turn to execute the corresponding electrical inspection items until all the electrical inspection items are completed, that is, the electrical inspection is completed.
[0077] The vehicle identification equipment is arranged at each inspection station. The vehicle identification equipment is used to collect the vehicle identification code of the vehicle to be inspected and send the vehicle identification code and the station number of the inspection station where it is located to the calibration station equipment.
[0078] The calibration station equipment is used to send the vehicle identification code and the station number to the server. The server can generate a corresponding electrical inspection authentication request according to the vehicle identification code and the station number, and send it to the vehicle to be inspected to trigger the vehicle to be inspected to perform the electrical inspection corresponding to the inspection station.
[0079] Please refer to Figure 2, the vehicle includes multiple vehicle control computing units (extended domain control unit, XCU) and a vehicle safety system (HSE). The server includes an authentication system (Key Management Service, KMS), a factory intelligent electrical inspection system (bsp-diag-service, BSP-D), etc.
[0080] After the vehicle to be inspected enters the electrical inspection production line, the staff turns on the vehicle's in-vehicle computer, and the vehicle establishes a communication connection with the server. BSP-D in the server detects that the vehicle to be inspected has entered the electrical inspection production line and sends an electrical inspection authentication request to the vehicle. The electrical inspection authentication request is used to trigger the vehicle to be inspected to perform a security authentication on the server.
[0081] After the XCU of the vehicle receives the electrical inspection authentication request sent by the server, the XCU of the vehicle sends a request to the HSE. The HSE generates a random dynamic password and feeds it back to the XCU. The XCU generates a first key based on the random dynamic password and sends the random dynamic password and the first key to the server that generated the electrical inspection authentication request. The dynamic password is a password formed by a random combination of numbers. The dynamic password is used to trigger the server and the vehicle to generate encrypted data for verification based on the same encryption technology. Optionally, the random dynamic password can be a 16-byte random number. The first key is data obtained by the vehicle encrypting the random dynamic password based on the first encryption algorithm. Optionally, the first encryption algorithm is the RSA encryption algorithm, and the first key can be 256-byte encrypted data.
[0082] The first decryption algorithm is configured in the server. The first encryption algorithm and the first decryption algorithm are symmetric or asymmetric algorithms deployed based on the same encryption and decryption technology. After receiving the first key, BSP-D in the server forwards BSP-D to KMS to decrypt the first key using the first decryption algorithm to obtain a decryption result, and then encrypts the random dynamic password using the second encryption algorithm and the decryption result to generate the first encrypted data, and returns the first encrypted data to BSP-D. BSP-D returns the first encrypted data to the vehicle.
[0083] The HSE also encrypts the dynamic password using the aforementioned second encryption algorithm to generate the second encrypted data. The second encryption algorithm can be the AES-128 encryption algorithm (Advanced Encryption Standard). Both the first encrypted data and the second encrypted data can be 6-byte data.
[0084] After the HSE receives the first encrypted data sent by the server and generates the second encrypted data, the HSE compares the first key and the second key. If the first key and the second key match, it is determined that the server has legitimate access rights, and the vehicle determines that it can cooperate with the server for the electrical inspection and sends the electrical inspection result to the server. If the first encrypted data and the second data do not match, it is determined that the server does not have legitimate rights to perform an electrical inspection on the vehicle, and the vehicle refuses to cooperate with the server to perform the electrical inspection on the vehicle. The matching of the foregoing first encrypted data and second encrypted data may mean that the first encrypted data and the second encrypted data are the same. It may also be that the second encrypted data can be calculated based on the first encrypted data, or the first encrypted data can be calculated using the second encrypted data.
[0085] In the disclosed embodiments of the present application, by generating a random dynamic password, generating a first key based on the random dynamic password, sending the random dynamic password and the first key to the server, receiving the first encrypted data sent by the server, encrypting the random dynamic password to obtain the second encrypted data, and performing an electrical inspection when the first encrypted data and the second encrypted data match, and sending the result of the electrical inspection to the server, security authentication is performed between the vehicle and the server, which can, to a certain extent, prevent abnormal users from performing an electrical inspection on the vehicle to obtain the electrical inspection result, and improve the security of the electrical inspection result and vehicle information; the random dynamic password is randomly generated and has a one-time nature, which can, to a certain extent, prevent abnormal users from cracking the encryption algorithm used by the vehicle.
[0086] In some embodiments, the vehicle electrical inspection method further includes:
[0087] S210, when the first encrypted data and the second encrypted data match, send an authentication passed message and a vehicle identification number to the server so that the server stores the vehicle identification number associated with the authentication passed flag.
[0088] After the server receives the authentication passed message sent by the vehicle, it can store the vehicle identification number and associate the vehicle identification number with the authentication passed flag to indicate that the vehicle corresponding to the vehicle identification number has passed the security authentication. If a vehicle entering the electrical inspection production line fails the security authentication, the operation and maintenance personnel can quickly determine the vehicle that has failed the security authentication by checking whether the stored vehicle identification number is associated with the authentication passed flag.
[0089] After the vehicle performs security authentication on the server, it can sequentially pass through each electrical inspection station for electrical inspection. The vehicle can maintain a communication connection with the server. However, the vehicle may power off during the electrical inspection process, causing the communication connection between the vehicle and the server to be disconnected. After the vehicle re-establishes a communication connection with the server, the foregoing S110-150 can also be executed to re-perform security authentication on the server.
[0090] In some embodiments, before S110, it further includes:
[0091] S310, when accessing the first preset network, send an identification code acquisition request to the server, where the identification code acquisition request carries the pre-stored product serial number of the vehicle.
[0092] S320, receive the vehicle identification code sent by the server and store the vehicle identification code. The server queries the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0093] Communication information about the first preset network can be pre-stored in the vehicle. The communication information includes the network name, password, etc. of the first preset network. The first preset network can be a local area network deployed on the electrical inspection production line. After the vehicle enters the electrical inspection production line, it can access the first preset network through the pre-stored communication information, so as to establish a communication connection with the server.
[0094] The vehicle identification code (Vehicle Identification Number, VIN) is the unique code of the vehicle, and the product serial number (Serial Numbe XCU, SN) is the unique code of the vehicle operation program deployed in the vehicle. During the vehicle production process, the product serial number is written together when the vehicle operation program is written into the vehicle. During the vehicle preparation process, the product serial number of the vehicle can be obtained through a handheld device and sent to the server. The server generates a unique vehicle identification code corresponding to the product serial number and constructs the mapping relationship between the vehicle identification code and the product serial number. In this mapping relationship, the vehicle identification code and the product serial number are in one-to-one correspondence.
[0095] When the vehicle accesses the first preset network, it indicates that the vehicle has been on the vehicle inspection production line. Since the vehicle itself does not store the vehicle identification code, in the embodiment provided in the present application, an identification code acquisition request is sent through the server to obtain the vehicle identification code corresponding to the pre-stored product serial number and store the vehicle identification code.
[0096] In some embodiments, S150 includes:
[0097] S410, when the first encrypted data matches the second encrypted data, obtain the version number of the local detection execution file and the version number of the remote detection execution file, where the detection execution file is a program used to indicate the electrical inspection of the vehicle;
[0098] S420, when the version number of the local detection execution file is different from the version number of the remote detection execution file, send a detection execution file download request to the server;
[0099] S430, The receiving server downloads the remotely detected execution file sent according to the detected execution file download request, and updates the local detected execution file to the received remotely detected execution file;
[0100] S440, Perform an electrical inspection based on the local detected execution file, and send the result of the electrical inspection to the server.
[0101] The detected execution file is a file used to indicate how the vehicle performs an electrical inspection operation. The detected execution file may include a detection baseline script, a station configuration file, a time parameter configuration file, a shielding item configuration file, etc. The detection baseline script may contain scripts corresponding to one or more detection items, and the script may be a lua script. The station configuration file specifies the execution order of multiple scripts and which scripts to execute at each station. The station configuration file may include multiple station identifiers and script identifiers corresponding to each station identifier. The operation and maintenance personnel can associate one or more script identifiers with each station identifier. Thus, configure which scripts the vehicle executes at each station and the execution order of multiple scripts. When the electrical inspection process changes, the operation and maintenance personnel can configure the station configuration file to regenerate the remotely detected execution file. After the vehicle receives and updates to this remotely detected execution file, a new electrical inspection process is executed. The time parameter configuration file may include time parameters required for script execution, such as: ECU restart time and diagnostic message delay time. During the electrical inspection, different ECUs (Electric Control Unit, controllers) may restart, and the time required for different ECUs to restart is different. Therefore, the restart time of each ECU can be configured in the server through the ECU restart time, and the delay time for each ECU to send messages can also be configured in the server through the diagnostic message delay time. The shielding item configuration file is the error fault information that can be shielded when the vehicle performs an electrical inspection. When multiple vehicle models share the same detected execution file for electrical inspection, due to certain differences between vehicle models, some error fault information is caused by the fact that some models do not have certain modules. The operation and maintenance personnel can shield and configure the target error fault information in the server through the shielding item configuration file.
[0102] The local detection execution file is stored locally in the vehicle to be detected and is used to indicate how to perform the electrical inspection operation on the vehicle. The version number of the local detection execution file is the number used to indicate the version of the local detection execution file. The version number of the local detection execution file can be a segment of characters or can be blank. That is, when the local detection execution file is not stored in the vehicle, the version number of the local detection execution file is blank. The remote detection execution file is stored in the server and is used to indicate how to perform the electrical inspection operation on the vehicle. The version number of the remote detection execution file is the number used to indicate the remote detection execution file. In some embodiments, the vehicle to be detected can obtain the version number of the local detection execution file by reading the local detection execution file in the local memory. The vehicle to be detected can send a query request to the server to obtain the version number of the remote detection execution file. It is also possible that after the server obtains that the vehicle to be detected enters a certain set detection station, the server sends the version number of the remote execution file to the vehicle to be detected.
[0103] After the vehicle to be detected obtains the version number of the local detection execution file and the version number of the remote detection execution file, the vehicle to be detected compares the two version numbers to determine whether the version number of the local detection execution file is consistent with the version number of the remote detection execution file. If the two are consistent, it means that the local detection execution file is the latest version of the detection execution file, and the vehicle can directly perform the electrical inspection according to the local detection execution file. If they are different, the vehicle to be detected sends a remote detection execution file download request to the server. After the server receives the detection file download request, the server sends the corresponding remote detection file to the vehicle to be detected. The vehicle performs the electrical inspection according to the updated local detection execution file and sends the result of the electrical inspection to the server.
[0104] In the method provided in this embodiment, the vehicle to be detected can automatically check and update the local detection execution file. Therefore, according to the actual production needs, the adjustment of the detection items can be automatically completed during the offline detection process of the vehicle on the production line, without affecting the vehicle detection efficiency and the production rhythm.
[0105] In some embodiments, S430 includes:
[0106] S510, receiving the remote detection execution file sent by the server within a preset time period according to the detection execution file download request, and updating the local detection execution file to the received remote detection execution file;
[0107] S520, in the case of exceeding the upgrade time period, stopping the update and restoring the local detection execution file.
[0108] The preset time period is the time period pre-configured by the operation and maintenance personnel in the server. The vehicle can only receive the remote detection execution file within this preset time period and update the local detection execution file to the received remote detection execution file. When exceeding the upgrade time period, the server stops sending the remote detection execution file, the vehicle stops updating, and restores the local detection execution file.
[0109] In this embodiment, by setting the vehicle to update the local detection execution file within the preset time period, it is ensured that the vehicle can complete the update of the local detection execution file within the required time period, and to a certain extent, it avoids one or more vehicles from affecting the detection efficiency and production rhythm of the entire electrical inspection production line.
[0110] In one embodiment, the method further includes:
[0111] S610, when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program, send a data identifier update request to the server;
[0112] S620, receive the controller program upgrade file sent by the server based on the data identifier update request, and upgrade the local LIN controller program according to the controller program upgrade file, so that the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0113] The LIN (Local Interconnect Network) controller is a controller set in the vehicle. The local LIN controller program is a program applied to the LIN controller. The data identifier can be DID (Data Identifier). The CAN (Controller Area Network) controller is a controller set in the vehicle. The local CAN controller program is a program applied to the CAN controller.
[0114] Since the LIN controller program can support OTA (Over The Air) upgrade, but the data identifier of the upgraded LIN controller program cannot be consistent with the data identifier of the CAN controller program. Therefore, a data identifier update request is sent to the server, the server sends the controller program upgrade file based on the data identifier update request, and the vehicle upgrades the local LIN controller program according to the controller program upgrade file, so that the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0115] In this embodiment, the operation and maintenance personnel can configure the DID of the LIN controller program in the server, and modify the LIN controller program in the vehicle by sending the controller program upgrade file from the server, eliminating the need for the operation and maintenance personnel to manually configure the LIN controller program in each vehicle separately.
[0116] In a second aspect, the present application also provides a vehicle electrical inspection method, including:
[0117] S710, when it is detected that the vehicle to be inspected is connected to the first preset network, sending an electrical inspection authentication request to the vehicle;
[0118] S720, receiving the random dynamic password and the first key sent by the vehicle, the random dynamic password is generated by the vehicle according to the electrical inspection authentication request, and the first key is generated by the vehicle according to the random dynamic password;
[0119] S730, generating first encrypted data based on the random dynamic password and the first key, and sending the first encrypted data to the vehicle, so that the vehicle performs an electrical inspection and returns an electrical inspection result when it is determined that the first encrypted data matches the second key data, and the second key data is obtained by the vehicle encrypting the random dynamic password.
[0120] The vehicle electrical inspection method provided by the present application can be applied to the off-line inspection of vehicles on the production line. The equipment for off-line inspection of vehicle production lines includes, for example, a server, calibration station equipment and vehicle identification equipment respectively arranged at multiple inspection stations. The vehicle electrical inspection method provided by the present application can be applied to the server. There are multiple inspection stations corresponding to the off-line inspection, and each inspection station corresponds to one or more electrical inspection items. The vehicle passes through each inspection station in turn to execute the corresponding electrical inspection items until all electrical inspection items are completed, that is, the electrical inspection is completed.
[0121] S710 - S730 in the vehicle electrical inspection method provided in this embodiment can be implemented with reference to S110 - S150. The difference is that S710 - S730 in the vehicle electrical inspection method provided in this embodiment is applied to the server. The embodiments with S710 - S730 have the beneficial effects of the embodiments with S110 - S150 described above, and will not be elaborated here one by one.
[0122] Please refer to Figure 3, the server can be a single server or a server cluster. The server can include a Manufacturing Execution System (MES) of a manufacturing enterprise, a factory intelligent electrical inspection system (BSP-D bsp-diag-service), a KMS key system, etc. The factory intelligent electrical inspection system can include an information management device and a diagnostic service device. The information management device is used to manage all vehicle inspection data files. The vehicle inspection data files include, for example, vehicle configurations, vehicle controller upgrade files, and parameters written by relevant controllers, etc. Among them, the vehicle configuration is the configuration parameters of each controller in the vehicle, the vehicle controller upgrade file is a program file used to upgrade the program of the vehicle controller, and the parameters written by the relevant controllers are the configuration parameters for controlling how to write the aforementioned vehicle configuration into the relevant controllers. The information management device can also receive the inspection result files and diagnostic process data of each inspection station and conduct unified management.
[0123] The diagnostic service device can perform security authentication with the vehicle to be inspected, communicate with the vehicle to be inspected, and act as a bridge for data interaction between the information management service device and the vehicle to be inspected. The diagnostic service device can also manage the inspection execution files and support the creation and update of the inspection execution files for the vehicle end to request updates.
[0124] MES is used to receive the information fed back by the calibration station device, vehicle identification device, etc., and forward the received information to BSP-D.
[0125] In the disclosed embodiments of the present application, when it is detected that the vehicle to be inspected accesses the first preset network, an electrical inspection authentication request is sent to the vehicle, the random dynamic password and the first key sent by the vehicle are received, the first encrypted data generated based on the random dynamic password and the first key is sent to the vehicle, so that the vehicle conducts electrical inspection and returns the electrical inspection result when it is determined that the first encrypted data matches the second key data, enabling security authentication between the vehicle and the server, which can, to a certain extent, prevent abnormal users from obtaining the electrical inspection result by conducting electrical inspection on the vehicle and improve the security of the electrical inspection result and vehicle information; the random dynamic password is randomly generated and has a one-time nature, which can, to a certain extent, prevent abnormal users from cracking the encryption algorithm used by the vehicle.
[0126] In some embodiments, the vehicle electrical inspection method further includes:
[0127] S810, receive the authentication passed information and vehicle identification number sent by the vehicle when the first encrypted data matches the second encrypted data, and store the vehicle identification number associated with the authentication passed flag.
[0128] After receiving the authentication passed information sent by the vehicle, the server can store the vehicle identification number and associate an authentication passed flag with the vehicle identification number to indicate that the vehicle corresponding to the vehicle identification number has passed the security authentication. If a vehicle entering the electrical inspection production line fails the security authentication, the operation and maintenance personnel can quickly determine the vehicle that has failed the security authentication by checking whether the stored vehicle identification number is associated with the authentication passed flag.
[0129] In some embodiments, S710 includes:
[0130] S910, when detecting that a vehicle to be detected accesses the first preset network, receives an identification code acquisition request sent by the vehicle, and the identification code acquisition request carries the pre-stored product serial number of the vehicle;
[0131] S920, queries and obtains the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and sends the vehicle identification code to the vehicle. The first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0132] The first preset network can be a local area network deployed in the electrical inspection production line. After the vehicle enters the electrical inspection production line, it can access the first preset network, thereby establishing a communication connection with the server.
[0133] The vehicle identification code (Vehicle Identification Number, VIN) is the unique code of the vehicle, and the product serial number (Serial Numbe XCU, SN) is the unique code of the vehicle operation program deployed in the vehicle. During the vehicle production process, the product serial number is written into the vehicle together when the vehicle operation program is written into the vehicle. During the vehicle preparation process, the product serial number of the vehicle can be obtained through a handheld device and sent to the server. The server generates a unique vehicle identification code corresponding to the product serial number and constructs the mapping relationship between the vehicle identification code and the product serial number. In this mapping relationship, the vehicle identification code and the product serial number are in one-to-one correspondence.
[0134] When the vehicle accesses the first preset network, it indicates that the vehicle has already been in the vehicle inspection production line. Since the vehicle itself does not store the vehicle identification code, in the embodiments provided in this application, after receiving the identification code acquisition request sent by the vehicle, the server queries and obtains the vehicle identification code corresponding to the pre-stored product serial number, and sends the vehicle identification code to the vehicle for the vehicle to store the vehicle identification code.
[0135] In some embodiments, after S730 includes:
[0136] S101. Receive a detection execution file download request sent by a vehicle when the version number of the local detection execution file is different from that of the remote detection execution file. The detection execution file is a program used to instruct the vehicle to perform an electrical inspection.
[0137] S102. Send the remote detection execution file to the vehicle according to the detection execution file download request, so that the vehicle updates the local detection execution file to the received remote detection execution file.
[0138] The detection execution file is a file used to instruct the vehicle on how to perform an electrical inspection operation. The detection execution file may include a detection baseline script, a station configuration file, a time parameter configuration file, a shielding item configuration file, etc.
[0139] The detection baseline script may contain scripts corresponding to one or more detection items, and the script may be a lua script. The lua scripts required for the vehicle electrical inspection are continuously updated with the iteration of requirements. Therefore, a cloud management platform can be set up in the server to manage the detection execution files required for the electrical inspection. Multiple detection baseline scripts stored in the server can be displayed in the cloud management platform, and the detection baseline scripts have corresponding version tags one by one. The detection baseline scripts with different version tags can be applied to different scenarios. The operation and maintenance personnel can select any version tag as the version number of the remote detection execution file according to needs, and the detection baseline script corresponding to the version tag generates the remote detection execution file.
[0140] The station configuration file specifies the execution order of multiple scripts and which scripts to execute at each station. The station configuration file may include multiple station identifiers and script identifiers corresponding to each station identifier. The station identifiers corresponding to each station can be displayed in the cloud management platform, and the operation and maintenance personnel can associate one or more script identifiers with each station identifier in the cloud management platform. Thus, it is configured which scripts the vehicle executes at each station and the execution order of multiple scripts. When the electrical inspection process changes, the operation and maintenance personnel can configure the station configuration file in the cloud management platform to regenerate the remote detection execution file. After the vehicle receives and updates to this remote detection execution file, a new electrical inspection process is executed.
[0141] The time parameter configuration file may include the time parameters required for script execution, such as: ECU restart time and diagnostic message delay time. During the electrical inspection process, different ECUs (Electric Control Units) may restart, and the time required for different ECUs to restart varies. Therefore, the operation and maintenance personnel can configure the restart time of each ECU through the ECU restart time in the cloud management platform, and can also configure the delay time of sending messages for each ECU through the diagnostic message delay time in the cloud management platform. The shielding item configuration file is the error fault information that can be shielded when the vehicle is undergoing electrical inspection. When multiple vehicle models share the same detection execution file for electrical inspection, due to certain differences between vehicle models, some error fault information is caused by the vehicle model not having certain modules. The operation and maintenance personnel can configure the shielding of the target error fault information through the shielding item configuration file in the cloud management platform.
[0142] The local detection execution file is stored locally on the vehicle to be detected and is used to indicate how to perform the electrical inspection operation on the vehicle. The version number of the local detection execution file is the number used to indicate the version of the local detection execution file. The version number of the local detection execution file can be a segment of characters or blank. That is, when the local detection execution file is not stored in the vehicle, the version number of the local detection execution file is blank. The remote detection execution file is stored on the server and is used to indicate how to perform the electrical inspection operation on the vehicle. The version number of the remote detection execution file is the number used to indicate the remote detection execution file. In some embodiments, the vehicle to be detected can obtain the version number of the local detection execution file by reading the local detection execution file in the local memory. The vehicle to be detected can send a query request to the server to obtain the version number of the remote detection execution file. It is also possible for the server to send the remote execution file version number to the vehicle to be detected after obtaining that the vehicle to be detected has entered a certain set detection station.
[0143] After the vehicle to be detected obtains the version number of the local detection execution file and the version number of the remote detection execution file, the vehicle to be detected compares the two version numbers to determine whether the version number of the local detection execution file is consistent with the version number of the remote detection execution file. If the two are consistent, it means that the local detection execution file is the latest version of the detection execution file, and the vehicle can directly perform the electrical inspection according to the local detection execution file. If the two are different, the vehicle to be detected sends a remote detection execution file download request to the server. After receiving the detection file download request, the server sends the corresponding remote detection file to the vehicle to be detected. The vehicle performs the electrical inspection according to the updated local detection execution file and sends the result of the electrical inspection to the server.
[0144] In the method provided in this embodiment, the vehicle to be detected can automatically check and update the local detection execution file. Therefore, according to actual production needs, the adjustment of detection items can be automatically completed during the offline detection of the vehicle on the production line, without affecting the vehicle detection efficiency and production rhythm.
[0145] In some embodiments, S101 includes:
[0146] S111, sending the remote detection execution file to the vehicle according to the detection execution file download request within a preset time period;
[0147] S112, stopping sending the remote detection execution file to the vehicle when the upgrade time period is exceeded.
[0148] The preset time period is the time period pre-configured by the operation and maintenance personnel in the server. The vehicle can only receive the remote detection execution file within this preset time period and update the local detection execution file to the received remote detection execution file. When the upgrade time period is exceeded, the server stops sending the remote detection execution file, the vehicle stops updating, and restores the local detection execution file.
[0149] In this embodiment, by setting the vehicle to update the local detection execution file within a preset time period, it is ensured that the vehicle can complete the update of the local detection execution file within the required time period, and to a certain extent, it avoids one or more vehicles from affecting the detection efficiency and production rhythm of the entire electrical inspection production line.
[0150] In one embodiment, the method further includes:
[0151] S121, receiving a data identifier update request sent by the vehicle when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program;
[0152] S122, sending a controller program upgrade file to the vehicle based on the data identifier update request, so that the vehicle upgrades the local LIN controller program according to the controller program upgrade file, and the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0153] The LIN (Local Interconnect Network) controller is a controller set in the vehicle. The local LIN controller program is a program applied to the LIN controller. The data identifier can be DID (Data Identifier). The CAN (Controller Area Network) controller is a controller set in the vehicle. The local CAN controller program is a program applied to the CAN controller.
[0154] Since the LIN controller program can support OTA (Over The Air) upgrade, but the data identifiers of the upgraded LIN controller program cannot be consistent with those of the CAN controller program. Therefore, a data identifier update request is sent to the server, and the server sends a controller program upgrade file based on the data identifier update request. The vehicle upgrades the local LIN controller program according to the controller program upgrade file so that the data identifiers of the upgraded local LIN controller program are the same as those of the local CAN controller program.
[0155] In this embodiment, the operation and maintenance personnel can configure the DID of the LIN controller program in the server, and modify the LIN controller program in the vehicle by sending the controller program upgrade file from the server, eliminating the need for the operation and maintenance personnel to manually configure the LIN controller program in each vehicle separately.
[0156] In some embodiments, the operation and maintenance personnel can screen out the electrical inspection items that frequently fail according to the historical electrical inspection results, configure the scripts corresponding to this part of the electrical inspection items as a group, and the server generates a verification execution file according to this group of scripts. When the vehicle is driven to the repair station for re-electrical inspection, the verification execution file can be executed first to perform electrical inspection on the electrical inspection items that frequently fail. The operation and maintenance personnel can also send a reset file to the vehicle located at the repair station through the server to perform brush writing configuration and upgrade on some data in the vehicle.
[0157] Based on the vehicle electrical inspection method provided in the above embodiments, correspondingly, the present application also provides a specific implementation manner of the vehicle electrical inspection device. Please refer to the following embodiments.
[0158] First, refer to Figure 4 , the vehicle electrical inspection device 1300 provided in the embodiment of the present application includes the following modules:
[0159] The first encryption module 131 is used to generate a random dynamic password in response to the electrical inspection authentication request sent by the server, and generate a first key based on the random dynamic password;
[0160] The first sending module 132 sends the random dynamic password and the first key to the server;
[0161] The first receiving module 133 receives the first encrypted data sent by the server, and the first encrypted data is the data generated by the server based on the random dynamic password and the first key;
[0162] The second encryption module 134 is used to encrypt the random dynamic password to obtain second encrypted data;
[0163] An electrical inspection engine module 135 is used to perform electrical inspection when the first encrypted data matches the second encrypted data, and send the result of the electrical inspection to the server.
[0164] In this implementation, by randomly selecting one of multiple trained neural network models as the target neural network model, inputting the first vector into the target neural network model for feature aggregation to obtain a feature aggregation result, it is not necessary for multiple trained neural network models to all participate in the calculation of the speech recognition process, thereby reducing the computational amount in the speech recognition process; compared with the related technology that also needs to set a gating module, this application does not need to set a gating module, thereby simplifying the program structure and reducing the computational amount in the speech recognition process; the multiple trained neural network models are randomly paired in pairs and iteratively obtained based on the KL divergence loss function, so that randomly selecting any trained neural network model can output a consistent recognition result.
[0165] As an implementation manner of this application, the above vehicle electrical inspection device 1300 may include:
[0166] A third sending module is used to send an authentication passed message and a vehicle identification number to the server when the first encrypted data matches the second encrypted data, so that the server stores the vehicle identification number associated with the authentication passed flag.
[0167] As an implementation manner of this application, the above vehicle electrical inspection device 1300 may include:
[0168] A fourth sending module is used to send an identification code acquisition request to the server when accessing the first preset network, and the identification code acquisition request carries the pre-stored product serial number of the vehicle;
[0169] A first storage module is used to receive the vehicle identification code sent by the server and store the vehicle identification code. The server queries the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0170] As an implementation manner of this application, the above electrical inspection engine module 135 may include:
[0171] A first acquisition unit is used to acquire the version number of the local detection execution file and the version number of the remote detection execution file when the first encrypted data matches the second encrypted data. The detection execution file is a program used to instruct the electrical inspection of the vehicle;
[0172] A first sending unit is used to send a detection execution file download request to the server when the version number of the local detection execution file is different from the version number of the remote detection execution file;
[0173] The first update unit is configured to receive the remote detection execution file sent by the server according to the detection execution file download request, and update the local detection execution file to the received remote detection execution file.
[0174] The first electrical inspection unit is configured to perform electrical inspection according to the local detection execution file and send the result of the electrical inspection to the server.
[0175] As an implementation manner of the present application, the first update unit is configured to receive the remote detection execution file sent by the server according to the detection execution file download request within a preset time period, and update the local detection execution file to the received remote detection execution file.
[0176] In the case of exceeding the upgrade time period, stop the update and restore the local detection execution file.
[0177] As an implementation manner of the present application, the vehicle electrical inspection device 1300 may include:
[0178] The fifth sending unit is configured to send a data identifier update request to the server when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program.
[0179] The first upgrade unit is configured to receive the controller program upgrade file sent by the server based on the data identifier update request, and upgrade the local LIN controller program according to the controller program upgrade file so that the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0180] The vehicle electrical inspection device provided by the embodiment of the present invention can implement each step in the above method embodiment. To avoid repetition, it will not be elaborated here.
[0181] Based on the vehicle electrical inspection method provided by the above embodiment, correspondingly, the present application also provides a specific implementation manner of the vehicle electrical inspection device. Please refer to the following embodiments.
[0182] First, refer to Figure 5 , the vehicle electrical inspection device 1400 provided by the embodiment of the present application includes the following modules:
[0183] The second sending module 141 is configured to send an electrical inspection authentication request to the vehicle when it is detected that the vehicle to be inspected accesses the first preset network.
[0184] The second receiving module 142 is configured to receive the random dynamic password and the first key sent by the vehicle. The random dynamic password is generated by the vehicle according to the electrical inspection authentication request, and the first key is generated by the vehicle according to the random dynamic password.
[0185] The third encryption module 143 is configured to send the first encrypted data to the vehicle based on the first encrypted data generated by the random dynamic password and the first key, so that the vehicle performs an electrical inspection and returns an electrical inspection result when it is determined that the first encrypted data matches the second key data, where the second key data is obtained by the vehicle encrypting the random dynamic password.
[0186] As an implementation manner of this application, the above vehicle electrical inspection device 1400 may include:
[0187] The fifth sending module is configured to receive the authentication passed information and the vehicle identification number sent by the vehicle when the first encrypted data matches the second encrypted data, and store the vehicle identification number associated with the authentication passed flag.
[0188] As an implementation manner of this application, the above vehicle electrical inspection device 1400 may include:
[0189] The fifth receiving module is configured to receive the identification code acquisition request sent by the vehicle when it is detected that the vehicle to be detected accesses the first preset network, and the identification code acquisition request carries the pre-stored product serial number of the vehicle;
[0190] The second query module is configured to query the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and send the vehicle identification code to the vehicle, where the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
[0191] As an implementation manner of this application, the above vehicle electrical inspection device 1400 may include:
[0192] The sixth receiving module is configured to receive the detection execution file download request sent by the vehicle when the version number of the local detection execution file is different from the version number of the remote detection execution file, where the detection execution file is a program for instructing the electrical inspection of the vehicle;
[0193] The second distribution module is configured to distribute the remote detection execution file to the vehicle according to the detection execution file download request, so that the vehicle updates the local detection execution file to the received remote detection execution file.
[0194] As an implementation manner of this application, the second distribution module may include:
[0195] The first distribution unit is configured to distribute the remote detection execution file to the vehicle according to the detection execution file download request within a preset time period;
[0196] The first distribution unit is further configured to stop distributing the remote detection execution file to the vehicle when the upgrade time period is exceeded.
[0197] As an implementation manner of the present application, the above vehicle electrical inspection device 1400 may include:
[0198] A seventh sending unit, configured to receive a data identifier update request sent by the vehicle when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program;
[0199] A third sending-down unit, configured to send a controller program upgrade file to the vehicle based on the data identifier update request, so that the vehicle upgrades the local LIN controller program according to the controller program upgrade file, and the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
[0200] Figure 6 The figure shows a schematic hardware structure diagram of a vehicle electrical inspection device provided by an embodiment of the present application.
[0201] The vehicle electrical inspection device may include a processor 1001 and a memory 1002 storing computer program instructions.
[0202] Specifically, the above processor 1001 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0203] The memory 1002 may include a mass storage for data or instructions. By way of example and not limitation, the memory 1002 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In a suitable case, the memory 1002 may include removable or non-removable (or fixed) media. In a suitable case, the memory 1002 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1002 is a non-volatile solid state memory.
[0204] The memory may include a read only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in reference to the method according to one aspect of the present disclosure.
[0205] The processor 1001 reads and executes the computer program instructions stored in the memory 1002 to implement any one of the vehicle electrical inspection methods in the above embodiments.
[0206] In one example, the vehicle electrical inspection device may further include a communication interface 1003 and a bus 1010. Among them, as Figure 5 shown, the processor 1001, the memory 1002, and the communication interface 1003 are connected through the bus 1010 and complete communication with each other.
[0207] The communication interface 1003 is mainly used to implement communication between each module, device, unit, and / or device in the embodiments of the present application.
[0208] The bus 1010 includes hardware, software, or both, and couples the components of the vehicle electrical inspection device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses or a combination of two or more of these. In a suitable case, the bus 1010 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.
[0209] The vehicle electrical inspection device can be based on the above embodiments, so as to implement the vehicle electrical inspection method and device in combination with the above.
[0210] In addition, in combination with the vehicle electrical inspection method in the above embodiments, the embodiments of the present application can provide a computer storage medium to implement. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by the processor, any one of the vehicle electrical inspection methods in the above embodiments is implemented, and the same technical effects can be achieved. To avoid repetition, it will not be described here again. Among them, the above computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc, etc., which is not limited herein.
[0211] In addition, an embodiment of the present application further provides a vehicle, including computer program instructions, and when the computer program instructions are executed by a processor, the steps and corresponding contents of the foregoing method embodiment can be implemented.
[0212] It should be clear that the present application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present application.
[0213] The functional blocks shown in the above block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave on a transmission medium or a communication link. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0214] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.
[0215] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of methods, apparatuses, and vehicles according to embodiments of the present disclosure. It should be understood that each block in the flowchart and / or block diagram, and the combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus enable the implementation of the functions / operations specified in one or more blocks of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0216] The above are only specific implementation manners of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should all be covered within the protection scope of the present application.
Claims
1. A vehicle electrical inspection method, characterized in that, it includes: Responding to the electrical inspection authentication request sent by the server, generating a random dynamic password, and generating a first key based on the random dynamic password; Sending the random dynamic password and the first key to the server; Receiving the first encrypted data sent by the server, where the first encrypted data is data generated by the server based on the random dynamic password and the first key; Encrypting the random dynamic password to obtain second encrypted data; In the case where the first encrypted data matches the second encrypted data, performing an electrical inspection and sending the result of the electrical inspection to the server.
2. The method according to claim 1, characterized in that, the vehicle electrical inspection method further includes: In the case where the first encrypted data matches the second encrypted data, sending authentication passed information and a vehicle identification number to the server, so that the server stores the vehicle identification number associated with the authentication passed flag.
3. The method according to claim 1, characterized in that, before responding to the electrical inspection authentication request sent by the server, it further includes: When accessing the first preset network, sending an identification code acquisition request to the server, where the identification code acquisition request carries the pre-stored product serial number of the vehicle; Receiving the vehicle identification code sent by the server, storing the vehicle identification code, and the server queries the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
4. The method according to claim 1, characterized in that, the step of performing an electrical inspection and sending the result of the electrical inspection to the server in the case where the first encrypted data matches the second encrypted data includes: In the case where the first encrypted data matches the second encrypted data, obtaining the version number of the local inspection execution file and the version number of the remote inspection execution file, where the inspection execution file is a program for instructing the electrical inspection of the vehicle; In the case where the version number of the local inspection execution file is different from the version number of the remote inspection execution file, sending a detection execution file download request to the server; Receiving the remote inspection execution file sent by the server according to the detection execution file download request, and updating the local inspection execution file to the received remote inspection execution file; Performing an electrical inspection according to the local inspection execution file and sending the result of the electrical inspection to the server.
5. The method according to claim 4, characterized in that, the step of receiving the remote inspection execution file sent by the server according to the detection execution file download request and updating the local inspection execution file to the received remote inspection execution file includes: Receiving the remote inspection execution file sent by the server according to the detection execution file download request within a preset time period, and updating the local inspection execution file to the received remote inspection execution file; In the case of exceeding the upgrade time period, stop updating and restore the local inspection execution file.
6. The method according to claim 5, Characterized in that, The method further includes: When the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program, sending a data identifier update request to the server; Receiving a controller program upgrade file sent by the server based on the data identifier update request, and upgrading the local LIN controller program according to the controller program upgrade file, so that the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
7. A vehicle electrical inspection method, Characterized in that, Including: When it is detected that the vehicle to be inspected accesses the first preset network, sending an electrical inspection authentication request to the vehicle; Receiving a random dynamic password and a first key sent by the vehicle, the random dynamic password is generated by the vehicle according to the electrical inspection authentication request, and the first key is generated by the vehicle according to the random dynamic password; Generating first encrypted data based on the random dynamic password and the first key, and sending the first encrypted data to the vehicle, so that the vehicle performs an electrical inspection and returns an electrical inspection result when it is determined that the first encrypted data matches the second key data, and the second key data is obtained by the vehicle encrypting the random dynamic password.
8. The method according to claim 7, Characterized in that, The vehicle electrical inspection method further includes: Receiving the authentication passed information and the vehicle identification number sent by the vehicle when the first encrypted data matches the second encrypted data, and storing the vehicle identification number associated with the authentication passed flag.
9. The method according to claim 7, Characterized in that, The step of, when it is detected that the vehicle to be inspected accesses the first preset network, sending an electrical inspection authentication request to the vehicle includes: When it is detected that the vehicle to be inspected accesses the first preset network, receiving an identification code acquisition request sent by the vehicle, and the identification code acquisition request carries the pre-stored product serial number of the vehicle; Querying the vehicle identification code corresponding to the pre-stored product serial number according to the first preset mapping relationship, and sending the vehicle identification code to the vehicle, and the first preset mapping relationship includes the mapping relationship between the product serial number and the vehicle identification code.
10. The method according to claim 7, Characterized in that, After sending the first encrypted data generated based on the random dynamic password and the first key to the vehicle, the following steps are included: Receiving a detection execution file download request sent by the vehicle when the version number of the local detection execution file is different from the version number of the remote detection execution file, and the detection execution file is a program for instructing the electrical inspection of the vehicle; Sending a remote detection execution file to the vehicle according to the detection execution file download request, so that the vehicle updates the local detection execution file to the received remote detection execution file.
11. The method according to claim 10, Characterized in that, The step of sending a remote detection execution file to the vehicle according to the detection execution file download request includes: A remote detection execution file sent to the vehicle according to the detection execution file download request within a preset time period; When the upgrade time period is exceeded, stop sending the remote detection execution file to the vehicle.
12. The method according to claim 7, wherein, the method further includes: Receiving a data identifier update request sent by the vehicle when the data identifier of the local LIN controller program is different from the data identifier of the local CAN controller program; Sending a controller program upgrade file to the vehicle based on the data identifier update request, so that the vehicle upgrades the local LIN controller program according to the controller program upgrade file, and the data identifier of the upgraded local LIN controller program is the same as the data identifier of the local CAN controller program.
13. A vehicle electrical inspection device, wherein, it includes: A first encryption module, configured to generate a random dynamic password in response to an electrical inspection authentication request sent by the server, and generate a first key based on the random dynamic password; A first sending module, sending the random dynamic password and the first key to the server; A first receiving module, receiving the first encrypted data sent by the server, where the first encrypted data is data generated by the server based on the random dynamic password and the first key; A second encryption module, configured to encrypt the random dynamic password to obtain second encrypted data; An electrical inspection engine module, configured to perform an electrical inspection when the first encrypted data matches the second encrypted data, and send the result of the electrical inspection to the server.
14. A vehicle electrical inspection device, wherein, it includes: A second sending module, configured to send an electrical inspection authentication request to the vehicle when it detects that a vehicle to be inspected accesses a first preset network; A second receiving module, configured to receive the random dynamic password and the first key sent by the vehicle, where the random dynamic password is generated by the vehicle according to the electrical inspection authentication request, and the first key is generated by the vehicle according to the random dynamic password; A third encryption module, configured to send the first encrypted data generated based on the random dynamic password and the first key to the vehicle, so that the vehicle performs an electrical inspection and returns the result of the electrical inspection when it determines that the first encrypted data matches the second key data, and the second key data is obtained by the vehicle encrypting the random dynamic password.
15. A vehicle electrical inspection device, wherein, the vehicle electrical inspection device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the vehicle electrical inspection method according to any one of claims 1-6 or the vehicle electrical inspection method according to any one of claims 7-12.
16. A computer storage medium, wherein, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the vehicle electrical inspection method according to any one of claims 1-6 or the vehicle electrical inspection method according to any one of claims 7-12.
17. A vehicle, characterized in that the vehicle includes computer program instructions, which, when executed by a processor, implement the vehicle electrical inspection method according to any one of claims 1-6.