CN115454480A - Data updating method, device and system, vehicle and electronic equipment - Google Patents

Data updating method, device and system, vehicle and electronic equipment Download PDF

Info

Publication number
CN115454480A
CN115454480A CN202210977180.3A CN202210977180A CN115454480A CN 115454480 A CN115454480 A CN 115454480A CN 202210977180 A CN202210977180 A CN 202210977180A CN 115454480 A CN115454480 A CN 115454480A
Authority
CN
China
Prior art keywords
function
data
script function
vehicle
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210977180.3A
Other languages
Chinese (zh)
Inventor
路永召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202210977180.3A priority Critical patent/CN115454480A/en
Publication of CN115454480A publication Critical patent/CN115454480A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The disclosure discloses a data updating method, a device, a system, a vehicle and an electronic device, and the main technical scheme comprises the following steps: according to the data type identification in the data updating instruction sent by the server, the corresponding target script function is searched, the execution of the target script function depends on the corresponding configuration file, the data updating can be completed after the target script function is executed through the configuration file, the data updating mode is used for thinning the updating of the software in the vehicle to the updating of the script function, so that part of the software of the vehicle can be updated independently, the updating of the part of the software can be realized without the updating of the software of the whole vehicle, the updating or newly-added period of the part of the software is obviously shortened, and in the updating process, only the part of the software is updated or newly added, compared with the updating of the whole vehicle, the updating speed of the part of the software of the vehicle is obviously improved, and the user experience is further optimized.

Description

Data updating method, device and system, vehicle and electronic equipment
Technical Field
The present disclosure relates to the field of vehicle technologies, and in particular, to a method, an apparatus, a system, a vehicle, and an electronic device for updating data.
Background
At present, when partial software in a vehicle is updated or a new software function is added, the whole vehicle can only be updated along with the vehicle through an Over-the-Air Technology (OTA), and the whole vehicle is synchronously issued to a vehicle machine of the vehicle, but the partial software cannot be independently updated or added; the whole vehicle has a long updating period, so that when part of software of the vehicle is updated or a new software function is added, the updating or adding period is long and the speed is slow.
Disclosure of Invention
The disclosure provides a data updating method, a data updating device, a data updating system, a vehicle and electronic equipment. The method mainly aims to solve the problems of long updating or adding period and slow speed when partial software of the vehicle is updated or added with new software functions.
According to a first aspect of the present disclosure, there is provided a data updating method, applied to a vehicle, including:
acquiring a data updating instruction, wherein the data updating instruction comprises a data type identifier;
searching a target script function corresponding to the data category identification according to a preset mapping relation;
acquiring a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data to be called when the target script function is executed;
and executing the target script function according to the configuration file to complete data updating.
Optionally, the executing the target script function according to the configuration file includes:
calling a function engine, and executing the target script function according to the configuration file based on the function engine;
and reporting function operation data in the execution process of the target script function by the function engine.
Optionally, if the target script function is a periodic script function, executing the target script function according to the configuration file includes:
responding to the scheduling of a preset container to the periodic script function, and determining whether a condition for executing the periodic script function is met or not by the preset container according to an execution strategy, an execution period and available residual resources of the preset container in the configuration file;
if so, executing the periodic script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Optionally, if the target script function is an event script function, executing the target script function according to the configuration file includes:
responding to the scheduling of a preset container to the event script function, and determining whether a condition for executing the event script function is met by the preset container according to an execution strategy in the configuration file and available residual resources of the preset container;
if so, executing the event script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Optionally, before executing the target script function according to the configuration file, the method further includes:
and encapsulating the data access, the general capability and the business capability of the vehicle into corresponding capability functions by the function engine so as to provide the corresponding capability functions for the target script function to use.
Optionally, before searching for the target script function corresponding to the data category identifier according to the preset mapping relationship, the method further includes:
and receiving the script function issued by the server and the corresponding configuration file.
According to a second aspect of the present disclosure, there is provided a data updating method, which is applied to a server side, and includes:
configuring corresponding script functions according to different data type identifications and configuring configuration files corresponding to the script functions, wherein the configuration files are used for indicating vehicle data to be called when the target script functions are executed;
and issuing the configured script function and the corresponding configuration file to a vehicle machine of the vehicle.
Optionally, the method further includes:
receiving function operation data sent by the vehicle machine when the script function is executed;
and judging whether the function operation data has abnormal operation or not, and reconfiguring the script function with the abnormal operation and the configuration file corresponding to the script function.
According to a third aspect of the present disclosure, there is provided an apparatus for updating data, the apparatus being applied to a vehicle side, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a data updating instruction which comprises a data category identifier;
the searching unit is used for searching a target script function corresponding to the data category identification according to a preset mapping relation;
the second obtaining unit is used for obtaining a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data to be called when the target script function is executed;
and the execution unit is used for executing the target script function according to the configuration file so as to complete data updating.
Optionally, the execution unit is further configured to:
calling a function engine, and executing the target script function according to the configuration file based on the function engine;
and reporting function operation data in the execution process of the target script function by the function engine.
Optionally, if the target script function is a periodic script function, the execution unit is further configured to:
responding to the scheduling of a preset container to the periodic script function, and determining whether a condition for executing the periodic script function is met by the preset container according to an execution strategy, an execution period and available residual resources of the preset container in the configuration file;
if so, executing the periodic script function based on the function engine according to the execution strategy;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Optionally, if the target script function is an event script function, the execution unit is further configured to:
responding to the scheduling of a preset container to the event script function, and determining whether a condition for executing the event script function is met by the preset container according to an execution strategy in the configuration file and available residual resources of the preset container;
if so, executing the event script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Optionally, the apparatus further comprises:
and the encapsulating unit is used for encapsulating the data access, the general capability and the service capability of the vehicle into corresponding capability functions by the function engine before the executing unit executes the target script function according to the configuration file so as to provide the corresponding capability functions for the target script function.
Optionally, the apparatus further comprises:
and the receiving unit is used for receiving the script function issued by the server and the corresponding configuration file before searching the target script function corresponding to the data type identifier according to the preset mapping relation.
According to a fourth aspect of the present disclosure, there is provided an apparatus for updating data, where the apparatus is applied to a server side, and includes:
the configuration unit is used for configuring corresponding script functions according to different data type identifications and configuring configuration files corresponding to the script functions, wherein the configuration files are used for indicating vehicle data to be called when the target script functions are executed;
and the issuing unit is used for issuing the configured script function and the corresponding configuration file to a vehicle machine of the vehicle.
Optionally, the apparatus further comprises:
the receiving unit is used for receiving function running data sent by the vehicle machine when the script function is executed;
the judging unit is used for judging whether the function operation data has operation abnormity;
the configuration unit is used for reconfiguring the abnormal script function and the corresponding configuration file.
According to a fifth aspect of the present disclosure, there is provided a system for updating data, the system comprising: vehicle and server, wherein:
the vehicle comprising means for updating data as described in the third aspect;
the server comprises means for updating data according to the fourth aspect.
According to a sixth aspect of the present disclosure, there is provided a vehicle comprising the data updating apparatus according to the third aspect.
According to a seventh aspect of the present disclosure, there is provided an electronic apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to an eighth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the aforementioned first aspect.
According to a ninth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method as set forth in the preceding first aspect.
The data updating method, the data updating device and the data updating system, the vehicle and the electronic equipment acquire a data updating instruction, wherein the data updating instruction comprises a data type identifier, a target script function corresponding to the data type identifier is searched according to a preset mapping relation, and a configuration file corresponding to the target script function is acquired, wherein the configuration file is used for indicating vehicle data called when the target script function is executed, and the target script function is executed through the configuration file to finish data updating. Compared with the prior art, the method and the device have the advantages that the corresponding target script function can be searched according to the data type identification in the data updating instruction issued by the server, the execution of the target script function depends on the corresponding configuration file, the data updating can be completed after the target script function is executed through the configuration file, the data updating mode is used for thinning the software updating in the vehicle to the updating of the script function, so that part of software of the vehicle can be updated independently, the updating of part of software can be realized without the updating of the whole vehicle software, the updating or newly-added period of the part of software is obviously shortened, and in the updating process, only the part of software is updated or newly added, compared with the updating of the whole vehicle, the updating speed of the part of software of the vehicle is obviously improved, and further the user experience is optimized.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a data updating method according to an embodiment of the disclosure;
FIG. 2 is a schematic diagram of a data update system according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of another data updating method provided in the embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of another data updating apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another data updating apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another data updating apparatus according to an embodiment of the present disclosure;
FIG. 8 is a schematic structural diagram of another data update system provided in the embodiments of the present disclosure;
fig. 9 is a schematic block diagram of an example electronic device 600 provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A method, an apparatus, an electronic device, and a storage medium for updating data according to embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a data updating method according to an embodiment of the present disclosure.
As shown in fig. 1, the method is applied to a vehicle end, and comprises the following steps:
step 101, a data updating instruction is obtained, wherein the data updating instruction comprises a data type identifier.
The data update instruction described in the embodiment of the present application includes, but is not limited to, updating a part of software on a vehicle, repairing a bug of the part of software, or adding a new software function to the vehicle, and may trigger obtaining the data update instruction, for example: the data updating instruction is used for bug repair acquired by time, new service call and the like, namely the data updating instruction not only comprises updating of part of vehicle software, but also comprises new adding of part of vehicle software.
Each data updating instruction comprises a data category identifier for indicating the data type of the updating data, and different data updating instructions have different data category identifiers.
And 102, searching a target script function corresponding to the data type identification according to a preset mapping relation.
And at the cloud server side, a developer writes a script function, the script function is issued to the vehicle machine end through a network, and after the vehicle machine stores the script function, the script function is executed, so that the data updating corresponding to the script function is completed.
In the embodiment of the application, the received script function is stored in the vehicle machine based on the preset mapping relationship between each data type identifier and the script function, so that after the data updating instruction is received in step 101, the target script function corresponding to the data type identifier can be directly searched based on the preset mapping relationship.
As a feasible manner of the embodiment of the present application, when searching for a target script function, the target script function may be searched in a manner of traversing all script functions according to the data type identifier. The embodiment of the application does not limit the way of searching the target script function.
Step 103, acquiring a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data to be called when the target script function is executed.
When the cloud server performs the configuration of the script function, corresponding configuration files are required to be synchronously configured, the configuration files correspond to the script function one by one, the configuration files are used for indicating vehicle data which need to be called when the target script function is executed, the vehicle data are synchronously issued to a vehicle machine along with the issued script function, and after the target script function is determined, the corresponding configuration files are directly acquired.
It should be noted that the configuration file includes configurations such as a capability function, an operating environment, and an execution cycle that are called when the target script file is required to be executed, where the capability function is to encapsulate data access capability, general capability, and service capability into corresponding capability functions, and provide the capability functions for the target script function to use. For example, in order to facilitate understanding of the vehicle capability, the following examples illustrate data access capabilities including, but not limited to, signal access capabilities, general capabilities including, but not limited to, ID generation capabilities, time acquisition capabilities, and average value calculation capabilities, and service capabilities including, but not limited to, data reporting capabilities, such as reporting modes, service calls, and service usage capabilities, and the like. The vehicle-end capability is packaged into a capability function, the complexity of the vehicle-end is shielded, a uniform function interface is provided for a developer, and the access threshold of the developer is reduced.
As an optional mode of the embodiment of the application, the capability Function and the target script Function are edited by using the script programming language nodjs, and the capability Function and the target script Function are functions of a dynamic execution script provided by the nodjs programming language.
And 104, executing the target script function according to the configuration file to complete data updating.
And automatically executing the target script function according to the capacity function, the running environment, the execution period and the like which are called when the target script file configured by the configuration file is executed, so as to execute the logic written by the developer.
It should be noted that, after the execution of the target script function is completed based on the configuration file, the execution result of the target script function is reported to the cloud server, and the cloud server determines whether the update of the data is successful based on the execution result.
The data updating method comprises the steps of obtaining a data updating instruction, wherein the data updating instruction comprises a data type identifier, searching a target script function corresponding to the data type identifier according to a preset mapping relation, and obtaining a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data called by the target script function when the target script function is executed, and the target script function is executed through the configuration file so as to finish data updating. Compared with the prior art, the method and the device have the advantages that the corresponding target script function can be searched according to the data type identification in the data updating instruction issued by the server, the execution of the target script function depends on the corresponding configuration file, the data updating can be completed after the target script function is executed through the configuration file, the data updating mode is used for thinning the software updating in the vehicle to the updating of the script function, so that part of software of the vehicle can be updated independently, the updating of part of software can be realized without the updating of the whole vehicle software, the updating or newly-added period of the part of software is obviously shortened, and in the updating process, only the part of software is updated or newly added, compared with the updating of the whole vehicle, the updating speed of the part of software of the vehicle is obviously improved, and further the user experience is optimized.
Further, in a possible implementation manner of this embodiment, executing the target script function according to the configuration file includes: and calling a function engine, executing the target script function according to the configuration file based on the function engine, and reporting function operation data in the target script function execution process by the function engine. The function engine is used as an executor of the target script function and is used for automatically executing the target script function according to the configuration file.
In the embodiment of the application, besides the function engine can execute the target script function, the data access, the general-purpose capability and the business capability of the vehicle are packaged into the corresponding capability function by the function engine before the target script function is executed, so that the capability function can be provided for the execution of the target script function.
In practical application, the script functions are divided into a periodic script function and an event script function, and different script function types are different in execution.
Example one, if the target script function is a periodic script function, executing the target script function according to the configuration file includes: responding to the scheduling of a preset container to the periodic script function, and determining whether a condition for executing the periodic script function is met or not by the preset container according to an execution strategy, an execution period and available residual resources of the preset container in the configuration file; if so, executing the periodic script function according to the execution strategy based on the function engine; and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Example two, if the target script function is an event script function, executing the target script function according to the configuration file includes: and responding to the scheduling of a preset container to the event script function, determining whether a condition for executing the event script function is met or not by the preset container according to an execution strategy in the configuration file and available residual resources of the preset container, and if so, executing the event script function based on the function engine according to the execution strategy.
The first example and the second example are both performed under the system shown in fig. 2, and the difference is that the periodic script function needs to be executed according to the execution period set in the configuration file.
To facilitate understanding of the data updating system, as shown in fig. 2, fig. 2 is a schematic diagram of a data updating system provided in an embodiment of the present application, when a target script function is executed, a function execution environment needs to be provided through a preset container, and container scheduling of the preset container is obeyed, when the preset container executes the container scheduling, according to an execution policy in the configuration file and available remaining resources of the preset container, the execution policy is used to instruct the target script function to call a corresponding vehicle capability function, and the capability function is obtained by encapsulating, by the function engine, a capability provided by a vehicle.
For example, assuming that the preset container includes 10 preset containers, wherein 10 preset containers are occupied, the available remaining resources of the preset container are 0, and therefore the target script function cannot be executed, and the scheduling of the target script container may be continued after the preset container is released.
An embodiment of the present application further provides a data updating method, where the method is applied to a server side, and as shown in fig. 3, the method includes:
step 201, configuring corresponding script functions according to different data type identifications, and configuring configuration files corresponding to the script functions, wherein the configuration files are used for indicating vehicle data needing to be called when the target script functions are executed.
When there is a data updating demand, dynamically adding and updating data, configuring a script function and a corresponding configuration file as required, where the configuration file is mainly used to indicate how the script function is executed, that is, configuring an execution rule of the script function on the premise that a capability function is established, and in practical applications, different script function execution rules are different, for example, flexible configuration and updating of a vehicle alarm rule, real-time update reporting that CAN configure a snapshot of a CAN signal and an SOA signal, fast writing and real-time updating of various service logics related to the signals, and the like.
And step 202, issuing the configured script function and the corresponding configuration file to a vehicle machine.
Referring to fig. 2, a manner of issuing a script function and a configuration file may be referred to, and details are not repeated herein in this embodiment of the present application.
Compared with the prior art, the method and the device have the advantages that the corresponding target script function can be searched according to the data type identification in the data updating instruction issued by the server, the execution of the target script function depends on the corresponding configuration file, the data updating is completed after the target script function is executed through the configuration file, the data updating mode is refined to the updating mode of the script function, the partial software of the vehicle can be updated independently, and the partial software can be updated without updating the software of the whole vehicle; in addition, when the vehicle part software has an updating demand, the target script function can be executed in real time, and the updating speed of the vehicle part software is improved.
Further, in a possible implementation manner of this embodiment, after the vehicle machine executes the script function, function operation data is sent to the server, the server receives the function operation data sent by the vehicle machine when the script function is executed, determines whether the function operation data has an abnormal operation, and reconfigures the script function having the abnormal operation and the configuration file corresponding to the script function, so as to complete updating of the vehicle data.
Corresponding to the data updating method, the invention also provides a data updating device. Since the device embodiment of the present invention corresponds to the method embodiment described above, details that are not disclosed in the device embodiment may refer to the method embodiment described above, and are not described again in the present invention.
Fig. 4 is a schematic structural diagram of a data updating apparatus provided in an embodiment of the present disclosure, and as shown in fig. 4, the apparatus is applied to a vehicle, and includes:
a first obtaining unit 31, configured to obtain a data update instruction, where the data update instruction includes a data category identifier;
the searching unit 32 is configured to search for a target script function corresponding to the data category identifier according to a preset mapping relationship;
a second obtaining unit 33, configured to obtain a configuration file corresponding to the target script function, where the configuration file is used to indicate vehicle data to be called when the target script function is executed;
and the execution unit 34 is configured to execute the target script function according to the configuration file to complete data updating.
The data updating device provided by the disclosure obtains a data updating instruction, the data updating instruction comprises a data type identifier, a target script function corresponding to the data type identifier is searched according to a preset mapping relation, and a configuration file corresponding to the target script function is obtained, wherein the configuration file is used for indicating vehicle data called by the target script function when the target script function is executed, and the target script function is executed through the configuration file to complete data updating. Compared with the prior art, the method and the device have the advantages that the corresponding target script function can be searched according to the data type identification in the data updating instruction issued by the server, the execution of the target script function depends on the corresponding configuration file, the data updating can be completed after the target script function is executed through the configuration file, the data updating mode is used for thinning the software updating in the vehicle to the updating of the script function, so that part of software of the vehicle can be updated independently, the updating of part of software can be realized without the updating of the whole vehicle software, the updating or newly-added period of the part of software is obviously shortened, and in the updating process, only the part of software is updated or newly added, compared with the updating of the whole vehicle, the updating speed of the part of software of the vehicle is obviously improved, and further the user experience is optimized.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, the executing unit 34 is further configured to:
calling a function engine, and executing the target script function according to the configuration file based on the function engine;
and reporting function operation data in the execution process of the target script function by the function engine.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, if the target script function is a periodic script function, the execution unit 34 is further configured to:
responding to the scheduling of a preset container to the periodic script function, and determining whether a condition for executing the periodic script function is met by the preset container according to an execution strategy, an execution period and available residual resources of the preset container in the configuration file;
if so, executing the periodic script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, if the target script function is an event script function, the executing unit 34 is further configured to:
responding to the scheduling of the event script function by a preset container, and determining whether the condition for executing the event script function is met or not by the preset container according to the execution strategy in the configuration file and the available residual resources of the preset container;
if so, executing the event script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, the apparatus further includes:
and the encapsulating unit 35 is used for encapsulating the data access, the general capability and the service capability of the vehicle into corresponding capability functions by the function engine before the executing unit executes the target script function according to the configuration file so as to provide the corresponding capability functions for use.
Further, in a possible implementation manner of this embodiment, as shown in fig. 5, the apparatus further includes:
and the receiving unit 36 is configured to receive the script function issued by the server and the configuration file corresponding to the script function before searching for the target script function corresponding to the data type identifier according to the preset mapping relationship.
Further, in a possible implementation manner of this embodiment, an embodiment of the present application further provides a data updating apparatus, as shown in fig. 6, where the apparatus is applied to a server, and includes:
a configuration unit 41, configured to configure a corresponding script function according to different data type identifiers, and configure a configuration file corresponding to the script function, where the configuration file is used to indicate vehicle data to be called when the target script function is executed;
and the issuing unit 42 is configured to issue the configured script function and the corresponding configuration file to the vehicle machine.
Further, in a possible implementation manner of this embodiment, as shown in fig. 7, the apparatus further includes:
a receiving unit 43, configured to receive function running data sent by the vehicle machine when the script function is executed;
a judging unit 44, configured to judge whether the function operation data has an operation abnormality;
the configuration unit 41 is configured to reconfigure the script function with the exception and the configuration file corresponding to the script function.
According to a fifth aspect of the present disclosure, there is provided a system for updating data, as shown in fig. 8, the system including: a vehicle 51 and a server 52, wherein:
the vehicle comprises a data updating device as described in fig. 4 or fig. 5;
the server comprises means for updating the data as described in fig. 6 or fig. 7.
Further, in a possible implementation manner of this embodiment, an embodiment of the present application provides a vehicle, where the vehicle includes the data updating apparatus described in any of the foregoing embodiments.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of the present embodiment, and the principle is the same, and the present embodiment is not limited thereto.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 9 illustrates a schematic block diagram of an example electronic device 600 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 9, the device 600 includes a computing unit 601 which can perform various appropriate actions and processes in accordance with a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 into a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The calculation unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I/O (Input/Output) interface 605 is also connected to the bus 604.
A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, a mouse, or the like; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 601 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing Unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (graphics Processing Unit), various dedicated AI (Artificial Intelligence) computing chips, various computing Units running machine learning model algorithms, a DSP (Digital Signal Processor), and any suitable Processor, controller, microcontroller, and the like. The calculation unit 601 executes the respective methods and processes described above, such as the update method of data. For example, in some embodiments, the method of updating data may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 600 via ROM 602 and/or communications unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the aforementioned updating method of data by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, FPGAs (Field Programmable Gate arrays), ASICs (Application-Specific Integrated circuits), ASSPs (Application Specific Standard products), SOCs (System On Chip, system On a Chip), CPLDs (Complex Programmable Logic devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only-Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), internet, and blockchain Network.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be noted that artificial intelligence is a subject for studying a computer to simulate some human thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware and software technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. A data updating method is applied to a vehicle end and comprises the following steps:
acquiring a data updating instruction, wherein the data updating instruction comprises a data type identifier;
searching a target script function corresponding to the data category identification according to a preset mapping relation;
acquiring a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data to be called when the target script function is executed;
and executing the target script function according to the configuration file to complete data updating.
2. The method of claim 1, wherein executing the object script function according to the configuration file comprises:
calling a function engine, and executing the target script function according to the configuration file based on the function engine;
and reporting the function operation data in the execution process of the target script function by the function engine.
3. The method of claim 2, wherein if the target script function is a periodic script function, executing the target script function according to the configuration file comprises:
responding to the scheduling of a preset container to the periodic script function, and determining whether a condition for executing the periodic script function is met by the preset container according to an execution strategy, an execution period and available residual resources of the preset container in the configuration file;
if so, executing the periodic script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
4. The method of claim 2, wherein if the target script function is an event script function, executing the target script function according to the configuration file comprises:
responding to the scheduling of the event script function by a preset container, and determining whether the condition for executing the event script function is met or not by the preset container according to the execution strategy in the configuration file and the available residual resources of the preset container;
if so, executing the event script function according to the execution strategy based on the function engine;
and the execution strategy instructs the target script function to call a corresponding vehicle capability function, and the capability function is obtained by packaging the capability provided by the function engine to the vehicle.
5. The method of claim 3, wherein prior to executing the target script function according to the configuration file, the method further comprises:
and encapsulating the data access, the general capability and the business capability of the vehicle into corresponding capability functions by the function engine so as to provide the corresponding capability functions for the target script functions to use.
6. The method according to any one of claims 1 to 4, wherein before searching for the target script function corresponding to the data category identifier according to a preset mapping relationship, the method further comprises:
and receiving the script function issued by the server and the corresponding configuration file.
7. A data updating method is applied to a server side and comprises the following steps:
configuring corresponding script functions according to different data type identifications and configuring configuration files corresponding to the script functions, wherein the configuration files are used for indicating vehicle data to be called when the target script functions are executed;
and issuing the configured script function and the corresponding configuration file to the vehicle machine.
8. The method of claim 7, further comprising:
receiving function running data sent by the vehicle machine when the script function is executed;
and judging whether the function operation data has abnormal operation or not, and reconfiguring the script function with the abnormal operation and the configuration file corresponding to the script function.
9. An apparatus for updating data, the method being provided in a vehicle, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a data updating instruction which comprises a data category identifier;
the searching unit is used for searching a target script function corresponding to the data category identification according to a preset mapping relation;
the second obtaining unit is used for obtaining a configuration file corresponding to the target script function, wherein the configuration file is used for indicating vehicle data to be called when the target script function is executed;
and the execution unit is used for executing the target script function according to the configuration file so as to complete data updating.
10. An apparatus for updating data, the method being provided in a server and comprising:
the configuration unit is used for configuring corresponding script functions according to different data type identifications and configuring configuration files corresponding to the script functions, wherein the configuration files are used for indicating vehicle data to be called when the target script functions are executed;
and the issuing unit is used for issuing the configured script function and the corresponding configuration file to the vehicle machine.
11. A system for updating data, the system comprising: vehicle and server, wherein:
the vehicle comprising means for updating the data of claim 9;
the server comprises means for updating data according to claim 10.
12. A vehicle characterized in that it comprises means for updating data according to claim 9.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6, or the method of any one of claims 7-8.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-6, or the method of any one of claims 7-8.
15. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-6, or the method according to any one of claims 7-8.
CN202210977180.3A 2022-08-15 2022-08-15 Data updating method, device and system, vehicle and electronic equipment Pending CN115454480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210977180.3A CN115454480A (en) 2022-08-15 2022-08-15 Data updating method, device and system, vehicle and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210977180.3A CN115454480A (en) 2022-08-15 2022-08-15 Data updating method, device and system, vehicle and electronic equipment

Publications (1)

Publication Number Publication Date
CN115454480A true CN115454480A (en) 2022-12-09

Family

ID=84299284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210977180.3A Pending CN115454480A (en) 2022-08-15 2022-08-15 Data updating method, device and system, vehicle and electronic equipment

Country Status (1)

Country Link
CN (1) CN115454480A (en)

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN112527281A (en) Operator upgrading method and device based on artificial intelligence, electronic equipment and medium
CN114090365A (en) Method, device and equipment for performing function test by using dynamic link library
CN111767149B (en) Scheduling method, device, equipment and storage equipment
CN113778644A (en) Task processing method, device, equipment and storage medium
CN113377614A (en) Generation method and device of call chain information, electronic equipment and storage medium
CN113032093A (en) Distributed computing method, device and platform
CN112925811A (en) Data processing method, device, equipment, storage medium and program product
CN111506393A (en) ARM-based virtualization device and use method thereof
CN113590217B (en) Function management method and device based on engine, electronic equipment and storage medium
CN115495151A (en) Rule engine migration method, device, equipment, storage medium and program product
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN115454480A (en) Data updating method, device and system, vehicle and electronic equipment
CN114386577A (en) Method, apparatus, and storage medium for executing deep learning model
CN112905270A (en) Workflow implementation method, device, platform, electronic equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN116521199B (en) Component upgrading method, device, equipment and storage medium
CN113900734B (en) Application program file configuration method, device, equipment and storage medium
CN115065574B (en) Vehicle controller awakening method and device, electronic equipment and automatic driving vehicle
CN113656268B (en) Performance test method and device for business service, electronic equipment and storage medium
CN116756061A (en) External equipment adaptation method, device, equipment and storage medium
CN115469887A (en) Method and device for issuing cloud native application, electronic equipment and storage medium
CN117196927A (en) Image processing method, device, equipment and medium
CN113626051A (en) Byte code updating method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination