CN114265614B - Agent differential upgrading method and system - Google Patents

Agent differential upgrading method and system Download PDF

Info

Publication number
CN114265614B
CN114265614B CN202111571042.7A CN202111571042A CN114265614B CN 114265614 B CN114265614 B CN 114265614B CN 202111571042 A CN202111571042 A CN 202111571042A CN 114265614 B CN114265614 B CN 114265614B
Authority
CN
China
Prior art keywords
chip
associated chip
firmware
upgrading
mapping
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.)
Active
Application number
CN202111571042.7A
Other languages
Chinese (zh)
Other versions
CN114265614A (en
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.)
Redstone Sunshine Beijing Technology Co ltd
Original Assignee
Redstone Sunshine Beijing 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 Redstone Sunshine Beijing Technology Co ltd filed Critical Redstone Sunshine Beijing Technology Co ltd
Priority to CN202111571042.7A priority Critical patent/CN114265614B/en
Publication of CN114265614A publication Critical patent/CN114265614A/en
Application granted granted Critical
Publication of CN114265614B publication Critical patent/CN114265614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Agricultural Chemicals And Associated Chemicals (AREA)

Abstract

The invention discloses a method and a system for agent differential upgrading, wherein the method comprises the following steps: acquiring version information of a plurality of associated chips associated with a main control chip and sending the version information to a server; receiving a differential upgrade data packet fed back by the server through the main control chip; generating the upgrade firmware of each associated chip by combining the differential upgrade data packet according to the current firmware version of the associated chip; and sending the upgrading firmware of each associated chip to the corresponding associated chip from the master control chip for upgrading. The main control chip is used for replacing the associated chips thereof to obtain the differential upgrade packet by adopting a differential upgrade mode so as to control each associated chip to carry out firmware upgrade, so that the download amount of the firmware can be reduced, the download flow is saved, the firmware upgrade work of the associated chips without communication function and calculation function can be realized at the same time, and the working efficiency is improved.

Description

Agent differential upgrading method and system
Technical Field
The invention relates to the technical field of chip processing, in particular to a method and a system for agent differential upgrading.
Background
In the field of the internet of things or the field of vehicle-mounted equipment, a plurality of pieces of equipment are combined by a multi-chip scheme, and the firmware of the chips has upgrading requirements. In the combination schemes, some chips have weak processing capability, insufficient storage space and possibly no communication capability, so that independent upgrade cannot be performed, and therefore, over time, due to low version, the work efficiency is low and the experience of users is influenced because instructions sent by equipment cannot be executed.
Disclosure of Invention
Aiming at the problems shown above, the invention provides a method and a system for agent differential upgrade, which are used for solving the problems that the independent upgrade cannot be carried out in the background art, so that the working efficiency is low and the experience of users is influenced due to the fact that the version is low and the instruction sent by the equipment cannot be executed over time.
A method for agent differential upgrade, comprising the steps of:
acquiring version information of a plurality of associated chips associated with a main control chip and sending the version information to a server;
receiving a differential upgrade data packet fed back by the server through the main control chip;
combining the differential upgrade data packet to generate upgrade firmware of each associated chip according to the current firmware version of the associated chip;
and sending the upgrading firmware of each associated chip to the corresponding associated chip from the master control chip for upgrading.
Preferably, the obtaining and sending version information of a plurality of associated chips associated with the main control chip to the server includes:
controlling the main control chip to read the firmware version number of each associated chip through an interface;
combining the firmware version numbers of the plurality of associated chips into a character string format;
generating version information of an associated chip associated with the main control chip according to the combined character string;
and sending the version information to the server through a preset channel.
Preferably, before the differential upgrade data packet fed back by the server is received by the main control chip, the method further includes:
based on the version information, acquiring a differential upgrade data packet of each associated chip according to the firmware version number of the associated chip by using a matching function of a server;
packing the differential upgrade data packets of the plurality of associated chips into a whole firmware packet;
determining the chip information of each associated chip and the offset of the differential upgrade data packet of the associated chip in the whole firmware packet;
and combining the whole firmware package with the chip information of each associated chip and the offset of the differential upgrade data package of the associated chip in the whole firmware package.
Preferably, the generating the upgrade firmware of each associated chip according to the current firmware version of the associated chip in combination with the differential upgrade data packet includes:
reading a target differential upgrade data packet of each associated chip in the differential upgrade data packet according to the chip attribute of the associated chip;
acquiring current firmware data and latest firmware data of each associated chip according to the current firmware version of the associated chip;
based on the latest firmware data of each associated chip, acquiring the updated firmware data of the associated chip by using the current firmware data and the target differential update data packet of each associated chip as input through a preset differential algorithm;
and integrating the upgrade firmware data of each associated chip to obtain the upgrade firmware of the associated chip.
Preferably, the sending the upgrade firmware of each associated chip to the corresponding associated chip from the master control chip for upgrading includes:
decomposing an upgrading firmware program corresponding to the upgrading firmware of each associated chip into a plurality of data blocks;
after the decomposition is finished, sending a plurality of data blocks corresponding to each associated chip from the main control chip to the associated chip in batches;
controlling each associated chip to write the corresponding first data block into a firmware area of the associated chip;
and after each associated chip finishes upgrading the first data block, repeating the steps to completely upgrade the subsequent data blocks of each associated chip.
Preferably, before sending the upgrade firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading, the method further includes:
determining a mapping rule of each associated chip according to the configuration difference of each associated chip;
determining firmware upgrading deployment parameters corresponding to each associated chip based on the mapping rule of the associated chip;
constructing a potential upgrading path of each associated chip according to the firmware upgrading deployment parameters of each associated chip and the operation parameters of the main control chip;
and taking the potential upgrading path of each associated chip as a transmission path of the upgrading firmware of the associated chip.
Preferably, after the decomposition is completed, sending a plurality of data blocks corresponding to each associated chip in batches from the main control chip to the associated chip includes:
acquiring energy consumption characteristics of the main control chip during data transmission, and constructing a data transmission energy consumption model of the main control chip according to the energy consumption characteristics;
determining frame number information of each data block of each associated chip;
determining the data transmission type of the data block of each associated chip according to the frame number information of each data block of each associated chip;
performing energy consumption prediction on the data transmission type of each associated chip by using the data transmission energy consumption model to obtain a prediction result;
determining the output block transmission standby flow of each associated chip according to the prediction result;
and setting a flow threshold value of the main control chip for transmitting the data block of each associated chip according to the output block transmission standby flow of each associated chip.
Preferably, the determining the mapping rule of each associated chip according to the configuration difference of each associated chip includes:
acquiring configuration parameters of each associated chip;
constructing a requirement meta-model of each associated chip according to the configuration parameters of the associated chip;
extracting a maximum requirement item from the requirement meta-model of each associated chip;
decomposing the maximum requirement item of each associated chip to obtain fuzzy mapping characteristic information of each associated chip;
matching the fuzzy mapping characteristic information of each associated chip in a preset database to obtain a matched fuzzy mapping characteristic template;
mapping preset data by using the fuzzy mapping characteristic template to obtain a mapping result;
determining the mapping relation between the coding matrix of each associated chip and the network resource layer according to each mapping result;
determining a mapping index of each associated chip based on the mapping relation of each associated chip;
matching the mapping indexes of each associated chip in a preset rule base to obtain a matched first target rule;
determining a structure table of each associated chip according to the port arrangement of the associated chip;
determining whether the corresponding first target rule is applicable or not through the architecture table of each associated chip, if so, not needing to perform subsequent operation, otherwise, obtaining the modification rule of the target associated chip according to the target architecture table of the inapplicable target associated chip;
modifying the first target rule of each target associated chip according to the modification rule of the target associated chip to obtain a second target rule;
and after the modification is finished, confirming the first target rule or the second target rule corresponding to each associated chip as the mapping rule of the target associated chip.
A system for agent differential upgrade, the system comprising:
the acquisition module is used for acquiring the version information of a plurality of associated chips associated with the main control chip and sending the version information to the server;
the receiving module is used for receiving the differential upgrading data packet fed back by the server through the main control chip;
the generating module is used for generating the upgrading firmware of each associated chip according to the current firmware version of the associated chip and the differential upgrading data packet;
and the sending module is used for sending the upgrading firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for upgrading agent differences according to the present invention;
FIG. 2 is another flowchart of the present invention;
FIG. 3 is a flowchart illustrating a method for agent differential upgrade according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system for agent differential upgrade provided in the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the field of the internet of things or the field of vehicle-mounted equipment, a plurality of pieces of equipment are combined by multi-chip schemes, and the firmware of the chips has upgrading requirements. In the combination schemes, some chips have weak processing capability, insufficient storage space and possibly no communication capability, so that independent upgrade cannot be performed, and therefore, over time, due to the fact that versions are low, instructions sent by equipment cannot be executed, work efficiency is low, and experience of users is affected. In order to solve the above problem, the present embodiment discloses a method for upgrading agent differences.
A method for agent differential upgrade, as shown in fig. 1, includes the following steps:
s101, acquiring version information of a plurality of associated chips associated with a main control chip and sending the version information to a server;
step S102, receiving a differential upgrading data packet fed back by the server through the main control chip;
step S103, generating the upgrade firmware of each associated chip according to the current firmware version of the associated chip and the differential upgrade data packet;
and step S104, sending the upgrading firmware of each associated chip to the corresponding associated chip from the main control chip for upgrading.
The working principle of the technical scheme is as follows: the method comprises the steps of obtaining version information of a plurality of associated chips associated with a main control chip and sending the version information to a server, receiving a differential upgrading data packet fed back by the server through the main control chip, generating upgrading firmware of each associated chip by combining the differential upgrading data packet according to the current firmware version of each associated chip, and sending the upgrading firmware of each associated chip to the corresponding associated chip from the main control chip for upgrading;
in this embodiment, the main control unit is equivalent to a stable device with strong computing power and communication function, and obtains the differential upgrade data packet of each associated chip from the server and distributes the differential upgrade data packet to each associated chip to control the associated chip to perform upgrade work. Therefore, even if the related chip does not have the computing capability and the communication capability, the main control chip can control the related chip to carry out the upgrading work of the chip.
The beneficial effects of the above technical scheme are: the method has the advantages that the differential upgrading mode is adopted to obtain the differential upgrading packet by the main control chip acting on the associated chips of the main control chip to control each associated chip to upgrade the firmware, so that the downloading amount of the firmware can be reduced, the downloading flow is saved, the firmware upgrading work of the associated chips without communication function and calculation function can be realized simultaneously, the working efficiency is improved, the problem that in the prior art, the independent upgrading cannot be carried out, the low working efficiency is caused due to the fact that the version is low and the instruction sent by the equipment cannot be executed for a long time, and the experience feeling of users is influenced is solved.
In one embodiment, the obtaining and sending version information of a plurality of associated chips associated with a master chip to a server includes:
controlling the main control chip to read the firmware version number of each associated chip through an interface;
combining the firmware version numbers of the plurality of associated chips into a character string format;
generating version information of an associated chip associated with the main control chip according to the combined character string;
and sending the version information to the server through a preset channel.
The beneficial effects of the above technical scheme are: the firmware version numbers of the associated chips are combined into the character strings, so that the server can quickly and accurately analyze the firmware version numbers of the associated chips, the data transmission efficiency is improved, furthermore, the server can completely receive the version information and simultaneously can ensure the privacy of the version information by sending the version information through a preset channel, and the data security is improved.
In one embodiment, as shown in fig. 2, before receiving, by the master control chip, a differential upgrade data packet fed back by the server, the method further includes:
step S201, based on the version information, acquiring a differential upgrade data packet of each associated chip according to the firmware version number of the associated chip by using a matching function of a server;
step S202, packaging differential upgrade data packets of a plurality of associated chips into a whole firmware packet;
step S203, determining the chip information of each associated chip and the offset of the differential upgrade data packet of the associated chip in the whole firmware packet;
step S204, combining the whole firmware package, the chip information of each associated chip and the offset of the differential upgrade data package of the associated chip in the whole firmware package.
The beneficial effects of the above technical scheme are: all the differential upgrading data packets can be fed back to the main control chip by the server once by packaging all the differential upgrading data packets into the whole firmware packet, the data transmission efficiency is further improved, further, the corresponding differential data packets can be quickly screened out by the follow-up main control chip when controlling each associated chip to upgrade the firmware by determining the chip information of each associated chip and the offset of the differential upgrading data packet in the whole firmware packet, and the upgrading efficiency and the screening efficiency are improved.
In an embodiment, as shown in fig. 3, the generating the upgrade firmware of each associated chip according to the current firmware version of the associated chip in combination with the differential upgrade data packet includes:
step S301, reading a target differential upgrade data packet of each associated chip in the differential upgrade data packet according to the chip attribute of the associated chip;
step S302, acquiring the current firmware data and the latest firmware data of each associated chip according to the current firmware version of the associated chip;
step S303, based on the latest firmware data of each associated chip, acquiring the updated firmware data of the associated chip by using the current firmware data and the target differential update data packet of each associated chip as input through a preset differential algorithm;
step S304, integrating the upgrade firmware data of each associated chip to obtain the upgrade firmware of the associated chip.
The beneficial effects of the above technical scheme are: the firmware upgrading work can be carried out only for the place where each relevant chip needs to be upgraded by combining the current firmware data and the latest firmware data of each relevant chip through the preset differential algorithm to generate the upgraded firmware of each relevant chip, and the firmware upgrading efficiency is further improved.
In one embodiment, the sending the upgrade firmware of each associated chip from the master control chip to the corresponding associated chip for upgrading includes:
decomposing an upgrading firmware program corresponding to the upgrading firmware of each associated chip into a plurality of data blocks;
after the decomposition is finished, sending a plurality of data blocks corresponding to each associated chip from the main control chip to the associated chip in batches;
controlling each associated chip to write the corresponding first data block into a firmware area of the associated chip;
and after each associated chip finishes upgrading the first data block, repeating the steps to completely upgrade the subsequent data blocks of each associated chip.
The beneficial effects of the above technical scheme are: the updating firmware corresponding to each associated chip is decomposed into a plurality of data blocks to update the firmware of the associated chip one by one, so that if data loss occurs in a section of the process of data distribution and updating, the data is redistributed and written into the data blocks again, the normal updating of the associated chips can be ensured, and the stability and the working efficiency are improved.
In one embodiment, before sending the upgrade firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading, the method further includes:
determining a mapping rule of each associated chip according to the configuration difference of each associated chip;
determining firmware upgrading deployment parameters corresponding to each associated chip based on the mapping rule of the associated chip;
constructing a potential upgrading path of each associated chip according to the firmware upgrading deployment parameters of each associated chip and the operation parameters of the main control chip;
and taking the potential upgrading path of each associated chip as a transmission path of the upgrading firmware of the associated chip.
The beneficial effects of the above technical scheme are: the potential upgrading path of each associated chip is constructed and used as the transmission path of the upgrading firmware of the associated chip, so that the integrity and the subsequent installation upgrading stability of the upgrading firmware of each associated chip can be further ensured, and the working efficiency is further improved.
In one embodiment, after the decomposition is completed, sending the plurality of data blocks corresponding to each associated chip in batches from the main control chip to the associated chip includes:
acquiring energy consumption characteristics of the main control chip during data transmission, and constructing a data transmission energy consumption model of the main control chip according to the energy consumption characteristics;
determining frame number information of each data block of each associated chip;
determining the data transmission type of the data block of each associated chip according to the frame number information of each data block of each associated chip;
performing energy consumption prediction on the data transmission type of each associated chip by using the data transmission energy consumption model to obtain a prediction result;
determining the output block transmission standby flow of each associated chip according to the prediction result;
and setting a flow threshold value of the main control chip for transmitting the data block of each associated chip according to the output block transmission standby flow of each associated chip.
The beneficial effects of the above technical scheme are: the stability and reliability of database writing of each associated chip can be ensured by predicting the transmission standby flow of the data block of each associated chip, and the firmware upgrading stability and upgrading efficiency of the associated chips are further improved.
In one embodiment, the determining the mapping rule of each associated chip according to the configuration difference of each associated chip includes:
acquiring configuration parameters of each associated chip;
constructing a requirement meta-model of each associated chip according to the configuration parameters of the associated chip;
extracting a maximum requirement item from the requirement meta-model of each associated chip;
decomposing the maximum requirement item of each associated chip to obtain fuzzy mapping characteristic information of each associated chip;
matching the fuzzy mapping characteristic information of each associated chip in a preset database to obtain a matched fuzzy mapping characteristic template;
mapping preset data by using the fuzzy mapping characteristic template to obtain a mapping result;
determining the mapping relation between the coding matrix of each associated chip and the network resource layer according to each mapping result;
determining a mapping index of each associated chip based on the mapping relation of each associated chip;
matching the mapping indexes of each associated chip in a preset rule base to obtain a matched first target rule;
determining a structure table of each associated chip according to the port arrangement of the associated chip;
determining whether the corresponding first target rule is applicable or not through the architecture table of each associated chip, if so, not needing to perform subsequent operation, otherwise, obtaining the modification rule of the target associated chip according to the target architecture table of the inapplicable target associated chip;
modifying the first target rule of each target associated chip according to the modification rule of the target associated chip to obtain a second target rule;
and after the modification is finished, confirming the first target rule or the second target rule corresponding to each associated chip as the mapping rule of the target associated chip.
The beneficial effects of the above technical scheme are: the mapping relation is determined according to the mapping result of each associated chip to the preset data so as to obtain the mapping rule, the most adaptive mapping rule of each associated chip can be accurately determined according to the parameters corresponding to the actual test result of the associated chip, the accuracy and the stability are improved, furthermore, the first target rule of the target associated chip is adaptively modified so as to be more adaptive to the target associated chip, and further, the basic condition is laid for the subsequent transmission of the firmware upgrade version.
In one embodiment, the method comprises the following steps:
stage one: the method comprises the following steps of inquiring versions and downloading upgrade packages:
1. the main control chip in the multi-chip scheme reads the firmware version numbers of other related chips through interfaces and combines the firmware version numbers into a specific version number format, and the format can be self-defined and also can be combined into an xml format and a json format.
2. And the master control chip sends the generated version information to the server.
3. And the server analyzes the version number sent by the scheme, searches the differential upgrade package of each chip in the multi-chip scheme, and finally packages the chips together according to the format.
4. And the server side issues an upgrade package to a main control chip in the multi-chip scheme.
And a second stage: reading the old firmware of the related chip (or component), and respectively generating new firmware according to the downloaded differential data, wherein the steps comprise:
1. the main control chip analyzes the differential upgrade packet issued by the server, and firstly reads the differential upgrade data packet of the first chip to be upgraded.
2. The main control chip reads old firmware data from the first chip needing to be upgraded through an interface.
3. The main control chip takes the old firmware data and the differential upgrading data packet as input data through a differential algorithm, and finally obtains a new firmware version.
4. And circulating the flow to finally generate new firmware data of all the chips needing to be upgraded.
And a third stage: distributing to the associated chips, and respectively upgrading, wherein the steps comprise:
1. the main control chip differentiates the new firmware version data of the first chip needing to be upgraded into small data blocks, and sends the small data blocks to the chip needing to be upgraded in a blocking mode through the interface.
2. And the chip needing to be upgraded is written into a firmware area of the chip after the data block is received. And circulating the flow until the whole firmware is upgraded.
And the main control chip circulates the flow until the firmware upgrade of all the chips is completed. Because many firmware that need to be upgraded are all stored in the main control chip, even if power failure and interruption occur in the transmission process, after restarting, the main control chip can repeat the above-mentioned process, and the whole upgrading process can be guaranteed to be completed normally.
By the means, the size of the overall upgrade package is reduced by adopting differential upgrade; the agent mode is upgraded, only one device has communication capacity, the upgrade package can be downloaded from the server, meanwhile, only the agent device has strong computing capacity, and the agent device is responsible for synthesizing the upgrade package, distributing the upgrade package and controlling the upgrade process.
This embodiment also discloses a system for upgrading agent differences, as shown in fig. 4, the system includes:
an obtaining module 401, configured to obtain version information of multiple associated chips associated with a master control chip and send the version information to a server;
a receiving module 402, configured to receive, by the master control chip, a differential upgrade data packet fed back by the server;
a generating module 403, configured to generate, according to the current firmware version of each associated chip in combination with the differential upgrade data packet, the upgrade firmware of the associated chip;
a sending module 404, configured to send the upgrade firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading.
The working principle and the advantageous effects of the above technical solution have been explained in the method claims, and are not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (7)

1. A method for agent differential upgrade, characterized by comprising the following steps:
acquiring version information of a plurality of associated chips associated with a main control chip and sending the version information to a server;
receiving a differential upgrade data packet fed back by the server through the main control chip;
generating the upgrade firmware of each associated chip by combining the differential upgrade data packet according to the current firmware version of the associated chip;
sending the upgrading firmware of each associated chip to the corresponding associated chip from the master control chip for upgrading;
before sending the upgrade firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading, the method further includes:
determining a mapping rule of each associated chip according to the configuration difference of each associated chip;
determining firmware upgrading deployment parameters corresponding to each associated chip based on the mapping rule of the associated chip;
constructing a potential upgrading path of each associated chip according to the firmware upgrading deployment parameters of each associated chip and the operation parameters of the main control chip;
taking the potential upgrading path of each associated chip as a transmission path of the upgrading firmware of the associated chip;
the determining the mapping rule of each associated chip according to the configuration difference of each associated chip includes:
acquiring configuration parameters of each associated chip;
constructing a requirement meta-model of each associated chip according to the configuration parameters of the associated chip;
extracting a maximum demand item from the demand meta-model of each associated chip;
decomposing the maximum requirement item of each associated chip to obtain fuzzy mapping characteristic information of each associated chip;
matching the fuzzy mapping characteristic information of each associated chip in a preset database to obtain a matched fuzzy mapping characteristic template;
mapping preset data by using the fuzzy mapping characteristic template to obtain a mapping result;
determining the mapping relation between the coding matrix of each associated chip and the network resource layer according to each mapping result;
determining a mapping index of each associated chip based on the mapping relation of each associated chip;
matching the mapping indexes of each associated chip in a preset rule base to obtain a matched first target rule;
determining a structure table of each associated chip according to the port arrangement of the associated chip;
determining whether the corresponding first target rule is applicable or not through the architecture table of each associated chip, if so, not performing subsequent operation, and otherwise, obtaining the modification rule of the target associated chip according to the target architecture table of the inapplicable target associated chip;
modifying the first target rule of each target associated chip according to the modification rule of the target associated chip to obtain a second target rule;
and after the modification is finished, confirming the first target rule or the second target rule corresponding to each associated chip as the mapping rule of the target associated chip.
2. The method for agent differential upgrade according to claim 1, wherein the obtaining and sending version information of a plurality of associated chips associated with the main control chip to the server comprises:
controlling the main control chip to read the firmware version number of each associated chip through an interface;
combining the firmware version numbers of the plurality of associated chips into a character string format;
generating version information of an associated chip associated with the main control chip according to the combined character string;
and sending the version information to the server through a preset channel.
3. The method for agent differential upgrade according to claim 1, wherein before receiving the differential upgrade data packet fed back by the server through the main control chip, the method further comprises:
based on the version information, acquiring a differential upgrade data packet of each associated chip according to the firmware version number of the associated chip by using a matching function of a server;
packing the differential upgrade data packets of the plurality of associated chips into a whole firmware packet;
determining the chip information of each associated chip and the offset of the differential upgrade data packet of the associated chip in the whole firmware packet;
and combining the whole firmware package with the chip information of each associated chip and the offset of the differential upgrade data package of the associated chip in the whole firmware package.
4. The method for agent differential upgrade according to claim 1, wherein the generating the upgrade firmware of each associated chip according to the current firmware version of the associated chip in combination with the differential upgrade data packet comprises:
reading a target differential upgrade data packet of each associated chip in the differential upgrade data packet according to the chip attribute of the associated chip;
acquiring current firmware data and latest firmware data of each associated chip according to the current firmware version of the associated chip;
based on the latest firmware data of each associated chip, acquiring the updated firmware data of the associated chip by using the current firmware data and the target differential update data packet of each associated chip as input through a preset differential algorithm;
and integrating the upgrade firmware data of each associated chip to obtain the upgrade firmware of the associated chip.
5. The method for agent differential upgrade according to claim 1, wherein the step of sending the upgrade firmware of each associated chip from the master control chip to the corresponding associated chip for upgrade comprises:
decomposing an upgrading firmware program corresponding to the upgrading firmware of each associated chip into a plurality of data blocks;
after the decomposition is finished, sending a plurality of data blocks corresponding to each associated chip from the main control chip to the associated chip in batches;
controlling each associated chip to write the corresponding first data block into a firmware area of the associated chip;
and after each associated chip finishes upgrading the first data block, repeating the steps to completely upgrade the subsequent data blocks of each associated chip.
6. The agent differential upgrade method according to claim 5, wherein after the decomposition, sending the plurality of data blocks corresponding to each associated chip in batches from the main control chip to the associated chip includes:
acquiring energy consumption characteristics of the main control chip during data transmission, and constructing a data transmission energy consumption model of the main control chip according to the energy consumption characteristics;
determining frame number information of each data block of each associated chip;
determining the data transmission type of the data block of each associated chip according to the frame number information of each data block of each associated chip;
performing energy consumption prediction on the data transmission type of each associated chip by using the data transmission energy consumption model to obtain a prediction result;
determining the output block transmission standby flow of each associated chip according to the prediction result;
and setting a flow threshold value of the main control chip for transmitting the data block of each associated chip according to the output block transmission standby flow of each associated chip.
7. A system for agent differential upgrade, the system comprising:
the acquisition module is used for acquiring version information of a plurality of associated chips associated with the main control chip and sending the version information to the server;
the receiving module is used for receiving the differential upgrading data packet fed back by the server through the main control chip;
the generating module is used for generating the upgrading firmware of each associated chip according to the current firmware version of the associated chip and the differential upgrading data packet;
the sending module is used for sending the upgrading firmware of each associated chip from the main control chip to the corresponding associated chip for upgrading;
the system is further configured to:
determining a mapping rule of each associated chip according to the configuration difference of each associated chip;
determining firmware upgrading deployment parameters corresponding to each associated chip based on the mapping rule of the associated chip;
constructing a potential upgrading path of each associated chip according to the firmware upgrading deployment parameters of each associated chip and the operation parameters of the main control chip;
taking the potential upgrading path of each associated chip as a transmission path of the upgrading firmware of the associated chip;
the determining the mapping rule of each associated chip according to the configuration difference of each associated chip includes:
acquiring configuration parameters of each associated chip;
constructing a requirement meta-model of each associated chip according to the configuration parameters of the associated chip;
extracting a maximum requirement item from the requirement meta-model of each associated chip;
decomposing the maximum requirement item of each associated chip to obtain fuzzy mapping characteristic information of each associated chip;
matching the fuzzy mapping characteristic information of each associated chip in a preset database to obtain a matched fuzzy mapping characteristic template;
mapping preset data by using the fuzzy mapping characteristic template to obtain a mapping result;
determining the mapping relation between the coding matrix of each associated chip and the network resource layer according to each mapping result;
determining a mapping index of each associated chip based on the mapping relation of each associated chip;
matching the mapping indexes of each associated chip in a preset rule base to obtain a matched first target rule;
determining a structure table of each associated chip according to the port arrangement of the associated chip;
determining whether the corresponding first target rule is applicable or not through the architecture table of each associated chip, if so, not needing to perform subsequent operation, otherwise, obtaining the modification rule of the target associated chip according to the target architecture table of the inapplicable target associated chip;
modifying the first target rule of each target associated chip according to the modification rule of the target associated chip to obtain a second target rule;
and after the modification is finished, confirming the first target rule or the second target rule corresponding to each associated chip as the mapping rule of the target associated chip.
CN202111571042.7A 2021-12-21 2021-12-21 Agent differential upgrading method and system Active CN114265614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111571042.7A CN114265614B (en) 2021-12-21 2021-12-21 Agent differential upgrading method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111571042.7A CN114265614B (en) 2021-12-21 2021-12-21 Agent differential upgrading method and system

Publications (2)

Publication Number Publication Date
CN114265614A CN114265614A (en) 2022-04-01
CN114265614B true CN114265614B (en) 2022-08-23

Family

ID=80828195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111571042.7A Active CN114265614B (en) 2021-12-21 2021-12-21 Agent differential upgrading method and system

Country Status (1)

Country Link
CN (1) CN114265614B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104139A (en) * 2019-12-20 2020-05-05 苏州浪潮智能科技有限公司 Firmware upgrading method, device, equipment and storage medium
CN113360163A (en) * 2021-04-19 2021-09-07 深圳市创成微电子有限公司 Multi-chip device and chip upgrading method
CN113721966B (en) * 2021-08-27 2024-03-29 杭州华橙软件技术有限公司 Node upgrading method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114265614A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
EP1872215B1 (en) Implementing data-compatibility-based version scheme
CN106571949A (en) Event tracking point processing method and apparatus
CN108153520A (en) Software development methodology and device
CN111258900A (en) Interface test script generation method, system, equipment and storage medium
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
CN109032631A (en) Application program service packs acquisition methods, device, computer equipment and storage medium
CN113330419A (en) Equipment application installation method and device
CN113448608B (en) FPGA (field programmable Gate array) increment upgrading method and device based on region slicing technology
CN114265614B (en) Agent differential upgrading method and system
CN105511914A (en) Application update method, device and system
CN105450449A (en) File operation methods and devices
CN114924772B (en) Updating method and equipment of algorithm package
CN115883512A (en) DNS domain name processing method, device, system, equipment and medium
CN112559012B (en) System upgrading and testing method and device, computer equipment and readable storage medium
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
CN114706526A (en) Automatic capacity expansion method, system and equipment for cloud native storage data volume
CN110737426B (en) Program block creating method, program block creating device, computer equipment and storage medium
US20100191710A1 (en) Network Meta-Data Libraries And Related Methods
CN113419957A (en) Rule-based big data offline batch processing performance capacity scanning method and device
CN115878443A (en) Interface test script generation method and device, storage medium and electronic device
CN114253828A (en) Method and device for determining test template, computing equipment and storage medium
CN113573328A (en) Method and device for updating site configuration data and electronic equipment
CN111752559A (en) Front-end and back-end separation system, method, device and storage medium
CN109669699A (en) Application program distribution method, AC, AP and Radio Network System
CN112737872B (en) ARINC664P7 end system cross-network testing system and method

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
GR01 Patent grant
GR01 Patent grant