CN115460077B - Configuration information updating method and device, storage medium and electronic device - Google Patents

Configuration information updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115460077B
CN115460077B CN202211066947.3A CN202211066947A CN115460077B CN 115460077 B CN115460077 B CN 115460077B CN 202211066947 A CN202211066947 A CN 202211066947A CN 115460077 B CN115460077 B CN 115460077B
Authority
CN
China
Prior art keywords
configuration information
target
environment
system environment
state
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
CN202211066947.3A
Other languages
Chinese (zh)
Other versions
CN115460077A (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.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software 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 Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202211066947.3A priority Critical patent/CN115460077B/en
Publication of CN115460077A publication Critical patent/CN115460077A/en
Application granted granted Critical
Publication of CN115460077B publication Critical patent/CN115460077B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a method and a device for updating configuration information, a storage medium and an electronic device, wherein the method comprises the following steps: repeating the following operations until the target configuration information obtained after modification in the target system environment is obtained: loading the first configuration information into the first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment, and obtaining second configuration information; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments; and loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information. The method solves the problem of low adaptation rate of synchronous loading of the modified configuration information in the corresponding system environment in the related technology.

Description

Configuration information updating method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of Internet of things, in particular to a method and a device for updating configuration information, a storage medium and an electronic device.
Background
The internet of things (Internet of things, ioT) is an important component of the new generation of information technology and is also an important development stage of the information age. The internet of things refers to the internet that things link to each other, contains two-layer meaning: firstly, the core and the foundation of the Internet of things are still the Internet, namely, an extended and expanded network on the basis of the Internet; and secondly, the information exchange and communication are carried out between any article and any article by extension. The internet of things is widely applied to the integration of networks through communication sensing technologies such as intelligent sensing and recognition technologies, and is also called as the third wave of development of world information industry after computers and the Internet.
In the related art, the program runs independently of configuration data, the configuration data defines the running rule of the program logic, the program logic is executed by loading the configuration data when the program is started or reading the configuration data in real time during the running process of the program, and the definition of the configuration data. Programs include not only applications but also various business system fields such as various workflows of OA (Office Automation ) systems, various message notification templates of CRM (Customer Relationship Management ) systems, marketing scheme configuration of marketing systems, etc. The adoption of a large amount of program configuration data brings great flexibility and customizability to the system, promotes the vigorous development of business, but most of the configuration data of the system is only one, the modification is effective directly, and if the modification is wrong, the configuration data can be restored only by a mode of changing back. Therefore, when the system needs to be upgraded and the modification points of the configuration data are more, not only a large amount of configuration data needs to be modified, but also consistency of the modified configuration data and the system environment that needs to be synchronously loaded needs to be ensured, so that the modification process of the configuration data is complicated and is easy to make mistakes due to the adoption of the traditional modification mode of the configuration data.
Aiming at the problem that the adaptation rate of the modified configuration information in the related technology for synchronous loading in the corresponding system environment is low, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for updating configuration information, a storage medium and an electronic device, which are used for at least solving the problem that the adaptation rate of synchronous loading of modified configuration information in a corresponding system environment is low in the related technology.
According to an embodiment of the present invention, there is provided a method for updating configuration information, including: repeatedly executing the following operation until the target configuration information obtained after modification in the target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments needing to load the configuration information of the target intelligent device in turn, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments; the repeatedly performed operations include: loading first configuration information into a first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment to obtain second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments; loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information; wherein, each system environment is configuration information only allowing loading of states corresponding to the system environment.
In an exemplary embodiment, in a case where the first system environment is a first system environment included in a plurality of the system environments, before loading the first configuration information into the first system environment, the method further includes: acquiring the first configuration information from a target cloud platform; and adjusting the state of the first configuration information to a state corresponding to the first system environment.
In an exemplary embodiment, the acquiring the first configuration information from the target cloud platform includes: and copying the published configuration information of the target intelligent equipment included in the target cloud platform to obtain the first configuration information.
In an exemplary embodiment, the acquiring the first configuration information from the target cloud platform includes: under the condition that a target instruction is received, acquiring the first configuration information from the target cloud platform; the target instruction is triggered under the condition that the configuration information of the target intelligent device is determined to need to be updated.
In an exemplary embodiment, the method further comprises: pre-configuring the state of corresponding configuration information for each system environment; and configuring a function of allowing only configuration information of a state corresponding to itself to be loaded for each of the system environments.
In an exemplary embodiment, the states of configuration information corresponding to different system environments are different; or the states of configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
According to another embodiment of the present invention, there is provided an updating apparatus of configuration information, including: the execution module is used for repeatedly executing the following operations until the target configuration information obtained after modification in the target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments needing to load the configuration information of the target intelligent equipment in turn, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments; the repeatedly performed operations include: loading first configuration information into a first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment to obtain second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments; the loading module is used for loading the target configuration information into the last system environment so as to update the configuration information of the target intelligent equipment into the target configuration information; wherein, each system environment is configuration information only allowing loading of states corresponding to the system environment.
According to another embodiment of the present invention, there is also provided a target cloud platform system including: the product center comprises the updating device of the configuration information; wherein a plurality of system environments are deployed in the target cloud platform system.
According to a further embodiment of the invention, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
By the method and the device, the configuration information is repeatedly executed in a plurality of system environments, and the state of the modified configuration information is adjusted to the state corresponding to the environment of the next configuration information to be loaded, so that the plurality of system environments can only and accurately load the configuration information in the corresponding state, the consistency of the configuration in each system environment is ensured, the probability of configuration abnormality is reduced, the problem that the adaptation rate of the synchronous loading of the modified configuration information in the corresponding system environment is lower in the related art is solved, and the effect of improving the adaptation rate and the efficiency of the synchronous loading of the modified configuration information in the corresponding system environment is further achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an update method of configuration information according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of updating configuration information according to an embodiment of the present invention;
FIG. 3 is a flow chart of a stateful configuration distribution method in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an Internet of things cloud platform system according to an embodiment of the present invention;
Fig. 5 is a block diagram of a configuration information updating apparatus according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for updating configuration information in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for updating configuration information is provided, and fig. 2 is a flowchart of a method for updating configuration information according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
Step S202, repeatedly executing the following operations until the target configuration information obtained after modification in the target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments needing to load the configuration information of the target intelligent device in turn, and the target system environment is an environment adjacent to the last system environment included in the plurality of system environments; the repeatedly performed operations include: under the condition that the first configuration information of the state corresponding to the first system environment exists is determined, the first configuration information is loaded into the first system environment to indicate the first configuration information to be modified in the first system environment to obtain the second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments;
step S204, loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information.
Wherein each system environment is configuration information that only allows loading of states corresponding to itself.
The above operations may be performed by a system with communication capability, for example, a target cloud platform system, or a product center in the target cloud platform system, or a controller or a processor in the system, or a controller or a processor that exists alone, or may be other processing devices or processing units with similar processing capability, or the like.
In the above embodiment, the configuration information of the target intelligent device may be one type, or may be multiple types, where the configuration information includes multiple types of information, different types of configuration information may represent different functions of the target intelligent device, and further in practical application, multiple different types of target configuration information may be obtained, and further all configuration information included in the target intelligent device or configuration information that needs to be updated in part may be determined as the target configuration information, and in addition, multiple types of configuration information included in the target intelligent device may be updated at the same time, where in this case, the configuration information that has a priority or a weight that is higher than that of the multiple types of configuration information and is included in the target intelligent device may be updated preferentially, or the configuration information that is included in the target intelligent device and corresponds to the type of the target configuration information may be updated by using the preferentially obtained target configuration information.
In the above embodiment, the system environments include, but are not limited to, a development environment, a test environment, a prefire environment, a gray scale environment, a production environment, and a formal environment, where the configuration status of each environment loading may be defined in advance in the system, for example, the development environment loading development status configuration, the test environment loading test status configuration, the prefire environment loading prefire status configuration, the formal environment loading formal status configuration, the gray scale environment loading gray scale status configuration, the production environment loading production status configuration, and the like, and the order of loading the configuration information of the corresponding states by the different system environments may be random, or may be ordered according to the priority or weight of each system environment, for example, when the priority or weight of the system environment is: when the development environment is more than the test environment is more than the prefire environment is more than the gray environment is more than the production environment is more than the formal environment, the sequence of loading the configuration information of the corresponding state by the system environment is as follows: in addition, in practical application, the configuration information of the state corresponding to the release environment may be loaded first, then the configuration information of the state corresponding to the test environment may be loaded, after the sequence of loading the configuration information of the corresponding state by different system environments is defined in advance, the sequence of loading the configuration information of the corresponding state by different system environments may be adjusted again according to the practical application, in addition, the state of the configuration information may be adjusted in each system environment, for example, identification information, label information and the like of the corresponding system environment may be added in the configuration information, and it should be noted that the illustration of the sequence of loading the configuration information of the corresponding state by the system environment is only an exemplary embodiment, and the sequence of loading the configuration information of the corresponding state by the system environment is not limited to the illustration.
In the above embodiment, the modification of the configuration information in multiple system environments is repeatedly performed, and the state of the modified configuration information is adjusted to the state corresponding to the environment to which the configuration information is to be loaded next, so that multiple system environments can be loaded to the configuration information in the corresponding state only and accurately, the consistency of the configuration in each system environment is ensured, the probability of configuration abnormality is reduced, the problem that the adaptation rate of the synchronous loading of the modified configuration information in the corresponding system environment is low in the related art is solved, and the effect of improving the adaptation rate and efficiency of the synchronous loading of the modified configuration information in the corresponding system environment is achieved.
In one exemplary embodiment, in a case where the first system environment is a first system environment included in the plurality of system environments, before loading the first configuration information into the first system environment, the method further includes: acquiring first configuration information from a target cloud platform; the state of the first configuration information is adjusted to a state corresponding to the first system environment. In this embodiment, the target cloud platform may be an internet of things cloud platform, where the internet of things cloud platform is an intelligent internet platform that performs interactive communication between people and things, and may provide unified services for various different internet of things applications.
In the above embodiment, the configuration information of the plurality of intelligent devices may be stored in advance in the target cloud platform, so that the first configuration information may be obtained from the configuration information of the plurality of intelligent devices correspondingly, or the configuration information of the plurality of intelligent devices may be issued in advance to the product center by the target cloud platform for storage, so that the first configuration information may be obtained correspondingly from the product center, or the configuration information of the plurality of intelligent devices may be obtained periodically from the target cloud platform by the product center, which means for obtaining the first configuration information is only an exemplary embodiment, and the means for obtaining the first configuration information is not limited to the above example.
In one exemplary embodiment, obtaining the first configuration information from the target cloud platform includes: and copying the published configuration information of the target intelligent equipment included in the target cloud platform to obtain first configuration information. In this embodiment, the configuration information issued by the target smart device may be multiple, and further the multiple configuration information may be copied to obtain multiple first configuration information of different types, or multiple configuration information of the same type may also be obtained, for example, the configuration information of the control module included in the target smart device, where if two control times exist in the configuration information of the control module, one is long-term control, and one is short-term control, and further the target smart device may issue the configuration information of the long-term control of one control module, the configuration information of the short-term control of one control module, and the like, it should be further noted that the illustration of the first configuration information and the configuration information of the target smart device is only an exemplary embodiment, and the configuration information of the first configuration information and the configuration information of the target smart device are not limited to the above examples.
In the above embodiment, the configuration information of the plurality of intelligent devices may be stored in advance in the target cloud platform, so that the configuration information of the plurality of intelligent devices that are included in the target cloud platform may be copied correspondingly from the configuration information of the plurality of intelligent devices that are included in the target cloud platform to obtain the first configuration information, or the configuration information of the plurality of intelligent devices may be issued in advance by the target cloud platform to the product center for storage, so that the configuration information of the plurality of intelligent devices that are stored in the product center may be copied correspondingly from the configuration information of the plurality of intelligent devices that are stored in the product center to obtain the first configuration information, or the configuration information of the plurality of intelligent devices may be obtained from the target cloud platform by the product center periodically, so that the configuration information of the plurality of intelligent devices that are published by the target intelligent devices may be copied correspondingly from the configuration information of the plurality of intelligent devices that are stored in the product center periodically, and so on.
In the above embodiment, the configuration information included in the target smart device includes, but is not limited to, language configuration information, message push text configuration information, object model description configuration information, device configuration network flow configuration information, and the like.
In one exemplary embodiment, obtaining the first configuration information from the target cloud platform includes: under the condition that a target instruction is received, acquiring first configuration information from a target cloud platform; the target instruction is triggered under the condition that the configuration information of the target intelligent device is determined to need to be updated. In this embodiment, the configuration information of the target intelligent device may have one or more types, and when a target instruction triggered under the condition that it is determined that some or all of the configuration information included in the plurality of types of configuration information needs to be updated is received, some or all of the first configuration information needing to be updated is obtained from the target cloud platform through the target instruction, that is, the corresponding first configuration information is directly obtained through the target instruction, so that updating efficiency of the configuration information of the target intelligent device is further accelerated.
In the above embodiment, the target instruction may be manually triggered by an operator or an administrator, for example, the operator or the administrator determines that the configuration information of the target smart device needs to be updated, so that the target instruction is triggered by manually touching a key or clicking a key, or the target instruction may be automatically triggered periodically, for example, an automatic trigger target instruction may be set to update the configuration information of the target smart device every week, every half month, every month, etc., the target instruction device may also be triggered by other devices when the configuration information is determined to be updated, and the update instruction of the other devices may also be manually triggered by the operator or the administrator or automatically triggered periodically, where it should be noted that the trigger mode of the target instruction is only an exemplary embodiment, and the trigger mode of the target instruction is not limited to the above example.
In an exemplary embodiment, the method further comprises: the state of the corresponding configuration information is configured for each system environment in advance; a function of allowing only configuration information of a state corresponding to itself to be loaded is configured for each system environment. In this embodiment, the state of the corresponding configuration information is configured for each system environment in advance, in the case that a certain system environment needs to load the configuration information of the corresponding state, only the function of the system environment to load the configuration information of the corresponding state is allowed, thereby avoiding the problem of the difference of synchronous loading of the configuration information in the system environment of the corresponding state, so as to effectively improve the adaptation degree of the configuration information and the system environment of the corresponding state.
In the above embodiment, in the case where the system environment includes a development environment, a test environment, a prefire environment, a production environment, a formal environment, and the like, the state of the configuration information corresponding to the development environment may be the development state, the state of the configuration information corresponding to the test environment may be the test state, the state of the configuration information corresponding to the prefire environment may be the prefire state, the state of the configuration information corresponding to the production environment may be the production state, the state of the configuration information corresponding to the formal environment may be the formal state, wherein the configuration information of the same state may be configured by different system environments, but the contents of the configuration information may differ, for example, the configuration information of the test state may be loaded by both the test environment and the prefire environment, the test data in the configuration information of the test state corresponding to the test environment may not be identical with the test data in the configuration information of the test state corresponding to the prefire environment, and it is also required that the description of the state of the configuration information corresponding to the different environments is merely an exemplary embodiment, and the description of the state of the configuration information corresponding to the different environments is not limited to the description.
In an exemplary embodiment, the states of configuration information corresponding to different system environments are different; or the states of the configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same. In this embodiment, the multiple system environments may include, for example, a test environment, a prefire environment, a formal environment, a development environment, a gray scale environment, a production environment, etc., where the test environment and the prefire environment may each load configuration information of a test state, while the formal environment may load configuration information of a formal state, the development environment may load configuration information of a development state, the gray scale environment may load configuration information of a gray scale state, the production environment may load configuration information of a production state, etc., that is, states corresponding to different configuration information may be the same, that is, states corresponding to different system environments may be the same, but specific contents of the configuration information may differ, and it should be noted that the foregoing illustration of the system environment and the loaded configuration information of the corresponding states is only an exemplary embodiment, and the system environment and the loaded configuration information of the corresponding states are not limited to the foregoing illustration.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention.
The invention will be described in more detail with reference to the following examples:
In a specific embodiment of the present invention, a flow of a method for issuing a stateful configuration is further provided, and fig. 3 is a flowchart of a method for issuing a stateful configuration according to a specific embodiment of the present invention, as shown in fig. 3, where the flow includes the following steps:
Step S302, a user copies the published intelligent hardware configuration in the Internet of things cloud platform to generate configuration copy information, and the copy configuration is set to be in a test state;
step S304, each environment loads configuration information of a corresponding state, and after verification is passed, the configuration state can be issued step by step;
In step S306, when the copy configuration information is set to the release state, the copy configuration takes effect instead of the existing formal configuration.
The following describes each flow involved in the process of stateful configuration release in detail:
1. A user copies the released intelligent hardware configuration (corresponding to the released configuration information of the target intelligent device) in an internet of things cloud platform (corresponding to the target cloud platform), and generates configuration copy information (corresponding to the first configuration information), wherein the copy configuration is set into a test state;
1) The configuration information of the application is the multi-dimensional product configuration information of intelligent hardware products, including but not limited to: multilingual configuration information, message pushing text configuration information, object model description configuration information, equipment distribution network flow configuration information and the like;
2) The user copies the published intelligent hardware configuration to generate copy information:
a. at this time, the formal environment (corresponding to the system environment) still adopts the product configuration in the formal state (published), and the duplicate configuration is not effective in the formal environment;
b. When a user creates configuration for the first time, the configuration state of the corresponding product defaults to a test state (initial), and release is allowed after the test;
c. the user is allowed to directly take effect of modifying the published configuration content item without generating a copy when updating the configuration for the second time.
2. Each environment loads configuration information of a corresponding state, and after the user passes the verification, the configuration state can be issued step by step;
1) The configuration state of each environment load is defined in advance in the system, for example, a test environment loads a test state configuration (corresponding to the above-described copy configuration), a prefire loads a prefire configuration (configuration information obtained from a previous system environment and the state is modified to be the prefire configuration information), a formal environment loads a formal state configuration (configuration information obtained from the previous environment and the state is modified to be the configuration information of the release-non-prefire state); the multiple environments correspond to the same configuration (i.e., the states corresponding to different configuration information may be the same, that is, the states corresponding to different system environments may be the same, but specific contents of the configuration information may differ), for example, the test environment (corresponding to the system environment) and the prefire environment (corresponding to the system environment) load the configuration of the test state in a unified manner; when more environments exist, more configuration states matched with the environments can be defined;
2) After each environment passes verification, the user may issue the configuration state step by step, e.g., test to pre-issue state, pre-issue state to formal state.
3. When the copy configuration information is set to be in a release state, the copy configuration takes effect instead of the existing formal configuration.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a device for updating configuration information, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 4 is a block diagram of a configuration information updating apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus including:
An execution module 42, configured to repeatedly perform the following operations until the target configuration information obtained after modification in the target system environment is obtained, where the target system environment is an environment included in a plurality of system environments that need to load configuration information of the target intelligent device in turn, and the target system environment is an environment adjacent to a last system environment included in the plurality of system environments;
The repeatedly performed operations include: loading first configuration information into a first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment to obtain second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments;
a loading module 44, configured to load the target configuration information into the last system environment, so as to update the configuration information of the target smart device to the target configuration information;
Wherein, each system environment is configuration information only allowing loading of states corresponding to the system environment.
In an exemplary embodiment, the above apparatus further includes:
The acquiring module is used for acquiring the first configuration information from the target cloud platform before loading the first configuration information into the first system environment in the case that the first system environment is a first system environment included in a plurality of system environments;
And the adjusting module is used for adjusting the state of the first configuration information to a state corresponding to the first system environment.
In an exemplary embodiment, the acquiring module includes:
And the replication sub-module is used for replicating the published configuration information of the target intelligent device included in the target cloud platform to obtain the first configuration information.
In an exemplary embodiment, the acquiring module further includes:
The acquisition sub-module is used for acquiring the first configuration information from the target cloud platform under the condition of receiving a target instruction;
the target instruction is triggered under the condition that the configuration information of the target intelligent device is determined to need to be updated.
In an exemplary embodiment, the above apparatus further includes:
the first configuration module is used for configuring the state of the corresponding configuration information for each system environment in advance;
and the second configuration module is used for configuring a function of only allowing loading of configuration information of a state corresponding to the second configuration module for each system environment.
In an exemplary embodiment, the states of configuration information corresponding to different system environments are different; or the states of configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
The embodiment also provides a target cloud platform system, which comprises:
the product center comprises the updating device of the configuration information;
wherein a plurality of system environments are deployed in the target cloud platform system.
Fig. 5 is a schematic diagram of an internet of things cloud platform system according to an embodiment of the present invention, and as shown in fig. 5, in this embodiment, a service system including three environments of the internet of things cloud platform is taken as an example for illustration: namely, the system comprises a testing environment, a prefire environment, a formal environment and a product center communicated with the environments, wherein a client and intelligent hardware are connected with an Internet of things cloud platform:
1) The clients of the present application include, but are not limited to: mobile APP (Application), weChat applet, PC (Personal computer) client, web page, etc.;
2) The intelligent hardware of the present application includes, but is not limited to: intelligent cameras, intelligent door locks, floor sweepers, intelligent light bulbs, etc.;
3) The product center of the application comprises two parts, and is responsible for providing corresponding intelligent hardware configuration information for each environment:
the two major components contained in the product center are specifically:
a. the configuration management system is responsible for providing operation interfaces such as configuration modification, release and the like;
b. Configuration information storage, which is responsible for the configuration information storage of the core and comprises structured configuration and unstructured configuration storage; wherein unstructured configurations include resource files, e.g., pictures, videos, etc., stored in, including but not limited to, object stores, block stores; structured configurations include, for example, multilingual information, push documents, etc., stored in databases including, but not limited to, mysql (relational database management system), mongoDB (database based on distributed file storage), etc.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; or the above modules may be located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for updating configuration information, comprising:
Repeatedly executing the following operations until the target configuration information obtained after modification in a target system environment is obtained, wherein the target system environment is an environment included in a plurality of system environments needing to load configuration information of target intelligent equipment in turn, the target system environment is an environment adjacent to the last system environment included in the plurality of system environments, and the configuration information of the target intelligent equipment is used for indicating an operation rule of program logic configured in the target intelligent equipment;
the repeatedly performed operations include: loading first configuration information into a first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment to obtain second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments;
Loading the target configuration information into the last system environment to update the configuration information of the target intelligent device into the target configuration information;
Wherein, each system environment is configuration information only allowing loading of states corresponding to the system environment.
2. The method of claim 1, wherein in the case where the first system environment is a first system environment included in a plurality of the system environments, before loading the first configuration information into the first system environment, the method further comprises:
acquiring the first configuration information from a target cloud platform;
and adjusting the state of the first configuration information to a state corresponding to the first system environment.
3. The method of claim 2, wherein the obtaining the first configuration information from the target cloud platform comprises:
and copying the published configuration information of the target intelligent equipment included in the target cloud platform to obtain the first configuration information.
4. The method of claim 2, wherein the obtaining the first configuration information from the target cloud platform comprises:
under the condition that a target instruction is received, acquiring the first configuration information from the target cloud platform;
the target instruction is triggered under the condition that the configuration information of the target intelligent device is determined to need to be updated.
5. The method according to claim 1, wherein the method further comprises:
pre-configuring the state of corresponding configuration information for each system environment;
and configuring a function of allowing only configuration information of a state corresponding to itself to be loaded for each of the system environments.
6. The method of claim 5, wherein the step of determining the position of the probe is performed,
The states of the configuration information corresponding to different system environments are different; or alternatively
The states of configuration information corresponding to at least two adjacent system environments included in the plurality of system environments are the same.
7. An apparatus for updating configuration information, comprising:
The execution module is used for repeatedly executing the following operations until the target configuration information obtained after modification in the target system environment is obtained, wherein the target system environment is an environment which is included in a plurality of system environments in which the configuration information of the target intelligent equipment needs to be loaded in turn, the target system environment is an environment adjacent to the last system environment which is included in the plurality of system environments, and the configuration information of the target intelligent equipment is used for indicating the running rule of program logic configured in the target intelligent equipment; the repeatedly performed operations include: loading first configuration information into a first system environment under the condition that the first configuration information corresponding to the first system environment exists is determined, so as to indicate the first configuration information to be modified in the first system environment to obtain second configuration information, wherein the first system environment is any environment included in a plurality of system environments; adjusting the state of the second configuration information to a state corresponding to an environment adjacent to and subsequent to the first system environment included in the plurality of system environments;
The loading module is used for loading the target configuration information into the last system environment so as to update the configuration information of the target intelligent equipment into the target configuration information;
Wherein, each system environment is configuration information only allowing loading of states corresponding to the system environment.
8. A target cloud platform system, comprising:
a product center, wherein the product center comprises the configuration information updating device of claim 7;
wherein a plurality of system environments are deployed in the target cloud platform system.
9. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when being executed by a processor, implements the steps of the method according to any of the claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
CN202211066947.3A 2022-09-01 2022-09-01 Configuration information updating method and device, storage medium and electronic device Active CN115460077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211066947.3A CN115460077B (en) 2022-09-01 2022-09-01 Configuration information updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211066947.3A CN115460077B (en) 2022-09-01 2022-09-01 Configuration information updating method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115460077A CN115460077A (en) 2022-12-09
CN115460077B true CN115460077B (en) 2024-06-18

Family

ID=84300383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211066947.3A Active CN115460077B (en) 2022-09-01 2022-09-01 Configuration information updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115460077B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324441A (en) * 2020-02-19 2020-06-23 深圳乐信软件技术有限公司 Operating environment switching method and device, computer equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9092576B2 (en) * 2010-06-25 2015-07-28 International Business Machines Corporation Non-intrusive measurement of content quality using dry runs with roll-back
US11099965B2 (en) * 2016-02-24 2021-08-24 Nec Corporation Management system, test method and recording medium
CN107491390A (en) * 2017-08-15 2017-12-19 深圳市慧择时代科技有限公司 The method and device of replacement test environment configuration information
CN109828779A (en) * 2018-12-26 2019-05-31 中国平安人寿保险股份有限公司 Environment changing method, apparatus, terminal installation and storage medium
CN112148342A (en) * 2019-06-27 2020-12-29 北京达佳互联信息技术有限公司 Component configuration method and device, electronic equipment and storage medium
CN110413528B (en) * 2019-07-31 2023-12-22 中国工商银行股份有限公司 Intelligent configuration method and system for test environment
CN111694750A (en) * 2020-06-29 2020-09-22 深圳前海微众银行股份有限公司 Method and device for constructing software testing environment
CN112671566B (en) * 2020-12-16 2023-09-19 杭州云之盟科技有限公司 Data processing method, apparatus, computer device and readable storage medium
CN112650815B (en) * 2021-01-19 2023-06-16 青岛海尔科技有限公司 Method and device for synchronizing environment data, storage medium and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324441A (en) * 2020-02-19 2020-06-23 深圳乐信软件技术有限公司 Operating environment switching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115460077A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
US11216302B2 (en) Modifying task dependencies at worker nodes using precompiled libraries
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US9020949B2 (en) Method and system for centralized issue tracking
CN110969001B (en) Feedback information generation method and device, storage medium, processor and terminal
US11954123B2 (en) Data processing method and device for data integration, computing device and medium
CN113448862B (en) Software version testing method and device and computer equipment
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
US20140222871A1 (en) Techniques for data assignment from an external distributed file system to a database management system
US9569516B2 (en) Method and device for executing an enterprise process
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
US20210149709A1 (en) Method and apparatus for processing transaction
CN115460077B (en) Configuration information updating method and device, storage medium and electronic device
CN108268474A (en) A kind of method and device of stock control
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN115686495A (en) Application generation method and device and server
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
US20210182284A1 (en) System and method for data ingestion and workflow generation
CN110688355A (en) Method and device for changing container state
CN114691782A (en) Database table increment synchronization method and device and storage medium
US11023361B1 (en) Intelligent automated way of baselining integration content using messages from historical tests to be used for regression testing
CN109814991A (en) A kind of data administer in task management method and device
US20220382236A1 (en) Shared automated execution platform in cloud
CN109471790A (en) Send nuclear parameter comparison method and device, computer installation and readable storage medium storing program for executing
US20240012835A1 (en) Synchronizing changes in a distributed system with intermittent connectivity
US11330079B2 (en) Environment for developing of distributed multicloud applications

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