In-vehicle software upgrade method and apparatus, device, vehicle, medium, and system
By deploying the software development toolkit of the service architecture code in the vehicle terminal, and using lightweight running scripts to upgrade the vehicle ECU software, it solves the problem of OTA upgrade affecting vehicle use in the existing technology, and realizes an imperceptible and fast software upgrade process. .
Patent Information
- Application Number
- PCT/CN2024/079085
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-06
AI Technical Summary
The existing vehicle ECU software upgrade method relies on OTA, which requires the vehicle to be stationary, affecting vehicle use. After the upgrade is completed, the ECU needs to be restarted, resulting in poor user experience.
Use lightweight running scripts for software upgrades. By deploying a software development toolkit of service architecture code on the vehicle terminal and receiving software upgrade files in script format, imperceptible software upgrades are achieved, avoiding OTA restrictions and simplifying the upgrade process.
It realizes software upgrade while the vehicle is running, improves user experience, shortens the upgrade cycle, and improves the efficiency of flexible deployment of functions.
Smart Images

Figure CN2024079085_06092024_PF_FP
Abstract
Description
Vehicle software upgrade method, device, equipment, vehicle, medium and system
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 28, 2023, with application number 202310211802.6, and invention name “Vehicle-mounted software upgrade method, device, equipment, vehicle, medium and system”, and claims priority to the Chinese patent application filed with the China Patent Office on February 28, 2023, with application number 202310214098.X, and invention name “Service architecture code generation method, device, equipment, vehicle and storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present disclosure relates to the field of intelligent vehicle technology, and in particular to a method, device, equipment, vehicle, medium, and system for upgrading vehicle-mounted software. Background Art
[0003] With the development of in-vehicle terminal technology, the functionality of in-vehicle terminals is becoming increasingly comprehensive. As a 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 parameters for the operation of new energy vehicles. Existing ECU software upgrade methods mainly rely on OTA upgrades.
[0004] OTA upgrade means writing the software upgrade package as an executable file into the vehicle-side cache when the vehicle is stationary, using the software upgrade control program pre-deployed on the vehicle side to write the executable file in the cache into the FLASH area, and then reading the executable file in the FLASH area after the ECU is restarted and powered on to achieve the software upgrade.
[0005] The existing OTA upgrade method requires the entire vehicle to be stationary while the executable file is written to the FLASH area. The use of in-vehicle functions is not allowed, and the software can only be upgraded after the ECU is powered off and restarted.
[0006] Summary of the Invention
[0007] The present disclosure provides a vehicle-mounted software upgrade method, device, equipment, vehicle, medium and system, which uses a more lightweight running script to perform software upgrades. During the upgrade process, the user is unaware and the vehicle's use is not affected.
[0008] In a first aspect, an embodiment of the present disclosure provides a method for upgrading vehicle software, the method being applied to a vehicle terminal, the method comprising:
[0009] Deploying a software development kit corresponding to the service architecture code in the vehicle terminal;
[0010] receiving a software upgrade file, wherein the software upgrade file is in a script format;
[0011] The software upgrade file is deployed in an environment where the software development kit is running to perform software upgrade.
[0012] 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 the 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.
[0013] In one possible implementation, before receiving the software upgrade file, the method further includes:
[0014] Receive software update messages sent by the cloud server;
[0015] generating a software upgrade request in response to an operation on the software update message;
[0016] 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.
[0017] In a possible implementation, before deploying the software development kit corresponding to the service architecture code in the vehicle terminal, the method further includes:
[0018] Obtaining vehicle service content and a communication protocol identifier bound to the vehicle service content;
[0019] Performing abstract processing on the vehicle service content to generate a current system code corresponding to the vehicle service content;
[0020] Obtaining a target matching rule corresponding to the bound communication protocol identifier;
[0021] The current system code is instantiated using the target matching rule to obtain a service architecture code.
[0022] In one embodiment of the present disclosure, obtaining the communication protocol identifier bound to the vehicle service content includes:
[0023] In response to receiving a communication protocol identifier modification instruction input by a user, releasing the binding relationship between the bound communication protocol identifier and the vehicle service content;
[0024] Obtaining a new communication protocol identifier corresponding to the modification instruction;
[0025] A binding relationship between the new communication protocol identifier and the vehicle service content is established to obtain the communication protocol identifier bound to the vehicle service content.
[0026] In one embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based scalable service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol;
[0027] When the communication protocol is the DDS communication protocol, the target matching rule includes a correspondence between the current system code and the interactive data language IDL class code;
[0028] When the communication protocol is the SOME / IP communication protocol, the matching rule includes a correspondence between the current system code and the ARXML class code;
[0029] When the communication protocol is an IPC communication protocol, the matching rule includes a correspondence between a current system code and an extensible markup language XML class code.
[0030] In one embodiment of the present disclosure, the vehicle service content is represented in the form of a graph structure, and the abstraction processing of the vehicle service content to generate the current system code corresponding to the vehicle service content includes:
[0031] Generate a data structure based on the connection relationship between each node in the graph structure;
[0032] Get the content code included in each node;
[0033] The content code is written as a data element into a set position of the data structure to obtain the current system code.
[0034] In one embodiment of the present disclosure, the target matching rule includes: a first type of data element defined by the system code corresponding standard, a second type of data element corresponding to the communication protocol standard, and a corresponding relationship between the first type of data element and the second type of data element;
[0035] The current system code is instantiated using the target matching rule to obtain a service architecture code, including:
[0036] The first-category data elements included in the current system code are traversed, and a corresponding second-category data element is created for each first-category data element to obtain a service architecture code.
[0037] In one embodiment of the present disclosure, the further step further includes: obtaining a verification rule corresponding to the bound communication protocol identifier;
[0038] Obtain code statements included in the service architecture code; for each code statement, determine whether the code statement complies with verification rules; if it complies with the verification rules, the verification passes; if it does not comply with the verification rules, the verification fails.
[0039] In one embodiment of the present disclosure, the service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to transmit data with the application code. In a second aspect, the present disclosure provides a method for upgrading vehicle software, which is applied to a cloud server and includes:
[0040] Arrange vehicle functional scenarios to obtain functional scenario information;
[0041] Automatically generate a script for the functional scenario information to obtain a software upgrade file;
[0042] 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.
[0043] In one possible implementation, the software development kit includes at least one or more application programming API interfaces;
[0044] The arrangement of vehicle function scenarios includes:
[0045] Based on the API interface and the vehicle status information that can be called by each API interface, the vehicle function scenarios are arranged.
[0046] In one possible implementation, sending the software upgrade file to the vehicle-mounted terminal includes:
[0047] 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 vehicle-mounted terminal cloud server;
[0048] After receiving the software upgrade request sent by the vehicle-mounted terminal, the software upgrade file is sent to the vehicle-mounted terminal.
[0049] In a possible implementation, sending the software update message to the vehicle-mounted terminal further includes:
[0050] 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;
[0051] 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 service architecture code includes: obtaining the interface file included in the software upgrade file; calling the 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.
[0052] In one possible implementation, before receiving the software upgrade file, the method further includes:
[0053] Receiving a software update message sent by the cloud server;
[0054] generating a software upgrade request in response to an operation on the software update message;
[0055] 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.
[0056] In a third aspect, an embodiment of the present disclosure provides a vehicle-mounted software upgrade device, which is configured in a vehicle-mounted terminal, and the method includes:
[0057] A toolkit deployment module, configured to deploy a software development toolkit corresponding to the service architecture code in the vehicle-mounted terminal;
[0058] An upgrade file receiving module, configured to receive a software upgrade file in a script format;
[0059] 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.
[0060] 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 for acquiring the interface file included in the software upgrade file; an API interface calling unit for calling the API interface corresponding to the interface file; and a data transmission unit for realizing data transmission between the software upgrade file and the software development kit based on the called API interface.
[0061] 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.
[0062] In a fourth aspect, an embodiment of the present disclosure provides a vehicle-mounted software upgrade device, the device being configured on a cloud server, and the method comprising:
[0063] A scene information determination module is used to arrange vehicle functional scenes and obtain functional scene information;
[0064] An upgrade file determination module is used to automatically generate a script based on the functional scenario information to obtain a software upgrade file;
[0065] 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 tool kit to perform software upgrade.
[0066] 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.
[0067] In one possible embodiment, 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.
[0068] In one possible embodiment, 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 the 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 the 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.
[0069] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including:
[0070] Memory;
[0071] processor; and
[0072] computer programs;
[0073] The computer program is stored in the memory and is configured to be executed by the processor to implement the vehicle-mounted software upgrade method as described in the first aspect or the vehicle-mounted software upgrade method as described in the second aspect.
[0074] In the sixth aspect, an embodiment of the present disclosure provides an in-vehicle software upgrade system, the system comprising a cloud server and an in-vehicle terminal, the cloud server being communicatively connected to the in-vehicle terminal, the cloud server being used to execute the in-vehicle software upgrade method as described in any one of the first aspects, and the in-vehicle terminal being used to execute the in-vehicle software upgrade method as described in any one of the second aspects.
[0075] In the seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which a computer program is stored, and 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.
[0076] 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.
[0077] The embodiments of the present disclosure provide a method, apparatus, device, and storage medium for upgrading in-vehicle software. The method includes: 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 running the software development kit 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 in-vehicle terminal, and then deploys the received software upgrade file in an environment running the software development kit to perform a software upgrade. A more lightweight running script is used for 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] 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.
[0079] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0080] FIG1 is a flow chart of a method for upgrading vehicle software according to an embodiment of the present disclosure;
[0081] FIG2 is a flow chart of a vehicle software upgrade method according to an embodiment of the present disclosure;
[0082] FIG3 is a schematic diagram of a service architecture code generation system provided by an embodiment of the present disclosure;
[0083] FIG4 is a flow chart of a method for upgrading vehicle software according to an embodiment of the present disclosure;
[0084] FIG5 is an interactive flow chart of a vehicle software upgrade method provided by an embodiment of the present disclosure;
[0085] FIG6 is a flow chart of a method for upgrading vehicle software according to an embodiment of the present disclosure;
[0086] FIG7 is a flow chart of a method for upgrading vehicle software according to an embodiment of the present disclosure;
[0087] FIG8 is a flow chart of a method for generating service architecture code according to an embodiment of the present disclosure;
[0088] FIG9 is a schematic structural diagram of a vehicle software upgrade device provided by an embodiment of the present disclosure;
[0089] FIG10 is a schematic structural diagram of a vehicle software upgrade device provided by an embodiment of the present disclosure;
[0090] FIG11 is a schematic structural diagram of a vehicle-mounted software upgrade device provided by an embodiment of the present disclosure;
[0091] FIG12 is a schematic diagram of the structure of a service architecture code generation device provided by an embodiment of the present disclosure;
[0092] FIG13 is an interactive flow chart of a vehicle software upgrade method provided by an embodiment of the present disclosure;
[0093] FIG14 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0094] 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 therein can be combined with each other in the absence of conflict.
[0095] The following describes embodiments of the present disclosure in more detail 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 limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0096] 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.
[0097] As used herein, the term "including" and its variations are open-ended, 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," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0098] It should be noted that the concepts of "first" and "second" mentioned in this 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.
[0099] It should be noted that the modifications of "one" and "multiple" 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, they should be understood as "one or more".
[0100] 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 intended to limit the scope of these messages or information.
[0101] The vehicle software upgrade method is described in detail below with reference to specific embodiments and accompanying drawings.
[0102] Figure 1 is a flowchart of a vehicle-mounted software upgrade method 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 method can be executed by a vehicle-mounted software upgrade device, which can be implemented in software and / or hardware. The vehicle-mounted software upgrade device method is applied to a vehicle-mounted terminal, and the vehicle-mounted terminal is communicatively connected to a cloud server.
[0103] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0104] Specifically, as shown in FIG1 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S101 - S103 .
[0105] S101: Deploy a software development kit corresponding to the service architecture code in the vehicle-mounted terminal.
[0106] A 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, or other application. It facilitates application creation through compilers, debuggers, and software frameworks. It can simply provide the API files for a specific programming language. SDKs often also include sample code, supporting technical notes, or other supporting documentation to clarify underlying reference material.
[0107] In some embodiments of the present disclosure, a software framework (ie, service architecture code) corresponding to the vehicle service architecture is deployed in a vehicle terminal, and the software framework corresponding to the vehicle service architecture includes a plurality of reserved API interfaces.
[0108] In some embodiments of the present disclosure, a software development kit is a centralized encapsulation of the service interface defined in the service architecture code, thereby providing a standardized API interface access method to the outside world.
[0109] In some embodiments of the present disclosure, before deploying the software development kit corresponding to the service architecture code in the vehicle terminal, the process further includes: generating the service architecture code.
[0110] In some embodiments of the present disclosure, service architecture code refers to the code logic and modules used to implement various service functions in the vehicle. It defines key elements of the service architecture, such as components, interfaces, and data flows, as well as how they interact and collaborate. The purpose of the service architecture code is to build and implement various service functions at the software level based on the requirements and design of the vehicle system.
[0111] S102: Receive a software upgrade file, wherein the software upgrade file is in a script format.
[0112] In some embodiments of the present disclosure, vehicle functional scenarios will be continuously updated, and the demand for functional services will also change. Accordingly, the software for realizing various service functions will also need to be upgraded according to the vehicle functional scenarios. For example, as the driving scenario is updated, the navigation software will need to be upgraded according to the user's demand for intelligent and precise navigation in the scenario.
[0113] In some embodiments of the present disclosure, a software upgrade file is used for software upgrade, and the software upgrade file includes a plurality of interface functions and interface calling instructions.
[0114] In some embodiments 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.
[0115] 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.
[0116] 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.
[0117] In one embodiment of the present disclosure, after the designer generates a software upgrade file in the cloud server, the cloud server sends a software update message to the vehicle terminal, wherein the software update message can be understood as a prompt message for indicating to the vehicle terminal whether there is an updateable file in the cloud and whether to update the vehicle software program.
[0118] 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.
[0119] 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.
[0120] The software update message can be displayed on the vehicle terminal's display screen or on a third-party smart terminal connected to the vehicle terminal. The upgrade confirmation operation can be performed by the vehicle owner on the vehicle terminal or by a staff member on a third-party smart terminal. After receiving the vehicle owner's input confirming the upgrade, the third-party smart terminal generates a software upgrade request and sends it to the vehicle terminal. The third-party smart terminal includes smartphones, computers, tablets, and the like. The communication connection can be any one of Bluetooth, Wi-Fi, and a mobile cellular network, or a combination thereof.
[0121] S103: deploying the software upgrade file in an environment where a software development kit is running to perform software upgrade.
[0122] In the embodiment of the present disclosure, by deploying the software development kit corresponding to the service architecture code in the vehicle terminal, when the vehicle function scenario is subsequently updated or the functional service changes, the software development kit can be used to call the components, interfaces, data flows, etc. in the service architecture defined by the service architecture code, so that software upgrades can be performed more quickly and efficiently.
[0123] In the embodiment of the present disclosure, the software upgrade file includes the API interface that needs to be called for this 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 realize data transmission, that is, to realize software upgrade.
[0124] 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.
[0125] 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 interface information 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.
[0126] 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.
[0127] The embodiment of the present disclosure provides a method for upgrading in-vehicle software, the method comprising: 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 running the software development kit 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 in-vehicle terminal, and then deploys the received software upgrade file in an environment running the software development kit to perform a software upgrade. A more lightweight running script is used for software upgrade, replacing the executable file. The entire process does not rely on OTA, enabling flexible deployment of functions and shortening the upgrade cycle.
[0128] Based on the embodiment of Figure 1, Figure 2 is a flowchart of a vehicle-mounted software upgrade method in the embodiment of the present disclosure. This embodiment is applicable to the situation where the software in the vehicle-mounted ECU is upgraded. The method can be executed by a vehicle-mounted software upgrade device, and the vehicle-mounted software upgrade device can be implemented in software and / or hardware. The vehicle-mounted software upgrade device method is applied to a vehicle-mounted terminal, and the vehicle-mounted terminal is communicated with the cloud server.
[0129] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0130] Specifically, as shown in FIG2 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S201 - S207 .
[0131] S201: Acquire the vehicle service content and the communication protocol identifier bound to the vehicle service content.
[0132] Vehicle services can be understood as the functional services provided by the vehicle to the owner. Examples include navigation, multimedia playback, and driving recorder functions. Vehicle services can be understood as files describing the vehicle's electrical and electronic architecture. These files typically describe the functions, interconnections, and data flows of various electronic modules on the vehicle, such as the ECU (Electronic Control Unit).
[0133] In the embodiment of the present disclosure, the vehicle service content can be designed by a designer at the front end and then uploaded to an electronic device that executes the service architecture code generation method provided by the embodiment of the present disclosure. The embodiment of the present disclosure does not limit the design method of the vehicle service content.
[0134] Furthermore, based on the received vehicle service content, the service hierarchical relationship is abstracted and a matching data structure is formed. The data structure refers to a data structure that reflects the logical relationship between data elements, and the logical relationship refers to the relationship between the data elements.
[0135] In the disclosed embodiment, the Service Oriented Architecture (SOA) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. As the guiding direction for the current development of the vehicle software architecture, the service-oriented architecture defines and describes each function in the vehicle as a service. The service itself needs to be accurately described and encapsulated, and services are independent of each other. Services can be distributed in different system environments, and services can communicate with each other. Communication does not require that all services are in the same system environment, but only needs to follow the same communication protocol. Services all come with clear interface description files, and calling the interfaces of each or a single service in a specific order can implement the corresponding business processes.
[0136] In the embodiments of the present disclosure, the communication protocol identifier refers to an identifier used to represent the communication protocol. The specific representation method of the communication protocol identifier is no longer specifically limited in the embodiments of the present disclosure. The communication protocol identifier bound to the vehicle service content refers to the identifier corresponding to the communication protocol used to write the vehicle service content. The communication protocol identifier bound to the vehicle service content can be freely bound by the front-end staff. The embodiments of the present disclosure do not limit the specific communication protocol used by the vehicle service content.
[0137] In one embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based extensible service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol.
[0138] Service providers and consumers interact through service-based communication. The Automotive Open System Architecture (AutoSa) defines service-based communication protocols such as the Data Distribution Service (DDS) communication protocol, the IP-based scalable service-oriented SOME / IP communication protocol, and the Inter-Process Communication (IPC) protocol. Each electronic control unit implements the corresponding communication middle layer according to this definition and verifies it during testing.
[0139] The Data Distribution Service (DDS) is a data-centric middleware protocol and API standard published by the Object Management Group (OMG). It adopts a distributed publish / subscribe architecture and provides communication services in the form of middleware, emphasizing data-centricity. DDS middleware is a software layer that abstracts applications from the details of the operating system, network transmission, and underlying data formats. The same concepts and APIs are provided to different programming languages, allowing applications to exchange information between different operating systems, programming languages, and processing architectures. The underlying details, including data transmission formats, discovery, connections, reliability, protocols, and QoS policies, are managed by the middleware.
[0140] Among them, SOME / IP, the Scalable Service-Oriented Middleware over IP, is an automotive middleware solution for control messages and a scalable service-oriented protocol.
[0141] IPC, short for Inter Process Communication, is a protocol for inter-process communication. Two processes on the same machine can use IPC, but IPC cannot span physical machines. IPC includes centralized methods such as shared memory, queues, and semaphores.
[0142] S202: Perform abstract processing on the vehicle service content to generate a current system code corresponding to the vehicle service content.
[0143] In some embodiments of the present disclosure, system code is the program code written to implement system functions. It is used to create, operate, and control the various components of the system and provide the required services and functions. The specific content of the system code will vary depending on the required service functions. Abstracting the vehicle service content is to summarize and refine the required service functions and implementation details to generate the corresponding system code.
[0144] In one embodiment of the present disclosure, the vehicle service content is represented in the form of a graph structure, and the vehicle service content is abstracted to generate the current system code corresponding to the vehicle service content, including: generating a data structure based on the connection relationship between each node in the graph structure; obtaining the content code included in each node; writing the content code as a data element into a set position of the data structure to obtain the current system code.
[0145] In the embodiment of the present disclosure, the designer designs the service architecture at the front end and receives the vehicle service content uploaded by the designer through the front end device. Each node in the graph structure represents each service function, and the content code is the implementation code of each service function. The corresponding service interface and interface specification are defined, and the layers corresponding to each functional service can interact through the interface. Among them, the vehicle service content is represented in the form of a graph structure, and each graph node in the graph structure represents the association relationship between the vehicle service layers. The service layer can be understood as the layer corresponding to each functional service. For example: The wiper control function needs to obtain the weather conditions of the vehicle's location. The wiper control function service layer needs an interface to obtain the positioning information in the navigation service function. The wiper control function needs an interface to connect with the navigation function. For another example: The breathing light in the car needs to move with the music, and the same breathing light control function service has an association relationship with the multimedia control function service.
[0146] In the disclosed embodiment, the relationships between multiple service levels included in a graph structure are abstracted to obtain a corresponding data structure. The corresponding data structure refers to a data structure that clearly and unambiguously represents the relationships between the service levels. The content code included in each graph node is obtained and written as a data element into a set location in the data structure to obtain the current system code.
[0147] S203: Obtain a target matching rule corresponding to the bound communication protocol identifier.
[0148] In one embodiment of the present disclosure, a matching rule corresponding to the communication protocol identifier is pre-set. When the bound communication protocol identifier is obtained, a query is performed in the above-mentioned corresponding relationship based on the communication protocol identifier, and the matching rule obtained by the query is used as the target matching rule corresponding to the bound communication protocol identifier.
[0149] In one embodiment of the present disclosure, depending on the communication protocol bound to the vehicle service, the operator needs to set different configuration information based on the different communication protocols, where the configuration information may also be referred to as a configuration item. The specific parameters of the configuration information are set by the operator and are not specifically limited in the present embodiment.
[0150] In an embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based extensible service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol; when the communication protocol is the DDS communication protocol, the target matching rule includes a correspondence between a current system code and an interactive data language IDL class code; when the communication protocol is the SOME / IP communication protocol, the matching rule includes a correspondence between a current system code and an ARXML class code; when the communication protocol is the IPC communication protocol, the matching rule includes a correspondence between a current system code and an extensible markup language XML class code.
[0151] S204: Utilize the target matching rule to instantiate the current system code to obtain a service architecture code.
[0152] In the disclosed embodiments, instantiating system code refers to converting abstract concepts within the service architecture code into concrete instances for actual operation and operation within the vehicle system. A service architecture typically defines abstract concepts and components, such as service interfaces, data models, and processing logic. These abstract concepts must be concretized in the actual operational environment to provide practical functionality and services.
[0153] In the disclosed embodiments, the service architecture code is similar to middleware, a software layer between the communication protocol layer and the application program, enabling the various components of the system to communicate and share data more easily. This service architecture code simplifies the development of distributed systems, allowing software developers to focus on the application's business rather than on the mechanisms for transferring information between the application and the system.
[0154] In one embodiment of the present disclosure, the service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to transmit data with the application code.
[0155] Specifically, the service architecture code includes code files and interface files, wherein the types of the interface files include: interface description language IDL type, general configuration information ARXML type, extensible markup language XML type, and the types of the code files include: C++ type, JAVA type.
[0156] In one embodiment of the present disclosure, a standard interface file is defined for vehicle service content. Services at different levels implement overall functionality by calling interfaces and passing information to each other. The calling methods and transferable data between services at two levels are solidified according to functional requirements, and consistency can be ensured by following the standard interface design template.
[0157] The description language of the interface file can be any one of the interface description language IDL type, general configuration information ARXML type, and extensible markup language XML type, which is not specifically limited in the embodiment of the present disclosure.
[0158] Among them, the types of the code files include: C++ type and JAVA type. The code type of the service architecture code can be selected according to the code type adopted by the vehicle bottom layer or application layer.
[0159] In one embodiment of the present disclosure, service architecture code offers the highest reusability for application software. It can call standard function interfaces reserved by the underlying software to manipulate hardware without having to worry about the specific implementation details of the underlying software. This reduces the software's dependence on the hardware platform. Typically, service architecture code involves various call interfaces and converts data into standard data interfaces to support these interfaces and standardize the implementation of various applications.
[0160] In one embodiment of the present disclosure, the target matching rules include: the first type of data elements defined by the system code corresponding standard, and the second type of data elements corresponding to the communication protocol standard, and the correspondence between the first type of data elements and the second type of data elements; the current system code is instantiated using the target matching rules to obtain the service architecture code, including: traversing the first type of data elements included in the current system code, creating the corresponding second type of data element for each first type of data element, and obtaining the service architecture code.
[0161] The first category of data elements can be understood as data type definitions and other content included in system code. The second category of data elements can be understood as various types of data included in communication protocol standards. The first and second category data elements represent the same meaning, differing only in how they are represented using different machine languages. For example, if the first data element is "int 16" and the corresponding second category data element is "short int 16," then a corresponding "short int 16" is created for "int16."
[0162] The instantiation operation is performed on each first-category data element in the current system code to obtain the service architecture code.
[0163] In one embodiment of the present disclosure, the method further includes: obtaining the verification rules corresponding to the bound communication protocol identifier; obtaining the code statements included in the service architecture code; for each code statement, determining whether the code statement complies with the verification rules; if it complies with the verification rules, the verification passes; if it does not comply with the verification rules, the verification fails.
[0164] In the disclosed embodiment, each layer of service data in the data structure is verified layer by layer. After the verification is successful, an intermediate layer file is generated based on the data structure and the configuration information to ensure the availability of the final generated code.
[0165] On the basis of the above embodiments, a flowchart of service architecture code generation is provided in the embodiments of the present disclosure, as shown in Figure 3. The business process supported by the present disclosure is: the SOA architect designs the service architecture at the front end, obtains the vehicle service content, binds the service content with the communication protocol identifier, and sets the configuration information of the communication protocol. After completing and submitting the vehicle service content, the architect executes the service architecture code generation method provided in the embodiments of the present disclosure to generate the service architecture code; the service architecture code is abstractly verified layer by layer. After passing the verification, the generated service code will be automatically uploaded to the code repository, and the service developer will develop related functions based on the generated service architecture code.
[0166] Based on the above embodiments, the presently disclosed embodiments optimize the "generating the communication protocol identifier for obtaining the binding of the vehicle service content", and the generating of the communication protocol identifier for obtaining the binding of the vehicle service content includes: in response to receiving a communication protocol identifier modification instruction input by the user, releasing the binding relationship between the bound communication protocol identifier and the vehicle service content; obtaining a new communication protocol identifier corresponding to the modification instruction; establishing a binding relationship between the new communication protocol identifier and the vehicle service content, and obtaining the communication protocol identifier bound to the vehicle service content.
[0167] In the disclosed embodiment, after a user generates service architecture code using the service architecture code generation method provided in the disclosed embodiment, if the designer wishes to use service architecture code under a different communication protocol, a communication protocol identifier modification instruction input by the user can be received. The binding relationship between the bound communication protocol identifier and the vehicle service content is contacted; a new communication protocol identifier corresponding to the modification instruction is obtained; a binding relationship between the new communication protocol identifier and the vehicle service content is established to obtain the communication protocol identifier bound to the vehicle service content. The step of "obtaining a target matching rule corresponding to the bound communication protocol identifier" and subsequent steps are then re-executed.
[0168] For example, if the vehicle service content described by the designer is bound to the SOME / IP communication protocol, the service architecture code for the SOME / IP communication protocol can be obtained using the service architecture code generation method provided in the embodiments of this disclosure. If the communication protocol corresponding to the communication protocol identifier modification instruction entered by the user is the IPC communication protocol, the binding relationship between the SOME / IP communication protocol and the vehicle service content is released, and the binding relationship between the SOME / IP communication protocol and the vehicle service content is established. The step of "obtaining a target matching rule corresponding to the bound communication protocol identifier" and subsequent steps are then executed to obtain the service architecture code for the IPC communication protocol.
[0169] It should be noted that in related technologies, configuration tool software based on the Autosar architecture can only encode service content under the SOME / IP communication protocol, that is, it encodes service content using the programming language corresponding to the SOME / IP communication protocol. If you want to obtain the corresponding service content encoding under other communication protocols, you need to replace the configuration tool software and use the programming language corresponding to that communication protocol to re-encode the service content, resulting in low application service development efficiency. In the embodiments of the present disclosure, only the communication protocol bound to the vehicle service content needs to be modified to obtain the service architecture code under that communication protocol, effectively improving the efficiency of application service development.
[0170] It should be noted that the above-mentioned process of generating the service architecture code corresponding to the vehicle service content can also be carried out on the cloud server. Specifically, the vehicle terminal sends the vehicle service content-related files to the cloud server, and the cloud server generates the service architecture code corresponding to the vehicle service content, and then sends the generated service architecture code to the vehicle terminal.
[0171] S205: Deploy a software development kit corresponding to the service architecture code in the vehicle-mounted terminal.
[0172] S206: Receive a software upgrade file, wherein the software upgrade file is in a script format.
[0173] 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 the 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.
[0174] S207: Deploy the software upgrade file in an environment where a software development kit is running to perform software upgrade.
[0175] In one possible embodiment, 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.
[0176] The specific implementation of the above steps S205 to S207 is similar in principle to the specific implementation of steps S101 to S103 of the embodiment shown in FIG1 , and will not be repeated here.
[0177] The vehicle software upgrade method provided by the embodiment of the present disclosure first abstracts the vehicle service content to obtain the current system code, then determines the target matching rule that matches the communication protocol based on the bound communication protocol code, and instantiates the current system code based on the target matching rule to obtain the service architecture code. Different communication protocol identifiers can match different matching rules, and then obtain the service architecture code corresponding to different communication protocols, thereby realizing automatic service architecture code generation for multiple communication protocols and effectively improving the development efficiency of application services. In addition, a software development kit corresponding to the service architecture code is deployed in the vehicle terminal, and the received software upgrade file is deployed in the environment running the software development kit to perform software upgrades. A more lightweight running script is used for software upgrades to replace the executable file. The entire process does not rely on OTA, realizing flexible deployment of functions and shortening the upgrade cycle.
[0178] Figure 4 is a flowchart of a vehicle-mounted software upgrade method 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 method can be executed by a vehicle-mounted software upgrade device, which can be implemented in software and / or hardware. The vehicle-mounted software upgrade device method is applied to a cloud server, and the cloud server is communicatively connected to the vehicle-mounted terminal.
[0179] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0180] Specifically, as shown in FIG4 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S301 - S303 .
[0181] S301. Arrange vehicle functional scenarios to obtain functional scenario information.
[0182] In the disclosed embodiments, vehicle service content corresponding to vehicle functional scenarios is organized. These vehicle service content can be understood as the different service functions that a vehicle needs to perform in different usage scenarios. Examples include exterior unlocking, windshield wiper control, automatic seat adjustment, audio control, and air conditioning control. The organization primarily describes the interactions between existing vehicle components or interfaces.
[0183] In the embodiments of the present disclosure, the arrangement of vehicle service content corresponding to vehicle functional scenarios can be a process of describing or defining the interaction between existing components or interfaces of a vehicle. The arrangement of vehicle service content corresponding to vehicle functional scenarios is intended to achieve a certain vehicle function. Functional scenario information refers to a description language for the interaction between existing components or interfaces of a vehicle.
[0184] In the embodiments of the present disclosure, vehicle functional scenarios are constantly updated, and the demand for functional services will also change. Consequently, the intermediate layer software that implements various service functions also needs to be upgraded based on the vehicle service content corresponding to the current vehicle functional scenario. Therefore, when the vehicle functional scenario is updated, the present disclosure organizes the functional services required by the current vehicle functional scenario and obtains functional scenario information for software upgrades. The functional scenario information describes the interaction required between the vehicle's existing service interfaces to implement this functional service. For example, to implement the wiper control function, it is necessary to obtain the weather conditions at the vehicle's location. The wiper control function requires an interface to obtain the positioning information in the navigation service function.
[0185] In one embodiment of the present disclosure, third-party functional scenario orchestration software is used for orchestration, and after obtaining functional scenario information, the functional scenario information is uploaded to a cloud server.
[0186] 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.
[0187] It should be noted that the embodiment of the present disclosure does not limit the method of arranging vehicle functional scenes, and any method that can realize the arrangement of functional scenes is within the protection scope of the embodiment of the present disclosure.
[0188] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; and the arranging 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.
[0189] In the disclosed embodiments, 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 during a previous software upgrade. The existing status signal refers to the existing status information of the vehicle. Specifically, the interface parameters may include hardwired interface parameters, storage interface parameters, communication interface parameters, fault interface parameters, etc.
[0190] The hardwire interface parameters include the application layer (ASW) hardwire interface name, the basic software layer (BSW) interface name, data type (including data conversion), and scheduling method. They primarily implement the call configuration of the hardwire interface.
[0191] The storage interface parameters may be NVM (Non-Volatile Memory) storage interface parameters, including the ASW interface name, NVM interface name, data type (including data conversion), and NVM storage allocation information. The storage interface data primarily implements the storage and access of non-volatile data. Optionally, the NVM storage allocation information refers to the corresponding storage address in the non-volatile memory.
[0192] The communication interface parameters include the ASW interface name, communication interface name, data type (including data conversion), and packet parsing configuration information. The communication interface data primarily implements the communication configuration of the CAN bus. CAN is a standard bus protocol widely used in automotive control systems. Optionally, the packet parsing configuration information refers to the data storage area for each frame in CAN network communication.
[0193] 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 overvoltage fault, a CAN node communication timeout fault, a transmission fault, etc. occur in the vehicle. Optionally, the fault interface name refers to the 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.
[0194] In one embodiment of the present disclosure, the existing status signals include: a battery signal, an engine signal, an accelerator pedal signal, a brake pedal signal, a vehicle ignition signal, and the like in the vehicle.
[0195] In the disclosed embodiment, functional scenarios are arranged based on the vehicle's pre-set API interfaces 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 may be pre-set in the vehicle, and it is not necessary to use all of the pre-set interface parameters and existing status signals during the arrangement of a particular functional scenario. It is only necessary to select the required interface parameters and existing status signals for arrangement based on the functional scenario requirements.
[0196] S302: Generate an automated script for the functional scenario information to obtain a software upgrade file.
[0197] In one embodiment of the present disclosure, script generation software is used to automatically generate a script 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.
[0198] S303: 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.
[0199] 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.
[0200] 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.
[0201] In an embodiment of the present disclosure, the software development kit is a centralized encapsulation of the service interface defined in the service architecture code. The service architecture code is generated based on the existing vehicle service content. The software upgrade file is deployed in the environment where the software development kit is running, thereby retaining the existing software development environment. When the vehicle functional scenario is updated, the service interface defined in the service architecture code can be called according to the calling instructions in the software upgrade file to perform software upgrades, thereby realizing the functional services required by the current vehicle functional scenario.
[0202] In one embodiment of the present disclosure, before sending the software update message to the vehicle-mounted terminal, it also includes: obtaining multiple vehicle information, wherein the vehicle information package includes 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.
[0203] In the disclosed embodiment, since the functional scenario information is arranged according to pre-set interface parameters and existing status signals, for some vehicle terminals that do not have interface parameters set or only have a portion of interface parameters set, or the vehicle terminal's existing status signals do not include or only include a portion 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 requires the detection of real-time rainfall, but some vehicle terminals do not have a real-time rainfall detection sensor, so the real-time rainfall cannot be detected, which in turn causes the wiper control function to be unable to function normally. In this case, sending the software upgrade file for the wiper control function to the vehicle terminal does not make much sense.
[0204] 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 based on the vehicle information, wherein the vehicle information package includes the vehicle model and interface information.
[0205] In one embodiment of the present disclosure, after the cloud server generates a software upgrade file, it obtains the software version information from the vehicle terminal. If the software version information matches the version information corresponding to the software upgrade file, it is determined that the vehicle terminal's software does not need to be upgraded, and no software update message is sent. If the software version information does not match the version information corresponding to the software upgrade file, it is determined that the vehicle terminal's software needs to be upgraded, and a software update message is sent to the vehicle terminal. The software update message is used to instruct the vehicle owner whether to perform the software upgrade. Receiving the software upgrade request from the vehicle terminal indicates that the vehicle owner confirms the software upgrade, and the cloud server sends the software upgrade file to the vehicle terminal.
[0206] The in-vehicle software upgrade method provided by the disclosed embodiment includes: a cloud server orchestrates vehicle functional scenarios to obtain functional scenario information; automatically generates a script based on the functional scenario information to obtain a software upgrade file; and sends the software upgrade file to the in-vehicle terminal, which then deploys the software execution script on the in-vehicle terminal to perform the software upgrade. The technical solution provided by the disclosed embodiment performs software upgrades via software upgrade files sent from a cloud server to the in-vehicle terminal. This utilizes a more lightweight execution script to perform software upgrades, replacing executable files. The entire process does not rely on OTA, enabling flexible deployment of functions and shortening the upgrade cycle.
[0207] Figure 5 is an interactive flow chart of a vehicle software upgrade method in an embodiment of the present disclosure. This embodiment is applicable to the situation where the software in the vehicle ECU is upgraded. As shown in Figure 5, the vehicle software upgrade system includes a cloud server 11 and a vehicle terminal 12. The cloud server 11 is communicatively connected with the vehicle terminal 12. The cloud server 11 is used to execute the vehicle software upgrade method described in any of the embodiments shown in Figure 4 above, and the vehicle terminal 12 is used to execute the vehicle software upgrade method described in any of the embodiments shown in Figures 1 and 2.
[0208] Specifically, as shown in FIG5 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes the following steps:
[0209] S501. The on-board terminal 12 obtains the vehicle service content and the communication protocol identifier bound to the vehicle service content; S502. The on-board terminal 12 abstracts the vehicle service content and generates the current system code corresponding to the vehicle service content; S503. The on-board terminal 12 obtains the target matching rule corresponding to the bound communication protocol identifier; S504. The on-board terminal 12 uses the target matching rule to instantiate the current system code to obtain the service architecture code; S505. The on-board terminal 12 deploys the software development kit corresponding to the service architecture code in the on-board terminal; S506. The cloud server 11 arranges the vehicle function scenarios to obtain function scenario information; S507. The cloud server 11 automatically generates a script for the function scenario information to obtain a software upgrade file; S508. The cloud server 11 obtains vehicle information corresponding to multiple on-board terminals; S509. 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. At step S5010, the cloud server 11 sends a software update message to the vehicle-mounted terminal 12. At step S5011, the vehicle-mounted terminal 12 generates a software upgrade request in response to the software update message. At step S5012, the vehicle-mounted terminal 12 sends the software upgrade request to the cloud server 11. At step S5013, the cloud server 11 sends the software upgrade file to the vehicle-mounted terminal. At step S5014, the vehicle-mounted terminal 12 deploys the software upgrade file in an environment running a software development kit to perform the software upgrade.
[0210] The vehicle-mounted software upgrade system of the embodiment shown in FIG5 can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effects are similar to those of the embodiments shown in FIG1 , FIG2 , and FIG4 , and will not be repeated here.
[0211] Figure 6 is a flowchart of a vehicle-mounted software upgrade method 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 method can be executed by a vehicle-mounted software upgrade device, which can be implemented in software and / or hardware. The vehicle-mounted software upgrade device method is applied to a vehicle-mounted terminal, and the vehicle-mounted terminal is communicatively connected to the cloud server.
[0212] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0213] Specifically, as shown in FIG6 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S601 - S603 .
[0214] S601: Deploy a software development kit corresponding to the service architecture code in the vehicle-mounted terminal.
[0215] A 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, or other application. It facilitates application creation through compilers, debuggers, and software frameworks. It can simply provide the API files for a specific programming language. SDKs often also include sample code, supporting technical notes, or other supporting documentation to clarify underlying reference material.
[0216] 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.
[0217] S602: Receive a software upgrade file, wherein the software upgrade file is in a script format.
[0218] 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.
[0219] 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.
[0220] 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.
[0221] In one embodiment of the present disclosure, after the designer generates a software upgrade file in the cloud server, the cloud server sends a software update message to the vehicle terminal, wherein the software update message can be understood as a prompt message for indicating to the vehicle terminal whether there is an updateable file in the cloud and whether to update the vehicle software program.
[0222] 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.
[0223] 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.
[0224] The software update message can be displayed on the vehicle terminal's display screen or on a third-party smart terminal connected to the vehicle terminal. The upgrade confirmation operation can be performed by the vehicle owner on the vehicle terminal or by a staff member on a third-party smart terminal. After receiving the vehicle owner's input confirming the upgrade, the third-party smart terminal generates a software upgrade request and sends it to the vehicle terminal. The third-party smart terminal includes smartphones, computers, tablets, and the like. The communication connection can be any one of Bluetooth, Wi-Fi, and a mobile cellular network, or a combination thereof.
[0225] S603: Deploy the software upgrade file in an environment where a software development kit is running to perform software upgrade.
[0226] In the embodiment of the present disclosure, the software upgrade file includes the API interface that needs to be called for this 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 realize data transmission, that is, to realize software upgrade.
[0227] 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.
[0228] 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 interface information 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.
[0229] 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.
[0230] The embodiment of the present disclosure provides a method for upgrading in-vehicle software, the method comprising: 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 running the software development kit 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 in-vehicle terminal, and then deploys the received software upgrade file in an environment running the software development kit to perform a software upgrade. A more lightweight running script is used for software upgrade, replacing the executable file. The entire process does not rely on OTA, enabling flexible deployment of functions and shortening the upgrade cycle.
[0231] Figure 7 is a flowchart of a vehicle-mounted software upgrade method 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 method can be executed by a vehicle-mounted software upgrade device, which can be implemented in software and / or hardware. The vehicle-mounted software upgrade device method is applied to a cloud server, and the cloud server is communicatively connected to the vehicle-mounted terminal.
[0232] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0233] Specifically, as shown in FIG7 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes steps S701 - S703 .
[0234] S701. Arrange vehicle functional scenarios to obtain functional scenario information.
[0235] Vehicle functional scenarios can be understood as the different functions and tasks a vehicle needs to perform in different usage scenarios. Examples include: exterior unlocking, windshield wiper control, automatic seat adjustment, audio control, air conditioning control, and so on. The purpose of this arrangement is to describe the interactions between existing vehicle components or interfaces.
[0236] In the disclosed embodiments, vehicle functional scenario programming can be the process of describing or defining the interactions between existing vehicle components or interfaces. The purpose of programming vehicle functional scenarios is to achieve a specific vehicle function. Functional scenario information refers to a language describing the interactions between existing vehicle components or interfaces.
[0237] In one embodiment of the present disclosure, third-party functional scenario orchestration software is used for orchestration, and after obtaining functional scenario information, the functional scenario information is uploaded to a cloud server.
[0238] 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.
[0239] It should be noted that the embodiment of the present disclosure does not limit the method of arranging vehicle functional scenes, and any method that can realize the arrangement of functional scenes is within the protection scope of the embodiment of the present disclosure.
[0240] In one embodiment of the present disclosure, the software development kit includes at least one or more application programming API interfaces; and the arranging 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.
[0241] In the disclosed embodiments, 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 during a previous software upgrade. The existing status signal refers to the existing status information of the vehicle. Specifically, the interface parameters may include hardwired interface parameters, storage interface parameters, communication interface parameters, fault interface parameters, etc.
[0242] The hardwire interface parameters include the application layer (ASW) hardwire interface name, the basic software layer (BSW) interface name, data type (including data conversion), and scheduling method. They primarily implement the call configuration of the hardwire interface.
[0243] The storage interface parameters may be NVM (Non-Volatile Memory) storage interface parameters, including the ASW interface name, NVM interface name, data type (including data conversion), and NVM storage allocation information. The storage interface data primarily implements the storage and access of non-volatile data. Optionally, the NVM storage allocation information refers to the corresponding storage address in the non-volatile memory.
[0244] The communication interface parameters include the ASW interface name, communication interface name, data type (including data conversion), and packet parsing configuration information. The communication interface data primarily implements the communication configuration of the CAN bus. CAN is a standard bus protocol widely used in automotive control systems. Optionally, the packet parsing configuration information refers to the data storage area for each frame in CAN network communication.
[0245] 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 overvoltage fault, a CAN node communication timeout fault, a transmission fault, etc. occur in the vehicle. Optionally, the fault interface name refers to the 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.
[0246] In one embodiment of the present disclosure, the existing status signals include: a battery signal, an engine signal, an accelerator pedal signal, a brake pedal signal, a vehicle ignition signal, and the like in the vehicle.
[0247] In the disclosed embodiment, functional scenarios are arranged based on the vehicle's pre-set API interfaces 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 may be pre-set in the vehicle, and it is not necessary to use all of the pre-set interface parameters and existing status signals during the arrangement of a particular functional scenario. It is only necessary to select the required interface parameters and existing status signals for arrangement based on the functional scenario requirements.
[0248] S702: Generate an automated script for the functional scenario information to obtain a software upgrade file.
[0249] In one embodiment of the present disclosure, script generation software is used to automatically generate a script 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.
[0250] S703: 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.
[0251] 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.
[0252] 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.
[0253] In one embodiment of the present disclosure, before sending the software update message to the vehicle-mounted terminal, it also includes: obtaining multiple vehicle information, wherein the vehicle information package includes 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.
[0254] In the disclosed embodiment, since the functional scenario information is arranged according to pre-set interface parameters and existing status signals, for some vehicle terminals that do not have interface parameters set or only have a portion of interface parameters set, or the vehicle terminal's existing status signals do not include or only include a portion 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 requires the detection of real-time rainfall, but some vehicle terminals do not have a real-time rainfall detection sensor, so the real-time rainfall cannot be detected, which in turn causes the wiper control function to be unable to function normally. In this case, sending the software upgrade file for the wiper control function to the vehicle terminal does not make much sense.
[0255] 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 based on the vehicle information, wherein the vehicle information package includes the vehicle model and interface information.
[0256] In one embodiment of the present disclosure, after the cloud server generates a software upgrade file, it obtains the software version information from the vehicle terminal. If the software version information matches the version information corresponding to the software upgrade file, it is determined that the vehicle terminal's software does not need to be upgraded, and no software update message is sent. If the software version information does not match the version information corresponding to the software upgrade file, it is determined that the vehicle terminal's software needs to be upgraded, and a software update message is sent to the vehicle terminal. The software update message is used to instruct the vehicle owner whether to perform the software upgrade. Receiving the software upgrade request from the vehicle terminal indicates that the vehicle owner confirms the software upgrade, and the cloud server sends the software upgrade file to the vehicle terminal.
[0257] The in-vehicle software upgrade method provided by the disclosed embodiment includes: a cloud server orchestrates vehicle functional scenarios to obtain functional scenario information; automatically generates a script based on the functional scenario information to obtain a software upgrade file; and sends the software upgrade file to the in-vehicle terminal, which then deploys the software execution script on the in-vehicle terminal to perform the software upgrade. The technical solution provided by the disclosed embodiment performs software upgrades via software upgrade files sent from a cloud server to the in-vehicle terminal. This utilizes a more lightweight execution script to perform software upgrades, replacing executable files. The entire process does not rely on OTA, enabling flexible deployment of functions and shortening the upgrade cycle.
[0258] Figure 8 is a flowchart of a method for generating a service architecture code according to an embodiment of the present disclosure. This embodiment is applicable to generating a service architecture code for a vehicle. The method can be executed by a service architecture code generation device, which can be implemented using software and / or hardware and can be configured in an electronic device. The service architecture code generation method can also be applied to a cloud server that is in communication with an in-vehicle terminal.
[0259] The cloud server and the vehicle-mounted terminal are communicatively connected via a network, which may include, but is not limited to, a local area network, a wide area network, a public network, a private network, or a combination thereof. The network may be a computer network such as the Internet and / or various telecommunication networks (e.g., 3G / 4G / 5G mobile communication networks, WIFI, Bluetooth, ZigBee, etc.), and the embodiments of the present disclosure are not limited thereto.
[0260] Specifically, as shown in FIG8 , the service architecture code generation method provided by the embodiment of the present disclosure mainly includes steps S801 - S804 .
[0261] S801: Acquire vehicle service content and a communication protocol identifier bound to the vehicle service content.
[0262] The vehicle services can be understood as functional services provided by the vehicle to the owner, such as navigation, multimedia playback, driving recorder, etc. The vehicle service content can be understood as files describing the entire vehicle's electronic and electrical architecture.
[0263] In the embodiment of the present disclosure, the vehicle service content can be designed by a designer at the front end and then uploaded to an electronic device that executes the service architecture code generation method provided by the embodiment of the present disclosure. The embodiment of the present disclosure does not limit the design method of the vehicle service content.
[0264] Furthermore, based on the received vehicle service content, the service hierarchical relationship is abstracted and a matching data structure is formed. The data structure refers to a data structure that reflects the logical relationship between data elements, and the logical relationship refers to the relationship between the data elements.
[0265] In the disclosed embodiment, the Service Oriented Architecture (SOA) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. As the guiding direction for the current development of the vehicle software architecture, the service-oriented architecture defines and describes each function in the vehicle as a service. The service itself needs to be accurately described and encapsulated, and services are independent of each other. Services can be distributed in different system environments, and services can communicate with each other. Communication does not require that all services are in the same system environment, but only needs to follow the same communication protocol. Services all come with clear interface description files, and calling the interfaces of each or a single service in a specific order can implement the corresponding business processes.
[0266] In the embodiments of the present disclosure, the communication protocol identifier refers to an identifier used to represent the communication protocol. The specific representation method of the communication protocol identifier is no longer specifically limited in the embodiments of the present disclosure. The communication protocol identifier bound to the vehicle service content refers to the identifier corresponding to the communication protocol used to write the vehicle service content. The communication protocol identifier bound to the vehicle service content can be freely bound by the front-end staff. The embodiments of the present disclosure do not limit the specific communication protocol used by the vehicle service content.
[0267] In one embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based extensible service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol.
[0268] Service providers and consumers interact through service-based communication. The Automotive Open System Architecture (AutoSa) defines service-based communication protocols such as the Data Distribution Service (DDS) communication protocol, the IP-based scalable service-oriented SOME / IP communication protocol, and the Inter-Process Communication (IPC) protocol. Each electronic control unit implements the corresponding communication middle layer according to this definition and verifies it during testing.
[0269] The Data Distribution Service (DDS) is a data-centric middleware protocol and API standard published by the Object Management Group (OMG). It adopts a distributed publish / subscribe architecture and provides communication services in the form of middleware, emphasizing data-centricity. DDS middleware is a software layer that abstracts applications from the details of the operating system, network transmission, and underlying data formats. The same concepts and APIs are provided to different programming languages, allowing applications to exchange information between different operating systems, programming languages, and processing architectures. The underlying details, including data transmission formats, discovery, connections, reliability, protocols, and QoS policies, are managed by the middleware.
[0270] Among them, SOME / IP, the Scalable Service-Oriented Middleware over IP, is an automotive middleware solution for control messages and a scalable service-oriented protocol.
[0271] IPC, short for Inter Process Communication, is a protocol for inter-process communication. Two processes on the same machine can use IPC, but IPC cannot span physical machines. IPC includes centralized methods such as shared memory, queues, and semaphores.
[0272] S802: Perform abstract processing on the vehicle service content to generate a current system code corresponding to the vehicle service content.
[0273] In some embodiments of the present disclosure, system code is the program code written to implement system functionality. It is used to create, operate, and control the various components of the system and provide the required services and functions. The specific content of the system code will vary depending on business requirements. Abstracting vehicle service content involves summarizing and refining specific business requirements and implementation details to generate the corresponding system code.
[0274] In one embodiment of the present disclosure, the vehicle service content is represented in the form of a graph structure, and the vehicle service content is abstracted to generate the current system code corresponding to the vehicle service content, including: generating a data structure based on the connection relationship between each node in the graph structure; obtaining the content code included in each node; writing the content code as a data element into a set position of the data structure to obtain the current system code.
[0275] In the disclosed embodiment, the designer designs the service architecture at the front end and receives the vehicle service content uploaded by the designer through the front-end device. The vehicle service content is represented in the form of a graph structure, and each graph node in the graph structure represents the association relationship between the vehicle service levels. The service level can be understood as the level corresponding to each functional service. For example: the wiper control function needs to obtain the weather conditions of the vehicle's location, and the wiper control function service level needs an interface to obtain the positioning information in the navigation service function. The wiper control function needs an interface to connect with the navigation function. Another example: the breathing light in the car needs to move with the music, and the same breathing light control function service has an association relationship with the multimedia control function service.
[0276] In the disclosed embodiment, the relationships between multiple service levels included in a graph structure are abstracted to obtain a corresponding data structure. The corresponding data structure refers to a data structure that clearly and unambiguously represents the relationships between the service levels. The content code included in each graph node is obtained and written as a data element into a set location in the data structure to obtain the current system code.
[0277] S803: Obtain a target matching rule corresponding to the bound communication protocol identifier.
[0278] In one embodiment of the present disclosure, a matching rule corresponding to the communication protocol identifier is pre-set. When the bound communication protocol identifier is obtained, a query is performed in the above-mentioned corresponding relationship based on the communication protocol identifier, and the matching rule obtained by the query is used as the target matching rule corresponding to the bound communication protocol identifier.
[0279] In one embodiment of the present disclosure, depending on the communication protocol bound to the vehicle service, the operator needs to set different configuration information based on the different communication protocols, where the configuration information may also be referred to as a configuration item. The specific parameters of the configuration information are set by the operator and are not specifically limited in the present embodiment.
[0280] In an embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based extensible service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol; when the communication protocol is the DDS communication protocol, the target matching rule includes a correspondence between a current system code and an interactive data language IDL class code; when the communication protocol is the SOME / IP communication protocol, the matching rule includes a correspondence between a current system code and an ARXML class code; when the communication protocol is the IPC communication protocol, the matching rule includes a correspondence between a current system code and an extensible markup language XML class code.
[0281] S304: Utilize the target matching rule to instantiate the current system code to obtain a service architecture code.
[0282] In the disclosed embodiments, instantiating system code refers to converting abstract concepts within the service architecture code into concrete instances for actual operation and operation within the vehicle system. A service architecture typically defines abstract concepts and components, such as service interfaces, data models, and processing logic. These abstract concepts must be concretized in the actual operational environment to provide practical functionality and services.
[0283] In the disclosed embodiments, the service architecture code is similar to middleware, a software layer between the communication protocol layer and the application program, enabling the various components of the system to communicate and share data more easily. This service architecture code simplifies the development of distributed systems, allowing software developers to focus on the application's business rather than on the mechanisms for transferring information between the application and the system.
[0284] In one embodiment of the present disclosure, the service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to transmit data with the application code.
[0285] Specifically, the service architecture code includes code files and interface files, wherein the types of the interface files include: interface description language IDL type, general configuration information ARXML type, extensible markup language XML type, and the types of the code files include: C++ type, JAVA type.
[0286] In one embodiment of the present disclosure, a standard interface file is defined for vehicle service content. Services at different levels implement overall functionality by calling interfaces and passing information to each other. The calling methods and transferable data between services at two levels are solidified according to functional requirements, and consistency can be ensured by following the standard interface design template.
[0287] The description language of the interface file can be any one of the interface description language IDL type, general configuration information ARXML type, and extensible markup language XML type, which is not specifically limited in the embodiment of the present disclosure.
[0288] Among them, the types of the code files include: C++ type and JAVA type. The code type of the service architecture code can be selected according to the code type adopted by the vehicle bottom layer or application layer.
[0289] In one embodiment of the present disclosure, service architecture code offers the highest reusability for application software. It can call standard function interfaces reserved by the underlying software to manipulate hardware without having to worry about the specific implementation details of the underlying software. This reduces the software's dependence on the hardware platform. Typically, service architecture code involves various call interfaces and converts data into standard data interfaces to support these interfaces and standardize the implementation of various applications.
[0290] In one embodiment of the present disclosure, the target matching rules include: the first type of data elements defined by the system code corresponding standard, and the second type of data elements corresponding to the communication protocol standard, and the correspondence between the first type of data elements and the second type of data elements; the current system code is instantiated using the target matching rules to obtain the service architecture code, including: traversing the first type of data elements included in the current system code, creating the corresponding second type of data element for each first type of data element, and obtaining the service architecture code.
[0291] The first category of data elements can be understood as data type definitions and other content included in system code. The second category of data elements can be understood as various types of data included in communication protocol standards. The first and second category data elements represent the same meaning, differing only in how they are represented using different machine languages. For example, if the first data element is "int 16" and the corresponding second category data element is "short int 16," then a corresponding "short int 16" is created for "int 16."
[0292] The instantiation operation is performed on each first-category data element in the current system code to obtain the service architecture code.
[0293] In one embodiment of the present disclosure, the method further includes: obtaining the verification rules corresponding to the bound communication protocol identifier; obtaining the code statements included in the service architecture code; for each code statement, determining whether the code statement complies with the verification rules; if it complies with the verification rules, the verification passes; if it does not comply with the verification rules, the verification fails.
[0294] In the disclosed embodiment, each layer of service data in the data structure is verified layer by layer. After the verification is successful, an intermediate layer file is generated based on the data structure and the configuration information to ensure the availability of the final generated code.
[0295] On the basis of the above embodiments, a flowchart of service architecture code generation is provided in the embodiments of the present disclosure, as shown in Figure 3. The business process supported by the present disclosure is: the SOA architect designs the service architecture at the front end, obtains the vehicle service content, binds the service content with the communication protocol identifier, and sets the configuration information of the communication protocol. After completing and submitting the vehicle service content, the architect executes the service architecture code generation method provided in the embodiments of the present disclosure to generate the service architecture code; the service architecture code is abstractly verified layer by layer. After passing the verification, the generated service code will be automatically uploaded to the code repository, and the service developer will develop related functions based on the generated service architecture code.
[0296] The service architecture code generation method provided by the embodiment of the present disclosure includes: obtaining vehicle service content and the communication protocol identifier bound to the vehicle service content; abstracting the vehicle service content to generate the current system code corresponding to the vehicle service content; obtaining the target matching rule corresponding to the bound communication protocol identifier; and instantiating the current system code using the target matching rule to obtain the service architecture code. The technical solution provided by the present disclosure first abstracts the vehicle service content to obtain the current system code, and then determines the target matching rule that matches the communication protocol according to the bound communication protocol code, and instantiates the current system code according to the target matching rule to obtain the service architecture code. Different communication protocol identifiers can be matched to different matching rules, and then the service architecture codes corresponding to different communication protocols can be obtained, thereby realizing automatic service architecture code generation for multiple communication protocols and effectively improving the development efficiency of application services.
[0297] On the basis of the above embodiments, the "generating the communication protocol identifier bound to the vehicle service content" is optimized in the embodiment of the present disclosure. After optimization, the generating of the communication protocol identifier bound to the vehicle service content includes: in response to receiving a communication protocol identifier modification instruction input by the user, releasing the binding relationship between the bound communication protocol identifier and the vehicle service content; obtaining a new communication protocol identifier corresponding to the modification instruction; establishing a binding relationship between the new communication protocol identifier and the vehicle service content, and obtaining the communication protocol identifier bound to the vehicle service content.
[0298] In the disclosed embodiment, after a user generates service architecture code using the service architecture code generation method provided in the disclosed embodiment, if the designer wishes to use service architecture code under a different communication protocol, a communication protocol identifier modification instruction input by the user can be received. The binding relationship between the bound communication protocol identifier and the vehicle service content is contacted; a new communication protocol identifier corresponding to the modification instruction is obtained; a binding relationship between the new communication protocol identifier and the vehicle service content is established to obtain the communication protocol identifier bound to the vehicle service content. The step of "obtaining a target matching rule corresponding to the bound communication protocol identifier" and subsequent steps are then re-executed.
[0299] For example, if the vehicle service content described by the designer is bound to the SOME / IP communication protocol, the service architecture code for the SOME / IP communication protocol can be obtained using the service architecture code generation method provided in the embodiments of this disclosure. If the communication protocol corresponding to the communication protocol identifier modification instruction entered by the user is the IPC communication protocol, the binding relationship between the SOME / IP communication protocol and the vehicle service content is released, and the binding relationship between the SOME / IP communication protocol and the vehicle service content is established. The step of "obtaining a target matching rule corresponding to the bound communication protocol identifier" and subsequent steps are then executed to obtain the service architecture code for the IPC communication protocol.
[0300] In the embodiment of the present disclosure, it is only necessary to modify the communication protocol bound to the vehicle service content to obtain the service architecture code under the communication protocol, thereby effectively improving the development efficiency of the application service.
[0301] Figure 9 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 the vehicle-mounted terminal, and the cloud server is communicatively connected to the vehicle-mounted terminal.
[0302] Specifically, as shown in FIG9 , the vehicle-mounted software upgrading device 20 provided by the embodiment of the present disclosure mainly includes a software toolkit deployment module 21 , an upgrade file receiving module 22 and an upgrade file deployment module 23 .
[0303] Among them, the toolkit deployment module 21 is used to deploy the software development toolkit corresponding to the service architecture code in the vehicle terminal; the upgrade file receiving module 22 is used to receive the software upgrade file, wherein the software upgrade file is in script format; the upgrade file deployment module 23 is used to deploy the software upgrade file in the environment running the software development toolkit to perform software upgrade.
[0304] 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 for acquiring the interface file included in the software upgrade file; an API interface calling unit for calling the API interface corresponding to the interface file; and a data transmission unit for realizing data transmission between the software upgrade file and the software development kit based on the called API interface.
[0305] 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.
[0306] In one possible embodiment, the device also includes a generation module. Before deploying the software development kit corresponding to the service architecture code in the vehicle-mounted terminal, the generation module is used to: obtain vehicle service content and the communication protocol identifier bound to the vehicle service content; abstract the vehicle service content to generate the current system code corresponding to the vehicle service content; obtain the target matching rule corresponding to the bound communication protocol identifier; and use the target matching rule to instantiate the current system code to obtain the service architecture code.
[0307] In one embodiment of the present disclosure, obtaining the communication protocol identifier bound to the vehicle service content includes: in response to receiving a communication protocol identifier modification instruction input by a user, releasing the binding relationship between the bound communication protocol identifier and the vehicle service content; obtaining a new communication protocol identifier corresponding to the modification instruction; establishing a binding relationship between the new communication protocol identifier and the vehicle service content, and obtaining the communication protocol identifier bound to the vehicle service content.
[0308] In one embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based extensible service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol; when the communication protocol is the DDS communication protocol, the target matching rule includes a correspondence between a current system code and an interactive data language IDL class code; when the communication protocol is the SOME / IP communication protocol, the matching rule includes a correspondence between a current system code and an ARXML class code; when the communication protocol is the IPC communication protocol, the matching rule includes a correspondence between a current system code and an extensible markup language XML class code.
[0309] In one embodiment of the present disclosure, the vehicle service content is represented in the form of a graph structure, and the vehicle service content is abstracted to generate the current system code corresponding to the vehicle service content, including: generating a data structure based on the connection relationship between each node in the graph structure; obtaining the content code included in each node; writing the content code as a data element into a set position of the data structure to obtain the current system code.
[0310] In one embodiment of the present disclosure, the target matching rules include: the first type of data elements defined by the system code corresponding standard, and the second type of data elements corresponding to the communication protocol standard, and the correspondence between the first type of data elements and the second type of data elements; the current system code is instantiated using the target matching rules to obtain the service architecture code, including: traversing the first type of data elements included in the current system code, creating the corresponding second type of data element for each first type of data element, and obtaining the service architecture code.
[0311] In one embodiment of the present disclosure, it also includes: obtaining the verification rules corresponding to the bound communication protocol identifier; obtaining the code statements included in the service architecture code; for each code statement, judging whether the code statement complies with the verification rules; if it complies with the verification rules, the verification passes; if it does not comply with the verification rules, the verification fails.
[0312] In one embodiment of the present disclosure, the service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to transmit data with the application code.
[0313] The vehicle-mounted software upgrade device of the embodiment shown in FIG9 can be used to execute the technical solutions of the method embodiments shown in FIG1 and FIG2 . Its implementation principles and technical effects are similar and will not be described in detail here.
[0314] Figure 10 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 to the vehicle-mounted terminal.
[0315] Specifically, as shown in FIG10 , the vehicle-mounted software upgrade device 30 provided in the embodiment of the present disclosure mainly includes a function scenario information determination module 31 , an upgrade file determination module 32 and an upgrade file sending module 33 .
[0316] Among them, the scene information determination module 31 is used to arrange the vehicle function scenes and obtain the function scene information; the upgrade file determination module 32 is used to automatically generate scripts for the function scene information and obtain software upgrade files; the upgrade file sending module 33 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.
[0317] 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.
[0318] In one possible embodiment, 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.
[0319] In one possible embodiment, 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 the 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 the 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.
[0320] The vehicle-mounted software upgrade device of the embodiment shown in FIG10 can be used to execute the technical solutions of the method embodiments shown in FIG4 and FIG7 . Its implementation principles and technical effects are similar and will not be described in detail here.
[0321] Figure 11 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 the vehicle-mounted terminal, and the cloud server is communicatively connected to the vehicle-mounted terminal.
[0322] Specifically, as shown in FIG11 , the vehicle-mounted software upgrade device provided by the embodiment of the present disclosure mainly includes a software toolkit deployment module 41 , an upgrade file receiving module 42 and an upgrade file deployment module 43 .
[0323] Among them, the toolkit deployment module 41 is used to deploy the software development toolkit corresponding to the service architecture code in the vehicle terminal; the upgrade file receiving module 42 is used to receive the software upgrade file, wherein the software upgrade file is in script format; the upgrade file deployment module 43 is used to deploy the software upgrade file in the environment running the software development toolkit to perform software upgrade.
[0324] 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 for acquiring the interface file included in the software upgrade file; an API interface calling unit for calling the API interface corresponding to the interface file; and a data transmission unit for realizing data transmission between the software upgrade file and the software development kit based on the called API interface.
[0325] 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.
[0326] The service architecture code generation device of the embodiment shown in FIG11 can be used to execute the technical solution of the method embodiment shown in FIG6 . Its implementation principle and technical effects are similar and will not be repeated here.
[0327] Figure 12 is a structural diagram of a service architecture code generation device in an embodiment of the present disclosure. This embodiment can be applied to the situation of automatically generating an intermediate layer code framework. The service architecture code generation device can be implemented in software and / or hardware, and the service architecture code generation device can be configured in an electronic device.
[0328] Specifically, as shown in FIG12 , the service architecture code generation device provided by the embodiment of the present disclosure mainly includes an acquisition module 51 , a code generation module 52 , a matching rule acquisition module 53 and a code processing module 54 .
[0329] Among them, the acquisition module 51 is used to obtain the vehicle service content and the communication protocol identifier bound to the vehicle service content; the code generation module 52 is used to abstract the vehicle service content and generate the current system code corresponding to the vehicle service content; the matching rule acquisition module 53 is used to obtain the target matching rule corresponding to the bound communication protocol identifier; the code processing module 54 is used to use the target matching rule to process the current system code to obtain the service architecture code.
[0330] The service architecture code generation device provided by the embodiment of the present disclosure is used to execute the following process: obtain vehicle service content and the communication protocol identifier bound to the vehicle service content; abstract the vehicle service content to generate the current system code corresponding to the vehicle service content; obtain the target matching rule corresponding to the bound communication protocol identifier; use the target matching rule to instantiate the current system code to obtain the service architecture code. The technical solution provided by the present disclosure first abstracts the vehicle service content to obtain the current system code, and then determines the target matching rule that matches the communication protocol according to the bound communication protocol code, and instantiates the current system code according to the target matching rule to obtain the service architecture code. Different communication protocol identifiers can be matched to different matching rules, and then the service architecture codes corresponding to different communication protocols can be obtained, thereby realizing automatic service architecture code generation for multiple communication protocols and effectively improving the development efficiency of application services.
[0331] In one embodiment of the present disclosure, the acquisition module includes: a binding release unit, which is used to release the binding relationship between the bound communication protocol identifier and the vehicle service content in response to receiving a communication protocol identifier modification instruction input by the user; an identifier acquisition unit, which is used to obtain a new communication protocol identifier corresponding to the modification instruction; and a binding establishment unit, which is used to establish a binding relationship between the new communication protocol identifier and the vehicle service content, and obtain the communication protocol identifier bound to the vehicle service content.
[0332] In one embodiment of the present disclosure, the communication protocol includes at least one of the following: a data distribution service DDS communication protocol, an IP-based scalable service-oriented SOME / IP communication protocol, and an inter-process communication IPC protocol;
[0333] When the communication protocol is the DDS communication protocol, the target matching rule includes a correspondence between the current system code and the interactive data language IDL class code;
[0334] When the communication protocol is the SOME / IP communication protocol, the matching rule includes a correspondence between the current system code and the ARXML class code;
[0335] When the communication protocol is an IPC communication protocol, the matching rule includes a correspondence between a current system code and an extensible markup language XML class code.
[0336] In one embodiment of the present disclosure, the vehicle service content is represented in the form of a graph structure, and the code generation module includes: a data structure generation unit, which is used to generate a data structure based on the connection relationship between each node in the graph structure; a content code acquisition unit, which is used to obtain the content code included in each node; and a current system code determination unit, which is used to write the content code as a data element into a set position of the data structure to obtain the current system code.
[0337] In one embodiment of the present disclosure, the target matching rules include: the first type of data elements defined by the system code corresponding standard, and the second type of data elements corresponding to the communication protocol standard, and the corresponding relationship between the first type of data elements and the second type of data elements; the code processing module is specifically used to traverse the first type of data elements included in the current system code, create a corresponding second type of data element for each first type of data element, and obtain the service architecture code.
[0338] In one embodiment of the present disclosure, it also includes: a verification rule acquisition module, used to obtain the verification rules corresponding to the bound communication protocol identifier; a code verification module, used to obtain the code statements included in the service architecture code; for each code statement, determine whether the code statement complies with the verification rules; if it complies with the verification rules, the verification passes; if it does not comply with the verification rules, the verification fails.
[0339] In one embodiment of the present disclosure, the service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to transmit data with the application code.
[0340] The service architecture code generation device of the embodiment shown in FIG12 can be used to execute the technical solution of the method embodiment shown in FIG8 . Its implementation principle and technical effects are similar and will not be repeated here.
[0341] Figure 13 is an interactive flow chart of a vehicle software upgrade method provided by an embodiment of the present disclosure. This embodiment is applicable to the situation of upgrading the software in the vehicle ECU. As shown in Figure 13, the vehicle software upgrade system includes a cloud server 61 and a vehicle terminal 62. The cloud server 61 is communicatively connected with the vehicle terminal 62. The cloud server 61 is used to execute the vehicle software upgrade method described in any one of the embodiments shown in Figure 6 above, and the vehicle terminal 62 is used to execute the vehicle software upgrade method described in any one of the embodiments shown in Figure 7 above.
[0342] Specifically, as shown in FIG13 , the vehicle software upgrade method provided by the embodiment of the present disclosure mainly includes the following steps:
[0343] S901: Cloud server 61 arranges vehicle functional scenarios to obtain functional scenario information. S902: Cloud server 61 automatically generates a script based on the functional scenario information to obtain a software upgrade file. S903: Cloud server 61 obtains vehicle information corresponding to multiple on-board terminals. S904: 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 upgrade message is sent. S905: Cloud server 61 sends a software upgrade message to the on-board terminal 62. S906: In response to the operation on the software upgrade message, the on-board terminal 62 generates a software upgrade request. S907: The on-board terminal 62 sends the software upgrade request to cloud server 61. S908: Cloud server 61 sends the software upgrade file to the on-board terminal. S909: The software upgrade file is deployed in an environment running a software development kit to perform the software upgrade.
[0344] Figure 14 is a schematic diagram of the structure of an electronic device in an embodiment of the present disclosure. The following specifically refers to Figure 14, which shows a schematic diagram of the structure of an electronic device 70 suitable for implementing the embodiment of the present disclosure. The electronic device 70 in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable terminal devices, etc., and fixed terminals such as digital TVs, desktop computers, smart home devices, etc. The electronic device shown in Figure 14 is only an example and should not bring any limitations 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.
[0345] As shown in FIG14 , the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703 to implement the vehicle software upgrade method of the embodiment described in the present disclosure. Various programs and data required for the operation of the terminal device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0346] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the terminal device 700 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 illustrates the terminal device 700 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.
[0347] 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 program code for executing the method shown in the flowchart, thereby implementing the vehicle software upgrade method described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0348] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0349] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can 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 later developed network.
[0350] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0351] 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 embodiment.
[0352] 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 stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the 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).
[0353] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0354] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0355] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0356] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0357] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the present disclosure is not limited to technical solutions formed by specific combinations of the aforementioned technical features. It also encompasses other technical solutions formed by any combination of the aforementioned technical features or their equivalents, without departing from the scope of the above disclosure. For example, a technical solution formed by replacing the aforementioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0358] 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 have been 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.
[0359] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A vehicle software upgrade method, characterized in that: 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. The method according to claim 1, characterized in that Before deploying the software development kit corresponding to the service architecture code in the vehicle terminal, the method further includes: Obtaining vehicle service content and a communication protocol identifier bound to the vehicle service content; Abstracting the vehicle service content to generate a current system code corresponding to the vehicle service content; Obtaining a target matching rule corresponding to the bound communication protocol identifier; The current system code is instantiated using the target matching rule to obtain the service architecture code.
5. The method according to claim 4, characterized in that The obtaining of the communication protocol identifier bound to the vehicle service content includes: In response to receiving a communication protocol identifier modification instruction input by a user, releasing the binding relationship between the bound communication protocol identifier and the vehicle service content; Obtaining a new communication protocol identifier corresponding to the modification instruction; A binding relationship between the new communication protocol identifier and the vehicle service content is established to obtain the communication protocol identifier bound to the vehicle service content.
6. The method according to claim 4, characterized in that The vehicle service content is represented in the form of a graph structure, and the abstract processing of the vehicle service content is performed to generate a current system code corresponding to the vehicle service content, including: Generate a data structure based on the connection relationship between each node in the graph structure; Get the content code included in each node; The content code is written as a data element into a set position of the data structure to obtain the current system code.
7. The method according to claim 4, characterized in that The target matching rule includes: a first type of data element defined by the system code corresponding standard, a second type of data element corresponding to the communication protocol standard, and a corresponding relationship between the first type of data element and the second type of data element; The current system code is instantiated using the target matching rule to obtain a service architecture code, including: The first-category data elements included in the current system code are traversed, and a corresponding second-category data element is created for each first-category data element to obtain a service architecture code.
8. The method according to claim 4, characterized in that After instantiating the current system code by using the target matching rule to obtain the service architecture code, the method further includes: Obtaining the verification rule corresponding to the bound communication protocol identifier; Obtain code statements included in the service architecture code; For each code statement, determine whether the code statement complies with the verification rule; If the verification rules are met, the verification passes; if the verification rules are not met, the verification fails.
9. The method according to claim 4, characterized in that The service architecture code includes an interface file, which is used to define various interfaces and / or functions, wherein the interfaces and / or functions are used to perform data transmission with the application code.
10. A software upgrade method, characterized in that: The method comprises: 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.
11. The method according to claim 10, 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.
12. The method according to claim 10, 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.
13. The method according to claim 12, 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.
14. 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.
15. 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.
16. 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 13.
17. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 13 when executed by a processor.
18. A vehicle, characterized in that: The vehicle is used to perform the method according to any one of claims 1-9.
19. 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-mounted terminal, the vehicle is the vehicle as described in claim 18, and the cloud server is used to execute the vehicle-mounted software upgrade method as described in any one of claims 10-13.
Citation Information
Patent Citations
Energy controller APP upgrading method
CN113535200A
Service orchestration script execution system and method
CN114546387A
Updating method and device of vehicle diagnosis equipment and server
CN115032971A
Method for judging availability of service scene
CN115277522A
Flexible upgrade of multi-subsystem products
US20210334082A1
Cited By
Concurrent software upgrading method and device
CN119311296A
Software development kit management method, device, equipment and storage medium
CN119781797A
Software development kit management method, device, equipment and storage medium
CN119781797B
