Remote upgrade data transmission method, device and equipment
By obtaining the incremental upgrade package of the equipment to be upgraded and selecting the applicable compression algorithm according to the data type, it solves the problem that OTA upgrade time is limited by the network and packet size, and improves data compression and transmission efficiency. User experience.
Patent Information
- Application Number
- CN202310835712.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2025-01-07
AI Technical Summary
In the existing OTA upgrade technology, the remote upgrade time is mainly limited by network speed and upgrade packet size. How to reduce the data size of the upgrade packet for wireless transmission and shorten the upgrade time is an urgent problem.
By obtaining the incremental upgrade package of the equipment to be upgraded, and determining the applicable complex compression algorithm set based on the data type, compressing the upgrade package, generating the upgrade compression package, and adjusting the compression algorithm in combination with the network state to achieve the optimization of data compression and transmission efficiency .
It effectively reduces the data size of the upgrade packet for wireless transmission, shortens the time for remote upgrades, and improves the user experience.
Smart Images

Figure CN119276707A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote upgrade, and in particular to a data transmission method, device and equipment for remote upgrade. Background Art
[0002] OTA (Over the Air Technology) upgrade technology is a technology that remotely upgrades devices through the network, which can effectively improve the functionality and security of devices. OTA upgrade technology mainly relies on wireless communication technology, device firmware technology, security technology and compression algorithm technology.
[0003] At present, the OTA upgrade time is mainly limited by the speed of the network and the size of the upgrade package. Therefore, how to reduce the data size of the wirelessly transmitted upgrade package and shorten the upgrade time of remote upgrade is an urgent problem to be solved today. Summary of the invention
[0004] The purpose of the present invention is to provide a remote upgrade data transmission method, device and equipment to reduce the data size of the wirelessly transmitted upgrade package, shorten the upgrade time of the remote upgrade, and improve the user experience.
[0005] In order to solve the above technical problems, the present invention provides a remote upgrade data transmission method, comprising:
[0006] Obtaining an incremental upgrade package for the device to be upgraded according to a remote upgrade request of the device to be upgraded;
[0007] Determine a compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type, and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each of the data types;
[0008] Using a complex compression algorithm in the compression algorithm set, compressing the incremental upgrade package to obtain an upgrade compressed package;
[0009] The upgrade compressed package is wirelessly transmitted to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compressed package.
[0010] In some embodiments, after compressing the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package, the method further includes:
[0011] According to the data size of the incremental upgrade package and the upgrade compressed package, judging whether the upgrade compressed package meets the requirements;
[0012] If yes, then executing the step of wirelessly transmitting the upgrade compressed package to the device to be upgraded;
[0013] If not, then according to the data type of the data in the incremental upgrade package, adjust the compression algorithm set corresponding to the incremental upgrade package, and execute the step of using the complex compression algorithm in the compression algorithm set to compress the incremental upgrade package to obtain an upgrade compressed package.
[0014] In some embodiments, adjusting the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package includes:
[0015] According to the data type and the algorithm selection rule corresponding to each of the data types, the complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package is adjusted.
[0016] In some embodiments, the compression algorithm set includes an algorithm compression order of a complex compression algorithm in the compression algorithm set, and adjusting the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package includes:
[0017] According to the compression order adjustment rule, the data type and the algorithm selection rule corresponding to each data type, the algorithm compression order and / or complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package is adjusted.
[0018] In some embodiments, judging whether the upgrade compressed package meets the requirements according to the data size of the incremental upgrade package and the upgrade compressed package includes:
[0019] Determine whether the compression reduction volume corresponding to the upgrade compression package reaches a compression threshold; wherein the compression volume is the quotient of the absolute value of the difference between the data size of the incremental upgrade package and the upgrade compression package and the incremental upgrade package;
[0020] If the compression threshold is reached, it is determined that the upgrade compression package meets the requirement;
[0021] If the compression threshold is not reached, it is determined that the upgrade compression package does not meet the requirement.
[0022] In some embodiments, the wirelessly transmitting the upgrade compressed package to the device to be upgraded includes:
[0023] The upgrade compression package and the compression algorithm identification information are wirelessly transmitted to the device to be upgraded; wherein the compression algorithm identification information includes the identification of the compression algorithm corresponding to the upgrade compression package.
[0024] In some embodiments, before determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, the method further includes:
[0025] According to the acquired network status information, determine whether the network status meets the requirements of complex compressed network status;
[0026] If the complex compression network state requirement is met, then the step of determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package is performed;
[0027] If the complex compression network state requirement is not met, a simple compression algorithm is used to compress the incremental upgrade package to obtain an upgrade compressed package, and the step of wirelessly transmitting the upgrade compressed package to the device to be upgraded is performed.
[0028] In some embodiments, when the network status information includes network bandwidth and retransmission rate, judging whether the network status meets the complex compression network status requirement according to the acquired network status information includes:
[0029] Determine whether the network bandwidth reaches a preset bandwidth and the retransmission rate is less than a retransmission rate threshold;
[0030] If the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold, it is determined that the network state meets the complex compression network state requirement;
[0031] If the network bandwidth does not reach the preset bandwidth or the retransmission rate is not less than the retransmission rate threshold, it is determined that the network state does not meet the complex compression network state requirement.
[0032] The present invention also provides a remote upgraded data transmission device, comprising:
[0033] An incremental acquisition module, used to acquire an incremental upgrade package of the device to be upgraded according to a remote upgrade request of the device to be upgraded;
[0034] A compression determination module, configured to determine a compression algorithm set corresponding to the incremental upgrade package according to a data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type, and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each of the data types;
[0035] A complex compression module, used to compress the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package;
[0036] The upgrade transmission module is used to wirelessly transmit the upgrade compression package to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compression package.
[0037] In addition, the present invention also provides a remotely upgraded data transmission device, comprising:
[0038] Memory for storing computer programs;
[0039] A processor is used to implement the steps of the remote upgrade data transmission method as described above when executing the computer program.
[0040] A remote upgrade data transmission method provided by the present invention comprises: obtaining an incremental upgrade package of the device to be upgraded according to a remote upgrade request of the device to be upgraded; determining a compression algorithm set corresponding to the incremental upgrade package according to the data type of data in the incremental upgrade package; wherein the data type comprises at least one of a text type, an image type, an audio type and a video type; the compression algorithm set comprises a complex compression algorithm corresponding to each data type; compressing the incremental upgrade package by using the complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package; wirelessly transmitting the upgrade compressed package to the device to be upgraded, so that the device to be upgraded completes the upgrade by using the upgrade compressed package;
[0041] It can be seen that the present invention obtains the incremental upgrade package of the device to be upgraded according to the remote upgrade request of the device to be upgraded, and can only compare and merge the upgrade change parts to generate an incremental upgrade package, thereby remotely performing an incremental upgrade on the device to be upgraded, reducing the data size of the wirelessly transmitted upgrade package; and by determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, the complex compression algorithms corresponding to each data type can be adaptively selected and combined for the data type of the data in the incremental upgrade package, thereby ensuring the compression effect of the incremental upgrade package, further reducing the data size of the wirelessly transmitted upgrade package, shortening the upgrade time of the remote upgrade, and improving the user experience. In addition, the present invention also provides a remote upgrade data transmission device and equipment, which also has the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0043] Figure 1 A flowchart of a remote upgrade data transmission method provided by an embodiment of the present invention;
[0044] Figure 2 A flowchart of another remote upgrade data transmission method provided by an embodiment of the present invention;
[0045] Figure 3 A flowchart of another remote upgrade data transmission method provided by an embodiment of the present invention;
[0046] Figure 4 A structural block diagram of a remote upgrade data transmission device provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of the structure of a remotely upgraded data transmission device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] 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.
[0049] Please refer to Figure 1 , Figure 1 A flowchart of a remote upgrade data transmission method provided by an embodiment of the present invention. The method may include:
[0050] Step 101: According to a remote upgrade request of a device to be upgraded, an incremental upgrade package of the device to be upgraded is obtained.
[0051] It can be understood that the device to be upgraded in this embodiment can be a terminal device that needs to be upgraded (such as software armor upgrade), such as a computer, a mobile phone, and a wearable device.
[0052] Correspondingly, the remote upgrade request in this embodiment can be a request for remote upgrade (such as OTA upgrade). The specific content of the remote upgrade request can be set by the designer according to the practical scenario and user needs. For example, it can be implemented in the same or similar way as the setting method of the remote upgrade request in the prior art. For example, the remote upgrade request can include incremental upgrade identification information to prompt the request for remote incremental upgrade; the remote upgrade request can also include the upgraded version information of the device to be upgraded (such as the current version of the software to be upgraded) or the upgraded version information and the target upgrade version information (that is, the version to be upgraded) to facilitate the configuration of the incremental upgrade package; the remote upgrade request can also include the software identification information of the software to be upgraded to prompt the software to be upgraded in the device to be upgraded. As long as the processor can obtain the incremental upgrade package of the device to be upgraded based on the remote upgrade request of the device to be upgraded, this embodiment does not impose any restrictions on this.
[0053] It should be noted that the incremental upgrade package of the device to be upgraded in this embodiment can be a file package consisting of data of the changed part (i.e., the incremental part) in the upgrade installation file corresponding to the current version to be upgraded of the device to be upgraded and the target upgrade version. The specific content of the incremental upgrade package in this embodiment can be set by the designer, such as using the same or similar implementation as the incremental upgrade package generation method of incremental upgrade in the prior art, and this embodiment does not impose any restrictions on this.
[0054] Correspondingly, the specific method for the processor in this embodiment to obtain the incremental upgrade package of the device to be upgraded according to the remote upgrade request of the device to be upgraded can be set by the designer according to the practical scenario and user needs. For example, it can be implemented in the same or similar manner as the remote incremental upgrade method in the prior art. For example, the processor of the server (such as a software update server) can determine the upgrade installation package of the version information to be upgraded and the upgrade installation package of the latest version of the software to be upgraded according to the software identification information and the version information to be upgraded of the software to be upgraded in the remote upgrade request; and obtain the incremental upgrade package by comparing and merging the differences in the data in the two upgrade installation packages.
[0055] Step 102: Determine a compression algorithm set corresponding to the incremental upgrade package based on the data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type, and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each data type.
[0056] It can be understood that the complex compression algorithm in this embodiment can be a compression algorithm with a relatively complex compression implementation method, but the compression effect is better than the simple compression algorithm. These algorithms can be used alone or in combination to achieve better compression effect; the simple compression algorithm can be a compression algorithm with a relatively simple compression implementation method, but relatively low compression effect, such as RLE (Run Length Encoding) algorithm and a simple dictionary compression algorithm.
[0057] Correspondingly, in this embodiment, at least one complex compression algorithm corresponding to each data type can be pre-set, such as at least one complex compression algorithm corresponding to each data type such as text type, image type, audio type and / or video type, so as to use the complex compression algorithm applicable to the data compression of the corresponding data type to perform targeted compression on the corresponding data and improve the compression effect. In this step, the processor can determine a complex compression algorithm corresponding to each data type of the data in the incremental upgrade package, obtain a set of these complex compression algorithms (i.e., a compression algorithm set), and use the complex compression algorithm in the compression algorithm set to compress the incremental upgrade package to improve the compression effect of the incremental upgrade package.
[0058] It should be noted that the specific method for the processor to determine the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package in this step can be set by the designer according to practical scenarios and user needs. For example, when a complex compression algorithm corresponding to each data type is pre-set, the processor can directly determine a pre-set complex compression algorithm corresponding to the current data type (i.e., any data type) of the data in the incremental upgrade package as the complex compression algorithm corresponding to the current data type in the compression algorithm set; if multiple complex compression algorithms corresponding to each data type are pre-set, the processor determines any complex compression algorithm selected according to the algorithm selection rule (such as a preset selection order) from the pre-set multiple complex compression algorithms corresponding to the current data type of the data in the incremental upgrade package as the complex compression algorithm corresponding to the current data type in the compression algorithm set. This embodiment does not impose any restrictions on this.
[0059] Furthermore, before this step, the processor can also detect network status information, and determine whether the data compression method using the complex compression algorithm provided by this embodiment can be used to compress the incremental upgrade package based on the network status information; if so, proceed to step 102; if not, a simple compression algorithm can be used to compress the incremental upgrade package to obtain an upgrade compressed package, so as to wirelessly transmit the upgrade compressed package to the device to be upgraded. For example, the processor can determine whether the network status meets the requirements of the complex compression network status based on the obtained network status information; if it meets the requirements of the complex compression network status, proceed to step 102; if it does not meet the requirements of the complex compression network status, a simple compression algorithm is used to compress the incremental upgrade package to obtain an upgrade compressed package, and proceed to step 104.
[0060] Step 103: compress the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package.
[0061] It can be understood that in this step, the processor can use the complex compression algorithm in the compression algorithm set to compress the data of the incremental upgrade package to obtain the upgrade compression package that needs to be sent to the device to be upgraded, so as to improve the data compression effect of the incremental upgrade package by combining the algorithms in the compression algorithm set.
[0062] Correspondingly, the specific method for the processor to compress the incremental upgrade package using the complex compression algorithm in the compression algorithm set in this step to obtain the upgrade compressed package can be set by the designer according to the usage scenario and user needs. For example, the processor can use the complex compression algorithm in the compression algorithm set to compress the corresponding data in the upgrade compressed package in sequence to obtain the upgrade compressed package; for example, the compression algorithm set may include the algorithm compression sequence of the complex compression algorithm in the compression algorithm set, so as to compress the corresponding data in the upgrade compressed package in sequence according to the algorithm compression sequence, and obtain the upgrade compressed package after the last complex compression algorithm is compressed; the processor can also compress the corresponding data in the upgrade compressed package in sequence according to the preset algorithm compression sequence to obtain the upgrade compressed package. The processor can also use the complex compression algorithm in the compression algorithm set to compress the corresponding data in the upgrade compressed package at the same time to obtain the upgrade compressed package. This embodiment does not impose any restrictions on this.
[0063] Furthermore, in this embodiment, after obtaining the upgrade compression package, the processor can also detect whether the compression effect of the incremental upgrade package meets the requirements; if the requirements are met, the processor enters step 104 to wirelessly transmit the upgrade compression package to the device to be upgraded; if the requirements are not met, the processor can adjust the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, and enter step 103 to re-compress the incremental upgrade package and update the obtained upgrade compression package until the compression effect of the upgrade compression package meets the requirements, and then enter step 104. For example, after step 103, the processor can determine whether the upgrade compression package meets the requirements according to the data size of the incremental upgrade package and the upgrade compression package; if so, the processor enters step 104; if not, the processor can adjust the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, and enter step 103.
[0064] Step 104: wirelessly transmit the upgrade compressed package to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compressed package.
[0065] It can be understood that in this step, the processor can wirelessly transmit the compressed package corresponding to the incremental upgrade package (i.e., the upgrade compressed package) to the device to be upgraded, so that the device to be upgraded can complete the upgrade using the upgrade compressed package, thereby realizing remote upgrade of the device to be upgraded (such as OTA upgrade).
[0066] Furthermore, in this embodiment, the processor can wirelessly transmit the upgrade compression package and the compression algorithm identification information to the device to be upgraded, so that the device to be upgraded can use the compression algorithm identification information to conveniently decompress the upgrade compression package to obtain an incremental upgrade package to complete the upgrade. Among them, the compression algorithm identification information may include the identification of the compression algorithm corresponding to the upgrade compression package, that is, the identification of the compression algorithm (such as a complex compression algorithm) used in the compression process corresponding to the upgrade compression package; the compression algorithm identification information may also include a compression algorithm sequence identification, that is, the identification of the sequence of compression algorithms used in the compression process corresponding to the upgrade compression package.
[0067] In the present embodiment, the embodiment of the present invention obtains the incremental upgrade package of the device to be upgraded according to the remote upgrade request of the device to be upgraded, and can compare and merge only the upgrade change parts to generate the incremental upgrade package, thereby remotely performing an incremental upgrade on the device to be upgraded and reducing the data size of the wirelessly transmitted upgrade package; and by determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, the complex compression algorithms corresponding to each data type can be adaptively selected and combined for use according to the data type of the data in the incremental upgrade package, thereby ensuring the compression effect of the incremental upgrade package, further reducing the data size of the wirelessly transmitted upgrade package, shortening the upgrade time of the remote upgrade, and improving the user experience.
[0068] Based on the above embodiment, the embodiment of the present invention also provides another remote upgrade data transmission method to further ensure the compression effect of the incremental upgrade package. Figure 2 , Figure 2 A flowchart of another remote upgrade data transmission method provided by an embodiment of the present invention. The method may include:
[0069] Step 201: According to a remote upgrade request of the device to be upgraded, an incremental upgrade package of the device to be upgraded is obtained.
[0070] This step is similar to step 101 and will not be described again here.
[0071] Step 202: Based on the acquired network status information, determine whether the network status meets the complex compression network status requirements; if so, proceed to step 203; if not, proceed to step 208.
[0072] It is understandable that the network status information in this step may be information about the network status, such as network bandwidth and / or retransmission rate, etc. In this step, the processor of the server may check the network status between the server and the device to be upgraded, and thereby determine whether to use a complex compression algorithm or a simple compression algorithm to compress the incremental upgrade package according to the network status.
[0073] Correspondingly, this step may also include a process in which the processor obtains network status information. For example, the processor may run a corresponding script to detect the network status between the server and the device to be upgraded, and obtain the network status information.
[0074] It should be noted that the specific method for the processor in this step to determine whether the network state meets the requirements of the complex compressed network state based on the acquired network state information can be set by the designer according to the practical scenario and user needs, such as Figure 3 As shown, the processor can use a complex compression algorithm to compress the incremental upgrade package when the network status is good; and use a simple compression algorithm to compress the incremental upgrade package when the network status is poor; for example, when the network status information includes network bandwidth and retransmission rate, the processor can determine whether the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold; if the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold, it is determined that the network status meets the complex compression network status requirements, and the process can enter step 203 to use a complex compression algorithm to compress the incremental upgrade package; if the network bandwidth does not reach the preset bandwidth or the retransmission rate is not less than the retransmission rate threshold, it is determined that the network status does not meet the complex compression network status requirements, and the process can enter step 208 to use a simple compression algorithm to compress the incremental upgrade package.
[0075] Step 203: Determine a compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package.
[0076] Step 204: compress the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package.
[0077] Among them, step 203 and step 204 are similar to step 102 and step 103 in the previous embodiment, and are not described again here.
[0078] Step 205: Based on the data size of the incremental upgrade package and the upgrade compressed package, determine whether the upgrade compressed package meets the requirements; if not, proceed to step 206; if yes, proceed to step 207.
[0079] It can be understood that in this step, the processor can detect the compression effect of the incremental upgrade package according to the data size of the incremental upgrade package and the upgrade compression package to determine whether the upgrade compression package meets the requirements; when the compression effect meets the requirements, it enters step 207 and wirelessly transmits the upgrade compression package to the device to be upgraded; when the compression effect does not meet the requirements, it enters step 204, adjusts the compression algorithm set to re-compress the incremental upgrade package, and updates the upgrade compression package.
[0080] Correspondingly, in this step, the specific method for the processor in this step to determine whether the upgrade compressed package meets the requirements based on the data size of the incremental upgrade package and the upgrade compressed package can be set by the designer according to the usage scenario and user needs. For example, the processor can determine whether the compression reduction volume corresponding to the upgrade compressed package reaches the compression threshold (such as Figure 3 40% of the total volume); if the compression threshold is reached, it is determined that the upgrade compressed package meets the requirements, and the process can proceed to step 207; if the compression threshold is not reached, it is determined that the upgrade compressed package does not meet the requirements, and the process can proceed to step 204; wherein, the compressed volume is the quotient of the absolute value of the difference between the data size of the incremental upgrade package and the data size of the upgrade compressed package and the incremental upgrade package. The processor can also determine whether the compressed state volume corresponding to the upgrade compressed package is less than the compression effect threshold (such as 60%); if it is less than the compression effect threshold, it is determined that the upgrade compressed package meets the requirements, and the process can proceed to step 207; if it is not less than the compression effect, it is determined that the upgrade compressed package does not meet the requirements, and the process can proceed to step 204; wherein, the compressed volume is the quotient of the data size of the upgrade compressed package and the incremental upgrade package. This embodiment does not impose any restrictions on this.
[0081] Furthermore, in the case where it is determined in this step that the upgrade compression package does not meet the requirements, the process can directly proceed to step 206 as shown in this embodiment to update the upgrade compression package; or it can first determine whether the number of times the incremental upgrade package is generated reaches a number threshold; if the number threshold is not reached, proceed to step 206; if the number threshold is reached, the previously generated upgrade compression package with the smallest data size can be wirelessly transmitted to the device to be upgraded, or the compression package requirement adjustment information (such as compression threshold adjustment information) can be output to reduce the requirements for the compression effect.
[0082] Step 206 : According to the data type of the data in the incremental upgrade package, adjust the compression algorithm set corresponding to the incremental upgrade package, and proceed to step 204 .
[0083] It is understandable that in this step, the processor can adjust the compression effect of the subsequent re-compression of the incremental upgrade package by adjusting the compression algorithm set corresponding to the incremental upgrade package. The specific manner in which the processor adjusts the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package in this step can be set by the designer. For example, when the number of complex compression algorithms corresponding to all data types set in the preset setting is multiple, the processor can adjust the complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package and the algorithm selection rule corresponding to each data type, so as to change all or part of the complex compression algorithms in the compression algorithm set. Since the compression order of the complex compression algorithm in the compression algorithm set will affect the compression effect of the incremental upgrade package, when the compression algorithm set includes the algorithm compression order of the complex compression algorithm in the compression algorithm set, the processor can also adjust the algorithm compression order and / or complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package according to the compression order adjustment rule, the data type and the algorithm selection rule corresponding to each data type; for example, when each round of compression algorithm set adjustment is performed, the algorithm type is adjusted according to the rule of adjusting the algorithm order after adjusting the algorithm order. When the algorithm order change cannot make the upgrade compression package meet the requirements, the complex compression algorithm in the compression algorithm set is adjusted. This embodiment does not impose any restrictions on this.
[0084] Step 207: wirelessly transmit the upgrade compressed package to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compressed package.
[0085] It can be understood that in this embodiment, the processor can wirelessly transmit the upgrade compression package compressed using a complex compression algorithm or a simple compression algorithm to the device to be upgraded, so that the device to be upgraded can complete the upgrade using the upgrade compression package, thereby realizing remote upgrade of the device to be upgraded (such as OTA upgrade).
[0086] Furthermore, in this embodiment, the processor can wirelessly transmit the upgrade compression package and the compression algorithm identification information to the device to be upgraded, so that the device to be upgraded can use the compression algorithm identification information to conveniently decompress the upgrade compression package to obtain an incremental upgrade package to complete the upgrade. Among them, the compression algorithm identification information may include the identification of the compression algorithm corresponding to the upgrade compression package, that is, the identification of the compression algorithm (such as a complex compression algorithm or a simple compression algorithm) used in the compression process corresponding to the upgrade compression package; the compression algorithm identification information may also include a compression algorithm sequence identification, that is, the identification of the sequence of compression algorithms used in the compression process corresponding to the upgrade compression package.
[0087] Step 208: Use a simple compression algorithm to compress the incremental upgrade package to obtain an upgrade compressed package, and enter step 207.
[0088] It is understandable that in this step, the processor can directly use a simple compression algorithm to compress the incremental upgrade package to obtain an upgrade compressed package when the network state does not meet the complex compression network state requirements, such as when the network state is poor.
[0089] Correspondingly, in this embodiment, the processor can use a pre-set simple compression algorithm to directly compress the incremental upgrade package to obtain an upgrade compressed package, thereby avoiding the use of a complex compression algorithm when the network status is poor.
[0090] It is understandable that this embodiment is demonstrated by taking the example that after the processor compresses the incremental upgrade package using a simple compression algorithm and obtains the upgraded compressed package, it directly enters step 207 and sends the upgraded compressed package to the device to be upgraded. The processor may also compress the incremental upgrade package using a simple compression algorithm and obtain the upgraded compressed package, and then determine whether the upgraded compressed package meets the simple compression requirement according to the data size of the incremental upgrade package and the upgraded compressed package; if the simple compression requirement is not met, the simple compression algorithm used is adjusted to re-compress the incremental upgrade package; if the simple compression requirement is met, it enters step 207. This embodiment does not impose any restrictions on this.
[0091] For example, in this step, the processor can use the target simple compression algorithm to compress the incremental upgrade package to obtain the upgrade compressed package; according to the data size of the incremental upgrade package and the upgrade compressed package, determine whether the upgrade compressed package meets the simple compression requirement; if so, enter step 203; if not, according to the preset simple algorithm selection rule, update the target simple compression algorithm, and execute the step of compressing the incremental upgrade package using the target simple compression algorithm to obtain the upgrade compressed package. Among them, the target simple compression algorithm can be any pre-set simple compression algorithm, that is, multiple simple compression algorithms can be pre-set in this embodiment.
[0092] Correspondingly, such as Figure 3As shown, the simple compression requirement may be the same as the compression requirement when the complex compression algorithm is used for compression in step 205. For example, judging whether the upgrade compressed package meets the simple compression requirement based on the data size of the incremental upgrade package and the upgrade compressed package may be used to judge whether the compression reduction volume corresponding to the upgrade compressed package reaches the compression threshold (e.g. Figure 3 40% of the total volume); wherein the compressed volume is the quotient of the absolute value of the difference between the data size of the incremental upgrade package and the upgraded compressed package and the incremental upgrade package; if the compression threshold is reached, it is determined that the upgraded compressed package meets the simple compression requirement, and the process proceeds to step 207; if the compression threshold is not reached, it is determined that the upgraded compressed package does not meet the simple compression requirement, and the target simple compression algorithm can be updated according to the preset simple algorithm selection rule, and the incremental upgrade package is compressed using the target simple compression algorithm to obtain the upgraded compressed package.
[0093] Correspondingly, the above-mentioned simple compression requirement may also be different from the compression requirement when the complex compression algorithm is used for compression in step 205; as mentioned above, judging whether the upgrade compressed package meets the simple compression requirement based on the data size of the incremental upgrade package and the upgrade compressed package, it can be judged whether the compression reduction volume corresponding to the upgrade compressed package reaches the simple compression threshold; if the simple compression threshold is reached, it is determined that the upgrade compressed package meets the simple compression requirement, and step 207 can be entered; if the simple compression threshold is not reached, it is determined that the upgrade compressed package does not meet the simple compression requirement, and the target simple compression algorithm can be updated according to the preset simple algorithm selection rule, and the incremental upgrade package is compressed using the target simple compression algorithm to obtain the step of the upgrade compressed package. Among them, the simple compression threshold can be less than the compression threshold when the complex compression algorithm is used for compression.
[0094] In this embodiment, the embodiment of the present invention can further ensure the compression effect of the complex compression algorithm by judging whether the upgrade compression package meets the requirements based on the data size of the incremental upgrade package and the upgrade compression package, reduce the data size of the wirelessly transmitted upgrade package, shorten the upgrade time of the remote upgrade, and improve the user experience.
[0095] Corresponding to the above method embodiment, the embodiment of the present invention further provides a remote upgrade data transmission device. The remote upgrade data transmission device described below and the remote upgrade data transmission method described above can be referred to each other.
[0096] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a remote upgrade data transmission device provided by an embodiment of the present invention. The device may include:
[0097] An incremental acquisition module 10 is used to acquire an incremental upgrade package of the device to be upgraded according to a remote upgrade request of the device to be upgraded;
[0098] The compression determination module 20 is used to determine the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each data type;
[0099] The complex compression module 30 is used to compress the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package;
[0100] The upgrade transmission module 40 is used to wirelessly transmit the upgrade compressed package to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compressed package.
[0101] In some embodiments, the apparatus may further include:
[0102] A compression judgment module, used to judge whether the upgrade compressed package meets the requirements according to the data size of the incremental upgrade package and the upgrade compressed package; if the upgrade compressed package meets the requirements, a start signal is sent to the upgrade transmission module 40;
[0103] The compression adjustment module is used to adjust the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package if the upgrade compression package does not meet the requirements, and send a start signal to the complex compression module 30.
[0104] In some embodiments, the compression adjustment module may be specifically used to adjust the complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package according to the data type and the algorithm selection rule corresponding to each data type.
[0105] In some embodiments, the compression algorithm set includes an algorithm compression order of complex compression algorithms in the compression algorithm set. The compression adjustment module can be specifically used to adjust the algorithm compression order and / or complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package according to the compression order adjustment rules, data types, and algorithm selection rules corresponding to each data type.
[0106] In some embodiments, the compression judgment module can be specifically used to determine whether the compression reduction volume corresponding to the upgrade compression package reaches a compression threshold; wherein the compression volume is the quotient of the absolute value of the difference between the data size of the incremental upgrade package and the upgrade compression package and the incremental upgrade package; if the compression threshold is reached, it is determined that the upgrade compression package meets the requirements, and a start signal is sent to the upgrade transmission module 40; if the compression threshold is not reached, it is determined that the upgrade compression package does not meet the requirements, and a start signal is sent to the compression adjustment module.
[0107] In some embodiments, the upgrade transmission module 40 may be specifically used to wirelessly transmit the upgrade compression package and the compression algorithm identification information to the device to be upgraded; wherein the compression algorithm identification information includes the identification of the compression algorithm corresponding to the upgrade compression package.
[0108] In some embodiments, the apparatus may further include:
[0109] A network determination module, used to determine whether the network state meets the requirements of the complex compressed network state according to the acquired network state information; if it meets the requirements of the complex compressed network state, a start signal is sent to the compression determination module 20;
[0110] The simple compression module is used to compress the incremental upgrade package using a simple compression algorithm to obtain an upgrade compression package if the complex compression network state requirement is not met, and send a start signal to the upgrade transmission module 40.
[0111] In some embodiments, when the network status information includes network bandwidth and retransmission rate, the network judgment module can be specifically used to determine whether the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold; if the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold, it is determined that the network status meets the complex compression network status requirements, and a start signal is sent to the compression determination module 20; if the network bandwidth does not reach the preset bandwidth or the retransmission rate is not less than the retransmission rate threshold, it is determined that the network status does not meet the complex compression network status requirements, and a start signal is sent to the simple compression module.
[0112] In this embodiment, the embodiment of the present invention obtains the incremental upgrade package of the device to be upgraded according to the remote upgrade request of the device to be upgraded through the incremental acquisition module 10, and can only compare and merge the upgrade change parts to generate an incremental upgrade package, so as to remotely perform incremental upgrades on the device to be upgraded and reduce the data size of the wirelessly transmitted upgrade package; and through the upgrade transmission module 40, a compression algorithm set corresponding to the incremental upgrade package is determined according to the data type of the data in the incremental upgrade package, and the complex compression algorithms corresponding to each data type can be adaptively selected and combined for use according to the data type of the data in the incremental upgrade package, so as to ensure the compression effect of the incremental upgrade package, further reduce the data size of the wirelessly transmitted upgrade package, shorten the upgrade time of the remote upgrade, and improve the user experience.
[0113] Corresponding to the above method embodiment, the embodiment of the present invention further provides a remotely upgraded data transmission device. The remotely upgraded data transmission device described below and the remotely upgraded data transmission method described above can be referred to each other.
[0114] Please refer to Figure 5 , Figure 5A schematic diagram of a remotely upgraded data transmission device provided in an embodiment of the present invention. The remotely upgraded data transmission device may include:
[0115] A memory D1, for storing computer programs;
[0116] The processor D2 is used to implement the steps of the virtual image display control method of the eyewear device provided by the above method embodiment when executing the computer program.
[0117] Among them, the data transmission device for program upgrade provided in this embodiment can be a server; it can also be specifically a terminal device, such as a computer or mobile phone connected to the wearable device, to transmit the upgrade compressed package corresponding to the incremental upgrade package to the wearable device (i.e., the device to be upgraded).
[0118] Corresponding to the above method embodiment, the embodiment of the present invention further provides a computer-readable storage medium. The computer-readable storage medium described below and the remote upgrade data transmission method described above can be referenced to each other.
[0119] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the remote upgrade data transmission method provided in the above method embodiment are implemented.
[0120] The computer-readable storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or any other readable storage medium that can store program codes.
[0121] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0122] The above is a detailed introduction to a remote upgrade data transmission method, device and equipment provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims
1. A remote upgrade data transmission method, characterized in that: include: Obtaining an incremental upgrade package for the device to be upgraded according to a remote upgrade request of the device to be upgraded; Determine a compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type, and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each of the data types; Using a complex compression algorithm in the compression algorithm set, compressing the incremental upgrade package to obtain an upgrade compressed package; The upgrade compressed package is wirelessly transmitted to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compressed package.
2. The remote upgrade data transmission method according to claim 1, characterized in that: After compressing the incremental upgrade package using the complex compression algorithm in the compression algorithm set to obtain the upgrade compressed package, the method further includes: According to the data size of the incremental upgrade package and the upgrade compressed package, judging whether the upgrade compressed package meets the requirements; If yes, then executing the step of wirelessly transmitting the upgrade compressed package to the device to be upgraded; If not, then according to the data type of the data in the incremental upgrade package, adjust the compression algorithm set corresponding to the incremental upgrade package, and execute the step of using the complex compression algorithm in the compression algorithm set to compress the incremental upgrade package to obtain an upgrade compressed package.
3. The remote upgrade data transmission method according to claim 2, characterized in that: The step of adjusting the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package includes: According to the data type and the algorithm selection rule corresponding to each of the data types, the complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package is adjusted.
4. The remote upgrade data transmission method according to claim 2, characterized in that: The compression algorithm set includes an algorithm compression order of a complex compression algorithm in the compression algorithm set, and adjusting the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package includes: According to the compression order adjustment rule, the data type and the algorithm selection rule corresponding to each data type, the algorithm compression order and / or complex compression algorithm in the compression algorithm set corresponding to the incremental upgrade package is adjusted.
5. The remote upgrade data transmission method according to claim 2, characterized in that: The step of judging whether the upgrade compressed package meets the requirement according to the data size of the incremental upgrade package and the upgrade compressed package includes: Determine whether the compression reduction volume corresponding to the upgrade compression package reaches a compression threshold; wherein the compression volume is the quotient of the absolute value of the difference between the data size of the incremental upgrade package and the upgrade compression package and the incremental upgrade package; If the compression threshold is reached, it is determined that the upgrade compression package meets the requirement; If the compression threshold is not reached, it is determined that the upgrade compression package does not meet the requirement.
6. The remote upgrade data transmission method according to claim 1, characterized in that: The wirelessly transmitting the upgrade compressed package to the device to be upgraded includes: The upgrade compression package and the compression algorithm identification information are wirelessly transmitted to the device to be upgraded; wherein the compression algorithm identification information includes the identification of the compression algorithm corresponding to the upgrade compression package.
7. The remote upgrade data transmission method according to any one of claims 1 to 6, characterized in that: Before determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package, the method further includes: According to the acquired network status information, determine whether the network status meets the requirements of complex compressed network status; If the complex compression network state requirement is met, then the step of determining the compression algorithm set corresponding to the incremental upgrade package according to the data type of the data in the incremental upgrade package is performed; If the complex compression network state requirement is not met, a simple compression algorithm is used to compress the incremental upgrade package to obtain an upgrade compressed package, and the step of wirelessly transmitting the upgrade compressed package to the device to be upgraded is performed.
8. The remote upgrade data transmission method according to claim 7, characterized in that: When the network status information includes network bandwidth and retransmission rate, judging whether the network status meets the complex compression network status requirement according to the acquired network status information includes: Determine whether the network bandwidth reaches a preset bandwidth and the retransmission rate is less than a retransmission rate threshold; If the network bandwidth reaches the preset bandwidth and the retransmission rate is less than the retransmission rate threshold, it is determined that the network state meets the complex compression network state requirement; If the network bandwidth does not reach the preset bandwidth or the retransmission rate is not less than the retransmission rate threshold, it is determined that the network state does not meet the complex compression network state requirement.
9. A remote upgrade data transmission device, characterized in that: include: An incremental acquisition module, used to acquire an incremental upgrade package of the device to be upgraded according to a remote upgrade request of the device to be upgraded; A compression determination module, configured to determine a compression algorithm set corresponding to the incremental upgrade package according to a data type of the data in the incremental upgrade package; wherein the data type includes at least one of a text type, an image type, an audio type, and a video type; and the compression algorithm set includes a complex compression algorithm corresponding to each of the data types; A complex compression module, used to compress the incremental upgrade package using a complex compression algorithm in the compression algorithm set to obtain an upgrade compressed package; The upgrade transmission module is used to wirelessly transmit the upgrade compression package to the device to be upgraded, so that the device to be upgraded completes the upgrade using the upgrade compression package.
10. A remotely upgraded data transmission device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the remote upgrade data transmission method as claimed in any one of claims 1 to 8 when executing the computer program.