Software upgrade method, device and system
By receiving and utilizing the storage resource information of multiple components in the terminal, generating upgrade packages are divided into chunks and allocating them to appropriate components, the software upgrade problem caused by insufficient storage resources is solved, and the software upgrade success of terminals such as intelligent connected vehicles is improved rate and efficiency.
Patent Information
- Application Number
- CN201911129069.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-18
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2039-11-18
AI Technical Summary
In the prior art, when upgrading terminal software, due to insufficient storage resources of the upgrade control module, software upgrade failure is easily caused, and methods to increase the upgrade success rate are urgently needed.
By receiving storage resource information of multiple components in the terminal, generating storage resource feedback information and sending it to the network side device, and instructing multiple components to obtain corresponding upgrade packet chunking information based on the upgrade packet chunking information generated by the network side, and making full use of the corresponding upgrade packet chunking information. Storage resources of multiple components reduce the storage pressure of a single module.
It improves the success rate of software upgrades and is suitable for complex terminals such as intelligent connected vehicles. It makes full use of storage and communication resources in the terminal, avoiding the upgrade of other components due to incomplete block data of individual components upgrade software.
Smart Images

Figure CN112817617B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to terminal software upgrade technology, and in particular to a software upgrade method, device and system for an intelligent network-connected vehicle. Background Art
[0002] With the development of intelligent connected vehicles, online upgrades of automotive components through Over the Air (OTA) technology has become an important function of intelligent connected vehicles. Vehicle manufacturers upgrade related software of vehicles through OTA function, which helps manufacturers reduce recall costs, respond to demand quickly and improve user experience.
[0003] Smart connected vehicles contain multiple components, such as central gateway, T-box (Telematics BOX, vehicle-connected vehicle communication terminal), human-machine interaction controller (HMI, Human-Machine Interaction), mobile data center (MDC, MobileData Controller), advanced driving assistance system (ADAS, Advanced Driving Assistant System). The OTA upgrade of the whole vehicle may require upgrading the above-mentioned multiple in-vehicle components, which requires downloading a large amount of upgrade software. In addition to smart connected vehicles, terminals also include smart phones, industrial Internet of Things devices, smart robots and other forms of existence. With the advancement of intelligent technology, the functions realized by terminals are increasing and the internal structure is becoming more and more complex. Therefore, when upgrading terminal software, the storage space requirements for terminals are getting higher and higher.
[0004] The prior art adopts a single module download solution, that is, an upgrade control module is used to complete the download, storage, splitting and distribution of the terminal software upgrade package, and control the various components in the terminal to complete the upgrade operation. When the software upgrade package has a large amount of data, this single module download strategy will put forward higher requirements on the storage space of the upgrade control module.
[0005] When the storage resources of the upgrade control module are sufficient, the method of downloading the terminal software upgrade package based on a single module can be found in Figure 1 As shown, including:
[0006] ① Download phase: After the OTA cloud-side device starts downloading, the upgrade control module checks its own storage resources. If the download requirements of the terminal software upgrade package are met, it downloads all the software upgrade packages from the OTA cloud-side device and verifies the integrity of the downloaded file.
[0007] ② Distribution phase: The upgrade control module splits the software upgrade package and distributes it to each component in the terminal that needs to be upgraded.
[0008] ③Installation phase: The upgrade control module controls each component that needs to be upgraded to install the software upgrade package and activate the upgrade software.
[0009] When the storage resources of the upgrade control module are insufficient, the method of downloading the terminal software upgrade package based on a single module is as follows: Figure 2 As shown, it includes: after the OTA cloud-side device starts downloading, the upgrade control module checks its own storage resources. If the storage requirements of the terminal software upgrade package are not met, it returns insufficient resource information and terminates the download, resulting in upgrade failure.
[0010] It can be seen that the shortage of local storage resources of the upgrade control module can easily lead to the failure of terminal software upgrade, and a method for improving the success rate of terminal software upgrade is urgently needed. Summary of the invention
[0011] In view of the above technical problems existing in the prior art, the embodiments of the present invention provide a software upgrade method, device and system. The "software" in the claims and the invention content of the specification of the present invention is software in a broad sense, including but not limited to firmware, computer programs, operating systems, drivers, system software or applications.
[0012] In a first aspect, a software upgrade method is provided, comprising: receiving storage resource information of at least two components in a terminal, the storage resource information comprising at least the 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; generating storage resource feedback information according to the storage resource information, the storage resource feedback information comprising at least the available storage capacity of each of the components; sending 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 comprising at least a one-to-one correspondence between multiple upgrade package blocks for terminal software upgrade and multiple components for storing the multiple upgrade package blocks, the multiple components being part or all of the at least two components; generating at least one indication information for instructing multiple components to obtain the multiple upgrade package blocks according to the upgrade package block information, wherein the multiple components correspond one-to-one to the multiple available storage capacities; and sending the at least one indication information to the multiple components.
[0013] The above method is a software upgrade method executed by the terminal side. Among them, "at least part" is equivalent to "part or all". Optionally, the storage resource feedback information also includes the identification of each component of the at least two components in the at least part. The at least two components may be all the components in the terminal, or only some of the components in the terminal, because there may be components that have been completely used up or reserved for other operations. The storage resource information of at least two components in the receiving terminal can be received through one or more receiving methods, including but not limited to cellular communication, Wifi (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 hardware circuit board routing reception, or obtain parameters from a software module, or read information from a storage device. In addition to including the available storage capacity of each component in the at least two components, the storage resource information may also include other information, such as the number, identification or total available storage capacity of the at least two components. The available storage capacity of each of the at least two components may not be fully put into the storage resource feedback information, because it may be determined on the terminal side that one or more networking modules of the at least two components are not used to store the software upgrade package of the terminal according to the available storage capacity in the storage resource information; of course, the above determination operation may also be performed on the network side instead of the terminal side. Since it is possible that the software upgrade does not need to occupy all of the at least two components, the multiple components may be some of the at least two components. The sending of the at least one indication information may be carried out through one or more sending methods, including but not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters to a software module, or writing information to a memory.By reporting the storage resource information of the terminal to the network-side device, the network-side device adaptively divides the upgrade package into multiple blocks according to the actual situation of the terminal storage resources, thereby fully utilizing the storage resources of multiple components in the terminal and reducing the software package storage pressure of the terminal-side components compared to the existing technology; in addition, since the splitting of larger data packets requires more random storage resources, the division of the upgrade package into blocks by the network side can also reduce the storage resource requirements for the terminal-side components, ultimately improving the success rate of software upgrades, and being more suitable for software upgrades of terminals (especially smart connected vehicles).
[0014] According to the first aspect, in a first possible implementation of the software upgrade method, the upgrade package block information also includes a download address of each upgrade package block in the multiple upgrade package blocks, and each indication information in the at least one indication information includes a download address of at least one upgrade package block in the multiple upgrade package blocks. The terminal software can be centrally stored in a device on the network side, or distributedly stored in multiple devices on the network side, so that optionally, the download addresses of the multiple upgrade package blocks are one or more, or at least some of the multiple upgrade package blocks share a download address. The download address is used to indicate to the component the network side device where the upgrade package block corresponding to the component is located.
[0015] According to the first aspect or the first possible implementation of the first aspect, in a second possible implementation of the software upgrade method, the upgrade package block information also includes verification information of each upgrade package block in the multiple upgrade package blocks, and each indication information in the at least one indication information includes verification information of at least one upgrade package block in the multiple upgrade package blocks. Independent verification of each upgrade package block can further make full use of the computing resources of the device in the terminal. Optionally, the upgrade package block information also includes the number of the multiple upgrade package blocks, and the method further includes the step of: performing an overall verification based on the verification result of each upgrade package block and the number of the multiple upgrade package blocks.
[0016] According to the first aspect, or any implementation of the first aspect above, in a third possible implementation of the software upgrade method, the at least one indication information includes an external communication resource used by the multiple components to obtain at least one upgrade package block in the multiple upgrade package blocks. The external communication resource is a communication resource used by the components in the terminal to communicate with devices outside the terminal (for example, a cellular communication resource used for vehicle-external network communication), including but not limited to: the external communication resource includes but is not limited to communication resources such as communication devices, communication channels or communication interfaces required for cellular communication, satellite communication, Bluetooth communication, Wifi (Wireless Fidelity, wireless local area network) or wired communication. Optionally, the external communication resource includes the external communication resource of each of the multiple components itself, or the external communication resources of one or more other components in the terminal other than the multiple components. Optionally, each of the multiple components obtains an upgrade package block in the multiple upgrade package blocks through its own external communication resource, or through other external communication resources of the terminal other than its own external communication resource.
[0017] According to the first aspect, or any implementation of the first aspect above, in a fourth possible implementation of the software upgrade method, the at least one indication information includes time information used by the multiple components to obtain at least one upgrade package block among the multiple upgrade package blocks. Optionally, the time information indicates that the multiple components obtain the multiple upgrade package blocks simultaneously or sequentially. Optionally, the time information indicates that the multiple components obtain the at least one upgrade package block periodically.
[0018] According to the first aspect, or any implementation of the first aspect above, in a fifth possible implementation of the software upgrade method, before generating the storage resource feedback information, the method further includes: 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 of the terminal software upgrade. When the network-side device initiates a download to the terminal device, the storage requirements of the multiple terminal software upgrade packages to be downloaded are sent 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, thereby giving the terminal device higher autonomy and privacy. Optionally, if the difference between the sum of the available storage capacity and the sum of the storage space occupied by the software upgrade packages exceeds a predetermined threshold, it is determined that the available storage resources in the terminal meet the storage requirements of the terminal software upgrade.
[0019] According to the first aspect, or any implementation of the first aspect above, in a sixth possible implementation of the software upgrade method, the at least one indication information is a plurality of indication information, and the plurality of indication information corresponds to the plurality of components one by one, and sending the at least one indication information to the plurality of components includes: sending one indication information of the plurality of indication information corresponding to each component to each of the plurality of components. Optionally, the plurality of indication information are sent simultaneously or sequentially.
[0020] According to the first aspect, or any implementation of the first aspect above, in a seventh possible implementation of the software upgrade method, the at least one indication message is one indication message, and the sending of the at least one indication message to the multiple components includes: sending the one indication message to each of the multiple components. In this manner, the one indication message includes relevant information that each of the multiple components obtains one of the multiple upgrade package blocks. Optionally, the one indication message is sent to each of the multiple components simultaneously or sequentially.
[0021] According to the first aspect, or any implementation manner of the first aspect above, in an eighth possible implementation manner of the software upgrade method, the at least one indication information is one indication information, and the sending the at least one indication information to the multiple components includes: sending the one indication information to one component among the multiple components. In this manner, the multiple components can transmit the one indication information to each other.
[0022] According to the first aspect, or any implementation of the first aspect above, in a ninth possible implementation of the software upgrade method, the method further includes: sending a download instruction to the multiple components, the download instruction being used to instruct the multiple components to obtain multiple upgrade package blocks corresponding one-to-one to the multiple components.
[0023] According to the first aspect, or any implementation manner of the first aspect above, in a tenth possible implementation manner of the software upgrade method, the method further includes: sending an upgrade package distribution instruction to the multiple components, the upgrade package distribution instruction being used to instruct the multiple components to send one or more upgrade package blocks of the multiple upgrade package blocks to at least one component other than the multiple components in the terminal, wherein the one or more upgrade package blocks are obtained by the multiple components by parsing a plurality of upgrade package blocks corresponding one-to-one to the multiple components.
[0024] According to the first aspect, or any implementation of the first aspect above, in an eleventh possible implementation of the software upgrade method, the method further includes: sending installation activation instructions to the multiple components, the installation activation instructions being used to instruct the installation and activation of at least one upgrade software in the multiple components, wherein the at least one upgrade software is obtained by the multiple components by parsing a plurality of upgrade package blocks corresponding one-to-one to the multiple components.
[0025] According to the first aspect, or any implementation of the first aspect above, in a twelfth possible implementation of the software upgrade method, the available storage capacity includes at least one of the available storage capacity in the random access memory RAM or the available storage capacity in the read-only memory ROM.
[0026] According to the first aspect, or any implementation of the first aspect above, in a thirteenth possible implementation of the software upgrade method, each upgrade package block of the multiple upgrade package blocks includes all or part of the upgrade software package required for upgrading at least one component in the terminal.
[0027] In a second aspect, a software upgrade method is provided, which is a software upgrade method executed by the network side, comprising: receiving storage resource feedback information from a terminal device, the storage resource feedback information at least including 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; dividing one or more software upgrade packages into a plurality of upgrade package blocks according to the storage resource feedback information, the plurality of upgrade package blocks corresponding one-to-one to the available storage capacity of at least part of each of the components; generating upgrade package block information, the upgrade package block information at least including the correspondence between the plurality of upgrade package blocks and the available storage capacity of at least part of each of the components; and sending the upgrade package block information to the terminal device.
[0028] Optionally, dividing one or more software upgrade packages into multiple upgrade package blocks includes: splitting a software upgrade package (such as a whole vehicle upgrade package) that occupies a large storage capacity and repackaging it into multiple upgrade package blocks, or grouping multiple software upgrade packages (such as one software upgrade package corresponding to one upgrade software) and repackaging them into multiple upgrade package blocks. By dividing one or more software upgrade packages into multiple upgrade package blocks that correspond one to one with at least some of the components, the storage resources of multiple components in the terminal are fully utilized, and the software package storage pressure of the terminal side components is reduced compared to the prior art; in addition, since the splitting of larger data packets requires more random storage resources, the upgrade package is divided into blocks by the network side, which can also reduce the storage resource requirements for the terminal side components, and ultimately can improve the success rate of software upgrades, which is more suitable for software upgrades of terminals (especially smart connected vehicles).
[0029] According to the second aspect, in a first possible implementation of the software upgrade method, the upgrade package block information includes at least one of the verification information of each upgrade package block in the multiple upgrade package blocks, the download address of each upgrade package block, or the number of the multiple upgrade package blocks. The upgrade package block information includes the verification information of each upgrade package block, which can enable each upgrade package block to be independently verified, thereby making full use of the computing resources of multiple available components in the terminal; the upgrade package block information includes the download address of each upgrade package block, which can indicate to multiple components in the terminal the network side device for obtaining the multiple upgrade package blocks; the upgrade package block information includes the number of upgrade package blocks, which can be used for the data integrity verification of the multiple upgrade package blocks as a whole.
[0030] According to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the software upgrade method, before receiving storage resource feedback information from the terminal device, the method further includes: sending a software upgrade initiation message to the terminal device. In addition to initiating the software upgrade by the network side device, the software upgrade can also be initiated by the terminal device.
[0031] According to the second aspect, or any implementation of the second aspect above, in a third possible implementation of the software upgrade method, before dividing the one or more software upgrade packages into a plurality of upgrade package blocks, the method further includes: determining, based on the storage resource feedback information, whether the available storage resources in the terminal device meet the storage requirements of the software upgrade. Optionally, if the difference between the sum of the available storage capacity and the sum of the storage space occupied by the software upgrade packages exceeds a predetermined threshold, it is determined that the available storage resources in the terminal device meet the storage requirements of the software upgrade.
[0032] According to the second aspect, or any implementation of the second aspect above, in a fourth possible implementation of the software upgrade method, the dividing one or more software upgrade packages into multiple upgrade package blocks includes: preferentially dividing a software upgrade package that occupies a larger storage space into an upgrade package block corresponding to a component with a larger available storage capacity. The multiple upgrade package blocks correspond to the multiple components one-to-one, and this method can try to avoid the situation where an individual software upgrade package is too large to be divided into any software upgrade package in the multiple upgrade package blocks.
[0033] According to the second aspect, or any implementation of the second aspect above, in a fifth possible implementation of the software upgrade method, the method also includes: sending an upgrade package distribution instruction to at least one network-side upgrade software storage device, wherein the upgrade package distribution instruction is used to instruct the at least one network-side upgrade software storage device to send at least one upgrade package block among the multiple upgrade package blocks to the terminal device.
[0034] According to the second aspect, or any implementation of the second aspect above, in a sixth possible implementation of the software upgrade method, the method further includes: sending at least one upgrade package block of the multiple upgrade package blocks to the terminal device.
[0035] According to the sixth possible implementation manner of the second aspect, in the seventh possible implementation manner of the software upgrade method, before sending at least one upgrade package block among the multiple upgrade package blocks to the terminal device, the method also includes: receiving at least one upgrade package block among the multiple upgrade package blocks from at least one network-side upgrade software storage device.
[0036] According to the second aspect, or any implementation of the second aspect above, in an eighth possible implementation of the software upgrade method, the available storage capacity includes at least one of the available storage capacity in the random access memory RAM or the available storage capacity in the read-only memory ROM.
[0037] According to the second aspect, or any implementation of the second aspect above, in a ninth possible implementation of the software upgrade method, each of the multiple upgrade package blocks includes all or part of the upgrade software package required to upgrade at least one component in the terminal.
[0038] In a third aspect, a software upgrade device is provided, comprising: a receiving unit, configured to receive storage resource information of at least two components in a terminal, wherein the storage resource information includes at least the available storage capacity of each of the at least two components, and the at least two components correspond to at least two available storage capacities; a processing unit, configured to generate storage resource feedback information according to the storage resource information, wherein the storage resource feedback information includes at least the available storage capacity of each of the at least two components; a sending unit, configured to send the storage resource feedback information to a network side device; the receiving unit is also configured to receive upgrade package block information generated by the network side device, wherein the upgrade package block information includes at least a one-to-one correspondence between multiple upgrade package blocks for terminal software upgrade and multiple available storage capacities in the at least two available storage capacities; the processing unit is also configured to generate at least one indication information for instructing multiple components to obtain the multiple upgrade package blocks according to the upgrade package block information, wherein the multiple components correspond one-to-one to the multiple available storage capacities; and the sending unit is also configured to send the at least one indication information to the multiple components.
[0039] The device is a software upgrade device on the terminal side. Among them, "at least part" is equivalent to "part or all". Optionally, the storage resource feedback information also includes the identification of each component of the at least two components of the at least part. The component refers to the component connected to the internal network of the terminal (such as the in-vehicle network). The at least two components may be all the components in the terminal, or only some of the components in the terminal, because there may be components in which the storage resources have been completely used up or the storage resources are reserved for other operations. The storage resource information of at least two components in the receiving terminal can be received through one or more receiving methods, and the receiving method includes but is not limited to receiving through cellular communication, Wifi (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 hardware circuit board routing, or 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 also include other information, such as the number, identification or total available storage capacity of the at least two components. The available storage capacity of each of the at least two components may not be fully put into the storage resource feedback information, because it may be determined on the terminal side that one or more networking modules of the at least two components are not used to store the software upgrade package of the terminal according to the available storage capacity in the storage resource information; of course, the above determination operation may also be performed on the network side instead of the terminal side. Since the software upgrade may not occupy all of the at least two components, the multiple components may be some of the at least two components. The sending of the at least one indication information may be carried out in one or more sending modes, including but not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters to a software module, or writing information to a memory.By reporting the storage resource information of the terminal to the network-side device, the network-side device adaptively divides the upgrade package into multiple blocks according to the actual situation of the terminal storage resources, thereby fully utilizing the storage resources of multiple components in the terminal and reducing the software package storage pressure of the terminal-side components compared to the existing technology; in addition, since the splitting of larger data packets requires more random storage resources, the division of the upgrade package into blocks by the network side can also reduce the storage resource requirements for the terminal-side components, ultimately improving the success rate of software upgrades, and being more suitable for software upgrades of terminals (especially smart connected vehicles).
[0040] Optionally, the receiving unit includes a plurality of sub-receiving units, and the plurality of sub-receiving units are respectively used to receive storage resource information of at least one of the at least two components in the terminal. Optionally, the plurality of sub-receiving units are located in different components in the terminal. Optionally, the plurality of sub-receiving units receive the storage resource information through at least one receiving method, and the receiving method includes but is not limited to receiving through cellular communication, Wifi (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 routing on a hardware circuit board, or obtaining parameters from a software module, or reading information from a storage device.
[0041] Optionally, the storage resource feedback information further includes an identifier of at least one component corresponding one-to-one to available storage capacity of at least some of the multiple components, and the at least one component is part or all of the at least two components.
[0042] Optionally, the sending unit includes a plurality of sub-sending units, and the plurality of sub-sending units are respectively used to send the at least one indication information to the plurality of components. Optionally, the plurality of sub-sending units are located in different plurality of components in the terminal. Optionally, the plurality of sub-sending units send the storage resource information through at least one sending method, and the sending method includes but is not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters to a software module, or writing information to a memory.
[0043] According to the third aspect, in a first possible implementation of the software upgrade device, the upgrade package block information also includes a download address of each upgrade package block in the multiple upgrade package blocks, and each indication information in the at least one indication information includes a download address of at least one upgrade package block in the multiple upgrade package blocks. The terminal software can be centrally stored in a device on the network side, or distributedly stored in multiple devices on the network side, so that optionally, the download addresses of the multiple upgrade package blocks are one or more, or at least some of the multiple upgrade package blocks share a download address. The download address is used to indicate to the component the network side device where the upgrade package block corresponding to the component is located.
[0044] According to the third aspect or the first possible implementation of the third aspect, in a second possible implementation of the software upgrade device, the upgrade package block information also includes verification information of each upgrade package block in the multiple upgrade package blocks, and each indication information in the at least one indication information includes verification information of at least one upgrade package block in the multiple upgrade package blocks. Independent verification of each upgrade package block can further make full use of the computing resources of the device in the terminal. Optionally, the upgrade package block information also includes the number of the multiple upgrade package blocks, and the device further includes the step of: performing an overall verification based on the verification result of each upgrade package block and the number of the multiple upgrade package blocks.
[0045] According to the third aspect, or any implementation of the third aspect above, in a third possible implementation of the software upgrade device, the at least one indication information includes the external communication resources used by the multiple components to obtain at least one upgrade package block in the multiple upgrade package blocks. The external communication resources are communication resources used by the components in the terminal to communicate with devices outside the terminal (for example, cellular communication resources used for vehicle-external network communication), including but not limited to: the external communication resources include but are not limited to communication resources such as communication devices, communication channels or communication interfaces required for cellular communication, satellite communication, Bluetooth communication, Wifi (Wireless Fidelity, wireless local area network) or wired communication. Optionally, the external communication resources include the external communication resources of each of the multiple components itself, or the external communication resources of one or more other components in the terminal other than the multiple components. Optionally, each of the multiple components obtains one of the multiple upgrade package blocks through its own external communication resources, or through other external communication resources of the terminal other than its own external communication resources.
[0046] According to the third aspect, or any implementation of the third aspect, in a fourth possible implementation of the software upgrade device, the at least one indication information includes time information used by the multiple components to obtain at least one upgrade package block among the multiple upgrade package blocks. Optionally, the time information indicates that the multiple components obtain the multiple upgrade package blocks simultaneously or sequentially. Optionally, the time information indicates that the multiple components obtain the at least one upgrade package block periodically.
[0047] According to the third aspect, or any implementation of the third aspect above, in a fifth possible implementation of the software upgrade device, the processing unit is further used to: determine, based on the available storage capacity of each of the at least two components, whether the available storage resources in the terminal meet the storage requirements of the terminal software upgrade. When the network-side device initiates downloading to the terminal device, the storage requirements of the multiple terminal software upgrade packages to be downloaded are sent 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, giving the terminal device higher autonomy and privacy. Optionally, if the difference between the sum of the available storage capacity and the sum of the storage space occupied by the software upgrade packages exceeds a predetermined threshold, it is determined that the available storage resources in the terminal meet the storage requirements of the terminal software upgrade.
[0048] According to the third aspect, or any implementation of the third aspect, in a sixth possible implementation of the software upgrade device, the at least one indication information is a plurality of indication information, and the plurality of indication information corresponds to the plurality of components one by one, and the sending of the at least one indication information to the plurality of components includes: sending one indication information of the plurality of indication information corresponding to each component to each of the plurality of components. Optionally, the plurality of indication information are sent simultaneously or sequentially.
[0049] According to the third aspect, or any implementation of the third aspect, in a seventh possible implementation of the software upgrade device, the at least one indication message is one indication message, and the sending of the at least one indication message to the multiple components includes: sending the one indication message to each of the multiple components. In this manner, the one indication message includes relevant information that each of the multiple components obtains one of the multiple upgrade package blocks. Optionally, the one indication message is sent to each of the multiple components simultaneously or sequentially.
[0050] According to the third aspect, or any implementation manner of the third aspect, in an eighth possible implementation manner of the software upgrade device, the at least one indication information is one indication information, and the sending the at least one indication information to the multiple components includes: sending the one indication information to one component among the multiple components. In this manner, the multiple components can transmit the one indication information to each other.
[0051] According to the third aspect, or any implementation manner of the third aspect above, in a ninth possible implementation manner of the software upgrade device, the sending unit is also used to: send a download instruction to the multiple components, and the download instruction is used to instruct the multiple components to obtain multiple upgrade package blocks corresponding one-to-one to the multiple components.
[0052] According to the third aspect, or any implementation manner of the third aspect above, in the tenth possible implementation manner of the software upgrade device, the sending unit is also used to: send an upgrade package distribution instruction to the multiple components, and the upgrade package distribution instruction is used to instruct the multiple components to send one or more upgrade package blocks of the multiple upgrade package blocks to at least one component other than the multiple components in the terminal, wherein the one or more upgrade package blocks are obtained by the multiple components by parsing a plurality of upgrade package blocks corresponding one-to-one to the multiple components.
[0053] According to the third aspect, or any implementation manner of the third aspect above, in an eleventh possible implementation manner of the software upgrade device, the sending unit is also used to: send installation activation instructions to the multiple components, and the installation activation instructions are used to instruct the installation and activation of at least one upgrade software in the multiple components, wherein the at least one upgrade software is obtained by the multiple components by parsing multiple upgrade package blocks corresponding one by one to the multiple components.
[0054] Optionally, the multiple sub-sending units are used to send the download instructions, the upgrade package distribution instructions or the installation and activation instructions to the multiple components respectively.
[0055] According to the third aspect, or any implementation of the third aspect above, in a twelfth possible implementation of the software upgrade device, the available storage capacity includes at least one of the available storage capacity in the random access memory RAM or the available storage capacity in the read-only memory ROM.
[0056] According to the third aspect, or any implementation of the third aspect above, in a thirteenth possible implementation of the software upgrade device, each upgrade package block of the multiple upgrade package blocks includes all or part of the upgrade software package required for upgrading at least one component in the terminal.
[0057] In a fourth aspect, a software upgrade device is provided, which is located on a network side and includes: a receiving unit, used to receive storage resource feedback information from a terminal device, the storage resource feedback information at least including 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, used to divide one or more software upgrade packages into a plurality of upgrade package blocks according to the storage resource feedback information, the plurality of upgrade package blocks corresponding one-to-one to the available storage capacity of at least part of each of the components; the processing unit is also used to generate upgrade package block information, the upgrade package block information at least including the correspondence between the plurality of upgrade package blocks and the available storage capacity of at least part of each of the components; a sending unit, used to send the upgrade package block information to the terminal device. By dividing one or more software upgrade packages into multiple upgrade package blocks corresponding to at least some of the components, the storage resources of multiple components in the terminal are fully utilized, and the software package storage pressure of the terminal side components is reduced compared with the prior art; in addition, since the splitting of larger data packets requires more random storage resources, the division of the upgrade package into blocks by the network side can also reduce the storage resource requirements for the terminal side components, and ultimately improve the success rate of software upgrades, which is more suitable for software upgrades of terminals (especially smart connected vehicles).
[0058] The receiving unit may use one or more receiving methods, including but not limited to receiving through cellular communication, Wifi (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 routing on a hardware circuit board, or obtaining parameters from a software module, or reading information from a storage device.
[0059] Optionally, the receiving unit includes a plurality of sub-receiving units, and the plurality of sub-receiving units are respectively used to receive storage resource information of at least one of the at least two components in the terminal. Optionally, the plurality of sub-receiving units are located in different components in the terminal. Optionally, the plurality of sub-receiving units receive the storage resource information through at least one receiving method, and the receiving method includes but is not limited to receiving through cellular communication, Wifi (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 routing on a hardware circuit board, or obtaining parameters from a software module, or reading information from a storage device.
[0060] The sending unit may use one or more sending methods, including but not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters into a software module, or writing information into a memory.
[0061] Optionally, the sending unit includes a plurality of sub-sending units, and the plurality of sub-sending units are respectively used to send the at least one indication information to the plurality of components. Optionally, the plurality of sub-sending units are located in different plurality of components in the terminal. Optionally, the plurality of sub-sending units send the storage resource information through at least one sending method, and the sending method includes but is not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters to a software module, or writing information to a memory.
[0062] Optionally, dividing one or more software upgrade packages into multiple upgrade package blocks includes: dividing a software upgrade package (such as a vehicle upgrade package) that occupies a large storage capacity and repackaging it into multiple upgrade package blocks, or grouping multiple software upgrade packages (such as one software upgrade package corresponding to one upgrade software) and repackaging them into multiple upgrade package blocks. By dividing one or more software upgrade packages into multiple upgrade package blocks that correspond one to one with at least some of the components, the storage resources of the terminal can be fully utilized, the success rate of the terminal's software upgrade can be improved, and it is more suitable for software upgrades of terminals (especially smart connected vehicles).
[0063] According to the fourth aspect, in a first possible implementation of the software upgrade device, the upgrade package block information includes at least one of the verification information of each upgrade package block in the multiple upgrade package blocks, the download address of each upgrade package block, or the 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 independently verified, thereby making full use of the computing resources of multiple available components in the terminal; the upgrade package block information includes the download address of each upgrade package block, which can indicate to multiple components in the terminal the network side device for obtaining the multiple upgrade package blocks; the upgrade package block information includes the number of upgrade package blocks, which can be used for the data integrity verification of the multiple upgrade package blocks as a whole.
[0064] According to the fourth aspect or the first possible implementation of the fourth aspect, in a second possible implementation of the software upgrade device, the sending unit is further used to: send a software upgrade start message to the terminal device. In addition to the software upgrade being started by the network side device, the software upgrade can also be started by the terminal device.
[0065] According to the fourth aspect, or any implementation of the fourth aspect, in a third possible implementation of the software upgrade device, the processing unit is further configured to: determine, based on the storage resource feedback information, whether the available storage resources in the terminal device meet the storage requirements of the software upgrade. Optionally, if the difference between the sum of the available storage capacity and the sum of the storage space occupied by the software upgrade package exceeds a predetermined threshold, it is determined that the available storage resources in the terminal device meet the storage requirements of the software upgrade.
[0066] According to the fourth aspect, or any implementation of the fourth aspect, in a fourth possible implementation of the software upgrade device, the dividing one or more software upgrade packages into multiple upgrade package blocks includes: preferentially dividing a software upgrade package that occupies a larger storage space into an upgrade package block corresponding to a component with a larger available storage capacity. The multiple upgrade package blocks correspond to the multiple components one-to-one, and this method can try to avoid the situation where an individual software upgrade package is too large to be divided into any software upgrade package in the multiple upgrade package blocks.
[0067] According to the fourth aspect, or any implementation manner of the fourth aspect above, in a fifth possible implementation manner of the software upgrade device, the sending unit is also used to: send an upgrade package distribution instruction to at least one network-side upgrade software storage device, and the upgrade package distribution instruction is used to instruct the at least one network-side upgrade software storage device to send at least one upgrade package block among the multiple upgrade package blocks to the terminal device.
[0068] According to the fourth aspect, or any implementation of the fourth aspect above, in a sixth possible implementation of the software upgrade device, the sending unit is also used to: send at least one upgrade package block among the multiple upgrade package blocks to the terminal device.
[0069] According to a sixth possible implementation manner of the fourth aspect, in a seventh possible implementation manner of the software upgrade device, the receiving unit is further used to: receive at least one upgrade package block among the multiple upgrade package blocks from an upgrade software storage device on at least one network side.
[0070] According to the fourth aspect, or any implementation of the fourth aspect above, in an eighth possible implementation of the software upgrade device, the available storage capacity includes at least one of the available storage capacity in the random access memory RAM or the available storage capacity in the read-only memory ROM.
[0071] According to the fourth aspect, or any implementation of the fourth aspect above, in a ninth possible implementation of the software upgrade device, each of the multiple upgrade package blocks includes all or part of the upgrade software package required for upgrading at least one component in the terminal.
[0072] In a fifth aspect, a software upgrade device is provided, comprising a memory and a processor, wherein the memory stores computer program instructions, and the processor runs the computer program instructions to perform operations of the first aspect or any one of the implementation methods of the first aspect above.
[0073] According to the fifth aspect, in a first possible implementation method of the software upgrade device, the device also includes a transceiver for receiving the storage resource information or the upgrade package block information, or for sending at least one of the storage resource feedback information, the at least one indication information, the download instruction, the upgrade package distribution instruction and the installation activation instruction.
[0074] The software upgrade device described in the third or fifth aspect, or any implementation of the third or fifth aspect, can be applied to terminal devices including but not limited to smart connected vehicles, robots, and smart homes. When applied to smart connected vehicles, the software upgrade device can be the smart connected vehicle itself, or a component of the smart connected vehicle, such as a central gateway, a T-box (Telematics BOX, a vehicle-to-vehicle communication terminal), a human-machine interaction controller (HMI, Human-Machine Interaction), a mobile data center (MDC, Mobile Data Controller), an advanced driving assistance system (ADAS, Advanced Driving Assistant System) or an electronic control unit (ECU, Electronic Control Unit), or a sub-device in the above components, or an independent device in the smart connected vehicle other than the above components.
[0075] In a sixth aspect, a software upgrade device is provided, comprising a memory and a processor, wherein the memory stores computer program instructions, and the processor runs the computer program instructions to perform the operations of the second aspect or any one of the implementation methods of the second aspect above.
[0076] According to the sixth aspect, in a first possible implementation of the software upgrade device, the device also includes a transceiver for receiving the storage resource feedback information or at least one upgrade package block among the multiple upgrade package blocks, or for sending at least one of the upgrade package block information, the software upgrade startup message, the upgrade package distribution instruction and the at least one upgrade package block.
[0077] The software upgrade device described in the fourth or sixth aspect, or any implementation of the fourth or sixth aspect, can be applied to the network side, for example, in the form of a server on the network side.
[0078] In a seventh aspect, a terminal software upgrade system is provided, comprising a software upgrade device according to the third aspect or any one implementation of the third aspect above and a software upgrade device according to the fourth aspect or any one implementation of the fourth aspect above.
[0079] In an eighth aspect, a terminal software upgrade system is provided, comprising a software upgrade device of the fifth aspect or any one implementation of the fifth aspect above and a software upgrade device of the sixth aspect or any one implementation of the sixth aspect above.
[0080] In a ninth aspect, a computer storage medium is provided, comprising computer instructions, which, when executed by a processor, enable the software upgrade device to execute the method of the first aspect or any one of the implementation modes of the first aspect above.
[0081] In a tenth aspect, a computer storage medium is provided, comprising computer instructions, which, when executed by a processor, enable the software upgrade device to execute the method of the second aspect or any one of the implementation modes of the second aspect above.
[0082] In an eleventh aspect, a computer program product is provided, which, when executed on a processor, enables the software upgrade device to execute the method of the first aspect or any one of the implementation modes of the first aspect above.
[0083] In a twelfth aspect, a computer program product is provided. When the computer program product runs on a processor, the software upgrade device executes the method of the second aspect or any one of the implementation modes of the second aspect above.
[0084] In a thirteenth aspect, a method for upgrading in-vehicle software is provided, comprising: receiving storage resource information of at least two components in a vehicle, the storage resource information comprising at least the available storage capacity of each of the at least two components; sending at least one indication message to multiple components in the vehicle, the at least one indication message being used to instruct the multiple components to obtain multiple upgrade package blocks, wherein the multiple upgrade package blocks are obtained by dividing one or more upgrade package packages according to the storage resource information, and the multiple components correspond one-to-one to the available storage capacity of each of at least part of the at least two components.
[0085] In a fourteenth aspect, a vehicle-mounted software upgrade device is provided, comprising: a receiving unit, used to receive storage resource information of at least two components in the vehicle, the storage resource information including at least the available storage capacity of each of the at least two components; a sending unit, used to send at least one indication message to multiple components in the vehicle, the at least one indication message being used to instruct the multiple components to obtain multiple upgrade package blocks, wherein the multiple upgrade package blocks are obtained by dividing one or more upgrade package blocks according to the storage resource information, and the multiple components correspond one-to-one to the available storage capacity of each of at least part of the at least two components.
[0086] In a fifteenth aspect, a method for upgrading vehicle-mounted software is provided, comprising: sending storage resource feedback information in the vehicle to a network-side device, the storage resource feedback information including at least the available storage capacity of each of at least two components in the vehicle; 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 multiple upgrade package blocks used for upgrading the vehicle-mounted software and at least part of the available storage capacity of each of the components.
[0087] In the sixteenth aspect, a vehicle-mounted software upgrade device is provided, comprising: a sending unit, used to send storage resource feedback information in the vehicle to a network-side device, the storage resource feedback information at least including the available storage capacity of each of at least two components in the vehicle; a receiving unit, used to receive upgrade package block information generated by the network-side device from the network-side device, the upgrade package block information at least including a one-to-one correspondence between multiple upgrade package blocks used for vehicle-mounted software upgrade and at least part of the available storage capacity of each of the components.
[0088] In the seventeenth aspect, a method for upgrading vehicle-mounted software is provided, comprising: receiving storage resource feedback information from a vehicle, the storage resource feedback information including at least the available storage capacity of each of a plurality of components in the vehicle that can be used to store a plurality of upgrade package blocks; sending the upgrade package block information to the terminal device, the upgrade package block information including at least a one-to-one correspondence between a plurality of upgrade package blocks and the available storage capacity of at least part of each of the components.
[0089] In the eighteenth aspect, a vehicle-mounted software upgrade device is provided, comprising: a receiving unit, used to receive storage resource feedback information from a vehicle, the storage resource feedback information at least including the available storage capacity of each of a plurality of components in the vehicle that can be used to store a plurality of upgrade package blocks; a sending unit, used to send the upgrade package block information to the terminal device, the upgrade package block information at least including a one-to-one correspondence between a plurality of upgrade package blocks and the available storage capacity of at least part of each of the components. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0091] Figure 1 A flowchart of a software upgrade method when storage resources are sufficient in the prior art;
[0092] Figure 2 A flowchart of a software upgrade method when storage resources are insufficient in the prior art;
[0093] Figure 3 A schematic diagram of a typical application scenario of the present invention;
[0094] Figure 4 A schematic diagram of a first existence form of a software upgrade device on a terminal side is provided for an embodiment of the present invention;
[0095] Figure 5 A schematic diagram of the second and third existence forms of the software upgrade device on the terminal side is provided for the embodiment of the present invention;
[0096] Figure 6 A schematic diagram of a fourth existence form of a software upgrade device on a terminal side is provided for an embodiment of the present invention;
[0097] Figure 7 A schematic diagram of a first working mode of a software upgrade device on a network side is provided for an embodiment of the present invention;
[0098] Figure 8 A schematic diagram of a second working mode of a software upgrade device on a network side is provided for an embodiment of the present invention;
[0099] Fig. 9 A schematic diagram of a third working mode of a software upgrade device on a network side is provided for an embodiment of the present invention;
[0100] Fig.10 A schematic diagram of a fourth working mode of a network-side software upgrade device is provided for an embodiment of the present invention;
[0101] Fig.11 A schematic diagram of a fifth working mode of a network-side software upgrade device is provided for an embodiment of the present invention;
[0102] Fig.12 A flowchart of a method for upgrading software on a terminal side provided in Embodiment 1 of the present invention;
[0103] Fig.13 A flowchart of a method for upgrading software on the network side provided by Embodiment 2 of the present invention;
[0104] Fig.14 A flowchart of the terminal storage resource query and reporting phase in the software upgrade method provided in the third embodiment of the present invention;
[0105] Fig.15 A flowchart of the software upgrade package segmentation phase in the software upgrade method provided in Embodiment 3 of the present invention;
[0106] Fig.16 A first flow chart of the phase of sending upgrade package block information and indication information in the software upgrade method provided in the third embodiment of the present invention;
[0107] Fig.17 A second flow chart of the upgrade package block information and indication information sending phase in the software upgrade method provided in the third embodiment of the present invention;
[0108] Fig.18 A third flow chart of the stage of sending upgrade package block information and indication information in the software upgrade method provided in the third embodiment of the present invention;
[0109] Fig.19 A fourth flow chart of the stage of sending upgrade package block information and indication information in the software upgrade method provided in the third embodiment of the present invention;
[0110] Fig. 20 A structural block diagram of a software upgrade device provided in Embodiment 4 and Embodiment 5 of the present invention;
[0111] Fig.21A structural block diagram of a software upgrade system provided in Embodiment 6 of the present invention;
[0112] Fig. 22 A structural block diagram of a software upgrade device provided in Embodiment 7 and Embodiment 8 of the present invention;
[0113] Fig.23 A schematic diagram of a terminal-side software upgrade device implemented on a T-box provided in Embodiment 7 of the present invention;
[0114] Fig.24 This is a schematic diagram of the software upgrade device on the terminal side provided in Example 7 of the present invention being implemented on the human-computer interaction controller. DETAILED DESCRIPTION
[0115] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0116] The embodiments of the present invention can be applied to application scenarios of upgrading multiple components in a terminal (including but not limited to smart connected vehicles, robots or smart homes). Figure 3It is a schematic diagram of a typical application scenario of the present invention, in which the intelligent networked car is connected to the 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 2G (second generation mobile communication technology), 3G (third generation mobile communication technology), 4G (fourth generation mobile communication technology), 5G (fifth generation mobile communication technology), Wifi (Wireless Fidelity, wireless local area network), Wimax (Worldwide Interoperability for Microwave Access), Bluetooth (Bluetooth communication technology), ZigBee (Purple Bee communication technology), optical transmission, satellite communication or infrared communication. The components in the intelligent networked car include a central gateway, a T-box (Telematics BOX, a vehicle networking vehicle communication terminal), a human-machine interaction controller (HMI, Human-Machine Interaction), a mobile data center (MDC, MobileData Controller), an advanced driving assistance system (ADAS, Advanced Driving Assistant System) and multiple electronic control units (ECU, Electronic Control Unit) and other components.
[0117] Taking the application scenario of intelligent network-connected vehicles as an example, the following introduces four typical forms of the software upgrade device on the terminal side provided by the embodiment of the present invention (the actual situation is not limited to these four typical forms), including:
[0118] First, the software upgrade device can exist as an independent component in the intelligent networked vehicle (see Figure 4 The software upgrade device 401 in the vehicle has both external and internal network communication functions, and is used to interact with network-side devices for signaling or data and coordinate with other components in the vehicle to store, distribute, install or activate upgrade software. The software upgrade device 401 itself may also be an in-vehicle component that needs to be upgraded, and receives and stores software upgrade packages from network-side devices.
[0119] In the second and third types, the software upgrade device may be a conventional component in the intelligent connected vehicle (e.g. Figure 5 The T-box 501 in the vehicle, or a sub-device in the conventional component, has both the vehicle external network and vehicle internal network communication functions, and is used to exchange signaling or data with the network side device and coordinate other components in the vehicle to store, distribute, install or activate upgrade software. At this time, the T-box 501 itself may also be an in-vehicle component that needs to be upgraded, and receives and stores the software upgrade package from the network side device.
[0120] Fourthly, the software upgrade device may be the smart connected vehicle itself (e.g. Figure 6 The intelligent connected vehicle 601 in the embodiment of the present invention comprises a plurality of components (e.g. Figure 6 The software upgrade method on the terminal side provided by the embodiment of the present invention is completed by the cooperation of the T-box 602 and the MDC 603 in the vehicle. For example, the MDC 603 does not have the external network communication function, and exchanges signaling or data with the network side device through the T-box 602, and coordinates the storage, distribution, installation or activation of the upgrade software by other components in the vehicle through the internal network communication function of the MDC 603 itself.
[0121] Taking the application scenario of intelligent network-connected vehicles as an example, five typical working modes of the network-side software upgrade device provided by the embodiment of the present invention are introduced below (the actual situation is not limited to these five typical working modes), including:
[0122] The first (see Figure 7 ), all upgrade package blocks required for the component software upgrade in the smart car network vehicle 704 are centrally stored in the server 701 on the network side, and the server 701 is the network side software upgrade device provided by the embodiment of the present invention. The server 701 receives storage resource feedback information from the smart car network vehicle 704, and sends the upgrade package block information and each upgrade package block in the multiple upgrade package blocks to the smart car network vehicle 704.
[0123] The second (see Figure 8 ), the server 801 is a network-side software upgrade device provided by an embodiment of the present invention, and multiple upgrade package blocks required for the component software upgrade in the smart car network vehicle 804 are distributedly stored on multiple servers on the network side (for example, including servers 802 and 803, which may or may not include server 801). The server 801 receives storage resource feedback information from the smart car network vehicle 804, receives at least one upgrade package block from servers 802 and 803 respectively, and sends the upgrade package block information and each upgrade package block in the multiple upgrade package blocks to the smart car network vehicle 804.
[0124] The third (see Fig. 9), the server 901 is a network-side software upgrade device provided by an embodiment of the present invention, and multiple upgrade package blocks required for the component software upgrade in the smart car network vehicle 904 are distributedly stored on multiple servers on the network side (for example, including servers 902 and 903, but not including server 901). Server 901 receives storage resource feedback information from the smart car network vehicle 904, and sends upgrade package block information to the smart car network vehicle 804. After receiving the upgrade package distribution instruction sent by the server 901, servers 902 and 903 respectively send at least one upgrade package block stored in themselves to the smart car network vehicle 904.
[0125] The fourth type (see Fig.10 ), the server 1001 is a network-side software upgrade device provided by an embodiment of the present invention, and multiple upgrade package blocks required for the component software upgrade in the smart car network vehicle 1004 are distributedly stored on multiple servers on the network side (for example, including servers 1002, 1003 and 1001). The server 1001 receives storage resource feedback information from the smart car network vehicle 1004, and sends upgrade package block information to the smart car network vehicle 1004. After receiving the upgrade package distribution instruction sent by the server 1001, the servers 1002 and 1003 respectively send at least one upgrade package block stored in themselves to the smart car network vehicle 1004, and the server 1001 also sends at least one upgrade package block stored in itself to the smart car network vehicle 1004.
[0126] The fifth (see Fig.11 ), the server 1101 is a network-side software upgrade device provided by an embodiment of the present invention, and multiple upgrade package blocks required for the component software upgrade in the smart car network vehicle 1104 are distributedly stored on multiple servers on the network side (for example, including servers 1102 and 1103, which may or may not include server 1101). Server 1101 receives storage resource feedback information from the smart car network vehicle 1104, and sends upgrade package block information to the smart car network vehicle 1104. After receiving the upgrade package distribution instruction sent by server 1101, server 1102 sends at least one upgrade package block stored in itself to the smart car network vehicle 1104. Server 1103 sends at least one upgrade package block stored in itself to server 1101. Server 1101 sends at least one upgrade package block (including at least one upgrade package block stored by server 1103) to smart car network vehicle 1104.
[0127] Embodiment 1 of the present invention provides a terminal-side software upgrade method, which is executed by a terminal-side software upgrade device (e.g., the aforementioned software upgrade device 401, T-box 501, a sub-device in T-box 501, or an intelligent networked vehicle 601), see Fig.12 ,include:
[0128] Step 1201: Receive storage resource information of at least two components in a terminal, wherein the storage resource information includes at least available storage capacity of each of the at least two components, and the at least two components correspond to at least two available storage capacities.
[0129] Optionally, the first embodiment of the present invention includes step 1202, determining, based on the available storage capacity of each of the at least two components, whether the available storage resources in the terminal meet the storage requirements of the terminal software upgrade.
[0130] Step 1203: Generate storage resource feedback information according to the storage resource information, wherein the storage resource feedback information at least includes the available storage capacity of each component.
[0131] Step 1204: Send the storage resource feedback information to the network side device.
[0132] Step 1205, receiving the upgrade package block information generated by the network side device, the upgrade package block information at least including a one-to-one correspondence between multiple upgrade package blocks for terminal software upgrade and multiple components for storing the multiple upgrade package blocks, the multiple components are part or all of the at least two components.
[0133] Step 1206: Generate at least one indication information for instructing multiple components to obtain the multiple upgrade package blocks according to the upgrade package block information, wherein the multiple components correspond to the multiple available storage capacities one by one.
[0134] Step 1207: Send the at least one indication information to the multiple components.
[0135] Optionally, the first embodiment of the present invention includes step 1208, sending a download instruction to the multiple components, wherein the download instruction is used to instruct the multiple components to obtain multiple upgrade package blocks corresponding to the multiple components one by one.
[0136] Optionally, embodiment 1 of the present invention includes step 1209, sending an upgrade package distribution instruction to the multiple components, wherein the upgrade package distribution instruction is used to instruct the multiple components to send one or more upgrade package blocks among the multiple upgrade package blocks to at least one component other than the multiple components in the terminal, wherein the one or more upgrade package blocks are obtained by the multiple components by parsing multiple upgrade package blocks corresponding one-to-one to the multiple components.
[0137] Optionally, embodiment 1 of the present invention includes step 1210, sending an installation activation instruction to the multiple components, the installation activation instruction is used to instruct the installation and activation of at least one upgrade software in the multiple components, wherein the at least one upgrade software is obtained by the multiple components by parsing multiple upgrade package blocks corresponding to the multiple components one by one.
[0138] Embodiment 2 of the present invention provides a network-side software upgrade method, which is executed by a network-side software upgrade device (such as the aforementioned software upgrade device 701, 801, 901, 1001 or 1101). Fig.13 ,include:
[0139] Optionally, the second embodiment of the present invention includes step 1301, sending a software upgrade start message to the terminal device.
[0140] Step 1302: Receive storage resource feedback information from a terminal device, where the storage resource feedback information includes at least the available storage capacity of each component in a plurality of components in the terminal device that can be used to store a plurality of upgrade package blocks.
[0141] Step 1303: Determine, based on the storage resource feedback information, whether the available storage resources in the terminal device meet the storage requirements for the software upgrade.
[0142] Step 1304: divide one or more software upgrade packages into a plurality of upgrade package blocks according to the storage resource feedback information, wherein the plurality of upgrade package blocks correspond one-to-one to the available storage capacity of at least part of each component.
[0143] Step 1305: Generate upgrade package block information, wherein the upgrade package block information at least includes a correspondence between the multiple upgrade package blocks and the available storage capacity of at least part of each component.
[0144] Step 1306: Send the upgrade package block information to the terminal device.
[0145] Optionally, the second embodiment of the present invention includes step 1307, receiving at least one upgrade package block among the multiple upgrade package blocks from at least one upgrade software storage device on the network side.
[0146] Optionally, the second embodiment of the present invention includes step 1308, sending at least one upgrade package block among the multiple upgrade package blocks to the terminal device.
[0147] Optionally, embodiment 2 of the present invention includes step 1309, sending an upgrade package distribution instruction to at least one network-side upgrade software storage device, wherein the upgrade package distribution instruction is used to instruct the at least one network-side upgrade software storage device to send at least one upgrade package block among the multiple upgrade package blocks to the terminal device.
[0148] The software upgrade method provided in the first and second embodiments of the present invention fully utilizes the storage resources of multiple components in the terminal, improves the download success rate, and is more suitable for the software upgrade requirements of more complex terminals (especially smart connected vehicles). In addition, the external communication resources of multiple components in the terminal can be used to download multiple upgrade package blocks, which fully utilizes the communication resources of the terminal and improves the download speed and download reliability; multiple upgrade package blocks can also be independently verified by multiple components, which fully utilizes the computing resources in the terminal, and the upgrade of other components will not be affected by incomplete upgrade software block data of individual components.
[0149] Embodiments 1 and 2 of the present invention are respectively about software upgrade methods on the network side or the terminal side. Embodiment 3 of the present invention provides a software upgrade method on both sides of the network side and the terminal, which can be implemented based on the combination of the two software upgrade methods on the network side and the terminal side provided by Embodiments 1 and 2 of the present invention. Since there are many parallel schemes in the terminal storage resource query and reporting stage, the software upgrade package block stage, and the upgrade package block information and indication information sending stage, the following is a summary of the software upgrade method. Figure 14-19 The above stages are described in detail. It should be noted that the first embodiment, the second embodiment and the third embodiment of the present invention can refer to each other for reference. Figure 14-Figure 19 The unilateral operation steps on the terminal side or the network side involved in the embodiment can also be applied to the unilateral operation methods of embodiments 1 and 2 of the present invention.
[0150] The flowchart of the terminal storage resource query and reporting stage in the third embodiment of the present invention is as follows: Fig.14 As shown, the following steps are included:
[0151] Step 1401, the network side software upgrade device sends a message for starting terminal software upgrade to the terminal software upgrade device;
[0152] Step 1402, the terminal software upgrade device checks its own available storage resources (denoted as t 1 );
[0153] Step 1403, the terminal software upgrade device initiates a storage resource query request to terminal component 1 and terminal component 2;
[0154] Step 1404, terminal component 1 and terminal component 2 check their own available storage resources;
[0155] Step 1405: Terminal component 1 and terminal component 2 allocate their available storage resources (respectively denoted as t 2 and t 3 ) report to the terminal software upgrade device;
[0156] Step 1406, the terminal software upgrade device calculates the total available storage resources in the terminal, that is, calculates t 1 +t 2 +t 3 , thereby determining whether the available storage resources in the terminal meet the storage requirements for terminal software upgrade;
[0157] If the available storage resources in the terminal meet the storage requirements of the terminal software upgrade, step 1407a is further executed, and the terminal software upgrade device generates storage resource feedback information, and step 1408a is executed, and the terminal software upgrade device sends the storage resource feedback information to the network side software upgrade device.
[0158] If the available storage resources in the terminal do not meet the storage requirements for the terminal software upgrade, step 1407b is further executed, and the terminal software upgrade device returns an error to the network side software upgrade device, terminating the terminal software upgrade.
[0159] It should be noted that whether the available storage resources in the terminal meet the storage requirements for terminal software upgrade can be determined by the terminal device or by the network side device.
[0160] In the software upgrade package segmentation stage, after receiving the storage resource feedback information sent by the terminal software upgrade device, the network side software upgrade device divides multiple terminal software upgrade packages into multiple upgrade package segments with hash check values. The segmentation process is as follows: Fig.15 As shown, the following steps are included:
[0161] Step 1501, construct N empty sets, denoted as I 1 ,…,I N , and use N variables s 1 ,…,s N Mark the maximum capacity of each collection, where s i =t i -C,t i is the available storage resource of the ith component of the terminal, and C is the storage space occupied by the hash check value;
[0162] Step 1502: Arrange the M software upgrade packages in descending order to obtain package 1 ,package 2 ,…,package MEach software upgrade contains the data required for upgrading the software of a terminal component, and occupies a storage space of P i .
[0163] Step 1503, from the largest software upgrade package (ie, package 1 ) starts, package i Put it into the collection with the largest remaining available capacity I u , 1≤u≤N, then let s u =s u -P i ;
[0164] If at this time s u <0, it means that the block division fails, and step 1505 is further executed to return the block division failure information and terminate the download;
[0165] If at this time s u ≥0, then package 2 to package M Execute step 1503 until package 2 to package M can successfully join the set, execute step 1504, pack each non-empty set and the corresponding hash value to obtain the upgrade package block, recorded as J 1 ,…,J K . Where K is the number of non-empty sets, J i =I u ||H u , 1≤i≤K,H u For I u The corresponding hash check value is calculated as H u =Hash(I u ||key u The network side software upgrade device stores multiple components in the terminal (Id u ) corresponding to the device key (key u ), and is the same as the device key stored locally in each component.
[0166] Step 1506: The network side software upgrade device generates a block information packet J 0 . Block Information Packet J 0 The content includes: number of blocks K, each block J i Download address i , the corresponding download component ID u And the hash check value H 0 .
[0167] In the software upgrade package segmentation stage, the software upgrade package required for a single terminal upgrade component is used as the smallest unit, and priority is given to the software upgrade package that occupies the largest space. It is allocated to the block with the largest remaining space. The segmentation is completed through iteration, and then the hash check value is calculated for each block data to prepare for the subsequent data integrity check.
[0168] The following describes the execution flow of the upgrade package block information and instruction information sending phase, including four parallel technical solutions.
[0169] The first option is to Fig.16 ,include:
[0170] Step 1601: The terminal software upgrade device receives upgrade package block information from the network side software upgrade device.
[0171] Step 1602, the terminal software upgrade device generates first indication information for terminal component 1 for instructing terminal component 1 to obtain an upgrade package block corresponding to terminal component 1, and generates second indication information for terminal component 2 for instructing terminal component 2 to obtain an upgrade package block corresponding to terminal component 2.
[0172] Step 1603: the terminal software upgrading apparatus sends first indication information and second indication information to terminal component 1 and terminal component 2 respectively.
[0173] The second option is to Fig.17 ,include:
[0174] Step 1701: The terminal software upgrade device receives upgrade package segment information from the network side software upgrade device.
[0175] Step 1702: The terminal software upgrade device generates, for terminal component 1 and terminal component 2, an indication message for instructing terminal component 1 and terminal component 2 to respectively obtain an upgrade package block corresponding to themselves.
[0176] Step 1703: the terminal software upgrade apparatus sends the one indication information to terminal component 1 and terminal component 2 respectively. Optionally, the terminal software upgrade apparatus may send the one indication information to terminal component 1 and terminal component 2 simultaneously or sequentially.
[0177] For the third option, see Fig.18 ,include:
[0178] Step 1801: The terminal software upgrade device receives upgrade package segment information from the network side software upgrade device.
[0179] Step 1802: The terminal software upgrade apparatus generates first indication information for the terminal component 1 and the terminal component 2 for instructing the terminal component 1 and the terminal component 2 to respectively obtain an upgrade package block corresponding to themselves.
[0180] Step 1803: the terminal software upgrading device sends the first indication information to the terminal component 1.
[0181] Step 1804: Terminal component 1 forwards the first indication information to terminal component 2.
[0182] For the fourth option, see Fig.19 ,include:
[0183] Step 1901: The terminal software upgrade device receives upgrade package segment information from the network side software upgrade device.
[0184] Step 1902: The terminal software upgrade apparatus generates first indication information for terminal component 1 and terminal component 2 for instructing terminal component 1 and terminal component 2 to respectively obtain an upgrade package block corresponding to themselves.
[0185] Step 1903: the terminal software upgrading device sends the first indication information to the terminal component 1.
[0186] Step 1904: the terminal component 1 deletes the information related to its acquisition of the upgrade package blocks from the first indication information, and generates the second indication information according to the remaining information in the first indication information.
[0187] Step 1905: Terminal component 1 sends the second indication information to terminal component 2.
[0188] Embodiment 4 and embodiment 5 of the present invention provide software upgrade devices on the terminal side and the network side, respectively. Fig. 20 .
[0189] The software upgrade device 20 on the terminal side provided in the fourth embodiment of the present invention includes:
[0190] A receiving unit 2001 is configured to receive storage resource information of at least two components in a terminal and upgrade package block information generated by the network side device, wherein the storage resource information includes at least available storage capacity of each of the at least two components, and the upgrade package block information includes at least a one-to-one correspondence between multiple upgrade package blocks for terminal software upgrade and multiple components for storing the multiple upgrade package blocks, wherein the multiple components are part or all of the at least two components;
[0191] The processing unit 2002 is configured to generate storage resource feedback information according to the storage resource information, and to generate at least one indication information for indicating to multiple components to obtain the multiple upgrade package blocks according to the upgrade package block information, wherein the multiple components correspond to the multiple available storage capacities one by one, and the storage resource feedback information at least includes the available storage capacity of each of the at least two components;
[0192] The sending unit 2003 is used to send the storage resource feedback information to the network side device, and send the at least one indication information to the multiple components.
[0193] The terminal-side software upgrade device 20 provided in the fourth embodiment of the present invention is, for example, the aforementioned software upgrade device 401, T-box 501, a sub-device in the T-box 501, or an intelligent connected vehicle 601.
[0194] The network side software upgrade device 20 provided in the fifth embodiment of the present invention includes:
[0195] The receiving unit 2001 is configured to receive storage resource feedback information from a terminal device, wherein the storage resource feedback information at least includes available storage capacity of each component in a plurality of components in the terminal device that can be used to store a plurality of upgrade package blocks;
[0196] The processing unit 2002 is configured to divide the one or more software upgrade packages into a plurality of upgrade package blocks according to the storage resource feedback information, and generate upgrade package block information, wherein the plurality of upgrade package blocks correspond to at least some of the plurality of components in a one-to-one manner, and the upgrade package block information at least includes a correspondence between the plurality of upgrade package blocks and the at least some of the components;
[0197] The sending unit 2003 is used to send the upgrade package block information to the terminal device.
[0198] The network-side software upgrade device 20 provided in the fifth embodiment of the present invention is, for example, the aforementioned software upgrade device 701 , 801 , 901 , 1001 or 1101 .
[0199] Only one or more of the various units in the above fourth and fifth embodiments can be implemented by software, hardware, firmware or a combination thereof. The software or firmware includes but is not limited to computer program instructions or codes, and can be executed by a hardware processor. The hardware includes 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).
[0200] Optionally, the receiving unit 2001 in the above fourth and fifth embodiments may use one or more receiving methods, including but not limited to receiving through cellular communication, Wifi (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 wiring on a hardware circuit board, or obtaining parameters from a software module, or reading information from a storage device.
[0201] Optionally, the receiving unit 2001 in the above fourth and fifth embodiments includes a plurality of sub-receiving units, and the plurality of sub-receiving units are respectively used to receive storage resource information of at least one of the at least two components in the terminal. Optionally, the plurality of sub-receiving units are located in different components in the terminal. Optionally, the plurality of sub-receiving units receive the storage resource information by at least one receiving method, and the receiving method includes but is not limited to receiving by cellular communication, Wifi (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 routing on a hardware circuit board, or obtaining parameters from a software module, or reading information from a storage device.
[0202] Optionally, the sending unit 2003 in the above fourth and fifth embodiments may use one or more sending methods, including but not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters into a software module, or writing information into a memory.
[0203] Optionally, the sending unit 2003 in the above fourth and fifth embodiments includes a plurality of sub-sending units, and the plurality of sub-sending units are respectively used to send the at least one indication information to the plurality of components. Optionally, the plurality of sub-sending units are located in different plurality of components in the terminal. Optionally, the plurality of sub-sending units send the storage resource information through at least one sending method, and the sending method includes but is not limited to sending through cellular communication, Wifi (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 routing on a hardware circuit board, or inputting parameters to a software module, or writing information to a memory.
[0204] Embodiment 6 of the present invention provides a software upgrade system, see Fig.21 , which 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, and the terminal software upgrade device 2105 includes a sending unit 2106, a processing unit 2107 and a receiving unit 2108, and 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.
[0205] Embodiment 7 of the present invention provides another terminal side software upgrade device, see Fig. 22, including a memory 2201, a processor 2202 and a transceiver 2203, the memory 2201 stores computer program instructions, the processor 2202 runs the computer program instructions to execute the terminal side software upgrade method described in Example 1, and the transceiver 2203 is used to receive the storage resource information or the upgrade package block information, or to send at least one of the storage resource feedback information, the at least one indication information, the download instruction, the upgrade package distribution instruction and the installation activation instruction.
[0206] The software upgrade device on the terminal side provided in the seventh embodiment of the present invention is, for example, the aforementioned software upgrade device 401, T-box 501, a sub-device in T-box 501, or intelligent networked vehicle 601. Fig.23 ) and human-machine interaction controller (see Fig.24 ) as an example, the implementation method of embodiment 7 of the present invention on specific components in the intelligent terminal is introduced.
[0207] An exemplary internal structure of a T-box is as follows Fig.23 As shown in T-box23 in the figure. T-box23 includes: GPS (Global Positioning System) antenna, 3G / 4G antenna, C-V2X (Cellular Vehicle-to-Everything) antenna, WLAN (Wireless Local Area Network) antenna and multiple radio frequency units for external vehicle network communication; the system on chip (SOC) integrates the processor, memory, system-level chip control logic module, multiple interface control modules and multiple interconnection buses to provide control, calculation or storage functions for T-box23; the microcontroller unit as a form of processor implementation can also provide control or calculation functions for T-box23; when the intelligent connected vehicle is connected to the cellular communication network as a mobile communication terminal, the embedded SIM (Subscriber Identification) in T-box23 is used. Module, user identity) card identifies the identity; the embedded multimedia card provides storage function for T-box23; the security hardware module provides security protection function for the intelligent connected car to access the external network; the power management unit provides power supply management for T-box23; in addition, T-box23 also interacts with other components in the car through multiple buses (such as CAN bus, Ethernet bus) and interfaces (such as microphone interface, speaker interface).
[0208] The memory 2201 in the seventh embodiment can be based on Fig.23The processor 2202 may be implemented by the memory integrated in the system on chip or other internal storage unit (such as an embedded multimedia card). Fig.23 The transceiver 2203 can be implemented by a microcontroller unit or a processor integrated in a system on a chip. Fig.23 It can be realized by a radio frequency unit, a GPS antenna, a 3G / 4G antenna, a C-V2X antenna, a WLAN antenna, a CAN (Controller Area Network) bus, an Ethernet bus or a pin connector.
[0209] An exemplary internal structure of a human-computer interaction controller is as follows: Fig.24 The human-machine interaction controller 24 includes: Wifi (Wireless Fidelity, wireless local area network) communication module and Bluetooth communication module for vehicle external network communication; the system on chip (SOC, System On Chip) integrates a processor, a memory, a system-level chip control logic module, a variety of interface control modules and a variety of interconnection buses to provide control, calculation or storage functions for the human-machine interaction controller 24; the microcontroller unit, as an implementation form of the processor, can also provide control or calculation functions for the human-machine interaction controller 24; the multimedia processor provides data processing functions for multimedia information such as images, audio and video; the human-machine interaction controller 24 obtains signal input from a variety of camera sensors through an LVDS (Low-Voltage Differential Signaling, low-level differential signal) interface, and obtains data input from a microphone through an analog signal interface; the human-machine interaction controller 24 obtains data from a variety of camera sensors through a USB (Universal Serial Bus, Universal Serial Bus) or LVDS interface provides signal output to the USB panel, central control screen, control screen, instrument screen and windshield head-up display; in addition, the human-computer interaction controller 24 is also connected to the in-vehicle network gateway to communicate with in-vehicle components such as T-box through the in-vehicle network.
[0210] The memory 2201 in the seventh embodiment can be based on Fig.24 The processor 2202 may be implemented by the memory integrated in the system on chip or other internal storage unit (such as an embedded multimedia card). Fig.24 The transceiver 2203 can be implemented by a microcontroller or a processor integrated in a system on a chip. Fig.24 It is realized by a Wifi (Wireless Fidelity, wireless local area network) communication module, a Bluetooth communication module or a communication bus between the vehicle's in-vehicle network gateway.
[0211] Embodiment 8 of the present invention provides another network side network side software upgrade device, see Fig. 22, including a memory 2201, a processor 2202 and a transceiver 2203, the memory 2201 storing computer program instructions, the processor 2202 running the computer program instructions to execute the network-side software upgrade method described in Example 2, for receiving the storage resource feedback information or at least one upgrade package block among the multiple upgrade package blocks, or for sending at least one of the upgrade package block information, the software upgrade startup message, the upgrade package distribution instruction and the at least one upgrade package block.
[0212] The network-side software upgrade device provided in Embodiment 8 of the present invention is, for example, the aforementioned software upgrade device 701 , 801 , 901 , 1001 or 1101 .
[0213] The processors in Embodiment 7 and Embodiment 8 of the present invention include but are not limited to various types of CPUs, DSPs, microcontrollers, microprocessors or artificial intelligence processors.
[0214] The transceiver in Embodiment 7 and Embodiment 8 of the present invention includes but is not limited to a communication interface or a communication module or a communication connector, and 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), Wifi (Wireless Fidelity, wireless local area network), Wimax (Worldwide Interoperability for Microwave Access, global interoperability for microwave access), Bluetooth (Bluetooth communication technology), ZigBee (ZigBee communication technology), optical communication, satellite communication or infrared communication, etc.
[0215] Those skilled in the art can clearly understand that the descriptions of the various embodiments provided in the present application can refer to each other. For the convenience and conciseness of the description, for example, the functions of the various devices and equipment provided in the embodiments of the present application and the execution steps can refer to the relevant description of the method embodiments of the present application, and the various method embodiments and the various device embodiments can also refer to each other.
[0216] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes all or part of the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0217] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part 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 and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0218] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways without exceeding the scope of the present application. For example, the embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0219] In addition, the described systems, devices and methods and schematic diagrams of different embodiments may be combined or integrated with other systems, modules, technologies or methods without exceeding the scope of the present application. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, which may be electronic, mechanical or other forms.
[0220] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A software upgrade method, characterized in that: include: receiving a plurality of storage resource information from a plurality of components, the plurality of storage resource information being used to indicate available storage capacity of each of the plurality of components, and generating storage resource feedback information based on the plurality of storage resource information; Sending storage resource feedback information to a network side device, wherein the storage resource feedback information is used to indicate the available storage capacity of each of the multiple components in the terminal; 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 software and at least two of the multiple components, the at least two of the multiple components being used to store the at least two upgrade package blocks, the upgrade package block information comprising verification information of each of the at least two upgrade package blocks; Indication information is sent to at least two of the multiple components, where the indication information is used for at least two of the multiple components to obtain the at least two upgrade package blocks, and the indication information is generated based on the upgrade package block information.
2. The method according to claim 1, characterized in that: The upgrade package block information also includes at least one of the following: a download address of each upgrade package block in the at least two upgrade package blocks; The number of the at least two upgrade package blocks.
3. The method according to claim 1, characterized in that The indication information includes at least one of the following: Download addresses of the upgrade package blocks; Verification information of the upgrade package blocks; The component is used to obtain external communication resources of the upgrade package blocks; Obtain the time information of the upgrade package blocks.
4. The method according to claim 1, characterized in that The indication information is a plurality of indication information, and the plurality of indication information corresponds one-to-one to at least two of the plurality of components, and sending the indication information to at least two of the plurality of components includes: sending each of the plurality of indication information corresponding to the at least two components to at least two of the plurality of components respectively.
5. The method according to any one of claims 1 to 4, characterized in that: The indication information is one indication information, and sending the indication information to at least two of the multiple components includes: sending the one indication information to each of at least two of the multiple components, or sending the one indication information to one of the at least two of the multiple components.
6. A software upgrade device, characterized in that: include: A receiving unit, configured to receive a plurality of storage resource information from a plurality of components, wherein the plurality of storage resource information is used to indicate an available storage capacity of each of the plurality of components; A processing unit, configured to generate storage resource feedback information based on the plurality of storage resource information; A sending unit, used to send storage resource feedback information to a network side device, wherein the storage resource feedback information is used to indicate the available storage capacity of each of the multiple components in the terminal; The receiving unit is further used to receive upgrade package block information from the network side device, the upgrade package block information is used to indicate a one-to-one correspondence between at least two upgrade package blocks used for the terminal software upgrade and at least two of the multiple components, at least two of the multiple components are used to store the at least two upgrade package blocks, and the upgrade package block information includes verification information of each upgrade package block in the at least two upgrade package blocks; The sending unit is further used to send indication information to at least two of the multiple components, where the indication information is used for at least two of the multiple components to obtain the at least two upgrade package blocks, and the indication information is generated based on the upgrade package block information.
7. The device according to claim 6, characterized in that The upgrade package block information also includes at least one of the following: The download address of each upgrade package block in the at least two upgrade packages; The number of the at least two upgrade package blocks.
8. The device according to claim 6, characterized in that The indication information includes at least one of the following: Download addresses of the upgrade package blocks; Verification information of the upgrade package blocks; The component is used to obtain external communication resources of the upgrade package blocks; Obtain the time information of the upgrade package blocks.
9. The device according to claim 6, characterized in that The indication information is a plurality of indication information, and the plurality of indication information corresponds one-to-one to at least two of the plurality of components, and sending the indication information to at least two of the plurality of components includes: sending each of the plurality of indication information corresponding to the at least two components to at least two of the plurality of components respectively.
10. The device according to any one of claims 6 to 9, characterized in that: The indication information is one indication information, and sending the indication information to at least two of the multiple components includes: sending the one indication information to each of at least two of the multiple components, or sending the one indication information to one of the at least two of the multiple components.
11. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed by a processor, enable the method according to any one of claims 1 to 5 to be executed.
