Device Upgrade Method, System, Apparatus and Computer Readable Storage Medium

By splitting the device upgrade task into multiple subtasks and executing it simultaneously using multiple transmission links, the problem of long device upgrade time is solved, and more efficient device upgrades and improved user experience is achieved.

CN117135048BActive Publication Date: 2025-07-08SHENZHEN TCL NEW-TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211145136.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-20
Publication Date
2025-07-08
Estimated Expiration
2042-09-20

AI Technical Summary

Technical Problem

During the equipment upgrade process, due to the limited size of the transmission firmware packet, the upgrade packet reception time is long, which affects the equipment upgrade efficiency and user experience.

Method used

Split the device upgrade task into multiple subtasks, use the number of transmission links supported by the device, perform the upgrade subtasks simultaneously through multiple transmission links, and combine the sub-upgrade packets into a total upgrade packet to achieve device upgrade.

Benefits of technology

The process of obtaining upgrade package data and equipment upgrade has been accelerated, and the efficiency and user experience of equipment upgrades have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117135048B_ABST
    Figure CN117135048B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a device upgrade method, system, device and computer-readable storage medium. The method includes: generating a device upgrade task according to upgrade package information sent by a peer device; splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device; for each transmission link, obtaining a corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link; combining the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information; and upgrading the current device according to the total upgrade package. By splitting the upgrade task into multiple sub-upgrade tasks and executing the multiple sub-upgrade tasks simultaneously, the acquisition of upgrade package data is accelerated, and the efficiency of device upgrade is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technology, and in particular, to a device upgrade method, system, device, and computer-readable storage medium. Background Art

[0002] Currently, the upgrade package data of a device depends on obtaining from the cloud or from the APP of the terminal. For example, the upgrade package data is downloaded through the Over-the-Air Technology (OTA), and the device is upgraded according to the upgrade package data.

[0003] However, since the size of the firmware package transmitted by the transmission link is limited, the time for the terminal device to receive the upgrade package is relatively long, resulting in a relatively long device upgrade time, which is not conducive to device upgrade and affects the user experience. Summary of the Invention

[0004] Embodiments of the present application provide a device upgrade method, system, device, and computer-readable storage medium, which can improve the upgrade efficiency of the device and enhance the user experience.

[0005] In a first aspect, an embodiment of the present application provides a device upgrade method, which is applied to a current device and includes:

[0006] Generating a device upgrade task according to the upgrade package information sent by the peer device;

[0007] Splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device;

[0008] For each transmission link, obtaining a corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link;

[0009] Combining the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information;

[0010] Upgrading the current device according to the total upgrade package.

[0011] In a second aspect, an embodiment of the present application further provides a device upgrade device, including:

[0012] A generating module, configured to generate a device upgrade task according to the upgrade package information sent by the peer device;

[0013] A splitting module, configured to split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device;

[0014] An acquisition module, configured to, for each transmission link, acquire a corresponding sub-upgrade package from the peer device according to the upgrade sub-task corresponding to the transmission link;

[0015] A combination module, configured to combine the sub-upgrade packages of each of the transmission links to obtain a total upgrade package corresponding to the upgrade package information;

[0016] An upgrade module, configured to upgrade the current device according to the total upgrade package.

[0017] Wherein, in some embodiments of the present application, the splitting module includes:

[0018] A splitting unit, configured to split the device upgrade task into a plurality of sub-device upgrade tasks;

[0019] A determination unit, configured to determine a plurality of task groups according to the number of transmission links supported by the current device;

[0020] An allocation unit, configured to evenly allocate the plurality of sub-device upgrade tasks to the plurality of task groups;

[0021] An acquisition unit, configured to, for each task group, obtain an upgrade sub-task corresponding to the task group according to the plurality of sub-device upgrade tasks corresponding to the task group.

[0022] Wherein, in some embodiments of the present application, the upgrade package information includes first data verification information, and the upgrade module includes:

[0023] A generation unit, configured to generate second data verification information according to the total upgrade package;

[0024] A verification unit, configured to verify the total upgrade package data according to the first data verification information and the second data verification information;

[0025] An upgrade unit, configured to, when the total upgrade package data verification passes, upgrade the current device according to the total upgrade package.

[0026] Wherein, in some embodiments of the present application, the combination module includes:

[0027] A combination unit, configured to, for the sub-upgrade packages of each of the transmission links, combine each sub-data packet in each of the sub-upgrade packages according to the sequence number to obtain a total upgrade package corresponding to the upgrade package information.

[0028] In a third aspect, an embodiment of the present application provides a device upgrade method, which is applied to a current device and includes:

[0029] Send upgrade package information to the peer device, and the peer device generates a device upgrade task according to the upgrade package information. The peer device splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device;

[0030] Determine the sub-upgrade packages corresponding to each upgrade subtask, and send the sub-upgrade packages to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package.

[0031] In a fourth aspect, an embodiment of the present application further provides a device upgrade device, including:

[0032] A first sending module, configured to send upgrade package information to a peer device. The peer device generates a device upgrade task according to the upgrade package information. The peer device splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device;

[0033] A second sending module, configured to determine the sub-upgrade packages corresponding to each upgrade subtask, and send the sub-upgrade packages to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package.

[0034] Wherein, in some embodiments of the present application, the device further includes a partitioning module, and the partitioning module includes:

[0035] A threshold acquisition unit, configured to acquire a first transmission data volume threshold of the transmission link;

[0036] A length determination unit, configured to determine the data length of a single transmission according to the first transmission data volume threshold and a second transmission data volume threshold of the current device;

[0037] A partitioning unit, configured to split the total upgrade package corresponding to the upgrade package information into several sub-data packets according to the data length;

[0038] The second sending module includes:

[0039] A data packet determination unit, configured to, for each upgrade subtask, determine several sub-data packets corresponding to the upgrade subtask, and obtain the sub-upgrade package corresponding to the upgrade subtask according to the several sub-data packets.

[0040] Wherein, in some embodiments of the present application, the data packet determination unit includes:

[0041] A numbering subunit, configured to number each of the several sub-data packets obtained by splitting the total upgrade package, so as to obtain a sequence number corresponding to each sub-data packet;

[0042] A data packet determination subunit, configured to, for each upgrade subtask, determine the sequence numbers of the sub-data packets to be transmitted corresponding to the upgrade subtask, and determine several sub-data packets corresponding to the upgrade subtask according to the sequence numbers.

[0043] In a fifth aspect, an embodiment of the present application further provides a device upgrade system, including a current device and a peer device, where

[0044] The current device is configured to generate a device upgrade task according to the upgrade package information sent by the peer device; split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device; for each transmission link, obtain a corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link; combine the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information; upgrade the current device according to the total upgrade package;

[0045] The peer device is configured to send upgrade package information to the current device, determine a sub-upgrade package corresponding to each upgrade subtask, and send the sub-upgrade package to the current device through the transmission link.

[0046] In a sixth aspect, an embodiment of the present application further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above device upgrade method are implemented.

[0047] In a seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above device upgrade method are implemented.

[0048] Among them, in the embodiment of the present application, a device upgrade task is generated according to the upgrade package information sent by the peer device. According to the number of transmission links supported by the current device, the device upgrade task is split into several upgrade subtasks. For each transmission link, a corresponding sub-upgrade package is obtained from the peer device according to the upgrade subtask corresponding to the transmission link, and the sub-upgrade packages of each transmission link are combined to obtain the total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package. Among them, in the embodiment of the present application, by splitting the upgrade task into multiple sub-upgrade tasks and executing the multiple sub-upgrade tasks simultaneously, the acquisition of upgrade package data is accelerated, and the efficiency of device upgrade is accelerated. Among them, by splitting the upgrade task according to the number of transmission links supported by the device, each transmission link can complete a sub-upgrade task, and while transmitting the data of each sub-upgrade package, the acquisition efficiency of upgrade package data is accelerated, the efficiency of device upgrade is improved, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the present application, the following will briefly introduce the accompanying drawings required in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, without creative efforts, other accompanying drawings can be obtained according to these drawings.

[0050] Figure 1 is a schematic diagram of the scenario of the device upgrade method provided by the embodiment of the present application;

[0051] Figure 2 is a schematic flowchart of the device upgrade method provided by the embodiment of the present application;

[0052] Figure 3 is another schematic flowchart of the device upgrade method provided by the embodiment of the present application;

[0053] Figure 4 is a framework structure diagram of the device upgrade system provided by the embodiment of the present application;

[0054] Figure 5 is a schematic flowchart of the method for upgrading a Bluetooth speaker through a mobile phone provided by the embodiment of the present application;

[0055] Figure 6 is a schematic structural diagram of the device upgrade device provided by the embodiment of the present application;

[0056] Figure 7 is another schematic structural diagram of the device upgrade device provided by the embodiment of the present application;

[0057] Figure 8 is a schematic structural diagram of the electronic device provided by the embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0058] The technical solutions in the present application will be clearly and completely described below with reference to the accompanying drawings in the present application. Apparently, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.

[0059] The embodiments of the present application provide a device upgrade method, system, device and computer-readable storage medium. Specifically, the embodiments of the present application provide a device upgrade device applicable to an electronic device. Among them, the electronic device includes a terminal device or a server. Among them, the terminal device can be a device such as a mobile phone, a Bluetooth speaker, a vehicle-mounted terminal, a tablet, a computer, etc. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN, Content Delivery Network), and big data and artificial intelligence platforms. The server can be directly or indirectly connected through wired or wireless communication methods.

[0060] Among them, in the embodiments of the present application, the device upgrade method can be executed solely by the terminal device, or solely by the server, or jointly by the terminal device and the server. Please refer to Figure 1 , taking the terminal device executing the device upgrade method as an example. Among them, the specific execution process of the device upgrade method is as follows:

[0061] The terminal device 10 receives the upgrade package information sent by the terminal device 11, generates a device upgrade task according to the upgrade package information, splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device. For each transmission link, obtain the corresponding sub-upgrade package from the peer terminal device 11 according to the upgrade subtask corresponding to the transmission link, combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrade the terminal device 10 according to the total upgrade package.

[0062] Among them, in the embodiments of the present application, the upgrade package information is sent to the terminal device 10 through the application program of the terminal device 11. Among them, in the embodiments of the present application, the upgrade package information is generated according to the total upgrade package, and the total upgrade package is obtained by the application program of the terminal device 11 from the cloud according to the over-the-air technology (OTA).

[0063] Among them, in the embodiments of the present application, the terminal device 11 can be directly replaced by a server or the cloud. For example, the cloud or the server directly generates upgrade package information according to the total upgrade package and sends the upgrade package information to the terminal device 10.

[0064] Among them, in the embodiments of the present application, device upgrade tasks are generated according to the upgrade package information sent by the peer device. According to the number of transmission links supported by the current device, the device upgrade tasks are split into several upgrade subtasks. For each transmission link, the corresponding sub-upgrade package is obtained from the peer device according to the upgrade subtask corresponding to the transmission link. The sub-upgrade packages of each transmission link are combined to obtain the total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package. Among them, in the embodiments of the present application, by splitting the upgrade task into multiple sub-upgrade tasks and executing multiple sub-upgrade tasks simultaneously, the acquisition of upgrade package data is accelerated, and the efficiency of device upgrade is accelerated. Among them, by splitting the upgrade task according to the number of transmission links supported by the device, each transmission link can complete a sub-upgrade task, and while transmitting the data of each sub-upgrade package, the acquisition efficiency of upgrade package data is accelerated, the efficiency of device upgrade is improved, and the user experience is improved.

[0065] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not limit the priority order of the embodiments.

[0066] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the device upgrade method provided by the embodiments of the present application. The device upgrade method is applied to the current device. Among them, the specific process of the device upgrade method can be as follows:

[0067] 101. Generate device upgrade tasks according to the upgrade package information sent by the peer device.

[0068] Among them, in the embodiments of the present application, the peer device is the device that sends the upgrade package information to the current device. The peer device has the ability to receive the upgrade package, generate upgrade package information according to the upgrade package, and also has the ability to send the upgrade information to the current device to assist the current device in performing the upgrade task. For example, in the embodiments of the present application, the peer device can include devices such as mobile phones and computers, and can use an application program (such as an APP) to send the upgrade information to the current device. Among them, in the embodiments of the present application, the peer device obtains the upgrade package from the cloud or the server and sends the upgrade package information corresponding to the upgrade package to the peer device.

[0069] Among them, in the embodiments of the present application, the current device is the device to be upgraded. For example, wearable devices such as smart watches or in-vehicle terminals, TVs, refrigerators, air conditioners, etc.

[0070] Among them, in the embodiments of the present application, the device upgrade task is a combination of a set of instruction tasks, including obtaining upgrade package data and upgrading the device according to the data of the upgrade package. Among them, the device upgrade task is generated through the upgrade package information, and the upgrade of the device is realized according to the execution of the device upgrade task.

[0071] 102. Split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device.

[0072] Among them, in the embodiments of the present application, the transmission link is formed after the transmission unit of the device establishes a connection with the peer device. Among them, the transmission of the upgrade package data can be realized through the transmission link.

[0073] Among them, in the embodiments of the present application, the number of transmission units determines the number of transmission links supported by the device. When the device has multiple transmission units, the device can support multiple transmission links. Among them, in the embodiments of the present application, the transmission unit includes a low-power Bluetooth unit (BLE, Bluetooth Low Energy).

[0074] Among them, in the embodiments of the present application, the upgrade subtask is a component of the device upgrade task. Multiple upgrade subtasks are combined to form the device upgrade task. In the embodiments of the present application, the device upgrade task is split into multiple upgrade subtasks according to the number of transmission links, so that multiple upgrade subtasks can be executed simultaneously to improve the upgrade efficiency of the device.

[0075] Among them, in the embodiments of the present application, after the current device receives the device upgrade task, the device upgrade task can also be split into multiple sub-device upgrade tasks according to the difficulty and breadth of the device upgrade task. Through the division of labor and execution of multiple sub-device upgrade tasks, the execution of the device upgrade task is realized. Therefore, in the embodiments of the present application, before splitting the device upgrade task according to the transmission link, the device upgrade task can also be split according to the actual content of the device upgrade task. That is, optionally, in some embodiments of the present application, the step of "splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device" includes:

[0076] Split the device upgrade task into several sub-device upgrade tasks;

[0077] Determine several task groups according to the number of transmission links supported by the current device;

[0078] Evenly distribute the several sub-device upgrade tasks to the several task groups;

[0079] For each task group, obtain the upgrade subtask corresponding to the task group according to the several sub-device upgrade tasks corresponding to the task group.

[0080] Among them, in the embodiments of the present application, the sub-device upgrade task is a component of the device upgrade task. The sub-device upgrade task can be split according to the content of the device upgrade task. For example, the overall task can be split into multiple local tasks, and the device upgrade task can be executed by dividing the work among multiple local tasks. Among them, the split can be performed according to the difficulty, workload, and breadth of the upgrade task, and has nothing to do with the number of transmission links.

[0081] By dividing the task groups through the transmission links, each sub-device upgrade task after splitting can be evenly distributed to each task group, and the sub-device upgrade task corresponding to each task group is the upgrade sub-task corresponding to the transmission link.

[0082] 103. For each transmission link, obtain the corresponding sub-upgrade package from the peer device according to the upgrade sub-task corresponding to the transmission link.

[0083] Among them, since the upgrade sub-tasks are split according to the number of transmission links, each transmission link can correspond to the execution of one upgrade sub-task.

[0084] Among them, in the embodiments of the present application, the device upgrade task mainly includes obtaining the upgrade package. For example, obtaining the upgrade package of the current device from the peer device, while the upgrade sub-task mainly includes obtaining multiple sub-upgrade packages corresponding to the upgrade package. For example, splitting the upgrade package that needs to be obtained by the device upgrade task into multiple sub-upgrade packages, and executing multiple upgrade sub-tasks simultaneously to obtain each pair of sub-upgrade packages, thereby improving the efficiency of obtaining the upgrade package.

[0085] 104. Combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information.

[0086] Among them, by combining the sub-upgrade packages obtained after each upgrade sub-task is executed, the total upgrade package is obtained. Among them, by simultaneously executing multiple transmission links to obtain the sub-data of the upgrade package, compared with a single transmission link transmitting the upgrade package data, the embodiments of the present application improve the transmission efficiency of the upgrade package, and thus improve the efficiency of the current device obtaining the upgrade package.

[0087] Among them, in the embodiments of the present application, each sub-upgrade package can correspondingly include multiple sub-data packets, and each sub-data packet can be distinguished according to the serial number. Therefore, in the embodiments of the present application, each sub-data packet can be combined as needed to obtain the total upgrade package. That is, optionally, in some embodiments of the present application, the step "combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information" includes:

[0088] For the sub-upgrade packages for each of the said transmission links, each sub-data packet in each of the said sub-upgrade packages is combined according to the serial number to obtain the total upgrade package corresponding to the upgrade package information.

[0089] Among them, by combining each sub-data packet, it is convenient to quickly synthesize the total upgrade package and improve the combination efficiency of the total upgrade package.

[0090] 105. Upgrade the current device according to the total upgrade package.

[0091] Among them, in the embodiment of the present application, the total upgrade package is the upgrade package corresponding to the upgrade package information. By obtaining the total upgrade package, the current device can be upgraded using this total upgrade package.

[0092] Among them, in the embodiment of the present application, before upgrading the device according to the total upgrade package, the integrity of the total upgrade package can also be verified by performing an integrity check on the total upgrade package, such as whether it is complete and safe. That is, optionally, in some embodiments of the present application, the upgrade package information includes first data verification information. The step of "upgrading the current device according to the total upgrade package" includes:

[0093] Generate second data verification information according to the total upgrade package;

[0094] Verify the total upgrade package data according to the first data verification information and the second data verification information;

[0095] When the total upgrade package data passes the verification, upgrade the current device according to the total upgrade package.

[0096] Among them, in the embodiment of the present application, the first data verification information is included in the upgrade package information, obtained by the peer device according to the total upgrade package data, and sent to the current device carried in the upgrade package information.

[0097] Among them, in the embodiment of the present application, the second data verification information is obtained by the current device according to the total upgrade package after combining to obtain the total upgrade package. Generally, since the first data verification information is obtained by the peer device according to the total upgrade package, and the second data verification information is obtained by the current device from the received total upgrade package, when the first data verification information is consistent with the second data verification information, it can be considered that the total upgrade package received by the current terminal device is consistent with the total upgrade package sent by the peer device.

[0098] For example, in the embodiments of the present application, the data verification information includes a CRC32 value. The first data verification information is obtained by the peer device calculating the CRC32 value based on the total upgrade package, and the second data verification information is obtained by the current device calculating the CRC32 value based on the total upgrade package. When the two CRC32 values are the same, it can be considered that the total upgrade package received by the current device is the same as the total upgrade package sent by the peer device.

[0099] Among them, in the embodiments of the present application, an equipment upgrade task is generated according to the upgrade package information sent by the peer device. According to the number of transmission links supported by the current device, the equipment upgrade task is split into several upgrade subtasks. For each transmission link, the corresponding sub-upgrade package is obtained from the peer device according to the upgrade subtask corresponding to the transmission link, and the sub-upgrade packages of each transmission link are combined to obtain the total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package. Among them, in the embodiments of the present application, by splitting the upgrade task into multiple sub-upgrade tasks and executing the multiple sub-upgrade tasks simultaneously, the acquisition of upgrade package data is accelerated, and the efficiency of equipment upgrade is accelerated. Among them, by splitting the upgrade task according to the number of transmission links supported by the device, each transmission link can complete a sub-upgrade task, and while transmitting the data of each sub-upgrade package, the acquisition efficiency of upgrade package data is accelerated, the efficiency of equipment upgrade is improved, and the user experience is improved.

[0100] Please refer to Figure 3 , Figure 3 which is another schematic flowchart of the equipment upgrade method provided by the embodiments of the present application. This equipment upgrade method is applied to the current device. Among them, the specific process of this equipment upgrade method can be as follows:

[0101] 111. Send upgrade package information to the peer device. The peer device generates an equipment upgrade task according to the upgrade package information, and the peer device splits the equipment upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device.

[0102] Among them, in the embodiments of the present application, the current device includes the device that sends the upgrade package information, and the peer device is the device that receives the upgrade package, that is, the peer device is the device to be upgraded. Among them, by sending the upgrade package information from the current device to the peer device, the peer device can perform equipment upgrade according to the upgrade package information after receiving the upgrade package information. Among them, the current device can include devices such as mobile phones and computers, and the peer device can include devices such as smart wearable devices, in-vehicle terminals, TVs, air conditioners, and refrigerators.

[0103] Among them, in the embodiments of the present application, after receiving the upgrade package information, the peer device can generate an equipment upgrade task according to the upgrade package information and perform the upgrade operation of the equipment according to the equipment upgrade task.

[0104] Among them, in the embodiment of the present application, the transmission link is formed after the transmission unit of the device establishes a connection with the peer device. Through the transmission link, the transmission of the upgrade package data can be realized.

[0105] Among them, in the embodiment of the present application, the number of transmission units determines the number of transmission links supported by the device. When the device has multiple transmission units, the device can support multiple transmission links.

[0106] Among them, in the embodiment of the present application, the upgrade subtask is a component of the device upgrade task. Multiple upgrade subtasks are combined to form the device upgrade task. The peer device splits the device upgrade task into multiple upgrade subtasks according to the number of transmission links supported by the peer device, so that the peer device can divide the work according to multiple upgrade subtasks to achieve the overall upgrade task of the device. When multiple upgrade subtasks are executed simultaneously, the upgrade efficiency of the peer device can be improved.

[0107] 112. Determine the sub-upgrade packages corresponding to each upgrade subtask, and send the sub-upgrade packages to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package.

[0108] Among them, since the upgrade subtasks are split according to the number of transmission links, each transmission link can execute one upgrade subtask.

[0109] Among them, in the embodiment of the present application, the device upgrade task mainly includes obtaining the upgrade package. For example, obtaining the upgrade package of the current device from the peer device, and the upgrade subtask mainly includes obtaining multiple sub-upgrade packages corresponding to the upgrade package. For example, splitting the upgrade package required by the device upgrade task into multiple sub-upgrade packages, and respectively executing multiple upgrade subtasks simultaneously to achieve the acquisition of each sub-upgrade package, thereby improving the acquisition efficiency of the upgrade package.

[0110] Among them, when each sub-upgrade package is sent to the peer device through different transmission links, the peer device can obtain the total upgrade package by combining each sub-upgrade package. After combining to obtain the total upgrade package, the peer device can be upgraded using the total upgrade package.

[0111] Among them, in the embodiments of the present application, since the length of the data packets transmitted by the device is limited, and the length of the transmission link constructed by the transmission unit for transmitting data packets is also limited, therefore, the data length of the sub-data packets for a single transmission can be determined according to the upper limit of the length of the data packets currently transmitted by the device, and the upper limit of the length of the data packets transmitted by the transmission unit or the transmission link. That is, optionally, in the embodiments of the present application, before the step of "determining the sub-upgrade packages corresponding to each upgrade sub-task", the method further includes:

[0112] Obtain a first transmission data volume threshold of the transmission link;

[0113] Determine the data length for a single transmission according to the first transmission data volume threshold and a second transmission data volume threshold of the current device;

[0114] Split the total upgrade package corresponding to the upgrade package information into a number of sub-data packets according to the data length;

[0115] Among them, the first transmission data volume threshold is the upper limit value of the data volume that the transmission link can transmit, and the second transmission data volume threshold is the upper limit value of the data volume that the current device can transmit. The minimum upper limit value is selected from the two upper limit values as the data length for a single transmission, and the total upgrade package is split into multiple sub-data packets according to this data length.

[0116] Among them, by splitting the total upgrade package into multiple sub-data packets, the multiple sub-data packets can perform data transmission under the transmission length supported by the device, ensuring the transmission quality.

[0117] Among them, for each upgrade sub-task, the sub-upgrade package corresponding to the upgrade sub-task can be obtained according to the multiple sub-data packets corresponding to the upgrade sub-task. That is, optionally, in some embodiments of the present application, the step of "determining the sub-upgrade packages corresponding to each upgrade sub-task" includes:

[0118] For each upgrade sub-task, determine the several sub-data packets corresponding to the upgrade sub-task, and obtain the sub-upgrade package corresponding to the upgrade sub-task according to the several sub-data packets.

[0119] Among them, after determining the multiple sub-data packets corresponding to the upgrade sub-task, the multiple sub-data packets can be used as the sub-upgrade package of the upgrade sub-task. For example, the multiple sub-data packets are packaged to obtain the sub-upgrade package, or the multiple sub-data packets are combined to obtain the sub-upgrade package.

[0120] Among them, in the embodiments of the present application, when splitting the total upgrade package into multiple sub-data packets, each sub-data packet can be numbered, so that after the end device receives each sub-data packet, it can combine each sub-data packet according to the number to obtain the total upgrade package. Correspondingly, after numbering each sub-data packet, multiple sub-data packets corresponding to each upgrade sub-task can be determined according to the number. That is, optionally, in some embodiments of the present application, the step of "for each upgrade sub-task, determining a plurality of sub-data packets corresponding to the upgrade sub-task" includes:

[0121] Numbering the several sub-data packets obtained by splitting the total upgrade package respectively to obtain the serial number corresponding to each sub-data packet;

[0122] For each upgrade sub-task, determining the serial numbers of the sub-data packets to be transmitted corresponding to the upgrade sub-task, and determining a plurality of sub-data packets corresponding to the upgrade sub-task according to the serial numbers.

[0123] Among them, by numbering the sub-data packets, multiple sub-data packets corresponding to each upgrade sub-task can be determined according to the number.

[0124] In the embodiments of the present application, by sending upgrade package information to the end device, the end device can generate a device upgrade task according to the upgrade package information, and according to each upgrade sub-task after splitting the device upgrade task by the end device, send each sub-upgrade package simultaneously, which improves the sending efficiency of the total upgrade package corresponding to the upgrade package information, and further improves the upgrade efficiency of the end device.

[0125] Please refer to Figure 4 , Figure 4 which is the framework structure diagram of the device upgrade system provided by the embodiments of the present application. The framework structure of the device upgrade system includes:

[0126] The current device 121 is used to generate a device upgrade task according to the upgrade package information sent by the end device; split the device upgrade task into several upgrade sub-tasks according to the number of transmission links supported by the current device; for each transmission link, obtain the corresponding sub-upgrade package from the end device according to the upgrade sub-task corresponding to the transmission link; combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information; upgrade the current device according to the total upgrade package;

[0127] The end device 122 is used to send upgrade package information to the current device, determine the sub-upgrade package corresponding to each upgrade sub-task, and send the sub-upgrade package to the current device through the transmission link.

[0128] Among them, the peer device sends upgrade package information to the current device, enabling the current device to receive relevant upgrade prompts. After the current device receives the upgrade package information, it can generate a device upgrade task based on the upgrade package information. After the current device splits the device upgrade task into multiple upgrade subtasks according to the number of supported transmission links, it can accelerate the execution of the device upgrade task and improve the device upgrade efficiency by simultaneously executing multiple upgrade subtasks. Among them, after obtaining the sub-upgrade packages corresponding to the total upgrade package through each upgrade subtask, the total upgrade package can be obtained by combining each sub-upgrade package, and then the current device can be upgraded using the total upgrade package.

[0129] Among them, in the embodiments of the present application, the peer device user receives upgrade package data from the cloud or the server, generates upgrade package information based on the upgrade package data, and sends the upgrade package information to the current device.

[0130] Please refer to Figure 5 , Figure 5 which is a schematic flowchart of the method for upgrading a Bluetooth speaker through a mobile phone provided by the embodiments of the present application. Among them, the specific process of the method for upgrading a Bluetooth speaker through a mobile phone can be as follows:

[0131] 201. The mobile phone application downloads the firmware upgrade package from the cloud according to the device identifier of the Bluetooth speaker;

[0132] 202. Operate the start upgrade button on the mobile phone application to establish a connection between the application and the Bluetooth speaker;

[0133] 203. The application sends an upgrade negotiation command to the main control of the Bluetooth speaker, carrying parameters such as the name, length, crc32 value calculated for the upgrade package file, and the maximum transmission payload of the mobile phone;

[0134] 204. The Bluetooth speaker actively checks whether it allows upgrading. If so, execute step 205; otherwise, end the process;

[0135] 205. Send the information of multiple available low-power Bluetooth modules of the Bluetooth speaker to the application, and the application establishes connections with each low-power Bluetooth module;

[0136] 206. The Bluetooth speaker splits the upgrade package into multiple sub-data packets according to parameters such as the length of the obtained upgrade package and the maximum transmission load of the mobile phone. Among them, the length of each sub-data packet is set according to the minimum value of the maximum transmission load of each low-power Bluetooth module and the maximum transmission load of the mobile phone;

[0137] 207. At the same time, the Bluetooth speaker splits the upgrade package transmission task into multiple sub-device upgrade tasks, and each sub-device upgrade task transmits data packets of the same length;

[0138] 208. According to the number of low-power Bluetooth modules supported by the Bluetooth speaker itself, the multiple sub-device upgrade tasks are grouped according to the serial numbers of each sub-device upgrade task. Among them, the number of sub-device upgrade tasks corresponding to each group is basically the same. Each low-power Bluetooth module is responsible for a group of upgrade sub-tasks, and the Bluetooth speaker creates a cache for each low-power Bluetooth module;

[0139] 209. Start the upgrade sub-tasks corresponding to each low-power Bluetooth module, request the sub-packets with the corresponding serial numbers from the application program (where the mobile phone also sets the serial number and length of the sub-packet in the header of the sub-packet), and obtain the sub-upgrade package corresponding to the upgrade sub-task;

[0140] 210. After each low-power Bluetooth module receives the sub-upgrade package, it passes the sub-upgrade package to the main control of the Bluetooth speaker, and through the main control, puts the sub-upgrade package into the corresponding cache, and records the task progress of each low-power Bluetooth module through the main control;

[0141] 211. When the sub-upgrade tasks responsible for all low-power Bluetooth modules are completed, the main control of the Bluetooth speaker combines each sub-packet according to the serial number of the sub-packet to obtain the total upgrade package;

[0142] 212. The main control of the Bluetooth speaker calculates the crc32 value for the data of the total upgrade package;

[0143] 213. Compare it with the crc32 value sent by the application program to judge the integrity of the total upgrade package. If it is complete, execute step 214. Otherwise, stop the upgrade;

[0144] 214. Upgrade the Bluetooth speaker according to the total upgrade package;

[0145] 215. After the Bluetooth speaker is upgraded successfully, the main control of the Bluetooth speaker sends an upgrade success command to the application program of the mobile phone, and displays an upgrade success identifier on the interface of the application program;

[0146] 216. The mobile phone application program reports the upgrade success identifier to the cloud.

[0147] Among them, when there is an upgrade for the Bluetooth speaker, by sending the firmware upgrade package to the mobile application, the mobile application can send the firmware upgrade package to the Bluetooth device and assist the Bluetooth speaker to complete the device upgrade task. Among them, in the embodiments of the present application, the process of the firmware upgrade package being transmitted from the cloud to the Bluetooth speaker can be understood as obtaining the upgrade package data of the device through the over-the-air download technology. Among them, by splitting the upgrade task into multiple subtasks and respectively executing each subtask through multiple low-power Bluetooth modules supported by the Bluetooth speaker, the execution efficiency of the device upgrade task can be improved, the transmission efficiency of the firmware upgrade package data to the Bluetooth speaker can be accelerated, and the upgrade efficiency of the Bluetooth speaker can be easily improved.

[0148] To facilitate better implementation of the device upgrade method of the present application, the present application also provides a device upgrade device based on the above device upgrade method. The meaning of the third target term is the same as that in the above device upgrade method, and the specific implementation details can refer to the description in the method embodiments.

[0149] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of the device upgrade device provided by the embodiments of the present application. Among them, the device upgrade device may include:

[0150] A generation module 301, configured to generate a device upgrade task according to the upgrade package information sent by the peer device;

[0151] A splitting module 302, configured to split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device;

[0152] An obtaining module 303, configured to obtain a corresponding sub-upgrade package from the peer device for each transmission link according to the upgrade subtask corresponding to the transmission link;

[0153] A combining module 304, configured to combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information;

[0154] An upgrade module 305, configured to upgrade the current device according to the total upgrade package.

[0155] Among them, in some embodiments of the present application, the splitting module 302 includes:

[0156] A splitting unit, configured to split the device upgrade task into several sub-device upgrade tasks;

[0157] A determining unit, configured to determine several task groups according to the number of transmission links supported by the current device;

[0158] An allocating unit, configured to evenly allocate the several sub-device upgrade tasks to the several task groups;

[0159] An obtaining unit, configured to obtain, for each task group, an upgraded subtask corresponding to the task group according to a plurality of sub-device upgrade tasks corresponding to the task group.

[0160] Wherein, in some embodiments of the present application, the upgrade package information includes first data verification information, and the upgrade module 305 includes:

[0161] A generating unit, configured to generate second data verification information according to the total upgrade package;

[0162] A verifying unit, configured to verify the total upgrade package data according to the first data verification information and the second data verification information;

[0163] An upgrading unit, configured to upgrade the current device according to the total upgrade package when the total upgrade package data passes the verification.

[0164] Wherein, in some embodiments of the present application, the combining module 304 includes:

[0165] A combining unit, configured to combine each sub-data packet in each of the sub-upgrade packages for each of the transmission links according to the sequence number to obtain a total upgrade package corresponding to the upgrade package information.

[0166] In the embodiment of the present application, the generating module 301 generates a device upgrade task according to the upgrade package information sent by the peer device. Then, the splitting module 302 splits the device upgrade task into a plurality of upgraded subtasks according to the number of transmission links supported by the current device. Subsequently, the obtaining module 303 obtains a corresponding sub-upgrade package from the peer device for each transmission link according to the upgraded subtask corresponding to the transmission link. Then, the combining module 304 combines the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information. Finally, the upgrade module 305 upgrades the current device according to the total upgrade package.

[0167] Among them, in the embodiment of the present application, a device upgrade task is generated according to the upgrade package information sent by the peer device. According to the number of transmission links supported by the current device, the device upgrade task is split into several upgrade subtasks. For each transmission link, a corresponding sub-upgrade package is obtained from the peer device according to the upgrade subtask corresponding to the transmission link, and the sub-upgrade packages of each transmission link are combined to obtain the total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package. Among them, in the embodiment of the present application, by splitting the upgrade task into multiple sub-upgrade tasks and executing the multiple sub-upgrade tasks simultaneously, the acquisition of the upgrade package data is accelerated, and the efficiency of device upgrade is accelerated. Among them, by splitting the upgrade task according to the number of transmission links supported by the device, each transmission link can complete a sub-upgrade task, and while transmitting the data of each sub-upgrade package, the acquisition efficiency of the upgrade package data is accelerated, the efficiency of device upgrade is improved, and the user experience is improved.

[0168] Please refer to Figure 7 , Figure 7 which is another structural schematic diagram of the device upgrade device provided by the embodiment of the present application. Among them, the device upgrade device may include:

[0169] A first sending module 311, configured to send upgrade package information to a peer device. The peer device generates a device upgrade task according to the upgrade package information, and the peer device splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device;

[0170] A second sending module 312, configured to determine a sub-upgrade package corresponding to each upgrade subtask, and send the sub-upgrade package to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package.

[0171] Among them, in some embodiments of the present application, the device further includes a partitioning module, and the partitioning module includes:

[0172] A threshold acquisition unit, configured to acquire a first transmission data volume threshold of the transmission link;

[0173] A length determination unit, configured to determine the data length of a single transmission according to the first transmission data volume threshold and a second transmission data volume threshold of the current device;

[0174] A partitioning unit, configured to split the total upgrade package corresponding to the upgrade package information into several sub-data packets according to the data length;

[0175] The second sending module 312 includes:

[0176] A data packet determination unit, configured to determine a plurality of sub-data packets corresponding to each upgrade subtask for each upgrade subtask, and obtain a sub-upgrade package corresponding to the upgrade subtask according to the plurality of sub-data packets.

[0177] Wherein, in some embodiments of the present application, the data packet determination unit includes:

[0178] A numbering subunit, configured to number each of the plurality of sub-data packets obtained by splitting the total upgrade package, to obtain a sequence number corresponding to each sub-data packet;

[0179] A data packet determination subunit, configured to determine, for each upgrade subtask, the sequence numbers of the sub-data packets to be transmitted corresponding to the upgrade subtask, and determine a plurality of sub-data packets corresponding to the upgrade subtask according to the sequence numbers.

[0180] Wherein, in an embodiment of the present application, a first sending module 311 sends upgrade package information to a peer device, so that the peer device generates a device upgrade task according to the upgrade package information, and splits the device upgrade task into a plurality of upgrade subtasks according to the number of transmission links supported by the peer device. Then, a second sending module 312 determines a sub-upgrade package corresponding to each upgrade subtask, and sends the sub-upgrade package to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package.

[0181] Wherein, in an embodiment of the present application, by sending upgrade package information to a peer device, the peer device can generate a device upgrade task according to the upgrade package information, and according to each upgrade subtask after splitting the device upgrade task by the peer device, the simultaneous sending of each sub-upgrade package improves the sending efficiency of the total upgrade package corresponding to the upgrade package information, and further improves the upgrade efficiency of the peer device.

[0182] In addition, the present application further provides an electronic device, as Figure 8 shown, which shows a schematic structural diagram of the electronic device involved in the present application. Specifically:

[0183] The electronic device may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input unit 404, and other components. Those skilled in the art can understand that Figure 8 the structural diagram of the electronic device shown in does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Among them:

[0184] The processor 401 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 402, and by invoking the data stored in the memory 402, it executes various functions of the electronic device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor. Among them, the application processor mainly processes the operating system, object interfaces, application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either.

[0185] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area can store the data created according to the use of the electronic device. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0186] The electronic device further includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0187] The electronic device may further include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to object settings and function controls.

[0188] Although not shown, the electronic device may further include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 401 in the electronic device will, according to the following instructions, load the executable files corresponding to the processes of one or more application programs into the memory 402, and the processor 401 will run the application programs stored in the memory 402, so as to implement the steps in any of the device upgrade methods provided by this application.

[0189] In an embodiment of the present application, a device upgrade task is generated based on the upgrade package information sent by the peer device. According to the number of transmission links supported by the current device, the device upgrade task is split into several upgrade subtasks. For each transmission link, a corresponding sub-upgrade package is obtained from the peer device according to the upgrade subtask corresponding to the transmission link. The sub-upgrade packages of each transmission link are combined to obtain the total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package. Among them, in the embodiment of the present application, by splitting the upgrade task into multiple sub-upgrade tasks and executing the multiple sub-upgrade tasks simultaneously, the acquisition of upgrade package data is accelerated, and the efficiency of device upgrade is accelerated. Among them, by splitting the upgrade task according to the number of transmission links supported by the device, each transmission link can complete a sub-upgrade task, and at the same time, the transmission of each sub-upgrade package data accelerates the acquisition efficiency of the upgrade package data, improves the efficiency of device upgrade, and improves the user experience.

[0190] Those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned various methods can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0191] Therefore, the present application provides a computer-readable storage medium on which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any of the device upgrade methods provided by the present application.

[0192] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc.

[0193] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the device upgrade methods provided by the present application, the beneficial effects that can be achieved by any of the device upgrade methods provided by the present application can be realized. For details, see the previous embodiments and will not be repeated here.

[0194] The above provides a detailed introduction to a device upgrade method, system, device, and computer-readable storage medium provided by the present application. Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A device upgrade method, characterized in that, Applied to the current device, including: Generating a device upgrade task according to the upgrade package information sent by the peer device; Splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device; For each transmission link, obtaining a corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link; Combining the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information; Upgrading the current device according to the total upgrade package; The splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device includes: Splitting the device upgrade task into several sub-device upgrade tasks; Determining several task groups according to the number of transmission links supported by the current device; Evenly distributing the several sub-device upgrade tasks to the several task groups; For each task group, obtaining the upgrade subtask corresponding to the task group according to the several sub-device upgrade tasks corresponding to the task group.

2. The method according to claim 1, wherein The upgrade package information includes first data verification information. The upgrading the current device according to the total upgrade package includes: Generating second data verification information according to the total upgrade package; Verifying the data of the total upgrade package according to the first data verification information and the second data verification information; When the data verification of the total upgrade package passes, upgrading the current device according to the total upgrade package.

3. The method according to claim 1, wherein The combining the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information includes: For the sub-upgrade packages of each transmission link, combining each sub-data packet in each sub-upgrade package according to the serial number to obtain the total upgrade package corresponding to the upgrade package information.

4. A device upgrade method, characterized in that, Applied to the current device, including: Sending upgrade package information to the peer device, the peer device generating a device upgrade task according to the upgrade package information, and the peer device splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device; Determining the sub-upgrade package corresponding to each upgrade subtask, and sending the sub-upgrade package to the peer device through the transmission link. The peer device combines the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package; Wherein, the peer device splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device includes: The peer device splitting the device upgrade task into several sub-device upgrade tasks; The peer device determining several task groups according to the number of transmission links supported; The peer device evenly distributing the several sub-device upgrade tasks to the several task groups; For each task group, the peer device obtaining the upgrade subtask corresponding to the task group according to the several sub-device upgrade tasks corresponding to the task group.

5. The method according to claim 4, wherein Before determining the sub-upgrade package corresponding to each upgrade subtask, the method further includes: Obtain the first transmission data volume threshold of the transmission link; Determine the data length of a single transmission according to the first transmission data volume threshold and the second transmission data volume threshold of the current device; Split the total upgrade package corresponding to the upgrade package information into several sub-packets according to the data length; The determining the sub-upgrade package corresponding to each upgrade subtask includes: For each upgrade subtask, determine several sub-packets corresponding to the upgrade subtask, and obtain the sub-upgrade package corresponding to the upgrade subtask according to the several sub-packets.

6. The method according to claim 5, wherein The for each upgrade subtask, determining several sub-packets corresponding to the upgrade subtask includes: Number the several sub-packets after splitting the total upgrade package respectively to obtain the serial number corresponding to each sub-packet; For each upgrade subtask, determine the serial numbers of the sub-packets to be transmitted corresponding to the upgrade subtask, and determine several sub-packets corresponding to the upgrade subtask according to the serial numbers.

7. An equipment upgrade system, characterized in that, Includes the current device and the peer device, where The current device is used to generate a device upgrade task according to the upgrade package information sent by the peer device; split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device; for each transmission link, obtain the corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link; combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information; upgrade the current device according to the total upgrade package; The peer device is used to send upgrade package information to the current device, determine the sub-upgrade package corresponding to each upgrade subtask, and send the sub-upgrade package to the current device through the transmission link; Wherein, the splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device includes: Split the device upgrade task into several sub-device upgrade tasks; Determine several task groups according to the number of transmission links supported by the current device; Evenly distribute the several sub-device upgrade tasks to the several task groups; For each task group, obtain the upgrade subtask corresponding to the task group according to the several sub-device upgrade tasks corresponding to the task group.

8. An equipment upgrading device, characterized in that, Applied to the current device, it includes: A generation module, used to generate a device upgrade task according to the upgrade package information sent by the peer device; A splitting module, used to split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device; An acquisition module, used to, for each transmission link, obtain the corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link; A combination module, used to combine the sub-upgrade packages of each transmission link to obtain the total upgrade package corresponding to the upgrade package information; An upgrade module, used to upgrade the current device according to the total upgrade package; The splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device includes: Split the device upgrade task into several sub-device upgrade tasks; Determine a number of task groups according to the number of transmission links supported by the current device; Evenly distribute the several sub-device upgrade tasks to the several task groups; For each task group, obtain the corresponding upgrade subtasks of the task group according to the several sub-device upgrade tasks corresponding to the task group.

9. An equipment upgrade device, characterized in that, Include: A first sending module, configured to send upgrade package information to a peer device, where the peer device generates a device upgrade task according to the upgrade package information, and the peer device splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device; A second sending module, configured to determine a sub-upgrade package corresponding to each upgrade subtask, and send the sub-upgrade package to the peer device through the transmission link, where the peer device combines the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information, and upgrades the peer device according to the total upgrade package; Wherein, the peer device splitting the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the peer device includes: The peer device splits the device upgrade task into several sub-device upgrade tasks; The peer device determines a number of task groups according to the number of transmission links supported; The peer device evenly distributes the several sub-device upgrade tasks to the several task groups; For each task group, the peer device obtains the corresponding upgrade subtasks of the task group according to the several sub-device upgrade tasks corresponding to the task group.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the device upgrade method according to any one of claims 1-3 or the steps of the device upgrade method according to any one of claims 4-6 are implemented.

Citation Information

Patent Citations

  • Multimedia data transmission system suitable for field cooperation

    CN107483471A

  • A firmware upgrading method and device f based on a Bluetooth BLE device end

    CN109542485A