CN117135048A - Device upgrading method, system, device and computer readable storage medium - Google Patents

Device upgrading method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN117135048A
CN117135048A CN202211145136.2A CN202211145136A CN117135048A CN 117135048 A CN117135048 A CN 117135048A CN 202211145136 A CN202211145136 A CN 202211145136A CN 117135048 A CN117135048 A CN 117135048A
Authority
CN
China
Prior art keywords
upgrade
sub
upgrading
equipment
task
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211145136.2A
Other languages
Chinese (zh)
Inventor
刘庆生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202211145136.2A priority Critical patent/CN117135048A/en
Priority to PCT/CN2023/112576 priority patent/WO2024060874A1/en
Publication of CN117135048A publication Critical patent/CN117135048A/en
Pending legal-status Critical Current

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]

Landscapes

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

Abstract

The embodiment of the application discloses a method, a system, a device and a computer readable storage medium for upgrading equipment, wherein the method comprises the following steps: generating an equipment upgrading task according to upgrading packet information sent by opposite-end equipment; splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment; for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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 equipment according to the total upgrade package. By splitting the upgrading task into a plurality of sub-upgrading tasks and simultaneously executing the plurality of sub-upgrading tasks, the acquisition of upgrading package data is quickened, and the efficiency of equipment upgrading is quickened.

Description

Device upgrading method, system, device and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a system, a device and a computer readable storage medium for upgrading equipment.
Background
Currently, upgrade package data of a device is dependent on being obtained from the cloud or from the APP of the terminal, for example, by downloading the upgrade package data through an Over-the-Air Technology (OTA), and upgrading the device according to the upgrade package data.
However, due to the limited size of the firmware package transmitted by the transmission link, the time for the terminal device to receive the upgrade package is longer, so that the equipment upgrade time is longer, the equipment upgrade is not facilitated, and the user experience is affected.
Disclosure of Invention
The embodiment of the application provides a device upgrading method, a system, a device and a computer readable storage medium, which can improve the upgrading efficiency of devices and the user experience.
In a first aspect, an embodiment of the present application provides an apparatus upgrade method, applied to a current apparatus, including:
generating an equipment upgrading task according to upgrading packet information sent by opposite-end equipment;
splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment;
for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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 equipment according to the total upgrade package.
In a second aspect, an embodiment of the present application further provides an apparatus upgrade device, including:
the generating module is used for generating equipment upgrading tasks according to the upgrading packet information sent by the opposite-end equipment;
the splitting module is used for splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment;
the acquisition module is used for acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to the upgrade sub-task corresponding to each transmission link;
the combination module is used for combining the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information;
and the upgrading module is used for upgrading the current equipment according to the total upgrading packet.
Wherein, in some embodiments of the application, the splitting module comprises:
the splitting unit is used for splitting the equipment upgrading task into a plurality of sub-equipment upgrading tasks;
a determining unit, configured to determine a plurality of task groups according to the number of transmission links supported by the current device;
The distribution unit is used for distributing the plurality of sub-equipment upgrading tasks to the plurality of task groups evenly;
the task group upgrading unit is used for obtaining upgrading sub-tasks corresponding to the task groups according to the plurality of sub-equipment upgrading tasks corresponding to the task groups according to each task group.
Wherein, in some embodiments of the present application, the upgrade package information includes first data verification information, and the upgrade module includes:
the generation unit is used for generating second data verification information according to the total upgrade package;
the verification unit is used for verifying the total upgrade package data according to the first data verification information and the second data verification information;
and the upgrading unit is used for upgrading the current equipment according to the total upgrading packet after the data of the total upgrading packet passes the verification.
Wherein, in some embodiments of the application, the combining module comprises:
and the combination unit is used for combining each sub-data packet in each sub-upgrading packet according to the sequence number aiming at the sub-upgrading packet of each transmission link to obtain a total upgrading packet corresponding to the upgrading packet information.
In a third aspect, an embodiment of the present application provides an apparatus upgrade method, applied to a current apparatus, including:
The method comprises the steps that upgrade package information is sent to opposite terminal equipment, equipment upgrade tasks are generated by the opposite terminal equipment according to the upgrade package information, and the equipment upgrade tasks are split into a plurality of upgrade subtasks by the opposite terminal equipment according to the number of transmission links supported by the opposite terminal equipment;
determining a sub-upgrade package corresponding to each upgrade sub-task, sending the sub-upgrade package to the opposite terminal equipment through the transmission link, combining the sub-upgrade packages of each transmission link by the opposite terminal equipment to obtain a total upgrade package corresponding to the upgrade package information, and upgrading the opposite terminal equipment according to the total upgrade package.
In a fourth aspect, an embodiment of the present application further provides an apparatus upgrade device, including:
the device comprises a first sending module, a second sending module and a second sending module, wherein the first sending module is used for sending upgrade package information to opposite terminal equipment, the opposite terminal equipment generates equipment upgrade tasks according to the upgrade package information, and the opposite terminal equipment splits the equipment upgrade tasks into a plurality of upgrade subtasks according to the number of transmission links supported by the opposite terminal equipment;
the second sending module is used for determining a sub-upgrade package corresponding to each upgrade sub-task, sending the sub-upgrade package to the opposite terminal equipment through the transmission link, combining the sub-upgrade packages of the transmission links by the opposite terminal equipment to obtain a total upgrade package corresponding to the upgrade package information, and upgrading the opposite terminal equipment according to the total upgrade package.
Wherein, in some embodiments of the present application, the apparatus further comprises a partitioning module, the partitioning module comprising:
a threshold value obtaining unit, configured to obtain a first transmission data amount threshold value of the transmission link;
a length determining unit, configured to determine a data length of a single transmission according to the first transmission data amount threshold and a second transmission data amount threshold of the current device;
the dividing unit is used for dividing the total upgrade package corresponding to the upgrade package information into a plurality of sub-data packages according to the data length;
the second transmitting module includes:
the data packet determining unit is used for determining a plurality of sub-data packets corresponding to the upgrading sub-task according to each upgrading sub-task, and obtaining a sub-upgrading packet corresponding to the upgrading sub-task according to the plurality of sub-data packets.
Wherein, in some embodiments of the present application, the data packet determining unit includes:
a numbering subunit, configured to number the plurality of sub-data packets after splitting the total upgrade packet, respectively, to obtain a sequence number corresponding to each sub-data packet;
the data packet determining subunit is configured to determine, for each upgrade subtask, a sequence number of a sub-data packet to be transmitted corresponding to the upgrade subtask, and determine, according to the sequence number, a plurality of sub-data packets corresponding to the upgrade subtask.
In a fifth aspect, the embodiment of the present application further provides a device upgrade system, including a current device and a peer device, where,
the current device is used for generating a device upgrading task according to the upgrading packet information sent by the opposite terminal device; splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment; for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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; upgrading the current equipment according to the total upgrade package;
and the opposite terminal equipment is used for sending the upgrade package information to the current equipment, determining a sub upgrade package corresponding to each upgrade sub task, and sending the sub upgrade package to the current equipment through the transmission link.
In a sixth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps in the device upgrade method when executing the computer program.
In a seventh aspect, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps in the device upgrade method described above.
According to the method, device upgrading tasks are generated according to upgrading package information sent by opposite-end devices, the device upgrading tasks are split into a plurality of upgrading subtasks according to the number of transmission links supported by current devices, corresponding sub-upgrading packages are obtained from the opposite-end devices according to the upgrading subtasks corresponding to the transmission links for each transmission link, the sub-upgrading packages of the transmission links are combined to obtain total upgrading packages corresponding to the upgrading package information, and current devices are upgraded according to the total upgrading packages. According to the embodiment of the application, the upgrading task is split into the plurality of sub-upgrading tasks, and the plurality of sub-upgrading tasks are executed simultaneously, so that the acquisition of upgrading packet data is accelerated, and the equipment upgrading efficiency is accelerated. The upgrade task is split through the number of the transmission links supported by the equipment, so that each transmission link can finish one sub-upgrade task, and meanwhile, the data of each sub-upgrade package is transmitted, the acquisition efficiency of the upgrade package data is quickened, the equipment upgrade efficiency is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an apparatus upgrade method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a method for upgrading equipment according to an embodiment of the present application;
FIG. 3 is another flow chart of a device upgrade method according to an embodiment of the present application;
FIG. 4 is a frame structure diagram of an equipment upgrade system provided by an embodiment of the present application;
fig. 5 is a flow chart of a method for upgrading a bluetooth speaker by a mobile phone according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a device upgrade apparatus according to an embodiment of the present application;
FIG. 7 is another schematic diagram of an apparatus upgrade device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the application are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a device upgrading method, a system, a device and a computer readable storage medium. Specifically, the embodiment of the application provides a device upgrading device suitable for electronic equipment, wherein the electronic equipment comprises terminal equipment or a server, the terminal equipment can be mobile phones, bluetooth sound boxes, vehicle-mounted terminals, tablets, computers and other equipment, the server can be an independent physical server, can be a server cluster or a distributed system formed by a plurality of physical servers, can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (CDNs, content Delivery Network), basic cloud computing services such as big data and artificial intelligent platforms, and the server can be directly or indirectly connected in a wired or wireless communication mode.
In the embodiment of the present application, the device upgrade method may be executed by the terminal device alone, or executed by the server alone, or executed by both the terminal device and the server together, please refer to fig. 1, where the terminal device executes the device upgrade method as an example, and a specific execution procedure of 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 according to the upgrade package information, splits the device upgrade task into a plurality of upgrade subtasks according to the number of transmission links supported by the current device, obtains a corresponding sub upgrade package from the opposite terminal device 11 according to the upgrade subtask corresponding to the transmission link for each transmission link, combines the sub upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information, and upgrades the terminal device 10 according to the total upgrade package.
In the embodiment of the present application, the upgrade package information is sent to the terminal device 10 through the application program of the terminal device 11, where in the embodiment of the present application, the upgrade package information is generated according to a total upgrade package, and the total upgrade package is obtained by the application program of the terminal device 11 from the cloud according to an Over-the-Air Technology (OTA).
In this embodiment of the present application, the terminal device 11 may be directly replaced by a server or a cloud, for example, the cloud or the server directly generates the upgrade package information according to the total upgrade package, and sends the upgrade package information to the terminal device 10.
According to the method, device upgrading tasks are generated according to upgrading package information sent by opposite-end devices, the device upgrading tasks are split into a plurality of upgrading subtasks according to the number of transmission links supported by current devices, corresponding sub-upgrading packages are obtained from the opposite-end devices according to the upgrading subtasks corresponding to the transmission links for each transmission link, the sub-upgrading packages of the transmission links are combined to obtain total upgrading packages corresponding to the upgrading package information, and current devices are upgraded according to the total upgrading packages. According to the embodiment of the application, the upgrading task is split into the plurality of sub-upgrading tasks, and the plurality of sub-upgrading tasks are executed simultaneously, so that the acquisition of upgrading packet data is accelerated, and the equipment upgrading efficiency is accelerated. The upgrade task is split through the number of the transmission links supported by the equipment, so that each transmission link can finish one sub-upgrade task, and meanwhile, the data of each sub-upgrade package is transmitted, the acquisition efficiency of the upgrade package data is quickened, the equipment upgrade efficiency is improved, and the user experience is improved.
The following will describe in detail. It should be noted that the following description order of embodiments is not a limitation of the priority order of embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for upgrading a device according to an embodiment of the application. The equipment upgrading method is applied to the current equipment, wherein the specific flow of the equipment upgrading method can be as follows:
101. and generating an equipment upgrading task according to the upgrading packet information sent by the opposite-end equipment.
In the embodiment of the application, the opposite terminal equipment is equipment for sending the upgrade package information to the current equipment, and has the capability of receiving the upgrade package, generating the upgrade package information according to the upgrade package, and sending the upgrade information to the current equipment so as to assist the current equipment to carry out the upgrade task. For example, in the embodiment of the present application, the peer device may include a mobile phone, a computer, and the like, and the application program (such as APP) may be used to send the upgrade information to the current device. In the embodiment of the application, the opposite terminal device acquires the upgrade package from the cloud or the server and sends the upgrade package information corresponding to the upgrade package to the opposite terminal device.
In the embodiment of the application, the current device is a device to be upgraded, for example, a wearable device such as a smart watch or a device such as a vehicle-mounted terminal, a television, a refrigerator, an air conditioner and the like.
In the embodiment of the application, the equipment upgrading task is the synthesis of a set of instruction task, and comprises the steps of acquiring upgrading package data and upgrading the equipment according to the upgrading package data, wherein the equipment upgrading task is generated through the upgrading package information, and the equipment is upgraded according to the execution of the equipment upgrading task.
102. And splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of the transmission links supported by the current equipment.
In the embodiment of the application, the transmission link is formed after the transmission unit of the device is connected with the opposite device, wherein the transmission of the upgrade package data can be realized through the transmission link.
In the embodiment of the present application, the number of transmission units determines the number of transmission links supported by the device, and when the device has a plurality of transmission units, the device may support a plurality of transmission links. Wherein, in the embodiment of the application, the transmission unit comprises a bluetooth low energy unit (BLE, bluetooth Low Energy).
In the embodiment of the application, the upgrading subtask is a component part of the equipment upgrading task, and the plurality of upgrading subtasks are combined to form the equipment upgrading task.
In the embodiment of the present application, after the current device receives the device upgrade task, the device upgrade task may be further split into a plurality of sub-device upgrade tasks according to the difficulty and breadth of the device upgrade task, and the execution of the device upgrade task is implemented by the division execution of the plurality of sub-device upgrade tasks, so in the embodiment of the present application, before the device upgrade task is split according to the transmission link, the device upgrade task may be further 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 a plurality of upgrade sub-tasks according to the number of the transmission links supported by the current device includes:
splitting the equipment upgrading task into a plurality of sub-equipment upgrading tasks;
determining a plurality of task groups according to the number of transmission links supported by the current equipment;
the plurality of sub-equipment upgrading tasks are evenly distributed to the plurality of task groups;
aiming at each task group, obtaining upgrading sub-tasks corresponding to the task group according to a plurality of sub-equipment upgrading tasks corresponding to the task group.
In the embodiment of the application, the sub-equipment upgrading task is a component part of the equipment upgrading task, and the sub-equipment upgrading task can be split according to the content of the equipment upgrading task, for example, the whole is split into a plurality of parts, and the execution of the equipment upgrading task is realized through the division execution of the plurality of partial tasks. The splitting can be performed according to the difficulty, the workload and the breadth of the upgrading task, and is irrelevant to the number of transmission links.
The task groups are divided through the transmission link, the split upgrading tasks of all the sub-devices can be equally distributed to all the task groups, and the upgrading tasks of the sub-devices corresponding to all the task groups are upgrading sub-tasks corresponding to the transmission link.
103. And aiming at each transmission link, acquiring a corresponding sub-upgrading packet from the opposite terminal equipment according to the upgrading sub-task corresponding to the transmission link.
Wherein, since the upgrade subtask is split according to the number of transmission links, each transmission link can correspondingly execute one upgrade subtask.
In the embodiment of the application, the device upgrade task mainly comprises obtaining an upgrade package, for example, obtaining the upgrade package of the current device from the opposite terminal device, and the upgrade subtask mainly comprises obtaining a plurality of sub-upgrade packages corresponding to the upgrade package, for example, splitting the upgrade package required to be obtained by the device upgrade task into a plurality of sub-upgrade packages, and respectively and simultaneously executing the plurality of upgrade subtasks to obtain each sub-upgrade package, thereby improving the obtaining efficiency of the upgrade package.
104. And combining the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information.
The method and the device for obtaining the total upgrade package are used for obtaining the total upgrade package through combining the sub upgrade packages obtained after each upgrade sub task is executed, wherein sub data of the upgrade package are obtained through simultaneous execution of a plurality of transmission links, and compared with the case that upgrade package data are transmitted through a single transmission link, the method and the device for obtaining the total upgrade package through the sub upgrade package are used for improving the transmission efficiency of the upgrade package, and further improving the efficiency of obtaining the upgrade package through current equipment.
In the embodiment of the present application, each sub-upgrade packet may correspondingly include a plurality of sub-data packets, and each sub-data packet may be distinguished according to a sequence number, so in the embodiment of the present application, each sub-data packet may be combined as required to obtain a total upgrade packet, that is, optionally, in some embodiments of the present application, the step of combining sub-upgrade packets of each transmission link to obtain a total upgrade packet corresponding to the upgrade packet information includes:
and combining all the sub data packets in all the sub upgrading packets according to sequence numbers aiming at the sub upgrading packets of all the transmission links to obtain a total upgrading packet corresponding to the upgrading packet information.
The method is characterized in that the combination of all sub data packets is needed, so that the total upgrade packets can be conveniently and quickly synthesized, and the combination efficiency of the total upgrade packets is improved.
105. And upgrading the current equipment according to the total upgrade package.
In the embodiment of the application, the total upgrade package is the upgrade package corresponding to the upgrade package information, and the current equipment can be upgraded by using the total upgrade package through obtaining the total upgrade package.
Before the device is upgraded according to the total upgrade package, whether the total upgrade package is complete, whether the total upgrade package is safe or not, or the like may be verified by performing integrity verification on the total upgrade package, that is, optionally, in some embodiments of the present application, the upgrade package information includes first data verification information, and the step of "upgrading the current device according to the total upgrade package" includes:
generating second data verification information according to the total upgrade package;
checking the total upgrade package data according to the first data verification information and the second data verification information;
and after the data of the total upgrade package passes the verification, upgrading the current equipment according to the total upgrade package.
In the embodiment of the application, the first data verification information is contained in the upgrade package information, obtained by the opposite terminal equipment according to the total upgrade package data, carried in the upgrade package information and sent to the current equipment.
In the embodiment of the present application, after the current device obtains the total upgrade package through combination, the second data verification information is obtained according to the total upgrade package, and in general, since the first data verification information is obtained by the opposite terminal device according to the total upgrade package, and the second data verification information is obtained by the total upgrade package received by the current device, when the first data verification information is consistent with the second data verification information, the total upgrade package received by the current terminal device may be considered to be consistent with the total upgrade package sent by the opposite terminal device.
For example, in the embodiment of the present application, the data verification information includes a 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, and when the two crc32 values are consistent, the total upgrade package received by the current device may be considered to be consistent with the total upgrade package sent by the peer device.
According to the method, device upgrading tasks are generated according to upgrading package information sent by opposite-end devices, the device upgrading tasks are split into a plurality of upgrading subtasks according to the number of transmission links supported by current devices, corresponding sub-upgrading packages are obtained from the opposite-end devices according to the upgrading subtasks corresponding to the transmission links for each transmission link, the sub-upgrading packages of the transmission links are combined to obtain total upgrading packages corresponding to the upgrading package information, and current devices are upgraded according to the total upgrading packages. According to the embodiment of the application, the upgrading task is split into the plurality of sub-upgrading tasks, and the plurality of sub-upgrading tasks are executed simultaneously, so that the acquisition of upgrading packet data is accelerated, and the equipment upgrading efficiency is accelerated. The upgrade task is split through the number of the transmission links supported by the equipment, so that each transmission link can finish one sub-upgrade task, and meanwhile, the data of each sub-upgrade package is transmitted, the acquisition efficiency of the upgrade package data is quickened, the equipment upgrade efficiency is improved, and the user experience is improved.
Referring to fig. 3, fig. 3 is another flow chart of the device upgrade method according to the embodiment of the application. The equipment upgrading method is applied to the current equipment, wherein the specific flow of the equipment upgrading method can be as follows:
111. and sending upgrade package information to opposite terminal equipment, wherein the opposite terminal equipment generates equipment upgrade tasks according to the upgrade package information, and splits the equipment upgrade tasks into a plurality of upgrade subtasks according to the number of transmission links supported by the opposite terminal equipment.
In the embodiment of the application, the current equipment comprises equipment for sending the upgrade package information, and the opposite terminal equipment is equipment for receiving the upgrade package, namely the opposite terminal equipment is equipment to be upgraded, wherein the upgrade package information is sent to the opposite terminal equipment through the current equipment, so that the opposite terminal equipment can carry out equipment upgrade according to the upgrade package information after receiving the upgrade package information. The current equipment can comprise equipment such as a mobile phone and a computer, and the opposite-end equipment can comprise intelligent wearable equipment or equipment such as a vehicle-mounted terminal, a television, an air conditioner and a refrigerator.
In the embodiment of the application, after receiving the upgrade package information, the opposite terminal equipment can generate an equipment upgrade task according to the upgrade package information, and perform the equipment upgrade operation according to the equipment upgrade task.
In the embodiment of the application, the transmission link is formed after the transmission unit of the device is connected with the opposite device, wherein the transmission of the upgrade package data can be realized through the transmission link.
In the embodiment of the present application, the number of transmission units determines the number of transmission links supported by the device, and when the device has a plurality of transmission units, the device may support a plurality of transmission links.
In the embodiment of the application, the upgrade subtask is a component part of the equipment upgrade task, and the plurality of upgrade subtasks are combined to form the equipment upgrade task, wherein the opposite terminal equipment splits the equipment upgrade task into a plurality of upgrade subtasks according to the number of transmission links supported by the opposite terminal equipment, so that the opposite terminal equipment can realize the integral upgrade task of the equipment according to the plurality of upgrade subtasks in a division manner, and the upgrade efficiency of the opposite terminal equipment can be improved when the plurality of upgrade subtasks are simultaneously executed.
112. Determining a sub-upgrade package corresponding to each upgrade sub-task, sending the sub-upgrade package to the opposite terminal equipment through the transmission link, combining the sub-upgrade packages of each transmission link by the opposite terminal equipment to obtain a total upgrade package corresponding to the upgrade package information, and upgrading the opposite terminal equipment according to the total upgrade package.
Wherein, since the upgrade subtask is split according to the number of transmission links, each transmission link can correspondingly execute one upgrade subtask.
In the embodiment of the application, the device upgrade task mainly comprises obtaining an upgrade package, for example, obtaining the upgrade package of the current device from the opposite terminal device, and the upgrade subtask mainly comprises obtaining a plurality of sub-upgrade packages corresponding to the upgrade package, for example, splitting the upgrade package required to be obtained by the device upgrade task into a plurality of sub-upgrade packages, and respectively and simultaneously executing the plurality of upgrade subtasks to obtain each sub-upgrade package, thereby improving the obtaining efficiency of the upgrade package.
After each sub-upgrade package is sent to the opposite terminal device through different transmission links, the opposite terminal device can obtain a total upgrade package by combining the sub-upgrade packages, and the opposite terminal device can be upgraded by using the total upgrade package after the combination.
In the embodiment of the present application, since the length of the data packet transmitted by the device is limited, and the length of the transmission link constructed by the transmission unit is limited in transmitting the data packet, the data length of the sub-data packet transmitted by the single transmission may be determined according to the upper limit of the length of the data packet transmitted by the current device and the upper limit of the length of the data packet transmitted by the transmission unit or the transmission link, that is, optionally, in the embodiment of the present application, before the step of determining the sub-upgrade packet corresponding to each upgrade sub-task, the method further includes:
Acquiring a first transmission data quantity threshold value of the transmission link;
determining the data length of single transmission according to the first transmission data amount threshold and the second transmission data amount threshold of the current equipment;
splitting the total upgrade package corresponding to the upgrade package information into a plurality of sub-data packages according to the data length;
the first transmission data quantity threshold is an upper limit value of the data quantity which can be transmitted by the transmission link, the second transmission data quantity threshold is an upper limit value of the data quantity which can be transmitted by the current equipment, the minimum upper limit value is selected from the two upper limit values to be used as the data length of single transmission, and the total upgrade package is split into a plurality of sub-data packages according to the data length.
The total upgrade package is split into a plurality of sub-data packages, so that the plurality of sub-data packages can be transmitted under the transmission length supported by the equipment, and the transmission quality is ensured.
For each upgrade sub-task, a sub-upgrade package corresponding to the upgrade sub-task may be obtained according to a plurality of sub-data packages corresponding to the upgrade sub-task, that is, optionally, in some embodiments of the present application, the step of determining a sub-upgrade package corresponding to each upgrade sub-task includes:
For each upgrading sub-task, determining a plurality of sub-data packets corresponding to the upgrading sub-task, and obtaining a sub-upgrading packet corresponding to the upgrading sub-task according to the plurality of sub-data packets.
After determining a plurality of sub-packets corresponding to the upgrade sub-task, the plurality of sub-packets may be used as a sub-upgrade packet of the upgrade sub-task, for example, the plurality of sub-packets may be packaged to obtain a sub-upgrade packet, or the plurality of sub-packets may be combined to obtain a sub-upgrade packet.
In the embodiment of the application, when the total upgrade package is split into a plurality of sub-data packages, each sub-data package can be numbered, so that after receiving each sub-data package, the opposite terminal equipment combines each sub-data package according to the number to obtain the total upgrade package. Accordingly, after numbering each sub-packet, a plurality of sub-packets corresponding to each upgrade sub-task may be determined according to the number, that is, optionally, in some embodiments of the present application, the step of determining, for each upgrade sub-task, a plurality of sub-packets corresponding to the upgrade sub-task includes:
numbering a plurality of sub-data packets after splitting the total upgrade packet respectively to obtain a serial number corresponding to each sub-data packet;
For each upgrading sub-task, determining the sequence number of the sub-data packet to be transmitted corresponding to the upgrading sub-task, and determining a plurality of sub-data packets corresponding to the upgrading sub-task according to the sequence number.
The sub data packets are numbered, and a plurality of sub data packets corresponding to each upgrading sub task can be determined according to the numbers.
According to the method and the device for upgrading the equipment, the equipment upgrading task can be generated by the opposite terminal equipment according to the upgrading packet information by sending the upgrading packet information to the opposite terminal equipment, and the upgrading sub-tasks after the equipment upgrading task is split by the opposite terminal equipment are sent simultaneously to the sub-upgrading packets, so that the efficiency of sending the total upgrading packet corresponding to the upgrading packet information is improved, and the upgrading efficiency of the opposite terminal equipment is further improved.
Referring to fig. 4, fig. 4 is a frame structure diagram of an apparatus upgrade system according to an embodiment of the present application. The framework structure of the equipment upgrading system comprises:
the current device 121 is configured to generate a device upgrade task according to upgrade package information sent by the peer device; splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment; for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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; upgrading the current equipment according to the total upgrade package;
The opposite terminal device 122 is configured to send upgrade package information to the current device, determine a sub-upgrade package corresponding to each upgrade sub-task, and send the sub-upgrade package to the current device through the transmission link.
The opposite terminal equipment sends upgrade package information to the current equipment, so that the current equipment can receive relevant upgrade prompts, equipment upgrade tasks can be generated according to the upgrade package information after the current equipment receives the upgrade package information, the equipment upgrade tasks are split into a plurality of upgrade subtasks according to the number of supported transmission links by the current equipment, the upgrade subtasks can be executed simultaneously, the execution of the equipment upgrade tasks is accelerated, and the equipment upgrade efficiency is improved. After the sub-upgrade package corresponding to the total upgrade package is obtained through each upgrade sub-task, the total upgrade package can be obtained through a mode of combining each sub-upgrade package, and then the current equipment is upgraded by using the total upgrade package.
In the embodiment of the application, the opposite terminal equipment user receives the upgrade package data from the cloud or the server, generates upgrade package information according to the upgrade package data, and sends the upgrade package information to the current equipment.
Referring to fig. 5, fig. 5 is a flow chart of a method for upgrading a bluetooth speaker by a mobile phone according to an embodiment of the present application, where a specific flow of the method for upgrading a bluetooth speaker by a mobile phone may be as follows:
201. the mobile phone application program downloads a firmware upgrade package from the cloud according to the equipment identifier of the Bluetooth sound box;
202. operating an upgrade starting button on an application program of the mobile phone to enable the application program to be connected with a Bluetooth sound box;
203. the application program sends an upgrade negotiation command to the main control of the Bluetooth sound box, and carries parameters such as the registration, the length and the crc32 value calculated by the upgrade package file of the firmware upgrade package, the maximum transmission load of the mobile phone and the like;
204. if the Bluetooth sound box actively self-checks whether the Bluetooth sound box allows upgrading, executing a step 205, otherwise, ending the flow;
205. transmitting information of a plurality of low-power-consumption Bluetooth modules available to the Bluetooth sound box to an application program, and establishing connection between the application program and each low-power-consumption Bluetooth module;
206. the Bluetooth sound box splits the upgrade package into a plurality of sub-data packages according to the acquired parameters such as the length of the upgrade package, the maximum transmission load of the mobile phone and the like, wherein the length of each sub-data package is set according to the maximum transmission load of each low-power Bluetooth module and the minimum value in the maximum transmission load of the mobile phone;
207. Meanwhile, the Bluetooth sound box splits the upgrade package transmission task into a plurality of sub-equipment upgrade tasks, and each sub-equipment upgrade task transmits data packages with the same length;
208. the Bluetooth sound box groups a plurality of sub-equipment upgrading tasks according to the number of the self-supported low-power Bluetooth modules and the serial numbers of the sub-equipment upgrading tasks, wherein the number of the sub-equipment upgrading tasks corresponding to each group is basically consistent, each low-power Bluetooth module is responsible for a group of upgrading sub-tasks, and the Bluetooth sound box establishes a cache for each low-power Bluetooth module;
209. starting an upgrading subtask corresponding to each low-power consumption Bluetooth module, and requesting a subtask corresponding to a sequence number from an application program (wherein, the mobile phone also sets the sequence number and the length of the subtask in the packet head of the subtask) to obtain a subtask corresponding to the upgrading subtask;
210. after receiving the sub-upgrading packet, each low-power-consumption Bluetooth module transmits the sub-upgrading packet to a main control of the Bluetooth sound box, puts the sub-upgrading packet into a corresponding cache through the main control, and records the task progress of each low-power-consumption Bluetooth module through the main control;
211. after the execution of all the sub-upgrading tasks which are responsible for the low-power consumption Bluetooth modules is completed, the main control of the Bluetooth sound box combines all the sub-data packets according to the serial numbers of the sub-data packets to obtain a total upgrading packet;
212. The main control of the Bluetooth sound box calculates a crc32 value for the data of the total upgrade package;
213. comparing with the crc32 value sent by the application program, judging the integrity of the total upgrade package, if the total upgrade package is complete, executing step 214, otherwise, stopping upgrading;
214. upgrading the Bluetooth sound box according to the total upgrade package;
215. after the Bluetooth sound box is upgraded, the main control of the Bluetooth sound box sends an upgrade success command to an application program of the mobile phone, and an identification of success of upgrade is displayed in an interface of the application program;
216. and the mobile phone application program reports the identification of successful upgrading to the cloud.
When the Bluetooth sound box is updated, the firmware upgrade package is sent to the mobile phone application program, so that the mobile phone application program can send the firmware upgrade package to the Bluetooth device and assist the Bluetooth sound box to complete the device upgrade task.
In order to facilitate better implementation of the equipment upgrading method, the application also provides an equipment upgrading device based on the equipment upgrading method. Wherein the meaning of the third target word is the same as that in the device upgrading method, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an apparatus upgrade device according to an embodiment of the present application, where the apparatus upgrade device may include:
a generating module 301, configured to generate an equipment upgrade task according to upgrade packet information sent by an opposite terminal equipment;
a splitting module 302, configured to split the device upgrade task into a plurality of upgrade subtasks according to the number of transmission links supported by the current device;
an obtaining module 303, configured to obtain, for each transmission link, a corresponding sub-upgrade packet from the peer device according to an upgrade sub-task corresponding to the transmission link;
a combination module 304, configured to combine the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information;
and the upgrading module 305 is configured to upgrade the current device according to the total upgrading packet.
Wherein in some embodiments of the application, the splitting module 302 comprises:
The splitting unit is used for splitting the equipment upgrading task into a plurality of sub-equipment upgrading tasks;
a determining unit, configured to determine a plurality of task groups according to the number of transmission links supported by the current device;
the distribution unit is used for distributing the plurality of sub-equipment upgrading tasks to the plurality of task groups evenly;
the task group upgrading unit is used for obtaining upgrading sub-tasks corresponding to the task groups according to the plurality of sub-equipment upgrading tasks corresponding to the task groups according to each task group.
Wherein, in some embodiments of the present application, the upgrade package information includes first data verification information, and the upgrade module 305 includes:
the generation unit is used for generating second data verification information according to the total upgrade package;
the verification unit is used for verifying the total upgrade package data according to the first data verification information and the second data verification information;
and the upgrading unit is used for upgrading the current equipment according to the total upgrading packet after the data of the total upgrading packet passes the verification.
Wherein, in some embodiments of the application, the combining module 304 comprises:
and the combination unit is used for combining each sub-data packet in each sub-upgrading packet according to the sequence number aiming at the sub-upgrading packet of each transmission link to obtain a total upgrading packet corresponding to the upgrading packet information.
In the embodiment of the application, a generating module 301 generates an equipment upgrading task according to upgrading packet information sent by a peer-to-peer equipment, a splitting module 302 splits the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment, an acquiring module 303 acquires corresponding sub-upgrading packets from the peer-to-peer equipment according to the upgrading subtasks corresponding to the transmission links for each transmission link, a combining module 304 combines the sub-upgrading packets of each transmission link to obtain a total upgrading packet corresponding to the upgrading packet information, and finally, an upgrading module 305 upgrades the current equipment according to the total upgrading packet.
According to the method, device upgrading tasks are generated according to upgrading package information sent by opposite-end devices, the device upgrading tasks are split into a plurality of upgrading subtasks according to the number of transmission links supported by current devices, corresponding sub-upgrading packages are obtained from the opposite-end devices according to the upgrading subtasks corresponding to the transmission links for each transmission link, the sub-upgrading packages of the transmission links are combined to obtain total upgrading packages corresponding to the upgrading package information, and current devices are upgraded according to the total upgrading packages. According to the embodiment of the application, the upgrading task is split into the plurality of sub-upgrading tasks, and the plurality of sub-upgrading tasks are executed simultaneously, so that the acquisition of upgrading packet data is accelerated, and the equipment upgrading efficiency is accelerated. The upgrade task is split through the number of the transmission links supported by the equipment, so that each transmission link can finish one sub-upgrade task, and meanwhile, the data of each sub-upgrade package is transmitted, the acquisition efficiency of the upgrade package data is quickened, the equipment upgrade efficiency is improved, and the user experience is improved.
Referring to fig. 7, fig. 7 is another schematic structural diagram of an apparatus upgrade device according to an embodiment of the present application, where the apparatus upgrade device may include:
a first sending module 311, configured to send upgrade package information to an opposite terminal device, where the opposite terminal device generates a device upgrade task according to the upgrade package information, and the opposite terminal device splits the device upgrade task into a plurality of upgrade subtasks according to the number of transmission links supported by the opposite terminal device;
and a second sending module 312, configured to determine a sub-upgrade packet corresponding to each upgrade sub-task, send the sub-upgrade packet to the peer device through the transmission link, and the peer device combines the sub-upgrade packets of each transmission link to obtain a total upgrade packet corresponding to the upgrade packet information, and upgrade the peer device according to the total upgrade packet.
Wherein, in some embodiments of the present application, the apparatus further comprises a partitioning module, the partitioning module comprising:
a threshold value obtaining unit, configured to obtain a first transmission data amount threshold value of the transmission link;
a length determining unit, configured to determine a data length of a single transmission according to the first transmission data amount threshold and a second transmission data amount threshold of the current device;
The dividing unit is used for dividing the total upgrade package corresponding to the upgrade package information into a plurality of sub-data packages according to the data length;
the second transmitting module 312 includes:
the data packet determining unit is used for determining a plurality of sub-data packets corresponding to the upgrading sub-task according to each upgrading sub-task, and obtaining a sub-upgrading packet corresponding to the upgrading sub-task according to the plurality of sub-data packets.
Wherein, in some embodiments of the present application, the data packet determining unit includes:
a numbering subunit, configured to number the plurality of sub-data packets after splitting the total upgrade packet, respectively, to obtain a sequence number corresponding to each sub-data packet;
the data packet determining subunit is configured to determine, for each upgrade subtask, a sequence number of a sub-data packet to be transmitted corresponding to the upgrade subtask, and determine, according to the sequence number, a plurality of sub-data packets corresponding to the upgrade subtask.
In this embodiment of the present application, the first sending module 311 sends upgrade packet information to the peer device, so that the peer device generates a device upgrade task according to the upgrade packet information, splits the device upgrade task into a plurality of upgrade sub-tasks according to the number of transmission links supported by the peer device, then, the second sending module 312 determines a sub-upgrade packet corresponding to each upgrade sub-task, and sends the sub-upgrade packet to the peer device through the transmission links, and the peer device combines the sub-upgrade packets of each transmission link to obtain a total upgrade packet corresponding to the upgrade packet information, and upgrades the peer device according to the total upgrade packet.
According to the method and the device for upgrading the equipment, the equipment upgrading task can be generated by the opposite terminal equipment according to the upgrading packet information by sending the upgrading packet information to the opposite terminal equipment, and the upgrading sub-tasks after the equipment upgrading task is split by the opposite terminal equipment are sent simultaneously to the sub-upgrading packets, so that the efficiency of sending the total upgrading packet corresponding to the upgrading packet information is improved, and the upgrading efficiency of the opposite terminal equipment is further improved.
In addition, the present application further provides an electronic device, as shown in fig. 8, which shows a schematic structural diagram of the electronic device according to the present application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, an object interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, 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 further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with object settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads 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 runs the application programs stored in the memory 402, so as to implement the steps in any device upgrading method provided by the present application.
According to the method, equipment upgrading tasks are generated according to upgrading package information sent by opposite-end equipment, the equipment upgrading tasks are split into a plurality of upgrading subtasks according to the number of transmission links supported by current equipment, corresponding sub-upgrading packages are obtained from the opposite-end equipment according to the upgrading subtasks corresponding to the transmission links aiming at each transmission link, the sub-upgrading packages of the transmission links are combined to obtain a total upgrading package corresponding to the upgrading package information, and current equipment is upgraded according to the total upgrading package. According to the embodiment of the application, the upgrading task is split into the plurality of sub-upgrading tasks, and the plurality of sub-upgrading tasks are executed simultaneously, so that the acquisition of upgrading packet data is accelerated, and the equipment upgrading efficiency is accelerated. The upgrade task is split through the number of the transmission links supported by the equipment, so that each transmission link can finish one sub-upgrade task, and meanwhile, the data of each sub-upgrade package is transmitted, the acquisition efficiency of the upgrade package data is quickened, the equipment upgrade efficiency is improved, and the user experience is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer readable storage medium having stored thereon a computer program that can be loaded by a processor to perform the steps of any of the device upgrade methods provided by the present application.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because 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 any of the device upgrade methods provided by the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The foregoing has outlined some of the more detailed description of the method, system, apparatus and computer readable storage medium of the present application, wherein specific embodiments are provided to facilitate the understanding of the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the present description should not be construed as limiting the present application in summary.

Claims (11)

1. A method for upgrading a device, applied to a current device, comprising:
generating an equipment upgrading task according to upgrading packet information sent by opposite-end equipment;
splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment;
for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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 equipment according to the total upgrade package.
2. The method of claim 1, wherein splitting the device upgrade task into a number of upgrade sub-tasks according to the number of transmission links supported by the current device comprises:
splitting the equipment upgrading task into a plurality of sub-equipment upgrading tasks;
determining a plurality of task groups according to the number of transmission links supported by the current equipment;
the plurality of sub-equipment upgrading tasks are evenly distributed to the plurality of task groups;
aiming at each task group, obtaining upgrading sub-tasks corresponding to the task group according to a plurality of sub-equipment upgrading tasks corresponding to the task group.
3. The method of claim 1, wherein the upgrade package information includes first data verification information, and wherein 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;
and after the data of the total upgrade package passes the verification, upgrading the current equipment according to the total upgrade package.
4. The method of claim 1, wherein the combining the sub-upgrade packages of the transmission links to obtain the total upgrade package corresponding to the upgrade package information includes:
and combining all the sub data packets in all the sub upgrading packets according to sequence numbers aiming at the sub upgrading packets of all the transmission links to obtain a total upgrading packet corresponding to the upgrading packet information.
5. A method for upgrading a device, applied to a current device, comprising:
the method comprises the steps that upgrade package information is sent to opposite terminal equipment, equipment upgrade tasks are generated by the opposite terminal equipment according to the upgrade package information, and the equipment upgrade tasks are split into a plurality of upgrade subtasks by the opposite terminal equipment according to the number of transmission links supported by the opposite terminal equipment;
Determining a sub-upgrade package corresponding to each upgrade sub-task, sending the sub-upgrade package to the opposite terminal equipment through the transmission link, combining the sub-upgrade packages of each transmission link by the opposite terminal equipment to obtain a total upgrade package corresponding to the upgrade package information, and upgrading the opposite terminal equipment according to the total upgrade package.
6. The method of claim 5, wherein prior to determining the sub-upgrade package corresponding to each upgrade sub-task, the method further comprises:
acquiring a first transmission data quantity threshold value of the transmission link;
determining the data length of single transmission according to the first transmission data amount threshold and the second transmission data amount threshold of the current equipment;
splitting the total upgrade package corresponding to the upgrade package information into a plurality of sub-data packages according to the data length;
the determining the sub-upgrade package corresponding to each upgrade sub-task includes:
for each upgrading sub-task, determining a plurality of sub-data packets corresponding to the upgrading sub-task, and obtaining a sub-upgrading packet corresponding to the upgrading sub-task according to the plurality of sub-data packets.
7. The method of claim 6, wherein the determining, for each upgrade sub-task, a number of sub-packets corresponding to the upgrade sub-task comprises:
Numbering a plurality of sub-data packets after splitting the total upgrade packet respectively to obtain a serial number corresponding to each sub-data packet;
for each upgrading sub-task, determining the sequence number of the sub-data packet to be transmitted corresponding to the upgrading sub-task, and determining a plurality of sub-data packets corresponding to the upgrading sub-task according to the sequence number.
8. A device upgrade system is characterized by comprising a current device and a peer device, wherein,
the current device is used for generating a device upgrading task according to the upgrading packet information sent by the opposite terminal device; splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment; for each transmission link, acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to an upgrade sub-task 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; upgrading the current equipment according to the total upgrade package;
and the opposite terminal equipment is used for sending the upgrade package information to the current equipment, determining a sub upgrade package corresponding to each upgrade sub task, and sending the sub upgrade package to the current equipment through the transmission link.
9. An apparatus upgrade device, comprising:
the generating module is used for generating equipment upgrading tasks according to the upgrading packet information sent by the opposite-end equipment;
the splitting module is used for splitting the equipment upgrading task into a plurality of upgrading subtasks according to the number of transmission links supported by the current equipment;
the acquisition module is used for acquiring a corresponding sub-upgrade packet from the opposite terminal equipment according to the upgrade sub-task corresponding to each transmission link;
the combination module is used for combining the sub-upgrade packages of each transmission link to obtain a total upgrade package corresponding to the upgrade package information;
and the upgrading module is used for upgrading the current equipment according to the total upgrading packet.
10. An apparatus upgrade device, comprising:
the device comprises a first sending module, a second sending module and a second sending module, wherein the first sending module is used for sending upgrade package information to opposite terminal equipment, the opposite terminal equipment generates equipment upgrade tasks according to the upgrade package information, and the opposite terminal equipment splits the equipment upgrade tasks into a plurality of upgrade subtasks according to the number of transmission links supported by the opposite terminal equipment;
the second sending module is used for determining a sub-upgrade package corresponding to each upgrade sub-task, sending the sub-upgrade package to the opposite terminal equipment through the transmission link, combining the sub-upgrade packages of the transmission links by the opposite terminal equipment to obtain a total upgrade package corresponding to the upgrade package information, and upgrading the opposite terminal equipment according to the total upgrade package.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the device upgrade method according to any one of claims 1-4 or the steps of the device upgrade method according to any one of claims 5-7.
CN202211145136.2A 2022-09-20 2022-09-20 Device upgrading method, system, device and computer readable storage medium Pending CN117135048A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211145136.2A CN117135048A (en) 2022-09-20 2022-09-20 Device upgrading method, system, device and computer readable storage medium
PCT/CN2023/112576 WO2024060874A1 (en) 2022-09-20 2023-08-11 Device upgrading method, system, and apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211145136.2A CN117135048A (en) 2022-09-20 2022-09-20 Device upgrading method, system, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN117135048A true CN117135048A (en) 2023-11-28

Family

ID=88849616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211145136.2A Pending CN117135048A (en) 2022-09-20 2022-09-20 Device upgrading method, system, device and computer readable storage medium

Country Status (2)

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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329741B (en) * 2017-06-12 2020-12-25 北京北信源软件股份有限公司 Software distributed upgrading method and device based on fingerprint identification
CN112416408A (en) * 2020-12-08 2021-02-26 金卡智能集团股份有限公司 Firmware upgrading method, device, equipment and computer readable storage medium
CN114915618B (en) * 2021-01-29 2023-09-12 华为技术有限公司 Upgrade package downloading method and device
CN114610353A (en) * 2022-03-17 2022-06-10 深圳云里物里科技股份有限公司 Firmware upgrading method, system, device, gateway, electronic tag and storage medium

Also Published As

Publication number Publication date
WO2024060874A1 (en) 2024-03-28

Similar Documents

Publication Publication Date Title
CN105979009B (en) A kind of increase load automatic balancing method for cloud application container
CN103327117B (en) Cross-system running method and device for application programs
CN102438046A (en) Karaoke song ordering system based on cloud computing and song ordering method thereof
CN113765714B (en) Equipment network distribution method and device, storage medium and electronic equipment
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN111290965B (en) Test method, test device, computer equipment and storage medium
CN112954717A (en) Household appliance network distribution method and device based on H5 page
CN112171656B (en) Control method and device of mechanical arm and server
CN116450353A (en) Processor core matching method and device, electronic equipment and storage medium
CN105933136A (en) Resource scheduling method and system
CN117135048A (en) Device upgrading method, system, device and computer readable storage medium
CN110474891A (en) Business access control method and device based on multisystem smart machine
CN109343880A (en) RN packet updating method, RN packet updating device and readable storage medium
CN113377710B (en) Data acquisition method and device and electronic equipment
CN115344644A (en) Data synchronization method and device, electronic equipment and computer readable storage medium
CN104618421A (en) Method and device for distributing storage resources
CN114217833A (en) Application updating method and device, computer equipment and computer-readable storage medium
CN114449554B (en) Equipment upgrading method, device, equipment and storage medium
CN113051103B (en) Data processing method and device and electronic equipment
CN113986279A (en) Intelligent equipment upgrading method and device, storage medium and electronic equipment
CN118301710A (en) Distribution network method and device, storage medium and electronic equipment
CN116932029A (en) Component library management method and device, intelligent equipment and storage medium
CN117641196A (en) Sound box upgrading method and device, electronic equipment and computer readable storage medium
CN113765886A (en) Multimedia playing method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination