CN102594788A - Method for achieving object-oriented data communication protocol structure - Google Patents

Method for achieving object-oriented data communication protocol structure Download PDF

Info

Publication number
CN102594788A
CN102594788A CN2011103947438A CN201110394743A CN102594788A CN 102594788 A CN102594788 A CN 102594788A CN 2011103947438 A CN2011103947438 A CN 2011103947438A CN 201110394743 A CN201110394743 A CN 201110394743A CN 102594788 A CN102594788 A CN 102594788A
Authority
CN
China
Prior art keywords
data
protocol
parameter
agreement
data content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103947438A
Other languages
Chinese (zh)
Inventor
刘瑞贤
张晋锋
温鑫
赵欢
孙国忠
邵宗有
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN2011103947438A priority Critical patent/CN102594788A/en
Publication of CN102594788A publication Critical patent/CN102594788A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides a method for achieving an object-oriented data communication protocol structure. The communication protocol structure comprises a protocol head, data content and a protocol tail; the basic structure of the data content is objects, the data content is composed of at least one top object structure in series connection, and the top objective structure consists of at least one bottom object structure in series connection. The method has the advantages of being simple in structure, easy to automatically build and analyze; high in generality, wherein new requirements can be compatible as long as data object types and parameter object types are added; and good in expansibility, wherein types, numbers and lengths of top data objects and bottom parameter objects are variable, and the change does not affect the protocol structure, for the completed protocol building and analytic procedures, only data definition is required to be added, and no change is required for building and analytic procedures.

Description

A kind of implementation method of OO data communication protocol structure
Technical field
The present invention relates to computer communication technology, specifically, relate to a kind of implementation method of OO data communication protocol structure.
Background technology
Communication protocol (communications protocol) is meant both sides' entity completion communication or service mandatory rule of institute and agreement.Protocol definition the form that uses of data cell, information that information unit should comprise and implication, connected mode, the sequential that information is sent and received, thus guarantee that data successfully are sent to definite place in the network.
In compunication, communication protocol is used to realize the standard between the computer and network connection that if network does not have the uniform communication agreement, the information transmission between the computer just can't be discerned.Communication protocol is meant the rule of communication that communication parties is arranged in advance, can be interpreted as simply to carry out the employed common language of mutual session between each computer.Two computers when communicating, the communication protocol that must use.
1) most at present communication protocols all are the structuring agreements, and every kind of agreement has concrete structure, and different environment needs different protocol, and inconvenience makes up automatically and resolves, and versatility is not strong.
2) in monitoring management system, need continue to increase the novel device monitoring, data type is changeable.Use general structuring agreement, a kind of equipment of every increase or data type will increase one or more fields, and it is chaotic repeatedly to expand the back structure, and protocol construction is bigger with the parsing programing change simultaneously.
3) Object-oriented Technique is applied in the design of protocol, can make up the good agreement of autgmentability.
Summary of the invention
The objective of the invention is to design a kind of structure and parsing, strong, OO data communication protocol structure of autgmentability of being easy to.
A kind of implementation method of OO data communication protocol structure, said comnnnication protocol structure are by protocol header, and data content and agreement tail are formed; The basic structure of said data content is object, and data content is composed in series by at least one high-rise object structure, and said high-rise object structure is composed in series by at least one underlying object structure.
Preferably, said high-rise object structure is a data object, and data object comprises data object type, data object ID, data object data length and data object parameter object sequence.
Preferably, said underlying object structure is a parameter object, and parameter object comprises parameter type, number of parameters, parameter unit length and parameter value.
Preferably, said protocol header comprises agreement name, protocol version, type of message, protocol data length and other agreement parameters; Said agreement tail comprises check code and other agreement parameters.
Preferably, when said comnnnication protocol structure is used, can change protocol header and agreement tail as required under varying environment.
Preferably, the data content of said comnnnication protocol structure can make up and resolve automatically, and not restricting data content-length and size.
The present invention has following characteristics:
Simple in structure, make up automatically easily and resolve.
Highly versatile only needs increase data object type, parameter object type to get final product compatible new demand.
Favorable expandability; The high-rise data object and its type of parameter object, number, the length of bottom all are variable, and this variation does not influence the structure of agreement, concerning the protocol construction and analysis program accomplished; Only need to increase data definition, structure and process of analysis do not need to change.
Description of drawings
Fig. 1 is protocol architecture figure of the present invention
Embodiment
Below in conjunction with description of drawings embodiment of the present invention.
1) in concrete environment, confirms protocol header and agreement tail by general structuring protocol definition mode and real needs own.
Protocol header generally comprises agreement name, protocol version, type of message, protocol data length and other agreement parameter.
The agreement tail generally comprises check code and other agreement parameter.
Other parameter can be added as required.
2) confirm the high-level structure data object of protocol data content.
The data that need comprise which equipment in the specified data content are data object with these device abstracts, give the object type numbering in order.
3) confirm the fabric parameter object of protocol data content.
Which data that need comprise equipment in the specified data content, like concrete parameter such as size, position, electric weight, temperature, each parameter is abstract to be parameter object, gives the object type numbering in order.
4) according to actual transmissions content specified data content.
To each high level data object, fill its bottom parameter object value successively, type, numerical value number, unit length, the parameter value sequence of parameter object is set.
The type of padding data object, ID, total length.
5) confirm item relevant in protocol header, the agreement tail according to data content with data content.

Claims (6)

1. the implementation method of an OO data communication protocol structure is characterized in that: said comnnnication protocol structure is by protocol header, and data content and agreement tail are formed; The basic structure of said data content is object, and data content is composed in series by at least one high-rise object structure, and said high-rise object structure is composed in series by at least one underlying object structure.
2. the method for claim 1, it is characterized in that: said high-rise object structure is a data object, data object comprises data object type, data object ID, data object data length and data object parameter object sequence.
3. the method for claim 1, it is characterized in that: said underlying object structure is a parameter object, parameter object comprises parameter type, number of parameters, parameter unit length and parameter value.
4. the method for claim 1 is characterized in that: said protocol header comprises agreement name, protocol version, type of message, protocol data length and other agreement parameters; Said agreement tail comprises check code and other agreement parameters.
5. the method for claim 1 is characterized in that: when said comnnnication protocol structure is used, can change protocol header and agreement tail as required under varying environment.
6. the method for claim 1, it is characterized in that: the data content of said comnnnication protocol structure can make up and resolve automatically, and not restricting data content-length and size.
CN2011103947438A 2011-12-02 2011-12-02 Method for achieving object-oriented data communication protocol structure Pending CN102594788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103947438A CN102594788A (en) 2011-12-02 2011-12-02 Method for achieving object-oriented data communication protocol structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103947438A CN102594788A (en) 2011-12-02 2011-12-02 Method for achieving object-oriented data communication protocol structure

Publications (1)

Publication Number Publication Date
CN102594788A true CN102594788A (en) 2012-07-18

Family

ID=46482996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103947438A Pending CN102594788A (en) 2011-12-02 2011-12-02 Method for achieving object-oriented data communication protocol structure

Country Status (1)

Country Link
CN (1) CN102594788A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282457A (en) * 2017-12-11 2018-07-13 广州小鹏汽车科技有限公司 A kind of power control method, apparatus and system
CN108429764A (en) * 2018-05-28 2018-08-21 烽火通信科技股份有限公司 A method of the data transmission based on proprietary protocol and parsing
CN110851119A (en) * 2019-10-21 2020-02-28 杭州米圈科技有限公司 Method for realizing correlation between user-defined object and object of software as a service (SaaS) software product
CN111740956A (en) * 2020-05-19 2020-10-02 腾讯科技(深圳)有限公司 Vehicle communication method and device, computer readable medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0456249A2 (en) * 1990-05-10 1991-11-13 Hewlett-Packard Company System for integrating application programs in a heterogeneous network enviroment
CN1276123A (en) * 1997-10-13 2000-12-06 艾克斯-伟瑞茨公司 Method and apparatus for structured geared to point to point communication
CN102158482A (en) * 2011-03-10 2011-08-17 易程(苏州)软件股份有限公司 JSON (JavaScript Object Notation) data protocol based passenger transport information communication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0456249A2 (en) * 1990-05-10 1991-11-13 Hewlett-Packard Company System for integrating application programs in a heterogeneous network enviroment
CN1276123A (en) * 1997-10-13 2000-12-06 艾克斯-伟瑞茨公司 Method and apparatus for structured geared to point to point communication
CN102158482A (en) * 2011-03-10 2011-08-17 易程(苏州)软件股份有限公司 JSON (JavaScript Object Notation) data protocol based passenger transport information communication method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282457A (en) * 2017-12-11 2018-07-13 广州小鹏汽车科技有限公司 A kind of power control method, apparatus and system
CN108282457B (en) * 2017-12-11 2021-07-23 广州小鹏汽车科技有限公司 Power supply control method, device and system
CN108429764A (en) * 2018-05-28 2018-08-21 烽火通信科技股份有限公司 A method of the data transmission based on proprietary protocol and parsing
CN108429764B (en) * 2018-05-28 2021-03-30 烽火通信科技股份有限公司 Data transmission and analysis method based on private protocol
CN110851119A (en) * 2019-10-21 2020-02-28 杭州米圈科技有限公司 Method for realizing correlation between user-defined object and object of software as a service (SaaS) software product
CN111740956A (en) * 2020-05-19 2020-10-02 腾讯科技(深圳)有限公司 Vehicle communication method and device, computer readable medium and electronic equipment
CN111740956B (en) * 2020-05-19 2023-05-26 腾讯科技(深圳)有限公司 Vehicle communication method, device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN103944813A (en) Gateway and method for achieving general adaptation function
CN107959715B (en) Remote terminal information identification software method based on wireless telecommunications
CN105119974A (en) Internet-of-things system using hybrid cloud architecture and realization method
CN106713018A (en) Message queue business data scheduling method and message queue implementation method
CN103176765B (en) A kind of biography screen method and electronic equipment
CN103747004A (en) Realizing method of internet of things communication protocol
CN104935639A (en) Intelligent terminal, and applied distributed exploitation system and method
CN102594788A (en) Method for achieving object-oriented data communication protocol structure
CN109510744A (en) Internet of Things device intelligence cut-in method and device
CN104618182A (en) Simulation testing system supporting a plurality of mobile service protocols
CN102932431A (en) Message-routing-based state monitoring data interface configuration method
CN106713428A (en) Business operation support system applied to Internet-of-things self-management platform
CN105119969B (en) A kind of exchange method for putting inspection data format and point inspection data
CN107516263A (en) A kind of managing device of household electrical appliance, business management system and control method
CN106713019A (en) Design method of service operation support system applied to Internet of Things self-management platform
CN102982133A (en) Method and device and system of data auditing
CN107257292B (en) A kind of cross-domain distributed big data communication system design planning method
Yacchirema et al. Design and implementation of a gateway for pervasive smart environments
CN109217986A (en) A kind of data transmission method and system based on Internet of Things
CN105306593A (en) Intelligent gas meter metering sensing system
CN105430665B (en) Realize the method and system of more net mixing scale networkings
CN105338104B (en) Service request response method, parsing method and system
CN208079095U (en) A kind of elevator long distance information integrated system
Petruţ et al. The IoT connectivity challenges
Mukudu et al. Prototyping smart city applications over large scale M2M testbed

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120718