WO2024060874A1 - 设备升级方法、系统、装置及计算机可读存储介质 - Google Patents

设备升级方法、系统、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2024060874A1
WO2024060874A1 PCT/CN2023/112576 CN2023112576W WO2024060874A1 WO 2024060874 A1 WO2024060874 A1 WO 2024060874A1 CN 2023112576 W CN2023112576 W CN 2023112576W WO 2024060874 A1 WO2024060874 A1 WO 2024060874A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
sub
upgrade package
task
package
Prior art date
Application number
PCT/CN2023/112576
Other languages
English (en)
French (fr)
Inventor
刘庆生
Original Assignee
深圳Tcl新技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2024060874A1 publication Critical patent/WO2024060874A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the embodiments of the present application relate to the field of computer technology, and specifically relate to an equipment upgrade method, system, device and computer-readable storage medium.
  • the upgrade package data of the device relies on obtaining it from the cloud or from the terminal APP.
  • the upgrade package data is downloaded through OTA (Over-the-Air Technology), and the device is upgraded based on the upgrade package data.
  • Embodiments of the present application provide an equipment upgrade method, system, device, and computer-readable storage medium, which can improve equipment upgrade efficiency and improve user experience.
  • embodiments of the present application provide a device upgrade method, which is applied to current devices, including:
  • inventions of the present application also provide an equipment upgrade device, including:
  • the generation module is used to generate device upgrade tasks based on the upgrade package information sent by the peer device;
  • 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
  • An acquisition module configured to obtain, for each transmission link, the corresponding sub-upgrade package from the peer device according to the upgrade sub-task corresponding to the transmission link;
  • a combination module used to combine the sub-upgrade packages of each of the transmission links to obtain a total upgrade package corresponding to the upgrade package information
  • An upgrade module configured to upgrade the current device according to the total upgrade package.
  • the splitting module includes:
  • a splitting unit used to split the device upgrade task into several sub-device upgrade tasks
  • a determining unit configured to determine a number of task groups according to the number of transmission links supported by the current device
  • An allocation unit configured to evenly distribute the several sub-device upgrade tasks to the several task groups
  • the acquisition unit is used to obtain, for each task group, the upgrade subtask corresponding to the task group according to the plurality of sub-device upgrade tasks corresponding to the task group.
  • the upgrade package information includes first data verification information
  • the upgrade module includes:
  • a generating unit configured to generate second data verification information according to the total upgrade package
  • a verification unit configured to verify the total upgrade package data according to the first data verification information and the second data verification information
  • An upgrade unit configured to upgrade the current device according to the total upgrade package after the data verification of the total upgrade package passes.
  • the combination module includes:
  • a combining unit configured to combine each sub-data packet in each sub-upgrade package according to the sequence number for the sub-upgrade package of each transmission link, to obtain a total upgrade package corresponding to the upgrade package information.
  • embodiments of the present application provide a device upgrade method, which is applied to current devices, including:
  • the opposite end device Send upgrade package information to the opposite end device, the opposite end device generates a device upgrade task according to the upgrade package information, and the opposite end device generates the device upgrade task according to the number of transmission links supported by the opposite end device.
  • embodiments of the present application also provide an equipment upgrade device, including:
  • the first sending module is configured to send upgrade package information to the opposite end device.
  • the opposite end device generates a device upgrade task based on the upgrade package information.
  • the opposite end device generates a device upgrade task based on the transmission link supported by the opposite end device.
  • the quantity splits the equipment upgrade task into several upgrade subtasks;
  • the second sending module is used to determine the sub-upgrade package corresponding to each upgrade sub-task, and send the sub-upgrade package to the opposite end device through the transmission link, and the opposite end device transmits each of the transmission
  • the sub-upgrade packages of the link are combined to obtain a total upgrade package corresponding to the upgrade package information, and the peer device is upgraded according to the total upgrade package.
  • the device further includes a dividing module, and the dividing module includes:
  • a threshold acquisition unit configured to acquire the first transmission data amount threshold of the transmission link
  • a length determination unit configured to 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
  • a dividing unit configured to split the total upgrade package corresponding to the upgrade package information into several sub-data packets according to the data length; the second sending module includes:
  • a data packet determination unit is configured to determine a number of sub-data packets corresponding to the upgrade sub-task for each upgrade sub-task, and obtain a sub-upgrade packet corresponding to the upgrade sub-task based on the several sub-data packets.
  • the data packet determination unit includes:
  • the numbering subunit is used to number several sub-data packets after the total upgrade package is split, and obtain the sequence number corresponding to each sub-data packet;
  • the data packet determination subunit is configured to determine, for each upgrade subtask, the sequence number of the subdata packet to be transmitted corresponding to the upgrade subtask, and determine several subdata packets corresponding to the upgrade subtask based on the sequence number.
  • embodiments of the present application also provide a device upgrade system, including a current device and a peer device, wherein the current device is used to generate a device upgrade task according to the upgrade package information sent by the peer device; according to the current device
  • the number of transmission links supported by the device divides the device upgrade task into several upgrade subtasks; for each transmission link, obtain the corresponding upgrade subtask from the peer device according to the upgrade subtask corresponding to the transmission link.
  • sub-upgrade packages combine the sub-upgrade packages of each of the transmission links to obtain a total upgrade package corresponding to the upgrade package information; upgrade the current device according to the total upgrade package;
  • the opposite end device is configured 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.
  • an embodiment of the present application further provides an electronic device, the electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned device upgrade method when executing the computer program. Steps in the method.
  • embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the steps in the above device upgrade method are implemented.
  • the embodiment of this application generates a device upgrade task 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 divided into several upgrade subtasks. For each transmission link, according to The upgrade subtask corresponding to the transmission link obtains the corresponding sub-upgrade package from the peer device, combines the sub-upgrade packages of each transmission link, and obtains the total upgrade package corresponding to the upgrade package information. Based on the total upgrade package, the current The equipment is upgraded. Among them, the embodiment of the present application splits the upgrade task into multiple sub-upgrade tasks and executes multiple sub-upgrade tasks simultaneously to speed up the acquisition of upgrade package data and speed up the efficiency of equipment upgrade.
  • the upgrade task is split according to the number of transmission links supported by the device, so that each transmission link can complete a sub-upgrade task, and at the same time transmit the data of each sub-upgrade package, speeding up the efficiency of obtaining upgrade package data. , improve the efficiency of equipment upgrades and improve user experience.
  • Figure 1 is a schematic diagram of a scenario of a device upgrade method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an equipment upgrade method provided by an embodiment of the present application.
  • FIG. 3 is another schematic flow chart of the equipment upgrade method provided by the embodiment of the present application.
  • Figure 4 is a frame structure diagram of the equipment upgrade system provided by the embodiment of the present application.
  • Figure 5 is a schematic flowchart of a method for upgrading a Bluetooth speaker through a mobile phone provided by an embodiment of the present application
  • Figure 6 is a schematic structural diagram of an equipment upgrade device provided by an embodiment of the present application.
  • FIG. 7 is another structural schematic diagram of the equipment upgrade device provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Embodiments of the present application provide an equipment upgrade method, system, device and computer-readable storage medium.
  • a device upgrade device suitable for electronic devices.
  • the electronic devices include terminal devices or servers.
  • the terminal devices may be mobile phones, Bluetooth speakers, vehicle-mounted terminals, tablets, computers, etc.
  • the servers may be An independent physical server can also be a server cluster or distributed system composed of multiple physical servers. It can also provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, Cloud servers for domain name services, security services, content delivery networks (CDN, Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms.
  • the servers can be connected directly or indirectly through wired or wireless communication methods.
  • the device upgrade method can be executed by the terminal device alone, or by the server alone, or by the terminal device and the server together.
  • the terminal device executing the device upgrade method is as follows:
  • the terminal device 10 receives the upgrade package information sent by the terminal device 11, generates a device upgrade task based on the upgrade package information, and splits the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device. pass transmission link, obtain the corresponding sub-upgrade package from the opposite terminal device 11 according to the upgrade sub-task corresponding to the transmission link, combine the sub-upgrade packages of each transmission link, and obtain the total upgrade package corresponding to the upgrade package information, The terminal device 10 is upgraded according to the total upgrade package.
  • the upgrade package information is sent to the terminal device 10 through the application program of the terminal device 11.
  • the upgrade package information is generated based on the total upgrade package, which is generated by the terminal device.
  • apps are obtained from the cloud based on OTA (Over-the-Air Technology).
  • the terminal device 11 can be directly replaced by a server or the cloud.
  • the cloud or the server directly generates upgrade package information based on the total upgrade package, and sends the upgrade package information to the terminal device 10 .
  • the embodiment of the present application generates a device upgrade task based on the upgrade package information sent by the peer device, and 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 device according to the upgrade sub-task corresponding to the transmission link, combine the sub-upgrade packages of each transmission link, and obtain the total upgrade package corresponding to the upgrade package information. According to the total upgrade package Perform upgrades on current equipment.
  • the embodiment of the present application splits the upgrade task into multiple sub-upgrade tasks and executes multiple sub-upgrade tasks simultaneously to speed up the acquisition of upgrade package data and speed up the efficiency of equipment upgrade.
  • the upgrade task is split according to the number of transmission links supported by the device, so that each transmission link can complete a sub-upgrade task, and at the same time transmit the data of each sub-upgrade package, speeding up the efficiency of obtaining upgrade package data. , improve the efficiency of equipment upgrades and improve user experience.
  • Figure 2 is a schematic flowchart of a device upgrade method provided by an embodiment of the present application.
  • the device upgrade method is applied to the current device, and the specific process of the device upgrade method can be as follows:
  • the peer device is a device that sends upgrade package information to the current device.
  • the peer device has the ability to receive the upgrade package and generate the upgrade package information based on the upgrade package. It also has the ability to transfer the upgrade package to the current device. The ability to send information to the current device to assist the current device in upgrading tasks.
  • the peer device may include a mobile phone, a computer, and other devices, and an application program (such as an APP) may be used to send upgrade information to the current device.
  • 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.
  • the current device is a device to be upgraded, for example, a wearable device such as a smart watch or a vehicle-mounted terminal, a television, a refrigerator, an air conditioner, and other devices.
  • a wearable device such as a smart watch or a vehicle-mounted terminal
  • a television a refrigerator, an air conditioner, and other devices.
  • the device upgrade task is a comprehensive set of instruction tasks, including obtaining the upgrade package data and upgrading the device according to the data of the upgrade package, wherein the device upgrade task is generated through the upgrade package information, and according to The execution of the equipment upgrade task realizes the equipment upgrade.
  • the transmission link is formed after the transmission unit of the device establishes a connection with the peer device, wherein the upgrade package data can be transmitted through the transmission link.
  • the number of transmission units determines the number of transmission links supported by the device.
  • the transmission unit includes a low-power Bluetooth unit (BLE, Bluetooth Low Energy).
  • the upgrade sub-task is a component of the device upgrade task, and multiple upgrade sub-tasks are combined to form a device upgrade task.
  • the device upgrade task is split into multiple components based on the number of transmission links.
  • An upgrade subtask allows multiple upgrade subtasks to be executed at the same time to improve equipment upgrade efficiency.
  • the device upgrade task 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, and the multiple sub-device upgrade tasks are divided through the division of labor. Execute to implement the execution of the device upgrade task. Therefore, in the embodiment 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 "split the device upgrade task into several upgrade subtasks according to the number of transmission links supported by the current device" includes:
  • the upgrade sub-tasks corresponding to the task group are obtained according to several sub-device upgrade tasks corresponding to the task group.
  • the sub-device upgrade task is a component of the device upgrade task, and the sub-device upgrade task can be split according to the content of the device upgrade task. For example, the whole is split into multiple parts, and the sub-device upgrade task is divided into multiple parts.
  • the division of labor and execution of local tasks enables the execution of equipment upgrade tasks.
  • the split can be split according to the difficulty, workload and breadth of the upgrade task, regardless of the number of transmission links.
  • the split sub-device upgrade tasks can be evenly distributed to each task group, and the sub-device upgrade tasks corresponding to each task group are the upgrade sub-tasks corresponding to the transmission link.
  • each transmission link can execute one upgrade subtask.
  • 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.
  • the acquisition of the total upgrade package is achieved by combining the sub-upgrade packages obtained after the execution of each upgrade sub-task.
  • the sub-data of the upgrade package is obtained through simultaneous execution of multiple transmission links. Compared with a single transmission chain
  • the upgrade package data is transmitted through the Internet.
  • the embodiments of the present application improve the transmission efficiency of the upgrade package, thereby improving the efficiency of the current device in obtaining the upgrade package.
  • each sub-upgrade package can contain multiple sub-data packages, and each sub-data package can be distinguished according to the sequence number. Therefore, in the embodiment of the present application, the various sub-data packages can be combined as needed. , obtain the total upgrade package, that is, optionally, in some embodiments of the present application, the step "combine the sub-upgrade packages of each of the transmission links to obtain the total upgrade package corresponding to the upgrade package information", include:
  • each sub-data package in each sub-upgrade package is combined according to the sequence number to obtain a total upgrade package corresponding to the upgrade package information.
  • the total upgrade package can be quickly synthesized and the combination efficiency of the total upgrade package can be improved.
  • the total upgrade package is an upgrade package corresponding to the upgrade package information.
  • the current device can be upgraded using the total upgrade package.
  • the upgrade package information includes first data verification information
  • the step "upgrade the current device according to the total upgrade package" includes:
  • the current device is upgraded according to the total upgrade package.
  • the first data verification information is included in the upgrade package information, is obtained by the peer device based on the total upgrade package data, and is carried in the upgrade package information and sent to the current device.
  • the second data verification information is obtained by the current device according to the total upgrade package after combining it to obtain the total upgrade package.
  • the first data verification information is obtained by the peer device according to the total upgrade package
  • the second data verification information is obtained from the total upgrade package received by the current device. Therefore, 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 is consistent.
  • the data verification information includes the crc32 value.
  • the first data verification information is obtained by the peer device according to the total upgrade package.
  • the second data verification information is obtained by the current device according to the total upgrade package. When the two When the crc32 values are consistent, it can be considered that the total upgrade package received by the current device is consistent with the total upgrade package sent by the peer device.
  • the embodiment of the present application generates a device upgrade task based on the upgrade package information sent by the peer device, and 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 device according to the upgrade sub-task corresponding to the transmission link, combine the sub-upgrade packages of each transmission link, and obtain the total upgrade package corresponding to the upgrade package information. According to the total upgrade package Perform upgrades on current equipment.
  • the embodiment of the present application splits the upgrade task into multiple sub-upgrade tasks and executes multiple sub-upgrade tasks simultaneously to speed up the acquisition of upgrade package data and speed up the efficiency of equipment upgrade.
  • the upgrade task is split according to the number of transmission links supported by the device, so that each transmission link can complete a sub-upgrade task, and at the same time transmit the data of each sub-upgrade package, speeding up the efficiency of obtaining upgrade package data. , improve the efficiency of equipment upgrades and improve user experience.
  • FIG 3 is another schematic diagram of the process of the device upgrade method provided in the embodiment of the present application.
  • the device upgrade method is applied to the current device, wherein the specific process of the device upgrade method can be as follows:
  • the peer device send upgrade package information to the peer device.
  • the peer device generates a device upgrade task based on the upgrade package information.
  • the peer device updates the device according to the number of transmission links supported by the peer device.
  • the upgrade task is divided into several upgrade subtasks.
  • the current device includes a device that sends upgrade package information
  • the peer device is a device that receives the upgrade package, that is, the peer device is a device to be upgraded, and the upgrade is sent to the peer device through the current device.
  • Package information allows the peer device to upgrade the device based on the upgrade package information after receiving the upgrade package information.
  • the current device may include mobile phones, computers and other devices
  • the peer devices may include smart wearable devices or vehicle-mounted terminals, televisions, air conditioners, refrigerators and other devices.
  • the peer device after receiving the upgrade package information, can generate a device upgrade task based on the upgrade package information, and perform an upgrade operation of the device based on the device upgrade task.
  • the transmission link is formed after the transmission unit of the device establishes a connection with the peer device, wherein the upgrade package data can be transmitted through the transmission link.
  • the number of transmission units determines the number of transmission links supported by the device.
  • the device can support multiple transmission links.
  • the upgrade subtask is a component of the device upgrade task, and multiple upgrade subtasks are combined to form a device upgrade task.
  • the peer device performs the device upgrade task according to the transmission chain supported by the peer device.
  • the number of channels is divided into multiple upgrade subtasks, so that the peer device can divide the work according to multiple upgrade subtasks to realize the overall upgrade task of the device.
  • the upgrade efficiency of the peer device can be improved. .
  • each transmission link can execute one upgrade subtask.
  • the device upgrade task mainly includes obtaining the upgrade package, for example, obtaining the upgrade package from the peer device. to the upgrade package of the current device, and 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 for the device upgrade task into multiple sub-upgrade packages, through multiple upgrade sub-tasks Execute separately and simultaneously to achieve the acquisition of each pair of upgrade packages, thereby improving the efficiency of obtaining upgrade packages.
  • the opposite device can obtain a total upgrade package by combining the sub-upgrade packages. After combining, the total upgrade package is obtained, and the opposite device can be upgraded using the total upgrade package.
  • the method further includes: obtaining the first transmission data volume threshold of the transmission link;
  • the first transmission data volume threshold is the upper limit of the data volume that the transmission link can transmit
  • the second transmission data volume threshold is the upper limit of the data volume that the current device can transmit. From the two upper limits, Select the smallest upper limit value as the data length of a single transmission, and split the total upgrade package into multiple sub-data packages based on the data length.
  • multiple sub-data packages can be used for data transmission within the transmission length supported by the device, thereby ensuring the transmission quality.
  • the subupgrade package corresponding to the upgrade subtask can be obtained according to the multiple subdata packages corresponding to the upgrade subtask, that is, optionally, in some embodiments of the present application, the step "Determine "Sub-upgrade package corresponding to each upgrade sub-task", including:
  • sub-data packages corresponding to the upgrade sub-task are determined, and a sub-upgrade package corresponding to the upgrade sub-task is obtained based on the several sub-data packages.
  • the multiple sub-data packets can be used as sub-upgrade packages of the upgrade subtask, for example, the multiple sub-data packets are packaged to obtain a sub-upgrade package, or the multiple sub-data packets are combined to obtain a sub-upgrade package.
  • each sub-data packet when the total upgrade package is split into multiple sub-data packets, each sub-data packet can be numbered, so that after receiving each sub-data packet, the opposite end device can separate each sub-data packet according to the number.
  • the sub-data packages are combined to obtain the total upgrade package.
  • multiple sub-data packages corresponding to each upgrade sub-task can be determined according to the number, that is, optionally, in some embodiments of the present application, step "For each upgrade Subtask, determine several subdata packages corresponding to the upgrade subtask", including:
  • For each upgrade subtask determine the sequence number of the subdata packet to be transmitted corresponding to the upgrade subtask, and determine several subdata packets corresponding to the upgrade subtask based on the sequence number.
  • the embodiment of the present application sends the upgrade package information to the peer device, so that the peer device can generate a device upgrade task based on the upgrade package information, and split the device upgrade task into each upgrade sub-task based on the peer device.
  • the simultaneous sending of each sub-upgrade package improves the efficiency of sending the total upgrade package corresponding to the upgrade package information, thereby improving the efficiency of upgrading the peer device.
  • FIG 4 is a frame structure diagram of the equipment upgrade system provided by the embodiment of the present application.
  • the framework structure of the equipment upgrade system includes:
  • the current device 121 is configured to generate a device upgrade task based on 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 sub-task 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;
  • the opposite device 122 is configured 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.
  • the peer device sends upgrade package information to the current device, so that the current device can receive upgrade-related prompts.
  • the current device After the current device receives the upgrade package information, it can generate a device upgrade task based on the upgrade package information.
  • the device upgrade task is divided into multiple upgrade subtasks based on the number of supported transmission links, multiple upgrade subtasks can be executed simultaneously to speed up the execution of the device upgrade task and improve device upgrade efficiency.
  • the total upgrade package can be obtained through a combination of each sub-upgrade package, and then the current device can be upgraded using the total upgrade package.
  • the peer device user receives upgrade package data from the cloud or server, generates upgrade package information based on the upgrade package data, and sends the upgrade package information to the current device.
  • Figure 5 is a schematic flowchart of a method for upgrading a Bluetooth speaker through a mobile phone provided by an embodiment of the present application.
  • the specific process of the method for upgrading a Bluetooth speaker through a mobile phone can be as follows:
  • the mobile application downloads the firmware upgrade package from the cloud based on the device identification of the Bluetooth speaker;
  • the application sends an upgrade negotiation command to the master control of the Bluetooth speaker, carrying parameters such as the package name and length of the firmware upgrade package, the crc32 value calculated from the upgrade package file, and the maximum transmission load of the mobile phone;
  • step 204 The Bluetooth speaker actively self-checks whether the upgrade is allowed. If so, perform step 205. Otherwise, the process ends;
  • the Bluetooth speaker splits the upgrade package into multiple sub-data packets according to the length of the obtained upgrade package, the maximum transmission load of the mobile phone and other parameters. Among them, according to the maximum transmission load of each low-power Bluetooth module and the maximum transmission load of the mobile phone, The minimum value of sets the length of each sub-packet;
  • 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;
  • the Bluetooth speaker groups multiple sub-device upgrade tasks according to the serial number of each sub-device upgrade task according to the number of low-power Bluetooth modules it supports. Among them, the number of sub-device upgrade tasks corresponding to each group is basically the same, and each low-power
  • the power Bluetooth module is responsible for a set of upgrade subtasks, and the Bluetooth speaker creates a cache for each low-power Bluetooth module;
  • each low-power Bluetooth module After receiving the sub-upgrade package, each low-power Bluetooth module passes the sub-upgrade package to the main control of the Bluetooth speaker, and puts the sub-upgrade package into the corresponding cache through the main control, and passes the sub-upgrade package through the main control.
  • the main control records the task progress of each low-power Bluetooth module;
  • the main control of the Bluetooth speaker combines the sub-data packets according to the serial numbers of the sub-data packets to obtain the total upgrade package;
  • the main control of the Bluetooth speaker calculates the crc32 value of the data of the total upgrade package
  • step 214 Compare with the crc32 value sent by the application to determine the integrity of the total upgrade package. If it is complete, perform step 214. Otherwise, stop the upgrade;
  • the master control of the Bluetooth speaker sends an upgrade success command to the mobile phone application, and displays a successful upgrade logo in the application interface;
  • the mobile application reports the successful upgrade indicator to the cloud.
  • the mobile phone application when there is an upgrade update for the Bluetooth speaker, by sending the firmware upgrade package to the mobile phone application, the mobile phone application can send the firmware upgrade package to the Bluetooth device and assist the Bluetooth speaker to complete the device upgrade task.
  • the process of transmitting the firmware upgrade package from the cloud to the Bluetooth speaker can be understood as obtaining the upgrade package data of the device through over-the-air download technology.
  • the upgrade task is divided into multiple subtasks, and multiple sub-tasks supported by the Bluetooth speaker are used.
  • the low-power Bluetooth module performs each sub-task separately, which can improve the execution efficiency of device upgrade tasks, speed up the efficiency of firmware upgrade package data transmission to Bluetooth speakers, and facilitate the improvement of Bluetooth speaker upgrade efficiency.
  • the present application also provides an equipment upgrade device based on the above equipment upgrade method.
  • the meaning of the third target word is the same as in the above device upgrade method.
  • Figure 6 is a schematic structural diagram of an equipment upgrade device provided by an embodiment of the present application.
  • the equipment upgrade device may include:
  • the generation module 301 is used to generate a device upgrade task based on the upgrade package information sent by the peer device;
  • 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
  • the acquisition module 303 is configured to obtain, for each transmission link, the corresponding sub-upgrade package from the peer device according to the upgrade sub-task corresponding to the transmission link;
  • the combination module 304 is used to combine the sub-upgrade packages of each of the transmission links to obtain a total upgrade package corresponding to the upgrade package information;
  • the upgrade module 305 is used to upgrade the current device according to the total upgrade package.
  • the splitting module 302 includes:
  • a splitting unit used to split the device upgrade task into several sub-device upgrade tasks
  • a determining unit configured to determine several task groups according to the number of transmission links supported by the current device
  • An allocation unit configured to evenly distribute the several sub-device upgrade tasks to the several task groups
  • the acquisition unit is configured to, for each task group, obtain the upgrade sub-tasks corresponding to the task group according to several sub-device upgrade tasks corresponding to the task group.
  • the upgrade package information includes first data verification information
  • the upgrade module 305 includes: a generating unit configured to generate second data verification information according to the total upgrade package;
  • a verification unit configured to verify the total upgrade package data according to the first data verification information and the second data verification information
  • An upgrade unit configured to upgrade the current device according to the total upgrade package after the data verification of the total upgrade package passes.
  • the combination module 304 includes:
  • a combining unit configured to combine each sub-data packet in each sub-upgrade package according to the sequence number for the sub-upgrade package of each transmission link, to obtain a total upgrade package corresponding to the upgrade package information.
  • the generation module 301 generates a device upgrade task according to the upgrade package information sent by the peer device, and then the splitting module 302 splits the device upgrade task according to the number of transmission links supported by the current device. For several upgrade subtasks, then, for each transmission link, the acquisition module 303 obtains the corresponding sub-upgrade package from the peer device according to the upgrade subtask corresponding to the transmission link, and then, the combination module 304. Combine 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.
  • the embodiment of the present application generates a device upgrade task based on the upgrade package information sent by the peer device, and 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 device according to the upgrade sub-task corresponding to the transmission link, and convert the sub-upgrade package of each transmission link The combination is performed to obtain a total upgrade package corresponding to the upgrade package information, and the current device is upgraded according to the total upgrade package.
  • the embodiment of the present application splits the upgrade task into multiple sub-upgrade tasks and executes multiple sub-upgrade tasks simultaneously to speed up the acquisition of upgrade package data and speed up the efficiency of equipment upgrade.
  • the upgrade task is split according to the number of transmission links supported by the device, so that each transmission link can complete a sub-upgrade task, and at the same time transmit the data of each sub-upgrade package, speeding up the efficiency of obtaining upgrade package data. , improve the efficiency of equipment upgrades and improve user experience.
  • FIG. 7 is another schematic structural diagram of an equipment upgrade device provided by an embodiment of the present application.
  • the equipment upgrade device may include:
  • the first sending module 311 is configured to send upgrade package information to the opposite end device.
  • the opposite end device generates a device upgrade task based on the upgrade package information.
  • the opposite end device generates a device upgrade task based on the transmission link supported by the opposite end device. Split the equipment upgrade task into several upgrade sub-tasks;
  • the second sending module 312 is used to determine the sub-upgrade package corresponding to each upgrade sub-task, and send the sub-upgrade package to the opposite end device through the transmission link, and the opposite end device sends each of the The sub-upgrade packages of the transmission link are combined to obtain a total upgrade package corresponding to the upgrade package information, and the peer device is upgraded according to the total upgrade package.
  • the device further includes a division module, and the division module includes:
  • a threshold acquisition unit configured to acquire the first transmission data amount threshold of the transmission link
  • a length determination unit configured to 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
  • a dividing unit configured to split the total upgrade package corresponding to the upgrade package information into several sub-data packets according to the data length; the second sending module 312 includes:
  • a data packet determination unit is configured to determine a number of sub-data packets corresponding to the upgrade sub-task for each upgrade sub-task, and obtain a sub-upgrade packet corresponding to the upgrade sub-task based on the several sub-data packets.
  • the data packet determination unit includes:
  • the numbering subunit is used to number several sub-data packets after the total upgrade package is split, and obtain the sequence number corresponding to each sub-data packet;
  • the data packet determination subunit is configured to determine, for each upgrade subtask, the sequence number of the subdata packet to be transmitted corresponding to the upgrade subtask, and determine several subdata packets corresponding to the upgrade subtask based on the sequence number.
  • the first sending module 311 sends upgrade package information to the opposite end device, so that the opposite end device generates a device upgrade task based on the upgrade package information, and based on the transmission link supported by the opposite end device.
  • the device upgrade task is divided into several upgrade sub-tasks.
  • the second sending module 312 determines the sub-upgrade package corresponding to each upgrade sub-task, and sends the sub-upgrade package through the transmission link to
  • the opposite end device the opposite end device combines the sub-upgrade packages of each of the transmission links to obtain a total upgrade package corresponding to the upgrade package information, and updates the opposite end device according to the total upgrade package Make an upgrade.
  • the embodiment of the present application sends the upgrade package information to the peer device, so that the peer device can generate a device upgrade task based on the upgrade package information, and split the device upgrade task into each upgrade sub-task based on the peer device.
  • the simultaneous sending of each sub-upgrade package improves the efficiency of sending the total upgrade package corresponding to the upgrade package information, thereby improving the efficiency of upgrading the peer device.
  • this application also provides an electronic device, as shown in Figure 8, which shows a schematic structural diagram of the electronic device involved in this application. Specifically:
  • the electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404.
  • a processor 401 with one or more processing cores
  • a memory 402 with one or more computer-readable storage media
  • a power supply 403 with one or more computer-readable storage media
  • an input unit 404 may be included in the electronic device.
  • FIG8 does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
  • the processor 401 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 402, and calling the software programs and/or modules stored in the memory 402. of data, perform various functions of electronic devices and process data.
  • the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, object interfaces, application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 401.
  • 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 storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store data based on Data created by the use of electronic devices, etc.
  • 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 device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402 .
  • the electronic device also includes a power supply 403 that supplies power to various components.
  • the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • the power supply 403 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
  • the electronic device may also include an input unit 404 that may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to object settings and function control.
  • the electronic device may also include a display unit and the like, which will not be described again here.
  • the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the executable files stored in The application program in the memory 402 is used to implement the steps in any device upgrade method provided by this application.
  • the embodiment of this application generates a device upgrade task 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 divided into several upgrade subtasks. For each transmission link, according to The upgrade subtask corresponding to the transmission link obtains the corresponding sub-upgrade package from the peer device, combines the sub-upgrade packages of each transmission link, and obtains the total upgrade package corresponding to the upgrade package information. Based on the total upgrade package, the current The equipment is upgraded. Among them, the embodiment of the present application splits the upgrade task into multiple sub-upgrade tasks and executes multiple sub-upgrade tasks simultaneously to speed up the acquisition of upgrade package data and speed up the efficiency of equipment upgrade.
  • the upgrade task is split according to the number of transmission links supported by the device, so that each transmission link can complete a sub-upgrade task, and at the same time transmit the data of each sub-upgrade package, speeding up the efficiency of obtaining upgrade package data. , improve the efficiency of equipment upgrades and improve user experience.
  • the present application provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program can be loaded by a processor to perform any of the device upgrade methods provided by the present application.
  • the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例公开了一种设备升级方法,该方法包括:根据对端设备发送的升级包信息生成设备升级任务;根据当前设备所支持的传输链路的数量将设备升级任务拆分为若干升级子任务;针对每个传输链路,根据传输链路对应的升级子任务从对端设备中获取对应的子升级包,通过多个子升级任务的同时执行,加快设备升级的效率。

Description

设备升级方法、系统、装置及计算机可读存储介质
本申请要求申请日为2022年9月20日、申请号为202211145136.2、申请名称为“设备升级方法、系统、装置及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,具体涉及一种设备升级方法、系统、装置及计算机可读存储介质。
背景技术
目前,设备的升级包数据依赖于从云端或者从终端的APP中获取,例如,通过空中下载技术(OTA,Over-the-Air Technology)下载升级包数据,根据该升级包数据进行设备的升级。
技术问题
但是,由于传输链路传输固件包的大小有限,使得终端设备接收到升级包的时间较长,进而造成设备升级的时间较长,不利于设备的升级,影响用户体验。
技术解决方案
本申请实施例提供一种设备升级方法、系统、装置及计算机可读存储介质,可以提升设备的升级效率,提升用户体验。
第一方面,本申请实施例提供了一种设备升级方法,应用于当前设备,包括:
根据对端设备发送的升级包信息生成设备升级任务;
根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;
将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;
根据所述总升级包对所述当前设备进行升级。
第二方面,本申请实施例还提供了一种设备升级装置,包括:
生成模块,用于根据对端设备发送的升级包信息生成设备升级任务;
拆分模块,用于根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
获取模块,用于针对每个传输链路,根据所述传输链路对应的升级子任务,从所述对端设备中获取对应的子升级包;
组合模块,用于将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;
升级模块,用于根据所述总升级包对所述当前设备进行升级。
其中,在本申请的一些实施例中,拆分模块包括:
拆分单元,用于将所述设备升级任务拆分为若干子设备升级任务;
确定单元,用于根据所述当前设备所支持的传输链路的数量确定若干任务组;
分配单元,用于将所述若干子设备升级任务平均分配给所述若干任务组;
获取单元,用于针对每个任务组,根据所述任务组所对应的若干子设备升级任务得到所述任务组对应的升级子任务。
其中,在本申请的一些实施例中,升级包信息包括第一数据验证信息,升级模块包括:
生成单元,用于根据所述总升级包生成第二数据验证信息;
校验单元,用于根据所述第一数据验证信息和所述第二数据验证信息对所述总升级包数据进行校验;
升级单元,用于当所述总升级包数据校验通过后,根据所述总升级包对所述当前设备进行升级。
其中,在本申请的一些实施例中,组合模块包括:
组合单元,用于针对各个所述传输链路的子升级包,将各个所述子升级包中的各个子数据包根据序号进行组合,得到所述升级包信息对应的总升级包。
第三方面,本申请实施例提供了一种设备升级方法,应用于当前设备,包括:
向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
第四方面,本申请实施例还提供了一种设备升级装置,包括:
第一发送模块,用于向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
第二发送模块,用于确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
其中,在本申请的一些实施例中,该装置还包括划分模块,划分模块包括:
阈值获取单元,用于获取所述传输链路的第一传输数据量阈值;
长度确定单元,用于根据所述第一传输数据量阈值以及所述当前设备的第二传输数据量阈值确定单次传输的数据长度;
划分单元,用于根据所述数据长度将所述升级包信息对应的总升级包拆分为若干子数据包;第二发送模块包括:
数据包确定单元,用于针对每个升级子任务,确定所述升级子任务对应的若干子数据包,并根据所述若干子数据包得到所述升级子任务对应的子升级包。
其中,在本申请的一些实施例中,数据包确定单元包括:
编号子单元,用于对所述总升级包拆分后的若干子数据包分别进行编号,得到每个子数据包对应的序号;
数据包确定子单元,用于针对每个升级子任务,确定所述升级子任务对应的待传输的子数据包的序号,并根据所述序号确定所述升级子任务对应的若干子数据包。
第五方面,本申请实施例还提供了一种设备升级系统,包括当前设备和对端设备,其中,当前设备,用于根据对端设备发送的升级包信息生成设备升级任务;根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;根据所述总升级包对所述当前设备进行升级;
对端设备,用于向所述当前设备发送升级包信息,并确定每个升级子任务对应的子升级包,以及通过所述传输链路将所述子升级包发送给所述当前设备。
第六方面,本申请实施例还提供了一种电子设备,电子设备包括存储器、处理器及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述的设备升级方 法中的步骤。
第七方面,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述的设备升级方法中的步骤。
有益效果
本申请实施例根据对端设备发送的升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量,将设备升级任务拆分为若干升级子任务,针对每个传输链路,根据该传输链路对应的升级子任务从对端设备中获取对应的子升级包,将各个传输链路的子升级包进行组合,得到升级包信息对应的总升级包,根据该总升级包对当前设备进行升级。其中,本申请实施例通过将升级任务拆分为多个子升级任务,通过多个子升级任务的同时执行,加快升级包数据的获取,加快设备升级的效率。其中,通过设备支持的传输链路的数量对升级任务的拆分,使得每个传输链路可以针对完成一个子升级任务,而同时对各个子升级包数据的传输,加快升级包数据的获取效率,提升设备升级的效率,提升用户体验。
附图说明
为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的设备升级方法的场景示意图;
图2是本申请实施例提供的设备升级方法的流程示意图;
图3是本申请实施例提供的设备升级方法的另一流程示意图;
图4是本申请实施例提供的设备升级系统的框架结构图;
图5是本申请实施例提供的通过手机对蓝牙音箱进行升级方法的流程示意图;
图6是本申请实施例提供的设备升级装置的结构示意图;
图7是本申请实施例提供的设备升级装置的另一结构示意图;
图8是本申请实施例提供的电子设备的结构示意图。
本发明的实施方式
下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本申请实施例提供一种设备升级方法、系统、装置及计算机可读存储介质。具体地,本申请实施例提供适用于电子设备的设备升级装置,其中,电子设备包括终端设备或者服务器,其中,终端设备可以为手机、蓝牙音箱、车载终端、平板、计算机等设备,服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(CDN,Content Delivery Network)、以及大数据和人工智能平台等基础云计算服务的云服务器,服务器可以通过有线或无线通信方式进行直接或间接地连接。其中,在本申请实施例中,设备升级方法可以单独由终端设备执行,或者单独由服务器执行,或者由终端设备和服务器共同执行,请参阅图1,以终端设备执行设备升级方法为例,其中,该设备升级方法的具体执行过程如下:
终端设备10接收终端设备11发送的升级包信息,并根据该升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量将设备升级任务拆分为若干升级子任务,针对每个传 输链路,根据该传输链路对应的升级子任务从对端终端设备11中获取对应的子升级包,将各个传输链路的子升级包进行组合,得到升级包信息对应的总升级包,根据该总升级包对终端设备10进行升级。
其中,在本申请实施例中,升级包信息通过终端设备11的应用程序发送给终端设备10,其中,在本申请实施例中,升级包信息根据总升级包生成,该总升级包由终端设备11的应用程序根据空中下载技术(OTA,Over-the-Air Technology)从云端获取。
其中,在本申请实施例中,终端设备11可以直接由服务器或者云端进行代替,例如,云端或服务器直接根据总升级包生成升级包信息,并将该升级包信息发送给终端设备10。
其中,本申请实施例根据对端设备发送的升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量,将设备升级任务拆分为若干升级子任务,针对每个传输链路,根据该传输链路对应的升级子任务从对端设备中获取对应的子升级包,将各个传输链路的子升级包进行组合,得到升级包信息对应的总升级包,根据该总升级包对当前设备进行升级。其中,本申请实施例通过将升级任务拆分为多个子升级任务,通过多个子升级任务的同时执行,加快升级包数据的获取,加快设备升级的效率。其中,通过设备支持的传输链路的数量对升级任务的拆分,使得每个传输链路可以针对完成一个子升级任务,而同时对各个子升级包数据的传输,加快升级包数据的获取效率,提升设备升级的效率,提升用户体验。
以下分别进行详细说明。需说明的是,以下实施例的描述顺序不作为对实施例优先顺序的限定。
请参阅图2,图2是本申请实施例提供的设备升级方法的流程示意图。该设备升级方法应用于当前设备,其中,该设备升级方法的具体流程可以如下:
101、根据对端设备发送的升级包信息生成设备升级任务。
其中,在本申请实施例中,对端设备是向当前设备发送升级包信息的设备,该对端设备具备接收升级包,以及根据该升级包生成升级包信息的能力,以及还具备能将升级信息发送给当前设备的能力,以助力当前设备进行升级任务。例如,在本申请实施例中,对端设备可以包括手机、计算机等设备,可以利用应用程序(如APP)将升级信息发送给当前设备。其中,在本申请实施例中,该对端设备从云端或者服务器获取到升级包,并将该升级包对应的升级包信息发送给对端设备。
其中,在本申请实施例中,当前设备为待升级的设备,例如,智能手表等穿戴设备或者车载终端、电视、冰箱、空调等设备。
其中,在本申请实施例中,设备升级任务是一套指令任务的综合,包括升级包数据的获取以及根据该升级包的数据对设备进行升级,其中,通过升级包信息生成设备升级任务,根据设备升级任务的执行实现设备的升级。
102、根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务。
其中,在本申请实施例中,传输链路由设备的传输单元与对端设备建立连接后形成,其中,通过传输链路可实现对升级包数据的传输。
其中,在本申请实施例中,传输单元的数量决定设备支持的传输链路的数量,当设备存在多个传输单元时,则设备可支持多条传输链路。其中,在本申请实施例中,传输单元包括低功耗蓝牙单元(BLE,Bluetooth Low Energy)。
其中,在本申请实施例中,升级子任务是设备升级任务的组成部分,多个升级子任务组合形成设备升级任务,而本申请实施例通过传输链路的数量将设备升级任务拆分为多个升级子任务,使得多个升级子任务可以同时执行,以提升设备的升级效率。
其中,在本申请实施例中,在当前设备接收到设备升级任务后,还可以根据设备升级任务的难度和广度将设备升级任务拆分为多个子设备升级任务,通过多个子设备升级任务的分工执 行,实现设备升级任务的执行,因此,在本申请实施例中,在根据传输链路对设备升级任务进行拆分前,还可以根据设备升级任务的实际内容对设备升级任务进行拆分,即,可选的,在本申请的一些实施例中,步骤“根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务”,包括:
将所述设备升级任务拆分为若干子设备升级任务;
根据所述当前设备所支持的传输链路的数量确定若干任务组;
将所述若干子设备升级任务平均分配给所述若干任务组;
针对每个任务组,根据所述任务组所对应的若干子设备升级任务得到所述任务组对应的升级子任务。
其中,在本申请实施例中,子设备升级任务是设备升级任务的组成部分,子设备升级任务可以根据设备升级任务的内容进行拆分,例如,将总体拆分为多个局部,通过多个局部任务的分工执行,实现设备升级任务的执行。其中,该拆分可以根据升级任务的难度、工作量以及广度进行拆分,与传输链路的数量无关。
而通过传输链路划分任务组,可将拆分后的各个子设备升级任务平均分配给各个任务组,而各个任务组对应的子设备升级任务即为该传输链路对应的升级子任务。
103、针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包。
其中,由于升级子任务是根据传输链路的数量进行拆分的,因此,每个传输链路可以对应执行一个升级子任务。
其中,在本申请实施例中,设备升级任务主要包括对升级包的获取,例如,从对端设备获取到当前设备的升级包,而升级子任务主要包括对升级包对应的多个子升级包的获取,例如,将设备升级任务需要获取的升级包拆分为多个子升级包,通过多个升级子任务分别同时执行,以实现对各个对子升级包的获取,进而提升升级包的获取效率。
104、将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包。
其中,通过将各个升级子任务执行后获取到的子升级包的组合,实现对总升级包的获取,其中,通过多个传输链路同时执行获取升级包的子数据,相较于单个传输链路传输升级包数据,本申请实施例提升了升级包的传输效率,进而提升了当前设备获取到升级包的效率。
其中,在本申请实施例中,每个子升级包可以对应包含多个子数据包,每个子数据包可以根据序号进行区分,因此,在本申请实施例中,可以将各个子数据包根据需要进行组合,得到总升级包,即,可选的,在本申请的一些实施例中,步骤“将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包”,包括:
针对各个所述传输链路的子升级包,将各个所述子升级包中的各个子数据包根据序号进行组合,得到所述升级包信息对应的总升级包。
其中,通过需要对各个子数据包的组合,可便于快速合成得到总升级包,提升总升级包的组合效率。
105、根据所述总升级包对所述当前设备进行升级。
其中,在本申请实施例中,总升级包为升级包信息对应的升级包,通过总升级包的获取,可以利用该总升级包对当前设备进行升级。
其中,在本申请实施例中,在根据总升级包对设备进行升级之前,还可以通过对总升级包进行完整性校验的方式来验证总升级包是否完整,是否安全等,即,可选的,在本申请的一些实施例中,升级包信息包括第一数据验证信息,步骤“根据所述总升级包对所述当前设备进行升级”,包括:
根据所述总升级包生成第二数据验证信息;
根据所述第一数据验证信息和所述第二数据验证信息对所述总升级包数据进行校验;
当所述总升级包数据校验通过后,根据所述总升级包对所述当前设备进行升级。
其中,在本申请实施例中,第一数据验证信息包含在升级包信息中,由对端设备根据总升级包数据得到,并携带在升级包信息中发送给当前设备。
其中,在本申请实施例中,第二数据验证信息由当前设备在组合得到总升级包后,根据总升级包得到,通常,由于第一数据验证信息是由对端设备根据总升级包得到的,而第二数据验证信息是由当前设备接收到的总升级包得到的,因此,当第一数据验证信息与第二数据验证信息一致时,则可以认为当前终端设备接收到的总升级包与对端设备发送的总升级包一致。例如,在本申请实施例中数据验证信息包括crc32值,第一数据验证信息由对端设备根据总升级包得到crc32值,第二数据验证信息由当前设备根据总升级包得到crc32值,当两个crc32值一致时,则可以认为当前设备接收到的总升级包与对端设备发送的总升级包一致。
其中,本申请实施例根据对端设备发送的升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量,将设备升级任务拆分为若干升级子任务,针对每个传输链路,根据该传输链路对应的升级子任务从对端设备中获取对应的子升级包,将各个传输链路的子升级包进行组合,得到升级包信息对应的总升级包,根据该总升级包对当前设备进行升级。其中,本申请实施例通过将升级任务拆分为多个子升级任务,通过多个子升级任务的同时执行,加快升级包数据的获取,加快设备升级的效率。其中,通过设备支持的传输链路的数量对升级任务的拆分,使得每个传输链路可以针对完成一个子升级任务,而同时对各个子升级包数据的传输,加快升级包数据的获取效率,提升设备升级的效率,提升用户体验。
请参阅图3,图3是本申请实施例提供的设备升级方法的另一流程示意图。该设备升级方法应用于当前设备,其中,该设备升级方法的具体流程可以如下:
111、向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务。
其中,在本申请实施例中,当前设备包括发送升级包信息的设备,对端设备为接收升级包的设备,即对端设备为待升级的设备,其中,通过当前设备向对端设备发送升级包信息,使得对端设备可以在接收到升级包信息后,根据该升级包信息进行设备升级。其中,当前设备可以包括手机、计算机等设备,对端设备可以包括智能穿戴设备或者车载终端、电视、空调和冰箱等设备。
其中,在本申请实施例中,对端设备在接收到升级包信息后,可以根据升级包信息生成设备升级任务,根据该设备升级任务进行设备的升级操作。
其中,在本申请实施例中,传输链路由设备的传输单元与对端设备建立连接后形成,其中,通过传输链路可实现对升级包数据的传输。
其中,在本申请实施例中,传输单元的数量决定设备支持的传输链路的数量,当设备存在多个传输单元时,则设备可支持多条传输链路。
其中,在本申请实施例中,升级子任务是设备升级任务的组成部分,多个升级子任务组合形成设备升级任务,其中,对端设备通过将设备升级任务根据对端设备所支持的传输链路的数量拆分为多个升级子任务,使得对端设备能够根据多个升级子任务,分工实现设备的整体升级任务,在多个升级子任务同时执行时,可提升对端设备的升级效率。
112、确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
其中,由于升级子任务是根据传输链路的数量进行拆分的,因此,每个传输链路可以对应执行一个升级子任务。
其中,在本申请实施例中,设备升级任务主要包括对升级包的获取,例如,从对端设备获取 到当前设备的升级包,而升级子任务主要包括对升级包对应的多个子升级包的获取,例如,将设备升级任务需要获取的升级包拆分为多个子升级包,通过多个升级子任务分别同时执行,以实现对各个对子升级包的获取,进而提升升级包的获取效率。
其中,当各个子升级包分别通过不同的传输链路发送给对端设备后,对端设备可以通过将各个子升级包进行组合的方式来得到总升级包,通过组合后得到总升级包,可以利用该总升级包将对端设备进行升级。
其中,在本申请实施例中,由于设备传输的数据包的长度有限,以及传输单元构建的传输链路在传输数据包的长度也有限,因此,可以根据当前设备传输数据包的长度上限,以及传输单元或者传输链路传输数据包的长度上限确定单次传输的子数据包的数据长度,即,可选的,在本申请实施例中,步骤“确定每个升级子任务对应的子升级包”之前,该方法还包括:获取所述传输链路的第一传输数据量阈值;
根据所述第一传输数据量阈值以及所述当前设备的第二传输数据量阈值确定单次传输的数据长度;
根据所述数据长度将所述升级包信息对应的总升级包拆分为若干子数据包;
其中,第一传输数据量阈值为传输链路所能传输的数据量的上限值,第二传输数据量阈值是当前设备所能传输的数据量的上限值,从两个上限值中选取最小的上限值作为单次传输的数据长度,根据该数据长度将总升级包拆分为多个子数据包。
其中,通过将总升级包拆分为多个子数据包,使得多个子数据包能够在设备支持的传输长度下进行数据传输,保证传输质量。
其中,针对每个升级子任务,可以根据该升级子任务对应的多个子数据包得到该升级子任务对应的子升级包,即,可选的,在本申请的一些实施例中,步骤“确定每个升级子任务对应的子升级包”,包括:
针对每个升级子任务,确定所述升级子任务对应的若干子数据包,并根据所述若干子数据包得到所述升级子任务对应的子升级包。
其中,在确定升级子任务对应的多个子数据包后,可以将该多个子数据包作为该升级子任务的子升级包,例如,将该多个子数据包进行打包得到子升级包,或者将该多个子数据包进行组合得到子升级包。
其中,在本申请实施例中,在将总升级包拆分为多个子数据包时,可以对各个子数据包进行编号,以便于对端设备在接收到各个子数据包后,根据编号将各个子数据包进行组合,以得到总升级包。相应的,在对各个子数据包进行编号后,可以根据编号确定每个升级子任务对应的多个子数据包,即,可选的,在本申请的一些实施例中,步骤“针对每个升级子任务,确定所述升级子任务对应的若干子数据包”,包括:
对所述总升级包拆分后的若干子数据包分别进行编号,得到每个子数据包对应的序号;
针对每个升级子任务,确定所述升级子任务对应的待传输的子数据包的序号,并根据所述序号确定所述升级子任务对应的若干子数据包。
其中,通过对子数据包进行编号,可以根据该编号确定各个升级子任务对应的多个子数据包。其中,本申请实施例通过向对端设备发送升级包信息,使得对端设备可以根据该升级包信息生成设备升级任务,并根据对端设备将设备升级任务拆分后的各个升级子任务,对各个子升级包的同时发送,提升了升级包信息对应的总升级包发送的效率,进而提升对端设备升级的效率。
请参阅图4,图4是本申请实施例提供的设备升级系统的框架结构图。该设备升级系统的框架结构包括:
当前设备121,用于根据对端设备发送的升级包信息生成设备升级任务;根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;针对每个传输链路, 根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;根据所述总升级包对所述当前设备进行升级;
对端设备122,用于向所述当前设备发送升级包信息,并确定每个升级子任务对应的子升级包,以及通过所述传输链路将所述子升级包发送给所述当前设备。
其中,通过对端设备向当前设备发送升级包信息,使得当前设备能够接收到升级的相关提示,在当前设备接收到升级包信息后,可以根据升级包信息生成设备升级任务,在当前设备根据所支持的传输链路的数量对设备升级任务拆分为多个升级子任务后,可以通过多个升级子任务的同时执行,加快设备升级任务的执行,提升设备升级效率。其中,在通过各个升级子任务得到总升级包对应的子升级包后,可以通过各个子升级包组合的方式得到总升级包,进而利用该总升级包对当前设备进行升级。
其中,在本申请实施例中,对端设备用户接收来自云端或者服务器的升级包数据,并根据该升级包数据生成升级包信息,以及将该升级包信息发送给当前设备。
请参阅图5,图5是本申请实施例提供的通过手机对蓝牙音箱进行升级方法的流程示意图,其中,该通过手机对蓝牙音箱进行升级方法的具体流程可以如下:
201、手机应用程序根据蓝牙音箱的设备标识从云端下载固件升级包;
202、手机应用程序上操作开始升级按钮,使得该应用程序与蓝牙音箱建立连接;
203、应用程序向蓝牙音箱的主控发送升级协商命令,并携带固件升级包的包名、长度、升级包文件计算的crc32值以及手机的最大传输载荷等参数;
204、蓝牙音箱主动自检是否允许升级,如果是,则执行步骤205,反之,则结束流程;
205、将蓝牙音箱可用的多个低功耗蓝牙模块信息发送给应用程序,应用程序与各个低功耗蓝牙模块建立起连接;
206、蓝牙音箱根据获取到的升级包的长度、手机的最大传输荷载等参数将升级包拆分为多个子数据包,其中,根据各个低功耗蓝牙模块的最大传输荷载以及手机最大传输荷载中的最小值设置每个子数据包的长度;
207、同时,蓝牙音箱将升级包传输任务拆分为多个子设备升级任务,每个子设备升级任务传输相同长度的数据包;
208、蓝牙音箱根据自身支持的低功耗蓝牙模块的数量,将多个子设备升级任务按照各个子设备升级任务的序号进行分组,其中,每组对应的子设备升级任务数量基本一致,每个低功耗蓝牙模块负责一组升级子任务,且蓝牙音箱为每个低功耗蓝牙模块建立一块缓存;
209、启动每个低功耗蓝牙模块对应的升级子任务,从应用程序中请求对应序号的子数据包(其中,手机还将子数据包的序号和长度设置在该子数据包的包头),得到该升级子任务对应的子升级包;
210、各个低功耗蓝牙模块在接收到子升级包后,将该子升级包传递给蓝牙音箱的主控,并通过该主控将该子升级包放入到对应的缓存中,并通过该主控记录各个低功耗蓝牙模块的任务进度;
211、当所有低功耗蓝牙模块负责的子升级任务执行完成后,蓝牙音箱的主控按照子数据包的序号将各个子数据包进行组合,得到总升级包;
212、蓝牙音箱的主控对总升级包的数据计算出crc32值;
213、与应用程序发送的crc32值进行对比,判断总升级包的完整性,如果完整,则执行步骤214,反之,则停止升级;
214、根据该总升级包对蓝牙音箱进行升级;
215、蓝牙音箱升级完成后,蓝牙音箱的主控发送升级成功命令到手机的应用程序,在应用程序的界面中显示升级成功的标识;
216、手机应用程序将升级成功的标识上报给云端。
其中,当蓝牙音箱存在升级更新时,通过将固件升级包发送给手机应用程序,使得手机应用程序可以将固件升级包发送给蓝牙设备,并协助蓝牙音箱完成设备升级任务,其中,在本申请实施例中,该固件升级包从云端传递到蓝牙音箱的过程可以理解为通过空中下载技术得到设备的升级包数据,其中,通过将升级任务拆分为多个子任务,并通过蓝牙音箱支持的多个低功耗蓝牙模块分别执行各个子任务,可提升设备升级任务的执行效率,加快固件升级包数据传输给蓝牙音箱的效率,便于提升蓝牙音箱的升级效率。
为便于更好的实施本申请的设备升级方法,本申请还提供一种基于上述设备升级方法的设备升级装置。其中第三目标词语的含义与上述设备升级方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图6,图6是本申请实施例提供的设备升级装置的结构示意图,其中,该设备升级装置可以包括:
生成模块301,用于根据对端设备发送的升级包信息生成设备升级任务;
拆分模块302,用于根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
获取模块303,用于针对每个传输链路,根据所述传输链路对应的升级子任务,从所述对端设备中获取对应的子升级包;
组合模块304,用于将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;
升级模块305,用于根据所述总升级包对所述当前设备进行升级。
其中,在本申请的一些实施例中,拆分模块302包括:
拆分单元,用于将所述设备升级任务拆分为若干子设备升级任务;
确定单元,用于根据所述当前设备所支持的传输链路的数量确定若干任务组;
分配单元,用于将所述若干子设备升级任务平均分配给所述若干任务组;
获取单元,用于针对每个任务组,根据所述任务组所对应的若干子设备升级任务得到所述任务组对应的升级子任务。
其中,在本申请的一些实施例中,升级包信息包括第一数据验证信息,升级模块305包括:生成单元,用于根据所述总升级包生成第二数据验证信息;
校验单元,用于根据所述第一数据验证信息和所述第二数据验证信息对所述总升级包数据进行校验;
升级单元,用于当所述总升级包数据校验通过后,根据所述总升级包对所述当前设备进行升级。
其中,在本申请的一些实施例中,组合模块304包括:
组合单元,用于针对各个所述传输链路的子升级包,将各个所述子升级包中的各个子数据包根据序号进行组合,得到所述升级包信息对应的总升级包。
本申请实施例由生成模块301根据对端设备发送的升级包信息生成设备升级任务,接着,由拆分模块302根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务,随后,由获取模块303针对每个传输链路,根据所述传输链路对应的升级子任务,从所述对端设备中获取对应的子升级包,然后,由组合模块304将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,最后,由升级模块305根据所述总升级包对所述当前设备进行升级。
其中,本申请实施例根据对端设备发送的升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量,将设备升级任务拆分为若干升级子任务,针对每个传输链路,根据该传输链路对应的升级子任务从对端设备中获取对应的子升级包,将各个传输链路的子升级包 进行组合,得到升级包信息对应的总升级包,根据该总升级包对当前设备进行升级。其中,本申请实施例通过将升级任务拆分为多个子升级任务,通过多个子升级任务的同时执行,加快升级包数据的获取,加快设备升级的效率。其中,通过设备支持的传输链路的数量对升级任务的拆分,使得每个传输链路可以针对完成一个子升级任务,而同时对各个子升级包数据的传输,加快升级包数据的获取效率,提升设备升级的效率,提升用户体验。
请参阅图7,图7是本申请实施例提供的设备升级装置的另一结构示意图,其中,该设备升级装置可以包括:
第一发送模块311,用于向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
第二发送模块312,用于确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
其中,在本申请的一些实施例中,该装置还包括划分模块,划分模块包括:
阈值获取单元,用于获取所述传输链路的第一传输数据量阈值;
长度确定单元,用于根据所述第一传输数据量阈值以及所述当前设备的第二传输数据量阈值确定单次传输的数据长度;
划分单元,用于根据所述数据长度将所述升级包信息对应的总升级包拆分为若干子数据包;第二发送模块312包括:
数据包确定单元,用于针对每个升级子任务,确定所述升级子任务对应的若干子数据包,并根据所述若干子数据包得到所述升级子任务对应的子升级包。
其中,在本申请的一些实施例中,数据包确定单元包括:
编号子单元,用于对所述总升级包拆分后的若干子数据包分别进行编号,得到每个子数据包对应的序号;
数据包确定子单元,用于针对每个升级子任务,确定所述升级子任务对应的待传输的子数据包的序号,并根据所述序号确定所述升级子任务对应的若干子数据包。
其中,本申请实施例由第一发送模块311向对端设备发送升级包信息,使得对端设备根据所述升级包信息生成设备升级任务,以及根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务,然后,由第二发送模块312确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
其中,本申请实施例通过向对端设备发送升级包信息,使得对端设备可以根据该升级包信息生成设备升级任务,并根据对端设备将设备升级任务拆分后的各个升级子任务,对各个子升级包的同时发送,提升了升级包信息对应的总升级包发送的效率,进而提升对端设备升级的效率。
此外,本申请还提供一种电子设备,如图8所示,其示出了本申请所涉及的电子设备的结构示意图,具体来讲:
该电子设备可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、电源403和输入单元404等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:
处理器401是该电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内 的数据,执行电子设备的各种功能和处理数据。可选的,处理器401可包括一个或多个处理核心;优选的,处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、对象界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。
电子设备还包括给各个部件供电的电源403,优选的,电源403可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源403还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。
该电子设备还可包括输入单元404,该输入单元404可用于接收输入的数字或字符信息,以及产生与对象设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。尽管未示出,电子设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,电子设备中的处理器401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现本申请所提供的任一种设备升级方法中的步骤。
本申请实施例根据对端设备发送的升级包信息生成设备升级任务,根据当前设备所支持的传输链路的数量,将设备升级任务拆分为若干升级子任务,针对每个传输链路,根据该传输链路对应的升级子任务从对端设备中获取对应的子升级包,将各个传输链路的子升级包进行组合,得到升级包信息对应的总升级包,根据该总升级包对当前设备进行升级。其中,本申请实施例通过将升级任务拆分为多个子升级任务,通过多个子升级任务的同时执行,加快升级包数据的获取,加快设备升级的效率。其中,通过设备支持的传输链路的数量对升级任务的拆分,使得每个传输链路可以针对完成一个子升级任务,而同时对各个子升级包数据的传输,加快升级包数据的获取效率,提升设备升级的效率,提升用户体验。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。
为此,本申请提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序能够被处理器进行加载,以执行本申请所提供的任一种设备升级方法中的步骤。其中,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该计算机可读存储介质中所存储的指令,可以执行本申请所提供的任一种设备升级方法中的步骤,因此,可以实现本申请所提供的任一种设备升级方法所能实现的有益效果,详见前面的实施例,在此不再赘述。
以上对本申请所提供的一种设备升级方法、系统、装置及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种设备升级方法,其中,应用于当前设备,包括:
    根据对端设备发送的升级包信息生成设备升级任务;
    根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;
    将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;
    根据所述总升级包对所述当前设备进行升级。
  2. 根据权利要求1所述的方法,其中,所述根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务,包括:
    将所述设备升级任务拆分为若干子设备升级任务;
    根据所述当前设备所支持的传输链路的数量确定若干任务组;
    将所述若干子设备升级任务平均分配给所述若干任务组;
    针对每个任务组,根据所述任务组所对应的若干子设备升级任务得到所述任务组对应的升级子任务。
  3. 根据权利要求1所述的方法,其中,所述升级包信息包括第一数据验证信息,所述根据所述总升级包对所述当前设备进行升级,包括:
    根据所述总升级包生成第二数据验证信息;
    根据所述第一数据验证信息和所述第二数据验证信息对所述总升级 包的数据进行校验;
    当所述总升级包的数据校验通过后,根据所述总升级包对所述当前设备进行升级。
  4. 根据权利要求1所述的方法,其中,所述将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,包括:
    针对各个所述传输链路的子升级包,将各个所述子升级包中的各个子数据包根据序号进行组合,得到所述升级包信息对应的总升级包。
  5. 根据权利要求1所述的方法,其中,所述根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务之前,所述方法还包括:
    根据所述当前设备配置的传输单元的数量确定所述当前设备所支持的传输链路的数量,所述传输单元包括至少两个,每个传输单元至少对应一个传输链路。
  6. 根据权利要求2所述的方法,其中,所述将所述设备升级任务拆分为若干子设备升级任务,包括:
    根据所述设备升级任务的内容将所述设备升级任务拆分为若干子设备升级任务;
    其中,所述内容包括所述设备升级任务的难度、工作量或者广度中的至少一种。
  7. 根据权利要求3所述的方法,其中,所述根据所述第一数据验证信息和所述第二数据验证信息对所述总升级包的数据进行校验,包括:
    对所述第一数据验证信息和所述第二数据验证信息对应的循环冗余 校验码进行一致性比较;
    若所述一致性比较的结果为所述第一数据验证信息与所述第二数据验证信息一致,则所述总升级包的数据校验通过;
    若所述一致性比较的结果为所述第一数据验证信息与所述第二数据验证信息不一致,则所述总升级包的数据校验不通过。
  8. 一种设备升级方法,其中,应用于当前设备,包括:
    向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
  9. 根据权利要求8所述的方法,其中,所述确定每个升级子任务对应的子升级包之前,所述方法还包括:
    获取所述传输链路的第一传输数据量阈值;
    根据所述第一传输数据量阈值以及所述当前设备的第二传输数据量阈值确定单次传输的数据长度;
    根据所述数据长度将所述升级包信息对应的总升级包拆分为若干子数据包。
  10. 根据权利要求9所述的方法,其中,所述确定每个升级子任务对应的子升级包,包括:
    针对每个升级子任务,确定所述升级子任务对应的若干子数据包,并根据所述若干子数据包得到所述升级子任务对应的子升级包。
  11. 根据权利要求10所述的方法,其中,所述针对每个升级子任务,确定所述升级子任务对应的若干子数据包,包括:
    对所述总升级包拆分后的若干子数据包分别进行编号,得到每个子数据包对应的序号;
    针对每个升级子任务,确定所述升级子任务对应的待传输的子数据包的序号,并根据所述序号确定所述升级子任务对应的若干子数据包。
  12. 根据权利要求8所述的方法,其中,所述确定每个升级子任务对应的子升级包,包括:
    接收所述对端设备发送的升级子任务,并根据所述升级子任务确定对应的子升级包。
  13. 根据权利要求9所述的方法,其中,所述根据所述第一传输数据量阈值以及所述当前设备的第二传输数据量阈值确定单次传输的数据长度,包括:
    比较所述第一传输数据量阈值和所述当前设备的第二传输数据量阈值的大小;
    将所述第一传输数据量阈值和所述第二传输数据量阈值中较小的数据量阈值作为单次传输的数据长度。
  14. 根据权利要求10所述的方法,其中,所述针对每个升级子任务,确定所述升级子任务对应的若干子数据包,包括:
    对所述子数据包进行编号,根据所述编号确定各个升级子任务对应的 多个子数据包。
  15. 根据权利要求8所述的方法,其中,所述向对端设备发送升级包信息之前,所述方法还包括:
    根据对端设备的设备标识从云端下载固件升级包;
    所述向对端设备发送升级包信息,包括:
    响应于针对所述当前设备的升级按钮的触发操作,根据所述固件升级包生成升级包信息,并向对端设备发送所述升级包信息。
  16. 一种设备升级系统,其中,包括当前设备和对端设备,其中,当前设备,用于根据对端设备发送的升级包信息生成设备升级任务;根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;根据所述总升级包对所述当前设备进行升级;
    对端设备,用于向所述当前设备发送升级包信息,并确定每个升级子任务对应的子升级包,以及通过所述传输链路将所述子升级包发送给所述当前设备。
  17. 一种设备升级装置,其中,包括:
    生成模块,用于根据对端设备发送的升级包信息生成设备升级任务;拆分模块,用于根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    获取模块,用于针对每个传输链路,根据所述传输链路对应的升级子 任务,从所述对端设备中获取对应的子升级包;
    组合模块,用于将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包;
    升级模块,用于根据所述总升级包对所述当前设备进行升级。
  18. 一种设备升级装置,其中,包括:
    第一发送模块,用于向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    第二发送模块,用于确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
  19. 一种电子设备,其中,所述电子设备包括存储器、处理器及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现:
    根据对端设备发送的升级包信息生成设备升级任务;
    根据所述当前设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    针对每个传输链路,根据所述传输链路对应的升级子任务从所述对端设备中获取对应的子升级包;
    将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应 的总升级包;
    根据所述总升级包对所述当前设备进行升级。
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现:
    向对端设备发送升级包信息,所述对端设备根据所述升级包信息生成设备升级任务,所述对端设备根据所述对端设备所支持的传输链路的数量将所述设备升级任务拆分为若干升级子任务;
    确定每个升级子任务对应的子升级包,并通过所述传输链路将所述子升级包发送给所述对端设备,所述对端设备将各个所述传输链路的子升级包进行组合,得到所述升级包信息对应的总升级包,并根据所述总升级包对所述对端设备进行升级。
PCT/CN2023/112576 2022-09-20 2023-08-11 设备升级方法、系统、装置及计算机可读存储介质 WO2024060874A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211145136.2A CN117135048A (zh) 2022-09-20 2022-09-20 设备升级方法、系统、装置及计算机可读存储介质
CN202211145136.2 2022-09-20

Publications (1)

Publication Number Publication Date
WO2024060874A1 true WO2024060874A1 (zh) 2024-03-28

Family

ID=88849616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/112576 WO2024060874A1 (zh) 2022-09-20 2023-08-11 设备升级方法、系统、装置及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN117135048A (zh)
WO (1) WO2024060874A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329741A (zh) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 一种基于指纹识别的软件分布式升级方法与装置
CN112416408A (zh) * 2020-12-08 2021-02-26 金卡智能集团股份有限公司 固件升级方法、装置、设备及计算机可读存储介质
CN114610353A (zh) * 2022-03-17 2022-06-10 深圳云里物里科技股份有限公司 固件升级方法、系统、装置、网关、电子标签及存储介质
CN114915618A (zh) * 2021-01-29 2022-08-16 华为技术有限公司 升级包下载方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329741A (zh) * 2017-06-12 2017-11-07 北京北信源软件股份有限公司 一种基于指纹识别的软件分布式升级方法与装置
CN112416408A (zh) * 2020-12-08 2021-02-26 金卡智能集团股份有限公司 固件升级方法、装置、设备及计算机可读存储介质
CN114915618A (zh) * 2021-01-29 2022-08-16 华为技术有限公司 升级包下载方法及装置
CN114610353A (zh) * 2022-03-17 2022-06-10 深圳云里物里科技股份有限公司 固件升级方法、系统、装置、网关、电子标签及存储介质

Also Published As

Publication number Publication date
CN117135048A (zh) 2023-11-28

Similar Documents

Publication Publication Date Title
WO2019174595A1 (zh) 资源配置方法、装置、终端及存储介质
CN105979009B (zh) 一种针对云应用容器的增加负载自动均衡方法
CN103327117B (zh) 应用程序的跨系统运行方法和装置
WO2019222934A1 (zh) 文件处理方法、装置和系统
CN111182025B (zh) 一种报文处理方法、装置、服务器及存储介质
WO2022088835A1 (zh) 边缘计算方法、装置、智能终端及计算机可读存储介质
CN103957237A (zh) 一种弹性云的体系结构
CN108376078A (zh) 设备的升级方法、装置以及家电设备
CN102438046A (zh) 一种基于云计算的卡拉ok点歌系统及其点歌方法
WO2021121407A1 (zh) 一种虚拟机的容量更改方法及装置
CN110888658B (zh) 应用程序中功能模块的动态化方法、装置及存储介质
WO2024066828A1 (zh) 一种数据处理方法、装置、设备、计算机可读存储介质及计算机程序产品
JP5132825B1 (ja) ゲーム管理サーバ装置、ゲーム管理サーバ装置用プログラム、および、端末装置用プログラム
CN111858050B (zh) 服务器集群混合部署方法、集群管理节点及相关系统
CN111290965B (zh) 一种测试方法、装置、计算机设备和存储介质
CN113572822A (zh) 一种云终端模拟控制方法、装置、存储介质及电子设备
WO2024060874A1 (zh) 设备升级方法、系统、装置及计算机可读存储介质
CN115454576B (zh) 一种虚拟机进程管理方法、系统及电子设备
CN111885564B (zh) 数据传输方法、设备升级方法、计算机可读的存储介质
JP2019003632A (ja) メッセンジャーでのファイル送信時に機器間の通信技術を活用する方法及びシステム
CN114385351A (zh) 云管理平台负载均衡性能优化方法、装置、设备、介质
CN109117146A (zh) 云平台双机容灾系统的自动部署方法、装置、存储介质和计算机设备
CN106254909B (zh) 互动内容的分发、运行方法及装置
CN113867831A (zh) 智能设备控制方法、智能设备、存储介质及电子设备
CN106210031A (zh) 业务执行方法、装置、客户端及服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23867168

Country of ref document: EP

Kind code of ref document: A1