CN108900597A - The method and the means of communication being marked using protocol data markup language - Google Patents

The method and the means of communication being marked using protocol data markup language Download PDF

Info

Publication number
CN108900597A
CN108900597A CN201810669835.4A CN201810669835A CN108900597A CN 108900597 A CN108900597 A CN 108900597A CN 201810669835 A CN201810669835 A CN 201810669835A CN 108900597 A CN108900597 A CN 108900597A
Authority
CN
China
Prior art keywords
data
data point
monitoring device
agreement
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
CN201810669835.4A
Other languages
Chinese (zh)
Other versions
CN108900597B (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.)
Chengdu Jingbo Electric Technology Co Ltd
Original Assignee
Chengdu Jingbo Electric 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 Chengdu Jingbo Electric Technology Co Ltd filed Critical Chengdu Jingbo Electric Technology Co Ltd
Priority to CN201810669835.4A priority Critical patent/CN108900597B/en
Publication of CN108900597A publication Critical patent/CN108900597A/en
Application granted granted Critical
Publication of CN108900597B publication Critical patent/CN108900597B/en
Expired - Fee Related 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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/329Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the application layer [OSI layer 7]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The present invention discloses a kind of method being marked using protocol data markup language, applied to the communications protocol between communication software and monitoring device, including:The application feature part of data point is marked;The nature of agreement part of data point is marked.The present invention standardized and orderlyly can be assembled and disassembled data frame by the way that the label of protocol data point is divided into two parts of application feature and nature of agreement.

Description

The method and the means of communication being marked using protocol data markup language
Technical field
The present invention relates to communication fields, and in particular to a kind of method being marked using protocol data markup language and logical Communication method.
Background technique
Currently, in the communication software of a monitoring system, in order to be collected into the monitoring for embodying supervisory control system running situation Operation data in device is typically necessary also for the correctness of communication and carries out communication software and monitoring according to communications protocol The transmitting-receiving of data frame between device, data frame is one and meets byte serial as defined in communications protocol, and communication software is before sending Frame is sent according to communications protocol composition requirement, it is receiving frame that communication software received, which meets byte serial as defined in communications protocol,.
In the prior art, communication software records the data volume that monitoring device is able to record, every number using configuration file There is a label according to amount, for being mapped in protocol frame assembling or decomposable process with agreement regulation label, but it is existing logical The configuration file that uses of news software can not embody the relationship of data and communications protocol, i.e., can not embody how by communications protocol into The transmitting of row data, therefore, existing communication agreement markup language readability is not strong, is counted by existing communication agreement markup language When according to transmitting, recipient or sender cannot decompose or assemble to data frame standardized and orderlyly, can only use every kind of device Carry out the acquisition that the decomposition method that " anchor-frame " sends and fix carries out device data.
Summary of the invention
In view of this, the application provides a kind of method and the means of communication being marked using protocol data markup language, It, can standardized and orderly ground ground logarithm by the way that the label of protocol data point is divided into two parts of application feature and nature of agreement It is assembled and disassembled according to frame, the inquiry frame of device needs can be flexibly obtained by the data content of the language tag, and pressed Sighting target note content carries out data frame content and decomposes to obtain data value.In order to solve the above technical problems, technical side provided by the invention Case is as follows:
The method being marked using protocol data markup language, applied to the communication between communication software and monitoring device Agreement, including:
The application feature part of data point is marked;
The nature of agreement part of data point is marked.
Further, the application feature part of the data point is described for expressing meaning of the data in application field The nature of agreement part of data point is used to express the relationship of data and communications protocol.
Further, the format of the news protocol data markup language is XML format.
Further, data point nature of agreement part includes that data point identification and agreement explain that the agreement is explained Including data point byte group echo and data format.
A method of it is communicated with above-mentioned labeling method, including:
Communication software inquires frame according to the application feature part of data point label and the label assembling of nature of agreement part, and will Inquiry frame is sent to monitoring device;
Communication software receives the acknowledgement frame of monitoring device and decomposites data value from acknowledgement frame;
Communication software updates original data value.
Further, the communication software is according to the application feature part of data point label and nature of agreement part mark group Dress inquiry frame, and inquiry frame is sent to monitoring device and is specifically included:
Obtain querying command;
The data type for obtaining monitoring device is marked according to the application feature part of data point;
It is marked according to the nature of agreement part of data point and obtains protocol definition item;
According to data type and protocol definition the item assembling of the communications protocol of monitoring device and the monitoring device having been achieved with Inquire frame;
Inquiry frame is sent to monitoring device.
Further, the communications protocol of the monitoring device includes Modbus agreement and/or IEC103 agreement.
Further, the communication software receives the acknowledgement frame of monitoring device and that data value is decomposited from acknowledgement frame is specific Including:
Receive the acknowledgement frame of monitoring device;
The data point byte group in acknowledgement frame is decomposited according to the communications protocol of monitoring device and searches data point byte group In data point definition;
The data value obtained in data point byte group is defined according to data point;
Update original data value.
Further, described to be assisted according to the communication of monitoring device when the communications protocol of monitoring device is Modbus agreement View decomposites the byte serial in acknowledgement frame and searches the definition of the data point in byte serial and specifically includes:
Corresponding byte serial in register is decomposited according to data point byte group echo;
According to the data point definition in data point identifier lookup byte serial.
Further, described to be assisted according to the communication of monitoring device when the communications protocol of monitoring device is IEC103 agreement View decomposites the byte serial in acknowledgement frame and searches the definition of the data point in byte serial and specifically includes:
Byte serial is decomposited by group number and serial number;
Data point in byte serial is looked for define by group number and serial number.
The application provides a kind of protocol data markup language, by the way that the label of protocol data point is divided into application Two parts of property and nature of agreement can carry out tissue and decomposition to data frame to standardized and orderly ground, and specifically, the present invention will Protocol data point is separately marked using application feature and nature of agreement, and readability can be enhanced, and embodies data and communication The relationship of agreement can make full use of the descriptive good spy of XML file in addition, the format of markup language is set as XML format Point makes markup language be suitable for the protocol data of most of communications protocol, since the tool and API of XML file are also relatively abundanter, The workload of protocol processes configuration file can be effectively reduced.
Detailed description of the invention
Fig. 1 is the means of communication flow chart that embodiment 2 provides.
Specific embodiment
It is with reference to the accompanying drawing and specific real in order to make those skilled in the art more fully understand technical solution of the present invention Applying example, the present invention is described in further detail.
Embodiment 1
The present embodiment provides a kind of methods being marked using protocol data markup language, are applied to communication software and prison The communications protocol between device is controlled, including:
The application feature part of data point is marked;
The nature of agreement part of data point is marked.
What needs to be explained here is that when using the present embodiment, in order to identify the number in the monitoring device for using communications protocol Strong point, communications protocol need that data point is numbered, for example, using register number logarithm when communications protocol is Modbus Strong point is numbered, and when communications protocol is IEC103, carrys out one data point of unique identification using group number+point number, and this number Strong point can be the shapes such as the position the bit in byte arrays, the array of two bytes, array, the array of multiple bytes of four bytes Formula, they can respectively indicate state, analog quantity, accumulated value, data structure etc., therefore, the communications protocol number in the present embodiment It is divided into two parts, data point application feature part and data point nature of agreement part according to expression.
Specifically, the application feature part of the data point is for expressing meaning of the data in application field, the number The nature of agreement part at strong point is used to express the relationship of data and communications protocol.
What needs to be explained here is that the application feature part of the data point is mainly used to indicate that the data of data point contain Justice, such as affiliated application field, the nature of agreement part of data name, data value etc., the data point is mainly used to indicate How data transmitting carried out in monitoring device and communication software oneself by communications protocol, it is practical be exactly data number and assemble/ The form of decomposition.
In order to further illustrate, here with the data instance in an electric power monitoring system, for one of label for The data point of YC1, Modbus agreement can combine to transmit YC1 data point using 40025 and 40,026 two registers, and two Register keeps data value this is to say to obtain 40025 Hes from data frame according to float pattern (IEEE754 specification) After the content of 40026 registers, according to a high position preceding, the posterior order of low level forms one according to IEEE754 cannonical format Floating number, the mark of data are YC1, and the title of YC1 is " phase voltage Ua ", and classification is " telemetering " etc., are assisted if it is IEC103 View just replaces register number with group number (point number), data point and communications protocol thus can be completely expressed in configuration file Relationship.
Preferably, the format of the news protocol data markup language is XML format.
Specifically, data point nature of agreement part includes that data point identification and agreement explain that the agreement explains packet Include data point byte group echo and data format.
What needs to be explained here is that byte group echo is related to specific agreement, data format has BIT, shaping, floating type Equal reference formats.
Embodiment 2
As shown in Figure 1, the present embodiment provides a kind of method that the labeling method provided by embodiment 1 is communicated, packet It includes:
Step S1:Communication software is according to the application feature part of data point label and the label assembling inquiry of nature of agreement part Frame, and inquiry frame is sent to monitoring device;
Step S2:Communication software receives the acknowledgement frame of monitoring device and decomposites data value from acknowledgement frame;
Step S3:Communication software updates original data value.
What needs to be explained here is that carrying out data transmitting by communications protocol, actually how data dot values to be put The corresponding position in data frame (inquiry frame is a kind of data frame), such recipient could accurately decomposite data dot values Come, in the present embodiment, this needs to inquire frame and tells monitoring device will inquire how many data, wherefrom starts, we only need The data inquired will be needed to list one by one, wherefrom start to be calculated with how many data by program, when implementing the present embodiment, The protocol data markup language based on XML format can be used, the protocol data markup language of XML format has non- Often good is descriptive, and is widely used, and tool and API are also very abundant, it is possible to reduce the work of communication software processing configuration file It measures.
Specifically, the communication software is according to the application feature part of data point label and the label assembling of nature of agreement part Frame is inquired, and inquiry frame is sent to monitoring device, i.e. step S1, is specifically included:
Step S11:Obtain querying command;
Step S12:The data type for obtaining monitoring device is marked according to the application feature part of data point;
Step S13:It is marked according to the nature of agreement part of data point and obtains protocol definition item;
Step S14:It is fixed according to the data type and agreement of the communications protocol of monitoring device and the monitoring device having been achieved with Senses of a dictionary entry assembling inquiry frame;
Step S15:Inquiry frame is sent to monitoring device.
What needs to be explained here is that in the present embodiment, since the application feature and nature of agreement of data definition are separated, In the framing process of inquiry frame, first processing needs the protocol data point content inquired, and to inquire what after energy when knowing Inquiry content frame is formed, is sent for PORT COM.
In the present embodiment, the communications protocol of monitoring device can be Modbus agreement and/or IEC103 agreement, can also be CDT agreement.
Specifically, the communication software receives the acknowledgement frame of monitoring device and decomposites data value from acknowledgement frame, that is, walks Rapid S2, specifically includes:
Step S21:Receive the acknowledgement frame of monitoring device;
Step S22:The data point byte group in acknowledgement frame is decomposited according to the communications protocol of monitoring device and searches data Data point definition in point byte group;
Step S23:The data value obtained in data point byte group is defined according to data point;
Step S24:Update original data value.
What needs to be explained here is that being taken after communication software receives acknowledgement frame according to position of the byte group in communication frames The corresponding byte arrays of data point are obtained, then (the corresponding agreement of a nature of agreement is fixed according to protocol definition item byte arrays The senses of a dictionary entry) regulation be transformed into the data value of standard and be achieved that the functions of query monitor device data.
As a preference, when the communications protocol of monitoring device is Modbus agreement, it is described according to the logical of monitoring device News agreement decomposites the byte serial in acknowledgement frame and searches the definition of the data point in byte serial, i.e. step S22 is specifically included:
Step S221:Corresponding byte serial in register is decomposited according to data point byte group echo;
Step S222:According to the data point definition in data point identifier lookup byte serial.
It is described according to monitoring device as another preferred embodiment, when the communications protocol of monitoring device is IEC103 agreement Communications protocol decomposites the byte serial in acknowledgement frame and searches the definition of the data point in byte serial, i.e. step S22 is specifically included:
Step S221:Byte serial is decomposited by group number and serial number;
Step S222:Data point in byte serial is looked for define by group number and serial number.
The above is only the preferred embodiment of the present invention, it is noted that above-mentioned preferred embodiment is not construed as pair Limitation of the invention, protection scope of the present invention should be defined by the scope defined by the claims..For the art For those of ordinary skill, without departing from the spirit and scope of the present invention, several improvements and modifications can also be made, these change It also should be regarded as protection scope of the present invention into retouching.

Claims (10)

1. the method being marked using protocol data markup language, applied to the communication association between communication software and monitoring device View, which is characterized in that including:
The application feature part of data point is marked;
The nature of agreement part of data point is marked.
2. the method according to claim 1 being marked using protocol data markup language, which is characterized in that the number For expressing meaning of the data in application field, the nature of agreement part of the data point is used for for the application feature part at strong point Express the relationship of data and communications protocol.
3. the method according to claim 1 being marked using protocol data markup language, which is characterized in that the news The format of protocol data markup language is XML format.
4. according to right want 1 described in the method that is marked using protocol data markup language, which is characterized in that the data Point nature of agreement part includes that data point identification and agreement are explained, the agreement explains to include data point byte group echo and data Format.
5. a kind of method that the labeling method described in claim 1-4 any one is communicated, which is characterized in that including:
Communication software inquires frame according to the application feature part of data point label and the label assembling of nature of agreement part, and will inquiry Frame is sent to monitoring device;
Communication software receives the acknowledgement frame of monitoring device and decomposites data value from acknowledgement frame;
Communication software updates original data value.
6. a kind of means of communication according to claim 5, which is characterized in that the communication software is according to the application of data point Property section label and nature of agreement part label assembling inquiry frame, and inquiry frame is sent to monitoring device and is specifically included:
Obtain querying command;
The data type for obtaining monitoring device is marked according to the application feature part of data point;
It is marked according to the nature of agreement part of data point and obtains protocol definition item;
According to data type and protocol definition item the assembling inquiry of the communications protocol of monitoring device and the monitoring device having been achieved with Frame;
Inquiry frame is sent to monitoring device.
7. a kind of means of communication according to claim 6, which is characterized in that the communications protocol of the monitoring device includes Modbus agreement and/or IEC103 agreement.
8. a kind of means of communication according to claim 5, which is characterized in that the communication software receives answering for monitoring device It answers frame and decomposites data value from acknowledgement frame and specifically include:
Receive the acknowledgement frame of monitoring device;
The data point byte group in acknowledgement frame is decomposited according to the communications protocol of monitoring device and is searched in data point byte group Data point definition;
The data value obtained in data point byte group is defined according to data point;
Update original data value.
9. a kind of means of communication according to claim 8, which is characterized in that when the communications protocol of monitoring device is Modbus When agreement, the communications protocol according to monitoring device decomposites the byte serial in acknowledgement frame and searches the data point in byte serial Definition specifically includes:
Corresponding byte serial in register is decomposited according to data point byte group echo;
According to the data point definition in data point identifier lookup byte serial.
10. a kind of means of communication according to claim 8, which is characterized in that when the communications protocol of monitoring device is When IEC103 agreement, the communications protocol according to monitoring device decomposites the byte serial in acknowledgement frame and searches in byte serial Data point definition specifically includes:
Byte serial is decomposited by group number and serial number;
Data point in byte serial is looked for define by group number and serial number.
CN201810669835.4A 2018-06-26 2018-06-26 Method for marking by protocol data marking language and communication method Expired - Fee Related CN108900597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810669835.4A CN108900597B (en) 2018-06-26 2018-06-26 Method for marking by protocol data marking language and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810669835.4A CN108900597B (en) 2018-06-26 2018-06-26 Method for marking by protocol data marking language and communication method

Publications (2)

Publication Number Publication Date
CN108900597A true CN108900597A (en) 2018-11-27
CN108900597B CN108900597B (en) 2021-06-22

Family

ID=64346136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810669835.4A Expired - Fee Related CN108900597B (en) 2018-06-26 2018-06-26 Method for marking by protocol data marking language and communication method

Country Status (1)

Country Link
CN (1) CN108900597B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202886953U (en) * 2012-09-29 2013-04-17 西安热工研究院有限公司 Profibus device monitoring and managing system
CN103414246A (en) * 2013-06-07 2013-11-27 国家电网公司 Power quality monitoring equipment remote monitoring method based on WebService standard interface
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
CN105183572A (en) * 2015-09-28 2015-12-23 云瑞科技(天津)有限公司 Method and device for configuration of electric power communication protocols

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202886953U (en) * 2012-09-29 2013-04-17 西安热工研究院有限公司 Profibus device monitoring and managing system
CN103414246A (en) * 2013-06-07 2013-11-27 国家电网公司 Power quality monitoring equipment remote monitoring method based on WebService standard interface
CN105138609A (en) * 2015-08-04 2015-12-09 广东瑞德智能科技股份有限公司 XML language based household appliance description method
CN105183572A (en) * 2015-09-28 2015-12-23 云瑞科技(天津)有限公司 Method and device for configuration of electric power communication protocols

Also Published As

Publication number Publication date
CN108900597B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
EP3803578B1 (en) Dynamic data transport between enterprise and business computing systems
CN104601468B (en) Message forwarding method and equipment
US20060092921A1 (en) Configuration for using open programming languages to dynamically configure packet processing rules
CN108809854A (en) A kind of restructural chip architecture for big flow network processes
CN104158627B (en) A kind of automatic recognition system and method for heterogeneous links multi-protocols
CN103117881A (en) Resource management system of Internet of Things
CN114282519B (en) CAN data analysis method and device
CN113225320A (en) Network message analysis method for keeping user configurable message format secret
CN110909168A (en) Knowledge graph updating method and device, storage medium and electronic device
CN108388572A (en) A kind of user's portrait access method
CN108900597A (en) The method and the means of communication being marked using protocol data markup language
CN107948005A (en) The update method and device of Internet of Things fidonetFido
CN107105004A (en) Cross-platform service calling method and device
CN109379763A (en) The smart tags method of network equipment information
CN105245455A (en) Flow table distributing method, packet forwarding method and forwarding device in software defined network
CN106330720A (en) Method for quickly searching IP message policy table
CN112866294A (en) Multi-protocol adaptation method, device and readable storage medium
CA2462313A1 (en) Rendering independent persistence of information
CN105450786B (en) A kind of message processing method and device
CN110995815B (en) Information transmission method based on Gaia big data analysis system
CN112383924B (en) Base station equipment management method, device and system
CN115842814B (en) Internet of things gateway data processing method and device based on instruction association pushing
CN106789923A (en) The normalized system and method for DTO protocol datas
EP4287585A1 (en) Data communication processing method and device
US20040199682A1 (en) Generic architecture for data exchange and data processing

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210622