CN111092774A - Configuration method and equipment of acquisition gateway - Google Patents

Configuration method and equipment of acquisition gateway Download PDF

Info

Publication number
CN111092774A
CN111092774A CN201911360942.XA CN201911360942A CN111092774A CN 111092774 A CN111092774 A CN 111092774A CN 201911360942 A CN201911360942 A CN 201911360942A CN 111092774 A CN111092774 A CN 111092774A
Authority
CN
China
Prior art keywords
configuration
acquisition
target
configuration data
acquisition gateway
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.)
Pending
Application number
CN201911360942.XA
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
China Unicom System Integration Ltd Corp
China Unicom Heilongjiang Industrial Internet Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Unicom System Integration Ltd Corp
China Unicom Heilongjiang Industrial Internet 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 China United Network Communications Group Co Ltd, China Unicom System Integration Ltd Corp, China Unicom Heilongjiang Industrial Internet Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201911360942.XA priority Critical patent/CN111092774A/en
Publication of CN111092774A publication Critical patent/CN111092774A/en
Pending legal-status Critical Current

Links

Images

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a configuration method and equipment of an acquisition gateway, wherein the method comprises the following steps: sending a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier, and the target acquisition gateway identifier is used for indicating the configuration center to acquire target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data; receiving the target configuration data sent by the configuration center; according to the method, the interaction form is simple, and the gateways can be configured in batches, so that the implementation, operation and maintenance efficiency of the acquisition gateways is improved, and the application requirements are met.

Description

Configuration method and equipment of acquisition gateway
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a configuration method and device of an acquisition gateway.
Background
With the continuous development of communication technology, the application of data acquisition gateways is more and more extensive. The data acquisition gateway is a safe and stable industrial data acquisition and conversion device. The intelligent Modbus system is provided with a built-in industrial standard Modbus protocol communication module, a data acquisition interface of a mainstream database and data acquisition receiving software, integrates data acquisition, PLC remote updating, an industrial computer and cloud service, and is suitable for remote management of various devices.
At present, a data acquisition gateway is generally configured based on its own device, for example, an external keyboard display is used to input the address of a web server of the data acquisition gateway, and an interactive web page is used to implement the configuration of field gateway acquisition parameters.
However, the above configuration interaction form is cumbersome, and the implementation and operation and maintenance efficiency is low, which cannot meet the application requirements.
Disclosure of Invention
The embodiment of the application provides a configuration method and equipment of a collection gateway, and aims to solve the problems that the configuration interaction mode of the existing collection gateway is complicated, the implementation and operation and maintenance efficiency is low, and the application requirements cannot be met.
In a first aspect, an embodiment of the present application provides a method for configuring an acquisition gateway, including:
sending a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier, and the target acquisition gateway identifier is used for indicating the configuration center to acquire target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data;
receiving the target configuration data sent by the configuration center;
and configuring acquisition parameters according to the target configuration data.
In one possible design, after the receiving the target configuration data sent by the configuration center, the method further includes:
and writing the target configuration data into a local IO cache file.
In one possible design, further comprising:
receiving an increment change message pushed by the configuration center, wherein the increment change message is an increment change message triggered by the configuration center by calling a message queue through a python script when the configuration table is changed and monitoring whether the configuration table is changed through the python script by the configuration center;
updating the target configuration data according to the delta change message.
In one possible design, the updating the target configuration data according to the delta change message includes:
judging whether the target configuration data is changed or not according to the increment change message;
if the target configuration data is changed, obtaining change data corresponding to the target configuration data according to the increment change message, and updating the target configuration data according to the change data.
In a second aspect, an embodiment of the present application provides another method for configuring an acquisition gateway, including:
receiving a configuration data acquisition request sent by an acquisition gateway, wherein the configuration data acquisition request carries a target acquisition gateway identifier;
acquiring target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data;
and sending the target configuration data to the acquisition gateway, wherein the target configuration data is used for indicating the acquisition gateway to carry out acquisition parameter configuration.
In a possible design, before the receiving a configuration table acquisition request sent by an acquisition gateway, the method further includes:
and establishing the configuration table and storing the configuration table in a distributed memory database.
In one possible design, further comprising:
monitoring whether the configuration table is changed or not through a python script;
when the configuration table changes, calling a message queue through the python script, triggering an increment change message, and pushing the increment change message to the acquisition gateway, wherein the increment change message is used for indicating the acquisition gateway to update the target configuration data according to the increment change message.
In a third aspect, an embodiment of the present application provides a configuration device for an acquisition gateway, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the method of configuring an acquisition gateway as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, an embodiment of the present application provides another configuration device for an acquisition gateway, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory to cause the at least one processor to perform the configuration method of the acquisition gateway as set forth in the second aspect above and in various possible designs of the second aspect.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the configuration method of the acquisition gateway according to the first aspect and various possible designs of the first aspect is implemented.
In a sixth aspect, an embodiment of the present application provides another computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the configuration method of the acquisition gateway according to the second aspect and various possible designs of the second aspect is implemented.
According to the configuration method and the configuration device for the acquisition gateway, the acquisition gateway sends the configuration data acquisition request carrying the target acquisition gateway identifier to the configuration center, so that the configuration center obtains the target configuration data corresponding to the target acquisition gateway identifier according to the corresponding relation between the acquisition gateway identifier and the configuration data prestored in the configuration table, and sends the target configuration data to the acquisition gateway, and then the acquisition gateway can perform acquisition parameter configuration according to the target configuration data.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic architecture diagram of a configuration system of an acquisition gateway according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a configuration method of an acquisition gateway according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another configuration method for an acquisition gateway according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a configuration method of an acquisition gateway according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another configuration method for an acquisition gateway according to an embodiment of the present application
Fig. 6 is a schematic structural diagram of a configuration apparatus of an acquisition gateway according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of another configuration apparatus for an acquisition gateway according to an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of a configuration device of an acquisition gateway provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, a data acquisition gateway is generally configured based on its own device, for example, an external keyboard display is used to input the address of a web server of the data acquisition gateway, and an interactive web page is used to implement the configuration of field gateway acquisition parameters.
However, the above configuration interaction form is cumbersome, and the implementation and operation and maintenance efficiency is low, which cannot meet the application requirements.
Therefore, in view of the above problems, this embodiment provides a configuration method for an acquisition gateway, where the acquisition gateway sends a configuration data acquisition request carrying a target acquisition gateway identifier to a configuration center, so that the configuration center obtains target configuration data corresponding to the target acquisition gateway identifier according to a corresponding relationship between the acquisition gateway identifier and the configuration data prestored in a configuration table, and sends the target configuration data to the acquisition gateway, and then the acquisition gateway can perform acquisition parameter configuration according to the target configuration data, and the configuration process only needs to interact with the configuration center, so that the interaction form is simple, and the gateways can be configured in batches, thereby improving the implementation and operation and maintenance efficiency of the acquisition gateway and meeting the application requirements.
This embodiment provides a configuration method of an acquisition gateway, which may be applied to the schematic architecture diagram of the configuration system of the acquisition gateway shown in fig. 1, and as shown in fig. 1, the system provided in this embodiment includes an acquisition gateway 101. The acquisition gateway 101 may send a configuration data acquisition request to the configuration center 102; or receive the target configuration data sent by the configuration center 102; meanwhile, acquisition parameter configuration can be carried out according to the target configuration data. The acquisition gateway may include a client, an application program, and the like, and the functions of the client and the application program are not limited in this embodiment of the application, for example, the client may send a configuration data acquisition request to the configuration center 102 and receive target configuration data sent by the configuration center 102; the application program may load acquisition parameter configuration from the client, and then perform acquisition parameter configuration. Here, the configuration center may be a cloud platform center for storing and notifying messages, and a configuration table is prestored, where the configuration table includes a corresponding relationship between an acquisition gateway identifier and configuration data, and in addition, the configuration center may also store other data, which is not limited in this embodiment of the present application. Wherein, a configuration center can correspond to a plurality of acquisition gateways.
The system is only an exemplary system, and when the system is implemented, the system can be set according to application requirements.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flowchart of a configuration method of an acquisition gateway provided in an embodiment of the present application, and an execution subject of the embodiment may be the acquisition gateway 101 in the embodiment shown in fig. 1. As shown in fig. 2, the method may include:
s201: and sending a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier.
The target acquisition gateway identifier is used for indicating the configuration center to acquire target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data.
For example, the configuration table may be stored in a montodb database configuration table, and loaded into a memory in a file mapping manner, so as to improve the query speed of the database and have an unlimited storage capacity. The MongoDB database is a database based on distributed file storage. Written in the C + + language. An extensible high-performance data storage solution can be provided for WEB applications.
For example, the acquisition gateway includes a client and an application, one configuration center may correspond to multiple acquisition gateways for description, the configuration table of the configuration center includes multiple acquisition gateway identifiers and configuration data corresponding to the acquisition gateway identifiers, a first acquisition gateway may send a configuration data acquisition request to the configuration center when the client is started for the first time, and after receiving the configuration data acquisition request sent by the first acquisition gateway, the configuration center acquires first configuration data corresponding to the first acquisition gateway identifier according to the first acquisition gateway identifier, where the first configuration data is target configuration data.
S202: and receiving the target configuration data sent by the configuration center.
For example, it is also described that the acquisition gateway includes a client and an application, one configuration center may correspond to a plurality of acquisition gateways, and the client of the first acquisition gateway receives first configuration data corresponding to the first acquisition gateway identifier sent by the configuration center.
S203: and configuring acquisition parameters according to the target configuration data.
For example, the acquisition gateway includes a client and an application program, and the application program of the first acquisition gateway configures acquisition parameters according to configuration data corresponding to the acquisition gateway.
According to the configuration method of the acquisition gateway, the acquisition gateway sends the configuration data acquisition request carrying the target acquisition gateway identifier to the configuration center, so that the configuration center obtains the target configuration data corresponding to the target acquisition gateway identifier according to the corresponding relation between the acquisition gateway identifier and the configuration data prestored in the configuration table, and sends the target configuration data to the acquisition gateway, and then the acquisition gateway can carry out acquisition parameter configuration according to the target configuration data.
Fig. 3 is a schematic flow chart of another configuration method of an acquisition gateway provided in the embodiment of the present application, and an execution subject of the embodiment may be the acquisition gateway 101 in the embodiment shown in fig. 1. As shown in fig. 3, the method includes:
s301: and sending a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier.
The target acquisition gateway identifier is used for indicating the configuration center to acquire target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data.
S302: and receiving the target configuration data sent by the configuration center.
The implementation manners of S301 to S302 are the same as those of S201 to S202 described above, and are not described herein again.
S303: receiving an increment change message pushed by the configuration center, wherein the increment change message is an increment change message triggered by the configuration center through invoking a message queue by a python script when the configuration table is changed.
The Python is a scripting language, which is a computer programming language.
A message queue is a container that holds messages during their transmission.
Illustratively, the python script monitors the distributed in-memory database for data changes, and when a configuration table changes, the python script calls a message queue to trigger an incremental change message.
S304: updating the target configuration data according to the delta change message.
Optionally, the updating the target configuration data according to the delta change message includes:
s3041: and judging whether the target configuration data is changed or not according to the increment change message.
For example, the collecting gateway determines whether the incremental change message includes change data corresponding to the target configuration data, and if so, the target configuration data changes; if not, the target configuration data is unchanged.
For example, the incremental change message includes a corresponding relationship between the acquisition gateway identifier and the configuration change data, and if the acquisition gateway finds the configuration change data corresponding to the target acquisition gateway identifier according to the corresponding relationship, it indicates that the incremental change message includes the change data corresponding to the target configuration data. The configuration change data is change data corresponding to the target configuration data.
S3042: if the target configuration data is changed, obtaining change data corresponding to the target configuration data according to the increment change message, and updating the target configuration data according to the change data.
Illustratively, if the target configuration data is changed, it indicates that the target configuration data does not have the delta change information, and therefore, the collecting gateway obtains change data corresponding to the target configuration data according to the delta change information and updates the change data into the target configuration data.
The acquisition gateway obtains the change data corresponding to the target configuration data according to the increment change message, updates the change data into the target configuration data, can consume the increment configuration change information sent by the message queue in real time, achieves distributed configuration parameter synchronization, and improves the efficiency of updating the field acquisition configuration by the acquisition gateway.
S305: and writing the target configuration data into a local IO cache file.
Target configuration data are written into the local IO cache file through the acquisition gateway, and when the acquisition gateway and the configuration center cannot be networked, the acquisition gateway can acquire the target configuration data from the local IO cache file, so that when the acquisition network and the configuration center cannot be networked, subsequent acquisition parameter configuration can be performed.
It is understood that before S303-S304, the target configuration data before updating may be written into the local IO cache file, and then the cache file is updated. Here, after S303 to S304, the target configuration data is updated, and after the update is completed, the updated target configuration data is written into the local IO cache file.
S306: and configuring acquisition parameters according to the target configuration data.
It is understood that after S302, S306 may be executed to perform acquisition parameter configuration according to the target configuration data, and after S304 updates the target configuration data according to the delta change message, S306 may also be executed to perform acquisition parameter configuration according to the target configuration data.
Illustratively, the application program of the first acquisition gateway configures acquisition parameters according to configuration data corresponding to the first acquisition gateway, receives incremental configuration change information pushed by the configuration client, updates local acquisition parameter configuration, and restarts the acquisition module.
According to the configuration method of the acquisition gateway, the acquisition gateway sends a configuration data acquisition request carrying a target acquisition gateway identifier to a configuration center, so that the configuration center obtains target configuration data corresponding to the target acquisition gateway identifier according to a corresponding relation between the acquisition gateway identifier and the configuration data prestored in a configuration table, and sends the target configuration data to the acquisition gateway, and then the acquisition gateway can perform acquisition parameter configuration according to the target configuration data; the acquisition gateway writes the target configuration data into the local IO cache file, and can acquire the target configuration data from the local IO cache file when the acquisition gateway and the configuration center cannot be networked, so that subsequent acquisition parameter configuration can be performed when the acquisition network and the configuration center cannot be networked; the acquisition gateway obtains the change data corresponding to the target configuration data according to the increment change message, updates the change data into the target configuration data, can consume the increment configuration change information sent by the message queue in real time, achieves distributed configuration parameter synchronization, and improves the efficiency of updating the field acquisition configuration by the acquisition gateway.
Fig. 4 is a schematic flowchart of a further configuration method for an acquisition gateway according to an embodiment of the present application, where an execution subject of the embodiment may be in the configuration center 102 in the embodiment shown in fig. 1. As shown in fig. 4, the method includes:
s401: receiving a configuration data acquisition request sent by an acquisition gateway, wherein the configuration data acquisition request carries a target acquisition gateway identifier.
Optionally, before the receiving the configuration table acquisition request sent by the acquisition gateway, the method further includes:
and establishing the configuration table and storing the configuration table in a distributed memory database.
S402: and acquiring target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data.
S403: and sending the target configuration data to the acquisition gateway, wherein the target configuration data is used for indicating the acquisition gateway to carry out acquisition parameter configuration.
Optionally, the method further comprises:
s404: the configuration table is monitored for changes by the python script.
S405: when the configuration table changes, calling a message queue through the python script, triggering an increment change message, and pushing the increment change message to the acquisition gateway, wherein the increment change message is used for indicating the acquisition gateway to update the target configuration data according to the increment change message.
The method for configuring the acquisition gateway provided by the embodiment of the application comprises the steps that a configuration center receives a configuration data acquisition request which is sent by the acquisition gateway and carries a target acquisition gateway identifier, and target configuration data corresponding to the target acquisition gateway identifier are obtained based on a corresponding relation in a configuration table according to the target acquisition gateway identifier; the method comprises the steps that a configuration center monitors whether a configuration table changes or not through a python script, when the configuration table changes, a message queue is called through the python script, an increment change message is triggered, the configuration center sends the increment change message to an acquisition gateway, the acquisition gateway obtains change data corresponding to target configuration data according to the increment change message and updates the change data into the target configuration data, the increment configuration change information sent by the message queue can be consumed in real time, distributed configuration parameter synchronization is achieved, updating field acquisition configuration efficiency of the acquisition gateway is improved, the configuration center sends the target configuration data to the acquisition gateway, so that the acquisition gateway carries out acquisition parameter configuration according to the target configuration data, the interaction form of the acquisition parameter configuration process is simple, the gateway can be remotely configured in batches, and field operation is not needed.
Fig. 5 is a schematic flowchart of a further configuration method for an acquisition gateway according to an embodiment of the present application, where a scheme is described from multiple terminals, such as the acquisition gateway and a configuration center. As shown in fig. 5, the method includes:
s501: and the configuration center establishes the configuration table and stores the configuration table in a distributed memory database.
S502: the acquisition gateway sends a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier.
S503: and the configuration center acquires target configuration data corresponding to the target acquisition gateway identifier from a configuration table.
S504: and the configuration center sends the target configuration data to the acquisition gateway.
S505: and the acquisition gateway configures acquisition parameters according to the target configuration data.
S506: and the acquisition gateway writes the target configuration data into a local IO cache file.
S507: the configuration center monitors whether the configuration table changes through the python script.
S508: and when the configuration table is changed, the configuration center calls a message queue through the python script, triggers an increment change message and pushes the increment change message to the acquisition gateway.
S509: and the acquisition gateway updates and writes target configuration data of the local IO cache file according to the increment change message.
Optionally, the updating, by the collecting gateway, the target configuration data according to the incremental change message includes:
the acquisition gateway judges whether the target configuration data changes according to the increment change message;
if the target configuration data is changed, obtaining change data corresponding to the target configuration data according to the increment change message, and updating the target configuration data according to the change data.
S510: and the acquisition gateway configures acquisition parameters according to the updated target configuration data.
According to the configuration method of the acquisition gateway, the acquisition gateway sends a configuration data acquisition request carrying a target acquisition gateway identifier to a configuration center, so that the configuration center obtains target configuration data corresponding to the target acquisition gateway identifier according to a corresponding relation between the acquisition gateway identifier and the configuration data prestored in a configuration table, and sends the target configuration data to the acquisition gateway, and then the acquisition gateway can perform acquisition parameter configuration according to the target configuration data; the acquisition gateway writes the target configuration data into a local IO cache file, and when the acquisition gateway cannot be networked with the configuration center, the acquisition gateway can acquire the target configuration data from the local IO cache file, so that when the acquisition network cannot be networked with the configuration center, subsequent acquisition parameter configuration can be performed; the acquisition gateway obtains the change data corresponding to the target configuration data according to the increment change message, updates the change data into the target configuration data, can consume the increment configuration change information sent by the message queue in real time, achieves distributed configuration parameter synchronization, and improves the efficiency of updating the field acquisition configuration by the acquisition gateway.
Fig. 6 is a schematic structural diagram of a configuration apparatus of an acquisition gateway according to an embodiment of the present application, corresponding to the configuration method of the acquisition gateway according to the foregoing embodiment. For convenience of explanation, only portions related to the embodiments of the present application are shown. As shown in fig. 6, the configuration device 60 of the acquisition gateway includes: the device comprises a sending module 601, a receiving module 602, and a configuration module 603, and optionally further comprises a caching module 604 and a processing module 605.
A sending module 601, configured to send a configuration data obtaining request to a configuration center, where the configuration data obtaining request carries a target acquisition gateway identifier, and the target acquisition gateway identifier is used to instruct the configuration center to obtain target configuration data corresponding to the target acquisition gateway identifier from a configuration table, where the configuration table includes a corresponding relationship between an acquisition gateway identifier and configuration data;
a receiving module 602, configured to receive the target configuration data sent by the configuration center;
a configuration module 603, configured to perform acquisition parameter configuration according to the target configuration data.
Optionally, the caching module 604 is configured to, after the receiving module 602 receives the target configuration data sent by the configuration center, further include:
and writing the target configuration data into a local IO cache file.
Optionally, the processing module 605 is configured to receive an incremental change message pushed by the configuration center, where the incremental change message is an incremental change message that the configuration center monitors whether the configuration table changes through a python script, and when the configuration table changes, calls a message queue to trigger through the python script;
updating the target configuration data according to the delta change message.
Optionally, the processing module 605 updates the target configuration data according to the delta change message, including:
judging whether the target configuration data is changed or not according to the increment change message;
if the target configuration data is changed, obtaining change data corresponding to the target configuration data according to the increment change message, and updating the target configuration data according to the change data.
The apparatus provided in the embodiment of the present application may be configured to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again in the embodiment of the present application.
Fig. 7 is a schematic structural diagram of another configuration apparatus for an acquisition gateway according to an embodiment of the present application, corresponding to the configuration method for an acquisition gateway according to the foregoing embodiment. For convenience of explanation, only portions related to the embodiments of the present application are shown. As shown in fig. 7, the configuration device 70 of the acquisition gateway includes: the receiving module 701, the obtaining module 702, and the sending module 703 may further include an establishing module 704 and a processing module 705.
A receiving module 701, configured to receive a configuration data acquisition request sent by an acquisition gateway, where the configuration data acquisition request carries a target acquisition gateway identifier;
an obtaining module 702, configured to obtain target configuration data corresponding to the target acquisition gateway identifier from a configuration table, where the configuration table includes a corresponding relationship between the acquisition gateway identifier and the configuration data;
a sending module 703 is configured to send the target configuration data to the acquisition gateway, where the target configuration data is used to instruct the acquisition gateway to perform acquisition parameter configuration.
Optionally, the establishing module 704 is configured to, before the receiving module 701 receives the configuration table obtaining request sent by the collecting gateway,
and establishing the configuration table and storing the configuration table in a distributed memory database.
Optionally, the processing module 705 is configured to monitor whether the configuration table changes through a python script;
when the configuration table changes, calling a message queue through the python script, triggering an increment change message, and pushing the increment change message to the acquisition gateway, wherein the increment change message is used for indicating the acquisition gateway to update the target configuration data according to the increment change message.
The apparatus provided in the embodiment of the present application may be configured to implement the technical solution of the method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again in the embodiment of the present application.
Fig. 8 is a schematic hardware structure diagram of a configuration device of an acquisition gateway provided in an embodiment of the present application. As shown in fig. 8, the configuration device 80 of the acquisition gateway of the present embodiment includes: a processor 801 and a memory 802; wherein
A memory 802 for storing computer-executable instructions;
the processor 801 is configured to execute the computer-executable instructions stored in the memory to implement the steps of the configuration method of the acquisition gateway in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 802 may be separate or integrated with the processor 801.
When the memory 802 is separately provided, the configuration device of the acquisition gateway further includes a bus 803 for connecting the memory 802 and the processor 801.
An embodiment of the present application further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the configuration method of the acquisition gateway is implemented as described above.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiment of the configuration apparatus of the acquisition gateway is merely illustrative, for example, the division of the modules is only a logical division, and there may be other divisions when the actual implementation is performed, for example, a plurality of modules may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor to execute part of the steps of the configuration method of the acquisition gateway according to various embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the configuration method of the acquisition gateway disclosed in this application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the storage medium may reside as discrete components in an electronic device or host device.
Those of ordinary skill in the art will understand that: all or part of the steps of the configuration method embodiment of each acquisition gateway can be completed through hardware related to program instructions. The program may be stored in a computer-readable storage medium. When the program is executed, executing the steps of the configuration method embodiment comprising the acquisition gateways; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method for acquiring gateway configuration is characterized by comprising the following steps:
sending a configuration data acquisition request to a configuration center, wherein the configuration data acquisition request carries a target acquisition gateway identifier, and the target acquisition gateway identifier is used for indicating the configuration center to acquire target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data;
receiving the target configuration data sent by the configuration center;
and configuring acquisition parameters according to the target configuration data.
2. The method of claim 1, further comprising, after said receiving said target configuration data sent by said configuration center:
and writing the target configuration data into a local IO cache file.
3. The method of claim 1, further comprising:
receiving an increment change message pushed by the configuration center, wherein the increment change message is an increment change message triggered by the configuration center by calling a message queue through a python script when the configuration table is changed and monitoring whether the configuration table is changed through the python script by the configuration center;
updating the target configuration data according to the delta change message.
4. The method of claim 3, wherein updating the target configuration data according to the delta change message comprises:
judging whether the target configuration data is changed or not according to the increment change message;
if the target configuration data is changed, obtaining change data corresponding to the target configuration data according to the increment change message, and updating the target configuration data according to the change data.
5. A configuration method of an acquisition gateway is characterized by comprising the following steps:
receiving a configuration data acquisition request sent by an acquisition gateway, wherein the configuration data acquisition request carries a target acquisition gateway identifier;
acquiring target configuration data corresponding to the target acquisition gateway identifier from a configuration table, wherein the configuration table comprises a corresponding relation between the acquisition gateway identifier and the configuration data;
and sending the target configuration data to the acquisition gateway, wherein the target configuration data is used for indicating the acquisition gateway to carry out acquisition parameter configuration.
6. The method according to claim 5, before said receiving the configuration table acquisition request sent by the acquisition gateway, further comprising:
and establishing the configuration table and storing the configuration table in a distributed memory database.
7. The method of claim 5 or 6, further comprising:
monitoring whether the configuration table is changed or not through a python script;
when the configuration table changes, calling a message queue through the python script, triggering an increment change message, and pushing the increment change message to the acquisition gateway, wherein the increment change message is used for indicating the acquisition gateway to update the target configuration data according to the increment change message.
8. A configuration device for an acquisition gateway, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of configuring an acquisition gateway of any of claims 1-4.
9. A configuration device for an acquisition gateway, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the method of configuring an acquisition gateway of any of claims 5-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the method of configuration of an acquisition gateway according to any one of claims 1-4.
11. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, implement the method of configuring an acquisition gateway according to any one of claims 5-7.
CN201911360942.XA 2019-12-25 2019-12-25 Configuration method and equipment of acquisition gateway Pending CN111092774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911360942.XA CN111092774A (en) 2019-12-25 2019-12-25 Configuration method and equipment of acquisition gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911360942.XA CN111092774A (en) 2019-12-25 2019-12-25 Configuration method and equipment of acquisition gateway

Publications (1)

Publication Number Publication Date
CN111092774A true CN111092774A (en) 2020-05-01

Family

ID=70397729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911360942.XA Pending CN111092774A (en) 2019-12-25 2019-12-25 Configuration method and equipment of acquisition gateway

Country Status (1)

Country Link
CN (1) CN111092774A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564944A (en) * 2020-11-20 2021-03-26 深圳市友华通信技术有限公司 Gateway information setting method, device, equipment and storage medium
CN113300887A (en) * 2021-05-21 2021-08-24 广东拓斯达科技股份有限公司 Acquisition method, device and system for acquired data and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836693A (en) * 2015-05-29 2015-08-12 上海斐讯数据通信技术有限公司 Router configuration method and device and router
CN105897475A (en) * 2016-04-08 2016-08-24 深圳市延翼通电子有限公司 Remote configuration method of router and router
CN106131245A (en) * 2016-08-31 2016-11-16 迈普通信技术股份有限公司 The collocation method of a kind of AP, configuration service device, AP and system
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN107707589A (en) * 2016-08-09 2018-02-16 阿里巴巴集团控股有限公司 The update method of system version, content delivery network node, remote gateway
CN108833191A (en) * 2018-08-03 2018-11-16 云丁智能科技(北京)有限公司 Gateway configuration method and device
CN108965007A (en) * 2018-07-19 2018-12-07 北京车和家信息技术有限公司 API gateway interface configures update method and device
CN109194760A (en) * 2018-09-14 2019-01-11 深圳市佰仟金融服务有限公司 Method for processing business, network system and server
CN109358880A (en) * 2018-10-18 2019-02-19 行吟信息科技(上海)有限公司 A kind of universal gateway configuration method and device
CN110224878A (en) * 2019-06-28 2019-09-10 北京金山云网络技术有限公司 Gateway configures update method, device and server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836693A (en) * 2015-05-29 2015-08-12 上海斐讯数据通信技术有限公司 Router configuration method and device and router
CN105897475A (en) * 2016-04-08 2016-08-24 深圳市延翼通电子有限公司 Remote configuration method of router and router
CN107707589A (en) * 2016-08-09 2018-02-16 阿里巴巴集团控股有限公司 The update method of system version, content delivery network node, remote gateway
CN106131245A (en) * 2016-08-31 2016-11-16 迈普通信技术股份有限公司 The collocation method of a kind of AP, configuration service device, AP and system
CN106972958A (en) * 2017-03-13 2017-07-21 海信集团有限公司 Gateway device collocation method, apparatus and system
CN108965007A (en) * 2018-07-19 2018-12-07 北京车和家信息技术有限公司 API gateway interface configures update method and device
CN108833191A (en) * 2018-08-03 2018-11-16 云丁智能科技(北京)有限公司 Gateway configuration method and device
CN109194760A (en) * 2018-09-14 2019-01-11 深圳市佰仟金融服务有限公司 Method for processing business, network system and server
CN109358880A (en) * 2018-10-18 2019-02-19 行吟信息科技(上海)有限公司 A kind of universal gateway configuration method and device
CN110224878A (en) * 2019-06-28 2019-09-10 北京金山云网络技术有限公司 Gateway configures update method, device and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112564944A (en) * 2020-11-20 2021-03-26 深圳市友华通信技术有限公司 Gateway information setting method, device, equipment and storage medium
CN113300887A (en) * 2021-05-21 2021-08-24 广东拓斯达科技股份有限公司 Acquisition method, device and system for acquired data and storage medium

Similar Documents

Publication Publication Date Title
CN108566290B (en) Service configuration management method, system, storage medium and server
CN109245908B (en) Method and device for switching master cluster and slave cluster
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN112860343B (en) Configuration changing method, system, device, electronic equipment and storage medium
CN111092774A (en) Configuration method and equipment of acquisition gateway
CN112243033A (en) Method, device and equipment for acquiring memory information and computer readable storage medium
CN114327710B (en) Function management method, management device, terminal equipment and readable storage medium
CN109788251B (en) Video processing method, device and storage medium
CN112817992A (en) Method, device, electronic equipment and readable storage medium for executing change task
CN112084099B (en) Method, device, equipment and storage medium for acquiring alarm state value based on host
CN115248735A (en) Log data output control method, device, equipment and storage medium
CN114827967A (en) Software updating method, Bluetooth device and storage medium
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN114356970A (en) Storage system resource caching method and device
CN113901374A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN111092817A (en) Data transmission method and device
CN113741937B (en) Application updating method and device for cloud terminal and computer program product
CN112583616B (en) Internet of things equipment, Internet of things platform and method for accessing Internet of things platform
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN114257598B (en) Resource downloading method and device, storage medium and electronic equipment
CN112669015B (en) Power dispatching micro-service construction system and method
CN115913954A (en) Cluster management information interaction method, device, equipment and storage medium
CN113326108A (en) Method and device for managing application service
CN118210525A (en) System updating method, device, equipment and storage medium for cloud terminal
CN116719543A (en) Firmware upgrading method, system and device of storage server and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200501