CN111740904B - Intelligent industrial gateway communication method and system - Google Patents

Intelligent industrial gateway communication method and system Download PDF

Info

Publication number
CN111740904B
CN111740904B CN202010593722.8A CN202010593722A CN111740904B CN 111740904 B CN111740904 B CN 111740904B CN 202010593722 A CN202010593722 A CN 202010593722A CN 111740904 B CN111740904 B CN 111740904B
Authority
CN
China
Prior art keywords
information
parameter
state
thread
target
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
CN202010593722.8A
Other languages
Chinese (zh)
Other versions
CN111740904A (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.)
Changzhou Longyu Tianzheng New Energy Industry Co.,Ltd.
Changzhou Tianzheng Industrial Development Co ltd
Original Assignee
Changzhou Tengen Industrial Development Co ltd
Changzhou Tianzheng Information 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 Changzhou Tengen Industrial Development Co ltd, Changzhou Tianzheng Information Technology Co ltd filed Critical Changzhou Tengen Industrial Development Co ltd
Priority to CN202010593722.8A priority Critical patent/CN111740904B/en
Publication of CN111740904A publication Critical patent/CN111740904A/en
Application granted granted Critical
Publication of CN111740904B publication Critical patent/CN111740904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The invention relates to the technical field of communication processing, in particular to an intelligent industrial gateway communication method and system. In the method, the intelligent industrial gateway can generate a state monitoring script corresponding to the target industrial equipment according to the list information of the target industrial equipment when the first preset thread is started, and sends the state monitoring script to the target industrial equipment, and the target industrial equipment runs the second preset thread based on the state monitoring script to return the running state information of the target industrial equipment to the intelligent industrial gateway. The intelligent industrial gateway can adjust the first thread parameter of the first preset thread when judging that the first thread parameter of the first preset thread does not accord with the set condition according to the running state information, so that the first information forwarding strategy is adjusted to be the second information forwarding strategy, and then the target service information is forwarded according to the second information forwarding strategy. Therefore, the intelligent industrial gateway can adaptively adjust the information forwarding strategy according to the running state of the industrial equipment so as to improve the working efficiency of the intelligent industrial gateway.

Description

Intelligent industrial gateway communication method and system
Technical Field
The invention relates to the technical field of communication processing, in particular to an intelligent industrial gateway communication method and system.
Background
With the development of science and technology, the intelligent industrial internet can provide a great deal of convenience and improvement for large-scale manufacturing industry. For example, 24-hour uninterrupted operation of an industrial production line can be achieved by intelligent control techniques. In order to realize healthy and stable operation of the interconnected industrial network, a plurality of gateway devices are required to be deployed in an industrial network cluster to realize the forwarding of information and instructions. However, in practical applications, it is often difficult for the gateway device to adaptively adjust the information forwarding policy according to the operating state of the industrial device, which may reduce the processing efficiency of the gateway device.
Disclosure of Invention
In order to solve the technical problems in the related art, the present disclosure provides an intelligent industrial gateway communication method and system.
An intelligent industrial gateway communication method, which is applied to an intelligent industrial gateway and a plurality of industrial devices which communicate with each other, the method comprising:
the intelligent industrial gateway starts a first preset thread for forwarding target service information of target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generates a state monitoring script corresponding to the target industrial equipment according to list information of the target industrial equipment when the first preset thread is started, and issues the state monitoring script to the target industrial equipment;
the target industrial equipment runs the state monitoring script to obtain a state monitoring resource packet, the state monitoring resource packet is led into a second preset thread, and running state information of the target industrial equipment is transmitted back to the intelligent industrial gateway by running the second preset thread;
the intelligent industrial gateway judges whether the first thread parameter of the first preset thread meets a set condition according to the running state information;
when the first thread parameter meets the set condition, the intelligent industrial gateway forwards the target service information according to a first information forwarding strategy corresponding to the first thread parameter;
when the first thread parameter does not accord with the set condition, the intelligent industrial gateway generates a second thread parameter according to the running state information, and adjusts the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
Optionally, generating a state monitoring script corresponding to the target industrial device according to the inventory information of the target industrial device includes:
listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to a region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small;
extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; mapping each coding logic matrix in the target matrix set to an equipment information pool of the target industrial equipment to form a parameter distribution list of the target industrial equipment;
comparing a target field contained in a request field of the information forwarding request with each information field in a parameter distribution list of the target industrial equipment; in the comparison process, if all information fields of one coding logic matrix are contained in the request field of the information forwarding request, recording the coding logic matrix as a script matrix of the information forwarding request;
and generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
Optionally, the determining, by the intelligent industrial gateway, whether the first thread parameter of the first preset thread meets a set condition according to the running state information includes:
calculating a parameter index coefficient of the first thread parameter according to the running state information;
judging whether the parameter index coefficient reaches a set coefficient;
if yes, judging that the first thread parameter meets the set condition;
if not, the first thread parameter is judged not to meet the set condition.
Optionally, calculating a parameter index coefficient of the first thread parameter according to the running state information includes:
acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored by the target industrial equipment in the running state information in a set format, and the state dimension corresponding to each data set is unchanged;
acquiring an initial parameter sequence of the first thread parameter, and calculating a difference vector between the state array and the initial parameter sequence according to the first data sequence;
if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold value, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; determining first associated information of the second state dimension information and the log data, and integrating dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information;
if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating dimension data in the second associated information and the parameter log file to obtain a state factor of the running state information;
and weighting the state factors according to the number of the state arrays in the running state information to obtain the parameter index coefficient of the first thread parameter.
Optionally, generating a second thread parameter according to the operating state information, and adjusting the first information forwarding policy according to a correspondence between the second thread parameter and the first thread parameter to obtain a second information forwarding policy, where the method includes:
arranging the state description values in the running state information according to the sequence of the weights from small to large to obtain a sequencing sequence of the state description values, and converting the sequencing sequence according to the thread index of the first preset thread to obtain the second thread parameter;
determining a similarity value of the second thread parameter to the first thread parameter at each parameter unit;
and sequentially adjusting the logic node information in the first information forwarding strategy according to the similarity value to obtain the second information forwarding strategy corresponding to the first information forwarding strategy.
An intelligent industrial gateway communication system comprises an intelligent industrial gateway and a plurality of industrial devices which are communicated with each other;
the intelligent industrial gateway is used for:
starting a first preset thread for forwarding target service information of target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generating a state monitoring script corresponding to the target industrial equipment according to list information of the target industrial equipment when the first preset thread is started, and issuing the state monitoring script to the target industrial equipment;
the target industrial device is to:
running the state monitoring script to obtain a state monitoring resource packet, importing the state monitoring resource packet into a second preset thread, and returning running state information of the target industrial equipment to the intelligent industrial gateway by running the second preset thread;
the intelligent industrial gateway is used for:
judging whether the first thread parameter of the first preset thread meets a set condition or not according to the running state information;
the intelligent industrial gateway is used for:
when the first thread parameter meets the set condition, forwarding the target service information according to a first information forwarding strategy corresponding to the first thread parameter; and
when the first thread parameter does not accord with the set condition, generating a second thread parameter according to the running state information, and adjusting the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
Optionally, the intelligent industrial gateway is configured to:
listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to a region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small;
extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; mapping each coding logic matrix in the target matrix set to an equipment information pool of the target industrial equipment to form a parameter distribution list of the target industrial equipment;
comparing a target field contained in a request field of the information forwarding request with each information field in a parameter distribution list of the target industrial equipment; in the comparison process, if all information fields of one coding logic matrix are contained in the request field of the information forwarding request, recording the coding logic matrix as a script matrix of the information forwarding request;
and generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
Optionally, the intelligent industrial gateway is configured to:
calculating a parameter index coefficient of the first thread parameter according to the running state information;
judging whether the parameter index coefficient reaches a set coefficient;
if yes, judging that the first thread parameter meets the set condition;
if not, the first thread parameter is judged not to meet the set condition.
Optionally, the intelligent industrial gateway is configured to:
acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored by the target industrial equipment in the running state information in a set format, and the state dimension corresponding to each data set is unchanged;
acquiring an initial parameter sequence of the first thread parameter, and calculating a difference vector between the state array and the initial parameter sequence according to the first data sequence;
if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold value, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; determining first associated information of the second state dimension information and the log data, and integrating dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information;
if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating dimension data in the second associated information and the parameter log file to obtain a state factor of the running state information;
and weighting the state factors according to the number of the state arrays in the running state information to obtain the parameter index coefficient of the first thread parameter.
Optionally, the intelligent industrial gateway is configured to:
arranging the state description values in the running state information according to the sequence of the weights from small to large to obtain a sequencing sequence of the state description values, and converting the sequencing sequence according to the thread index of the first preset thread to obtain the second thread parameter;
determining a similarity value of the second thread parameter to the first thread parameter at each parameter unit;
and sequentially adjusting the logic node information in the first information forwarding strategy according to the similarity value to obtain the second information forwarding strategy corresponding to the first information forwarding strategy.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects.
The intelligent industrial gateway can generate a state monitoring script corresponding to the target industrial equipment according to the list information of the target industrial equipment when the first preset thread is started and sends the state monitoring script to the target industrial equipment, so that the target industrial equipment operation state monitoring script can obtain a state monitoring resource packet and guide the state monitoring resource packet into a second preset thread, and the operation state information of the target industrial equipment is returned to the intelligent industrial gateway by operating the second preset thread. The intelligent industrial gateway can adjust the first thread parameter of the first preset thread when judging that the first thread parameter of the first preset thread does not accord with the set condition according to the running state information, so that the first information forwarding strategy is adjusted to be the second information forwarding strategy, and then the target service information is forwarded according to the second information forwarding strategy. Therefore, the intelligent industrial gateway can adaptively adjust the information forwarding strategy according to the running state of the industrial equipment so as to improve the working efficiency of the intelligent industrial gateway.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 shows a communication architecture diagram of an intelligent industrial gateway communication system disclosed by an embodiment of the invention.
Fig. 2 shows a flowchart of the intelligent industrial gateway communication method disclosed by the embodiment of the invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In order to solve the above problems, the present invention provides an intelligent industrial gateway communication method and system, which can enable an intelligent industrial gateway to adaptively adjust an information forwarding policy according to an operation state of an industrial device, and improve the working efficiency of the intelligent industrial gateway.
To achieve the above objective, please first refer to fig. 1, which is a schematic diagram of a communication architecture of an intelligent industrial gateway communication system 10 provided by the present invention, wherein the intelligent industrial gateway communication system 10 includes an intelligent industrial gateway 20 and a plurality of industrial devices 30. The intelligent industrial gateway 20 communicates with each industrial device 30, and is configured to forward information uploaded by each industrial device 30, and when forwarding the information, the intelligent industrial gateway 20 monitors an operation state of each industrial device 30 in real time, so as to adjust an information forwarding policy according to the operation state of each industrial device 30.
On the basis of the above, please refer to fig. 2, which provides a flowchart of an intelligent industrial gateway communication method, where the intelligent industrial gateway communication method can be applied to the intelligent industrial gateway system 10 shown in fig. 1, and specifically can include the contents described in the following steps S210 to S250.
Step S210, the intelligent industrial gateway starts a first preset thread for forwarding the target service information of the target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generates a state monitoring script corresponding to the target industrial equipment according to the list information of the target industrial equipment when the first preset thread is started, and sends the state monitoring script to the target industrial equipment.
Step S220, the target industrial equipment runs the state monitoring script to obtain a state monitoring resource packet, the state monitoring resource packet is led into a second preset thread, and running state information of the target industrial equipment is returned to the intelligent industrial gateway by running the second preset thread.
Step S230, the intelligent industrial gateway determines whether the first thread parameter of the first preset thread meets a set condition according to the running state information.
Step S240, when the first thread parameter meets the set condition, the intelligent industrial gateway forwards the target service information according to a first information forwarding policy corresponding to the first thread parameter.
Step S250, when the first thread parameter does not accord with the set condition, the intelligent industrial gateway generates a second thread parameter according to the running state information, and adjusts the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
The first information forwarding strategy and the second information forwarding strategy are different.
It can be understood that, through the steps S210 to S250, the intelligent industrial gateway can generate the state monitoring script corresponding to the target industrial device according to the list information of the target industrial device when the first preset thread is started, and issue the state monitoring script to the target industrial device, so that the target industrial device operation state monitoring script obtains the state monitoring resource packet and introduces the state monitoring resource packet into the second preset thread, and returns the operation state information of the target industrial device to the intelligent industrial gateway by operating the second preset thread. The intelligent industrial gateway can adjust the first thread parameter of the first preset thread when judging that the first thread parameter of the first preset thread does not accord with the set condition according to the running state information, so that the first information forwarding strategy is adjusted to be the second information forwarding strategy, and then the target service information is forwarded according to the second information forwarding strategy. Therefore, the intelligent industrial gateway can adaptively adjust the information forwarding strategy according to the running state of the industrial equipment so as to improve the working efficiency of the intelligent industrial gateway.
In a possible implementation manner, in order to ensure compatibility of the status monitoring script with the target industrial device, in step S210, the status monitoring script corresponding to the target industrial device is generated according to the inventory information of the target industrial device, and specifically may include the contents described in steps S211 to S214 below.
Step S211, listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to one region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small.
Step S212, extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; and mapping each coding logic matrix in the target matrix set to a device information pool of the target industrial device to form a parameter distribution list of the target industrial device.
Step S213, comparing a target field included in the request field of the information forwarding request with each information field in the parameter distribution list of the target industrial device; in the comparison process, if all the information fields of one coding logic matrix are contained in the request field of the information forwarding request, the coding logic matrix is recorded as the script matrix of the information forwarding request.
Step S214, generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
It is understood that through the descriptions in step S211 to step S214, the script matrix corresponding to the information forwarding request can be determined, so as to generate the state monitoring script according to the script matrix. Therefore, the compatibility of the state monitoring script and the target industrial equipment can be ensured, and the condition monitoring script is prevented from being refused to be executed by the target industrial equipment.
In an alternative embodiment, the determining, by the intelligent industrial gateway described in step S230, whether the first thread parameter of the first preset thread meets the set condition according to the running state information may specifically include the following contents described in step S231 and step S232.
Step S231, calculating a parameter index coefficient of the first thread parameter according to the running state information.
Step S232, judging whether the parameter index coefficient reaches a set coefficient; if yes, judging that the first thread parameter meets the set condition; if not, the first thread parameter is judged not to meet the set condition.
On the basis of the above, in order to take the state information of multiple dimensions of the target industrial device into account so as to ensure the confidence of the parameter index coefficient, in the step S231, the parameter index coefficient of the first thread parameter is calculated according to the operation state information, which may specifically include the contents described in the following steps S2311 to S2315.
Step S2311, acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored in the running state information by the target industrial equipment in a set format, and the state dimension corresponding to each data set is unchanged.
Step S2312, an initial parameter sequence of the first thread parameter is obtained, and a difference vector between the state array and the initial parameter sequence is calculated according to the first data sequence.
Step S2313, if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; and determining first associated information of the second state dimension information and the log data, and integrating the dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information.
Step S2314, if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating the dimension data in the second associated information with the parameter log file to obtain the state factor of the operating state information.
Step S2315, weighting the state factors according to the number of state arrays in the operating state information to obtain the parameter index coefficients of the first thread parameter.
When the contents described in the above-described steps S2311 to S2315 are applied, the state information of the target industrial device in the plurality of dimensions can be taken into consideration, thereby ensuring the confidence of the parameter index coefficient.
In another alternative embodiment, the generating of the second thread parameter according to the operation state information in the above step S250, and adjusting the first information forwarding policy according to the corresponding relationship between the second thread parameter and the first thread parameter to obtain the second information forwarding policy may specifically include the contents described in the following steps S251 to S254.
Step S251, arranging the state description values in the running state information in the order from small to large according to the weights thereof to obtain an ordering sequence of the state description values, and converting the ordering sequence according to the thread index of the first preset thread to obtain the second thread parameter.
In step S252, a similarity value between the second thread parameter and the first thread parameter in each parameter unit is determined.
Step S253, sequentially adjusting the logic node information in the first information forwarding policy according to the similarity value, to obtain the second information forwarding policy corresponding to the first information forwarding policy.
It can be understood that through the contents described in the above steps S251 to S253, the adjustment of the first information forwarding policy can be implemented without splitting the logical node in the first information forwarding policy, which can reduce the time consumption of the adjustment of the information forwarding policy.
On the basis of the above, a functional description of the intelligent industrial gateway communication system is also provided, which is specifically as follows.
An intelligent industrial gateway communication system comprises an intelligent industrial gateway and a plurality of industrial devices which are communicated with each other;
the intelligent industrial gateway is used for:
starting a first preset thread for forwarding target service information of target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generating a state monitoring script corresponding to the target industrial equipment according to list information of the target industrial equipment when the first preset thread is started, and issuing the state monitoring script to the target industrial equipment;
the target industrial device is to:
running the state monitoring script to obtain a state monitoring resource packet, importing the state monitoring resource packet into a second preset thread, and returning running state information of the target industrial equipment to the intelligent industrial gateway by running the second preset thread;
the intelligent industrial gateway is used for:
judging whether the first thread parameter of the first preset thread meets a set condition or not according to the running state information;
the intelligent industrial gateway is used for:
when the first thread parameter meets the set condition, forwarding the target service information according to a first information forwarding strategy corresponding to the first thread parameter; and
when the first thread parameter does not accord with the set condition, generating a second thread parameter according to the running state information, and adjusting the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
Optionally, the intelligent industrial gateway is configured to:
listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to a region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small;
extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; mapping each coding logic matrix in the target matrix set to an equipment information pool of the target industrial equipment to form a parameter distribution list of the target industrial equipment;
comparing a target field contained in a request field of the information forwarding request with each information field in a parameter distribution list of the target industrial equipment; in the comparison process, if all information fields of one coding logic matrix are contained in the request field of the information forwarding request, recording the coding logic matrix as a script matrix of the information forwarding request;
and generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
Optionally, the intelligent industrial gateway is configured to:
calculating a parameter index coefficient of the first thread parameter according to the running state information;
judging whether the parameter index coefficient reaches a set coefficient;
if yes, judging that the first thread parameter meets the set condition;
if not, the first thread parameter is judged not to meet the set condition.
Optionally, the intelligent industrial gateway is configured to:
acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored by the target industrial equipment in the running state information in a set format, and the state dimension corresponding to each data set is unchanged;
acquiring an initial parameter sequence of the first thread parameter, and calculating a difference vector between the state array and the initial parameter sequence according to the first data sequence;
if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold value, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; determining first associated information of the second state dimension information and the log data, and integrating dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information;
if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating dimension data in the second associated information and the parameter log file to obtain a state factor of the running state information;
and weighting the state factors according to the number of the state arrays in the running state information to obtain the parameter index coefficient of the first thread parameter.
Optionally, the intelligent industrial gateway is configured to:
arranging the state description values in the running state information according to the sequence of the weights from small to large to obtain a sequencing sequence of the state description values, and converting the sequencing sequence according to the thread index of the first preset thread to obtain the second thread parameter;
determining a similarity value of the second thread parameter to the first thread parameter at each parameter unit;
and sequentially adjusting the logic node information in the first information forwarding strategy according to the similarity value to obtain the second information forwarding strategy corresponding to the first information forwarding strategy.
On the basis, the intelligent industrial gateway comprises a processor, a network interface and a memory, wherein the processor is connected with the memory through the network interface, the processor calls a computer program from the memory through the network interface, and relevant steps executed by the intelligent industrial gateway in the intelligent industrial gateway communication method are realized by executing the computer program.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. An intelligent industrial gateway communication method, which is applied to an intelligent industrial gateway and a plurality of industrial devices which communicate with each other, the method comprising:
the intelligent industrial gateway starts a first preset thread for forwarding target service information of target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generates a state monitoring script corresponding to the target industrial equipment according to list information of the target industrial equipment when the first preset thread is started, and issues the state monitoring script to the target industrial equipment;
the target industrial equipment runs the state monitoring script to obtain a state monitoring resource packet, the state monitoring resource packet is led into a second preset thread, and running state information of the target industrial equipment is transmitted back to the intelligent industrial gateway by running the second preset thread;
the intelligent industrial gateway judges whether the first thread parameter of the first preset thread meets a set condition according to the running state information;
when the first thread parameter meets the set condition, the intelligent industrial gateway forwards the target service information according to a first information forwarding strategy corresponding to the first thread parameter;
when the first thread parameter does not accord with the set condition, the intelligent industrial gateway generates a second thread parameter according to the running state information, and adjusts the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
2. The intelligent industrial gateway communication method according to claim 1, wherein generating a status monitoring script corresponding to the target industrial device according to the inventory information of the target industrial device comprises:
listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to a region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small;
extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; mapping each coding logic matrix in the target matrix set to an equipment information pool of the target industrial equipment to form a parameter distribution list of the target industrial equipment;
comparing a target field contained in a request field of the information forwarding request with each information field in a parameter distribution list of the target industrial equipment; in the comparison process, if all information fields of one coding logic matrix are contained in the request field of the information forwarding request, recording the coding logic matrix as a script matrix of the information forwarding request;
and generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
3. The intelligent industrial gateway communication method according to claim 1, wherein the intelligent industrial gateway determines whether the first thread parameter of the first preset thread meets a set condition according to the running state information, and the determining includes:
calculating a parameter index coefficient of the first thread parameter according to the running state information;
judging whether the parameter index coefficient reaches a set coefficient;
if yes, judging that the first thread parameter meets the set condition;
if not, the first thread parameter is judged not to meet the set condition.
4. The intelligent industrial gateway communication method according to claim 3, wherein calculating the parameter index coefficient of the first thread parameter according to the operation state information comprises:
acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored by the target industrial equipment in the running state information in a set format, and the state dimension corresponding to each data set is unchanged;
acquiring an initial parameter sequence of the first thread parameter, and calculating a difference vector between the state array and the initial parameter sequence according to the first data sequence;
if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold value, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; determining first associated information of the second state dimension information and the log data, and integrating dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information;
if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating dimension data in the second associated information and the parameter log file to obtain a state factor of the running state information;
and weighting the state factors according to the number of the state arrays in the running state information to obtain the parameter index coefficient of the first thread parameter.
5. The intelligent industrial gateway communication method according to claim 1, wherein generating a second thread parameter according to the operation state information, and adjusting the first information forwarding policy according to a correspondence between the second thread parameter and the first thread parameter to obtain a second information forwarding policy, comprises:
arranging the state description values in the running state information according to the sequence of the weights from small to large to obtain a sequencing sequence of the state description values, and converting the sequencing sequence according to the thread index of the first preset thread to obtain the second thread parameter;
determining a similarity value of the second thread parameter to the first thread parameter at each parameter unit;
and sequentially adjusting the logic node information in the first information forwarding strategy according to the similarity value to obtain the second information forwarding strategy corresponding to the first information forwarding strategy.
6. An intelligent industrial gateway communication system is characterized by comprising an intelligent industrial gateway and a plurality of industrial devices which are communicated with each other;
the intelligent industrial gateway is used for:
starting a first preset thread for forwarding target service information of target industrial equipment corresponding to the information forwarding request according to the received information forwarding request, generating a state monitoring script corresponding to the target industrial equipment according to list information of the target industrial equipment when the first preset thread is started, and issuing the state monitoring script to the target industrial equipment;
the target industrial device is to:
running the state monitoring script to obtain a state monitoring resource packet, importing the state monitoring resource packet into a second preset thread, and returning running state information of the target industrial equipment to the intelligent industrial gateway by running the second preset thread;
the intelligent industrial gateway is used for:
judging whether the first thread parameter of the first preset thread meets a set condition or not according to the running state information;
the intelligent industrial gateway is used for:
when the first thread parameter meets the set condition, forwarding the target service information according to a first information forwarding strategy corresponding to the first thread parameter; and
when the first thread parameter does not accord with the set condition, generating a second thread parameter according to the running state information, and adjusting the first information forwarding strategy according to the corresponding relation between the second thread parameter and the first thread parameter to obtain a second information forwarding strategy; and forwarding the target service information according to the second information forwarding strategy.
7. The intelligent industrial gateway communication system of claim 6, wherein the intelligent industrial gateway is configured to:
listing a plurality of groups of information fields of the list information, and establishing an equipment information pool of the target industrial equipment based on the information fields; the device information pool of the target industrial device is a partitioned information pool, each region corresponds to a region identifier, each region identifier is provided with at least one group of information fields, and each region of the device information pool of the target industrial device has the information density from large to small;
extracting a request field of the information forwarding request, establishing a field conversion relation between the request field and the equipment information pool of the target industrial equipment, and generating a parameter distribution list of the target industrial equipment according to the field conversion relation; generating a parameter distribution list of the target industrial equipment according to the field conversion relation, wherein the parameter distribution list comprises: converting the request field into a plurality of preset encoding characters; respectively generating at least one coding logic matrix of each preset coding character; acquiring the coding logic matrix of the request field which is not repeated with each other to form a target matrix set; mapping each coding logic matrix in the target matrix set to an equipment information pool of the target industrial equipment to form a parameter distribution list of the target industrial equipment;
comparing a target field contained in a request field of the information forwarding request with each information field in a parameter distribution list of the target industrial equipment; in the comparison process, if all information fields of one coding logic matrix are contained in the request field of the information forwarding request, recording the coding logic matrix as a script matrix of the information forwarding request;
and generating the state monitoring script corresponding to the target industrial equipment according to each script matrix corresponding to the information forwarding request.
8. The intelligent industrial gateway communication system of claim 6, wherein the intelligent industrial gateway is configured to:
calculating a parameter index coefficient of the first thread parameter according to the running state information;
judging whether the parameter index coefficient reaches a set coefficient;
if yes, judging that the first thread parameter meets the set condition;
if not, the first thread parameter is judged not to meet the set condition.
9. The intelligent industrial gateway communication system of claim 8, wherein the intelligent industrial gateway is configured to:
acquiring a state array in the running state information, and calculating a first data sequence corresponding to the state array; the state array is a data set stored by the target industrial equipment in the running state information in a set format, and the state dimension corresponding to each data set is unchanged;
acquiring an initial parameter sequence of the first thread parameter, and calculating a difference vector between the state array and the initial parameter sequence according to the first data sequence;
if the difference vector between the state array and the initial parameter sequence is smaller than a preset threshold value, matching the parameter log file of the first thread parameter with the first data sequence to obtain a second data sequence; converting the parameter log file into log data, and performing multi-dimensional state matching by taking the log data as reference data and the running state information as reference information to obtain first state dimension information; screening the first state dimension information according to the second data sequence to obtain second state dimension information; determining first associated information of the second state dimension information and the log data, and integrating dimension data in the first associated information and the parameter log file to obtain a state factor of the running state information;
if the difference vector between the state array and the initial parameter sequence is greater than or equal to the preset threshold, determining second associated information of the first state dimension information and the log data, and integrating dimension data in the second associated information and the parameter log file to obtain a state factor of the running state information;
and weighting the state factors according to the number of the state arrays in the running state information to obtain the parameter index coefficient of the first thread parameter.
10. The intelligent industrial gateway communication system of claim 6, wherein the intelligent industrial gateway is configured to:
arranging the state description values in the running state information according to the sequence of the weights from small to large to obtain a sequencing sequence of the state description values, and converting the sequencing sequence according to the thread index of the first preset thread to obtain the second thread parameter;
determining a similarity value of the second thread parameter to the first thread parameter at each parameter unit;
and sequentially adjusting the logic node information in the first information forwarding strategy according to the similarity value to obtain the second information forwarding strategy corresponding to the first information forwarding strategy.
CN202010593722.8A 2020-06-27 2020-06-27 Intelligent industrial gateway communication method and system Active CN111740904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010593722.8A CN111740904B (en) 2020-06-27 2020-06-27 Intelligent industrial gateway communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010593722.8A CN111740904B (en) 2020-06-27 2020-06-27 Intelligent industrial gateway communication method and system

Publications (2)

Publication Number Publication Date
CN111740904A CN111740904A (en) 2020-10-02
CN111740904B true CN111740904B (en) 2021-06-04

Family

ID=72651172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010593722.8A Active CN111740904B (en) 2020-06-27 2020-06-27 Intelligent industrial gateway communication method and system

Country Status (1)

Country Link
CN (1) CN111740904B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187814B (en) * 2020-10-07 2022-09-09 上海基煜基金销售有限公司 Intelligent double-recording method, system and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180393A (en) * 2017-06-22 2017-09-19 国网山东省电力公司诸城市供电公司 A kind of centralized platform server monitored for transformer substation system
CN109947810A (en) * 2017-11-16 2019-06-28 上海明匠智能系统有限公司 Industrial equipment data real-time collecting system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004145474A (en) * 2002-10-22 2004-05-20 Yokohama Rubber Co Ltd:The Tire-monitoring system, monitor receiver thereof, monitor device therefor and sensor device thereof
CN101515161A (en) * 2008-02-18 2009-08-26 国际商业机器公司 Centralized energy management method and system
CN102521390B (en) * 2011-12-21 2015-07-08 北京人大金仓信息技术股份有限公司 Database management and monitoring system based on pin function
CN102891804B (en) * 2012-10-16 2018-08-10 南京中兴新软件有限责任公司 The method of adjustment and system of control strategy
US9104742B1 (en) * 2013-03-13 2015-08-11 Emc Corporation Method and system for optimized parallel queuing
CN103441906B (en) * 2013-09-25 2016-08-24 哈尔滨工业大学 Based on from the proxy caching cluster abnormality detection system of host computer
US9417932B2 (en) * 2013-10-28 2016-08-16 International Business Machines Corporation Launching and managing unattended application programs
CN104410553B (en) * 2014-12-18 2018-07-10 北京奇虎科技有限公司 Method of adjustment, system, the terminal and server of communication mode based on network status monitoring
CN105721304A (en) * 2016-04-05 2016-06-29 网宿科技股份有限公司 Adaptive routing adjustment method and system and service device
US10313292B2 (en) * 2016-07-21 2019-06-04 Facebook, Inc. Methods and systems for connecting messaging accounts
CN106447955A (en) * 2016-09-18 2017-02-22 深圳怡化电脑股份有限公司 Method and system for monitoring state of self-service terminal
CN110677300B (en) * 2019-10-09 2022-05-31 国家电网有限公司 Electric power safety management video intelligent shunting device and method based on mobile edge calculation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107180393A (en) * 2017-06-22 2017-09-19 国网山东省电力公司诸城市供电公司 A kind of centralized platform server monitored for transformer substation system
CN109947810A (en) * 2017-11-16 2019-06-28 上海明匠智能系统有限公司 Industrial equipment data real-time collecting system

Also Published As

Publication number Publication date
CN111740904A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN1276618C (en) Method and system for managing devices in a network
US8176037B2 (en) System and method for SQL query load balancing
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN111740904B (en) Intelligent industrial gateway communication method and system
CN101582016A (en) Method and device for printing data
CN113037535A (en) Communication network optimization method and system applied to block chain and edge calculation
CN110489440A (en) Data query method and apparatus
CN112631758A (en) Edge computing resource scheduling method, device and equipment and readable storage medium
US11875117B2 (en) Ontology management method and M2M platform
CN111741082A (en) Network processing method based on 5G and edge computing and cloud communication network server
CN113890899B (en) Protocol conversion method based on knowledge graph
CN112417021A (en) Data format optimization method based on business processing system and business server
CN111949720B (en) Data analysis method based on big data and artificial intelligence and cloud data server
CN116360954B (en) Industrial Internet of things management and control method and system based on cloud edge cooperative technology
CN114003384B (en) Task management method, device and equipment
WO2021254392A1 (en) Communication method and device, and system
CN116149855A (en) Method and system for optimizing performance resource cost under micro-service architecture
WO2022061931A1 (en) Data format processing method and apparatus
CN115629860A (en) Software parameter tuning method, container management platform, storage medium and system
CN113282063B (en) Arrangement method and device for sewing production line
CN113220400A (en) Cloud desktop system quality control method based on software definition
CN112015922B (en) Method, device, equipment and storage medium for retrieving multimedia file
CN113824710B (en) Communication protocol conversion method and device and computer readable storage medium
CN114285719B (en) Policy method and system for intensively identifying different types of network equipment in multi-IDC environment
CN114629959B (en) Cloud environment context-aware internet traffic (IoT) service scheduling policy method

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210428

Address after: 213003 12th floor, industrial Internet Daxia, 2nd floor, Tianning science and technology promotion center, 256 Zhulin North Road, Tianning District, Changzhou City, Jiangsu Province

Applicant after: Changzhou Tianzheng Information Technology Co.,Ltd.

Applicant after: CHANGZHOU TIANZHENG INDUSTRIAL DEVELOPMENT CO.,LTD.

Address before: 5 / F, 2-2, Chengmen street, Huangpu District, Guangzhou City, Guangdong Province

Applicant before: Guangzhou Yunzhi Communication Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No.256, Zhulin North Road, Tianning District, Changzhou City, Jiangsu Province 213000

Patentee after: Changzhou Longyu Tianzheng New Energy Industry Co.,Ltd.

Patentee after: CHANGZHOU TIANZHENG INDUSTRIAL DEVELOPMENT CO.,LTD.

Address before: 213003 12th floor, industrial Internet Daxia, 2nd floor, Tianning science and technology promotion center, 256 Zhulin North Road, Tianning District, Changzhou City, Jiangsu Province

Patentee before: Changzhou Tianzheng Information Technology Co.,Ltd.

Patentee before: CHANGZHOU TIANZHENG INDUSTRIAL DEVELOPMENT CO.,LTD.