Script execution method and device, vehicle, storage medium and program product

By storing the mapping relationship between script execution type and timing on the driverless vehicle side, the problem that intelligent driverless vehicles cannot respond to customer needs in a timely manner is solved, and an efficient remote response mechanism and customer satisfaction are achieved.

CN119396386APending Publication Date: 2025-02-07SHANGHAI ECAR TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411684680.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

Smart driverless vehicles cannot respond to customer needs in a timely manner during operation, which affects customer experience and operational efficiency.

Method used

Store the mapping relationship between the execution type and execution timing of the script text on the unmanned vehicle side, as well as the mapping relationship between the execution type and the post-execution processing method, obtain the execution parameters of the target script file remotely, determine its execution type, and use the mapping to obtain the mapping parameters of the target script file, and determine its execution type. Relationship execution script files and post-processing operations.

Benefits of technology

A more efficient remote response mechanism is achieved in the operation of driverless vehicles, reducing dependence on on-site personnel, able to respond to customer needs in a timely manner, and improving customer satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396386A_ABST
    Figure CN119396386A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a script execution method and device, a vehicle, a storage medium and a program product. The method comprises the steps of determining an execution type to which a target script file belongs based on execution parameters of the target script file acquired from a remote end; querying a mapping relationship between the execution type and the execution opportunity, and determining the execution opportunity matched with the execution type; querying a mapping relationship between the execution type and an execution post-processing mode, and determining the execution post-processing mode matched with the execution type; and when the execution opportunity is reached, executing the target script file, and after the target script file is executed, executing corresponding operation according to an execution post-processing mode. The method is used for achieving the effects of reducing dependence on field personnel and being capable of responding to customer demands in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a script execution method, device, vehicle, storage medium and program product. Background Art

[0002] An intelligent driverless vehicle is a vehicle that can sense its surroundings and navigate without human intervention. Intelligent driverless vehicles use a variety of sensors to sense the surrounding environment. After collecting enough environmental information, the vehicle needs to make driving decisions through decision-making algorithms. In order to determine the vehicle's position in real time, intelligent driverless vehicles usually use global positioning systems and inertial navigation systems for positioning.

[0003] Intelligent driverless vehicles can be applied in a variety of scenarios, such as logistics distribution, catering and retail services. After the intelligent driverless vehicles are put into operation, customers will raise various demands and feedback based on the actual operation situation. For some demands, operation and maintenance personnel are required to go to the site to handle them. However, untimely on-site response may affect customer experience and operational efficiency. Summary of the invention

[0004] The embodiments of the present application provide a script execution method, device, vehicle, storage medium, and program product to reduce dependence on on-site personnel and enable timely response to customer needs.

[0005] In a first aspect, an embodiment of the present application provides a script execution method, which is applied to an unmanned vehicle end, wherein the unmanned vehicle end stores a mapping relationship between an execution type of a script text and an execution timing, and stores a mapping relationship between an execution type and a post-execution processing method, and the method includes:

[0006] Determine the execution type of the target script file based on the execution parameters of the target script file obtained from the remote end;

[0007] Querying the mapping relationship between the execution type and the execution time, and determining the execution time matching the execution type;

[0008] Querying the mapping relationship between the execution type and the post-execution processing method, and determining the post-execution processing method matching the execution type;

[0009] When the execution timing is reached, the target script file is executed, and after the target script file is executed, corresponding operations are performed according to the post-execution processing method.

[0010] In a possible implementation, when the execution type is the first type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including:

[0011] After the target script file is successfully verified, executing the target script file;

[0012] After executing the target script file, the target script file is deleted from the unmanned vehicle.

[0013] In a possible implementation, when the execution type is the second type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including:

[0014] After the vehicle is powered on successfully, executing the target script file;

[0015] After executing the target script file, the target script file is deleted from the unmanned vehicle, and the file name of the target script file is deleted from an execution list, where the execution list is used to record script files to be executed after the vehicle is powered on.

[0016] In a possible implementation, when the execution type is the third type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including:

[0017] After the vehicle is powered on successfully, executing the target script file;

[0018] After executing the target script file, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in an execution list, where the execution list is used to record the script files to be executed after the vehicle is powered on.

[0019] In a possible implementation, executing the target script file includes:

[0020] Identify the script language of the target script file;

[0021] Determine a target language interpreter matching the scripting language from a plurality of pre-configured language interpreters;

[0022] The target language interpreter is called to execute the target script file.

[0023] In a possible implementation manner, determining the execution type of the target script file based on the execution parameter of the target script file obtained from the remote end includes:

[0024] Performing integrity check on the target script file;

[0025] If the target script file is successfully verified, the execution type of the target script file is determined based on the execution parameters of the target script file.

[0026] In a possible implementation, the performing integrity check on the target script file includes:

[0027] After the target script file is downloaded, performing a hash calculation on the target script file to obtain a first hash value of the target script file;

[0028] Acquire a second hash value of the target script file from a remote end;

[0029] The first hash value is compared with the second hash value to perform an integrity check on the target script file.

[0030] In a second aspect, an embodiment of the present application provides a script execution device, which is applied to an unmanned vehicle end, wherein the unmanned vehicle end stores a mapping relationship between an execution type of a script text and an execution timing, and stores a mapping relationship between an execution type and a post-execution processing method, and the device includes:

[0031] A determination module, configured to determine the execution type of the target script file based on the execution parameters of the target script file obtained from a remote end;

[0032] A first query module, used to query the mapping relationship between the execution type and the execution time, and determine the execution time matching the execution type;

[0033] A second query module is used to query the mapping relationship between the execution type and the post-execution processing method, and determine the post-execution processing method matching the execution type;

[0034] The execution module is used to execute the target script file when the execution timing is reached, and after executing the target script file, perform corresponding operations according to the post-execution processing method.

[0035] In a possible implementation, when the execution type is the first type, the execution module is specifically configured to:

[0036] After the target script file is successfully verified, executing the target script file;

[0037] After executing the target script file, the target script file is deleted from the unmanned vehicle.

[0038] In a possible implementation, when the execution type is the second type, the execution module is specifically configured to:

[0039] After the vehicle is powered on successfully, executing the target script file;

[0040] After executing the target script file, the target script file is deleted from the unmanned vehicle, and the file name of the target script file is deleted from an execution list, where the execution list is used to record script files to be executed after the vehicle is powered on.

[0041] In a possible implementation, when the execution type is the third type, the execution module is specifically configured to:

[0042] After the vehicle is powered on successfully, executing the target script file;

[0043] After executing the target script file, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in an execution list, where the execution list is used to record the script files to be executed after the vehicle is powered on.

[0044] In a possible implementation manner, the execution module is specifically configured to:

[0045] Identify the script language of the target script file;

[0046] Determine a target language interpreter matching the scripting language from a plurality of pre-configured language interpreters;

[0047] The target language interpreter is called to execute the target script file.

[0048] In a possible implementation manner, the determining module is specifically configured to:

[0049] Performing integrity check on the target script file;

[0050] If the target script file is successfully verified, the execution type of the target script file is determined based on the execution parameters of the target script file.

[0051] In a possible implementation manner, the determining module is specifically configured to:

[0052] After the target script file is downloaded, performing a hash calculation on the target script file to obtain a first hash value of the target script file;

[0053] Acquire a second hash value of the target script file from a remote end;

[0054] The first hash value is compared with the second hash value to perform an integrity check on the target script file.

[0055] In a third aspect, an embodiment of the present application provides a vehicle, including: a memory, a processor;

[0056] The memory stores computer-executable instructions;

[0057] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0058] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0059] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0060] The embodiments of the present application provide a script execution method, device, vehicle, storage medium and program product. In the script execution method, the mapping relationship between the execution type and the execution time of the script text can be stored at the unmanned vehicle end, and the mapping relationship between the execution type and the post-execution processing method can be stored. When the target script file is obtained from the remote end, the execution type to which the target script file belongs can be determined based on the execution parameters of the target script file. By querying the above-mentioned stored mapping relationship, the execution time that matches the execution type of the target script file can be determined, and the post-execution processing method that matches the execution type of the target script file can be determined. The target script file is processed based on the matching execution time and post-execution processing method. For some customer needs, developers can write script files, and then store the script files and their corresponding execution parameters at the remote end, which are given to the unmanned vehicle end by the remote end, and the script files are executed at the unmanned vehicle end. This method can realize a more efficient remote response mechanism in the operation of unmanned vehicles, improve customer satisfaction, and reduce dependence on on-site personnel, and can respond to customer needs in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0062] Figure 1 A schematic diagram of a scenario for the script execution method provided in this application;

[0063] Figure 2 Schematic diagram of the script execution method provided for this application Figure 1 ;

[0064] Figure 3 Schematic diagram of the script execution method provided for this application Figure 2 ;

[0065] Figure 4 A process diagram of the script execution method provided by this application;

[0066] Figure 5 A schematic diagram of the structure of the script execution device provided by this application;

[0067] Figure 6 A schematic diagram of the structure of the vehicle provided for this application.

[0068] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0069] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0070] Unmanned vehicles, also known as self-driving cars, computer-driven cars or wheeled mobile robots, are intelligent vehicles that can be driven autonomously through the computer system inside the vehicle. The application scenarios of unmanned vehicles are very wide, including but not limited to the following aspects:

[0071] Driverless taxis, driverless buses, etc. can provide individuals with convenient and efficient travel services.

[0072] Unmanned delivery vehicles can be used in logistics and delivery fields such as express delivery and takeout, improving delivery efficiency and reducing costs.

[0073] In special fields such as agriculture and mining, driverless vehicles can replace humans in dangerous or repetitive tasks.

[0074] Combined with the above scenarios, in the existing technology, after the driverless vehicle is put into operation, customers will raise various demands and feedback based on the actual operation scenarios. For some demands involving simple function adjustments or configuration changes, if the conventional demand development process is followed: software development, testing, version release, OTA (Over-the-Air Technology) upgrade package production, vehicle OTA, it is impossible to respond to customer needs quickly. In addition, for some demands, operation and maintenance personnel are required to go to the site to handle, which increases labor costs.

[0075] The script execution method provided by the present application can store the mapping relationship between the execution type and the execution time of the script text at the unmanned vehicle end, and store the mapping relationship between the execution type and the post-execution processing method. When the target script file is obtained from the remote end, the execution type of the target script file can be determined based on the execution parameters of the target script file. By querying the above-mentioned stored mapping relationship, the execution time that matches the execution type of the target script file can be determined, and the post-execution processing method that matches the execution type of the target script file can be determined. The target script file is processed based on the matching execution time and post-execution processing method. For some customer needs, developers can write script files, and then store the script files and their corresponding execution parameters at the remote end, which are then given to the unmanned vehicle end by the remote end, and the script files are executed at the unmanned vehicle end. This method can realize a more efficient remote response mechanism in the operation of unmanned vehicles, improve customer satisfaction, solve the technical problem of not being able to respond to customer needs in a timely manner, and can more effectively respond to urgent customer needs in the operation of unmanned vehicles, while reducing dependence on on-site personnel and labor costs.

[0076] Figure 1 A schematic diagram of a scenario of the script execution method provided in this application, such as Figure 1 As shown, the application scenario of the present application is specifically a scenario in which an unmanned vehicle 101 obtains a script file from the cloud 102 for execution. During the operation of the unmanned vehicle, developers can write script files based on customer requirements, and then store the written script files and their corresponding execution parameters in the cloud. The unmanned vehicle can obtain the script files and their corresponding execution parameters from the cloud, and execute the script files according to the execution parameters.

[0077] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0078] Figure 2Schematic diagram of the script execution method provided for this application Figure 1 ,like Figure 2 As shown, the method can be applied to an unmanned vehicle end, in which a mapping relationship between the execution type and the execution timing of the script text is stored, and a mapping relationship between the execution type and the post-execution processing method is stored. The method includes:

[0079] S201. Determine the execution type of the target script file based on the execution parameters of the target script file obtained from a remote end.

[0080] The remote end can refer to any entity or system that is remotely accessed or interacted with through a network connection, such as a remote server, remote device, remote database, remote storage system, etc.

[0081] In the embodiment of the present application, the unmanned vehicle can obtain the target script file and its execution parameters from the remote end, and according to these execution parameters, the execution type of the target script file can be determined. The execution type may be classified according to the function, priority or other characteristics of the script file.

[0082] S202: Query the mapping relationship between the execution type and the execution time, and determine the execution time that matches the execution type.

[0083] The unmanned vehicle stores a mapping relationship between the execution type and the execution timing of the script text. By querying the mapping relationship between the execution type and the execution timing, the execution timing that matches the execution type of the target script file can be determined. The execution timing can be a specific time point, event trigger, or when a condition is met.

[0084] S203: Query the mapping relationship between the execution type and the post-execution processing method, and determine the post-execution processing method that matches the execution type.

[0085] The unmanned vehicle stores a mapping relationship between the execution type and the post-execution processing method. By querying the mapping relationship between the execution type and the post-execution processing method, the post-execution processing method that matches the execution type of the target script file can be determined. The post-execution processing method may include deletion processing, storage processing, etc.

[0086] S204. When the execution timing is reached, execute the target script file, and after executing the target script file, perform corresponding operations according to the post-execution processing method.

[0087] In an embodiment of the present application, when a determined execution timing is reached, the target script file is executed. After the target script file is executed, the corresponding operation is performed according to the determined execution post-processing method. This method enables the unmanned vehicle to flexibly manage the execution of different types of scripts by mapping the execution type of the script file with the execution timing and post-processing method. This flexibility helps to improve the responsiveness and adaptability of the system, especially when faced with diverse and dynamically changing needs. In this way, various script execution tasks can be automatically processed without the need for frequent manual intervention.

[0088] The script execution method provided in the embodiment of the present application can store the mapping relationship between the execution type and the execution time of the script text at the unmanned vehicle end, and store the mapping relationship between the execution type and the post-execution processing method. When the target script file is obtained from the remote end, the execution type to which the target script file belongs can be determined based on the execution parameters of the target script file. By querying the above-mentioned stored mapping relationship, the execution time that matches the execution type of the target script file can be determined, and the post-execution processing method that matches the execution type of the target script file can be determined. The target script file is processed based on the matching execution time and post-execution processing method. For some customer needs, developers can write script files, and then store the script files and their corresponding execution parameters at the remote end, which are then given to the unmanned vehicle end by the remote end, and the script files are executed at the unmanned vehicle end. This method can achieve a more efficient remote response mechanism in the operation of unmanned vehicles, improve customer satisfaction, and reduce dependence on on-site personnel, and be able to respond to customer needs in a timely manner.

[0089] Figure 3 Schematic diagram of the script execution method provided for this application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 Based on the embodiment, a script execution method is described in detail. The method can be applied to an unmanned vehicle end. The unmanned vehicle end stores a mapping relationship between the execution type and the execution timing of the script text, and stores a mapping relationship between the execution type and the post-execution processing method. The method includes:

[0090] S301, performing integrity check on the target script file.

[0091] In an embodiment of the present application, a user (such as a developer) can log in to a remote script management platform to select a target vehicle and a target script file to be executed. If the user has permission, a script execution instruction can be generated based on the user's selection operation. The remote end can send the script execution instruction to the corresponding unmanned vehicle end. The unmanned vehicle end obtains the target script file from the remote end according to the script execution instruction. The unmanned vehicle end can perform an integrity check on the target script file to ensure that the file has not been tampered with or damaged.

[0092] In a possible implementation, performing integrity check on the target script file may specifically include:

[0093] After the target script file is downloaded, a hash calculation is performed on the target script file to obtain a first hash value of the target script file;

[0094] Get the second hash value of the target script file from the remote end;

[0095] The first hash value is compared with the second hash value to perform an integrity check on the target script file.

[0096] In this embodiment, the target script file is downloaded from a remote end to the unmanned vehicle end. After the download is completed, a hash algorithm can be used to perform a hash calculation on the downloaded target script file to generate a first hash value, obtain an expected hash value of the target script file (i.e., a second hash value), and compare the calculated first hash value with the obtained second hash value. If the two hash values ​​are consistent, it indicates that the target script file has not been tampered with during the transmission process and its integrity has been verified; if the two hash values ​​are inconsistent, it indicates that the target script file may have been modified or damaged and the verification fails.

[0097] S302: If the target script file is successfully verified, determine the execution type of the target script file based on the execution parameters of the target script file.

[0098] S303: Query the mapping relationship between the execution type and the execution time, and determine the execution time that matches the execution type.

[0099] S304: Query the mapping relationship between the execution type and the post-execution processing method, and determine the post-execution processing method that matches the execution type.

[0100] S305. When the execution timing is reached, execute the target script file, and after executing the target script file, perform corresponding operations according to the post-execution processing method.

[0101] In a possible implementation, when the execution type is the first type, when the execution timing is reached, the target script file is executed, and after the target script file is executed, corresponding operations are performed in a post-execution processing manner, which may specifically include:

[0102] After the target script file is successfully verified, execute the target script file;

[0103] After executing the target script file, the target script file is deleted from the unmanned vehicle.

[0104] In this embodiment, if the execution type of the target script file is determined to be the first type, the target script file is executed immediately after the integrity check of the target script file succeeds, and after the target script file is executed, the target script file is deleted from the driverless vehicle. The first type is a single immediate execution type, which means that the script file should be executed immediately after the verification is passed, and only executed once.

[0105] In a possible implementation, when the execution type is the second type, when the execution timing is reached, the target script file is executed, and after the target script file is executed, corresponding operations are performed in a post-execution processing manner, which may specifically include:

[0106] After the vehicle is powered on successfully, execute the target script file;

[0107] After executing the target script file, the target script file is deleted from the unmanned vehicle, and the file name of the target script file is deleted from the execution list, which is used to record the script files to be executed after the vehicle is powered on.

[0108] In this embodiment, if it is determined that the execution type of the target script file is the second type, the target script file is executed after the vehicle is powered on successfully, and after the target script file is executed, the target script file is deleted from the unmanned vehicle end, and the file name of the target script file is deleted from the execution list, wherein the file name of the target script file is added to the execution list after it is determined that the execution type of the target script file is not the first type. The second type is a single vehicle power-on execution type, which means that the script file is executed after the vehicle is powered on successfully, and is only executed once.

[0109] In a possible implementation, when the execution type is the third type, when the execution timing is reached, the target script file is executed, and after the target script file is executed, corresponding operations are performed in a post-execution processing manner, which may specifically include:

[0110] After the vehicle is powered on successfully, execute the target script file;

[0111] After executing the target script file, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in the execution list, which is used to record the script files to be executed after the vehicle is powered on.

[0112] In this embodiment, if it is determined that the execution type of the target script file is the third type, the target script file is executed after the vehicle is powered on successfully. After the target script file is executed, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in the execution list, wherein the file name of the target script file is added to the execution list after it is determined that the execution type of the target script file is not the first type. The third type is the execution type for each vehicle power-on, which means that the script file needs to be executed each time the vehicle is powered on successfully.

[0113] It should be noted that after executing the target script file, the execution result can be fed back to the remote end.

[0114] In a possible implementation, executing the target script file may specifically include:

[0115] Identify the scripting language of the target script file;

[0116] Determine a target language interpreter matching the script language from among multiple pre-configured language interpreters;

[0117] Call the target language interpreter to execute the target script file.

[0118] A multi-language script execution engine can be built in the vehicle controller of the unmanned vehicle. The engine is configured with multiple language interpreters and can recognize and execute multiple interpreted script languages, such as Python, Shell, Perl, etc.

[0119] In this embodiment, the script language of the target script file can be identified by detecting the extension of the target script file or reading the file header information, and the mapping relationship between the script language and the language interpreter can be stored in the unmanned vehicle. By querying the mapping relationship between the script language and the language interpreter, the target language interpreter that matches the script language of the target script file can be determined, and then the target language interpreter can be called to execute the target script file.

[0120] Reference Figure 4As shown, it is a process diagram of the script execution method provided by the present application. For some parts involving simple function adjustments or higher configuration requirements, such as the need to temporarily adjust the fault detection threshold / fault reporting conditions, clear a certain historical fault code, obtain specific vehicle signals and status information, restore factory settings and rewrite the vehicle identification code, etc., developers can write script files. After the local test verification is passed, it can be stored in the remote script management platform for unified storage management. The user can log in to the script management platform. In response to the user operation, the remote end generates a script execution instruction, which can be sent to the unmanned vehicle end. The unmanned vehicle end downloads the corresponding script file from the remote end according to the script execution instruction, and the unmanned vehicle end executes the script file according to the carried execution parameters. During the script file download, verification, and execution process, the execution engine reports the results of each stage to the remote end.

[0121] The script execution method provided in the embodiment of the present application can store the mapping relationship between the execution type and the execution time of the script text at the unmanned vehicle end, and store the mapping relationship between the execution type and the post-execution processing method. When the target script file is obtained from the remote end, the execution type to which the target script file belongs can be determined based on the execution parameters of the target script file. By querying the above-mentioned stored mapping relationship, the execution time that matches the execution type of the target script file can be determined, and the post-execution processing method that matches the execution type of the target script file can be determined. The target script file is processed based on the matching execution time and post-execution processing method. For some customer needs, developers can write script files, and then store the script files and their corresponding execution parameters at the remote end, which are then given to the unmanned vehicle end by the remote end, and the script files are executed at the unmanned vehicle end. This method can achieve a more efficient remote response mechanism in the operation of unmanned vehicles, improve customer satisfaction, and reduce dependence on on-site personnel, and be able to respond to customer needs in a timely manner.

[0122] Figure 5 A schematic diagram of the structure of the script execution device provided by this application, such as Figure 5 As shown, the device can be applied to an unmanned vehicle end, and the unmanned vehicle end stores a mapping relationship between the execution type and the execution time of the script text, and stores a mapping relationship between the execution type and the post-execution processing method. The script execution device 50 provided in this embodiment includes:

[0123] A determination module 501 is used to determine the execution type of the target script file based on the execution parameters of the target script file obtained from the remote end;

[0124] A first query module 502 is used to query the mapping relationship between the execution type and the execution time, and determine the execution time matching the execution type;

[0125] The second query module 503 is used to query the mapping relationship between the execution type and the post-execution processing method, and determine the post-execution processing method matching the execution type;

[0126] The execution module 504 is used to execute the target script file when the execution timing is reached, and after executing the target script file, perform corresponding operations according to the post-execution processing method.

[0127] In a possible implementation, when the execution type is the first type, the execution module is specifically configured to:

[0128] After the target script file is successfully verified, execute the target script file;

[0129] After executing the target script file, the target script file is deleted from the unmanned vehicle.

[0130] In a possible implementation, when the execution type is the second type, the execution module is specifically configured to:

[0131] After the vehicle is powered on successfully, execute the target script file;

[0132] After executing the target script file, the target script file is deleted from the unmanned vehicle, and the file name of the target script file is deleted from the execution list, which is used to record the script files to be executed after the vehicle is powered on.

[0133] In a possible implementation, when the execution type is the third type, the execution module is specifically configured to:

[0134] After the vehicle is powered on successfully, execute the target script file;

[0135] After executing the target script file, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in the execution list, which is used to record the script files to be executed after the vehicle is powered on.

[0136] In a possible implementation, the execution module is specifically used for:

[0137] Identify the scripting language of the target script file;

[0138] Determine a target language interpreter matching the script language from among multiple pre-configured language interpreters;

[0139] Call the target language interpreter to execute the target script file.

[0140] In a possible implementation, the determination module is specifically used for:

[0141] Perform integrity check on the target script file;

[0142] If the target script file is successfully verified, the execution type of the target script file is determined based on the execution parameters of the target script file.

[0143] In a possible implementation, the determination module is specifically used for:

[0144] After the target script file is downloaded, a hash calculation is performed on the target script file to obtain a first hash value of the target script file;

[0145] Get the second hash value of the target script file from the remote end;

[0146] The first hash value is compared with the second hash value to perform an integrity check on the target script file.

[0147] The script execution device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0148] Figure 6 The schematic diagram of the structure of the vehicle provided in this application. Figure 6 As shown, the vehicle 60 provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the vehicle 60 also includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus.

[0149] In a specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above method.

[0150] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0151] In the above embodiments, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly implemented as a hardware processor, or can be implemented by a combination of hardware and software modules in the processor.

[0152] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.

[0153] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0154] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0155] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0156] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0157] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0158] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

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

[0160] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0161] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0162] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0163] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A script execution method, characterized in that: Applied to an unmanned vehicle end, the unmanned vehicle end stores a mapping relationship between the execution type of the script text and the execution time, and stores a mapping relationship between the execution type and the post-execution processing method. The method includes: Determine the execution type of the target script file based on the execution parameters of the target script file obtained from the remote end; Querying the mapping relationship between the execution type and the execution time, and determining the execution time matching the execution type; Querying the mapping relationship between the execution type and the post-execution processing method, and determining the post-execution processing method matching the execution type; When the execution timing is reached, the target script file is executed, and after the target script file is executed, corresponding operations are performed according to the post-execution processing method.

2. The method according to claim 1, characterized in that When the execution type is the first type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including: After the target script file is successfully verified, executing the target script file; After executing the target script file, the target script file is deleted from the unmanned vehicle.

3. The method according to claim 1, characterized in that When the execution type is the second type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including: After the vehicle is powered on successfully, executing the target script file; After executing the target script file, the target script file is deleted from the unmanned vehicle, and the file name of the target script file is deleted from an execution list, where the execution list is used to record script files to be executed after the vehicle is powered on.

4. The method according to claim 1, characterized in that: When the execution type is the third type, executing the target script file when the execution timing is reached, and after executing the target script file, performing corresponding operations according to the post-execution processing method, including: After the vehicle is powered on successfully, executing the target script file; After executing the target script file, the target script file is retained on the unmanned vehicle side, and the file name of the target script file is retained in an execution list, where the execution list is used to record the script files to be executed after the vehicle is powered on.

5. The method according to any one of claims 2 to 4, characterized in that: The executing the target script file comprises: Identify the script language of the target script file; Determine a target language interpreter matching the scripting language from a plurality of pre-configured language interpreters; The target language interpreter is called to execute the target script file.

6. The method according to any one of claims 1 to 4, characterized in that: The step of determining the execution type of the target script file based on the execution parameter of the target script file obtained from the remote end includes: Performing integrity check on the target script file; If the target script file is successfully verified, the execution type of the target script file is determined based on the execution parameters of the target script file.

7. The method according to claim 6, characterized in that The integrity check of the target script file includes: After the target script file is downloaded, performing a hash calculation on the target script file to obtain a first hash value of the target script file; Acquire a second hash value of the target script file from a remote end; The first hash value is compared with the second hash value to perform an integrity check on the target script file.

8. A script execution device, characterized in that: Applied to an unmanned vehicle end, the unmanned vehicle end stores a mapping relationship between the execution type of the script text and the execution time, and stores a mapping relationship between the execution type and the post-execution processing method, and the device includes: A determination module, configured to determine the execution type of the target script file based on the execution parameters of the target script file obtained from a remote end; A first query module, used to query the mapping relationship between the execution type and the execution time, and determine the execution time matching the execution type; A second query module is used to query the mapping relationship between the execution type and the post-execution processing method, and determine the post-execution processing method matching the execution type; The execution module is used to execute the target script file when the execution timing is reached, and after executing the target script file, perform corresponding operations according to the post-execution processing method.

9. A vehicle, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium / computer program product, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor; and / or, The computer program product comprises a computer program, which implements the method according to any one of claims 1 to 7 when executed by a processor.