Vehicle-mounted software upgrading method, device, equipment, vehicle, medium and system

By deploying software development toolkits on the on-board terminal and using software upgrade files in script format, the problem of vehicle static upgrades in the existing technology affecting use is solved, and lightweight and flexible software upgrades are achieved, shortening the upgrade cycle and improving the Upgrade efficiency and stability.

CN118567671APending Publication Date: 2024-08-30BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310211802.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing on-board ECU software upgrade method requires the vehicle to be stationary, affecting the use of the vehicle, and relying on OTA upgrades, resulting in inflexible upgrades and a long upgrade cycle.

Method used

Using lightweight running scripts for software upgrades, the software development toolkit for deploying service architecture code in the on-board terminals is received and deployed software upgrade files in script format to achieve software upgrades, avoiding OTA's dependence and improving the flexibility of upgrades Sex and speed.

Benefits of technology

It realizes software upgrades that users are unaware of, shortens the upgrade cycle, improves the flexible deployment capabilities of vehicle functions, and ensures the stability and efficiency of the software upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567671A
    Figure CN118567671A
Patent Text Reader

Abstract

The invention relates to a vehicle-mounted software upgrading method, device, equipment, storage medium and system, the method is applied to a vehicle-mounted terminal, and the method comprises the following steps: deploying a software development kit corresponding to a service architecture code in the vehicle-mounted terminal; a software upgrading file is received, and the software upgrading file is in a script format; and deploying the software upgrading file in an environment in which a software development kit runs so as to carry out software upgrading. According to the technical scheme provided by the invention, after the software development kit corresponding to the service architecture code is deployed in the vehicle-mounted terminal, the received software upgrading file is deployed in the environment in which the software development kit runs, so that software upgrading is carried out, the software upgrading is carried out by adopting a more lightweight running script, an executable file is replaced, and the software upgrading efficiency is improved. The whole process does not depend on OTA, flexible deployment of functions is achieved, and the upgrading period is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent vehicle technology, and in particular to a vehicle-mounted software upgrade method, device, equipment, vehicle, medium and system. Background Art

[0002] With the development of vehicle terminal technology, the functions of vehicle terminals are becoming more and more complete. As the core component of new energy vehicles, the ECU (Electronic Control Unit) controller is responsible for vehicle status monitoring and safety. The reliability and stability of the ECU controller are important parameter indicators when new energy vehicles are working. The existing ECU software upgrade method mainly relies on OTA upgrade.

[0003] OTA upgrade means that when the vehicle is stationary, the software upgrade package is written as an executable file into the vehicle-side cache, and the executable file in the cache is written into the FLASH area using the software upgrade control program pre-deployed on the vehicle. After the ECU is restarted and powered on, the executable file in the FLASH area is read to achieve the software upgrade.

[0004] The existing OTA upgrade method requires the entire vehicle to be stationary while the executable file is written to the FLASH area, does not allow the use of in-vehicle functions, and the software can only be upgraded after the ECU is powered off and restarted. Summary of the invention

[0005] The present disclosure provides a vehicle-mounted software upgrade method, device, equipment, vehicle, medium and system, which adopts a more lightweight running script to perform software upgrade. During the upgrade process, the user is unaware and the vehicle use is not affected.

[0006] In a first aspect, an embodiment of the present disclosure provides a vehicle software upgrade method, the method being applied to a vehicle terminal, the method comprising:

[0007] Deploy a software development kit corresponding to the service architecture code in the vehicle terminal;

[0008] Receiving a software upgrade file, wherein the software upgrade file is in a script format;

[0009] The software upgrade file is deployed in the environment where the software development kit is running to perform software upgrade.

[0010] In one possible implementation, the software development kit includes at least one or more application programming API interfaces; deploying the software upgrade file in an environment running the software development kit includes: obtaining an interface file included in the software upgrade file; calling an API interface corresponding to the interface file; and implementing data transmission between the software upgrade file and the software development kit based on the called API interface.

[0011] In a possible implementation manner, before receiving the software upgrade file, the method further includes:

[0012] Receive software update messages sent by the cloud server;

[0013] In response to the operation on the software update message, generating a software upgrade request;

[0014] The software upgrade request is sent to the cloud server, so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

[0015] In a second aspect, an embodiment of the present disclosure provides a method for upgrading vehicle software, the method being applied to a cloud server, the method comprising:

[0016] Arrange vehicle functional scenarios to obtain functional scenario information;

[0017] Automatically generate a script for the functional scenario information to obtain a software upgrade file;

[0018] The software upgrade file is sent to the vehicle-mounted terminal, so that the vehicle-mounted terminal deploys the software upgrade file in an environment where a software development kit is running to perform software upgrade.

[0019] In a possible implementation, the software development kit includes at least one or more application programming API interfaces;

[0020] The arrangement of vehicle function scenarios includes:

[0021] Based on the API interface and the vehicle status information that can be called by each API interface, the vehicle function scenarios are arranged.

[0022] In a possible implementation manner, sending the software upgrade file to the vehicle-mounted terminal includes:

[0023] Sending a software update message to the vehicle-mounted terminal, wherein the software update message is used to indicate that there is a software upgrade file in the cloud server of the vehicle-mounted terminal;

[0024] After receiving the software upgrade request sent by the vehicle-mounted terminal, the software upgrade file is sent to the vehicle-mounted terminal.

[0025] In a possible implementation manner, sending a software update message to the vehicle-mounted terminal further includes:

[0026] Acquire multiple vehicle information, wherein the vehicle information includes a vehicle model and interface information, wherein the interface information includes interface information included in a software development kit deployed in a vehicle terminal corresponding to the vehicle model;

[0027] When the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information, a software update message is sent to the vehicle terminal with the consistent interface information. In one possible implementation, the software development kit includes at least one or more application programming API interfaces; deploying the software upgrade file in an environment running a service architecture code includes: obtaining an interface file included in the software upgrade file; calling the API interface corresponding to the interface file; and realizing data transmission between the software upgrade file and the software development kit based on the called API interface.

[0028] In a possible implementation manner, before receiving the software upgrade file, the method further includes:

[0029] Receiving a software update message sent by the cloud server;

[0030] In response to the operation on the software update message, generating a software upgrade request;

[0031] The software upgrade request is sent to the cloud server, so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

[0032] In a third aspect, an embodiment of the present disclosure provides a vehicle-mounted software upgrade device, the device being configured in a vehicle-mounted terminal, the method comprising:

[0033] A toolkit deployment module, used to deploy a software development toolkit corresponding to the service architecture code in the vehicle terminal;

[0034] An upgrade file receiving module, used for receiving a software upgrade file, wherein the software upgrade file is in a script format;

[0035] The upgrade file deployment module is used to deploy the software upgrade file in the environment where the software development kit is running to perform software upgrade.

[0036] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; the upgrade file deployment module includes: an interface file acquisition unit, used to acquire the interface file included in the software upgrade file; an API interface calling unit, used to call the API interface corresponding to the interface file; a data transmission unit, used to realize the data transmission between the software upgrade file and the software development kit based on the called API interface.

[0037] In one possible embodiment, the device also includes: an update message receiving module, which is used to receive a software update message sent by the cloud server before receiving the software upgrade file; an upgrade request generating module, which is used to generate a software upgrade request in response to an operation on the software update message; and an upgrade request sending module, which is used to send the software upgrade request to the cloud server so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

[0038] In a fourth aspect, an embodiment of the present disclosure provides a vehicle-mounted software upgrade device, the device being configured in a cloud server, and the method comprising:

[0039] A scene information determination module is used to arrange vehicle functional scenes and obtain functional scene information;

[0040] An upgrade file determination module is used to automatically generate a script for the functional scenario information to obtain a software upgrade file;

[0041] The upgrade file sending module is used to send the software upgrade file to the vehicle terminal, so that the vehicle terminal deploys the software upgrade file in the environment running the software development kit to perform software upgrade.

[0042] In one possible implementation, the software development kit includes at least one or more application programming API interfaces; a scenario information determination module, specifically used to arrange vehicle function scenarios based on the API interfaces and vehicle status information that can be called by each API interface.

[0043] In one possible implementation, the upgrade file sending module includes: an update message sending unit, used to send a software update message to the vehicle-mounted terminal, wherein the software update message is used to indicate that there is a software upgrade file in the cloud server of the vehicle-mounted terminal; an upgrade file sending unit, used to send the software upgrade file to the vehicle-mounted terminal after receiving the software upgrade request sent by the vehicle-mounted terminal.

[0044] In one possible implementation, the upgrade file sending module also includes: a vehicle information acquisition unit, used to acquire multiple vehicle information before sending the software update message to the vehicle terminal, wherein the vehicle information includes a vehicle model and interface information, wherein the interface information includes the interface information included in the software development kit deployed in the vehicle terminal corresponding to the vehicle model; an update message sending unit, specifically used to send a software update message to the vehicle terminal with consistent interface information when the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information.

[0045] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:

[0046] Memory;

[0047] Processor; and

[0048] Computer programs;

[0049] The computer program is stored in the memory and is configured to be executed by the processor to implement the vehicle software upgrade method as described in the first aspect or the vehicle software upgrade method as described in the second aspect.

[0050] In the sixth aspect, an embodiment of the present disclosure provides a vehicle-mounted software upgrade system, the system comprising a cloud server and a vehicle-mounted terminal, the cloud server being communicatively connected to the vehicle-mounted terminal, the cloud server being used to execute the vehicle-mounted software upgrade method as described in any one of the first aspect, and the vehicle-mounted terminal being used to execute the vehicle-mounted software upgrade method as described in any one of the second aspect.

[0051] In the seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the vehicle-mounted software upgrade method as described in the first aspect or the software upgrade method as described in the second aspect.

[0052] In an eighth aspect, an embodiment of the present disclosure provides a vehicle, which is used to execute the vehicle software upgrade method as described in the first aspect above.

[0053] The vehicle software upgrade method, device, equipment and storage medium provided by the embodiments of the present disclosure include: deploying a software development kit corresponding to the service architecture code in the vehicle terminal; receiving a software upgrade file, wherein the software upgrade file is in a script format; deploying the software upgrade file in an environment where the software development kit is running to perform a software upgrade. The technical solution provided by the present disclosure deploys the software development kit corresponding to the service architecture code in the vehicle terminal, and then deploys the received software upgrade file in an environment where the software development kit is running to perform a software upgrade. A more lightweight running script is used to perform software upgrades, replacing executable files. The entire process does not rely on OTA, thereby achieving flexible deployment of functions and shortening the upgrade cycle. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0056] Figure 1 A flowchart of a vehicle software upgrade method provided by an embodiment of the present disclosure;

[0057] Figure 2 A flowchart of a vehicle software upgrade method provided by an embodiment of the present disclosure;

[0058] Figure 3 A schematic diagram of the structure of a vehicle software upgrade device provided by an embodiment of the present disclosure;

[0059] Figure 4 A schematic diagram of the structure of a vehicle software upgrade device provided by an embodiment of the present disclosure;

[0060] Figure 5 An interactive flow chart of a vehicle software upgrade method provided by an embodiment of the present disclosure;

[0061] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0062] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0063] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0064] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0065] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0066] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0067] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0068] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.

[0069] The vehicle software upgrade method is described in detail below with reference to specific embodiments and drawings.

[0070] Figure 1 This is a flow chart of a vehicle software upgrade method in an embodiment of the present disclosure. This embodiment is applicable to the situation of upgrading the software in the vehicle ECU. The method can be executed by a vehicle software upgrade device. The vehicle software upgrade device can be implemented in software and / or hardware. The vehicle software upgrade device method is applied to a vehicle terminal, and the vehicle terminal is communicated with a cloud server.

[0071] The cloud server and the vehicle-mounted terminal are connected in communication via a network, and the network may include but is not limited to a local area network, a wide area network, a public network, a private network, etc., or a combination of several of them. The network may be a computer network such as the Internet and / or various telecommunication networks (such as 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited to this.

[0072] Specifically, Figure 1 As shown, the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S101-S103.

[0073] S101. Deploy a software development kit corresponding to the service architecture code in the vehicle-mounted terminal.

[0074] Among them, the Software Development Kit (SDK) is a collection of development tools used to create application software for a specific software package, software framework, hardware platform, operating system, etc. It facilitates the creation of applications through compilers, debuggers, software frameworks, etc. It can simply provide some files of the application program interface API for a certain programming language. SDK also often includes sample code, supporting technical notes or other supporting documents to clarify doubts for basic reference materials.

[0075] In an embodiment of the present disclosure, a software framework (ie, service architecture code) corresponding to the vehicle service architecture is deployed in the vehicle terminal, and the software framework corresponding to the vehicle service architecture includes a plurality of reserved API interfaces.

[0076] S102, receiving a software upgrade file, wherein the software upgrade file is in a script format;

[0077] In an embodiment of the present disclosure, the cloud server sends a software upgrade file to the vehicle terminal, and the vehicle terminal receives the software upgrade file through a network connection with the cloud server.

[0078] In one embodiment of the present disclosure, a communication connection is established between the vehicle-mounted terminal and the cloud server, and messages and data can be transmitted between the vehicle-mounted terminal and the cloud server through the communication connection.

[0079] In one embodiment of the present disclosure, before receiving the software upgrade file, it also includes: receiving a software update message sent by a cloud server; generating a software upgrade request in response to an operation on the software update message; and sending the software upgrade request to the cloud server so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

[0080] In one embodiment of the present disclosure, after the designer generates the software upgrade file in the cloud server, the cloud server sends a software update message to the vehicle-mounted terminal, wherein the software update message can be understood as a prompt message for indicating to the vehicle-mounted terminal whether there is an updateable file in the cloud and whether to update the vehicle-mounted software program.

[0081] In one embodiment of the present disclosure, after the vehicle terminal receives the software update message, if the owner sets the software automatic upgrade flag in the vehicle terminal, the vehicle terminal automatically generates and receives a software upgrade request, and then sends the software upgrade request to the cloud server.

[0082] In one embodiment of the present disclosure, if the car owner has not set the software automatic upgrade flag in the vehicle terminal, the vehicle terminal will display the software update message to prompt the car owner that new software can be updated. After the vehicle terminal receives the confirmation upgrade operation input by the car owner, it generates and receives a software upgrade request, and then sends the software upgrade request to the cloud server.

[0083] The software update message may be displayed on a display screen of the vehicle terminal or on a third-party smart terminal that is in communication with the vehicle terminal. The upgrade confirmation operation may be performed by the vehicle owner in the vehicle terminal or in a third-party smart terminal of the staff. After receiving the upgrade confirmation operation input by the vehicle owner, the third-party smart terminal generates a software upgrade request and sends it to the vehicle terminal. The third-party smart terminal includes a smart phone, a computer, a tablet computer, etc. The communication connection may be any one of Bluetooth, WIFI, and a mobile cellular network or a combination of multiple ones.

[0084] S103: deploy the software upgrade file in an environment where a software development kit is running to perform software upgrade.

[0085] In the embodiment of the present disclosure, the software upgrade file includes the API interface that needs to be called for the software upgrade. The software upgrade file is deployed in an environment where a software development kit is running, and based on the API interface that needs to be called, the API interface reserved in the software development kit is called to achieve data transmission, that is, to achieve software upgrade.

[0086] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; deploying the software upgrade file in an environment running the service architecture code includes: obtaining the interface file included in the software upgrade file; calling the API interface corresponding to the interface file; and realizing data transmission between the software upgrade file and the software development kit based on the called API interface.

[0087] In the disclosed embodiment, the interface file in the software upgrade file is bound to the API interface pre-set in the software development kit, so that during the software operation, the information of the interface can be called through the interface call instruction. The signal function in the software upgrade file is bound to the existing status signal in the corresponding vehicle terminal, so that during the software operation, the status signal can be called through the signal call instruction.

[0088] In the embodiments of the present disclosure, the deployment method of the software upgrade file is not specifically limited. Existing script deployment software can be used for deployment, or other script deployment software can be developed to implement the deployment of the software upgrade file to ensure the normal use of the functions after the software upgrade.

[0089] The in-vehicle software upgrade method provided by the embodiment of the present disclosure comprises: deploying a software development kit corresponding to the service architecture code in the in-vehicle terminal; receiving a software upgrade file, wherein the software upgrade file is in a script format; and deploying the software upgrade file in an environment where the software development kit is running to perform a software upgrade. The technical solution provided by the present disclosure deploys the received software upgrade file in an environment where the software development kit is running to perform a software upgrade after the software development kit corresponding to the service architecture code is deployed in the in-vehicle terminal. A more lightweight running script is used to perform the software upgrade, replacing the executable file. The entire process does not rely on OTA, thus achieving flexible deployment of functions and shortening the upgrade cycle.

[0090] Figure 2 This is a flow chart of a vehicle software upgrade method in an embodiment of the present disclosure. This embodiment is applicable to the situation of upgrading the software in the vehicle ECU. The method can be executed by a vehicle software upgrade device. The vehicle software upgrade device can be implemented in software and / or hardware. The vehicle software upgrade device method is applied to a cloud server, and the cloud server is communicatively connected to the vehicle terminal.

[0091] The cloud server and the vehicle-mounted terminal are connected in communication via a network, and the network may include but is not limited to a local area network, a wide area network, a public network, a private network, etc., or a combination of several of them. The network may be a computer network such as the Internet and / or various telecommunication networks (such as 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited to this.

[0092] Specifically, Figure 2 As shown, the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S201-S203.

[0093] S201. Arrange vehicle functional scenarios to obtain functional scenario information.

[0094] The vehicle functional scenarios can be understood as the different functions and tasks that the vehicle needs to perform in different usage scenarios. For example: vehicle external unlocking function, wiper control function, seat automatic adjustment function, audio control function, air conditioning control function, etc. The arrangement is mainly to describe the interaction between existing components or interfaces of the vehicle.

[0095] In the disclosed embodiment, the arrangement of vehicle function scenarios may be a process of describing or defining the interaction behaviors between existing components or interfaces of the vehicle, and the arrangement of vehicle function scenarios is to achieve a certain vehicle function. Among them, the function scenario information refers to the description language of the interaction behaviors between existing components or interfaces of the vehicle.

[0096] In one embodiment of the present disclosure, third-party functional scenario arrangement software is used for arrangement, and after the functional scenario information is obtained, the functional scenario information is uploaded to a cloud server.

[0097] In another embodiment of the present disclosure, the cloud server includes a cloud scenario orchestration platform, and designers can orchestrate vehicle functional scenarios through the cloud scenario orchestration platform to obtain functional scenario information.

[0098] It should be noted that the method of arranging vehicle functional scenes is not limited in the embodiments of the present disclosure, and any method that can realize the arrangement of functional scenes is within the protection scope of the embodiments of the present disclosure.

[0099] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; the arrangement of vehicle function scenarios includes: arranging vehicle function scenarios based on the API interfaces and vehicle status information that can be called by each API interface.

[0100] In the disclosed embodiment, the vehicle-side pre-set API interface refers to the relevant parameters of the interface that have been set in the vehicle before leaving the factory or in the previous software upgrade process, and the existing status signal refers to the existing status information of the vehicle side. Specifically, the interface parameters may include hard-line interface parameters, storage interface parameters, communication interface parameters, fault interface parameters, etc.

[0101] The hardwire interface parameters include the application layer (ASW, Application Software) hardwire interface name, the basic software layer (BSW, Basic Software Layer) interface name, data type (including data conversion), and scheduling mode. The hardwire interface parameters mainly implement the call configuration of the hardwire interface.

[0102] Among them, the storage interface parameters can be NVM (Non-Volatile Memory) storage interface parameters, which include ASW interface name, NVM interface name, data type (including data conversion), and NVM storage allocation information. The storage interface data mainly realizes the storage and reading of non-volatile data. Optionally, the NVM storage allocation information refers to the corresponding storage address in the non-volatile memory.

[0103] Among them, the communication interface parameters include ASW interface name, communication interface name, data type (including data conversion), and package parsing configuration information. The communication interface data mainly implements the communication configuration of the CAN bus. CAN is a standard bus protocol widely used in the field of automotive control. Optionally, the package parsing configuration information refers to the data storage area of ​​each frame in the CAN network communication.

[0104] Among them, the fault interface parameters include the ASW interface name, fault interface name, fault response and fault level, and fault confirmation method. The fault interface data mainly implements the response to vehicle faults. For example, a battery voltage over-high fault, a CAN node communication timeout fault, a transmission fault, etc. occur in the vehicle. Optionally, the fault interface name refers to a calling interface for setting and clearing each DTC (Data Trouble Code) fault, which is provided by BSW. The fault response configuration refers to the software action executed after a fault occurs. The fault level refers to the level of the fault response. The higher the fault level, the higher the priority of the execution action. Fault confirmation methods are divided into direct confirmation and debounce (configurable) confirmation.

[0105] In one embodiment of the present disclosure, the existing status signals include: a battery signal in the vehicle, an engine signal, an accelerator pedal signal, a brake pedal signal, a vehicle ignition signal, and the like.

[0106] In the disclosed embodiment, functional scenarios are arranged according to the pre-set API interfaces of the vehicle and the vehicle status information that can be called by each API interface to obtain functional scenario information. It should be noted that multiple interface parameters and existing status information can be pre-set in the vehicle, and it is not necessary to use all preset interface parameters and existing status signals in a certain or certain functional scenario arrangement process. It is only necessary to select the required interface parameters and existing status signals for arrangement according to the functional scenario requirements.

[0107] S202: Automatically generate a script for the functional scenario information to obtain a software upgrade file.

[0108] In one embodiment of the present disclosure, script generation software is used to automatically generate scripts for the functional scenario information to obtain a software upgrade file. The software upgrade file includes multiple interface functions and interface call instructions. The software upgrade file also includes multiple signal functions and signal call instructions.

[0109] S203: Send the software upgrade file to the vehicle-mounted terminal, so that the vehicle-mounted terminal deploys the software upgrade file in an environment where a software development kit is running to perform software upgrade.

[0110] In one embodiment of the present disclosure, after the cloud server generates the software upgrade file, it sends the software upgrade file to the vehicle terminal, deploys the software upgrade file in the environment running the software development kit, and implements the software upgrade of the vehicle terminal.

[0111] In one embodiment of the present disclosure, sending the software upgrade file to the vehicle-mounted terminal includes: sending a software update message to the vehicle-mounted terminal, wherein the software update message is used to indicate that there is a software upgrade file in the cloud server of the vehicle-mounted terminal; after receiving the software upgrade request sent by the vehicle-mounted terminal, sending the software upgrade file to the vehicle-mounted terminal.

[0112] In one embodiment of the present disclosure, before sending the software update message to the vehicle-mounted terminal, it also includes: acquiring multiple vehicle information, wherein the vehicle information package includes a vehicle model and interface information, wherein the interface information includes the interface information included in the software development kit deployed in the vehicle-mounted terminal corresponding to the vehicle model; when the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information, sending the software update message to the vehicle-mounted terminal with consistent interface information.

[0113] In the disclosed embodiment, since the functional scenario information is arranged according to the pre-set interface parameters and existing status signals, for some vehicle terminals that do not set interface parameters or only set a part of interface parameters, or the existing status signals of the vehicle terminals do not include or only include a part of the existing status signals used for functional scenario arrangement, even if the software upgrade file is sent to the vehicle terminal, the vehicle terminal cannot implement the software upgrade. For example: the wiper control function needs to detect the real-time rainfall, but some vehicle terminals are not equipped with real-time rainfall detection sensors, so the real-time rainfall cannot be detected, which leads to the wiper control function cannot be used normally. At this time, it does not make much sense to send the software upgrade file of the wiper control function to the vehicle terminal.

[0114] Therefore, in the embodiment of the present disclosure, the vehicle information in the vehicle database is obtained in advance, and the vehicle-mounted terminal that meets the requirements is screened out according to the vehicle information. The vehicle information package includes the vehicle model and interface information.

[0115] In one embodiment of the present disclosure, after the cloud server generates the software upgrade file, it obtains the software version information in the vehicle terminal. If the software version information is consistent with the version information corresponding to the above software upgrade file, it is determined that the software of the vehicle terminal does not need to be upgraded, and the software update message is not sent at this time. If the software version information is inconsistent with the version information corresponding to the above software upgrade file, it is determined that the software of the vehicle terminal needs to be upgraded, and a software update message is sent to the vehicle terminal. The software update message is used to indicate whether the owner of the vehicle performs the software upgrade. Receiving the software upgrade request sent by the vehicle terminal indicates that the owner confirms to perform the software upgrade, and the cloud server sends the software upgrade file to the vehicle terminal.

[0116] The vehicle software upgrade method provided by the embodiment of the present disclosure includes: the cloud server arranges the vehicle function scenarios to obtain the function scenario information; the function scenario information is automatically scripted to obtain the software upgrade file; the software upgrade file is sent to the vehicle terminal, and the vehicle terminal deploys the software running script on the vehicle terminal to perform software upgrade. The technical solution provided by the present disclosure performs software upgrade through the software upgrade file sent by the cloud server to the vehicle terminal, and adopts a more lightweight running script to perform software upgrade, replacing the executable file. The whole process does not rely on OTA, realizes flexible deployment of functions, and shortens the upgrade cycle.

[0117] Figure 3 This is a structural diagram of a vehicle-mounted software upgrade device in an embodiment of the present disclosure. This embodiment is applicable to the situation where the software in the vehicle-mounted ECU is upgraded. The vehicle-mounted software upgrade device can be implemented in software and / or hardware. The vehicle-mounted software upgrade device is configured in a vehicle-mounted terminal, and the cloud server is communicatively connected with the vehicle-mounted terminal.

[0118] Specifically, Figure 3 As shown, the vehicle-mounted software upgrade device provided by the embodiment of the present disclosure mainly includes a software toolkit deployment module 31 , an upgrade file receiving module 32 and an upgrade file deployment module 33 .

[0119] Among them, the toolkit deployment module 31 is used to deploy the software development toolkit corresponding to the service architecture code in the vehicle terminal; the upgrade file receiving module 32 is used to receive the software upgrade file, wherein the software upgrade file is in script format; the upgrade file deployment module 33 is used to deploy the software upgrade file in the environment running the software development toolkit to perform software upgrade.

[0120] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; the upgrade file deployment module includes: an interface file acquisition unit, used to acquire the interface file included in the software upgrade file; an API interface calling unit, used to call the API interface corresponding to the interface file; a data transmission unit, used to realize the data transmission between the software upgrade file and the software development kit based on the called API interface.

[0121] In one possible embodiment, the device also includes: an update message receiving module, which is used to receive a software update message sent by the cloud server before receiving the software upgrade file; an upgrade request generating module, which is used to generate a software upgrade request in response to an operation on the software update message; and an upgrade request sending module, which is used to send the software upgrade request to the cloud server so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

[0122] Figure 3 The vehicle-mounted software upgrade device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0123] Figure 4 This is a structural diagram of a vehicle-mounted software upgrade device in an embodiment of the present disclosure. This embodiment is applicable to the situation where the software in the vehicle-mounted ECU is upgraded. The vehicle-mounted software upgrade device can be implemented in software and / or hardware. The vehicle-mounted software upgrade device is configured on a cloud server, and the cloud server is communicatively connected with the vehicle-mounted terminal.

[0124] Specifically, Figure 4 As shown, the vehicle-mounted software upgrade device 40 provided in the embodiment of the present disclosure mainly includes a function scenario information determination module 41, an upgrade file determination module 42 and an upgrade file sending module 43.

[0125] Among them, the scene information determination module 41 is used to arrange the vehicle function scenes and obtain the function scene information; the upgrade file determination module 42 is used to automatically generate scripts for the function scene information and obtain software upgrade files; the upgrade file sending module 43 is used to send the software upgrade file to the vehicle terminal, so that the vehicle terminal deploys the software upgrade file in the environment running the software development kit to perform software upgrade.

[0126] In one possible implementation, the software development kit includes at least one or more application programming API interfaces; a scenario information determination module, specifically used to arrange vehicle function scenarios based on the API interfaces and vehicle status information that can be called by each API interface.

[0127] In one possible implementation, the upgrade file sending module includes: an update message sending unit, used to send a software update message to the vehicle-mounted terminal, wherein the software update message is used to indicate that there is a software upgrade file in the cloud server of the vehicle-mounted terminal; an upgrade file sending unit, used to send the software upgrade file to the vehicle-mounted terminal after receiving the software upgrade request sent by the vehicle-mounted terminal.

[0128] In one possible implementation, the upgrade file sending module also includes: a vehicle information acquisition unit, used to acquire multiple vehicle information before sending the software update message to the vehicle terminal, wherein the vehicle information includes a vehicle model and interface information, wherein the interface information includes the interface information included in the software development kit deployed in the vehicle terminal corresponding to the vehicle model; an update message sending unit, specifically used to send a software update message to the vehicle terminal with consistent interface information when the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information.

[0129] Figure 4 The vehicle-mounted software upgrade device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.

[0130] Figure 5 The interactive flow chart of a vehicle software upgrade method provided by the embodiment of the present disclosure is applicable to the case where the software in the vehicle ECU is upgraded, such as Figure 5 As shown, the vehicle-mounted software upgrade system includes a cloud server 51 and a vehicle-mounted terminal 52. The cloud server 51 is communicatively connected with the vehicle-mounted terminal 52. The cloud server 51 is used to execute the vehicle-mounted software upgrade method as described in any one of the above-mentioned embodiments one, and the vehicle-mounted terminal 52 is used to execute the vehicle-mounted software upgrade method as described in any one of the above-mentioned embodiments two.

[0131] Specifically, Figure 5 As shown, the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes the following steps:

[0132] S501, the cloud server 51 arranges the vehicle function scenarios and obtains the function scenario information; S502, the cloud server 51 generates an automatic script for the function scenario information and obtains the software upgrade file; S503, the cloud server 51 obtains the vehicle information corresponding to the multiple vehicle terminals; S504, the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information, and a software update message is sent. S505, the cloud server 51 sends a software update message to the vehicle terminal 52. S506, the vehicle terminal 52 generates a software upgrade request in response to the operation of the software update message, and S507, the vehicle terminal 52 sends the software upgrade request to the cloud server 51. S508, the cloud server 51 sends the software upgrade file to the vehicle terminal. S509, the software upgrade file is deployed in the environment running the software development kit to perform the software upgrade.

[0133] Figure 5 The vehicle-mounted software upgrade system of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effects are similar and will not be repeated here.

[0134] Figure 6 Schematic diagram of the structure of an electronic device in the embodiment of the present disclosure. Figure 6 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The electronic device 600 in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), wearable terminal devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure. Optionally, the electronic device includes a cloud server or a vehicle-mounted terminal as provided in the above embodiments.

[0135] like Figure 6As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603 to implement the vehicle software upgrade method of the embodiment described in the present disclosure. In RAM 603, various programs and data required for the operation of the terminal device 600 are also stored. The processing device 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0136] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the terminal device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The terminal device 600 is shown to have various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart, thereby implementing the vehicle software upgrade method as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

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

[0139] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0140] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0141] The computer-readable medium carries one or more programs. When the one or more programs are executed by the terminal device, the terminal device implements the method described in any one of the embodiments.

[0142] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

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

[0144] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0145] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0146] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0147] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0148] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0149] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A vehicle software upgrade method, characterized in that: The method is applied to a vehicle-mounted terminal, and the method comprises: Deploy a software development kit corresponding to the service architecture code in the vehicle terminal; Receiving a software upgrade file, wherein the software upgrade file is in a script format; The software upgrade file is deployed in the environment where the software development kit is running to perform software upgrade.

2. The method according to claim 1, characterized in that The software development kit includes at least one or more application programming API interfaces; Deploying the software upgrade file in an environment where the software development kit is running includes: Obtaining the interface file included in the software upgrade file; Call the API interface corresponding to the interface file; The data transmission between the software upgrade file and the software development kit is realized based on the called API interface.

3. The method according to claim 1, characterized in that Before receiving the software upgrade file, the method further includes: Receive software update messages sent by the cloud server; In response to the operation on the software update message, generating a software upgrade request; The software upgrade request is sent to the cloud server, so that the cloud server sends the software upgrade file corresponding to the software upgrade request.

4. A software upgrade method, characterized in that: The method is applied to a cloud server, and the method includes: Arrange vehicle functional scenarios to obtain functional scenario information; Automatically generate a script for the functional scenario information to obtain a software upgrade file; The software upgrade file is sent to the vehicle-mounted terminal, so that the vehicle-mounted terminal deploys the software upgrade file in an environment where a software development kit is running to perform software upgrade.

5. The method according to claim 4, characterized in that The software development kit includes at least one or more application programming API interfaces; The arrangement of vehicle function scenarios includes: Based on the API interface and the vehicle status information that can be called by each API interface, the vehicle function scenarios are arranged.

6. The method according to claim 4, characterized in that The sending of the software upgrade file to the vehicle-mounted terminal includes: Sending a software update message to the vehicle-mounted terminal, wherein the software update message is used to indicate that there is a software upgrade file in the cloud server of the vehicle-mounted terminal; After receiving the software upgrade request sent by the vehicle-mounted terminal, the software upgrade file is sent to the vehicle-mounted terminal.

7. The method according to claim 6, characterized in that Before sending the software update message to the vehicle-mounted terminal, the method further includes: Acquire multiple vehicle information, wherein the vehicle information includes a vehicle model and interface information, wherein the interface information includes interface information included in a software development kit deployed in a vehicle terminal corresponding to the vehicle model; When the interface information corresponding to the API interface used in the software upgrade file is consistent with the interface information included in the vehicle information, a software update message is sent to the vehicle-mounted terminal with the consistent interface information.

8. A vehicle software upgrade device, characterized in that: The device is configured in a vehicle-mounted terminal, and the method comprises: A toolkit deployment module, used to deploy a software development toolkit corresponding to the service architecture code in the vehicle terminal; An upgrade file receiving module, used for receiving a software upgrade file, wherein the software upgrade file is in a script format; The upgrade file deployment module is used to deploy the software upgrade file in the environment where the software development kit is running to perform software upgrade.

9. A vehicle software upgrade device, characterized in that: The device is configured in a cloud server, and the method includes: A scene information determination module is used to arrange vehicle functional scenes and obtain functional scene information; An upgrade file determination module is used to automatically generate a script for the functional scenario information to obtain a software upgrade file; The upgrade file sending module is used to send the software upgrade file to the vehicle terminal, so that the vehicle terminal deploys the software upgrade file in the environment running the software development kit to perform software upgrade.

10. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 7.

12. A vehicle, characterized in that: The vehicle is used to perform the method according to any one of claims 1-3.

13. A vehicle software upgrade system, characterized in that: The system includes a cloud server and a vehicle, the cloud server is communicatively connected to a vehicle terminal, the vehicle is the vehicle as described in claim 11, and the cloud server is used to execute the vehicle software upgrade method as described in any one of claims 4-7.