CN110417760A - The mutual operation method and middleware of marginal layer in industry internet - Google Patents

The mutual operation method and middleware of marginal layer in industry internet Download PDF

Info

Publication number
CN110417760A
CN110417760A CN201910639945.0A CN201910639945A CN110417760A CN 110417760 A CN110417760 A CN 110417760A CN 201910639945 A CN201910639945 A CN 201910639945A CN 110417760 A CN110417760 A CN 110417760A
Authority
CN
China
Prior art keywords
tie point
data
rule
structuring
protocol
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.)
Granted
Application number
CN201910639945.0A
Other languages
Chinese (zh)
Other versions
CN110417760B (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.)
Industrial Internet Innovation Center (shanghai) Co Ltd
Hanyun Technology Co Ltd
Original Assignee
Industrial Internet Innovation Center (shanghai) Co Ltd
Hanyun 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 Industrial Internet Innovation Center (shanghai) Co Ltd, Hanyun Technology Co Ltd filed Critical Industrial Internet Innovation Center (shanghai) Co Ltd
Priority to CN201910639945.0A priority Critical patent/CN110417760B/en
Publication of CN110417760A publication Critical patent/CN110417760A/en
Application granted granted Critical
Publication of CN110417760B publication Critical patent/CN110417760B/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/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present invention provides the mutual operation method and middleware of marginal layer in a kind of industry internet, it include: that the protocol massages issued by transmitting terminal are received by tie point, tie point is preconfigured to the protocol massages for receiving and writing with preset communications protocol, and tie point is also pre-configured at least one forward rule;The implementation rule for obtaining communications protocol corresponding with tie point, parses protocol massages using implementation rule, obtains the data of structuring;It is determining according to the data of structuring and execute the executable forward rule of tie point, the data of structuring are passed through into the semantic conversion module constructed in advance and are converted to target data;Target data is sent to the port of target side by purpose tie point, wherein the port of semantic conversion module, purpose tie point and target side is recorded in executable forward rule.The embodiment of the present invention can realize the classification processing and orderly forwarding of protocol massages with the effect of configurationization, increase the flexibility of interoperability.

Description

The mutual operation method and middleware of marginal layer in industry internet
Technical field
The present invention relates to industry internet technical fields, more particularly, to the interoperability of marginal layer in industry internet Method and middleware.
Background technique
Interoperability between enterprise not only becomes a kind of generally acknowledged quality and advantage that current enterprise obtains the market competitiveness Condition, and the final and decisive juncture increasingly concerning many enterprises especially medium-sized and small enterprises.In the entire product life cycle, enterprise Industry needs stronger interoperability, is delayed with reducing cost and reducing.Enhancing interoperability can make enterprise in tissue network New product is proposed for market.
However industrial automation system it is integrated in, the System Programming tool of business equipment, data communication protocol are usually by group It is provided at PLC the or DCS supplier of the system, generally there are the data communication standards and agreement of oneself in different vendor.Work at present Industry field of data communication is dominated by all kinds of field bus systems based on Ethernet, although they have similar requirement and subdivision city , but their implementation and ecosystem difference are but very big.
Therefore, if to realize the interoperability of the marginal layers equipment such as equipment, control system, terminal client and device manufacturer It is faced with and needs the numerous products of customized development, and need to cope with multiple solutions, greatly improve operation, diagnosis, maintenance With redundancy technique difficulty, high cost is generated, and limits IoT ability.
Summary of the invention
The embodiment of the present invention provides a kind of industry interconnection for overcoming the above problem or at least being partially solved the above problem The mutual operation method and middleware of marginal layer in net.
First aspect, the embodiment of the present invention provide a kind of mutual operation method of marginal layer in industry internet, comprising:
The protocol massages issued by transmitting terminal are received by tie point, the tie point is preconfigured to reception with preset The protocol massages that communications protocol is write, the tie point are also pre-configured at least one forward rule;
The implementation rule for obtaining communications protocol corresponding with the tie point, using the implementation rule to the agreement report Text is parsed, and the data of structuring are obtained;
It is determining according to the data of the structuring and execute the executable forward rule of the tie point, by the knot The data of structure pass through the semantic conversion module constructed in advance and are converted to target data;
The target data is sent to the port of target side by purpose tie point, wherein the semantic conversion module, The port of purpose tie point and target side is recorded in the executable forward rule.
The second aspect, the embodiment of the present invention provide a kind of middleware, comprising:
Message receiving module, for receiving the protocol massages issued by transmitting terminal by tie point, the tie point is preparatory It is configured to receive the protocol massages write with preset communications protocol, the tie point is also pre-configured at least one forwarding rule Then;
Structuring processing module, for obtaining the implementation rule of communications protocol corresponding with the tie point, using described Implementation rule parses the protocol massages, obtains the data of structuring;
Data conversion module, executable forwarding that is determining according to the data of the structuring and executing the tie point are advised Then, the data of the structuring are passed through into the semantic conversion module constructed in advance and is converted to target data;
Sending module, for the target data to be sent to the port of target side by purpose tie point, wherein described The port of semantic conversion module, purpose tie point and target side is recorded in the executable forward rule.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, is realized when the processor executes described program as first aspect provides Method the step of.
Fourth aspect, the embodiment of the present invention provide a kind of non-transient computer readable storage medium, are stored thereon with calculating Machine program is realized as provided by first aspect when the computer program is executed by processor the step of method.
The mutual operation method and middleware of marginal layer in industry internet provided in an embodiment of the present invention, by receiving agreement The form of message triggers interoperability, embodies processing runtime engine and uses event-driven technology, by event and data separating, event is driven Dynamic technology can significant increase system performance, can control the response of middleware data in Millisecond, while by tie point Configuration specified communications protocol and forward rule, and the port of configuration purpose tie point and target side is matched in forward rule It sets in forward rule, the classification processing and orderly forwarding of protocol massages can be realized with the effect of configurationization, increases mutually behaviour The flexibility of work.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is enterprise hierarchies illustraton of model in the prior art;
Fig. 2 is the flow diagram of the mutual operation method of marginal layer in the industry internet of the embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the middleware in industry internet provided in an embodiment of the present invention;
Fig. 4 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The executing subject of the mutual operation method of the embodiment of the present invention is middleware, for realizing the edge in industry internet The mutual operation method of layer.Enterprise hierarchies model is defined in IEC-62264 standard, and Fig. 1 is enterprise hierarchies in the prior art Illustraton of model, as described in Figure 1, entire enterprise feature level are divided into 5 layers, wherein the 4th layer and the 3rd layer generally includes plant produced tune Interface between degree and operational administrative and workshop coordination.Layer 2,1,0 indicates production unit or production line monitoring, operates, is excessively program-controlled The functions such as system.0th layer of expression process is often referred to manufacture or production process.1st layer is used to monitor and operate the artificial biography of the process Sense, sensor and executing agency.The 2nd layer of control activity indicated manually or automatically makes process keep stablizing or in control Under.Between layers, it does not require to interoperate between homologous ray inside layer.The mutual operation method master of this embodiment of the present invention Realize the interoperability in layers 1 and 2.
The inventive concept of the embodiment of the present invention are as follows: trigger interoperability by way of receiving protocol massages, embody processing fortune Row engine uses event-driven technology, by event and data separating, event-driven technology can significant increase system performance, make Between number of packages can control according to response in Millisecond, while by the communications protocol and forward rule specified to tie point configuration, And the configuration of the port of configuration purpose tie point and target side, can be with the effect of configurationization in forward rule in forward rule Fruit shows the classification processing and orderly forwarding of protocol massages, increases the flexibility of interoperability.
Fig. 2 is the flow diagram of the mutual operation method of marginal layer in the industry internet of the embodiment of the present invention, such as Fig. 2 institute To show, this method includes S101, S102, S103 and S104, specifically,
S101, the protocol massages that are issued by transmitting terminal are received by tie point, the tie point be preconfigured to receive with The protocol massages that preset communications protocol is write, the tie point are also pre-configured at least one forward rule.
It should be noted that the embodiment of the present invention creates several tie points in middleware in advance, each connection Point, which is preconfigured to, receives the protocol massages that preset communications protocol is write, for example, creating tie point 1 and connection in middleware Point 2, tie point 1 is configured to receive the protocol massages of opc-ua agreement, and tie point 2 is configured to receive the agreement of modbus agreement Message.Theoretically, multiple communication informations can be configured to a tie point, to reduce the quantity of tie point, i.e., so that one Tie point both can receive the message of agreement A, also can receive the message of agreement B, but there are preconditions for this scheme: 1, even Contact is needed as server-side;2, agreement is based on same agreement in the transport layer of iso7 layer network model, for example all gives TCP (Transmission Control Protocol/Internet Protocol) agreement or UDP (User Datagram Protocol) agreement, and this mode can bring new problem, need to do protocol identification to the message that tie point receives, it is comprehensive It closes and considers that realization cost is than the embodiment of the present invention it is found that this scheme not only limits more greatly, and also brings new problem Multiconnection point mode it is much larger.
In one embodiment, by pre-configured different tie points can received standard agreement, when transmitting terminal is sent out When sending the protocol massages of modbus agreement, it can be specified in protocol massages and the protocol massages are received by the tie point 2 of middleware, from And only tie point 2 is made to receive the protocol massages issued by transmitting terminal.In embodiments of the present invention, tie point can also be preparatory At least one forward rule is configured, forward rule is rule relevant to forwarding, for example whom is transmitted in next step, and whether turn The contents such as the information for needing to carry when the Rule of judgment of hair, forwarding.
In another alternative embodiment, the tie point of middleware actively establishes communication connection with transmitting terminal, then actively New data actively can be sent to subscriber (i.e. middleware) by data needed for subscribing to, transmitting terminal.In the case, the present invention is real Applying example needs agreement to support to subscribe to communication mode.
S102, the implementation rule for obtaining communications protocol corresponding with the tie point, using the implementation rule to described Protocol massages are parsed, and the data of structuring are obtained.
In embodiments of the present invention, by creating the database of the implementation rule for managing each communication protocol (also referred to as Protocol library), various implementation rules are configured and managed in protocol library, are issued to specific centre after configuration is complete Part.Meanwhile the local data base that middleware itself has, by middleware from implementation rule is locally extracted when needing.It is intermediate later Part parses protocol massages using implementation rule, obtains the data of structuring.
The data format in protocol massages that the embodiment of the present invention sends transmitting terminal does not require, but passes through middleware Initial data in protocol massages is converted to the data of structuring, for example, the protocol massages that transmitting terminal is sent are as follows:
Nodeid=2s;speed
Displayname=speed
Value=2
Nodeid=2s;address
Displayname=address
Value=1
For above-mentioned protocol massages tool there are two identification information, one of identification information is 2s;Speed, another mark letter Breath is 2s;Address, 2s are NameSpace, 2s;Speed one field of unique identification inside message: speed, in the field Value (value) be 2;2s;Address one field address of unique identification inside message, the value in the field It (value) is 2 that is, it is 2, address 1 that the information that above-mentioned protocol massages are wanted to transmit, which is speed,.
And the corresponding communications protocol of tie point is opc-ua agreement, corresponding implementation rule are as follows:
Nodeid=2s;Speed- > speed data type
Nodeid=2s;Address- > address address style
Thus it can determine whether out that speed=2 is data type, address=1 is address style, final structural data Are as follows: speed=2;Address=1.Obviously, complicated protocol massages are handled as succinct structural data, can is subsequent The message for being converted to receiving end identification lays the foundation.
It should be noted that the embodiment of the present invention obtain structural data it can be appreciated that ontology attribute.It can be with Understand, ontology is the model for describing an affairs, such as mechanical arm is made of attributes such as gripper, mechanical axis, above-mentioned In structural data, speed and address are the attributes of an ontology.
It is S103, determining according to the data of the structuring and execute the executable forward rule of the tie point, it will The data of the structuring pass through the semantic conversion module constructed in advance and are converted to target data.
It should be noted that each tie point has been pre-configured with several forward rule in the embodiment of the present invention, but in face It is not that each forward rule can be all performed when to the data of specific structuring.For example, structural data is Speed=2, address=1, if some forward rule are as follows: when speed and address are 1, then execute, it is evident that, When facing above structure data, which is not executed.It is also recorded in each forward rule corresponding Semantic conversion module, semantic conversion module are used to that the data of structuring to be converted to target according to preconfigured conversion logic Data, for example, semantic conversion module 1 is configured that when speed is greater than 0.1m/ if certain structural data is speed=0.12m/s When s, transformation result is exported are as follows: high, then being directed to above structure data, target data is are as follows: high;Semantic conversion module 2 is matched It is set to: speed unit is converted into cm/s, then being directed to above structure data, target data is 12cm/s.It follows that The embodiment of the present invention can go out miscellaneous semantic conversion module according to actual use scene configuration.
S104, the port that the target data is sent to target side by purpose tie point, wherein the semantic conversion The port of module, purpose tie point and target side is recorded in the executable forward rule.
It should be noted that the mutual operation method of marginal layer is by receiving agreement in the industry internet of the embodiment of the present invention The form of message triggers interoperability, embodies processing runtime engine and uses event-driven technology, by event and data separating, event is driven Dynamic technology can significant increase system performance, can control the response of middleware data in Millisecond, while by tie point Configuration specified communications protocol and forward rule, and the port of configuration purpose tie point and target side is matched in forward rule It sets in forward rule, the classification processing and orderly forwarding of protocol massages can be realized with the effect of configurationization, increases mutually behaviour The flexibility of work.
The embodiment of the present invention is illustrated with regard to a kind of application scenarios below.
AGV (Automated Guided Vehicle, automatic guided vehicle) is loaded near raw material to mechanical arm, is then needed AGV information in place is sent to mechanical arm control system, so that dispatching mechanical arm after mechanical arm control system receives information in place Grab raw material.
Problem to be solved is in this usage scenario: AGV information will issue mechanical arm, but AGV and machine in place Tool arm respectively uses the communications protocol of itself, it is therefore desirable to provide middleware and cooperate with AGV and mechanical arm.
Firstly, the embodiment of the present invention will create at least two tie points (tie point 1 and tie point 2), it is respectively used to receive The protocol massages and receive the protocol massages that the communications protocol that mechanical arm uses is write that the communications protocol that AGV is used is write.It is each A tie point has also been pre-configured at least one forward rule, describes in each forward rule including semantic conversion mould The information such as block, the port of purpose tie point and target side and trigger condition script, wherein semantic conversion module is for AGV to machine The semantic conversion of tool arm;Trigger condition script for judging whether to execute certain preset conditions, such as: when AGV is apart from mechanical arm When less than 50cm, AGV information in place is sent to mechanical arm control system.
When tie point 1 receives the protocol massages of AGV transmission, middleware can obtain communication association corresponding with tie point 1 Then the implementation rule of view parses protocol massages according to the implementation rule, the data of structuring are obtained, by structure The data of change analyzed known to tie point configuration all forward rules in which forward rule be to execute, according to executable Forward rule in the semantic forwarding module that records, structural data is converted into target data, it is clear that target data refers to machine The identifiable data of tool arm control system.Such as the data of structuring are the distance of AGC to mechanical arm when being 30cm, by above-mentioned Need known to trigger condition script to send AGV information in place to mechanical arm control system, continue by semantic conversion module by AGV to Position information is converted to the identifiable information of mechanical arm control system.
If recording tie point 2 in forward rule is used as target tie point, then target data is sent to by tie point 2 The port of target phase, the port of target side are recorded in the executable forward rule.
On the basis of the various embodiments described above, as a kind of alternative embodiment, communication corresponding with the tie point is obtained The implementation rule of agreement, before further include:
Communication protocol library is created, the communication protocol library is used for the implementation rule and unique identification of configuration protocol.
It should be noted that the embodiment of the present invention is by being arranged unique identification, fast and easy inspection to each communication protocol Implementation rule of the rope to each communication protocol.
Connection point information library is created, it is corresponding logical that the tie point library is used to configure the unique identification of tie point, tie point Believe the unique identification of agreement and the address information of tie point.
It is understood that the address information of tie point includes the information such as IP and the port of tie point, by tie point Unique identification is set, and the unique identification and address information of the corresponding communications protocol of storage tie point together, fast and easy retrieval With the relevant information of configuration tie point.
The embodiment of the present invention by creation communication protocol library and connection point information library, realize communication protocol implementation rule, The configuration management of tie point facilitates and realizes that long-range parameter configuration issues.The embodiment of the present invention provides the API set that configuration obtains Part can be realized using restful, and carry out account using account information (user name, password) in Header header file The security control of family grade.
On the basis of the various embodiments described above, as a kind of alternative embodiment, communication corresponding with the tie point is obtained The implementation rule of agreement, specifically:
The unique identification of the corresponding communication protocol of tie point is obtained from the connection point information library;
According to the unique identification of the communication protocol, realization corresponding with the communication protocol will be obtained in communication protocol library Rule is downloaded to local.
For example, tie point can send notification information to point data base is connected, so when tie point receives protocol massages Rear tie points database root searches the corresponding communication of the tie point according to the unique identification of the tie point recorded in notification information itself The unique identification of agreement.Further according to the unique identification of the communication protocol, will be obtained and the communication protocol in communication protocol library Corresponding implementation rule is downloaded to local.
It should be noted that would generally store data in database in the prior art, then cross what database provided Standard interface timing batch extracts historical data, for solving the cooperation of the information mutual communication between business system, but the embodiment of the present invention By the way that implementation rule is downloaded to local, the real-time production of apparatus for production line can be supported.
On the basis of the various embodiments described above, as a kind of alternative embodiment, is received by tie point and issued by transmitting terminal Protocol massages, before further include:
Forward rule library is created, the forward rule library is for configuring the corresponding forward rule of each tie point, the forwarding Trigger condition script is also recorded in rule, the trigger condition script is for judging whether the data of the structuring execute.
It should be noted that the embodiment of the present invention configures at least one forward rule to each tie point, thus make It obtains and is directed to a protocol massages, at least one forwarding (execution) may be implemented, to improve the execution efficiency of industry internet.Touching Clockwork spring part script can be understood as one for judging whether the data of structuring meet the function of preset condition.Of the invention real It applies in example, all forward rules is obtained according to tie point, then judge whether all forward rules are disposed, if not having, It then is input to upper untreated forward rule using the data of structuring as ginseng is entered, if meeting preset condition, is turned by semantic Mold changing block is converted to target data, and is sent to target side;If not meeting preset condition, the transformation rule is not executed, until All transformation rules are disposed.
On the basis of the various embodiments described above, as a kind of alternative embodiment, determined simultaneously according to the data of the structuring The executable forward rule of the tie point is executed, specifically:
It is input in the trigger condition script using the data of the structuring as ginseng is entered;
If output result meets preset condition, using the forward rule as executable forward rule;
If it is ineligible to export result, using the forward rule as the forward rule not executed.
For example, the data of certain structuring are as follows: Speed=1;Destination address=1.
The code segment of trigger condition script in forward rule 1 are as follows:
{
If attribute codes=destination address=1 speed and
return true
else
renturn false
}
The meaning of above-mentioned trigger condition script are as follows: if the speed and destination address in structural data are 1, export As a result it is true, meets preset condition, otherwise exporting result is false, does not meet preset condition.
On the basis of the various embodiments described above, as a kind of alternative embodiment, the data of the structuring are passed through preparatory The semantic conversion module of building is converted to target data, specifically:
The data of the structuring are passed through to the semantic conversion module constructed in advance, in attribute conversion and behavior conversion At least one is converted to target data.
Specifically, attribute conversion includes that attribute value maps, by presetting the mapping relations of source value and target value, then Specific transformational relation is matched by attribute value.Value translation type mainly includes that simple types converts and enumerate class to simple types Type is converted to enumeration type:
1) simple types is converted: such as the conversion of natural language, the simple process of value.
2) enumeration type is converted: the source value and target value of attribute are all enumeration types, and are corresponded, and basis is needed to turn The relationship unique identification of changing inquires the corresponding relationship between the amount of enumerating, and then matches specific target value according to source value.
Such as: code is that the attribute of code2 obtains the transformational relation of a- > hign b- > low, then according to attribute value a It is fitted on hign.
Behavior conversion is to convert data to behavior.Such as certain data are as follows: be;Target data after conversion are as follows: arrive (arrival).
On the basis of the various embodiments described above, as a kind of alternative embodiment, the data of structuring include data code, number According to value and data unit.In embodiments of the present invention, one side data code can be improved the recognition efficiency of data, another party Face, by the way that different data codes is arranged, can be improved the abundant journey of data under data value and the identical situation of data unit Degree.
For example, some structural data are as follows: data code: code1, data value 12.1, data unit cm/s.
Fig. 3 is the structural schematic diagram of the middleware in industry internet provided in an embodiment of the present invention, as shown in figure 3, packet It includes: message receiving module 201, structuring processing module 202, data conversion module 203 and sending module 204, in which:
Message receiving module 201, for receiving the protocol massages issued by transmitting terminal by tie point, the tie point is pre- It is first configured to receive the protocol massages write with preset communications protocol, the tie point is also pre-configured at least one forwarding rule Then;
Structuring processing module 202 utilizes institute for obtaining the implementation rule of communications protocol corresponding with the tie point It states implementation rule to parse the protocol massages, obtains the data of structuring;
Data conversion module 203, executable turn that be determining according to the data of the structuring and executing the tie point The data of the structuring are passed through the semantic conversion module constructed in advance and are converted to target data by hair rule;
Sending module 204, for the target data to be sent to the port of target side by purpose tie point, wherein The port of the semantic conversion module, purpose tie point and target side is recorded in the executable forward rule.
Middleware provided in an embodiment of the present invention specifically executes the mutual operation method of marginal layer in above-mentioned each industry internet Embodiment process please specifically be detailed in the content of the mutual operation method embodiment of marginal layer in above-mentioned each industry internet, herein not It repeats again.Middleware provided in an embodiment of the present invention triggers interoperability by way of receiving protocol massages, embodies processing operation Engine uses event-driven technology, by event and data separating, event-driven technology can significant increase system performance, make centre Number of packages can control according to response in Millisecond, while by the communications protocol and forward rule specified to tie point configuration, and And the configuration of the port of configuration purpose tie point and target side, can be with the effect of configurationization in forward rule in forward rule The classification processing and orderly forwarding for realizing protocol massages, increase the flexibility of interoperability.
Fig. 4 is the entity structure schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 4, the electronic equipment It may include: processor (processor) 310,320, memory communication interface (Communications Interface) (memory) 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 pass through communication bus 340 Complete mutual communication.Processor 310 can call the meter that is stored on memory 330 and can run on processor 310 Calculation machine program, to execute the mutual operation method of marginal layer in the industry internet that the various embodiments described above provide, for example, pass through Tie point receives the protocol massages issued by transmitting terminal, and the tie point is preconfigured to reception and is write with preset communications protocol Protocol massages, the tie point is also pre-configured at least one forward rule;Obtain communication association corresponding with the tie point The implementation rule of view parses the protocol massages using the implementation rule, obtains the data of structuring;According to described The data of structuring are determining and execute the executable forward rule of the tie point, the data of the structuring passed through pre- The semantic conversion module first constructed is converted to target data;The target data is sent to target side by purpose tie point Port, wherein the port of the semantic conversion module, purpose tie point and target side is recorded in the executable forwarding rule In then.
In addition, the logical order in above-mentioned memory 330 can be realized by way of SFU software functional unit and conduct Independent product when selling or using, can store in a computer readable storage medium.Based on this understanding, originally The technical solution of the inventive embodiments substantially part of the part that contributes to existing technology or the technical solution in other words It can be embodied in the form of software products, which is stored in a storage medium, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the present invention respectively The all or part of the steps of a embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, is stored thereon with computer program, The computer program be implemented to carry out when being executed by processor the various embodiments described above offer industry internet in marginal layer it is mutual Operating method, for example, the protocol massages issued by transmitting terminal are received by tie point, the tie point, which is preconfigured to, to be connect The protocol massages write with preset communications protocol are received, the tie point is also pre-configured at least one forward rule;Obtain with The implementation rule of the corresponding communications protocol of the tie point, parses the protocol massages using the implementation rule, obtains Obtain the data of structuring;It is determining according to the data of the structuring and execute the executable forward rule of the tie point, with The data of the structuring are passed through into the semantic conversion module constructed in advance and are converted to target data;The target data is passed through Purpose tie point is sent to the port of target side, wherein the port of the semantic conversion module, purpose tie point and target side is equal It is recorded in the executable forward rule.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. the mutual operation method of marginal layer in a kind of industry internet characterized by comprising
The protocol massages issued by transmitting terminal are received by tie point, the tie point is preconfigured to reception with preset communication The protocol massages that agreement is write, the tie point are also pre-configured at least one forward rule;
The implementation rule for obtaining corresponding with tie point communications protocol, using the implementation rule to the protocol massages into Row parsing, obtains the data of structuring;
It is determining according to the data of the structuring and execute the executable forward rule of the tie point, by the structuring Data pass through the semantic conversion module that constructs in advance and be converted to target data;
The target data is sent to the port of target side by purpose tie point, wherein the semantic conversion module, purpose The port of tie point and target side is recorded in the executable forward rule.
2. mutual operation method according to claim 1, which is characterized in that described to obtain communication corresponding with the tie point The implementation rule of agreement, before further include:
Communication protocol library is created, the communication protocol library is used for the implementation rule and unique identification of configuration protocol;
Connection point information library is created, the tie point library is used to configure unique identification, the corresponding communication protocols of tie point of tie point The unique identification of view and the address information of tie point.
3. mutual operation method according to claim 2, which is characterized in that described to obtain communication corresponding with the tie point The implementation rule of agreement, specifically:
The unique identification of the corresponding communication protocol of tie point is obtained from the connection point information library;
According to the unique identification of the communication protocol, implementation rule corresponding with the communication protocol will be obtained in communication protocol library It is downloaded to local.
4. mutual operation method according to claim 1, which is characterized in that described received by tie point is issued by transmitting terminal Protocol massages, before further include:
Forward rule library is created, the forward rule library is for configuring the corresponding forward rule of each tie point, the forward rule In also record trigger condition script, the trigger condition script is for judging whether the data of the structuring execute.
5. mutual operation method according to claim 4, which is characterized in that described to be determined simultaneously according to the data of the structuring The executable forward rule of the tie point is executed, specifically:
It is input in the trigger condition script using the data of the structuring as ginseng is entered;
If output result meets preset condition, using the forward rule as executable forward rule;
If it is ineligible to export result, using the forward rule as the forward rule not executed.
6. mutual operation method according to claim 1, which is characterized in that the data by the structuring pass through preparatory The semantic conversion module of building is converted to target data, specifically:
The data of the structuring are passed through into the semantic conversion module that constructs in advance, in attribute conversion and behavior conversion at least One kind being converted to target data.
7. mutual operation method according to claim 1, which is characterized in that the data of the structuring include data code, Data value and data unit.
8. the middleware in a kind of industry internet characterized by comprising
Message receiving module, for receiving the protocol massages issued by transmitting terminal by tie point, the tie point is pre-configured with To receive the protocol massages write with preset communications protocol, the tie point is also pre-configured at least one forward rule;
Structuring processing module utilizes the realization for obtaining the implementation rule of communications protocol corresponding with the tie point Rule parses the protocol massages, obtains the data of structuring;
Data conversion module, it is determining according to the data of the structuring and execute the executable forward rule of the tie point, Target data is converted to so that the data of the structuring are passed through the semantic conversion module constructed in advance;
Sending module, for the target data to be sent to the port of target side by purpose tie point, wherein the semanteme The port of conversion module, purpose tie point and target side is recorded in the executable forward rule.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes that industry is mutually as described in any one of claim 1 to 7 when executing described program In networking the step of the mutual operation method of marginal layer.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute industry as claimed in any of claims 1 to 7 in one of claims The mutual operation method of marginal layer in internet.
CN201910639945.0A 2019-07-16 2019-07-16 Interoperation method of edge layer in industrial Internet and middleware Active CN110417760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910639945.0A CN110417760B (en) 2019-07-16 2019-07-16 Interoperation method of edge layer in industrial Internet and middleware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910639945.0A CN110417760B (en) 2019-07-16 2019-07-16 Interoperation method of edge layer in industrial Internet and middleware

Publications (2)

Publication Number Publication Date
CN110417760A true CN110417760A (en) 2019-11-05
CN110417760B CN110417760B (en) 2022-12-13

Family

ID=68361647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910639945.0A Active CN110417760B (en) 2019-07-16 2019-07-16 Interoperation method of edge layer in industrial Internet and middleware

Country Status (1)

Country Link
CN (1) CN110417760B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722945A (en) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 Industrial Internet application system realized based on middleware and realization method
CN113726914A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Equipment interoperation method and device based on industrial internet identification
CN114285877A (en) * 2021-12-22 2022-04-05 海南同享数字科技有限公司 Universal industrial equipment communication system and method
CN115002207A (en) * 2022-05-27 2022-09-02 三一智矿科技有限公司 Information communication method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130007199A1 (en) * 2011-06-30 2013-01-03 Infosys Technologies Limited System and method for facilitating communication between different protocol stacks via virtual communication devices
CN103957173A (en) * 2014-05-16 2014-07-30 北京信诺瑞得软件系统有限公司 Semantic switch
CN104137509A (en) * 2012-02-28 2014-11-05 华为技术有限公司 Method and apparatus for internet protocol based content router
CN104410662A (en) * 2014-10-23 2015-03-11 山东大学 Parallel mass data transmitting middleware of Internet of things and working method thereof
CN105897797A (en) * 2014-12-03 2016-08-24 北京航天长峰科技工业集团有限公司 Massive heterogeneous data access and standardization system
CN107948194A (en) * 2017-12-22 2018-04-20 北京农业信息技术研究中心 A kind of data cut-in method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130007199A1 (en) * 2011-06-30 2013-01-03 Infosys Technologies Limited System and method for facilitating communication between different protocol stacks via virtual communication devices
CN104137509A (en) * 2012-02-28 2014-11-05 华为技术有限公司 Method and apparatus for internet protocol based content router
CN103957173A (en) * 2014-05-16 2014-07-30 北京信诺瑞得软件系统有限公司 Semantic switch
CN104410662A (en) * 2014-10-23 2015-03-11 山东大学 Parallel mass data transmitting middleware of Internet of things and working method thereof
CN105897797A (en) * 2014-12-03 2016-08-24 北京航天长峰科技工业集团有限公司 Massive heterogeneous data access and standardization system
CN107948194A (en) * 2017-12-22 2018-04-20 北京农业信息技术研究中心 A kind of data cut-in method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111722945A (en) * 2020-06-22 2020-09-29 重庆忽米网络科技有限公司 Industrial Internet application system realized based on middleware and realization method
CN111722945B (en) * 2020-06-22 2024-05-28 重庆忽米网络科技有限公司 Industrial Internet application system realized based on middleware and realization method
CN113726914A (en) * 2021-11-04 2021-11-30 中国信息通信研究院 Equipment interoperation method and device based on industrial internet identification
CN113726914B (en) * 2021-11-04 2021-12-31 中国信息通信研究院 Equipment interoperation method and device based on industrial internet identification
CN114285877A (en) * 2021-12-22 2022-04-05 海南同享数字科技有限公司 Universal industrial equipment communication system and method
CN115002207A (en) * 2022-05-27 2022-09-02 三一智矿科技有限公司 Information communication method and system
CN115002207B (en) * 2022-05-27 2024-02-23 三一智矿科技有限公司 Information communication method and system

Also Published As

Publication number Publication date
CN110417760B (en) 2022-12-13

Similar Documents

Publication Publication Date Title
CN110417760A (en) The mutual operation method and middleware of marginal layer in industry internet
CN112187632B (en) Industrial equipment integration model and construction method, edge gateway device and industrial equipment integration system
CN109709811B (en) Intelligent manufacturing-oriented edge calculation controller and working method thereof
US8812684B1 (en) Messaging configuration system
CN112925660B (en) Industrial interconnection information interaction system
US8127035B1 (en) Distributed message engines and systems
US7706895B2 (en) Reliable messaging instruction
Tantik et al. Potentials of the asset administration shell of Industrie 4.0 for service-oriented business models
CN112540948B (en) Route management through event stream processing cluster manager
EP1674995A2 (en) Integration of control and business application using integration servers
US11150896B2 (en) Automated generation of service definitions for message queue application clients
CN110413758A (en) Dialog box framework construction method and device based on machine learning
Kuhn et al. Service-based architectures in production systems: Challenges, solutions & experiences
CN110365536A (en) A kind of the fault cues method and relevant apparatus of internet of things equipment
Wei et al. A review of asset administration shell
CN114116259A (en) Message queue-based real-time message pushing method, system, device and medium
Marschall et al. Design and installation of an agent-controlled cyber-physical production system using the example of a beverage bottling plant
EP3709604A1 (en) Method for creating an asset data model to control an iot-device by a control message
CN110399612A (en) The semantic conversion method and middleware of marginal layer in industry internet
Grunau et al. The Implementation of Proactive Asset Administration Shells: Evaluation of Possibilities and Realization in an Order Driven Production
Traukina et al. Industrial Internet Application Development: Simplify IIoT development using the elasticity of Public Cloud and Native Cloud Services
WO2011088560A1 (en) System and method for designing and executing subject-state engine workflows
Maia et al. Evaluation of OPC-UA communication in an autonomous advanced manufacturing cell implementation
CN109409800A (en) Logistics Tactics verification method, device and electronic equipment
CN104881760B (en) Data communication method, device and system between ERP system

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