CN112217885B - Dynamic management method, device, equipment and storage medium for components - Google Patents

Dynamic management method, device, equipment and storage medium for components Download PDF

Info

Publication number
CN112217885B
CN112217885B CN202011033962.9A CN202011033962A CN112217885B CN 112217885 B CN112217885 B CN 112217885B CN 202011033962 A CN202011033962 A CN 202011033962A CN 112217885 B CN112217885 B CN 112217885B
Authority
CN
China
Prior art keywords
component
information list
components
component information
mirror image
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
CN202011033962.9A
Other languages
Chinese (zh)
Other versions
CN112217885A (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.)
Pulian International Co ltd
Original Assignee
Pulian International 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 Pulian International Co ltd filed Critical Pulian International Co ltd
Priority to CN202011033962.9A priority Critical patent/CN112217885B/en
Publication of CN112217885A publication Critical patent/CN112217885A/en
Application granted granted Critical
Publication of CN112217885B publication Critical patent/CN112217885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Health & Medical Sciences (AREA)
  • Facsimiles In General (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for dynamically managing components, wherein the method comprises the steps of obtaining a first component information list; loading a component image according to the first component information list, and performing heartbeat monitoring on the current component on which the component image is loaded; judging whether the first component information list needs to be updated according to the heartbeat monitoring result; acquiring a second component information list after all components are loaded; when the components to be removed exist in the second component information list, the mirror image space of the components to be removed is tidied; and adjusting the master control Boot image according to the arrangement result. The invention can effectively relieve the condition that the storage space of the system is wasted due to the actual demands of users or the internal damage of the components by managing the components, and improves the flexibility of the functions of the expansion components and the utilization rate of the expansion components in the communication equipment.

Description

Dynamic management method, device, equipment and storage medium for components
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for dynamically managing components.
Background
Current communication devices typically emphasize a single specific body function, such as a wired ethernet switch, which body function is to provide ethernet packet switching functions within a local area network. It is very difficult to implement for existing devices if additional body functions, such as providing wireless AP access services, need to be extended over the wired ethernet switch. In the industry, a product architecture with a brand new form is generally needed to realize the expansion of the main body function of the existing communication equipment, for example, a chassis with a slot capable of installing a plurality of boards is provided, a main control board is carried in advance, and then another board with the wireless AP access service main body function is purchased and installed separately.
The above-mentioned manner of extending the main body function components of the conventional communication device has room for improvement in terms of cost, flexibility, ease of use and utilization rate.
Disclosure of Invention
The invention provides a dynamic management method, a device, equipment and a storage medium for components, which realize the management of the components in the communication equipment, can effectively relieve the condition that the components waste the storage space of a system due to the actual demands of users or the internal damage of the components, and improve the flexibility of expanding the functions of the components and the utilization rate of expanding the components in the communication equipment.
The embodiment of the invention provides a dynamic management method for components, which comprises the following steps:
acquiring a first component information list;
Loading a component image according to the first component information list, and performing heartbeat monitoring on the current component on which the component image is loaded;
Judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
acquiring a second component information list after all components are loaded;
when the components to be removed exist in the second component information list, the mirror image space of the components to be removed is tidied;
and adjusting the master control Boot image according to the arrangement result.
Further, the determining whether the first component information list needs to be updated according to the heartbeat monitoring result specifically includes:
When the current component which is loading the mirror image does not have a heartbeat signal, stopping loading the current component, and updating the first component information list;
When the heartbeat signal exists in the current component which is loading the image, the current component is continuously loaded.
Further, after the second component information list after all the components are loaded is obtained, the method further includes:
judging whether a disconnected component exists in the second component information list;
If yes, judging whether a heartbeat signal exists in the disconnected component;
when no heartbeat signal exists, taking the disconnected component as a component to be removed;
when a heartbeat signal is present, the disconnected component is reloaded.
Further, the method further comprises the following steps:
When the disconnected component does not exist in the second component information list, monitoring a heartbeat signal of the component in the second component information list;
when a heartbeat signal exists, monitoring whether an access detection signal exists or not;
if yes, the component corresponding to the access detection signal is identified.
Further, when the component to be removed exists in the second component information list, the sorting the mirror image space of the component to be removed specifically includes:
positioning a mirror image space address area of the component to be removed;
The mirrored spatial address region of the component to be removed is reclaimed.
Further, the reclaiming of the mirrored spatial address area of the component to be removed further comprises:
Judging whether the recovered mirror image space address area is required to be fused with other idle address areas or not;
If yes, moving the mirror image space address areas corresponding to other components;
and updating the second component information list after the movement is completed.
Further, the adjusting the master Boot image according to the arrangement result specifically includes:
According to the arrangement result, adjusting a jump mechanism when the master Boot image is loaded;
Updating a verification strategy when the master Boot image is loaded according to the arrangement result;
and updating the master control Boot image exception handling strategy according to the arrangement result.
Correspondingly, the embodiment of the invention also provides a device for dynamically managing the components, which comprises:
The first acquisition module is used for acquiring a first component information list;
the monitoring module is used for loading the component mirror image according to the first component information list and performing heartbeat monitoring on the current component on which the mirror image is being loaded;
The execution module is used for judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
The second acquisition module is used for acquiring a second component information list after all components are loaded;
the arrangement module is used for arranging the mirror image space of the component to be removed when the component to be removed exists in the second component information list;
and the adjusting module is used for adjusting the master control Boot image according to the arrangement result.
Correspondingly, the embodiment of the invention also provides communication equipment, which comprises a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, wherein the processor realizes the dynamic component management method of any one of the above components when executing the computer program.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program is used for controlling equipment where the computer readable storage medium is located to execute the component dynamic management method according to any one of the above.
The embodiment of the invention has the following beneficial effects:
Acquiring a first component information list; loading a component image according to the first component information list, and performing heartbeat monitoring on the current component on which the component image is loaded; judging whether the first component information list needs to be updated according to the heartbeat monitoring result; acquiring a second component information list after all components are loaded; when the components to be removed exist in the second component information list, the mirror image space of the components to be removed is tidied; and adjusting the master control Boot image according to the arrangement result. By arranging the mirror image space of the component to be removed and adjusting the master control Boot mirror image according to the arrangement result, the condition that the component is wasted in the system storage space due to the actual requirement of a user or the internal damage of the component can be effectively relieved, and the flexibility of expanding the function of the component and the utilization rate of the expanded component in the communication equipment are improved.
Drawings
FIG. 1 is a block diagram of a modular product provided by an embodiment of the present invention;
FIG. 2 is a block diagram of component information provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a method for dynamically managing components according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for managing a component loading phase according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for managing components after a loading stage according to an embodiment of the present invention;
fig. 6 is a flow chart of an access management method of a component according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a method for managing a mirror image space of a component to be removed according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a method for reclaiming a mirror image space of a component to be removed according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a method for reclaiming a mirror image space of a component to be removed according to an embodiment of the present invention;
FIG. 10 is a schematic flow chart of adjusting master Boot images provided by the invention;
fig. 11 is a schematic structural diagram of a dynamic component management device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The component dynamic management method provided by the embodiment of the invention can be applied to the modularized product shown in the figure 1; the coordinate (0, 0) module is defined as a main control module, and the main control module comprises a CPU, a memory, a power supply and an expansion port; the coordinate (0, 2) module is a first component, comprising an IoT (THE INTERNET of Things, internet of things) module, such as bluetooth, zigBee, etc.; the coordinate (1, 1) module is a second component and comprises a Wi-Fi module; the coordinate (-1, 1) module is a third component, comprising a WWAN (wireless wide area network) module, such as LTE,5G, etc. In addition, the modular design can remove the coupling among components, so that a user can conveniently customize, replace and upgrade according to favorite functions; the main control modules (0, 0) are physically coupled with the components through electrical interfaces, the main control modules are used as necessary modules in the modularized product architecture, and other components can be freely added and deleted according to requirements; for example, the master control module (0, 0) is coupled with the second component (1, 1) to form a wireless Wi-Fi router; the main control module (0, 0) is coupled with the second component (1, 1) and the third component (-1, 1) to form a Wi-Fi gateway with wireless broadband access. It should be noted that, the main control module and the components may be various combined functional modules, and the components may be expanded to superimpose functions according to functional requirements, which is not limited herein.
In the modularized product provided in this embodiment, the components are managed in the main control module in a plug-in loading manner, so that a component information list is stored in the main control module, the component information list includes each component successfully identified by the main control module and component information corresponding to each component successfully identified by the main control module, and any piece of component information includes a component unique ID, a Base address+offset size of a component mirror image, and a component state (see fig. 2); the Base address+offset size of the component image refers to an address space for storing the component image correspondingly; component state refers to the current state of a defined component, e.g., a component that is identified as successful and loaded may be defined as a "connect successful" state; components that are identified as successful but unloaded may be defined as "disconnected" states; components that are identified as successful and loaded, but removed by the user, may also be defined as "disconnected" states. In addition, the arrangement order of the components in the component information list may be determined according to the definition of the modular product, the use occasion, and other factors, which is not particularly limited in this embodiment.
Referring to fig. 3, a flow chart of a method for dynamically managing components according to an embodiment of the present invention includes the following steps:
S11, acquiring a first component information list;
S12, loading a component mirror image according to the first component information list, and performing heartbeat monitoring on the current component on which the mirror image is being loaded;
S13, judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
s14, acquiring a second component information list after loading of all components is completed;
S15, when the components to be removed exist in the second component information list, the mirror image space of the components to be removed is tidied;
S16, adjusting the master control Boot image according to the arrangement result.
In this embodiment, the master control mirror image loads the components in sequence according to the information of the first component information list, and under the condition that any component is not accessed, the first component information list may be empty. When a plurality of components are accessed, corresponding component information items are added into a first component information list, and the loading sequence of each component is determined by the system design according to the factors of modular product definition, use occasions and the like.
By arranging the mirror image space of the component to be removed and adjusting the master control Boot mirror image according to the arrangement result, the condition that the component is wasted in the system storage space due to the actual requirement of a user or the internal damage of the component can be effectively relieved, and the flexibility of expanding the function of the component and the utilization rate of the expanded component in the communication equipment are improved.
Referring to fig. 4, a flow chart of a method for managing a component loading stage according to an embodiment of the present invention is shown;
The step of judging whether the first component information list needs to be updated according to the heartbeat monitoring result specifically comprises the following steps:
When the current component which is loading the mirror image does not have a heartbeat signal, stopping loading the current component, and updating the first component information list;
When the heartbeat signal exists in the current component which is loading the image, the current component is continuously loaded.
Specifically, if the heartbeat monitoring result of the current component is that the heartbeat signal is not monitored, updating the component state in the component information corresponding to the current component to a state such as "disconnection"; if the heartbeat monitoring result of the current component is that the heartbeat signal is monitored, the current component is continuously loaded. The heartbeat signal is output by the component and is physically connected to the main control module through the coupling interface, the heartbeat signal can be a square wave signal with the period of 0.5s and the duty ratio of 50%, and the heartbeat signal is output by the oscillating circuit of the component and is connected to the GPIO input pin of the CPU of the main control module. The type, amplitude, frequency, etc. of the heartbeat signal in this embodiment are not particularly limited.
Further, heartbeat monitoring is periodically carried out on the current component which is loading the mirror image, and once the heartbeat monitoring result is that the heartbeat signal is not monitored, loading of the current component is stopped, and the first component information list is updated. By periodically performing heartbeat monitoring on the current component which is loading the mirror image, the phenomenon that the current component is removed in the loading process to cause component loading to hang up can be effectively avoided, and therefore system stability is improved.
In this embodiment, after loading of the current component is completed, it is further required to determine whether the current component is the last component, and if not, loading the next component according to the conditional order until all components are loaded.
Referring to fig. 5, a flow chart of a management method of a component after a loading stage according to an embodiment of the present invention is shown;
After the second component information list after all the components are loaded is obtained, the method further comprises the following steps:
judging whether a disconnected component exists in the second component information list;
If yes, judging whether a heartbeat signal exists in the disconnected component;
when no heartbeat signal exists, taking the disconnected component as a component to be removed;
when a heartbeat signal is present, the disconnected component is reloaded.
Specifically, according to each component state in the second component information list, judging whether a component with disconnected component state exists in the second component information list; if yes, judging whether the disconnected component has a heartbeat signal, and if not, taking the disconnected component as a component to be removed; when a heartbeat signal is present, the disconnected component is reloaded. In addition, after the disconnected component finishes loading, the state of the component corresponding to the disconnected component is changed into the successful connection, and the second component information list is updated. By performing heartbeat monitoring on the disconnected component, the phenomenon that the disconnected component is unloaded due to loosening of the coupling interface during loading can be effectively prevented, and therefore the utilization rate of the component is improved.
Furthermore, when the heartbeat signal exists in the disconnected component, the component can be immediately restarted and changed, or the disconnected component can be reloaded when the system is restarted next time, so that the phenomenon of deadlock caused by repeated restarting can be effectively avoided, and the system stability is improved.
Further, the component dynamic management method further comprises the following steps:
When the disconnected component does not exist in the second component information list, monitoring a heartbeat signal of the component in the second component information list;
when a heartbeat signal exists, monitoring whether an access detection signal exists or not;
if yes, the component corresponding to the access detection signal is identified.
Further, referring to fig. 6, when a heartbeat signal exists, whether an access detection signal exists is monitored, when the access signal is detected, a first component in the access signal is determined, the first component is identified by an ID, and whether the ID information of the first component is legal is determined; when the ID information of the first component is legal information, loading a first Boot image corresponding to the first component onto the main control module according to the ID information of the first component; the master control module is controlled to adjust the master control Boot image of the master control module according to the first Boot image; and restarting the system of the communication equipment after the master control Boot image is adjusted, and loading the master control module and the adjusted master control Boot image. If the access detection signal does not exist, continuing to monitor whether the access detection signal exists. The method has the advantages that by detecting the accessed component and carrying out ID identification, the Boot image corresponding to the component is loaded on the main control module, and the main control module adjusts the main control Boot image of the main control module according to the loaded Boot image, so that a new main control Boot image of the main control module is loaded after a system of the communication equipment is restarted, the discovery, identification and access of the component in the communication equipment are realized, the usability and flexibility of expanding the function of the component in the communication equipment are improved, and the cost is low; in addition, the components can be added and deleted according to actual demands, and the main control module is combined with different components, so that customization, replacement and upgrading of different functions are realized.
FIG. 7 is a schematic flow chart of a method for managing a mirror image space of a component to be removed according to the present invention;
When the component to be removed exists in the second component information list, the sorting of the mirror image space of the component to be removed specifically includes:
positioning a mirror image space address area of the component to be removed;
The mirrored spatial address region of the component to be removed is reclaimed.
Specifically, the space address area of the component image to be removed can be located by the Base address+offset size of the component image in the component information corresponding to the component to be removed, and the image content of the component to be removed is erased and released according to the erase condition limitation of the memory (for example, some systems use NAND FLASH, have limitation on the minimum unit of erase, and at this time, the system is required to perform an algorithm to determine which blocks are specifically erased).
Further, the reclaiming of the mirrored spatial address area of the component to be removed further comprises:
Judging whether the recovered mirror image space address area is required to be fused with other idle address areas or not;
If yes, moving the mirror image space address areas corresponding to other components;
and updating the second component information list after the movement is completed.
Specifically, the Base address+offset size of the component image in the component information corresponding to the component to be removed can be used for positioning the component image space address area to be removed, judging whether the image space address area is located at the last section of the occupied address interval in the component image address space defined by the system, if not (that is, the rear section of the component image space address area to be removed also has the mirror image of other components), fusing the recovered image space address area with other idle address areas, and at the moment, moving the image space address area corresponding to other components, for example, in fig. 8, lifting up the mirror images of the subsequent other components, and updating the Base address+offset size address of the component image in the corresponding component information; if the mirrored space address region is located in the last segment of the occupied address space in the system-defined component mirrored address space (as shown in fig. 9), there is no need to merge the recovered mirrored space address region with other free address regions. By judging whether the recovered mirror image space address area is required to be fused with other idle address areas, the problem that the module mirror image space is too scattered and discontinuous to cause the difficulty in allocating storage space when the module mirror image is updated due to the fact that the module system is used for identifying and adding new modules subsequently can be effectively avoided, and therefore the reliability of the system is improved.
Referring to fig. 10, a schematic flow chart of adjusting a master Boot image provided by the invention;
the adjusting the master Boot image according to the arrangement result specifically comprises:
According to the arrangement result, adjusting a jump mechanism when the master Boot image is loaded;
Updating a verification strategy when the master Boot image is loaded according to the arrangement result;
and updating the master control Boot image exception handling strategy according to the arrangement result.
Specifically, according to the arrangement result, the jump mechanism, the verification strategy and the master Boot image exception handling strategy during master Boot image loading are adjusted, the influence of the removed component on the master Boot can be reduced to the minimum, and the stability of the system is improved.
And adjusting a jump mechanism when the master control Boot image is loaded: the Boot image of the removed component needs to be ignored in the Boot image loading process of the main control module, and the process is actually realized by adding a corresponding jump mechanism when the Boot image of the main control module runs, for example: the Boot image of the main control module runs to a certain code, a protection site (the code address pointer is pushed onto a stack), jumps to the Boot image code address of the component to continue to execute, after execution is completed, the code address pointer which is pushed onto the stack before is fetched, and jumps to the address to continue to execute the subsequent program of the Boot image of the main control module. No matter how the loading of the Boot image containing the new component is completed, the modification of the jump mechanism when the main control Boot image is loaded is not bypassed.
Updating a verification strategy of master control Boot image loading: because the Boot image of the main control module to be loaded changes, in the loading process, the codes of each block should be subjected to sectional verification, and if necessary, an independent verification strategy is carried out to ensure the robustness of the system operation.
Updating a master control Boot image exception handling strategy: the exception handling is the last defense line of the Boot image of the main control module, and the exception handling in the Boot image loading process of the removed component should be omitted, so that false alarm is avoided.
Further, after a jump mechanism, a check strategy and a master Boot image exception handling strategy during master Boot image loading are adjusted, a second component information list is updated, the removed component does not need to be reset to take effect immediately by updating the second component information list, and the loading of the removed component is automatically skipped in the next power-on starting process of the system.
The embodiment of the invention also provides a device for dynamically managing components, which can realize all the processes of the method for dynamically managing components described in any embodiment, and the functions and the realized technical effects of each module and unit in the device are respectively the same as those of the method for dynamically managing components described in the embodiment and the realized technical correspondences, and are not repeated here.
Referring to fig. 11, there is shown a block diagram of a preferred embodiment of a dynamic management device for components according to the present invention, the device includes:
A first acquiring module 1, configured to acquire a first component information list;
the monitoring module 2 is used for loading the component mirror image according to the first component information list and performing heartbeat monitoring on the current component on which the mirror image is being loaded;
The execution module 3 is used for judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
the second obtaining module 4 is configured to obtain a second component information list after all components are loaded;
The arrangement module 5 is configured to arrange mirror image spaces of the components to be removed when the components to be removed exist in the second component information list;
And the adjusting module 6 is used for adjusting the master control Boot image according to the arrangement result.
Preferably, the execution module 3 specifically includes a first execution unit and a second execution unit;
the first execution unit is used for stopping loading the current component when the current component loading the mirror image does not have a heartbeat signal, and updating the first component information list;
And the second execution unit is used for continuously loading the current component when the current component which is loading the image has a heartbeat signal.
Preferably, the apparatus further comprises: a pre-leak-proof starting module; the anti-leakage starting module specifically comprises a first judging unit, a second judging unit, a third executing unit and a fourth executing unit:
a first judging unit, configured to judge whether a disconnected component exists in the second component information list;
A second judging unit, configured to judge whether a heartbeat signal exists in the disconnected component when the disconnected component exists in the second component information list;
A third execution unit for taking the disconnected component as the component to be removed when the heartbeat signal is not present;
and the fourth execution unit is used for reloading the disconnected component when the heartbeat signal exists.
Preferably, the device further comprises an identification module, wherein the identification module is specifically configured to:
When the disconnected component does not exist in the second component information list, monitoring a heartbeat signal of the component in the second component information list;
when a heartbeat signal exists, monitoring whether an access detection signal exists or not;
if yes, the component corresponding to the access detection signal is identified.
Preferably, the finishing module 5 comprises:
the positioning unit is used for positioning the mirror image space address area of the component to be removed;
the sorting unit is used for recycling the mirror image space address area of the component to be removed.
Preferably, the finishing module further comprises: the fusion unit is specifically used for:
Judging whether the recovered mirror image space address area is required to be fused with other idle address areas or not;
If yes, moving the mirror image space address areas corresponding to other components;
and updating the second component information list after the movement is completed.
Preferably, the adjusting module 6 specifically includes:
The jump mechanism adjusting unit is used for adjusting the jump mechanism when the master control Boot mirror image is loaded according to the arrangement result;
The verification policy adjustment unit is used for updating the verification policy of the master control Boot mirror image when loading according to the arrangement result;
and the exception handling strategy adjusting unit is used for updating the master control Boot mirror image exception handling strategy according to the arrangement result.
The embodiment of the invention also provides a communication device, which comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the processes of the component dynamic management method embodiment of the components when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, so that the description is omitted.
The communication device can be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The communication device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the schematic diagram is merely an example of a communication device and is not limiting of the communication device, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the communication device may also include an input-output device, a network access device, a bus, etc.
The Processor may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the communication device, connecting the various parts of the overall communication device using various interfaces and lines.
The memory may be used to store the computer program and/or modules, and the processor may implement various functions of the communication device by running or executing the computer program and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the communication device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (9)

1. A method for dynamically managing components, comprising:
The method comprises the steps of obtaining a first component information list, specifically: the components are managed in the main control module in a plug-in loading mode, and a component information list is stored in the main control module, wherein the component information list comprises each component successfully identified by the main control module and component information corresponding to each component successfully identified by the main control module;
Loading a component image according to the first component information list, and performing heartbeat monitoring on the current component on which the component image is loaded; the loading assembly mirror image specifically comprises: the main control mirror image loads the components in sequence according to the information of the first component information list, after a plurality of components are accessed, corresponding component information items are added into the first component information list, and the loading sequence of each component is determined by the system design according to the definition of modularized products and the use situation factors;
Judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
acquiring a second component information list after all components are loaded;
When the component to be removed exists in the second component information list, the mirror image space of the component to be removed is sorted, which specifically includes: positioning a mirror image space address area of the component to be removed; recovering the mirror image space address area of the component to be removed;
and adjusting the master control Boot image according to the arrangement result.
2. The method for dynamically managing components according to claim 1, wherein the determining whether the first component information list needs to be updated according to the heartbeat monitoring result specifically includes:
When the current component which is loading the mirror image does not have a heartbeat signal, stopping loading the current component, and updating the first component information list;
When the heartbeat signal exists in the current component which is loading the image, the current component is continuously loaded.
3. The method for dynamically managing components according to claim 1, further comprising, after the obtaining the second component information list after all components are loaded,:
judging whether a disconnected component exists in the second component information list;
If yes, judging whether a heartbeat signal exists in the disconnected component;
when no heartbeat signal exists, taking the disconnected component as a component to be removed;
when a heartbeat signal is present, the disconnected component is reloaded.
4. A method of dynamically managing components as recited in claim 3, further comprising:
When the disconnected component does not exist in the second component information list, monitoring a heartbeat signal of the component in the second component information list;
when a heartbeat signal exists, monitoring whether an access detection signal exists or not;
if yes, the component corresponding to the access detection signal is identified.
5. The method for dynamically managing components according to claim 1, wherein after the reclaiming of the mirrored space address area of the component to be removed, further comprises:
Judging whether the recovered mirror image space address area is required to be fused with other idle address areas or not;
If yes, moving the mirror image space address areas corresponding to other components;
and updating the second component information list after the movement is completed.
6. The method for dynamically managing components according to claim 1, wherein the adjusting the master Boot image according to the arrangement result specifically includes:
According to the arrangement result, adjusting a jump mechanism when the master Boot image is loaded;
Updating a verification strategy when the master Boot image is loaded according to the arrangement result;
and updating the master control Boot image exception handling strategy according to the arrangement result.
7. A component dynamic management apparatus to which the component dynamic management method according to claim 1 is applied, comprising:
The first acquisition module is used for acquiring a first component information list;
the monitoring module is used for loading the component mirror image according to the first component information list and performing heartbeat monitoring on the current component on which the mirror image is being loaded;
The execution module is used for judging whether the first component information list needs to be updated according to the heartbeat monitoring result;
The second acquisition module is used for acquiring a second component information list after all components are loaded;
the arrangement module is used for arranging the mirror image space of the component to be removed when the component to be removed exists in the second component information list;
and the adjusting module is used for adjusting the master control Boot image according to the arrangement result.
8. A communication device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the component dynamic management method according to any one of claims 1 to 6 when executing the computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program when run controls a device in which the computer readable storage medium is located to perform the component dynamic management method according to any one of claims 1 to 6.
CN202011033962.9A 2020-09-27 2020-09-27 Dynamic management method, device, equipment and storage medium for components Active CN112217885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011033962.9A CN112217885B (en) 2020-09-27 2020-09-27 Dynamic management method, device, equipment and storage medium for components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011033962.9A CN112217885B (en) 2020-09-27 2020-09-27 Dynamic management method, device, equipment and storage medium for components

Publications (2)

Publication Number Publication Date
CN112217885A CN112217885A (en) 2021-01-12
CN112217885B true CN112217885B (en) 2024-06-04

Family

ID=74051943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011033962.9A Active CN112217885B (en) 2020-09-27 2020-09-27 Dynamic management method, device, equipment and storage medium for components

Country Status (1)

Country Link
CN (1) CN112217885B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711560B (en) * 2021-02-10 2023-05-26 西南电子技术研究所(中国电子科技集团公司第十研究所) Reconstruction method for single-point connection of ZYNQ chip to rapidIO bus

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520736A (en) * 2009-04-17 2009-09-02 武汉烽火网络有限责任公司 Method of dynamically cutting mirror image function modules of embedded equipment
EP2495941A1 (en) * 2011-03-04 2012-09-05 Research In Motion Limited Separable mobile device having a control module and a docking station module
CN104268159A (en) * 2014-09-03 2015-01-07 河海大学 Real-time data warehouse data pre-storage and pre-access method based on dynamic mirrors
CN104765697A (en) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 Embedded device interaction method and system
US9495100B1 (en) * 2015-06-28 2016-11-15 International Business Machines Corporation Shifting a defrag operation in a mirrored system
WO2017173798A1 (en) * 2016-04-07 2017-10-12 乐视控股(北京)有限公司 System installation method, device, and electronic apparatus for mobile terminal
CN107729179A (en) * 2017-09-29 2018-02-23 烽火通信科技股份有限公司 Unified Software Mirroring based on same processor different hardware realizes system and method
CN107948249A (en) * 2017-11-02 2018-04-20 华南理工大学 Big data plateau elastic telescopic method based on service discovery and container technique
KR101860395B1 (en) * 2017-06-23 2018-07-02 한국남동발전 주식회사 Apparatus and method for detecting abnormal behavior of industrial control system based on whitelist for nonstandard protocol
CN110417583A (en) * 2019-07-09 2019-11-05 普联技术有限公司 A kind of data communications equipment and outband management system
CN110515795A (en) * 2019-07-29 2019-11-29 北京百分点信息科技有限公司 A kind of monitoring method of big data component, device, electronic equipment
CN111651190A (en) * 2020-04-30 2020-09-11 北京临近空间飞行器系统工程研究所 Emission control software dynamic assembly method based on multi-dimensional fusion elements

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520736A (en) * 2009-04-17 2009-09-02 武汉烽火网络有限责任公司 Method of dynamically cutting mirror image function modules of embedded equipment
EP2495941A1 (en) * 2011-03-04 2012-09-05 Research In Motion Limited Separable mobile device having a control module and a docking station module
CN104268159A (en) * 2014-09-03 2015-01-07 河海大学 Real-time data warehouse data pre-storage and pre-access method based on dynamic mirrors
CN104765697A (en) * 2015-03-10 2015-07-08 安科智慧城市技术(中国)有限公司 Embedded device interaction method and system
US9495100B1 (en) * 2015-06-28 2016-11-15 International Business Machines Corporation Shifting a defrag operation in a mirrored system
WO2017173798A1 (en) * 2016-04-07 2017-10-12 乐视控股(北京)有限公司 System installation method, device, and electronic apparatus for mobile terminal
KR101860395B1 (en) * 2017-06-23 2018-07-02 한국남동발전 주식회사 Apparatus and method for detecting abnormal behavior of industrial control system based on whitelist for nonstandard protocol
CN107729179A (en) * 2017-09-29 2018-02-23 烽火通信科技股份有限公司 Unified Software Mirroring based on same processor different hardware realizes system and method
CN107948249A (en) * 2017-11-02 2018-04-20 华南理工大学 Big data plateau elastic telescopic method based on service discovery and container technique
CN110417583A (en) * 2019-07-09 2019-11-05 普联技术有限公司 A kind of data communications equipment and outband management system
CN110515795A (en) * 2019-07-29 2019-11-29 北京百分点信息科技有限公司 A kind of monitoring method of big data component, device, electronic equipment
CN111651190A (en) * 2020-04-30 2020-09-11 北京临近空间飞行器系统工程研究所 Emission control software dynamic assembly method based on multi-dimensional fusion elements

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Alignment Considerations In The Package Design Of Optical Interconnections;A.K. Ghosh;《IEEE Xplore》;全文 *
一种基于移动式用户可信模块的可信云终端方案;闫兴华;《CNKI中国知网》;全文 *
基于嵌入式linux 3G网络的PLC数据远程监控系统终端设计与实现;陈洪骏;《百度学术》;全文 *

Also Published As

Publication number Publication date
CN112217885A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
US9996142B2 (en) Selective power management for pre-boot firmware updates
US9720678B2 (en) Network switching method, version upgrade method, and terminal device
KR20100066576A (en) Firmware image update and management
CN110543321A (en) OTA (over the air) upgrading method, device, terminal and computer readable storage medium
US7216344B2 (en) Side-by-side drivers
GB2463809A (en) Peripheral device operation method, peripheral device and host
CN112732616B (en) BMC starting method, device and equipment based on SPI controller
CN113630443A (en) Service management method, device, server and medium
CN112217885B (en) Dynamic management method, device, equipment and storage medium for components
CN114237693A (en) Gray scale publishing method, equipment and storage medium
CN113542022A (en) Networking management method and device of networking system, terminal equipment and storage medium
CN104580360A (en) System and method for updating firmware through heterogeneous network
CN110308914B (en) Upgrade processing method, device, equipment, system and computer readable storage medium
CN115809118A (en) Method, device, equipment and medium for dynamically protecting java process
CN114675902B (en) Management method and management device for software version based on embedded equipment
CN113721959A (en) Information processing method and device and electronic equipment
CN114115958A (en) Program starting method and terminal equipment
CN112148376A (en) Terminal starting method and device
CN102202129A (en) Method for loading mobile phone operating system
CN113254304A (en) Method for determining shutdown type of server, server and storage medium
CN114968297A (en) OTA (over the air) upgrading method, electronic equipment and chip system
CN113835741A (en) Patch loading method, network element and computer readable storage medium
CN113709710B (en) Interface management method and device
CN117687703B (en) Method, device and system for starting server, storage medium and electronic equipment
CN114035820A (en) Software classification upgrading method and device, terminal equipment and readable storage medium

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