Software upgrade method, apparatus, and system
By distributing and verifying upgrade packages across multiple terminal components, the method addresses storage insufficiencies in single module downloads, improving the success rate and efficiency of software updates in intelligent connected vehicles.
Patent Information
- Application Number
- JP2022528690
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-18
- Filing Date
- 2020-06-28
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2040-06-28
AI Technical Summary
Conventional single module download methods for terminal software upgrades in intelligent connected vehicles face high storage requirements and fail when local resources are insufficient, leading to low upgrade success rates.
A method and system that utilizes storage resources across multiple components within the terminal, distributing and verifying upgrade packages efficiently to ensure sufficient storage capacity, leveraging network-side and terminal-side coordination for optimal resource utilization.
Enhances the success rate of software upgrades by fully utilizing available storage resources, reducing the storage pressure on individual components, and ensuring reliable and efficient software updates.
Smart Images

Figure 0007562661000001 
Figure 0007562661000002 
Figure 0007562661000003
Abstract
Description
[Technical field]
[0002] The present invention relates to a terminal software upgrade technology, and in particular to a software upgrade method, apparatus and system for intelligent connected vehicles. [Background technology]
[0003] With the development of intelligent connected vehicles, online upgrade of automobile components by using Over the Air (OTA) technology has become an important feature of intelligent connected vehicles. Vehicle manufacturers use the OTA feature to upgrade the relevant software of vehicles, which helps manufacturers reduce recall costs, respond quickly to requests, and improve user experience.
[0004] An intelligent connected vehicle includes multiple components, such as a central gateway, a T-box (Telematics BOX, a vehicle communication terminal in the Internet of Vehicles), a Human-Machine Interaction (HMI) controller, a Mobile Data Controller (MDC), and an Advanced Driving Assistant System (ADAS). To implement an OTA-based upgrade of the entire vehicle, multiple components in the vehicle may need to be upgraded. In this case, upgrade software with a relatively large storage capacity needs to be downloaded. In addition to intelligent connected vehicles, terminals include various forms of existence, such as smartphones, industrial Internet of Things devices, and intelligent robots. In addition, with the advancement of intelligent technology, terminals implement increasing functions but have increasingly complex internal structures. Therefore, during terminal software upgrades, the requirements for terminal storage space are becoming higher and higher.
[0005] In the prior art, a single-module download solution is used. Specifically, one upgrade control module is used to complete the download, storage, block division and distribution of the terminal software upgrade package, and control each component in the terminal to complete the upgrade operation. If the data volume of the software upgrade package is very large, such a single-module download policy puts forward a relatively high requirement for the storage space of the upgrade control module.
[0006] If the upgrade control module has sufficient storage resources, as shown in FIG. 1, the method for downloading a terminal software upgrade package based on a single module includes the following steps:
[0007] (1) Download phase: After the OTA cloud-side device starts downloading, the upgrade control module checks its own storage resources, and if the storage resources meet the requirements for downloading the terminal software upgrade package, the upgrade control module downloads all the software upgrade packages from the OTA cloud-side device and verifies the integrity of the downloaded files.
[0008] (2) Distribution phase: The upgrade control module divides the software upgrade package and distributes the upgrade package blocks to the components in the terminal that need to be upgraded.
[0009] (3) Installation phase: The upgrade control module installs the software upgrade package and controls the components that need to be upgraded to activate the upgrade software.
[0010] As shown in FIG. 2, the method of downloading the terminal software upgrade package based on a single module, if there are insufficient storage resources in the upgrade control module, after the OTA cloud side device starts the download, the upgrade control module checks its own storage resources, and if the storage resources do not meet the storage requirements of the terminal software upgrade package, the upgrade control module will return information that the resources are insufficient, and terminate the download, leading to the failure of the upgrade.
[0011] It can be seen that when the local storage resources in the upgrade control module are insufficient, the terminal software upgrade is very likely to fail. Therefore, a method for improving the success rate of the terminal software upgrade is urgently needed. Summary of the Invention [Means for solving the problem]
[0012] In consideration of the above technical problems in the prior art, the embodiments of the present invention provide a software upgrade method, apparatus and system. In the claims of the present invention and the abstract of this specification, "software" refers to software in a broad sense, including but not limited to firmware, computer programs, operating systems, drivers, system software, or application programs.
[0013] According to a first aspect, a software upgrade method is provided, the method including: receiving storage resource information of at least two components in a terminal, the storage resource information including at least an available storage capacity of each of the at least two components, and the at least two components corresponding to the at least two available storage capacities; generating storage resource feedback information based on the storage resource information, the storage resource feedback information including at least an available storage capacity of each component; transmitting the storage resource feedback information to a network side device; receiving upgrade package block information generated by the network side device, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks for terminal software upgrade and a plurality of components for storing the plurality of upgrade package blocks, and the plurality of components are some or all of the at least two components; generating at least one indication information used to indicate the plurality of components to obtain the plurality of upgrade package blocks based on the upgrade package block information, and the plurality of components corresponding one-to-one to the plurality of available storage capacities; and transmitting the at least one indication information to the plurality of components.
[0014] The above method is a software upgrade method performed on the terminal side. "At least a part" is equivalent to "a part or all". Optionally, the storage resource feedback information further includes an identifier of each of at least a part of the at least two components. The at least two components may be all components in the terminal, or only some components in the terminal, because there may be a component whose storage resource is exhausted or a component that reserves the storage resource for another operation. The step of receiving the storage resource information of the at least two components in the terminal may be performed by one or more receiving methods. The receiving methods include, but are not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing reception through a wiring on a hardware interface or a hardware circuit board, obtaining parameters from a software module, or reading information from a storage device. In addition to the available storage capacity of each of the at least two components, the storage resource information may include other information, such as the number, identifiers, or total available storage capacity of the at least two components. Not all of the available storage capacity of the at least two components is placed in the storage resource feedback information, because the terminal side may determine that one or more networking modules in the at least two components may not be used to store the terminal software upgrade package based on the available storage capacity in the storage resource information. Of course, the aforementioned determination operation may be performed on the network side instead of the terminal side. Since the upgrade software does not need to occupy all of the at least two components, the upgrade software may be stored in multiple configurations. The element may be a part of at least two components. The step of transmitting at least one instruction information may be performed in one or more transmission manners. The transmission manners include, but are not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing transmission through wiring on a hardware interface or a hardware circuit board, inputting parameters into a software module, or writing information into a memory. The storage resource information of the terminal is reported to the network side device, and the network side device adaptively obtains multiple upgrade package blocks through division based on the actual available storage resources in the terminal. This makes full use of the storage resources of multiple components in the terminal and reduces the software package storage pressure of the terminal side components compared with the prior art. In addition, since a relatively large amount of random storage resources needs to be occupied during block division of a relatively large data packet, the storage resource requirements in the terminal-side components can be reduced when block division is performed for the upgrade package on the network side. Finally, the success rate of the software upgrade can be increased. Therefore, the software upgrade method is more suitable for software upgrade of terminals (especially intelligent connected vehicles).
[0015] According to the first aspect, in a first possible implementation form of the software upgrade method, the upgrade package block information further includes a download address of each of the multiple upgrade package blocks, and each instruction information in the at least one instruction information includes a download address of at least one of the multiple upgrade package blocks. The terminal software may be stored centrally in one device on the network side, or may be stored in a distributed manner in multiple devices on the network side. Therefore, optionally, there are one or more download addresses for the multiple upgrade package blocks, or at least some of the multiple upgrade package blocks share one download address. The download address is used to indicate to the component the network-side device in which the upgrade package block corresponding to the component is located.
[0016] According to the first aspect or the first possible implementation form of the first aspect, in a second possible implementation form of the software upgrade method, the upgrade package block information further includes verification information of each of the multiple upgrade package blocks, and each instruction information in the at least one instruction information includes verification information of at least one of the multiple upgrade package blocks. Each upgrade package block is verified independently, so that the computing resources of the device in the terminal can be more fully utilized. Optionally, the upgrade package block information further includes the number of the multiple upgrade package blocks, and the method further includes performing an overall verification based on the verification result of each upgrade package block and the number of the multiple upgrade package blocks.
[0017] According to the first aspect or any one of the above-mentioned implementations of the first aspect, in a third possible implementation of the software upgrade method, the at least one instruction information includes an external communication resource used by the multiple components to acquire at least one of the multiple upgrade package blocks. The external communication resource is a communication resource used by a component in the terminal to communicate with a device outside the terminal (e.g., a cellular communication resource applied to inter-vehicle network communication). The external communication resource includes, but is not limited to, a communication component, a communication channel, a communication interface, or another communication resource used for cellular communication, satellite communication, Bluetooth communication, Wi-Fi (Wireless Fidelity, wireless local area network), or wired communication. Optionally, the external communication resource includes an external communication resource of each of the multiple components, or an external communication resource of one or more components other than the multiple components in the terminal. Optionally, each of the multiple components acquires one of the multiple upgrade package blocks by using the external communication resource of the component, or by using an external communication resource of the terminal other than the external communication resource of the component.
[0018] According to the first aspect or any one of the above-mentioned implementations of the first aspect, in a fourth possible implementation of the software upgrade method, the at least one instruction information includes time information used by the multiple components to acquire at least one of the multiple upgrade package blocks. Optionally, the time information indicates that the multiple components acquire the multiple upgrade package blocks simultaneously or sequentially. Optionally, the time information indicates that the multiple components acquire the at least one upgrade package block periodically.
[0019] According to the first aspect or any one of the above-mentioned implementation forms of the first aspect, in a fifth possible implementation form of the software upgrade method, before the step of generating storage resource feedback information, the method further includes a step of determining that the available storage resources in the terminal meet the storage requirements for the terminal software upgrade based on the available storage capacity of each of the at least two components. When starting the download to the terminal device, the network side device sends the storage requirements of the multiple terminal software upgrade packages to be downloaded to the terminal device, and the terminal device determines whether the available storage resources in the terminal meet the storage requirements of the multiple terminal software upgrade packages. In this way, the terminal device has higher autonomy and privacy. Optionally, if the difference obtained by subtracting the total storage space occupied by the software upgrade packages from the total available storage capacity exceeds a predetermined threshold, it is determined that the available storage resources in the terminal meet the storage requirements for the terminal software upgrade.
[0020] According to the first aspect or any one of the above-mentioned implementation forms of the first aspect, in a sixth possible implementation form of the software upgrade method, the at least one instruction information is a plurality of instruction information, and the plurality of instruction information corresponds one-to-one with the plurality of components, and the step of transmitting the at least one instruction information to the plurality of components includes a step of transmitting one instruction information corresponding to the component among the plurality of instruction information to each of the plurality of components. Optionally, the plurality of instruction information is transmitted simultaneously or sequentially.
[0021] According to the first aspect or any one of the above-mentioned implementations of the first aspect, in a seventh possible implementation of the software upgrade method, the at least one instruction information is one instruction information, and the step of sending the at least one instruction information to the multiple components includes a step of sending the one instruction information to each of the multiple components. In this way, the one instruction information includes relevant information used by each of the multiple components to obtain one of the multiple upgrade package blocks. Optionally, the one instruction information is sent to all of the multiple components simultaneously or sequentially.
[0022] According to the first aspect or any one of the above-mentioned implementation forms of the first aspect, in an eighth possible implementation form of the software upgrade method, the at least one instruction information is one instruction information, and the step of transmitting the at least one instruction information to the multiple components includes a step of transmitting the one instruction information to one of the multiple components. In this way, the one instruction information may be transmitted between the multiple components.
[0023] According to the first aspect or any one of the above-mentioned implementation forms of the first aspect, in a ninth possible implementation form of the software upgrade method, the method further includes a step of sending download instructions to a plurality of components, the download instructions being used to instruct the plurality of components to obtain a plurality of upgrade package blocks in one-to-one correspondence with the plurality of components.
[0024] According to the first aspect or any one of the aforementioned implementation forms of the first aspect, in a tenth possible implementation form of the software upgrade method, the method further includes a step of sending an upgrade package distribution instruction to a plurality of components, wherein the upgrade package distribution instruction is used to instruct the plurality of components to send one or more of the plurality of upgrade package blocks to at least one component in a terminal other than the plurality of components, and the one or more upgrade package blocks are obtained by the plurality of components by parsing a plurality of upgrade package blocks that correspond one-to-one to the plurality of components.
[0025] According to the first aspect or any one of the aforementioned implementation forms of the first aspect, in an eleventh possible implementation form of the software upgrade method, the method further includes a step of sending an installation enablement instruction to a plurality of components, the installation enablement instruction being used to instruct the plurality of components to install and enable at least one of the upgrade software, and the at least one upgrade software being obtained by the plurality of components by parsing a plurality of upgrade package blocks that correspond one-to-one to the plurality of components.
[0026] According to the first aspect or any one of the aforementioned implementations of the first aspect, in a twelfth possible implementation of the software upgrade method, the available storage capacity includes at least one of an available storage capacity in a random access memory RAM or an available storage capacity in a read-only memory ROM.
[0027] According to the first aspect or any one of the aforementioned implementation forms of the first aspect, in a thirteenth possible implementation form of the software upgrade method, each of the multiple upgrade package blocks includes all or a portion of an upgrade software package used to upgrade at least one component within the terminal.
[0028] According to a second aspect, a software upgrade method is provided, which is a software upgrade method performed on a network side, and includes the steps of: receiving storage resource feedback information from a terminal device, the storage resource feedback information including at least an available storage capacity of each of a plurality of components in the terminal device and capable of being used to store a plurality of upgrade package blocks; dividing one or more software upgrade packages into a plurality of upgrade package blocks based on the storage resource feedback information, the plurality of upgrade package blocks corresponding one-to-one with at least a portion of the available storage capacity of all the components; generating upgrade package block information, the upgrade package block information including at least a correspondence relationship between the plurality of upgrade package blocks and at least a portion of the available storage capacity of all the components; and transmitting the upgrade package block information to the terminal device.
[0029] Optionally, the step of dividing one or more software upgrade packages into a plurality of upgrade package blocks includes performing block division and reencapsulation on a software upgrade package (e.g., a vehicle upgrade package) that occupies a relatively large storage capacity to obtain a plurality of upgrade package blocks, or performing grouping and reencapsulation on a plurality of software upgrade packages (e.g., one software upgrade package corresponds to one upgrade software) to obtain a plurality of upgrade package blocks. The one or more software upgrade packages are divided into a plurality of upgrade package blocks that correspond one-to-one with at least some components. This makes full use of the storage resources of the plurality of components in the terminal, and reduces the software package storage pressure of the terminal-side components compared with the prior art. In addition, since a relatively large amount of random storage resources needs to be occupied during the block division of a relatively large data packet, the requirements for storage resources in the terminal-side components can be reduced when block division is performed on the network-side upgrade package. Finally, the success rate of the software upgrade can be increased. Therefore, the software upgrade method is more suitable for software upgrade of a terminal (especially an intelligent connected vehicle).
[0030] According to the second aspect, in a first possible implementation form of the software upgrade method, the upgrade package block information includes at least one of verification information of each of the multiple upgrade package blocks, a download address of each upgrade package block, or a number of the multiple upgrade package blocks. The upgrade package block information includes the verification information of each upgrade package block, so that each upgrade package block can be verified independently, thereby fully utilizing the computing resources of the multiple available components in the terminal. The upgrade package block information can include a download address of each upgrade package block and indicate to the multiple components in the terminal a network side device configured to obtain the multiple upgrade package blocks. The upgrade package block information can include the number of upgrade package blocks and be used to perform an overall data integrity verification on the multiple upgrade package blocks.
[0031] According to the second aspect or the first possible implementation form of the second aspect, in a second possible implementation form of the software upgrade method, before the step of receiving storage resource feedback information from the terminal device, the method further includes the step of sending a software upgrade initiation message to the terminal device. In addition to the network side device, the terminal device may also initiate the software upgrade.
[0032] According to the second aspect or any one of the above-mentioned implementation forms of the second aspect, in a third possible implementation form of the software upgrade method, before the step of dividing one or more software upgrade packages into a plurality of upgrade package blocks, the method further includes a step of determining, based on the storage resource feedback information, that the available storage resources in the terminal device meet the storage requirements for the software upgrade. Optionally, if a difference obtained by subtracting the total storage space occupied by the software upgrade packages from the total available storage capacity exceeds a predetermined threshold, it is determined that the available storage resources in the terminal device meet the storage requirements for the software upgrade.
[0033] According to the second aspect or any one of the above-mentioned implementations of the second aspect, in a fourth possible implementation of the software upgrade method, the step of dividing one or more software upgrade packages into a plurality of upgrade package blocks preferably includes a step of allocating the upgrade package blocks obtained by dividing the software upgrade package occupying a relatively large storage space to components having a relatively large available storage capacity. The plurality of upgrade package blocks correspond one-to-one with the plurality of components. In this way, it is possible to avoid as much as possible the case where the software upgrade package is too large to be determined as any one of the plurality of upgrade package blocks.
[0034] According to the second aspect or any one of the above-mentioned implementation forms of the second aspect, in a fifth possible implementation form of the software upgrade method, the method further includes a step of sending an upgrade package distribution instruction to at least one upgrade software storage device on the network side, wherein the upgrade package distribution instruction is used to instruct the at least one upgrade software storage device on the network side to send at least one of the multiple upgrade package blocks to the terminal device.
[0035] According to the second aspect or any one of the aforementioned implementation forms of the second aspect, in a sixth possible implementation form of the software upgrade method, the method further includes a step of transmitting at least one of the multiple upgrade package blocks to a terminal device.
[0036] According to a sixth possible implementation form of the second aspect, in a seventh possible implementation form of the software upgrade method, prior to the step of transmitting at least one of the multiple upgrade package blocks to the terminal device, the method further includes a step of receiving at least one of the multiple upgrade package blocks from at least one upgrade software storage device on the network side.
[0037] According to the second aspect or any one of the aforementioned implementations of the second aspect, in an eighth possible implementation of the software upgrade method, the available storage capacity includes at least one of an available storage capacity in a random access memory RAM or an available storage capacity in a read-only memory ROM.
[0038] According to the second aspect or any one of the aforementioned implementation forms of the second aspect, in a ninth possible implementation form of the software upgrade method, each of the multiple upgrade package blocks includes all or a portion of an upgrade software package used to upgrade at least one component within the terminal.
[0039] According to a third aspect, a software upgrade apparatus is provided. The apparatus includes: a receiving unit configured to receive storage resource information of at least two components in a terminal, the storage resource information including at least an available storage capacity of each of the at least two components, and the at least two components corresponding to the at least two available storage capacities; a processing unit configured to generate storage resource feedback information based on the storage resource information, the storage resource feedback information including at least an available storage capacity of each component; and a sending unit configured to send the storage resource feedback information to a network side device. The receiving unit is further configured to receive upgrade package block information generated by the network side device, the upgrade package block information including at least a one-to-one correspondence between the multiple upgrade package blocks for the terminal software upgrade and the multiple available storage capacities in the at least two available storage capacities. The processing unit is further configured to generate, based on the upgrade package block information, at least one indication information used to indicate the multiple components to obtain the multiple upgrade package blocks, and the multiple components are further configured to correspond one-to-one with the multiple available storage capacities. The sending unit is further configured to send the at least one indication information to the multiple components.
[0040] The device is a terminal-side software upgrade device. "At least a part" is equivalent to "a part or all". Optionally, the storage resource feedback information further includes an identifier of each of at least a part of the at least two components. The components are components connected to an internal network of the terminal (e.g., an in-vehicle network). The at least two components may be all components in the terminal, or only some components in the terminal, because there may be a component whose storage resource is exhausted or a component that reserves the storage resource for another operation. The step of receiving the storage resource information of the at least two components in the terminal may be performed in one or more receiving manners. The receiving manner includes, but is not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing reception via a hardware interface or wiring on a hardware circuit board, obtaining parameters from a software module, or reading information from a storage device. In addition to the available storage capacity of each of the at least two components, the storage resource information may include other information, such as the number, identifier, or total available storage capacity of the at least two components. Not all of the available storage capacity of the at least two components is placed in the storage resource feedback information, because the terminal side may determine that one or more networking modules in the at least two components may not be used to store the terminal software upgrade package based on the available storage capacity in the storage resource information. Of course, the aforementioned determining operation may be performed on the network side instead of the terminal side. The upgrade software The step of transmitting at least one instruction information may be performed in one or more transmission manners. The transmission manners include, but are not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing transmission through wiring on a hardware interface or a hardware circuit board, inputting parameters into a software module, or writing information into a memory. The storage resource information of the terminal is reported to the network side device, and the network side device adaptively obtains multiple upgrade package blocks through division based on the actual available storage resources in the terminal. This makes full use of the storage resources of the multiple components in the terminal and reduces the software package storage pressure of the components on the terminal side compared with the prior art. In addition, since a relatively large amount of random storage resources needs to be occupied during block division of a relatively large data packet, the storage resource requirements in the terminal-side components can be reduced when block division is performed for the upgrade package on the network side. Finally, the success rate of the software upgrade can be increased. Therefore, the software upgrade method is more suitable for software upgrade of terminals (especially intelligent connected vehicles).
[0041] Optionally, the receiving unit includes a plurality of receiving subunits, each configured to receive the storage resource information of at least one of at least two components in the terminal. Optionally, the plurality of receiving subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of receiving subunits receive the storage resource information in at least one receiving manner. The receiving manner includes, but is not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing reception through a hardware interface or wiring on a hardware circuit board, obtaining parameters from a software module, or reading information from a storage device.
[0042] Optionally, the storage resource feedback information further includes an identifier of at least one component having a one-to-one correspondence with the available storage capacity of at least some of the plurality of components, and the at least one component is some or all of the at least two components.
[0043] Optionally, the sending unit includes a plurality of sending subunits, and the plurality of sending subunits are configured to send at least one instruction information to the plurality of components, respectively. Optionally, the plurality of sending subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of sending subunits send the storage resource information in at least one sending manner, and the sending manner includes, but is not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing sending through a hardware interface or wiring on a hardware circuit board, inputting parameters into a software module, or writing information into a memory.
[0044] According to the third aspect, in a first possible implementation form of the software upgrade device, the upgrade package block information further includes a download address of each of the multiple upgrade package blocks, and each instruction information in the at least one instruction information includes a download address of at least one of the multiple upgrade package blocks. The terminal software may be stored centrally in one device on the network side, or may be stored in a distributed manner in multiple devices on the network side. Therefore, optionally, there are one or more download addresses for the multiple upgrade package blocks, or at least some of the multiple upgrade package blocks share one download address. The download address is used to indicate to the component a network-side device in which the upgrade package block corresponding to the component is located.
[0045] According to the third aspect or the first possible implementation form of the third aspect, in a second possible implementation form of the software upgrade device, the upgrade package block information further includes verification information of each of the multiple upgrade package blocks, and each instruction information in the at least one instruction information includes verification information of at least one of the multiple upgrade package blocks. Each upgrade package block is verified independently, so that the computing resources of the device in the terminal can be more fully utilized. Optionally, the upgrade package block information further includes the number of the multiple upgrade package blocks, and the device further performs an overall verification based on the verification result of each upgrade package block and the number of the multiple upgrade package blocks.
[0046] According to the third aspect or any one of the aforementioned implementations of the third aspect, in a third possible implementation of the software upgrade apparatus, the at least one instruction information includes an external communication resource used by the multiple components to acquire at least one of the multiple upgrade package blocks. The external communication resource is a communication resource used by a component in the terminal to communicate with a device outside the terminal (e.g., a cellular communication resource applied to inter-vehicle network communication). The external communication resource includes, but is not limited to, a communication component, a communication channel, a communication interface, or another communication resource used for cellular communication, satellite communication, Bluetooth communication, Wi-Fi (Wireless Fidelity, wireless local area network), or wired communication. Optionally, the external communication resource includes an external communication resource of each of the multiple components, or an external communication resource of one or more components other than the multiple components in the terminal. Optionally, each of the multiple components acquires one of the multiple upgrade package blocks by using the external communication resource of the component, or by using an external communication resource of the terminal other than the external communication resource of the component.
[0047] According to the third aspect or any one of the aforementioned implementations of the third aspect, in a fourth possible implementation of the software upgrade apparatus, the at least one instruction information includes time information used by the multiple components to acquire at least one of the multiple upgrade package blocks. Optionally, the time information indicates that the multiple components acquire the multiple upgrade package blocks simultaneously or sequentially. Optionally, the time information indicates that the multiple components acquire the at least one upgrade package block periodically.
[0048] According to the third aspect or any one of the above-mentioned implementations of the third aspect, in a fifth possible implementation of the software upgrade device, the processing unit is further configured to determine that the available storage resources in the terminal meet the storage requirements for the terminal software upgrade based on the available storage capacity of each of the at least two components. When starting the download to the terminal device, the network side device sends the storage requirements of the multiple terminal software upgrade packages to be downloaded to the terminal device, and the terminal device determines whether the available storage resources in the terminal meet the storage requirements of the multiple terminal software upgrade packages. In this way, the terminal device has higher autonomy and privacy. Optionally, if the difference obtained by subtracting the total storage space occupied by the software upgrade packages from the total available storage capacity exceeds a predetermined threshold, it is determined that the available storage resources in the terminal meet the storage requirements for the terminal software upgrade.
[0049] According to the third aspect or any one of the above-mentioned implementations of the third aspect, in a sixth possible implementation of the software upgrade device, the at least one instruction information is a plurality of instruction information, and the plurality of instruction information corresponds one-to-one with the plurality of components, and the step of transmitting the at least one instruction information to the plurality of components includes a step of transmitting one instruction information corresponding to the component among the plurality of instruction information to each of the plurality of components. Optionally, the plurality of instruction information is transmitted simultaneously or sequentially.
[0050] According to the third aspect or any one of the above-mentioned implementations of the third aspect, in a seventh possible implementation of the software upgrade apparatus, the at least one instruction information is one instruction information, and the step of transmitting the at least one instruction information to the plurality of components includes a step of transmitting the one instruction information to each of the plurality of components. In this way, the one instruction information includes relevant information used by each of the plurality of components to obtain one of the plurality of upgrade package blocks. Optionally, the one instruction information is transmitted to all of the plurality of components simultaneously or sequentially.
[0051] According to the third aspect or any one of the above-mentioned implementations of the third aspect, in an eighth possible implementation of the software upgrade apparatus, the at least one instruction information is one instruction information, and the step of transmitting the at least one instruction information to the multiple components includes a step of transmitting the one instruction information to one of the multiple components. In this way, the one instruction information may be transmitted between the multiple components.
[0052] According to the third aspect or any one of the aforementioned implementation forms of the third aspect, in a ninth possible implementation form of the software upgrade apparatus, the sending unit is further configured to send a download instruction to the multiple components, and the download instruction is used to instruct the multiple components to obtain a multiple upgrade package block that corresponds one-to-one with the multiple components.
[0053] According to the third aspect or any one of the aforementioned implementation forms of the third aspect, in a tenth possible implementation form of the software upgrade apparatus, the sending unit sends an upgrade package distribution instruction to the multiple components, the upgrade package distribution instruction is used to instruct the multiple components to send one or more of the multiple upgrade package blocks to at least one component in a terminal other than the multiple components, and the one or more upgrade package blocks are further configured to be obtained by the multiple components by parsing the multiple upgrade package blocks that have one-to-one correspondence with the multiple components.
[0054] According to the third aspect or any one of the aforementioned implementation forms of the third aspect, in an eleventh possible implementation form of the software upgrade device, a sending unit sends an installation enablement instruction to a plurality of components, the installation enablement instruction is used to instruct the plurality of components to install and enable at least one of the upgrade software, and the at least one upgrade software is configured to be obtained by the plurality of components by parsing a plurality of upgrade package blocks that correspond one-to-one to the plurality of components.
[0055] Optionally, a plurality of sending subunits are configured to send the download instruction, the upgrade package distribution instruction, or the installation enabling instruction to a plurality of components, respectively.
[0056] According to the third aspect or any one of the aforementioned implementations of the third aspect, in a twelfth possible implementation of the software upgrade device, the available storage capacity includes at least one of an available storage capacity in a random access memory RAM or an available storage capacity in a read-only memory ROM.
[0057] According to the third aspect or any one of the aforementioned implementation forms of the third aspect, in a thirteenth possible implementation form of the software upgrade apparatus, each of the multiple upgrade package blocks includes all or a portion of an upgrade software package used to upgrade at least one component within the terminal.
[0058] According to a fourth aspect, a software upgrade apparatus is provided. The software upgrade apparatus includes: a receiving unit arranged on a network side, configured to receive storage resource feedback information from a terminal device, the storage resource feedback information including at least the available storage capacity of each of a plurality of components in the terminal device that can be used to store a plurality of upgrade package blocks; a processing unit configured to divide one or more software upgrade packages into a plurality of upgrade package blocks based on the storage resource feedback information, the plurality of upgrade package blocks having a one-to-one correspondence with at least a portion of the available storage capacity of all the components, the processing unit further configured to generate upgrade package block information, the upgrade package block information including at least a correspondence between the plurality of upgrade package blocks and at least a portion of the available storage capacity of all the components; and a sending unit configured to send the upgrade package block information to the terminal device. The one or more software upgrade packages are divided into a plurality of upgrade package blocks having a one-to-one correspondence with at least a portion of the components. This makes full use of the storage resources of the plurality of components in the terminal, and reduces the software package storage pressure of the components on the terminal side compared with the prior art. In addition, since a relatively large amount of random storage resources needs to be occupied during block division of a relatively large data packet, the storage resource requirements in the terminal-side components can be reduced when block division is performed for the upgrade package on the network side. Finally, the success rate of the software upgrade can be increased. Therefore, the software upgrade method is more suitable for software upgrade of terminals (especially intelligent connected vehicles).
[0059] The receiving unit can receive the storage resource feedback information in one or more receiving manners, including but not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing reception through a hardware interface or wiring on a hardware circuit board, obtaining parameters from a software module, or reading information from a storage device.
[0060] Optionally, the receiving unit includes a plurality of receiving subunits, each configured to receive the storage resource information of at least one of at least two components in the terminal. Optionally, the plurality of receiving subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of receiving subunits receive the storage resource information in at least one receiving manner. The receiving manner includes, but is not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing reception through a hardware interface or wiring on a hardware circuit board, obtaining parameters from a software module, or reading information from a storage device.
[0061] The sending unit can send the upgrade package block information in one or more sending manners, including but not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing transmission through a hardware interface or wires on a hardware circuit board, inputting parameters into a software module, or writing information into a memory.
[0062] Optionally, the sending unit includes a plurality of sending subunits, and the plurality of sending subunits are configured to send at least one instruction information to the plurality of components, respectively. Optionally, the plurality of sending subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of sending subunits send the storage resource information in at least one sending manner, and the sending manner includes, but is not limited to, cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, performing sending through a hardware interface or wiring on a hardware circuit board, inputting parameters into a software module, or writing information into a memory.
[0063] Optionally, the step of dividing one or more software upgrade packages into a plurality of upgrade package blocks includes performing block division and reencapsulation on a software upgrade package that occupies a relatively large storage capacity (e.g., a vehicle upgrade package) to obtain a plurality of upgrade package blocks, or performing grouping and reencapsulation on a plurality of software upgrade packages (e.g., one software upgrade package corresponds to one upgrade software) to obtain a plurality of upgrade package blocks. The one or more software upgrade packages are divided into a plurality of upgrade package blocks that correspond one-to-one with at least some components. This makes full use of the storage resources in the terminal and increases the success rate of the software upgrade of the terminal. Therefore, the software upgrade device is more suitable for software upgrade of a terminal (especially an intelligent connected vehicle).
[0064] According to a fourth aspect, in a first possible implementation form of the software upgrade apparatus, the upgrade package block information includes at least one of verification information of each of the multiple upgrade package blocks, a download address of each upgrade package block, or a number of the multiple upgrade package blocks. The upgrade package block information includes the verification information of each upgrade package block, so that each upgrade package block can be verified independently, thereby fully utilizing the computing resources of the multiple available components in the terminal. The upgrade package block information can include a download address of each upgrade package block and indicate to the multiple components in the terminal a network side device configured to obtain the multiple upgrade package blocks. The upgrade package block information can include the number of upgrade package blocks and be used to perform an overall data integrity verification on the multiple upgrade package blocks.
[0065] According to the fourth aspect or the first possible implementation form of the fourth aspect, in a second possible implementation form of the software upgrade apparatus, the sending unit is further configured to send a software upgrade initiation message to a terminal device. In addition to the network side device, the terminal device may also initiate the software upgrade.
[0066] According to the fourth aspect or any one of the above-mentioned implementation forms of the fourth aspect, in a third possible implementation form of the software upgrade apparatus, the processing unit is further configured to determine, based on the storage resource feedback information, that the available storage resources in the terminal device meet the storage requirements for the software upgrade. Optionally, if a difference obtained by subtracting the total storage space occupied by the software upgrade package from the total available storage capacity exceeds a predetermined threshold, it is determined that the available storage resources in the terminal device meet the storage requirements for the software upgrade.
[0067] According to the fourth aspect or any one of the above-mentioned implementation forms of the fourth aspect, in a fourth possible implementation form of the software upgrade device, the step of dividing one or more software upgrade packages into a plurality of upgrade package blocks preferably includes a step of determining a software upgrade package that occupies a relatively large storage space as an upgrade package block corresponding to a component having a relatively large available storage capacity. The plurality of upgrade package blocks correspond one-to-one with the plurality of components. In this way, it is possible to minimize the case where the software upgrade package is too large and therefore the software upgrade package cannot be determined as any one of the plurality of upgrade package blocks.
[0068] According to the fourth aspect or any one of the above-mentioned implementation forms of the fourth aspect, in a fifth possible implementation form of the software upgrade device, the sending unit is further configured to send an upgrade package distribution instruction to at least one upgrade software storage device on the network side, and the upgrade package distribution instruction is used to instruct the at least one upgrade software storage device on the network side to send at least one of the multiple upgrade package blocks to the terminal device.
[0069] According to the fourth aspect or any one of the above-mentioned implementation forms of the fourth aspect, in a sixth possible implementation form of the software upgrade apparatus, the transmitting unit is further configured to transmit at least one of the multiple upgrade package blocks to the terminal device.
[0070] According to a sixth possible implementation form of the fourth aspect, in a seventh possible implementation form of the software upgrade device, the receiving unit is further configured to receive at least one of the multiple upgrade package blocks from at least one upgrade software storage device on the network side.
[0071] According to the fourth aspect or any one of the aforementioned implementations of the fourth aspect, in an eighth possible implementation of the software upgrade device, the available storage capacity includes at least one of an available storage capacity in a random access memory RAM or an available storage capacity in a read-only memory ROM.
[0072] According to the fourth aspect or any one of the aforementioned implementation forms of the fourth aspect, in a ninth possible implementation form of the software upgrade apparatus, each of the multiple upgrade package blocks includes all or a portion of an upgrade software package used to upgrade at least one component within the terminal.
[0073] According to a fifth aspect, a software upgrade apparatus is provided. The apparatus includes a memory and a processor. The memory stores computer program instructions, and the processor executes the computer program instructions to perform the operations of the first aspect or any one of the above-mentioned implementations of the first aspect.
[0074] According to a fifth aspect, in a first possible implementation form of the software upgrade apparatus, the apparatus further includes a transceiver configured to receive storage resource information or upgrade package block information, or configured to transmit at least one of storage resource feedback information, at least one instruction information, a download instruction, an upgrade package distribution instruction, and an installation activation instruction.
[0075] The software upgrade device according to the third or fifth aspect or any one of the aforementioned implementation forms of the third or fifth aspect may be applied to a terminal device, including but not limited to an intelligent connected vehicle, a robot, a smart home device, or another form. When applied to an intelligent connected vehicle, the software upgrade device may be the intelligent connected vehicle itself or a component in the intelligent connected vehicle, such as a central gateway, a T-box (Telematics BOX, a vehicle communication terminal in the Internet of Vehicles), a Human-Machine Interaction (HMI, Human-Machine Interaction) controller, a Mobile Data Center (MDC, Mobile Data Controller), and an Advanced Driving Assistant System (ADAS, Advanced Driving Assistant System), or an Electronic Control Unit (ECU, Electronic Control Unit). Alternatively, the software upgrade device may be a sub-device in the aforementioned component, or an independent device in the intelligent connected vehicle other than the aforementioned component.
[0076] According to a sixth aspect, a software upgrade apparatus is provided. The apparatus includes a memory and a processor. The memory stores computer program instructions, and the processor executes the computer program instructions to perform the operations of the second aspect or any one of the above-mentioned implementations of the second aspect.
[0077] According to a sixth aspect, in a first possible implementation form of the software upgrade apparatus, the apparatus further includes a transceiver configured to receive storage resource feedback information or at least one of a plurality of upgrade package blocks, or configured to transmit at least one of upgrade package block information, a software upgrade initiation message, an upgrade package distribution instruction, and at least one upgrade package block.
[0078] The software upgrade device described in the fourth or sixth aspect or any one of the above-mentioned implementation forms of the fourth or sixth aspect may be applied to the network side. For example, the software upgrade device is in the form of a server on the network side.
[0079] According to a seventh aspect, a terminal software upgrade system is provided. The system includes a software upgrade device according to the third aspect or any one of the possible implementation forms of the third aspect, and a software upgrade device according to the fourth aspect or any one of the possible implementation forms of the fourth aspect.
[0080] According to an eighth aspect, a terminal software upgrade system is provided. The system includes a software upgrade device according to the fifth aspect or any one of the possible implementations of the fifth aspect, and a software upgrade device according to the sixth aspect or any one of the possible implementations of the sixth aspect.
[0081] According to a ninth aspect, a computer storage medium is provided. The computer storage medium includes computer instructions. When the computer instructions are executed by a processor, the software upgrade apparatus is enabled to perform a method according to the first aspect or any one of the above-mentioned implementations of the first aspect.
[0082] According to a tenth aspect, a computer storage medium is provided. The computer storage medium includes computer instructions. When the computer instructions are executed by a processor, the software upgrade apparatus is enabled to perform a method according to the second aspect or any one of the above-mentioned implementations of the second aspect.
[0083] According to an eleventh aspect, a computer program product is provided. When the computer program product is executed by a processor, the software upgrade apparatus is enabled to perform the method according to the first aspect or any one of the above-mentioned implementation forms of the first aspect.
[0084] According to a twelfth aspect, a computer program product is provided, which, when executed by a processor, enables a software upgrade apparatus to perform a method according to the second aspect or any one of the above-mentioned implementations of the second aspect.
[0085] According to a thirteenth aspect, there is provided a vehicle software upgrade method, the method including the steps of: receiving storage resource information of at least two components in a vehicle, the storage resource information including at least an available storage capacity of each of the at least two components; and sending at least one instruction information to a plurality of components in the vehicle, the at least one instruction information being used to indicate the plurality of components to obtain a plurality of upgrade package blocks, the plurality of upgrade package blocks being obtained based on the storage resource information by dividing one or more upgrade software packages, the plurality of components having a one-to-one correspondence with at least a portion of the available storage capacity of the at least two components.
[0086] According to a fourteenth aspect, a vehicle software upgrade apparatus is provided, the apparatus including: a receiving unit configured to receive storage resource information of at least two components in a vehicle, the storage resource information including at least an available storage capacity of each of the at least two components; and a sending unit configured to send at least one instruction information to a plurality of components in the vehicle, the at least one instruction information being used to indicate the plurality of components to acquire a plurality of upgrade package blocks, the plurality of upgrade package blocks being acquired based on the storage resource information by splitting one or more upgrade software packages, the plurality of components having a one-to-one correspondence with at least a portion of the available storage capacity of the at least two components.
[0087] According to a fifteenth aspect, a vehicle software upgrade method is provided, the method includes the steps of: sending storage resource feedback information in the vehicle to a network side device, the storage resource feedback information including at least an available storage capacity of each of at least two components in the vehicle, and receiving upgrade package block information generated by the network side device from the network side device, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks for the vehicle software upgrade and at least a portion of the available storage capacity of all the components.
[0088] According to a sixteenth aspect, a vehicle software upgrade apparatus is provided, the apparatus including: a sending unit configured to send storage resource feedback information in the vehicle to a network side device, the storage resource feedback information including at least an available storage capacity of each of at least two components in the vehicle, and a receiving unit configured to receive upgrade package block information generated by the network side device from the network side device, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks for the vehicle software upgrade and at least a portion of the available storage capacity of all the components.
[0089] According to a seventeenth aspect, there is provided a vehicle software upgrade method, the method including the steps of receiving storage resource feedback information from the vehicle, the storage resource feedback information including at least an available storage capacity of each of a plurality of components in the vehicle that may be used to store a plurality of upgrade package blocks, and transmitting upgrade package block information to a terminal device, the upgrade package block information including at least a one-to-one correspondence between the plurality of upgrade package blocks and at least a portion of the available storage capacity of all the components.
[0090] According to an eighteenth aspect, a vehicle software upgrade apparatus is provided, the apparatus including: a receiving unit configured to receive storage resource feedback information from a vehicle, the storage resource feedback information including at least an available storage capacity of each of a plurality of components that are in the vehicle and that can be used to store a plurality of upgrade package blocks; and a sending unit configured to send upgrade package block information to a terminal device, the upgrade package block information including at least a one-to-one correspondence between the plurality of upgrade package blocks and at least a portion of the available storage capacity of all the components. [Brief description of the drawings]
[0091] [Figure 1] 1 is a flowchart of a software upgrade method used in the prior art when there are sufficient storage resources; [Diagram 2] 1 is a flowchart of a software upgrade method used when storage resources are insufficient in the prior art; [Diagram 3] FIG. 1 is a schematic diagram of a typical application scenario of the present invention; [Figure 4] 1 is a schematic diagram of a first embodiment of a terminal-side software upgrade device according to an embodiment of the present invention; [Diagram 5] 3 is a schematic diagram of a second and third existence forms of a terminal-side software upgrade device according to an embodiment of the present invention; FIG. [Figure 6] FIG. 11 is a schematic diagram of a fourth embodiment of a terminal-side software upgrade device according to an embodiment of the present invention; [Figure 7] FIG. 2 is a schematic diagram of a first operation mode of the network-side software upgrade device according to an embodiment of the present invention; [Figure 8] FIG. 2 is a schematic diagram of a second operation mode of the network-side software upgrade device according to an embodiment of the present invention; [Figure 9] FIG. 2 is a schematic diagram of a third operation mode of the network-side software upgrade device according to an embodiment of the present invention; [Figure 10] FIG. 11 is a schematic diagram of a fourth operation mode of the network-side software upgrade device according to an embodiment of the present invention; [Figure 11] FIG. 11 is a schematic diagram of a fifth operation mode of the network-side software upgrade device according to an embodiment of the present invention; [Figure 12A] 2 is a flowchart of a software upgrade method performed on a terminal side according to embodiment 1 of the present invention; [Figure 12B] 2 is a flowchart of a software upgrade method performed on a terminal side according to embodiment 1 of the present invention; [Figure 13A] 4 is a flowchart of a software upgrade method performed on a network side according to embodiment 2 of the present invention; [Figure 13B] 4 is a flowchart of a software upgrade method performed on a network side according to embodiment 2 of the present invention; [Figure 14] 11 is a flowchart of a step of querying and reporting storage resources in a terminal in a software upgrade method according to embodiment 3 of the present invention; [Figure 15] 11 is a flowchart of a step of performing block division on a software upgrade package in a software upgrade method according to embodiment 3 of the present invention; [Figure 16] 11 is a first flowchart of a step of sending upgrade package block information and instruction information in a software upgrade method according to embodiment 3 of the present invention; [Figure 17] FIG. 11 is a second flowchart of the step of sending upgrade package block information and instruction information in the software upgrade method according to embodiment 3 of the present invention; [Figure 18]FIG. 11 is a third flowchart of the step of sending upgrade package block information and instruction information in the software upgrading method according to embodiment 3 of the present invention; [Figure 19] FIG. 11 is a fourth flowchart of the step of sending upgrade package block information and instruction information in the software upgrading method according to embodiment 3 of the present invention; [Figure 20] FIG. 11 is a structural block diagram of a software upgrade device according to embodiment 4 and embodiment 5 of the present invention; [Figure 21] FIG. 11 is a structural block diagram of a software upgrade system according to embodiment 6 of the present invention; [Figure 22] FIG. 11 is a structural block diagram of a software upgrade device according to embodiment 7 and embodiment 8 of the present invention; [Diagram 23] FIG. 13 is a schematic diagram of an implementation of a terminal-side software upgrade device on a T-box provided in embodiment 7 of the present invention; [Figure 24] FIG. 13 is a schematic diagram of an implementation of a terminal-side software upgrade device on a human-machine interaction controller provided in embodiment 7 of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0092] In order to clarify the objectives, technical solutions and advantages of the embodiments of the present invention, the following describes the technical solutions of the embodiments of the present invention with reference to the accompanying drawings of the embodiments of the present invention. Certainly It is apparent that the described embodiments are not all but a part of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0093] The embodiment of the present invention may be applied to an application scenario of upgrading multiple components in a terminal, including but not limited to an intelligent connected vehicle, a robot, or a smart home device. FIG. 3 is a schematic diagram of the application scenario of the present invention. The intelligent connected vehicle is connected to an OTA cloud through a wireless communication channel to upload or download messages and data related to the vehicle software upgrade. The wireless communication channel includes but is not limited to wireless communication channels in the form of 2G (second generation mobile communication technology), 3G (third generation mobile communication technology), 4G (fourth generation mobile communication technology), 5G (fifth generation mobile communication technology), Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical transmission, satellite communication, or infrared communication. The components in an intelligent connected vehicle include a central gateway, a T-box (Telematics BOX, a vehicle communication terminal in the Internet of Vehicles), a Human-Machine Interaction (HMI) controller, a Mobile Data Center (MDC), an Advanced Driving Assistant System (ADAS), multiple Electronic Control Units (ECUs) and other components.
[0094] The application scenario of an intelligent connected vehicle is used as the following example to describe four typical existence forms (actual cases are not limited to the four typical existence forms) of the terminal side software upgrade device provided in the embodiment of the present invention, including the following forms:
[0095] In a first embodiment, the software upgrade device can exist in an intelligent connected vehicle as an independent component (see software upgrade device 401 in FIG. 4), and has both inter-vehicle and intra-vehicle network communication capabilities, and is configured to exchange signaling or data with a network-side device and cooperate with another component in the vehicle to store, distribute, install, or activate upgrade software. In addition, the software upgrade device 401 may be a component in the vehicle that needs to be upgraded, receiving a software upgrade package from a network-side device and storing the software upgrade package.
[0096] In the second and third forms, the software upgrade device may be a conventional component (e.g., T-box 501 in FIG. 5) in an intelligent connected vehicle or a sub-device in a conventional component, and has both inter-vehicle and intra-vehicle network communication capabilities, and is configured to exchange signaling or data with a network-side device and cooperate with another component in the vehicle to store, distribute, install, or activate upgrade software. In addition, the T-box 501 in this case may be a component in the vehicle that needs to be upgraded, receiving a software upgrade package from a network-side device and storing the software upgrade package.
[0097] In the fourth embodiment, the software upgrade device may be an intelligent connected vehicle (e.g., the intelligent connected vehicle 601 in FIG. 6), and executes on the terminal side in cooperation with multiple components in the intelligent connected vehicle (e.g., the T-box 602 and the MDC 603 in FIG. 6) to complete the software upgrade method provided in the embodiment of the present invention. For example, the MDC 603 does not have an inter-vehicle network communication function, and exchanges signaling or data with a network-side device by using the T-box 602, and cooperates with other components in the vehicle to store, distribute, install, or activate the upgrade software by using the in-vehicle network communication function of the MDC 603.
[0098] An application scenario of an intelligent connected vehicle is used as the following example to describe five typical operations (actual cases are not limited to the five typical operation modes) of the network-side software upgrade device provided in the embodiment of the present invention, including the following modes:
[0099] In a first mode (see FIG. 7 ), all upgrade package blocks used for software upgrade of components of an intelligent connected vehicle 704 are centrally stored in a network-side server 701, and the server 701 is a network-side software upgrade device provided in an embodiment of the present invention. The server 701 receives storage resource feedback information from the intelligent connected vehicle 704, and sends upgrade package block information and each of the multiple upgrade package blocks to the intelligent connected vehicle 704.
[0100] In a second mode (see FIG. 8 ), the server 801 is a network-side software upgrade device provided in an embodiment of the present invention, and multiple upgrade package blocks used for software upgrade of components in the intelligent connected vehicle 804 are stored in a distributed manner in multiple servers (e.g., including server 802 and server 803, and may or may not include server 801) on the network side. The server 801 receives storage resource feedback information from the intelligent connected vehicle 804, receives at least one upgrade package block from each of the server 802 and the server 803, and sends the upgrade package block information and each of the multiple upgrade package blocks to the intelligent connected vehicle 804.
[0101] In a third mode (see FIG. 9 ), the server 901 is a network-side software upgrade device provided in an embodiment of the present invention, and multiple upgrade package blocks used for software upgrade of components in the intelligent connected vehicle 904 are stored in a distributed manner in multiple servers on the network side (for example, including server 902 and server 903, but not including server 901). The server 901 receives storage resource feedback information from the intelligent connected vehicle 904 and sends upgrade package block information to the intelligent connected vehicle 804. After receiving the upgrade package distribution command sent by the server 901, the server 902 and the server 903 respectively send at least one upgrade package block stored in the server 902 and at least one upgrade package block stored in the server 903 to the intelligent connected vehicle 904.
[0102] In a fourth mode (see FIG. 10 ), the server 1001 is a network-side software upgrade device provided in an embodiment of the present invention, and multiple upgrade package blocks used for software upgrade of components in the intelligent connected vehicle 1004 are stored in a distributed manner in multiple servers (for example, including the server 1002, the server 1003 and the server 1001) on the network side. The server 1001 receives storage resource feedback information from the intelligent connected vehicle 1004 and sends upgrade package block information to the intelligent connected vehicle 1004. After receiving the upgrade package distribution command sent by the server 1001, the server 1002 and the server 1003 respectively send at least one upgrade package block stored in the server 1002 and at least one upgrade package block stored in the server 1003 to the intelligent connected vehicle 1004. The server 1001 also transmits at least one upgrade package block stored in the server 1001 to the intelligent connected vehicle 1004.
[0103] In a fifth mode (see FIG. 11 ), the server 1101 is a network-side software upgrade device provided in an embodiment of the present invention, and multiple upgrade package blocks used for software upgrade of components in the intelligent connected vehicle 1104 are stored in a distributed manner in multiple servers (e.g., including the server 1102 and the server 1103, and may or may not include the server 1101) on the network side. The server 1101 receives storage resource feedback information from the intelligent connected vehicle 1104 and sends upgrade package block information to the intelligent connected vehicle 1104. After receiving the upgrade package distribution command sent by the server 1101, the server 1102 sends at least one upgrade package block stored in the server 1102 to the intelligent connected vehicle 1104. The server 1103 sends at least one upgrade package block stored in the server 1101 to the server 1103. The server 1101 transmits at least one upgrade package block (including at least one upgrade package block stored in the server 1103) to the intelligent connected vehicle 1104.
[0104] The first embodiment of the present invention provides a software upgrade method executed on a terminal side. The method is executed by a software upgrade device on the terminal side (such as the above software upgrade device 401, T-box 501, a sub-device in T-box 501, or an intelligent connected vehicle 601). As shown in Figure 12A and Figure 12B, the method includes the following steps:
[0105] Step 1201: Receive storage resource information of at least two components in a terminal, the storage resource information including at least an available storage capacity of each of the at least two components, and the at least two components corresponding to at least two available storage capacities.
[0106] Optionally, embodiment 1 of the present invention includes step 1202, determining based on the available storage capacity of each of the at least two components that the available storage resources in the terminal meet the storage requirements for the terminal software upgrade.
[0107] Step 1203: Generate storage resource feedback information based on the storage resource information, where the storage resource feedback information includes at least an available storage capacity of each component.
[0108] Step 1204: Send storage resource feedback information to the network side device.
[0109] Step 1205: Receive upgrade package block information generated by a network side device, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks for terminal software upgrade and a plurality of components for storing the plurality of upgrade package blocks, and the plurality of components are part or all of at least two components.
[0110] Step 1206: Generate at least one indication information used to indicate a plurality of components to obtain a plurality of upgrade package blocks based on the upgrade package block information, where the plurality of components correspond one-to-one to a plurality of available storage capacities.
[0111] Step 1207: Send at least one indication to the multiple components.
[0112] Optionally, embodiment 1 of the present invention includes step 1208, in which a download instruction is sent to a plurality of components, and the download instruction is used to instruct the plurality of components to obtain a plurality of upgrade package blocks that correspond one-to-one to the plurality of components.
[0113] Optionally, embodiment 1 of the present invention includes step 1209, of sending an upgrade package distribution instruction to a plurality of components, where the upgrade package distribution instruction is used to instruct the plurality of components to send one or more of the plurality of upgrade package blocks to at least one component in a terminal other than the plurality of components, and the one or more upgrade package blocks are obtained by the plurality of components by parsing the plurality of upgrade package blocks that have one-to-one correspondence with the plurality of components.
[0114] Optionally, embodiment 1 of the present invention includes step 1210 of sending an installation enablement instruction to a plurality of components, the installation enablement instruction being used to instruct the plurality of components to install and enable at least one upgrade software, and the at least one upgrade software being obtained by the plurality of components by parsing a plurality of upgrade package blocks that correspond one-to-one to the plurality of components.
[0115] The second embodiment of the present invention provides a software upgrade method performed on the network side. The method is performed by a software upgrade device on the network side (such as the software upgrade device 701, 801, 901, 1001 or 1101 described above). As shown in Figure 13A and Figure 13B, the method includes the following steps:
[0116] Optionally, the embodiment 2 of the present invention includes step 1301 of sending a software upgrade start message to the terminal device.
[0117] Step 1302: Receive storage resource feedback information from a terminal device, where the storage resource feedback information includes at least an available storage capacity of each of a plurality of components in the terminal device that can be used to store a plurality of upgrade package blocks.
[0118] Step 1303: Determine based on the storage resource feedback information that the available storage resources in the terminal device meet the storage requirements for the software upgrade.
[0119] Step 1304: Based on the storage resource feedback information, divide the one or more software upgrade packages into a plurality of upgrade package blocks, where the plurality of upgrade package blocks correspond one-to-one to at least a portion of the available storage capacity of all the components.
[0120] Step 1305: Generate upgrade package block information, where the upgrade package block information includes at least a correspondence between a plurality of upgrade package blocks and at least a portion of the available storage capacity of every component.
[0121] Step 1306: Send the upgrade package block information to the terminal device.
[0122] Optionally, the embodiment 2 of the present invention includes a step 1307 of receiving at least one of the multiple upgrade package blocks from at least one upgrade software storage device on the network side.
[0123] Optionally, the embodiment 2 of the present invention includes a step 1308 of sending at least one of the multiple upgrade package blocks to the terminal device.
[0124] Optionally, embodiment 2 of the present invention includes step 1309, in which an upgrade package distribution instruction is sent to at least one upgrade software storage device on the network side, and the upgrade package distribution instruction is used to instruct the at least one upgrade software storage device on the network side to send at least one of the multiple upgrade package blocks to the terminal device.
[0125] In the software upgrade method provided in the first and second embodiments of the present invention, the storage resources in the multiple components in the terminal are fully utilized. In this way, the download success rate is increased, and the method is more suitable for the requirements of software upgrade of relatively complex terminals (especially intelligent connected vehicles). In addition, multiple upgrade package blocks may be downloaded using external communication resources of multiple components in the terminal. In this way, the communication resources of the terminal are fully utilized, the download speed is increased, and the download reliability is improved. In addition, multiple upgrade package blocks can be independently verified by multiple components, so that the computing resources in the terminal are fully utilized, and the case where the upgrade of a component is affected due to the upgrade software block data of another component being incomplete is avoided.
[0126] The first and second embodiments of the present invention relate to a software upgrade method performed at the network side and a software upgrade method performed at the terminal side, respectively. The third embodiment of the present invention provides a software upgrade method performed between two sides, the network side and the terminal side, and the software upgrade method can be implemented based on a combination of the two software upgrade methods performed at the network side and the terminal side, respectively, provided in the first and second embodiments of the present invention. Since there are a relatively large amount of parallel solutions in the stages of querying and reporting storage resources in the terminal, performing block division on the software upgrade package, and sending upgrade package block information and indication information, the following will use FIG. 14 to FIG. 19 to describe in detail several of the above stages. It should be noted that the first, second, and third embodiments of the present invention can be cross-referenced. The single-side operation steps of the terminal side or the network side in FIG. 14 to FIG. 19 can also be applied to the single operation methods of the first and second embodiments of the present invention.
[0127] 14 is a flowchart of a storage resource query and report step in a terminal in embodiment 3 of the present invention. The step includes the following steps:
[0128] Step 1401: The software upgrading device on the network side sends a message to the terminal software upgrading device to start a terminal software upgrading.
[0129] Step 1402: The terminal software upgrade device checks its own available storage resources (denoted as t1).
[0130] Step 1403: The terminal software upgrade device initiates a storage resource inquiry request to the terminal component 1 and the terminal component 2.
[0131] Step 1404: Terminal component 1 and terminal component 2 check their own available storage resources.
[0132] Step 1405: The terminal component 1 and the terminal component 2 report their own available storage resources (denoted as t2 and t3, respectively) to the terminal software upgrade device.
[0133] Step 1406: The terminal software upgrade device calculates the sum of available storage resources in the terminal, that is, calculates the sum of t1, t2, and t3, to determine whether the available storage resources in the terminal meet the storage requirements for the terminal software upgrade.
[0134] If the available storage resources in the terminal meet the storage requirements for the terminal software upgrade, the following steps are further executed: Step 1407a: The terminal software upgrade device generates storage resource feedback information. Step 1408a: The terminal software upgrade device sends the storage resource feedback information to the software upgrade device on the network side.
[0135] If the available storage resources in the terminal do not meet the storage requirements for the terminal software upgrade, the following steps are further executed: Step 1407b: The terminal software upgrade device returns an error to the software upgrade device on the network side, and terminates the terminal software upgrade.
[0136] It should be noted that whether the available storage resources in the terminal meet the storage requirements for the terminal software upgrade may be determined by the terminal device or the network-side device.
[0137] In the step of performing block division on the software upgrade package, after receiving the storage resource feedback information sent by the terminal software upgrade device, the network-side software upgrade device divides a plurality of terminal software upgrade packages into a plurality of upgrade package blocks with hash check values. The block division procedure is shown in Figure 15 and includes the following steps:
[0138] Step 1501: I1, ..., and I N and N variables s1, ..., and s N Construct N empty sets that mark the maximum capacity value of each set by using i =t i -C, t i is the available storage resource of the i-th component of the terminal, and C is the storage space occupied by the hash check value.
[0139] Step 1502: Arrange the M software upgrade packages in descending order of size, package1, package2, ..., and package M Each software upgrade package contains data used for software upgrade of one terminal component, and occupies storage space P i Occupy.
[0140] Step 1503: Select the set I with the largest remaining available capacity starting from the software upgrade package with the largest size (i.e., package1). u Package i where 1≦u≦N and s u =s u -P i Let us assume that.
[0141] In this case, s uIf <0, it indicates that the block division fails, and the following steps are further executed: Step 1505: Return block division failure information, and terminate the download.
[0142] In this case, s u If ≧0, step 1503 M package2 through package M , ..., and the following steps are further performed: Step 1504: J1, ..., and J K ,K,is the number of non-empty sets, and J,is the number of non-empty sets. i =I u ||H u、 1≦i≦K, and H u I u The hash check value corresponding to u =Hash(I u ||key u ) The software upgrade device on the network side is a terminal that has multiple components (ID u ) corresponding device key (key u ), where the device key is the same as the device key stored locally on the component.
[0143] Step 1506: The software upgrade device on the network side generates a block information package J0. The contents of the block information package J0 are the number of blocks K, each block J i Download address i , the corresponding download component Id u , and a hash check value H0.
[0144] In the step of performing block division on the software upgrade packages, it is preferred that the software upgrade package used for a single to-be-upgraded component of the terminal is used as the smallest unit, and the software upgrade package occupying the largest space is considered and assigned to the block with the largest remaining space. The block division is completed by iteration, and a hash check value is calculated for each of the block data in preparation for subsequent data integrity verification.
[0145] Next, the execution procedure of the step of sending upgrade package block information and instruction information will be described. There are four parallel technical solutions.
[0146] For the first solution, please refer to Figure 16. This solution includes the following steps:
[0147] Step 1601: The terminal software upgrade device receives upgrade package block information from the software upgrade device on the network side.
[0148] Step 1602: The terminal software upgrade device generates, for terminal component 1, first instruction information used to instruct terminal component 1 to acquire one upgrade package block corresponding to terminal component 1, and generates, for terminal component 2, second instruction information used to instruct terminal component 2 to acquire one upgrade package block corresponding to terminal component 2.
[0149] Step 1603: The terminal software upgrade device sends the first indication information and the second indication information to the terminal component 1 and the terminal component 2 respectively.
[0150] For the second solution, please refer to Figure 17. This solution includes the following steps:
[0151] Step 1701: The terminal software upgrading device receives upgrade package block information from the software upgrading device on the network side.
[0152] Step 1702: The terminal software upgrade device generates one piece of instruction information for terminal component 1 and terminal component 2, which is used to instruct terminal component 1 to obtain an upgrade package block corresponding to terminal component 1, and to instruct terminal component 2 to obtain an upgrade package block corresponding to terminal component 2.
[0153] Step 1703: The terminal software upgrade device sends one indication information to both the terminal component 1 and the terminal component 2. Optionally, the terminal software upgrade device may send one indication information to the terminal component 1 and the terminal component 2 simultaneously or sequentially.
[0154] For the third solution, please refer to Figure 18. This solution includes the following steps:
[0155] Step 1801: The terminal software upgrading device receives upgrade package block information from the software upgrading device on the network side.
[0156] Step 1802: The terminal software upgrade device generates first instruction information for terminal component 1 and terminal component 2, which is used to instruct terminal component 1 to obtain an upgrade package block corresponding to terminal component 1 and to instruct terminal component 2 to obtain an upgrade package block corresponding to terminal component 2.
[0157] Step 1803: The terminal software upgrade device sends first indication information to the terminal component 1.
[0158] Step 1804: The terminal component 1 transfers the first indication information to the terminal component 2.
[0159] For the fourth solution, please refer to Figure 19. This solution includes the following steps:
[0160] Step 1901: The terminal software upgrade device receives upgrade package block information from the software upgrade device on the network side.
[0161] Step 1902: The terminal software upgrade device generates first instruction information for terminal component 1 and terminal component 2, which is used to instruct terminal component 1 to obtain an upgrade package block corresponding to terminal component 1 and to instruct terminal component 2 to obtain an upgrade package block corresponding to terminal component 2.
[0162] Step 1903 : The terminal software upgrade device sends first indication information to the terminal component 1 .
[0163] Step 1904: The terminal component 1 deletes information related to the terminal component 1's acquisition of the upgrade package block from the first instruction information, and generates second instruction information based on the remaining information in the first instruction information.
[0164] Step 1905: The terminal component 1 sends second indication information to the terminal component 2.
[0165] The fourth and fifth embodiments of the present invention respectively provide a terminal-side software upgrading device and a network-side software upgrading device, as shown in FIG.
[0166] The terminal-side software upgrade device 20 provided in the fourth embodiment of the present invention includes: A receiving unit 2001 configured to receive storage resource information of at least two components in a terminal and upgrade upgrade package block information generated by a network side device, the storage resource information including at least an available storage capacity of each of the at least two components, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks for terminal software upgrade and a plurality of components for storing the plurality of upgrade package blocks, the plurality of components being some or all of the components of the at least two components; A processing unit 2002 configured to generate storage resource feedback information according to the storage resource information, and generate at least one instruction information used to indicate a plurality of components to acquire a plurality of upgrade package blocks according to the upgrade package block information, the plurality of components having a one-to-one correspondence with a plurality of available storage capacities, and the storage resource feedback information at least includes the available storage capacity of each of the at least two components; A sending unit 2003 configured to send storage resource feedback information to the network-side device and send at least one indication information to the multiple components.
[0167] The terminal-side software upgrade device 20 provided in embodiment 4 of the present invention is, for example, the software upgrade device 401, the T-box 501, a sub-device in the T-box 501, or an intelligent connected vehicle 601.
[0168] The network-side software upgrade device 20 provided in the fifth embodiment of the present invention includes: A receiving unit 2001 configured to receive storage resource feedback information from a terminal device, the storage resource feedback information including at least an available storage capacity of each of a plurality of components in the terminal device that can be used to store a plurality of upgrade package blocks; A processing unit 2002 configured to divide one or more software upgrade packages into a plurality of upgrade package blocks based on the storage resource feedback information, and generate upgrade package block information, the plurality of upgrade package blocks having a one-to-one correspondence with at least a portion of the plurality of components, and the upgrade package block information including at least a correspondence relationship between the plurality of upgrade package blocks and the at least some of the components; and a sending unit 2003 configured to send the upgrade package block information to the terminal device.
[0169] The network-side software upgrading device 20 provided by embodiment 5 of the present invention is, for example, the above-mentioned software upgrading device 701, 801, 901, 1001 or 1101.
[0170] Only one or more of the units in the fourth and fifth embodiments may be implemented by software, hardware, firmware, or a combination thereof. The software or firmware may include, but is not limited to, computer program instructions or codes, and may be executed by a hardware processor. The hardware may include, but is not limited to, various integrated circuits, such as a central processing unit (CPU), a digital signal processor (DSP), a field programmable gate array (FPGA), or an application specific integrated circuit (ASIC).
[0171] Optionally, the receiving unit 2001 in embodiment 4 and embodiment 5 may use one or more receiving methods, including but not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, hardware interface, or cable on hardware circuit board, or obtaining parameters from software module, or reading information from memory.
[0172] Optionally, the receiving unit 2001 of embodiment 4 and embodiment 5 includes a plurality of receiving subunits, each of which is configured to receive the storage resource information of at least one of at least two components in the terminal. Optionally, the plurality of receiving subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of receiving subunits receive the storage resource information in at least one receiving manner. The receiving manner includes but is not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, hardware interface, or cable on hardware circuit board, or obtain parameters from software module, or read information from memory.
[0173] Optionally, the transmitting unit 2003 in embodiment 4 and embodiment 5 may use one or more transmitting methods, including but not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, hardware interface or cable on hardware circuit board, or inputting parameters into software module or writing information into memory.
[0174] Optionally, the sending unit 2003 of embodiment 4 and embodiment 5 includes a plurality of sending subunits, each of which is configured to send at least one instruction information to a plurality of components. Optionally, the plurality of sending subunits are disposed in a plurality of different components in the terminal. Optionally, the plurality of sending subunits send the storage resource information in at least one sending manner. The sending manner includes but is not limited to cellular communication, Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, transmission line communication, hardware interface or cable on a hardware circuit board, or inputting parameters into a software module or writing information into a memory.
[0175] The sixth embodiment of the present invention provides a software upgrade system. Referring to Fig. 21, the system includes a network side software upgrade device 2101 and a terminal software upgrade device 2105. The network side software upgrade device 2101 includes a receiving unit 2102, a processing unit 2103 and a sending unit 2104. The terminal software upgrade device 2105 includes a sending unit 2106, a processing unit 2107 and a receiving unit 2108. The network side software upgrade device 2101 and the terminal software upgrade device 2105 can be implemented with reference to the fourth embodiment and the fifth embodiment of the present invention respectively.
[0176] The seventh embodiment of the present invention provides another terminal-side software upgrade device. Referring to Fig. 22, the device includes: a memory 2201, a processor 2202, and a transceiver 2203. The memory 2201 stores computer program instructions. The processor 2202 executes the computer program instructions to execute the terminal-side software upgrade method described in the first embodiment. The transceiver 2203 is configured to receive storage resource information or upgrade package block information, or to send at least one of storage resource feedback information, at least one indication information, a download instruction, an upgrade package distribution instruction, and an installation validation instruction.
[0177] The terminal-side software upgrade device provided in the seventh embodiment of the present invention is, for example, the software upgrade device 401, the T-box 501, a sub-device in the T-box 501, or the intelligent connected vehicle 601. In the following, the implementation form of the seventh embodiment of the present invention for specific components in an intelligent terminal is individually described by using an example in which the software upgrade device is implemented on the T-box (see FIG. 23) and on the man-machine interaction controller (see FIG. 24).
[0178] The internal configuration structure of the T-box is, for example, the structure of the T-box 23 shown in FIG. 23. The T-box 23 includes a Global Positioning System (GPS) antenna, a 3G / 4G antenna, a Cellular Vehicle-to-Everything (C-V2X) antenna, a Wireless Local Area Network (WLAN) antenna, and multiple radio frequency units, which are used for communication between the vehicle and the extranet. A system on chip (SOC) is configured to integrate a processor, a memory, a system level chip control logic module, multiple interface control modules, and multiple interconnection buses, and provide functions such as control, calculation, or storage for the T-box 23. As an implementation form of the processor, a microcontroller unit may provide the control or calculation function for the T-box 23. When the intelligent connected vehicle accesses a cellular communication network as a mobile communication terminal, it uses an embedded SIM (Subscriber Identification Module) card in the T-box 23 to identify its identity. The embedded multimedia card provides the storage function of the T-box 23. The security hardware module provides a security protection function for the intelligent connected vehicle to access an extranet. The power management unit provides power supply management for the T-box 23. In addition, the T-box 23 further interacts with other components in the vehicle via multiple buses (e.g., a CAN bus and an Ethernet bus) and interfaces (e.g., a microphone interface and a speaker interface).
[0179] The memory 2201 of the seventh embodiment may be implemented using a memory integrated in the system-on-chip of Fig. 23 or another internal storage unit (e.g., an embedded multimedia card). The processor 2202 may be implemented using a microcontroller unit or processor integrated in the system-on-chip of Fig. 23. The transceiver 2203 may be implemented by using the radio frequency unit, GPS antenna, 3G / 4G antenna, C-V2X antenna, WLAN antenna, CAN (Controller Area Network) bus, Ethernet bus, or pin connector of Fig. 23.
[0180] For example, the internal configuration structure of the man-machine interaction controller is the structure of the man-machine interaction controller 24 in FIG. 24, where the controller includes a Wi-Fi (Wireless Fidelity, wireless local area network) communication module and a Bluetooth communication module used for communication between the vehicle and the extranet. A system on chip (SOC) integrates a processor, a memory, a system level chip control logic module, multiple interface control modules, and multiple interconnection buses to provide functions such as control, calculation, or storage for the man-machine interaction controller 24. As an implementation form of the processor, a microcontroller unit may provide the control or calculation function for the man-machine interaction controller 24. The multimedia processor provides data processing functions for multimedia information such as images, voice, and video. The man-machine interaction controller 24 obtains signals input from various camera sensors via an LVDS (Low-Voltage Differential Signaling) interface and obtains data input from a microphone via an analog signal interface. The man-machine interaction controller 24 provides signal output to a USB panel, a central control panel, a control panel, an instrument panel, and a head mounted display for a windshield via a Universal Serial Bus (USB) port or an LVDS interface. In addition, the man-machine interaction controller 24 is further connected to an in-vehicle network gateway to perform in-vehicle network communication with in-vehicle components such as a T-box.
[0181] The memory 2201 of the seventh embodiment may be implemented using a memory integrated in the system-on-chip of Fig. 24 or other internal storage unit (e.g., an embedded multimedia card). The processor 2202 may be implemented by using a microcontroller or processor integrated in the system-on-chip of Fig. 24. The transceiver 2203 may be implemented by using a Wi-Fi (Wireless Fidelity, wireless local area network) communication module, a Bluetooth communication module, or a communication bus between the vehicle network gateway of Fig. 24.
[0182] The eighth embodiment of the present invention provides yet another software upgrade device on the network side. Referring to Fig. 22, the device includes: a memory 2201, a processor 2202, and a transceiver 2203. The memory 2201 stores computer program instructions. The processor 2202 executes the computer program instructions to execute the software upgrade method on the network side described in the second embodiment, and is configured to receive at least one of storage resource feedback information or a plurality of upgrade package blocks, or to send at least one of upgrade package block information, a software upgrade start message, an upgrade package distribution instruction, and at least one upgrade package block.
[0183] The network-side software upgrading device provided by embodiment 8 of the present invention is, for example, the above-mentioned software upgrading device 701, 801, 901, 1001 or 1101.
[0184] The processor of the seventh and eighth embodiments of the present invention includes, but is not limited to, various CPUs, DSPs, microcontrollers, microprocessors, or artificial intelligence processors.
[0185] The transceiver in the seventh and eighth embodiments of the present invention includes, but is not limited to, a communication interface, a communication module, or a communication connector. The communication form of the transceiver includes, but is not limited to, 2G (second generation mobile communication technology), 3G (third generation mobile communication technology), 4G (fourth generation mobile communication technology), 5G (fifth generation mobile communication technology), Wi-Fi (Wireless Fidelity, wireless local area network), WiMAX (Worldwide Interoperability for Microwave Access,), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication, infrared communication, etc.
[0186] Those skilled in the art can clearly understand that the description of the embodiments provided in this application can be cross-referenced.For ease and simplicity of description, for example, the functions and steps performed by the apparatus and device provided in the embodiments of this application can be referred to the relevant description of the method embodiments of this application.Reference can also be made between various method embodiments and between various apparatus embodiments.
[0187] Those skilled in the art can understand that all or part of the steps of the method embodiment can be implemented by a program that instructs relevant hardware. The program may be stored in a computer-readable storage medium. When the program is executed, each step of the method embodiment is performed. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, optical disk, etc.
[0188] All or part of the above embodiments may be implemented using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into a computer and executed, all or part of the procedures or functions according to the embodiments of the present invention are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (e.g., coaxial cable, optical fiber, or digital subscriber line (DSL)) or wireless (e.g., infrared, radio wave, or microwave) manner. The computer-readable storage medium may be any available medium accessible by a computer, or a data storage device, such as a server or data center, incorporating one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., DVDs), semiconductor media (e.g., solid state drives (SSDs)), and the like.
[0189] In some embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways without departing from the scope of the present application. For example, the described device embodiment is only an example. For example, the division into modules or units is merely a logical functional division, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not performed. Units described as separate parts may or may not be physically separated, and parts displayed as units may or may not be physical units, and may be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to the actual needs to achieve the purpose of the solution of each embodiment. Those skilled in the art can understand and implement the embodiments without creative efforts.
[0190] In addition, the systems, devices, methods, and schematic diagrams illustrating different embodiments may be combined or integrated with other systems, modules, techniques, or methods without departing from the scope of this application. In addition, the shown or described mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.
[0191] The above description is merely a specific implementation form of the present application, and does not limit the protection scope of the present application. Any variations or replacements that are easily conceived by those skilled in the art within the technical scope disclosed in the present application shall be within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Explanation of symbols]
[0192] 20 Software upgrade device 23 T-box 24 Man-machine interaction controller 401 Software upgrade device 501 T-box 601 Intelligent Connected Vehicles 602 T-box 603 MDC 701 Server 702 Server 703 Server 704 Intelligent Connected Vehicles 801 Server 802 Server 803 Server 804 Intelligent Connected Vehicles 901 Server 902 Server 903 Server 904 Intelligent Connected Vehicle 1001 Server 1002 Server 1003 Server 1004 Intelligent Connected Vehicles 1101 Server 1102 Server 1103 Server 1104 Intelligent Connected Vehicles 2001 Receiver Unit 2002 Processing Unit 2003 Sending Unit 2101 Network side software upgrade device 2102 Receiver Unit 2103 Processing Unit 2104 Transmitting unit 2105 Terminal software upgrade device 2106 Transmitting unit 2107 Processing Unit 2108 receiving unit 2201 Memory 2202 Processor 2203 Transceiver
Claims
1. 1. An upgrade device comprising a processor and a memory, the memory configured to store program instructions, the processor executing the instructions to: Sending storage resource feedback information to a network side device, the storage resource feedback information being used to indicate available storage capacity of each of a plurality of components in the terminal; an upgrade device for receiving upgrade package block information from the network side device, the upgrade package block information being used to indicate a one-to-one correspondence between at least two upgrade package blocks for upgrading the terminal and at least two of the plurality of components, the upgrade package block information including verification information for each of the at least two upgrade package blocks; a software upgrade package for upgrading the terminal that occupies a larger storage space than other software upgrade packages is determined to be the upgrade package block corresponding to a component having a larger available storage capacity than other components among the plurality of components; and the at least two of the plurality of components are coupled to the memory to be used to store the at least two upgrade package blocks.
2. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks The apparatus of claim 1 , further comprising at least one of:
3. The processor executes the instructions to receiving a plurality of storage resource information from the plurality of components, the plurality of storage resource information being used to indicate the available storage capacity of each of the plurality of components, and the storage resource feedback information being generated based on the plurality of storage resource information; 3. The apparatus of claim 1, further comprising: a memory coupled to said at least one of said at least two of said plurality of components; and wherein said instruction information is used by said at least two of said plurality of components to obtain said at least two upgrade package blocks, said instruction information being generated based on said upgrade package block information.
4. The instruction information is An address for downloading the upgrade package block; Verification information of the upgrade package block; an external communication resource used by the component to obtain the upgrade package block; and Time information for acquiring the upgrade package block The apparatus of claim 3, comprising at least one of:
5. The instruction information is a plurality of instruction information, the plurality of instruction information having a one-to-one correspondence with the at least two of the plurality of components, and the processor executes the instructions to The apparatus of claim 3 or 4, coupled to the memory to transmit each of the plurality of instruction information to a corresponding one of the at least two components of the plurality of components.
6. The instruction information is one piece of instruction information, and the processor executes the instruction to 5. The apparatus of claim 3 or 4, coupled to the memory to transmit the piece of instruction information to each of the at least two components of the plurality of components or to one of the at least two of the plurality of components.
7. 1. An upgrade device comprising a processor and a memory, the memory configured to store program instructions, the processor executing the instructions to: receiving a plurality of storage resource information from a plurality of components in a terminal, the plurality of storage resource information being used to indicate an available storage capacity of each of the plurality of components; receiving upgrade package block information from a network side device, the upgrade package block information being used to indicate a one-to-one correspondence between at least two upgrade package blocks for upgrading the terminal and at least two of the plurality of components, the upgrade package block information including verification information for each of the at least two upgrade package blocks; an upgrade device comprising: an upgrade unit that transmits instruction information to at least one of the plurality of components, the instruction information being used by at least two of the plurality of components to obtain at least two upgrade package blocks for upgrading the terminal; the at least two of the plurality of components being used to store the at least two upgrade package blocks; a software upgrade package for upgrading the terminal that occupies a larger storage space than other software upgrade packages is determined to be the upgrade package block corresponding to a component among the plurality of components that has a larger available storage capacity than the other components; and the at least two upgrade package blocks are coupled to the memory in a one-to-one correspondence with the at least two of the plurality of components.
8. The instruction information is An address for downloading the upgrade package block; Verification information of the upgrade package block; an external communication resource used by the component to obtain the upgrade package block; and Time information for acquiring the upgrade package block The apparatus of claim 7, comprising at least one of:
9. The instruction information is a plurality of instruction information, the plurality of instruction information having a one-to-one correspondence with the at least two of the plurality of components, and the processor executes the instructions to 9. The apparatus of claim 7 or 8, coupled to the memory to transmit each of the plurality of instruction information to a corresponding one of the at least two components of the plurality of components.
10. The instruction information is one piece of instruction information, and the processor executes the instruction to 9. The apparatus of claim 7 or 8, coupled to the memory to transmit the piece of instruction information to each of the at least two components of the plurality of components or to one of the at least two of the plurality of components.
11. The processor executes the instructions to sending storage resource feedback information to a network-side device, the storage resource feedback information being generated based on the plurality of storage resource information and coupled to the memory for use in indicating an available storage capacity of each of the plurality of components; The apparatus according to any one of claims 7 to 10, wherein the indication information is generated based on the upgrade package block information.
12. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks The apparatus of claim 11 , further comprising at least one of:
13. 1. An upgrade device comprising a processor and a memory, the memory configured to store program instructions, the processor executing the instructions to: receiving storage resource feedback information from a terminal, the storage resource feedback information being used to indicate available storage capacity of each of a plurality of components within the terminal; Generate at least two upgrade package blocks for upgrading the terminal based on the storage resource feedback information, and among the software upgrade packages for upgrading the terminal, a software upgrade package that occupies a larger storage space than other software upgrade packages is determined as the upgrade package block corresponding to a component among the plurality of components having a larger available storage capacity than other components, and the at least two upgrade package blocks are in one-to-one correspondence with at least two of the plurality of components; An upgrade device coupled to the memory, the upgrade package block information being used to indicate the one-to-one correspondence, the upgrade package block information including verification information for each of the at least two upgrade package blocks, and the upgrade package block information being used by the at least two of the plurality of components to obtain the at least two upgrade package blocks.
14. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks The apparatus of claim 13, further comprising at least one of:
15. The processor executes the instructions. The apparatus of claim 13 or 14, further comprising: a network-side upgrade software storage device coupled to the memory for transmitting an upgrade package distribution instruction, the upgrade package distribution instruction being used to instruct the upgrade software storage device to transmit at least one of the at least two upgrade package blocks to the terminal.
16. The processor executes the instructions to The apparatus of any one of claims 13 to 15, coupled to the memory to transmit at least one of the at least two upgrade package blocks to the terminal.
17. The processor executes the instructions to 17. The apparatus of claim 16, coupled to the memory to receive the at least one of the at least two upgrade package blocks from a network-side upgrade software storage device.
18. The apparatus according to any one of claims 13 to 17, wherein the at least two upgrade package blocks are generated by splitting at least one package for upgrading the terminal.
19. The processor executes the instructions to The apparatus of any one of claims 13 to 18, coupled to the memory, for determining, based on the storage resource feedback information, that available storage resources in the terminal meet a storage requirement for upgrading the terminal.
20. An upgrade method performed by an upgrade device, comprising: sending storage resource feedback information to a network side device, the storage resource feedback information being used to indicate available storage capacity of each of a plurality of components in a terminal; receiving upgrade package block information from a network side device, the upgrade package block information being used to indicate a one-to-one correspondence between at least two upgrade package blocks for upgrading the terminal and at least two of the plurality of components, the upgrade package block information including verification information for each of the at least two upgrade package blocks; a software upgrade package for upgrading the terminal that occupies a larger storage space than other software upgrade packages is determined to be the upgrade package block corresponding to a component having a larger available storage capacity than other components among the plurality of components, and the at least two of the plurality of components are used to store the at least two upgrade package blocks; Including how to upgrade.
21. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks 21. The method of claim 20, further comprising at least one of:
22. receiving a plurality of storage resource information from the plurality of components, the plurality of storage resource information being used to indicate the available storage capacity of each of the plurality of components, and the storage resource feedback information being generated based on the plurality of storage resource information; sending indication information to at least one of the at least two of the plurality of components, the indication information being used by the at least two of the plurality of components to obtain the at least two upgrade package blocks, the indication information being generated based on the upgrade package block information; 22. The method of claim 20 or 21, comprising:
23. The instruction information is An address for downloading the upgrade package block; Verification information of the upgrade package block; an external communication resource used by the component to obtain the upgrade package block; and Time information for acquiring the upgrade package block 23. The method of claim 22, comprising at least one of:
24. The instruction information is a plurality of instruction information, and the plurality of instruction information corresponds one-to-one to the at least two of the plurality of components, and the step of transmitting the instruction information to at least one of the at least two of the plurality of components includes:
24. The method of claim 22 or 23, comprising transmitting each of the plurality of instruction information to a corresponding one of the at least two components of the plurality of components.
25. The instruction information is one piece of instruction information, and the step of transmitting the instruction information to at least one of the at least two of the plurality of components includes:
24. The method of claim 22 or 23, comprising transmitting the one instruction information to each of the at least two of the plurality of components or to one of the at least two of the plurality of components.
26. An upgrade method performed by an upgrade device, comprising: receiving a plurality of storage resource information from a plurality of components in a terminal, the plurality of storage resource information being used to indicate an available storage capacity of each of the plurality of components; receiving upgrade package block information from a network-side device, the upgrade package block information being used to indicate a one-to-one correspondence between at least two upgrade package blocks for upgrading the terminal and at least two of the plurality of components, the upgrade package block information including verification information of each of the at least two upgrade package blocks; sending instruction information to the at least one of the plurality of components, the instruction information being used by the at least two of the plurality of components to obtain at least two upgrade package blocks for upgrading the terminal, the at least two of the plurality of components being used to store the at least two upgrade package blocks; a software upgrade package for upgrading the terminal that occupies a larger storage space than other software upgrade packages is determined as the upgrade package block corresponding to a component of the plurality of components that has a larger available storage capacity than other components; and the at least two upgrade package blocks are in one-to-one correspondence with the at least two of the plurality of components; Including how to upgrade.
27. The instruction information is An address for downloading the upgrade package block; Verification information of the upgrade package block; an external communication resource used by the component to obtain the upgrade package block; and Time information for acquiring the upgrade package block 27. The method of claim 26, comprising at least one of:
28. The instruction information is a plurality of instruction information, the plurality of instruction information having a one-to-one correspondence with the at least two of the plurality of components, and the step of transmitting the instruction information to at least one of the plurality of components includes:
28. The method of claim 26 or 27, comprising transmitting each of the plurality of instructional information to a corresponding one of the at least two components of the plurality of components.
29. The instruction information is one piece of instruction information, and the step of transmitting the instruction information to at least one of the plurality of components includes:
28. The method of claim 26 or 27, comprising transmitting the piece of instruction information to each of the at least two of the plurality of components or to one of the at least two of the plurality of components.
30. sending storage resource feedback information to a network-side device, the storage resource feedback information being generated based on the plurality of storage resource information and used to indicate an available storage capacity of each of the plurality of components; The method according to any one of claims 26 to 29, wherein the instruction information is generated based on the upgrade package block information.
31. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks 31. The method of claim 30, further comprising at least one of:
32. An upgrade method performed by an upgrade device, comprising: receiving storage resource feedback information from a terminal, the storage resource feedback information being used to indicate available storage capacity of each of a plurality of components in the terminal; generating at least two upgrade package blocks for upgrading the terminal based on the storage resource feedback information, in which a software upgrade package for upgrading the terminal that occupies a larger storage space than other software upgrade packages is determined as the upgrade package block corresponding to a component among the plurality of components that has a larger available storage capacity than other components, and the at least two upgrade package blocks correspond one-to-one to at least two of the plurality of components; sending upgrade package block information to the terminal, the upgrade package block information being used to indicate the one-to-one correspondence, the upgrade package block information including verification information for each of the at least two upgrade package blocks, and the upgrade package block information being used by the at least two of the plurality of components to obtain the at least two upgrade package blocks; Including how to upgrade.
33. The upgrade package block information includes: at least one address for downloading the at least two upgrade package blocks; and The number of said at least two upgrade package blocks 33. The method of claim 32, further comprising at least one of:
34. A method for providing a network-side upgrade software storage device with an upgrade package distribution command, the upgrade package distribution command being used to instruct the upgrade software storage device to transmit at least one of the at least two upgrade package blocks to the terminal.
34. The method of claim 32 or 33, comprising:
35. Sending at least one of the at least two upgrade package blocks to the terminal. The method according to any one of claims 32 to 34, comprising:
36. receiving the at least one of the at least two upgrade package blocks from a network-side upgrade software storage device; 36. The method of claim 35, comprising:
37. 37. The method according to any one of claims 32 to 36, wherein the at least two upgrade package blocks are generated by splitting at least one package for upgrading the terminal.
38. 38. A computer readable storage medium configured to store program instructions that, when executed, perform a method according to any one of claims 20 to 37.
Citation Information
Patent Citations
Down-loading method, network system therefor and data file updating method
JP1996006796A
Software updating program
JP2005092330A
Electronic device, network apparatus, management method, software update method, management program, software update program, and recording medium
JP2005115920A
Communication terminal
JP2010079720A
Communication system, in-vehicle device, communication device, and computer program
JP2016071527A
