CN113986303B - Method and system for upgrading multi-chip equipment - Google Patents

Method and system for upgrading multi-chip equipment Download PDF

Info

Publication number
CN113986303B
CN113986303B CN202111355521.5A CN202111355521A CN113986303B CN 113986303 B CN113986303 B CN 113986303B CN 202111355521 A CN202111355521 A CN 202111355521A CN 113986303 B CN113986303 B CN 113986303B
Authority
CN
China
Prior art keywords
upgrade
service
chip
upgrading
proxy
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
CN202111355521.5A
Other languages
Chinese (zh)
Other versions
CN113986303A (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.)
Chongqing Unisinsight Technology Co Ltd
Original Assignee
Chongqing Unisinsight 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 Chongqing Unisinsight Technology Co Ltd filed Critical Chongqing Unisinsight Technology Co Ltd
Priority to CN202111355521.5A priority Critical patent/CN113986303B/en
Publication of CN113986303A publication Critical patent/CN113986303A/en
Application granted granted Critical
Publication of CN113986303B publication Critical patent/CN113986303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method and a system for upgrading multi-chip equipment, wherein the method comprises the following steps: network service for receiving upgrade request information, proxy service for data interaction between multiple chips, and upgrade service for upgrade management and upgrade execution are deployed in advance, respectively; when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service, forwarding information among the services by the proxy service according to the registered capabilities, upgrading the slave chips sequentially by the upgrading service, and then upgrading the master chip to finish the upgrading of the multi-chip equipment; the invention actively registers itself with proxy service when the service is started, so that all the services only need to send information to the proxy, and the proxy service can automatically forward to the processing service corresponding to the information according to the information.

Description

Method and system for upgrading multi-chip equipment
Technical Field
The present invention relates to the field of communications and computer applications, and in particular, to a method and system for upgrading a multi-chip device.
Background
With the enhanced fusion of public cloud technology and other technologies such as internet of things, big data, artificial intelligence, blockchain and the like, public cloud services have been further refined and extended in various industries. In recent years, whether it is a traditional security industry enterprise or a new internet enterprise, cloud services conforming to security characteristics, such as camera video access cloud, cloud video stream calculation, video cloud storage and the like, are started to be provided for users. The public cloud service has the core of network-based application, the network bandwidth quality of the user accessing the cloud service directly influences the user experience, the public cloud service has higher requirements on the bandwidth, and the reliability of the network is the premise and the basis of the public cloud service.
At present, in the security industry, each manufacturer gradually accesses the functions of the network camera to the cloud end provided by the user, for example, based on the functions, the user can use the mobile phone app to view the real-time picture of the camera at any time and any place, but the similar functions increase the bandwidth requirement while providing convenience for the client, if the network bandwidth is insufficient, the problems of cloud service interruption and the like are easily caused, if the network bandwidth is full, the risk of paralysis of the cloud service network is faced, and the cloud service provider and the service consumer are greatly lost.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present invention provides a method and a system for upgrading a multi-chip device, so as to solve the above-mentioned technical problems.
The invention provides an upgrading method of multi-chip equipment, which comprises the following steps:
The method comprises the steps of respectively deploying network service for receiving upgrade request information, proxy service for forwarding information and upgrade service for upgrade management and upgrade execution in advance;
when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
After the capability registration is completed, the proxy service forwards messages among the services according to the registered capability, when the equipment comprises multiple chips, the upgrading service upgrades the slave chips in sequence, and then upgrades the master chip to complete the upgrading of the multi-chip equipment.
In an embodiment of the present invention, the network service and the upgrade service complete capability registration by registering a capability set with a proxy service, where the capability set includes a service request corresponding to a service to be registered;
the network service and the proxy service run on the main chip;
the upgrade service is used for upgrade management and upgrade execution when running on the main chip;
the upgrade service is used for upgrade execution when running on the slave chip.
In one embodiment of the present invention, before the upgrading of the multi-chip device, the method further includes:
the upgrade service determines the current operating environment according to the product definition table,
If the current running environment is a master chip, an upgrade file storage path is created, upgrade states of the master chip and all slave chips are initialized, network services and upgrade services register the capabilities of the proxy services, and a capability set comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquisition information and slave chip upgrade state notification information processing;
if the current running environment is the slave chip, mounting an upgrade file storage path of the master chip, initializing the upgrade state of the master chip, and registering the capabilities of the proxy service, wherein the capability set at least comprises the information processing from the upgrade of the slave chip.
In one embodiment of the present invention, the upgrade request information includes an upgrade pre-processing message,
The network service sends the upgrade pretreatment information to the proxy service, and the proxy service forwards the upgrade pretreatment information to the upgrade service of the main chip;
The upgrade service of the main chip judges the current upgrade state, if the upgrade state is in an initialized state, the files in the upgrade file storage path are removed, and if the upgrade state is in a non-initialized state, state feedback is carried out;
uploading the upgrade file to the network service, and storing the received upgrade file to an upgrade file storage path through the network service.
In one embodiment of the present invention, before upgrading the multi-chip device, the method further comprises:
respectively packaging data of upgrade files of the master chip and the slave chip, and recording respective upgrade file information in packet heads of the master chip upgrade packet and the slave chip upgrade packet;
Synthesizing the master chip upgrade package and the slave chip upgrade package, and recording the starting position of the master chip upgrade package and the slave chip upgrade package in the synthesized upgrade package head.
In one embodiment of the present invention, an upgrade message is sent to a proxy service through the network service, and the proxy service forwards the upgrade message to an upgrade service of a main chip;
the upgrade service of the main chip analyzes the data of the synthesized upgrade package head and checks the data;
After the data check is correct, the upgrade service of the master chip sends the upgrade information of the slave chip to the proxy service, and the proxy service forwards the information to the upgrade services of all the slave chips;
the upgrade service of the slave chip performs upgrade execution on the slave chip, and simultaneously feeds the upgrade progress back to the upgrade service of the master chip through the proxy service;
the upgrade service of the master chip receives the upgrade states of all the slave chips, and starts to upgrade the master chip after all the slave chips are upgraded;
After the main chip finishes upgrading, the network service is notified through the proxy service.
In an embodiment of the present invention, in the process of uploading the upgrade file to the network service, the method further includes:
Transmitting a cancel upgrade message to a proxy service through the network service, and forwarding the cancel upgrade message to an upgrade service of a main chip by the proxy service;
and the upgrade service of the main chip performs data cleaning and changes the state.
The invention also provides an upgrading system of the multi-chip device, comprising: the server and the client are connected with each other;
The server side comprises a service module for providing different services, wherein the different services comprise a network service for receiving upgrade request information, a proxy service for forwarding messages and an upgrade service for upgrade management and upgrade execution;
when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
After capability registration is completed, the proxy service forwards messages between services according to the registered capabilities,
After the slave chips are upgraded in sequence through the upgrading service, the master chips are upgraded to complete the upgrading of the multi-chip equipment;
the client comprises a software development kit for providing local services by interacting with the server.
The invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method as described in any of the above.
The invention also provides an electronic terminal, comprising: a processor and a memory;
The memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so as to cause the terminal to execute the method according to any one of the above methods.
The invention has the beneficial effects that: the method and the system for upgrading the multi-chip equipment can complete the upgrading by upgrading the functional progress and introducing the proxy service, so that all the chips to be upgraded can be upgraded only by running the upgrading progress, all the services can actively register the own capacity to the proxy service when being started, all the services only need to send messages to the proxy, and the proxy service can automatically forward the messages to the processing service corresponding to the messages according to the messages.
Drawings
Fig. 1 is a flow chart of an upgrading method of a multi-chip device according to an embodiment of the invention.
Fig. 2 is a timing diagram of service initialization of an upgrade method of a multi-chip device according to an embodiment of the present invention.
Fig. 3 is a timing diagram of upgrade file uploading of an upgrade method of a multi-chip device according to an embodiment of the present invention.
Fig. 4 is a timing diagram illustrating an upgrade of an upgrade method of a multi-chip device according to an embodiment of the present invention.
Fig. 5 is a timing diagram of upgrade status acquisition of an upgrade method of a multi-chip device according to an embodiment of the present invention.
Fig. 6 is a schematic diagram of the device in the embodiment of the present invention when the device is a single chip.
Fig. 7 is a schematic diagram of the device in the embodiment of the present invention when the device is a multi-chip device.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In the following description, numerous details are set forth in order to provide a more thorough explanation of embodiments of the present invention, it will be apparent, however, to one skilled in the art that embodiments of the present invention may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present invention.
As shown in fig. 1, the method for upgrading the multi-chip device in this embodiment includes:
s1, respectively deploying network service for receiving upgrade request information, proxy service for forwarding information and upgrade service for upgrade management and upgrade execution in advance;
s2, when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
S3, after the capability registration is completed, the proxy service forwards messages among the services according to the registered capability, when the equipment comprises multiple chips, the upgrading service upgrades the slave chips in sequence, and then upgrades the master chips, so that the multi-chip equipment is upgraded.
In step S1 of the present embodiment, the method for upgrading a multi-chip device mainly includes three services: the network service, the proxy service and the upgrading service complete the upgrading function through the matching of the three services. The network service in this embodiment includes a WEB service, which is a service provided by the device externally, and the WEB service is mainly used for receiving WEB request information, where the request information includes, for example, upgrade preprocessing, uploading an upgrade package, and the like, and the WEB service in this embodiment runs on the main chip. The proxy service is mainly used for forwarding messages among chips, registering self-supporting capabilities with the proxy service when the WEB service and the upgrade service are started, forwarding messages according to the service registration capabilities when the proxy service receives the messages, and operating on a main chip in the embodiment. The upgrade service is operated on each chip of the device, and when the upgrade service is operated on an extension chip (a slave chip for short), the upgrade service is an upgrade function; when the system is operated on a main control chip (main chip for short), the upgrade service has more upgrade management functions besides upgrade functions.
In step S2 of the present embodiment, when the network service and the upgrade service are started, capability registration is performed with the proxy service, respectively. For example, in the service initialization stage, the master chip automatically starts the WEB service, the proxy service and the upgrade service, the slave chip automatically starts the upgrade service, and the WEB service registers a capability set with the proxy service, where the capability set refers to which service requests can be processed by the service, and the WEB service capability includes: upgrade status change message processing.
In step S3 of this embodiment, the proxy service forwards the message between the services according to the registered capability, and when the device includes multiple chips, the upgrade service upgrades the slave chips in turn, and then upgrades the master chip, thereby completing the upgrade of the multi-chip device. In this embodiment, the upgrade service may determine whether the running environment is a master chip or a slave chip according to the product definition table, if the running environment is a master chip, create an upgrade file save path, initialize upgrade states including upgrade states of all slave chips, register a capability set with the proxy service, and include upgrade preprocessing message, upgrade start message, upgrade cancel message, upgrade state acquisition message, and slave chip upgrade state notification message processing. If the chip is a slave chip, mounting an upgrade file storage path of the master chip, initializing a self upgrade state, and registering a capability set with the proxy service, wherein the method comprises the step of starting message processing from the chip upgrade.
In this embodiment, before step S2, the method further includes making an upgrade package, which specifically includes: packaging and manufacturing an upgrade file of the main control chip, and recording the information content of the upgrade file at the head part of the upgrade package; packaging and manufacturing an upgrade file of the extension chip, and recording the information content of the upgrade file at the head part of the upgrade package; and combining the two upgrade packages into one upgrade package, recording the starting position of the upgrade package of the master chip and the slave chip at the package head part of the upgrade package, and compressing the upgrade package.
In this embodiment, as shown in fig. 2, after the upgrade package is manufactured, service initialization is required, the main control chip automatically starts up the WEB service, the proxy service, and the upgrade service, and the extension chip automatically starts up the upgrade service. The WEB service registers a capability set with the proxy service, where the capability set refers to which service requests can be processed by the service, and the WEB service capability includes: upgrade status change message processing. The upgrade service judges whether the running environment is a master chip or a slave chip according to the product definition table, if the running environment is the master chip, an upgrade file storage path is created, the initialization upgrade state comprises the upgrade states of all the slave chips, and the upgrade service registers a capability set to the proxy service, and comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquisition information and slave chip upgrade state notification information processing. If the chip is a slave chip, mounting an upgrade file storage path of the master chip, initializing a self upgrade state, and registering a capability set with the proxy service, wherein the method comprises the step of starting message processing from the chip upgrade.
In one embodiment, as shown in fig. 3, after service initialization, the upgrade package is uploaded through the WEB, which specifically includes: the WEB issues inquiry upgrading states to the WEB service, the WEB service sends pretreatment information to the proxy service, the proxy service forwards the information to the main upgrading service, and the main upgrading service returns to the current upgrading state. The WEB issues pretreatment to WEB service, the WEB service sends pretreatment information to proxy service, the proxy service forwards the information to main upgrading service, the main upgrading service judges whether the current upgrading state is an initialized state, if yes, files under an upgrading file storage path are cleared, and if the current upgrading state is an upgrading state, the current upgrading state is returned. Uploading the upgrade file to the WEB service by the WEB sub-package, and storing the received data write file to the mounting path by the WEB service.
In an embodiment, the upgrade package may support cancellation of upgrade when uploaded, and may cancel upgrade service (abbreviated as main upgrade service) forwarded to the main chip by the proxy service through WEB issue, where the main upgrade service performs data cleaning and state change.
In one embodiment, as shown in FIG. 4, an upgrade message is sent to a proxy service through a network service, and forwarded by the proxy service to an upgrade service of a master chip; the upgrade service of the main chip analyzes the data of the synthesized upgrade package head and checks the data; after the data check is correct, the upgrade service of the master chip sends the upgrade information of the slave chip to the proxy service, and the proxy service forwards the information to the upgrade services of all the slave chips; the upgrade service of the slave chip performs upgrade execution on the slave chip, and simultaneously feeds the upgrade progress back to the upgrade service of the master chip through the proxy service; the upgrade service of the master chip receives the upgrade states of all the slave chips, and starts to upgrade the master chip after all the slave chips are upgraded; after the main chip finishes upgrading, the network service is notified through the proxy service. In this embodiment, after the upgrade package is uploaded, the WEB may actively issue the upgrade starting message, and the WEB issues the upgrade starting message and forwards the upgrade starting message to the main upgrade service from the proxy service. The main upgrade service processes upgrade file data including decompression, data integrity and the like, then analyzes upgrade package head information, and checks whether an upgrade package is paired with equipment. After the data processing is carried out on the master upgrading service, the master upgrading service sends the upgrading information of the slave chip to the proxy service, the proxy service forwards the information to all the upgrading services of the slave chip (called as the slave upgrading service for short), and the slave upgrading service carries out software upgrading on the slave chip and simultaneously informs the upgrading progress to the master upgrading service through the proxy. As shown in fig. 5, the master upgrade service receives the upgrade status of all the slave chips, starts to upgrade the master chip after all the slave chips are upgraded, notifies the WEB service that the upgrade is about to be restarted through the proxy after the upgrade of the master chip is completed, stores the data of the WEB service, deletes the temporary file, and restarts the device.
In an embodiment, as shown in fig. 6, when the device is a single-chip device, the upgrade file may be made into an upgrade package, the package header records the upgrade package information, a WEB service, a proxy service and an upgrade service are deployed on the chip 1, the device WEB is opened in the browser, and the upgrade file is selected to click for upgrade.
In an embodiment, as shown in fig. 7, when the device is a dual-chip device, a master chip upgrade file is made into an upgrade package, upgrade package information is recorded in a package header, a slave chip upgrade file is made into an upgrade package, upgrade package information is recorded in the package header, and master-slave upgrade package inclusion is recorded together with master-slave upgrade file offset. The WEB service, the proxy service and the upgrade service are deployed on the master chip, and the upgrade file is deployed on the slave chip 1. And opening the WEB of the equipment in the browser, and clicking and upgrading the upgrade file.
Correspondingly, the embodiment also provides an upgrading system of the multi-chip device, which comprises: the server and the client are connected with each other;
the server side comprises a service module for providing different services, wherein the different services comprise network services for receiving upgrade request information, proxy services for data interaction between multiple chips and upgrade services for upgrade management and upgrade execution;
when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
After capability registration is completed, the proxy service forwards messages between services according to the registered capabilities,
After the slave chips are upgraded in sequence through the upgrading service, the master chips are upgraded to complete the upgrading of the multi-chip equipment;
the client comprises a software development kit for providing local services by interacting with the server.
In this embodiment, the upgrade system of the multi-chip device performs upgrade by the method in the embodiment, and the system in this embodiment divides the upgrade function into the client and the server, and the server implements the upgrade function and services, and makes the upgrade client into the software development kit SDK through the user-defined protocol docking, and when other products integrate the function, only needs to integrate the upgrade SDK into the own service module, and then runs the upgrade server on all chips. The upgrading function is processed and proxy services are introduced, so that all chips to be upgraded can be upgraded only by running the upgrading process, all services can actively register the own capacity of the proxy services when being started, all services only need to send messages to the proxy, and the proxy services can automatically forward the messages to processing services corresponding to the messages according to the messages.
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements any of the methods of the present embodiments.
The embodiment also provides an electronic terminal, including: a processor and a memory;
The memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so that the terminal executes any one of the methods in the present embodiment.
The computer readable storage medium in this embodiment, as will be appreciated by those of ordinary skill in the art: all or part of the steps for implementing the method embodiments described above may be performed by computer program related hardware. The aforementioned computer program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver, and a communication interface, where the memory and the communication interface are connected to the processor and the transceiver and complete communication with each other, the memory is used to store a computer program, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer program, so that the electronic terminal performs each step of the above method.
In this embodiment, the memory may include a random access memory (Random Access Memory, abbreviated as RAM), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, abbreviated as CPU), a network processor (Network Processor, abbreviated as NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application Specific Integrated Circuit (ASIC), field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In the above embodiments, unless otherwise specified the description of a common object by use of a sequence number "first", "second", etc., merely indicates that it refers to a different instance of the same object, and is not intended to indicate that the described object must take a given order, whether temporally, spatially, in ranking, or in any other manner. Reference in the specification to "this embodiment," "one embodiment," "another embodiment," or "other embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least some embodiments, but not necessarily all embodiments. Multiple occurrences of "this embodiment," "one embodiment," "another embodiment," and "like" do not necessarily all refer to the same embodiment.
In the above embodiments, while the present invention has been described in conjunction with specific embodiments thereof, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory structures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed. The embodiments of the invention are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The invention is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. It is therefore intended that all equivalent modifications and changes made by those skilled in the art without departing from the spirit and technical spirit of the present invention shall be covered by the appended claims.

Claims (8)

1. A method for upgrading a multi-chip device, comprising:
The method comprises the steps of respectively deploying network service for receiving upgrade request information, proxy service for forwarding messages and upgrade service for upgrade management and upgrade execution in advance, wherein the upgrade request information comprises upgrade preprocessing messages;
when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
After capability registration is completed, the proxy service forwards messages among the services according to the registered capability, when the equipment comprises multiple chips, the upgrading service upgrades the slave chips in sequence and then upgrades the master chips to complete the upgrading of the multi-chip equipment, and the upgrading service judges the current running environment according to a product definition table;
if the current running environment is a master chip, an upgrade file storage path is created, upgrade states of the master chip and all slave chips are initialized, network services and upgrade services register the capabilities of the proxy services, and a capability set comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquisition information and slave chip upgrade state notification information processing;
If the current running environment is a slave chip, mounting an upgrade file storage path of a master chip, initializing an upgrade state of the master chip, and registering the capabilities of the proxy service, wherein the capability set at least comprises the information processing from the upgrade of the slave chip;
The network service sends the upgrade pretreatment information to the proxy service, and the proxy service forwards the upgrade pretreatment information to the upgrade service of the main chip; the upgrade service of the main chip judges the current upgrade state, if the upgrade state is in an initialized state, the files in the upgrade file storage path are removed, and if the upgrade state is in a non-initialized state, state feedback is carried out; uploading the upgrade file to the network service, and storing the received upgrade file to an upgrade file storage path through the network service.
2. The method for upgrading a multi-chip device according to claim 1, wherein the network service and the upgrading service complete capability registration by registering a capability set with a proxy service, the capability set including service requests corresponding to the service to be registered;
the network service and the proxy service run on the main chip;
the upgrade service is used for upgrade management and upgrade execution when running on the main chip;
the upgrade service is used for upgrade execution when running on the slave chip.
3. The method for upgrading a multi-chip device according to claim 2, further comprising, prior to upgrading the multi-chip device:
respectively packaging data of upgrade files of the master chip and the slave chip, and recording respective upgrade file information in packet heads of the master chip upgrade packet and the slave chip upgrade packet;
Synthesizing the master chip upgrade package and the slave chip upgrade package, and recording the starting position of the master chip upgrade package and the slave chip upgrade package in the synthesized upgrade package head.
4. The method for upgrading a multi-chip device according to claim 3, wherein,
Sending the upgrade message to a proxy service through the network service, and forwarding the upgrade message to an upgrade service of a main chip by the proxy service;
the upgrade service of the main chip analyzes the data of the synthesized upgrade package head and checks the data;
After the data check is correct, the upgrade service of the master chip sends the upgrade information of the slave chip to the proxy service, and the proxy service forwards the information to the upgrade services of all the slave chips;
the upgrade service of the slave chip performs upgrade execution on the slave chip, and simultaneously feeds the upgrade progress back to the upgrade service of the master chip through the proxy service;
the upgrade service of the master chip receives the upgrade states of all the slave chips, and starts to upgrade the master chip after all the slave chips are upgraded;
After the main chip finishes upgrading, the network service is notified through the proxy service.
5. The method for upgrading a multi-chip device according to claim 1, further comprising, in uploading an upgrade file to the network service:
Transmitting a cancel upgrade message to a proxy service through the network service, and forwarding the cancel upgrade message to an upgrade service of a main chip by the proxy service;
and the upgrade service of the main chip performs data cleaning and changes the state.
6. An upgrade system for a multi-chip device, comprising: the server and the client are connected with each other;
The server side comprises a service module for providing different services, wherein the different services comprise a network service for receiving upgrade request information, a proxy service for forwarding messages and an upgrade service for upgrade management and upgrade execution, and the upgrade request information comprises an upgrade preprocessing message;
when the network service and the upgrading service are started, respectively registering the capabilities of the proxy service;
After capability registration is completed, the proxy service forwards messages between services according to the registered capabilities,
After the slave chips are sequentially upgraded through the upgrading service, the master chips are upgraded to finish the upgrading of the multi-chip equipment, and the upgrading service judges the current running environment according to a product definition table;
if the current running environment is a master chip, an upgrade file storage path is created, upgrade states of the master chip and all slave chips are initialized, network services and upgrade services register the capabilities of the proxy services, and a capability set comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquisition information and slave chip upgrade state notification information processing;
If the current running environment is a slave chip, mounting an upgrade file storage path of a master chip, initializing an upgrade state of the master chip, and registering the capabilities of the proxy service, wherein the capability set at least comprises the information processing from the upgrade of the slave chip;
The network service sends the upgrade pretreatment information to the proxy service, and the proxy service forwards the upgrade pretreatment information to the upgrade service of the main chip; the upgrade service of the main chip judges the current upgrade state, if the upgrade state is in an initialized state, the files in the upgrade file storage path are removed, and if the upgrade state is in a non-initialized state, state feedback is carried out; uploading the upgrade file to the network service, and storing the received upgrade file to an upgrade file storage path through the network service;
the client comprises a software development kit for providing local services by interacting with the server.
7. A computer-readable storage medium having stored thereon a computer program, characterized by: the computer program implementing the method of any of claims 1 to 5 when executed by a processor.
8. An electronic terminal, comprising: a processor and a memory;
The memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, to cause the terminal to perform the method according to any one of claims 1 to 5.
CN202111355521.5A 2021-11-16 2021-11-16 Method and system for upgrading multi-chip equipment Active CN113986303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111355521.5A CN113986303B (en) 2021-11-16 2021-11-16 Method and system for upgrading multi-chip equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111355521.5A CN113986303B (en) 2021-11-16 2021-11-16 Method and system for upgrading multi-chip equipment

Publications (2)

Publication Number Publication Date
CN113986303A CN113986303A (en) 2022-01-28
CN113986303B true CN113986303B (en) 2024-05-07

Family

ID=79748806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111355521.5A Active CN113986303B (en) 2021-11-16 2021-11-16 Method and system for upgrading multi-chip equipment

Country Status (1)

Country Link
CN (1) CN113986303B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743718A (en) * 2015-05-28 2018-02-27 Lg电子株式会社 The method and apparatus that agency service is provided via NAN proxy servers in a wireless communication system
CN108924207A (en) * 2018-06-26 2018-11-30 深圳高新兴物联科技有限公司 Terminal device and its system file update method, system and computer storage medium
CN111093183A (en) * 2019-11-13 2020-05-01 华为技术有限公司 Mobile equipment management method and equipment
CN111181752A (en) * 2018-11-12 2020-05-19 中兴通讯股份有限公司 Narrowband device upgrading method, mobile terminal and readable storage medium
CN111309367A (en) * 2020-02-19 2020-06-19 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing service discovery
CN111585795A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Software storing, loading and upgrading method and system for communication equipment
CN111949286A (en) * 2019-05-14 2020-11-17 中国移动通信有限公司研究院 Upgrading method, device, equipment and computer readable storage medium
CN113220433A (en) * 2021-05-14 2021-08-06 北京奇艺世纪科技有限公司 Agent program operation management method and system
CN113434184A (en) * 2021-06-30 2021-09-24 浙江大华技术股份有限公司 Equipment upgrading method and device, storage medium and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11816465B2 (en) * 2013-03-15 2023-11-14 Ei Electronics Llc Devices, systems and methods for tracking and upgrading firmware in intelligent electronic devices

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743718A (en) * 2015-05-28 2018-02-27 Lg电子株式会社 The method and apparatus that agency service is provided via NAN proxy servers in a wireless communication system
CN108924207A (en) * 2018-06-26 2018-11-30 深圳高新兴物联科技有限公司 Terminal device and its system file update method, system and computer storage medium
CN111181752A (en) * 2018-11-12 2020-05-19 中兴通讯股份有限公司 Narrowband device upgrading method, mobile terminal and readable storage medium
CN111949286A (en) * 2019-05-14 2020-11-17 中国移动通信有限公司研究院 Upgrading method, device, equipment and computer readable storage medium
CN111093183A (en) * 2019-11-13 2020-05-01 华为技术有限公司 Mobile equipment management method and equipment
CN111309367A (en) * 2020-02-19 2020-06-19 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for managing service discovery
CN111585795A (en) * 2020-04-26 2020-08-25 烽火通信科技股份有限公司 Software storing, loading and upgrading method and system for communication equipment
CN113220433A (en) * 2021-05-14 2021-08-06 北京奇艺世纪科技有限公司 Agent program operation management method and system
CN113434184A (en) * 2021-06-30 2021-09-24 浙江大华技术股份有限公司 Equipment upgrading method and device, storage medium and electronic device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Remote Firmware Upgrade Method of NAN and HAN Devices to Support AMI’s Energy Services;Young-jun Kim 等;《International Conference on Hybrid Information Technology》;20111231(第206期);303-310 *
基于云环境的代理服务研究;赵凯;《网络安全技术与应用》;20210805(第8期);13-15 *
基于分布式数通设备的软件升级的设计与实现;张丰哲 等;《光通信研究》;20180210(第1期);20-22 *

Also Published As

Publication number Publication date
CN113986303A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN108270855B (en) Method for accessing Internet of things platform to equipment
US11159411B2 (en) Distributed testing service
US11561835B2 (en) Unified container orchestration controller
US8788634B2 (en) Portable device upgrade via a content transfer protocol
CN109643252B (en) Middleware interface and middleware interface generator
US10771307B2 (en) Method and system for inter-device service access
US20190199834A1 (en) Method, apparatus and terminal device for communication protocol compatibility
EP3837604A1 (en) In situ triggered function as a service within a service mesh
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN112738060A (en) Method and device for processing micro-service data, micro-service processing platform and medium
CN113986303B (en) Method and system for upgrading multi-chip equipment
CN109005163B (en) HTTP dynamic request service calling method
US20090222602A1 (en) Optimized data transfer between a portable device and a remote computer
CN112383617B (en) Method, device, terminal equipment and medium for performing long connection
CN112597406A (en) File transmission method and device, terminal equipment and storage medium
US20090222588A1 (en) Portable device and remote computer synchronization
Tokunaga et al. A middleware infrastructure for building mixed reality applications in ubiquitous computing environments
CN113222174B (en) Model management method and device
US8671215B2 (en) Portable communications framework
WO2024001569A1 (en) Network configuration method and apparatus, storage medium and electronic apparatus
CN112866336B (en) Asynchronous network communication method, communication system, device and storage medium
CN111367650B (en) Input and output stream processing method, device and system
CN111143083B (en) Data transmission method and device, storage medium and electronic device
WO2022252791A1 (en) Data transmission method, electronic device, and computer readable storage medium
CN116881366A (en) System for data synchronization

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