CN112600918B - Industrial control edge big data efficient processing method and system based on BS architecture - Google Patents

Industrial control edge big data efficient processing method and system based on BS architecture Download PDF

Info

Publication number
CN112600918B
CN112600918B CN202011457818.8A CN202011457818A CN112600918B CN 112600918 B CN112600918 B CN 112600918B CN 202011457818 A CN202011457818 A CN 202011457818A CN 112600918 B CN112600918 B CN 112600918B
Authority
CN
China
Prior art keywords
information table
configuration information
data
edge
address
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
CN202011457818.8A
Other languages
Chinese (zh)
Other versions
CN112600918A (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.)
Xiamen Muyun Data Technology Co ltd
Original Assignee
Xiamen Muyun Data 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 Xiamen Muyun Data Technology Co ltd filed Critical Xiamen Muyun Data Technology Co ltd
Priority to CN202011457818.8A priority Critical patent/CN112600918B/en
Publication of CN112600918A publication Critical patent/CN112600918A/en
Application granted granted Critical
Publication of CN112600918B publication Critical patent/CN112600918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • 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/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an industrial control edge big data high-efficiency processing method and system based on a BS (browser/Server) framework, comprising the steps of designing and adding a structured field identifier for data to be processed at the rear end according to item attributes of the data to be processed so as to construct a corresponding configuration information table; the method comprises the steps that an edge end obtains a configuration information table of a rear end, the configuration information table is stored locally, and the configuration information table of the edge end is updated in real time in a subsequent process; the edge end reads address block values corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, and then cuts and stores the address block values according to the required offset; when the edge terminal obtains the data request initiated by the front terminal, filtering is carried out in a configuration information table of the edge terminal according to the flow mark in the data request to obtain request data. The scheme realizes the consistency of the data from the PLC to the front end to the back end, improves the data processing efficiency, reduces the data request quantity, and further improves the request and response speed.

Description

Industrial control edge big data efficient processing method and system based on BS architecture
Technical Field
The invention relates to the technical field of industrial control, in particular to an industrial control edge big data efficient processing method and system based on a BS framework.
Background
With the development of industrial 4.0 and 5G technologies, the importance of edge computing in industrial control and data application is higher and higher, the traditional industrial control software mostly adopts a C/S architecture, and the server is generally deployed locally, which brings about a larger limitation on the application of data and also brings about an obstacle to the expansion of the industrial control software. In the current age, more and more enterprises begin to use industrial control schemes based on B/S architecture and adopt technical means such as cloud storage, distributed control and the like, and in the process, the performance requirements of industrial control on data efficiency are not reduced while software application is improved. Therefore, it is an important direction to make industrial control B/S architecture for how to improve data processing performance.
Existing industrial control methods and systems have at least the following drawbacks:
1) The existing percolate treatment control system is mainly based on a C/S architecture, adopts localized deployment in data acquisition and application, has high edge big data acquisition performance, but has weak processing capacity;
2) The cloud platform data acquisition and control system has the advantages that the direction of the cloud platform data acquisition and control system is similar to that of the technology, but the technology in the aspect of data processing is different, the requirements of the cloud platform on the field environment are higher, and the implementation is difficult without better network environment supporting conditions;
3) The edge computing system is a framework foundation of the technology, and has differences in how to process data, if the data is not processed efficiently, excessive pressure is caused on a browser, and phenomena such as blocking and slow response may be caused.
Disclosure of Invention
The invention provides an industrial control edge big data efficient processing method and system based on a BS framework, which are used for solving the defects of the prior art.
In one aspect, the invention provides an industrial control edge big data efficient processing method based on a BS architecture, which comprises the following steps:
s1: the back end designs and adds a structured field identifier for the data to be processed according to the item attribute of the data to be processed, and constructs a corresponding configuration information table by utilizing the field identifier;
s2: the edge end acquires the configuration information table of the rear end and stores the configuration information table in a local place, and updates the configuration information table of the edge end in real time in a subsequent process;
s3: the edge end reads an address block value corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cuts the address block value according to the required offset to obtain a cut address value, returns the cut address value and the information table id to the rear end according to the information table id in the local configuration information table and stores the cut address value and the information table id;
s4: after the edge terminal obtains a data request initiated by the front terminal, the edge terminal searches and filters an address block corresponding to data required by the data request in a configuration information table of the edge terminal according to a flow mark in the data request, and then obtains a corresponding address block value according to the corresponding address block;
s5: and (3) cutting the address block value by the edge end according to the address block and the address block value obtained in the step (S4) and the code address, the code data type and the offset in the configuration information table of the edge end to obtain a cutting address value, and finally pushing relevant field identifications including an information table id, the address value and a flow identification corresponding to the cutting address value in the configuration information table of the edge end to the front end.
The method realizes the consistency of data from the PLC to the front end to the back end by constructing the configuration information table and keeping the configuration information tables of the front end, the back end and the edge end consistent; meanwhile, different field identifiers in the configuration table are adopted as communication instructions according to different flows, so that communication among the front end, the rear end and the edge end is realized, the data request quantity is reduced, the data processing efficiency is improved, and the request and response speeds are improved.
In a specific embodiment, the method further comprises step S6: after the front end acquires the information table id in the information pushed by the edge end, the front end compares the information table id with the information table id stored on the page, corresponds the required data to the position where the information table id is located, and presents the required data on the page of the corresponding information table id.
In a specific embodiment, the field identifier specifically includes: information table id, flow identification, code address, code data type, offset, buffer value, IP identification of PLC and address block identification.
In a specific embodiment, in the step S2, updating the configuration information table of the edge specifically includes: and the edge end dynamically monitors the back end at intervals, and if the update notification of the configuration information table sent by the back end is monitored, the configuration information table of the edge end is updated.
In a specific embodiment, the information table id is used as a primary key of a configuration information table where the information table id is located, and is used for association retrieval among the configuration information tables of the front end, the edge end and the back end.
In a specific embodiment, the step S3 specifically includes: and the edge end reads the buffer value in the local configuration information table to take out the value of the PLC and simultaneously obtains the address block and the address of the code in the code address. According to the scheme, the value of the whole address block is read according to the buffer value and the starting address of the address block, so that the reading efficiency is improved by hundreds of times, and the obtained value of the address block is used for subsequent cutting according to the offset.
In a specific embodiment, the specific step of searching, by the edge in the configuration information table of the edge according to the flow identifier in the data request, the address block corresponding to the data required to filter the data request in the step S4 includes: the edge end filters out the same flow identification from the flow identification in the configuration information table of the edge end according to the fields including the flow identification, the time stamp and the constraint protocol in the data request, and then finds out the corresponding address block through the same flow identification. The scheme uses the flow mark to request in the process of requesting data, instead of sending the request of all data of the whole page or the system to the edge, the data request quantity can be reduced, and thus, the request and response speed is improved.
In a specific embodiment, after the edge obtains the data request initiated by the front end in step S4, the operation of the edge further includes: and monitoring the front end, if the new data request sent by the front end is monitored, executing the step S5, and if the new data request sent by the front end is not monitored, keeping pushing the data required by the previous data request to the front end.
In a specific embodiment, the flow identifier characterizes a specific flow type that the point location corresponding to the flow identifier is used for, and is used for enabling the front end to only process the data to be processed currently.
According to a second aspect of the present invention, a computer-readable storage medium is presented, on which a computer program is stored, which computer program, when being executed by a computer processor, carries out the above-mentioned method.
According to a third aspect of the present invention, an industrial control edge big data efficient processing system based on BS architecture is provided, the system includes:
the configuration information table construction module: the method comprises the steps that the method is configured for a back end to design and add a structured field identifier for data to be processed according to item attributes of the data to be processed, and a corresponding configuration information table is constructed by utilizing the field identifier;
configuration information table updating module: the configuration information table for the edge terminal to acquire the back terminal is stored locally, and the configuration information table of the edge terminal is updated in real time in the subsequent process;
and the data processing and storage module is used for: the edge end is configured to read address block values corresponding to the PLCs in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cut the address block values according to the required offset to obtain cut address values, and return the cut address values and the information table id to the rear end according to the information table id in the local configuration information table and store the cut address values and the information table id;
push data filtering module: the configuration method comprises the steps that after an edge terminal obtains a data request initiated by a front terminal, the edge terminal searches a configuration information table of the edge terminal according to a flow mark in the data request to filter out an address block corresponding to data required by the data request, and then obtains a corresponding address block value according to the corresponding address block;
address resolution and data push module: the configuration is used for the edge to cut the address block value according to the address block and the address block value obtained in the push data filtering module and according to the code address, the code data type and the offset in the configuration information table of the edge to obtain a cut address value, and finally, relevant field identifiers including an information table id, an address value and a flow identifier corresponding to the cut address value in the configuration information table of the edge are pushed to the front end;
front end display module: after the information table id in the information pushed by the edge end is acquired by the front end, the information table id is compared with the information table id stored on the page, the required data is corresponding to the position where the information table id is located, and the required data is presented on the page of the corresponding information table id.
According to the item attribute of the data to be processed, a structured field identifier is designed and added for the data to be processed at the rear end so as to construct a corresponding configuration information table; the edge end acquires the configuration information table of the rear end and stores the configuration information table in a local place, and updates the configuration information table of the edge end in real time in a subsequent process; the edge end reads an address block value corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cuts the address block value according to the required offset to obtain a cut address value, returns the cut address value and the information table id to the rear end according to the information table id in the local configuration information table and stores the cut address value and the information table id; after the edge terminal obtains a data request initiated by the front terminal, the edge terminal searches and filters an address block corresponding to data required by the data request in a configuration information table of the edge terminal according to a flow mark in the data request, and then obtains a corresponding address block value according to the corresponding address block; and the edge end cuts the address block value according to the obtained address block and address block value and the code address, the code data type and the offset in the configuration information table of the edge end to obtain a cut address value, and finally pushes the relevant field identifications including the information table id, the cut address value and the flow identification corresponding to the configuration information table of the edge end to the front end. The scheme realizes the consistency of data from the PLC to the front end to the back end by constructing the configuration information table and keeping the configuration information tables of the front end, the back end and the edge end consistent; meanwhile, different field identifiers in the configuration table are adopted as communication instructions according to different flows, so that communication among the front end, the rear end and the edge end is realized, the data processing efficiency is improved, the data request quantity is reduced, and the request and response speeds are improved.
Drawings
The accompanying drawings are included to provide a further understanding of the embodiments and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments and together with the description serve to explain the principles of the invention. Many of the intended advantages of other embodiments and embodiments will be readily appreciated as they become better understood by reference to the following detailed description. Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow chart of an industrial control edge big data efficient processing method based on a BS architecture according to an embodiment of the invention;
FIG. 3 is a diagram of a configuration information table body database structure reference for one embodiment of the present invention;
FIG. 4 is a flow chart of an industrial control edge big data efficient processing method based on a BS architecture according to a specific embodiment of the invention;
FIG. 5 is a block diagram of an industrial control edge big data efficient processing system based on a BS architecture according to an embodiment of the invention;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which the BS-architecture-based industrial control edge big data efficient processing method of the embodiments of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various applications, such as a data processing class application, a data visualization class application, a web browser application, and the like, may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices including, but not limited to, smartphones, tablets, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, such as a background information processing server providing support for page data presented on the terminal devices 101, 102, 103. The background information processing server may process the acquired data request and generate a processing result (e.g., an address value).
It should be noted that, the method provided in the embodiment of the present application may be executed by the server 105, or may be executed by the terminal devices 101, 102, 103, and the corresponding apparatus is generally disposed in the server 105, or may be disposed in the terminal devices 101, 102, 103.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 shows a flowchart of an industrial control edge big data efficient processing method based on a BS architecture according to an embodiment of the present invention. As shown in fig. 2, the method comprises the steps of:
s201: the back end designs and adds a structured field identifier for the data to be processed according to the item attribute of the data to be processed, and constructs a corresponding configuration information table by utilizing the field identifier.
In a specific embodiment, the field identification specifically includes: information table id, flow identification, code address, code data type, offset, buffer value, IP identification of PLC and address block identification.
FIG. 3 is a diagram showing a configuration information table body database structure reference for a specific embodiment of the present invention, the configuration information table body database shown in FIG. 3 includes the following field identifications:
id: information table id, which is used as the main key of the configuration information table and used for the association search between different configuration information tables;
code, bit number, which represents data, used for the front-end and back-end interaction;
code_type, which represents the structure type of the code, for distinguishing the data type of the code;
name: a point name;
unit: a unit;
original address of point location, through original address and code_type, edge end can obtain PLC data;
read_only: whether read-write is used for judging the control authority;
process_id, which represents which process the point corresponding to the process id belongs to, is identified by the process_id;
process_mark, which is a process identifier for indicating which processes the point position corresponding to the process identifier is used for, and is mainly used for front-end plug flow use and data processing use, so that the front-end is ensured to process only the data to be processed currently;
mid: the PLC IP identifier is used for identifying which PLC the point corresponding to the IP identifier comes from;
block, namely an address block identifier, which indicates which address block the point position is located;
the buffer_num is the maximum buffer value of the address block and is used for taking the value of the edge end, and cutting is carried out after the actual value of the PLC is taken out according to the buffer value;
min_value, reservation;
max_value, reservation;
save_history, which is used to characterize whether to store in the history database, 0 indicates no storage, and 1 indicates storage.
S202: the edge end acquires the configuration information table of the back end, stores the configuration information table in a local place, and updates the configuration information table of the edge end in real time in a subsequent process.
In a specific embodiment, in step S202, updating the configuration information table of the edge specifically includes: and the edge end dynamically monitors the back end at intervals (for example, 10 seconds, and can be dynamically adjusted), and if the update notification of the configuration information table sent by the back end is monitored, the configuration information table of the edge end is updated.
S203: and the edge end reads an address block value corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cuts the address block value according to the required offset to obtain a cut address value, and returns the cut address value and the information table id to the rear end according to the information table id in the local configuration information table and stores the cut address value and the information table id.
In a specific embodiment, step S203 specifically includes: the edge end takes out the value of the PLC by reading the buffer value in the local configuration information table, and simultaneously obtains the address block and the address of the code in the code address.
S204: after the edge terminal obtains the data request initiated by the front terminal, the edge terminal searches and filters the address block corresponding to the data required by the data request in the configuration information table of the edge terminal according to the flow mark in the data request, and then obtains the corresponding address block value according to the corresponding address block.
In a specific embodiment, the specific step of searching, by the edge in the configuration information table of the edge according to the flow identifier in the data request, the address block corresponding to the data required to filter the data request in step S204 includes: the edge end filters out the same flow identification from the flow identification in the configuration information table of the edge end according to the fields including the flow identification, the time stamp and the constraint protocol in the data request, and then finds out the corresponding address block value through the same flow identification.
In a specific embodiment, after the edge obtains the data request initiated by the front end in step S204, the operation of the edge further includes: and monitoring the front end, if the new data request sent by the front end is monitored, executing the step S205, and if the new data request sent by the front end is not monitored, keeping pushing the data required by the previous data request to the front end.
S205: and the edge end cuts the address block value according to the address block and the address block value obtained in the step S204 and the code address, the code data type and the offset in the configuration information table of the edge end to obtain a cut address value, and finally pushes relevant field identifications including an information table id, the address value and a flow identification corresponding to the cut address value in the configuration information table of the edge end to the front end.
In a preferred embodiment, the method further comprises step S206: after the front end acquires the information table id in the information pushed by the edge end, the front end compares the information table id with the information table id stored on the page, corresponds the required data to the position where the information table id is located, and presents the required data on the page of the corresponding information table id.
A specific BS architecture-based industrial control edge big data efficient processing method constructed according to the solution described in the present application is described below with reference to fig. 4, where the flow shown in fig. 4 includes:
s401: the edge end obtains the configuration information table of the back end and stores the configuration information table in the local. In order to keep the configuration information table always up to date in the process, dynamic monitoring is needed every 10 seconds (which can be dynamically adjusted) and the back end is needed, if the configuration information table is updated, the local configuration information table is updated;
s402: the back end designs a structure according to different project attributes and forms a configuration information table, and when the configuration information table is updated, the edge section is informed to update the configuration information table, and the database structure of the configuration information table is shown in fig. 3;
s403: the edge end reads the corresponding address block value in the PLC equipment according to the configuration information in the configuration information table and the address blocks and addresses of the PLC and the code, cuts the address block according to the offset, and returns the value to the rear end according to the information table id after cutting;
s404: the rear end receives the value and the information table id transmitted by the edge end, stores the value and the information table id, and then uploads the value and the information table id to the cloud end;
s405: after the edge end acquires the data, the front end data request is monitored at all times, when the front end new page request is monitored to update, S407 is carried out, if the front end new page request is not monitored, the required data pushed to the current page is kept;
s406: the user initiates a new page data request to the edge end by switching different pages at the front end, wherein the page request comprises request information such as page identification, time stamp, contract protocol and the like;
s407: when the edge end obtains a new page request, request information such as page identification (consistent with a flow identification), a time stamp, an agreement protocol and the like is obtained;
s408: the edge end searches and filters out the corresponding address block in the stored configuration information table according to the request information, and then filters out the corresponding address block value from the acquired data;
s409: the edge end gives a cutting address value to each address after cutting according to the obtained address block value, the code address, the code data type and the offset in the configuration information table;
s410: after the edge end cuts the value, the corresponding information table id, the cutting address value, the flow identifier and the like are transmitted back to the front end according to the configuration information;
s411: after the front end acquires the information, comparing the information table ids stored on the pages, corresponding the cutting address values with the positions of the information table ids, and displaying the cutting address values on the pages of the corresponding information table ids.
Fig. 5 shows a frame diagram of an industrial control edge big data efficient processing system based on BS architecture according to an embodiment of the present invention. The system includes a configuration information table construction module 501, a configuration information table update module 502, a data processing and storage module 503, a push data filtering module 504, and an address resolution and data push module 505.
In a specific embodiment, the configuration information table construction module 501 is configured to design and add a structured field identifier to the data to be processed according to the item attribute of the data to be processed, and construct a corresponding configuration information table by using the field identifier;
the configuration information table updating module 502 is configured to obtain, by an edge, a configuration information table of the back end, store the configuration information table locally, and update the configuration information table of the edge in real time in a subsequent process;
the data processing and storing module 503 is configured to read address block values corresponding to PLCs in the configuration information table in the PLC device according to the PLC and code addresses in the local configuration information table, then cut the address block values according to the required offset to obtain cut address values, and return the cut address values and the information table id to the back end according to the information table id in the local configuration information table and store the cut address values and the information table id;
the push data filtering module 504 is configured to search, when the edge obtains a data request initiated by the front end, an address block corresponding to data required by the data request in a configuration information table of the edge according to a flow identifier in the data request, and obtain a corresponding address block value according to the corresponding address block;
the address parsing and data pushing module 505 is configured to cut the address block value according to the code address, the code data type and the offset in the configuration information table of the edge end according to the address block and the address block value obtained in the push data filtering module, so as to obtain a cut address value, and finally push the relevant field identifier including the information table id, the address value and the flow identifier corresponding to the cut address value in the configuration information table of the edge end to the front end.
In a preferred embodiment, the front-end display module 506 is configured to compare the information table id in the information pushed by the edge with the information table id stored on the page after the front-end obtains the information table id, and to correspond the required data to the position where the information table id is located, and to present the required data on the page of the corresponding information table id.
The modules construct the configuration information table, and the configuration information tables of the front end, the rear end and the edge end are kept consistent, so that the consistency of data from the PLC to the front end to the rear end is realized; meanwhile, different field identifiers in the configuration table are adopted as communication instructions according to different flows, so that communication among the front end, the rear end and the edge end is realized, the data processing efficiency is improved, the data request quantity is reduced, and the request and response speeds are improved.
Referring now to FIG. 6, a schematic diagram of a computer system 600 suitable for use in implementing an electronic device of an embodiment of the present application is shown. The electronic device shown in fig. 6 is only an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Liquid Crystal Display (LCD) or the like, a speaker or the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601. It should be noted that the computer readable storage medium described in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments described in the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, wherein the names of the units do not in some cases constitute a limitation of the unit itself.
Embodiments of the present invention also relate to a computer readable storage medium having stored thereon a computer program which, when executed by a computer processor, implements the method as described above. The computer program contains program code for performing the method shown in the flow chart. It should be noted that the computer readable medium of the present application may be a computer readable signal medium or a computer readable medium or any combination of the two.
According to the item attribute of the data to be processed, a structured field identifier is designed and added for the data to be processed at the rear end so as to construct a corresponding configuration information table; the edge end acquires the configuration information table of the rear end and stores the configuration information table in a local place, and updates the configuration information table of the edge end in real time in a subsequent process; the edge end reads an address block value corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cuts the address block value according to the required offset to obtain a cut address value, returns the cut address value and the information table id to the rear end according to the information table id in the local configuration information table and stores the cut address value and the information table id; after the edge terminal obtains a data request initiated by the front terminal, the edge terminal searches and filters an address block corresponding to data required by the data request in a configuration information table of the edge terminal according to a flow mark in the data request, and then obtains a corresponding address block value according to the corresponding address block; and the edge end cuts the address block value according to the obtained address block and the address block value and the code address, the code data type and the offset in the configuration information table of the edge end to obtain the address block value, and finally pushes the relevant field identifications including the information table id, the cut address value and the flow identification corresponding to the configuration information table of the edge end to the front end. The scheme realizes the consistency of data from the PLC to the front end to the back end by constructing the configuration information table and keeping the configuration information tables of the front end, the back end and the edge end consistent; meanwhile, different field identifiers in the configuration table are adopted as communication instructions according to different flows, so that communication among the front end, the rear end and the edge end is realized, the data processing efficiency is improved, the data request quantity is reduced, and the request and response speeds are improved.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (12)

1. The industrial control edge big data efficient processing method based on the BS architecture is characterized by comprising the following steps of:
s1: the back end designs and adds a structured field identifier for the data to be processed according to the item attribute of the data to be processed, and constructs a corresponding configuration information table by utilizing the field identifier;
s2: the edge end acquires the configuration information table of the rear end and stores the configuration information table in a local place, and updates the configuration information table of the edge end in real time in a subsequent process;
s3: the edge end reads an address block value corresponding to the PLC in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cuts the address block value according to the required offset to obtain a cut address value, returns the cut address value and the information table id to the rear end according to the information table id in the local configuration information table and stores the cut address value and the information table id;
s4: after the edge terminal obtains a data request initiated by the front terminal, the edge terminal searches and filters an address block corresponding to data required by the data request in a configuration information table of the edge terminal according to a flow mark in the data request, and then obtains a corresponding address block value according to the corresponding address block;
s5: and (3) cutting the address block value by the edge end according to the address block and the address block value obtained in the step (S4) and the code address, the code data type and the offset in the configuration information table of the edge end to obtain a cutting address value, and finally pushing relevant field identifications including an information table id, the address value and a flow identification corresponding to the cutting address value in the configuration information table of the edge end to the front end.
2. The method according to claim 1, characterized in that it further comprises a step S6: after the front end acquires the information table id in the information pushed by the edge end, the front end compares the information table id with the information table id stored on the page, corresponds the required data to the position where the information table id is located, and presents the required data on the page of the corresponding information table id.
3. The method according to claim 1, wherein the field identification specifically comprises: information table id, flow identification, code address, code data type, offset, buffer value, IP identification of PLC and address block identification.
4. The method according to claim 1, wherein the updating the configuration information table of the edge in real time in step S2 specifically includes: and the edge end dynamically monitors the back end at intervals, and if the update notification of the configuration information table sent by the back end is monitored, the configuration information table of the edge end is updated.
5. The method according to claim 1, wherein the information table id is used as a primary key of a configuration information table where the information table id is located, for association retrieval between each of the configuration information tables of the front end, the edge end and the back end.
6. A method according to claim 3, wherein said step S3 comprises: and the edge end reads the buffer value in the local configuration information table to take out the value of the PLC and simultaneously obtains the address block and the address of the code in the code address.
7. The method according to claim 1, wherein the specific step of searching, by the edge in the configuration information table of the edge according to the flow identifier in the data request, the address block corresponding to the data required for filtering the data request in step S4 includes: the edge end filters out the same flow identification from the flow identification in the configuration information table of the edge end according to the fields including the flow identification, the time stamp and the constraint protocol in the data request, and then finds out the corresponding address block through the same flow identification.
8. The method according to any one of claims 1-7, wherein after the edge obtains the front-end initiated data request in step S4, the edge further includes: and monitoring the front end, if the new data request sent by the front end is monitored, executing the step S5, and if the new data request sent by the front end is not monitored, keeping pushing the data required by the previous data request to the front end.
9. A method according to claim 3, wherein the flow identifier characterizes a specific flow type for which the point location corresponding to the flow identifier is used, and is used to enable the front end to process only the data to be processed currently.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a computer processor, implements the method of any one of claims 1 to 9.
11. An industrial control edge big data efficient processing system based on a BS architecture is characterized by comprising:
the configuration information table construction module: the method comprises the steps that the method is configured for a back end to design and add a structured field identifier for data to be processed according to item attributes of the data to be processed, and a corresponding configuration information table is constructed by utilizing the field identifier;
configuration information table updating module: the configuration information table for the edge terminal to acquire the back terminal is stored locally, and the configuration information table of the edge terminal is updated in real time in the subsequent process;
and the data processing and storage module is used for: the edge end is configured to read address block values corresponding to the PLCs in the configuration information table in the PLC equipment according to the PLC and code addresses in the local configuration information table, cut the address block values according to the required offset to obtain cut address values, and return the cut address values and the information table id to the rear end according to the information table id in the local configuration information table and store the cut address values and the information table id;
push data filtering module: the configuration method comprises the steps that after an edge terminal obtains a data request initiated by a front terminal, the edge terminal searches a configuration information table of the edge terminal according to a flow mark in the data request to filter out an address block corresponding to data required by the data request, and then obtains a corresponding address block value according to the corresponding address block;
address resolution and data push module: and the configuration is used for the edge to cut the address block value according to the address block and the address block value obtained in the push data filtering module and the code address, the code data type and the offset in the configuration information table of the edge to obtain a cut address value, and finally, relevant field identifiers including an information table id, the address value and a flow identifier corresponding to the cut address value in the configuration information table of the edge are pushed to the front end.
12. The system of claim 11, further comprising a front end display module: after the information table id in the information pushed by the edge end is acquired by the front end, the information table id is compared with the information table id stored on the page, the required data is corresponding to the position where the information table id is located, and the required data is presented on the page of the corresponding information table id.
CN202011457818.8A 2020-12-10 2020-12-10 Industrial control edge big data efficient processing method and system based on BS architecture Active CN112600918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011457818.8A CN112600918B (en) 2020-12-10 2020-12-10 Industrial control edge big data efficient processing method and system based on BS architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011457818.8A CN112600918B (en) 2020-12-10 2020-12-10 Industrial control edge big data efficient processing method and system based on BS architecture

Publications (2)

Publication Number Publication Date
CN112600918A CN112600918A (en) 2021-04-02
CN112600918B true CN112600918B (en) 2024-02-02

Family

ID=75193015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011457818.8A Active CN112600918B (en) 2020-12-10 2020-12-10 Industrial control edge big data efficient processing method and system based on BS architecture

Country Status (1)

Country Link
CN (1) CN112600918B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404692A (en) * 2015-12-18 2016-03-16 深圳中兴网信科技有限公司 Web page generation method and generation device
CN106570163A (en) * 2016-11-07 2017-04-19 深圳市任子行科技开发有限公司 Unreliable environment-oriented audit log read-write managing method and system
CN111414424A (en) * 2020-03-23 2020-07-14 北京思特奇信息技术股份有限公司 Method, system, medium and device for automatically synchronizing redis of configuration data
CN111949521A (en) * 2020-07-31 2020-11-17 中国工商银行股份有限公司 Software performance testing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9655072B2 (en) * 2013-11-08 2017-05-16 Qualcomm, Incorporated Systems, apparatus and methods for synchronizing a global time reference for access points over the air

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404692A (en) * 2015-12-18 2016-03-16 深圳中兴网信科技有限公司 Web page generation method and generation device
CN106570163A (en) * 2016-11-07 2017-04-19 深圳市任子行科技开发有限公司 Unreliable environment-oriented audit log read-write managing method and system
CN111414424A (en) * 2020-03-23 2020-07-14 北京思特奇信息技术股份有限公司 Method, system, medium and device for automatically synchronizing redis of configuration data
CN111949521A (en) * 2020-07-31 2020-11-17 中国工商银行股份有限公司 Software performance testing method and device

Also Published As

Publication number Publication date
CN112600918A (en) 2021-04-02

Similar Documents

Publication Publication Date Title
CN110019350B (en) Data query method and device based on configuration information
CN109800207B (en) Log analysis method, device and equipment and computer readable storage medium
CN111190888A (en) Method and device for managing graph database cluster
CN111198859B (en) Data processing method, device, electronic equipment and computer readable storage medium
US20140244580A1 (en) Predictive storage service
CN111460129B (en) Method, device, electronic equipment and storage medium for generating identification
CN110162412B (en) Method and device for performing data operation on client
CN112988583A (en) Method and device for testing syntax compatibility of database
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN111381913A (en) Front-end multi-language loading adaptation method and device, computer equipment and storage medium
CN113918659A (en) Data operation method and device, storage medium and electronic equipment
CN112685115A (en) International cue language generating method, system, computer equipment and storage medium
CN112600918B (en) Industrial control edge big data efficient processing method and system based on BS architecture
CN110674082A (en) Method and device for removing online document, electronic equipment and computer readable medium
CN113722007B (en) Configuration method, device and system of VPN branch equipment
CN113656506B (en) Electronic specification acquisition method and device and readable medium
CN111367500A (en) Data processing method and device
US11277300B2 (en) Method and apparatus for outputting information
CN112711572B (en) Online capacity expansion method and device suitable for database and table division
CN110851192B (en) Method and device for responding to degraded switch configuration
CN113468342A (en) Data model construction method, device, equipment and medium based on knowledge graph
CN107656985B (en) Webpage query method and system
CN113742321A (en) Data updating method and device
CN112905164A (en) Project code processing method and device
CN113127416A (en) Data query method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant