CN113986303A - Upgrading method and system of multi-chip equipment - Google Patents

Upgrading method and system of multi-chip equipment Download PDF

Info

Publication number
CN113986303A
CN113986303A CN202111355521.5A CN202111355521A CN113986303A CN 113986303 A CN113986303 A CN 113986303A CN 202111355521 A CN202111355521 A CN 202111355521A CN 113986303 A CN113986303 A CN 113986303A
Authority
CN
China
Prior art keywords
service
upgrade
upgrading
chip
slave
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.)
Granted
Application number
CN202111355521.5A
Other languages
Chinese (zh)
Other versions
CN113986303B (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

Images

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 an upgrading method and system of multi-chip equipment, wherein the method comprises the following steps: a network service for receiving upgrade request information, an agent service for data interaction among multiple chips, and an upgrade service for upgrade management and upgrade execution are respectively deployed in advance; when the network service and the upgrading service are started, capacity registration is respectively carried out on the agent service, the agent service carries out message forwarding among all services according to the registered capacity, and after the slave chips are sequentially upgraded through the upgrading service, the master chip is upgraded, so that the upgrading of the multi-chip equipment is completed; the invention actively registers self ability with the agent service when the service is started, so that all services only need to send messages to the agent, and the agent service can automatically forward to the processing service corresponding to the messages according to the messages.

Description

Upgrading method and system of multi-chip equipment
Technical Field
The invention relates to the field of communication and the field of computer application, in particular to an upgrading method and system of multi-chip equipment.
Background
With the enhanced integration of public cloud technology and other technologies such as internet of things, big data, artificial intelligence, block chaining and the like, public cloud services have been further refined and extended in various industries. In recent years, no matter traditional security industry enterprises or new internet enterprises, cloud services conforming to security characteristics, such as camera video access cloud, cloud video stream calculation, video cloud storage and the like, are provided for users. The core of the public cloud service is based on the application of the network, the network bandwidth quality of the user accessing the cloud service directly influences the experience of the user, the public cloud service has higher requirements on the bandwidth, and the reliability of the network is the premise and the foundation of the public cloud service.
At present, in the security industry, various manufacturers gradually access the function of the network camera to the cloud end provided by the user, for example, based on the function, 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 function provides convenience for the client and increases the requirement of the bandwidth, 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 cloud service network paralysis is faced, and the cloud service providers and the service clients are greatly lost.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention provides a method and system for upgrading a multi-chip device to solve the above-mentioned technical problems.
The upgrading method of the multi-chip equipment provided by the invention comprises the following steps:
a network service for receiving upgrade request information, an agent service for forwarding messages, and an upgrade service for upgrade management and upgrade execution are respectively deployed 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, and 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 multiple-chip equipment.
In an embodiment of the present invention, the network service and the upgrade service complete capability registration by registering a capability set to an agent 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 a 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 an embodiment of the present invention, before upgrading the multi-chip device, the method further includes:
the upgrade service determines a current operating environment according to a product definition table,
if the current operating environment is a master chip, establishing an upgrade file saving path, initializing the upgrade states of the master chip and all slave chips, and registering the capability to the agent service by the network service and the upgrade service, wherein the capability set comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquiring information and slave chip upgrade state notification information;
if the current operation environment is the slave chip, the upgrade file saving path of the master chip is mounted, the upgrade state of the master chip is initialized, the agent service is subjected to capability registration, and the capability set at least comprises the upgrade starting message processing of the slave chip.
In an embodiment of the present invention, the upgrade request information includes an upgrade preprocessing message,
the network service sends the upgrading pretreatment message to an agent service, and the agent service forwards the upgrading pretreatment message to the upgrading service of the main chip;
the upgrade service of the main chip judges the current upgrade state, if the upgrade state is in the initialized state, the file under the upgrade file saving path is removed, if the upgrade state is in the uninitialized state, the state feedback is carried out;
and 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 an embodiment of the present invention, before upgrading the multi-chip device, the method further includes:
respectively carrying out data packing on the upgrading files of the main chip and the slave chip, and recording respective upgrading file information in the packet headers of the upgrading packet of the main chip and the upgrading packet of the slave chip;
and synthesizing the master chip upgrade package and the slave chip upgrade package, and recording the initial positions of the master chip upgrade package and the slave chip upgrade package at the head of the synthesized upgrade package.
In an embodiment of the present invention, the upgrade message is sent to the proxy service through the network service, and the proxy service forwards the upgrade message to the upgrade service of the main chip;
the upgrading service of the main chip analyzes the data of the synthesized upgrading packet header and verifies the data;
after the data are verified to be correct, the upgrading service of the main chip sends upgrading information of the slave chips to the agent service, and the agent service forwards the information to the upgrading services of all the slave chips;
the upgrading service of the slave chip performs upgrading execution on the slave chip, and simultaneously, the upgrading progress is fed back to the upgrading service of the master chip through the proxy service;
the upgrading service of the main chip receives the upgrading states of all the slave chips, and the main chip is upgraded after all the slave chips are upgraded;
and after the main chip finishes upgrading, the main chip informs the network service of finishing upgrading 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:
sending the upgrade canceling message to an agent service through the network service, and forwarding the upgrade canceling message to an upgrade service of a main chip by the agent service;
and the upgrading service of the main chip performs data cleaning and changes the state.
The present invention also provides an upgrade system for a multichip device, comprising: the server and the client are connected with each other;
the server comprises a service module for providing different services, wherein the different services comprise a network service for receiving upgrade request information, an agent 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 the capability registration is completed, the proxy service performs message forwarding among the services according to the registered capability,
after the slave chips are sequentially upgraded through the upgrading service, the master chip is upgraded, and the upgrading of the multi-chip equipment is completed;
the client comprises a software development kit used for providing local services through interaction 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 the method as defined in any one of the above.
The present invention also provides an electronic terminal, comprising: a processor and a memory;
the memory is adapted to store a computer program and the processor is adapted to execute the computer program stored by the memory to cause the terminal to perform the method as defined in any one of the above.
The invention has the beneficial effects that: the upgrading method and the upgrading system of the multi-chip equipment enable all chips needing to be upgraded to finish upgrading only by running an upgrading process by upgrading functional progressionalization and introducing the proxy service, enable all services to actively register self capacity with the proxy service when all services are started, enable all services to send messages to the proxy only, and enable the proxy service to automatically forward the messages to the processing service corresponding to the messages according to the messages.
Drawings
Fig. 1 is a flowchart illustrating an upgrading method of a multi-chip device according to an embodiment of the present invention.
Fig. 2 is a timing diagram illustrating service initialization of the upgrade method for a multi-chip device according to an embodiment of the present invention.
Fig. 3 is a timing diagram illustrating uploading of an upgrade file in the upgrade method for a multi-chip device according to an embodiment of the present invention.
Fig. 4 is a timing diagram illustrating upgrading of the upgrading method of the multi-chip device according to the embodiment of the present invention.
Fig. 5 is a timing diagram illustrating the obtaining of the upgrade status of the upgrade method for 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 in the case of a multi-chip device.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring embodiments of the present invention.
As shown in fig. 1, the method for upgrading a multi-chip device in this embodiment includes:
s1, respectively deploying a network service for receiving upgrade request information, an agent service for forwarding messages and an 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;
and S3, after the capability registration is completed, the agent service forwards messages among the services according to the registered capability, and 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 multiple-chip equipment.
In step S1 of this embodiment, the upgrade method for a multi-chip device mainly includes three services: the system comprises network service, proxy service and upgrading service, and the upgrading function is completed by matching the three services. The WEB service in this embodiment includes a WEB service, the WEB service is a service provided by the device to the outside, the WEB service is mainly used for receiving WEB request information, the request information includes, for example, upgrade preprocessing, uploading an upgrade package, and the WEB service in this embodiment runs on the main chip. The agent service is mainly used for message forwarding between chips, registering self-supporting capacity to the agent service when the WEB service and the upgrade service are started, and forwarding the message according to the capacity of service registration when the agent service receives the message. The upgrading service is operated on each chip of the equipment, and when the upgrading service is operated on an extended chip (called a slave chip for short), the upgrading service is an upgrading function; when the system runs in a main control chip (called a main chip for short), the upgrading service has more upgrading management functions besides the upgrading function.
In step S2 of the present embodiment, when the web 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 WEB services, agent services, and upgrade services, the slave chip automatically starts upgrade services, the WEB services register a capability set with the agent services, the capability set refers to which service requests can be processed by the slave chip, and the WEB service capabilities include: and processing the upgrade state change message.
In step S3 of this embodiment, the proxy service performs message forwarding between services according to the registered capability, and when the device includes multiple chips, the slave chip is sequentially upgraded by the upgrade service, and then the master chip is upgraded, thereby completing upgrading of the multiple-chip device. In this embodiment, the upgrade service may determine whether the operating environment is a master chip or a slave chip according to the product definition table, create an upgrade file saving path if the operating environment is the master chip, initialize the upgrade state including the upgrade states of all slave chips, register a capability set with the proxy service, including processing an upgrade preprocessing message, an upgrade start message, an upgrade cancel message, an upgrade state acquisition message, and a slave chip upgrade state notification message. If the slave chip is the master chip, the upgrade file saving path of the master chip is mounted, the self upgrade state is initialized, and the capability set is registered to the proxy service, including the message processing starting from the upgrade of the slave chip.
In this embodiment, before step S2, the method further includes making an upgrade package, specifically including: packaging and manufacturing the upgrade file of the main control chip, and recording the information content of the upgrade file at the head of the upgrade package; packaging and manufacturing the upgrade file of the expansion chip, and recording the information content of the upgrade file at the head of the upgrade package; and combining the two upgrading packages into one upgrading package, recording the initial position of the upgrading package of the master chip and the slave chip at the head part of the upgrading package, and compressing the upgrading package.
In this embodiment, as shown in fig. 2, after the upgrade package is manufactured, service initialization needs to be performed, and the main control chip automatically starts a WEB service, an agent service, an upgrade service, and an expansion chip automatically starts an upgrade service. The WEB service registers a capability set with the proxy service, wherein the capability set refers to which service requests can be processed by the proxy service, and the WEB service capability comprises the following steps: and processing the upgrade state change message. The upgrading 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 upgrading file saving path is created, the upgrading state is initialized to include the upgrading states of all the slave chips, and a capability set is registered to the agent service and includes upgrading preprocessing information, upgrading starting information, upgrading canceling information, upgrading state acquiring information and slave chip upgrading state informing information processing. If the slave chip is the master chip, the upgrade file saving path of the master chip is mounted, the self upgrade state is initialized, and the capability set is registered to the proxy service, including the message processing starting from the upgrade of the slave chip.
In an embodiment, as shown in fig. 3, after service initialization, uploading an upgrade package through WEB specifically includes: the WEB issues an inquiry upgrading state to the WEB service, the WEB service sends a preprocessing message to the agent service, the agent service forwards the message to the main upgrading service, and the main upgrading service returns to the current upgrading state. The WEB issues the pretreatment to the WEB service, the WEB service sends the pretreatment message to the agent service, the agent service forwards the message to the main upgrading service, the main upgrading service judges whether the current upgrading state is the initialization state, if so, the files under the upgrading file saving path are removed, and if the current upgrading state is the upgrading state, the files are returned to the current upgrading state. And the WEB subcontract uploads the upgrade file to a WEB service, and the WEB service stores the received data write file to a mounting path.
In an embodiment, the upgrade package may support cancellation of upgrade when being uploaded, and the upgrade package may be issued through the WEB to cancel upgrade service (referred to as main upgrade service for short) that is forwarded to the main chip by the proxy service, where the main upgrade service performs data cleaning and state change.
In one embodiment, as shown in fig. 4, the upgrade message is sent to the proxy service through the web service, and forwarded to the upgrade service of the main chip by the proxy service; the upgrading service of the main chip analyzes the data of the synthesized upgrading packet header and verifies the data; after the data are verified to be correct, the upgrading service of the main chip sends upgrading information of the slave chips to the agent service, and the agent service forwards the information to the upgrading services of all the slave chips; the upgrading service of the slave chip performs upgrading execution on the slave chip, and simultaneously, the upgrading progress is fed back to the upgrading service of the master chip through the proxy service; the upgrading service of the main chip receives the upgrading states of all the slave chips, and the main chip is upgraded after all the slave chips are upgraded; and after the main chip finishes upgrading, the main chip informs the network service of finishing upgrading through the proxy service. In this embodiment, after the upgrade package is uploaded, the WEB may actively issue an upgrade start message, and the WEB issues the upgrade start message and forwards the upgrade start message to the main upgrade service by the proxy service. The main upgrading service firstly processes the upgrading file data, including decompression, data integrity and the like, then analyzes the head information of the upgrading packet and checks whether the upgrading packet is matched with the equipment. After the data processing is carried out by the master upgrading service, the master upgrading service sends a slave chip upgrading message to the proxy service, the proxy service forwards the message to the upgrading service (called slave upgrading service for short) of all slave chips, the slave upgrading service carries out software upgrading on the slave chips, and meanwhile, the upgrading progress is notified to the master upgrading service through the proxy. As shown in fig. 5, the master upgrade service receives the upgrade status of all slave chips, and starts upgrading the master chip after all the slave chips are upgraded, and after the master chip is upgraded, the master chip notifies the WEB service that the WEB service is about to restart after upgrading is completed through an agent, the WEB service stores data, and the master chip 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 information of the upgrade package, the WEB service, the proxy service, and the upgrade service are deployed on the chip 1, the WEB of the device is opened in the browser, and the upgrade file is selected and clicked for upgrading.
In an embodiment, as shown in fig. 7, when the device is a dual-chip device, the master chip upgrade file is made into an upgrade package and upgrade package information is recorded in the header, the slave chip upgrade file is made into an upgrade package and upgrade package information is recorded in the header, and the master upgrade package and the slave upgrade package are recorded together with the master upgrade file offset. WEB service, agent service and upgrading service are deployed on the master chip, and upgrading files are deployed on the slave chip 1. And opening equipment WEB on the browser, selecting an upgrade file, and clicking for upgrading.
Correspondingly, this embodiment also provides an upgrade system of multi-chip device, including: the server and the client are connected with each other;
the server comprises a service module for providing different services, wherein the different services comprise a network service for receiving upgrade request information, an agent service for data interaction among multiple chips 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 the capability registration is completed, the proxy service performs message forwarding among the services according to the registered capability,
after the slave chips are sequentially upgraded through the upgrading service, the master chip is upgraded, and the upgrading of the multi-chip equipment is completed;
the client comprises a software development kit used for providing local services through interaction with the server.
In the embodiment, the upgrading system of the multi-chip device is upgraded by the method in the embodiment, the system in the embodiment divides the upgrading function into the client and the server, the server realizes the upgrading function and services, the upgrading client is made into the software development kit SDK by the butt joint of the self-defined protocol, and other products only need to incorporate the upgrading SDK into the self service module when integrating the function, and the upgrading server is operated on all chips. All chips needing to be upgraded can be upgraded only by running an upgrading process by upgrading functional progressionalization and introducing agent services, all services actively register self capacity with the agent services when being started, all services only need to send messages to the agents, and the agent 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 on which a computer program is stored, which when executed by a processor implements any of the methods in the present embodiments.
The present embodiment further provides an electronic terminal, including: a processor and a memory;
the memory is used for storing computer programs, and the processor is used for executing the computer programs stored by the memory so as to enable the terminal to execute the method in the embodiment.
The computer-readable storage medium in the present embodiment can be understood by those skilled in the art as follows: all or part of the steps for implementing the above method embodiments may be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The electronic terminal provided by the embodiment comprises a processor, a memory, a transceiver and a communication interface, wherein the memory and the communication interface are connected with the processor and the transceiver and are used for completing mutual communication, the memory is used for storing a computer program, the communication interface is used for carrying out communication, and the processor and the transceiver are used for operating the computer program so that the electronic terminal can execute the steps of the method.
In this embodiment, the Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In the above embodiments, unless otherwise specified, the description of common objects by using "first", "second", etc. ordinal numbers only indicate that they refer to different instances of the same object, rather than indicating that the objects being described must be in a given sequence, whether temporally, spatially, in ranking, or in any other manner. In the above-described embodiments, reference in the specification to "the embodiment," "an 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. The various appearances of the phrase "the present embodiment," "one embodiment," or "another embodiment" are not necessarily all referring to the same embodiment.
In the embodiments described above, although 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 discussed embodiments. The embodiments of the invention are intended to embrace all such alternatives, modifications and variances that fall within the broad scope of the appended claims.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
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-type 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 foregoing embodiments are merely illustrative of the principles of the present invention and its efficacy, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. An upgrade method for a multi-chip device, comprising:
a network service for receiving upgrade request information, an agent service for forwarding messages, and an upgrade service for upgrade management and upgrade execution are respectively deployed 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, and 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 multiple-chip equipment.
2. The upgrading method of the multi-chip device according to claim 1, wherein the network service and the upgrading service complete capability registration by registering a capability set with the proxy service, the capability set including a service request corresponding to a service to be registered;
the network service and the proxy service run on a 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 of upgrading a multichip device of claim 2, further comprising, prior to upgrading the multichip device:
the upgrade service determines a current operating environment according to a product definition table,
if the current operating environment is a master chip, establishing an upgrade file saving path, initializing the upgrade states of the master chip and all slave chips, and registering the capability to the agent service by the network service and the upgrade service, wherein the capability set comprises upgrade preprocessing information, upgrade starting information, upgrade canceling information, upgrade state acquiring information and slave chip upgrade state notification information;
if the current operation environment is the slave chip, the upgrade file saving path of the master chip is mounted, the upgrade state of the master chip is initialized, the agent service is subjected to capability registration, and the capability set at least comprises the upgrade starting message processing of the slave chip.
4. The upgrading method of a multichip device according to claim 3, wherein the upgrade request information includes an upgrade pre-process message,
the network service sends the upgrading pretreatment message to an agent service, and the agent service forwards the upgrading pretreatment message to the upgrading service of the main chip;
the upgrade service of the main chip judges the current upgrade state, if the upgrade state is in the initialized state, the file under the upgrade file saving path is removed, if the upgrade state is in the uninitialized state, the state feedback is carried out;
and uploading the upgrade file to the network service, and storing the received upgrade file to an upgrade file storage path through the network service.
5. The method of upgrading a multichip device of claim 2, further comprising, prior to upgrading the multichip device:
respectively carrying out data packing on the upgrading files of the main chip and the slave chip, and recording respective upgrading file information in the packet headers of the upgrading packet of the main chip and the upgrading packet of the slave chip;
and synthesizing the master chip upgrade package and the slave chip upgrade package, and recording the initial positions of the master chip upgrade package and the slave chip upgrade package at the head of the synthesized upgrade package.
6. The method for upgrading a multichip device according to claim 5,
sending the upgrading message to an agent service through the network service, and forwarding the upgrading message to the upgrading service of the main chip by the agent service;
the upgrading service of the main chip analyzes the data of the synthesized upgrading packet header and verifies the data;
after the data are verified to be correct, the upgrading service of the main chip sends upgrading information of the slave chips to the agent service, and the agent service forwards the information to the upgrading services of all the slave chips;
the upgrading service of the slave chip performs upgrading execution on the slave chip, and simultaneously, the upgrading progress is fed back to the upgrading service of the master chip through the proxy service;
the upgrading service of the main chip receives the upgrading states of all the slave chips, and the main chip is upgraded after all the slave chips are upgraded;
and after the main chip finishes upgrading, the main chip informs the network service of finishing upgrading through the proxy service.
7. The upgrading method of the multi-chip device according to claim 4, further comprising, during uploading the upgrade file to the network service:
sending the upgrade canceling message to an agent service through the network service, and forwarding the upgrade canceling message to an upgrade service of a main chip by the agent service;
and the upgrading service of the main chip performs data cleaning and changes the state.
8. An upgrade system for a multichip device, comprising: the server and the client are connected with each other;
the server comprises a service module for providing different services, wherein the different services comprise a network service for receiving upgrade request information, an agent 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 the capability registration is completed, the proxy service performs message forwarding among the services according to the registered capability,
after the slave chips are sequentially upgraded through the upgrading service, the master chip is upgraded, and the upgrading of the multi-chip equipment is completed;
the client comprises a software development kit used for providing local services through interaction with the server.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a processor, implements the method of any one of claims 1 to 7.
10. An electronic terminal, comprising: a processor and a memory;
the memory is for storing a computer program and the processor is for executing the computer program stored by the memory to cause the terminal to perform the method of any of claims 1 to 7.
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 true CN113986303A (en) 2022-01-28
CN113986303B 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 (10)

* 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
US20200012488A1 (en) * 2013-03-15 2020-01-09 Electro Industries/Gauge Tech Devices, systems and methods for tracking and upgrading firmware in intelligent electronic devices
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

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200012488A1 (en) * 2013-03-15 2020-01-09 Electro Industries/Gauge Tech Devices, systems and methods for tracking and upgrading firmware in intelligent electronic devices
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
YOUNG-JUN KIM 等: "A Remote Firmware Upgrade Method of NAN and HAN Devices to Support AMI’s Energy Services", 《INTERNATIONAL CONFERENCE ON HYBRID INFORMATION TECHNOLOGY》, no. 206, 31 December 2011 (2011-12-31), pages 303 - 310 *
张丰哲 等: "基于分布式数通设备的软件升级的设计与实现", 《光通信研究》, no. 1, 10 February 2018 (2018-02-10), pages 20 - 22 *
赵凯: "基于云环境的代理服务研究", 《网络安全技术与应用》, no. 8, 5 August 2021 (2021-08-05), pages 13 - 15 *

Also Published As

Publication number Publication date
CN113986303B (en) 2024-05-07

Similar Documents

Publication Publication Date Title
CN108234670B (en) Zookeeper and netty-based distributed remote calling method
US7346370B2 (en) Enabling interoperability between distributed devices using different communication link technologies
US10771307B2 (en) Method and system for inter-device service access
EP3837604B1 (en) In situ triggered function as a service within a service mesh
WO2020181814A1 (en) Application program upgrading method and apparatus, terminal and computer readable storage medium
CN104516885A (en) Implementation method and device of browse program double-kernel assembly
CN113467958B (en) Data processing method, device, equipment and readable storage medium
CN113434249A (en) Mirror image synchronization method and device, docker host and storage medium
WO2021093671A1 (en) Task processing method, system, apparatus and device, and computer readable storage medium
CN113986303A (en) Upgrading method and system of multi-chip equipment
CN112261147A (en) Method, device, terminal and storage medium for implementing high-rate coexisting network mode
US20140056309A1 (en) Method and apparatus for frame transfer using virtual buffer
CN111200608B (en) Link information processing method and device
CN111083182B (en) Distributed Internet of things equipment management method and device
CN112383617A (en) Method, device, terminal equipment and medium for long connection
CN113973135A (en) Data caching processing method and device, caching grid platform and storage medium
CN110875910B (en) Method, device and system for acquiring network transmission information
CN112558939A (en) Method, system and equipment for constructing service satellite-borne software of software-defined satellite
CN114500302B (en) ICE service arrangement method, ICE service arrangement device, terminal equipment and storage medium
CN112866336B (en) Asynchronous network communication method, communication system, device and storage medium
CN111367650B (en) Input and output stream processing method, device and system
CN116389252B (en) Method, device, system, electronic equipment and storage medium for updating container network
CN112135052B (en) Desktop cloud-based photographing system and method
Lahmar et al. Developing adapters for structural adaptation of component-based applications
KR101713012B1 (en) Method and System on Contents Delivering Using Contents Optimized Protocol

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