A broadcast upgrade method and system

By using a genetic algorithm or a global search algorithm to determine the broadcast center and group in the delivery of upgrade information, and using multiple broadcasts to deliver the information step by step, the problem in the existing technology that it is difficult to balance the efficiency and accuracy of the delivery of upgrade information is solved. Efficient and accurate upgrade information transmission is achieved.

CN118295685BActive Publication Date: 2024-08-27HENGYE ELECTRONICS JIAXING CITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410714663.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-27
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

In commercial or industrial scenarios, while existing technology improves the efficiency of delivering upgrade information, it is difficult to ensure the accuracy of the upgrade information. In particular, when multiple devices are upgraded, information delivery errors are prone to occur.

Method used

Genetic algorithm or global search algorithm is used to determine the broadcast center and broadcast group, and upgrade information is transmitted through multiple broadcasts step by step. The distance and load information between upgrade objects are considered to ensure accurate transmission of information.

Benefits of technology

It improves the efficiency of issuing upgrade information, while ensuring the accuracy of the information and reducing errors caused by excessive distance and load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118295685B
    Figure CN118295685B
Patent Text Reader

Abstract

The embodiments of the present specification disclose a broadcast upgrade method and system, wherein the broadcast upgrade method includes: obtaining address coordinate information of each upgrade object; selecting a first upgrade object from all upgrade objects, and sending upgrade information to the first upgrade object; using a genetic algorithm or a global search algorithm to determine a first broadcast group with the first upgrade object as a first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as a second broadcast center; broadcasting the upgrade information in the first broadcast group through the first broadcast center to achieve information upgrade of the upgrade object in the first broadcast group; broadcasting the upgrade information in each second broadcast group corresponding to each second broadcast center to achieve information upgrade of the upgrade object in each second broadcast group; and ensuring the accuracy of sending the upgrade information on the basis of improving the efficiency of sending the upgrade information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Multiple embodiments of the present specification relate to the field of information technology, and specifically to a broadcast upgrade method and system. Background Art

[0002] In commercial or industrial scenarios, multiple devices need to be upgraded. This is usually done by sending upgrade information to each device separately, and each device then completes the upgrade based on the received upgrade information. This upgrade method is inefficient.

[0003] In order to improve the upgrade efficiency, there is currently a method of broadcasting upgrade information to upgrade objects. This method can simultaneously deliver upgrade information to multiple upgrade objects, thereby improving the upgrade efficiency. However, there is a problem of low accuracy in delivering upgrade information.

[0004] Therefore, there is an urgent need for a method that can ensure the accuracy of upgrading information delivery while improving the efficiency of upgrading information delivery. Summary of the invention

[0005] The embodiments of this specification provide a broadcast upgrade method and system, electronic device, and storage medium, which can improve the efficiency of upgrading information delivery and ensure the accuracy of upgrading information delivery. The technical solution is as follows:

[0006] In a first aspect, an embodiment of the present specification provides a broadcast upgrade method, including:

[0007] Get the address coordinate information of each upgraded object;

[0008] Selecting a first upgrade object from among all upgrade objects, and sending upgrade information to the first upgrade object;

[0009] Using a genetic algorithm or a global search algorithm, determine a first broadcast group with the first upgrade object as the first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as the second broadcast center;

[0010] Broadcasting the upgrade information in the first broadcast group through the first broadcast center to achieve information upgrade of the upgrade object in the first broadcast group;

[0011] Broadcasting the upgrade information in the second broadcast groups corresponding to the second broadcast centers to achieve information upgrade of the upgrade objects in the second broadcast groups;

[0012] When the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used considers the distance information between each upgraded object obtained based on the address coordinate information of each upgraded object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgraded objects in the first broadcast group and each second broadcast group.

[0013] As a preferred solution, the selecting the first upgrade object from all upgrade objects includes:

[0014] Based on the address coordinate information of each upgraded object, obtain the center address coordinate information;

[0015] Based on the address coordinate information and the center address coordinate information of each upgrade object, a first upgrade object is selected from all upgrade objects.

[0016] As a preferred solution, when the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function calculation step used includes:

[0017] Based on the address coordinate information of each upgraded object, obtain the first distances between the first broadcast center in the first broadcast group and the remaining upgraded objects in the first broadcast group, and obtain the sum of the first distances based on the multiple first distances;

[0018] Acquire a first preset load value of the first broadcast center, and acquire a first load positive and negative value of the first broadcast group based on the first preset load value of the first broadcast center and the number of upgrade objects in the first broadcast group;

[0019] For each second broadcast group, based on the address coordinate information of each upgraded object, obtain the second distances between the second broadcast center in the second broadcast group and the remaining upgraded objects in the second broadcast group, and obtain the sum of the second distances based on the multiple second distances;

[0020] For each second broadcast group, a second preset load value of the second broadcast center is obtained, and a second load positive and negative value of the second broadcast group is obtained based on the second preset load value of the second broadcast center and the number of upgrade objects in the second broadcast group;

[0021] The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group.

[0022] As a preferred solution, the first load positive and negative value is the difference between the first preset load value and the number of upgrade objects in the first broadcast group;

[0023] The second load positive and negative value is a difference between a second preset load value and the number of upgrade objects in the second broadcast group.

[0024] As a preferred solution, before calculating the fitness function value based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, the method further includes:

[0025] For each second broadcast center, based on the address coordinate information of each upgraded object, a third distance between the second broadcast center and another second broadcast center closest to the second broadcast center is obtained;

[0026] Based on the third distances corresponding to the second broadcast centers, obtaining a sum of the third distances;

[0027] The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, including:

[0028] The fitness function value is calculated based on the third distance sum, the first distance sum, the first load positive and negative values, and the second distance sums and second load positive and negative values ​​corresponding to each second broadcast group.

[0029] As a preferred solution, when the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used also considers the number of second broadcast groups.

[0030] As a preferred solution, before selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object, the method further includes:

[0031] A preset verification code generation mechanism is stored at all upgrade objects;

[0032] The selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object includes:

[0033] Selecting a first upgrade object from among all upgrade objects, and sending upgrade information and a complete verification code corresponding to the upgrade information generated by the verification code generation mechanism to the first upgrade object;

[0034] Before the upgrade information is broadcasted in the first broadcast group through the first broadcast center to upgrade the information of the upgrade object in the first broadcast group, the method further includes:

[0035] The first broadcast center generates a complete verification code corresponding to the upgrade information through a verification code generation mechanism;

[0036] When the complete verification code and the complete check code are consistent, the upgrade information is broadcasted in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group.

[0037] As a preferred solution, the upgrade information includes multiple upgrade sub-information;

[0038] The broadcasting of the upgrade information in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group includes:

[0039] The first broadcast center generates a first segment check code corresponding to each upgrade sub-information through the check code generation mechanism;

[0040] The first broadcast center combines the multiple upgrade sub-information and the multiple first segment check codes having corresponding relationships to obtain multiple first broadcast packets;

[0041] The first broadcast center broadcasts a plurality of first broadcast packets frame by frame to all upgrade objects in the first broadcast group;

[0042] For each upgrade object in the first broadcast group, a first segment verification code corresponding to each of the upgrade sub-information in the received plurality of first broadcast packets is generated through a verification code generation mechanism;

[0043] Each upgrade object in the first broadcast group completes information upgrade based on all received first broadcast packets when all first segment check codes in the received first broadcast packets are consistent with the corresponding first segment verification code;

[0044] Wherein, when the first segment check code in the received first broadcast packet is inconsistent with the corresponding first segment verification code at the upgrade object in the first broadcast group, the method further includes the steps of:

[0045] The upgrade object in the first broadcast group initiates a packet repair request to the first broadcast center for the first broadcast packet in which the first segment check code is inconsistent with the first segment verification code, so as to perform a packet repair operation, and completes the information upgrade after the packet repair operation.

[0046] As a preferred solution, the broadcasting of the upgrade information in the second broadcast groups corresponding to each second broadcast center to achieve the information upgrade of the upgrade objects in each second broadcast group includes:

[0047] Each second broadcast center generates a second segment check code corresponding to each upgrade sub-information through the check code generation mechanism;

[0048] Each second broadcast center combines a plurality of upgrade sub-information and a plurality of second segment check codes having a corresponding relationship to obtain a plurality of second broadcast packets;

[0049] Each second broadcast center broadcasts a plurality of second broadcast packets frame by frame to all upgrade objects in the second broadcast group corresponding thereto;

[0050] For each upgrade object in each second broadcast group, a second segment verification code corresponding to each of the upgrade sub-information in the received plurality of second broadcast packets is generated through a verification code generation mechanism;

[0051] Each upgrade object in each second broadcast group completes information upgrade based on all received second broadcast packets when the second segment check codes in all received second broadcast packets are consistent with the corresponding second segment verification code;

[0052] Wherein, when the second segment check code in the received second broadcast packet is inconsistent with the corresponding second segment verification code at the upgrade object in the second broadcast group, the method further includes the steps of:

[0053] The upgrade object in the second broadcast group initiates a packet replacement request to the upgrade object closest to it and which has received complete upgrade information among all upgrade objects for the second broadcast packet in which the second fragment check code is inconsistent with the second fragment verification code, to perform the packet replacement operation, and complete the information upgrade after the packet replacement operation.

[0054] In a second aspect, the embodiments of this specification provide a broadcast upgrade system, including multiple upgrade objects and an upgrade information delivery module;

[0055] The upgrade information sending module includes an acquisition unit, a sending unit, and a networking unit;

[0056] The acquisition unit acquires the address coordinate information of each upgrade object;

[0057] The sending unit selects a first upgrade object from all upgrade objects and sends the upgrade information to the first upgrade object;

[0058] The networking unit adopts a genetic algorithm or a global search algorithm to determine a first broadcast group with the first upgrade object as a first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as a second broadcast center, and when the genetic algorithm or the global search algorithm is adopted to determine the first broadcast group and each second broadcast group, the fitness function adopted considers the distance information between each upgrade object obtained based on the address coordinate information of each upgrade object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgrade objects in the first broadcast group and each second broadcast group;

[0059] The upgrade object includes a broadcast unit, a receiving unit, and an upgrade unit;

[0060] The broadcast unit broadcasts the upgrade information in the broadcast group to which the upgrade object belongs;

[0061] The receiving unit receives the upgrade information in the broadcast group to which the upgrade object belongs;

[0062] The upgrading unit performs information upgrading based on the received upgrading information.

[0063] In a third aspect, an embodiment of this specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps described in the first aspect of the above embodiment.

[0064] In a fourth aspect, an embodiment of this specification provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps described in the first aspect of the above embodiment.

[0065] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0066] The upgrade information is issued in a step-by-step manner by broadcasting multiple times. The upgrade information is first issued to the first broadcast center, and then the upgrade information is broadcasted and issued in the first broadcast group by the first broadcast center. Further, each upgrade object in the first broadcast group acts as each second broadcast center to issue the upgrade information in each second broadcast group, so as to achieve the upgrade information reception of all upgrade objects. In addition, a genetic algorithm or a global search algorithm is used to determine the first broadcast group and each second broadcast group, wherein the fitness function used considers the distance information between each upgrade object obtained based on the address coordinate information of each upgrade object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number of upgrade objects in the first broadcast group and each second broadcast group, thereby ensuring the accuracy of the upgrade information issuance on the basis of improving the efficiency of the upgrade information issuance. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0068] Figure 1 It is a schematic diagram of the architecture of a broadcast upgrade method implementation process provided in an embodiment of this specification.

[0069] Figure 2 It is a flowchart of a broadcast upgrade method provided in an embodiment of this specification.

[0070] Figure 3 It is a structural diagram of a broadcast upgrade system provided in an embodiment of this specification.

[0071] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0072] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0073] The terms "first", "second", "third", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0074] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present specification. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described with respect to some examples may be combined in other examples.

[0075] Reference Figure 1 The figure is a schematic diagram of the environment architecture for implementing the broadcast upgrade method provided in one or more embodiments of the present specification.

[0076] The broadcast upgrade method provided in one or more embodiments of this specification is applicable to all scenarios where there are multiple upgrade objects that need to receive upgrade information to complete information upgrade and there is a certain distance between the multiple upgrade objects, such as electricity meter program upgrade, gas meter program upgrade, factory equipment program upgrade, etc.

[0077] The following combination Figure 1 , the broadcast upgrade method provided in the embodiment of this specification is explained:

[0078] Reference Figure 1As shown in the figure, there are 21 upgrade objects in different positions. Currently, upgrade information needs to be sent to the 21 upgrade objects. If the upgrade information is broadcast and sent to the 21 upgrade objects at the same time, although the efficiency of information sending can be improved, this puts a large load pressure on the upper-end information sending module, which needs to send the upgrade information to the 21 upgrade objects at the same time, and since the upper-end information sending module is far away from the 21 upgrade objects, information errors are prone to occur during the sending process.

[0079] Therefore, in the broadcast upgrade method provided in multiple embodiments of this specification, the entire upgrade information delivery process is divided into at least three parts, that is, it is executed at least three times. The first time, the upper end information delivery module first delivers the upgrade information to Figure 1 The first broadcast center is shown in the figure. The second is Figure 1 As shown in FIG, the first broadcast center sends the upgrade information to the remaining upgrade objects in the first broadcast group, that is, Figure 1 The third broadcast center is Figure 1 As shown in FIG. 1 , each second broadcast center sends the upgrade information to the remaining upgrade objects in each second broadcast group.

[0080] In determining the first broadcast group and each second broadcast group, a genetic algorithm or a global search algorithm is used, wherein the adopted fitness function takes into account the distance information between each upgraded object obtained based on the address coordinate information of each upgraded object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgraded objects in the first broadcast group and each second broadcast group, thereby ensuring the accuracy of sending the upgrade information on the basis of improving the efficiency of sending the upgrade information.

[0081] It is understandable that the longer the distance, the easier it is for the information to be sent to be erroneous, and the heavier the load, the easier it is for the information to be sent to be erroneous. Therefore, in multiple embodiments of this specification, both distance information and load information are considered simultaneously.

[0082] Among them, it should be noted that:

[0083] The goal of a global search algorithm is to find the global optimal solution in the search space, so it will traverse the entire search space and try different solutions to find the optimal solution or a solution close to the optimal solution. Therefore, as the search space increases, the computational cost of the global search algorithm will also increase, and the search time may be very long.

[0084] Genetic algorithm is an optimization algorithm based on biological evolution theory. It simulates the biological evolution process in nature and evolves better solutions from generation to generation through crossover and mutation operations between individuals in the population. Therefore, genetic algorithm can handle complex problems, especially those with huge search space and difficult to solve.

[0085] Based on the above, it can be understood that when the number of upgrade objects exceeds a preset threshold, a genetic algorithm is used to search for the optimal solution, otherwise a global search algorithm is used to search for the optimal solution, thereby improving the efficiency of sending upgrade information.

[0086] It should also be noted that the upper end information sending module can be but is not limited to a terminal device, a plug-in medium (Note: Figure 1 The architecture diagram shown should also include a terminal device or plug-in medium for sending the upgrade information for the first time. Figure 1 The terminal device may be a mobile phone, a personal computer, a tablet computer, an IoT (Internet of Things) device, a wearable smart device, a laptop computer, a desktop computer, etc. The plug-in medium may be a USB flash drive, an optical disk, a memory card, etc.

[0087] Reference Figure 2 As shown, Figure 2 A flowchart of a broadcast upgrade method provided in an embodiment of this specification may include at least the following steps:

[0088] Step 202: Obtain address coordinate information of each upgrade object;

[0089] Step 204: Select a first upgrade object from all upgrade objects, and send upgrade information to the first upgrade object;

[0090] Step 206: Using a genetic algorithm or a global search algorithm, determine a first broadcast group with the first upgrade object as the first broadcast center and second broadcast groups with each upgrade object in the first broadcast group other than the first upgrade object as the second broadcast center;

[0091] Step 208: Broadcast the upgrade information in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group;

[0092] Step 210: Broadcast the upgrade information in the second broadcast groups corresponding to the second broadcast centers to implement the information upgrade of the upgrade objects in the second broadcast groups.

[0093] When the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used considers the distance information between each upgraded object obtained based on the address coordinate information of each upgraded object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgraded objects in the first broadcast group and each second broadcast group.

[0094] The broadcast upgrade method described in multiple embodiments of this specification uses multiple broadcasts to send the upgrade information step by step. The upgrade information is first sent to the first broadcast center, and then the first broadcast center broadcasts the upgrade information in the first broadcast group. Further, each upgrade object in the first broadcast group acts as a second broadcast center to send the upgrade information in each second broadcast group, so as to achieve the upgrade information reception of all upgrade objects. In addition, a genetic algorithm or a global search algorithm is used to determine the first broadcast group and each second broadcast group, wherein the fitness function used considers the distance information between each upgrade object obtained based on the address coordinate information of each upgrade object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number of upgrade objects in the first broadcast group and each second broadcast group, thereby ensuring the accuracy of the upgrade information sending on the basis of improving the efficiency of the upgrade information sending.

[0095] In one embodiment of the present specification, the selecting a first upgrade object from all upgrade objects includes:

[0096] Step 2022: Based on the address coordinate information of each upgrade object, obtain the center address coordinate information;

[0097] Step 2024: Based on the address coordinate information and center address coordinate information of each upgrade object, select a first upgrade object from all upgrade objects.

[0098] It is understandable that, for the selection of the first upgrade object, the upgrade object closest to the center of the entire upgrade area should be selected as much as possible. Therefore, in this embodiment, the center address coordinate information is first obtained based on the address coordinate information of each upgrade object. The center address coordinate is as follows:

[0099] ,

[0100] in, Indicates Upgrade objects in The coordinates of the axes, Indicates Upgrade objects in The coordinates of the axes, Indicates Upgrade objects in The coordinates of the axes, Indicates the total number of upgrade objects.

[0101] It can be understood that in step 2024, based on the address coordinate information and the center address coordinate information of each upgrade object, the upgrade object closest to the center address coordinate is selected from all upgrade objects as the first upgrade object.

[0102] In one embodiment of the present specification, when the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function calculation step used includes:

[0103] Step 2062: based on the address coordinate information of each upgraded object, obtain the first distances between the first broadcast center in the first broadcast group and the remaining upgraded objects in the first broadcast group, and obtain the sum of the first distances based on the multiple first distances;

[0104] Step 2064: obtaining a first preset load value of the first broadcast center, and obtaining a first load positive and negative value of the first broadcast group based on the first preset load value of the first broadcast center and the number of upgrade objects in the first broadcast group;

[0105] Step 2066: for each second broadcast group, based on the address coordinate information of each upgraded object, obtain the second distances between the second broadcast center in the second broadcast group and the remaining upgraded objects in the second broadcast group, and obtain the sum of the second distances based on the multiple second distances;

[0106] Step 2068: For each second broadcast group, obtain the second preset load value of the second broadcast center, and obtain the second load positive and negative value of the second broadcast group based on the second preset load value of the second broadcast center and the number of upgrade objects in the second broadcast group;

[0107] Step 20610: Calculate the fitness function value based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group.

[0108] In one embodiment of the present specification, the first load positive and negative value is the difference between the first preset load value and the number of upgrade objects in the first broadcast group;

[0109] For example, the first preset load value is 8, and the number of upgrade objects in the first broadcast group is 7, then the positive and negative value of the first load is 8-7=1.

[0110] The second load positive and negative value is the difference between the second preset load value and the number of upgrade objects in the second broadcast group;

[0111] For example, the second preset load value is 3, and the number of upgrade objects in the second broadcast group is 5, then the positive and negative value of the second load is 3-5=-2.

[0112] It can be understood that in the broadcast upgrade method described in multiple embodiments of the present specification, the desired goal is to make the distance sum of the entire broadcast link smaller and the broadcast load in the entire broadcast link smaller. Therefore, in this embodiment, the fitness function used includes the above-mentioned first distance sum, first load positive and negative values, and the second distance sum and second load positive and negative values ​​corresponding to each second broadcast group.

[0113] The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, and the fitness function value can be obtained by, but is not limited to, the following steps:

[0114] Based on the sum of the first distances and the sum of each second distance, a distance calculation factor is calculated (which may be, but is not limited to, in an accumulation manner);

[0115] Based on the positive and negative value of the first load and the positive and negative values ​​of each second load, a load calculation factor is calculated (which may be, but is not limited to, in an accumulation manner);

[0116] Based on the distance calculation factor and the load calculation factor, the fitness function value is calculated.

[0117] The following calculation formula may be used but is not limited to:

[0118] ,

[0119] in, Represents the fitness function value. , . It represents the distance calculation factor obtained by adding the sum of the first distance and the sum of each second distance. That is, the larger the distance calculation factor, The smaller the value of . It indicates the load calculation factor obtained by accumulating the positive and negative values ​​of the first load and the positive and negative values ​​of each second load. That is, the larger the load calculation factor, The larger the value of .

[0120] The larger the value, the The higher the value, the better the grouping situation.

[0121] When calculating specifically, you can also give , Different calculation weight coefficients.

[0122] In one embodiment of the present specification, before calculating the fitness function value based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, the further step includes:

[0123] For each second broadcast center, based on the address coordinate information of each upgraded object, a third distance between the second broadcast center and another second broadcast center closest to the second broadcast center is obtained;

[0124] Based on the third distances corresponding to the second broadcast centers, obtaining a sum of the third distances;

[0125] The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, including:

[0126] The fitness function value is calculated based on the third distance sum, the first distance sum, the first load positive and negative values, and the second distance sums and second load positive and negative values ​​corresponding to each second broadcast group.

[0127] It can be understood that the second broadcast centers are scattered throughout the entire upgrade information distribution area, and there are multiple of them. During the upgrade information broadcast process, two adjacent second broadcast centers are prone to transmission interference due to their close distance, which may cause information errors. Therefore, in the broadcast upgrade method described in this embodiment, the calculation of the fitness function value also considers the above-mentioned sum of the third distances, that is, it is hoped that the sum of the third distances is as large as possible, thereby avoiding the transmission interference problem when the second broadcast centers broadcast the upgrade information.

[0128] In one embodiment of the present specification, when the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used also considers the number of second broadcast groups.

[0129] It is understandable that the more the number of second broadcast groups, the more upgrade objects need to have broadcast capabilities, and the granting of broadcast capabilities usually requires hardware modification of the upgrade objects in advance, which will increase the modification cost. Therefore, in this embodiment, the fitness function used also considers the number of second broadcast groups.

[0130] Of course, there are also some upgrade information delivery scenarios where all upgrade objects have broadcast capabilities. However, the more second broadcast groups there are within a certain range, the more likely transmission interference problems will occur when upgrade information is broadcast simultaneously.

[0131] In summary, the calculation formula of the fitness function can be changed to, but not limited to, the following formula:

[0132] ,

[0133] in, , It represents the sum of the third distances, that is, the larger the sum of the third distances, The larger the value of . Indicates the number of the second broadcast group. That is, the larger the number of the second broadcast group, The smaller the value of .

[0134] When calculating specifically, you can also give , , , Different calculation weight coefficients.

[0135] In one embodiment of the present specification, before selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object, the method further includes:

[0136] A preset verification code generation mechanism is stored at all upgrade objects;

[0137] The selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object includes:

[0138] Selecting a first upgrade object from among all upgrade objects, and sending upgrade information and a complete verification code corresponding to the upgrade information generated by the verification code generation mechanism to the first upgrade object;

[0139] Before the upgrade information is broadcasted in the first broadcast group through the first broadcast center to upgrade the information of the upgrade object in the first broadcast group, the method further includes:

[0140] The first broadcast center generates a complete verification code corresponding to the upgrade information through a verification code generation mechanism;

[0141] When the complete verification code and the complete check code are consistent, the upgrade information is broadcasted in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group.

[0142] It is understandable that when the upgrade information is sent to the first broadcast center, a complete verification code corresponding to the upgrade information generated by the verification code generation mechanism is attached. Before the first broadcast center broadcasts the upgrade information, it first generates a complete verification code corresponding to the upgrade information by using a verification code generation mechanism preset inside it, and determines whether the complete verification code and the complete verification code are consistent. Only when they are consistent will the upgrade information be broadcasted, thereby avoiding erroneous broadcasting of the upgrade information.

[0143] In one embodiment of the present specification, the upgrade information includes a plurality of upgrade sub-information;

[0144] The broadcasting of the upgrade information in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group includes:

[0145] Step 2082: The first broadcast center generates a first segment verification code corresponding to each upgrade sub-information through the verification code generation mechanism;

[0146] Step 2084: The first broadcast center combines the corresponding multiple upgrade sub-information and the multiple first segment check codes to obtain multiple first broadcast packets.

[0147] Step 2086: The first broadcast center broadcasts the multiple first broadcast packets frame by frame to all upgrade objects in the first broadcast group;

[0148] Step 2088: For each upgrade object in the first broadcast group, a first segment verification code corresponding to each of the upgrade sub-information in the received multiple first broadcast packets is generated through a verification code generation mechanism;

[0149] Step 20810: For each upgrade object in the first broadcast group, when all first segment check codes received in the first broadcast packets are consistent with the corresponding first segment verification code, information upgrade is completed based on all received first broadcast packets;

[0150] Wherein, when the first segment check code in the received first broadcast packet is inconsistent with the corresponding first segment verification code at the upgrade object in the first broadcast group, the method further includes the steps of:

[0151] The upgrade object in the first broadcast group initiates a packet repair request to the first broadcast center for the first broadcast packet in which the first segment check code is inconsistent with the first segment verification code, so as to perform a packet repair operation, and completes the information upgrade after the packet repair operation.

[0152] It can be understood that when the first broadcast center broadcasts the upgrade information to each second broadcast center, a method of verifying multiple upgrade sub-information in the upgrade information one by one is adopted.

[0153] Furthermore, when the first fragment check code in the first broadcast packet is inconsistent with the corresponding first fragment verification code, the upgrade object in the first broadcast group can initiate a packet replacement request to the first broadcast center in a targeted manner for the first broadcast packet in which the first fragment check code is inconsistent with the first fragment verification code, so as to perform a packet replacement operation and complete the information upgrade after the packet replacement operation.

[0154] In one embodiment of the present specification, the broadcasting of the upgrade information in the second broadcast groups corresponding to the second broadcast centers to implement the information upgrade of the upgrade objects in the second broadcast groups includes:

[0155] Step 20102: Each second broadcast center generates a second segment verification code corresponding to each upgrade sub-information through the verification code generation mechanism;

[0156] Step 20104: Each second broadcast center combines the corresponding multiple upgrade sub-information and the multiple second segment check codes to obtain multiple second broadcast packets.

[0157] Step 20106: Each second broadcast center broadcasts the plurality of second broadcast packets frame by frame to all upgrade objects in the second broadcast group corresponding thereto;

[0158] Step 20108: For each upgrade object in each second broadcast group, a second segment verification code corresponding to each of the upgrade sub-information in the received plurality of second broadcast packets is generated through a verification code generation mechanism;

[0159] Step 201010: for each upgrade object in each second broadcast group, when the second segment check codes in all received second broadcast packets are consistent with the corresponding second segment verification code, the information upgrade is completed based on all received second broadcast packets;

[0160] Wherein, when the second segment check code in the received second broadcast packet is inconsistent with the corresponding second segment verification code at the upgrade object in the second broadcast group, the method further includes the steps of:

[0161] The upgrade object in the second broadcast group initiates a packet replacement request to the upgrade object closest to it and which has received complete upgrade information among all upgrade objects for the second broadcast packet in which the second fragment check code is inconsistent with the second fragment verification code, to perform the packet replacement operation, and complete the information upgrade after the packet replacement operation.

[0162] It is understandable that when the second broadcast center broadcasts the upgrade information to each upgrade object in the second broadcast group, the same method of verifying the multiple upgrade sub-information in the upgrade information one by one is adopted.

[0163] Furthermore, when the second fragment check code in the second broadcast packet is inconsistent with the corresponding second fragment verification code, the upgrade object in the second broadcast group can initiate a targeted packet repair request for the second broadcast packet in which the second fragment check code is inconsistent with the second fragment verification code, perform a packet repair operation, and complete the information upgrade after the packet repair operation.

[0164] It should be noted here that the first upgrade information is only sent to one upgrade object, so the communication link load is usually small during the sending process, and information errors are not easy to occur. Therefore, only an overall check of the complete information is required, and even if an error occurs, it will not take much time to re-send the overall upgrade information.

[0165] As for the second and third upgrade information delivery, there are more delivery objects, and the communication link load is usually large during the delivery process, which is prone to information errors. Therefore, it is necessary to perform separate verification for each upgrade sub-information, which is also conducive to subsequent targeted package repair operations.

[0166] It should also be noted that the packet replenishment request for the upgrade object in the second broadcast group may be initiated for the upgrade object that is closest to it among all the upgrade objects and has received complete upgrade information.

[0167] This can be compared with the packet replenishment operation in the first broadcast group:

[0168] Since the upgrade objects in the first broadcast group are usually far away, that is, the upgrade objects in the first broadcast group are relatively scattered, if there is a need for a package update, it is more convenient to directly initiate a package update operation to the first broadcast center (see Figure 1 As shown, the four second broadcast centers are in a relatively dispersed state).

[0169] The upgrade object in the second broadcast group is likely to be in other second broadcast groups, and the distance is likely to be very close. Therefore, it is more appropriate to initiate the packet replenishment request for the upgrade object in the second broadcast group to the upgrade object that is closest to it and has received complete upgrade information among all upgrade objects (Note: In this case Figure 1 not reflected in the report).

[0170] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0171] See next Figure 3 , Figure 3 A structural diagram of a broadcast upgrade system provided in an embodiment of this specification is shown.

[0172] like Figure 3 As shown, the broadcast upgrade system may include at least a plurality of upgrade objects and an upgrade information delivery module;

[0173] The upgrade information delivery module includes an acquisition unit 301, a delivery unit 302, and a networking unit 303;

[0174] The acquisition unit 301 acquires the address coordinate information of each upgrade object;

[0175] The sending unit 302 selects a first upgrade object from all upgrade objects and sends the upgrade information to the first upgrade object;

[0176] The networking unit 303 adopts a genetic algorithm or a global search algorithm to determine a first broadcast group with the first upgrade object as a first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as a second broadcast center, and when the genetic algorithm or the global search algorithm is adopted to determine the first broadcast group and each second broadcast group, the fitness function adopted considers the distance information between each upgrade object obtained based on the address coordinate information of each upgrade object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgrade objects in the first broadcast group and each second broadcast group;

[0177] The upgrade object includes a broadcast unit, a receiving unit, and an upgrade unit;

[0178] The broadcast unit broadcasts the upgrade information in the broadcast group to which the upgrade object belongs;

[0179] The receiving unit receives the upgrade information in the broadcast group to which the upgrade object belongs;

[0180] The upgrading unit performs information upgrading based on the received upgrading information.

[0181] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the broadcast upgrade system embodiment, since it is basically similar to the broadcast upgrade method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the broadcast upgrade method embodiment.

[0182] See also Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0183] like Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0184] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.

[0185] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0186] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0187] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0188] Among them, the memory 405 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a broadcast upgrade application. The processor 401 may be used to call the broadcast upgrade application stored in the memory 405 and execute the steps of the broadcast upgrade method mentioned in the above-mentioned embodiment.

[0189] The embodiments of this specification also provide a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above-mentioned broadcast upgrade method embodiment. If the component modules of the above-mentioned electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0190] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0191] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0192] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. A broadcast upgrade method, characterized in that: include: Get the address coordinate information of each upgraded object; Selecting a first upgrade object from among all upgrade objects, and sending upgrade information to the first upgrade object; Using a genetic algorithm or a global search algorithm, determine a first broadcast group with the first upgrade object as the first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as the second broadcast center; Broadcasting the upgrade information in the first broadcast group through the first broadcast center to achieve information upgrade of the upgrade object in the first broadcast group; Broadcasting the upgrade information in the second broadcast groups corresponding to the second broadcast centers to achieve information upgrade of the upgrade objects in the second broadcast groups; When the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used considers the distance information between each upgraded object obtained based on the address coordinate information of each upgraded object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number of upgraded objects in the first broadcast group and each second broadcast group; When the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function calculation step used includes: Based on the address coordinate information of each upgraded object, obtain the first distances between the first broadcast center in the first broadcast group and the remaining upgraded objects in the first broadcast group, and obtain the sum of the first distances based on the multiple first distances; Acquire a first preset load value of the first broadcast center, and acquire a first load positive and negative value of the first broadcast group based on the first preset load value of the first broadcast center and the number of upgrade objects in the first broadcast group; For each second broadcast group, based on the address coordinate information of each upgraded object, obtain the second distances between the second broadcast center in the second broadcast group and the remaining upgraded objects in the second broadcast group, and obtain the sum of the second distances based on the multiple second distances; For each second broadcast group, a second preset load value of the second broadcast center is obtained, and a second load positive and negative value of the second broadcast group is obtained based on the second preset load value of the second broadcast center and the number of upgrade objects in the second broadcast group; The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group; Before calculating the fitness function value based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, the method further includes: For each second broadcast center, based on the address coordinate information of each upgraded object, a third distance between the second broadcast center and another second broadcast center closest to the second broadcast center is obtained; Based on the third distances corresponding to the second broadcast centers, obtaining a sum of the third distances; The fitness function value is calculated based on the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group, including: The fitness function value is calculated based on the third distance sum, the first distance sum, the first load positive and negative value, and the second distance sum and the second load positive and negative value corresponding to each second broadcast group.

2. A broadcast upgrade method according to claim 1, characterized in that: The selecting a first upgrade object from among all upgrade objects includes: Based on the address coordinate information of each upgraded object, obtain the center address coordinate information; Based on the address coordinate information and the center address coordinate information of each upgrade object, a first upgrade object is selected from all upgrade objects.

3. A broadcast upgrade method according to claim 1, characterized in that: The first load positive and negative value is the difference between the first preset load value and the number of upgrade objects in the first broadcast group; The second load positive and negative value is a difference between a second preset load value and the number of upgrade objects in the second broadcast group.

4. A broadcast upgrade method according to claim 1, characterized in that: When the genetic algorithm or the global search algorithm is used to determine the first broadcast group and each second broadcast group, the fitness function used also considers the number of second broadcast groups.

5. A broadcast upgrade method according to claim 1, characterized in that: The selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object further includes: A preset verification code generation mechanism is stored at all upgrade objects; The selecting a first upgrade object from all upgrade objects and sending upgrade information to the first upgrade object includes: Selecting a first upgrade object from among all upgrade objects, and sending upgrade information and a complete verification code corresponding to the upgrade information generated by the verification code generation mechanism to the first upgrade object; Before the upgrade information is broadcasted in the first broadcast group through the first broadcast center to upgrade the information of the upgrade object in the first broadcast group, the method further includes: The first broadcast center generates a complete verification code corresponding to the upgrade information through a verification code generation mechanism; When the complete verification code and the complete check code are consistent, the upgrade information is broadcasted in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group.

6. A broadcast upgrade method according to claim 5, characterized in that: The upgrade information includes multiple upgrade sub-information; The broadcasting of the upgrade information in the first broadcast group through the first broadcast center to implement the information upgrade of the upgrade object in the first broadcast group includes: The first broadcast center generates a first segment check code corresponding to each upgrade sub-information through the check code generation mechanism; The first broadcast center combines the multiple upgrade sub-information and the multiple first segment check codes having corresponding relationships to obtain multiple first broadcast packets; The first broadcast center broadcasts a plurality of first broadcast packets frame by frame to all upgrade objects in the first broadcast group; For each upgrade object in the first broadcast group, a first segment verification code corresponding to each of the upgrade sub-information in the received plurality of first broadcast packets is generated through a verification code generation mechanism; Each upgrade object in the first broadcast group completes information upgrade based on all received first broadcast packets when all first segment check codes in the received first broadcast packets are consistent with the corresponding first segment verification code; Wherein, when the first segment check code in the received first broadcast packet is inconsistent with the corresponding first segment verification code at the upgrade object in the first broadcast group, the method further includes the steps of: The upgrade object in the first broadcast group initiates a packet repair request to the first broadcast center for the first broadcast packet in which the first segment check code is inconsistent with the first segment verification code, so as to perform a packet repair operation, and completes the information upgrade after the packet repair operation.

7. A broadcast upgrade method according to claim 6, characterized in that: The broadcasting of the upgrade information in the second broadcast groups corresponding to the second broadcast centers to achieve the information upgrade of the upgrade objects in the second broadcast groups includes: Each second broadcast center generates a second segment check code corresponding to each upgrade sub-information through the check code generation mechanism; Each second broadcast center combines a plurality of upgrade sub-information and a plurality of second segment check codes having a corresponding relationship to obtain a plurality of second broadcast packets; Each second broadcast center broadcasts a plurality of second broadcast packets frame by frame to all upgrade objects in the second broadcast group corresponding thereto; For each upgrade object in each second broadcast group, a second segment verification code corresponding to each of the upgrade sub-information in the received plurality of second broadcast packets is generated through a verification code generation mechanism; Each upgrade object in each second broadcast group completes information upgrade based on all received second broadcast packets when the second segment check codes in all received second broadcast packets are consistent with the corresponding second segment verification code; Wherein, when the second segment check code in the received second broadcast packet is inconsistent with the corresponding second segment verification code at the upgrade object in the second broadcast group, the method further includes the steps of: The upgrade object in the second broadcast group initiates a packet replacement request to the upgrade object closest to it and which has received complete upgrade information among all upgrade objects for the second broadcast packet in which the second fragment check code is inconsistent with the second fragment verification code, to perform the packet replacement operation, and complete the information upgrade after the packet replacement operation.

8. A broadcast upgrade system, based on a broadcast upgrade method according to any one of claims 1 to 7, characterized in that: Includes multiple upgrade objects and upgrade information delivery modules; The upgrade information sending module includes an acquisition unit, a sending unit, and a networking unit; The acquisition unit acquires the address coordinate information of each upgrade object; The sending unit selects a first upgrade object from all upgrade objects and sends the upgrade information to the first upgrade object; The networking unit adopts a genetic algorithm or a global search algorithm to determine a first broadcast group with the first upgrade object as a first broadcast center and second broadcast groups with each upgrade object other than the first upgrade object in the first broadcast group as a second broadcast center, and when the genetic algorithm or the global search algorithm is adopted to determine the first broadcast group and each second broadcast group, the fitness function adopted considers the distance information between each upgrade object obtained based on the address coordinate information of each upgrade object and the load information corresponding to the first broadcast group and each second broadcast group obtained based on the number information of the upgrade objects in the first broadcast group and each second broadcast group; The upgrade object includes a broadcast unit, a receiving unit, and an upgrade unit; The broadcast unit broadcasts the upgrade information in the broadcast group to which the upgrade object belongs; The receiving unit receives the upgrade information in the broadcast group to which the upgrade object belongs; The upgrading unit performs information upgrading based on the received upgrading information.