CN107995206A - Realization device and method for the TLV communications protocol formats of industrial big data - Google Patents
Realization device and method for the TLV communications protocol formats of industrial big data Download PDFInfo
- Publication number
- CN107995206A CN107995206A CN201711328267.3A CN201711328267A CN107995206A CN 107995206 A CN107995206 A CN 107995206A CN 201711328267 A CN201711328267 A CN 201711328267A CN 107995206 A CN107995206 A CN 107995206A
- Authority
- CN
- China
- Prior art keywords
- data
- tlv
- communications protocol
- size
- module
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/03—Protocol definition or specification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The present invention discloses a kind of realization device and method of the TLV communications protocol formats for being used for industrial big data.Including data categorization module, data length setting module, data volume division module, data categorization module is used to give transmission data classification, data length setting module is used for the size for setting transmission data actual amount of data, and data volume division module is used to be divided into according to the size of data packet to be not fixed length data unit bag.The present invention further increases Data transmitting and receiving efficiency by reducing communication bandwidth occupancy.
Description
Technical field
The present invention relates to industrial big data transmission field, and in particular to a kind of TLV communication protocols for being used for industrial big data
The realization device and method of form.
Background technology
Industrial big data refers to the caused big data in the information-based application of industrial circle.With information-based with industrializing
Depth integration, information technology penetrated into the links of industrial enterprise's industrial chain, and bar code, Quick Response Code, RFID, industry pass
The technology such as sensor, industrial automation control system, industrial Internet of Things, ERP, CAD/CAM/CAE/CAI obtains extensively in industrial enterprise
The generation information technology such as general application, especially internet, mobile Internet, Internet of Things is in the application of industrial circle, industry enterprise
Industry also enters the new developing stage of Internet Industry, and the data that industrial enterprise is possessed also become increasingly abundant.In industrial enterprise
Production line be in run at high speed, as produced by industrial equipment, collection and processing data volume be much larger than enterprise's Computer and people
The data that work produces, also mostly in terms of data type is unstructured data, and production line runs at high speed then to the real-time of data
It is required that also higher.Therefore, industrial big data application problem encountered and big data application of the challenge unlike internet industry
It is few, it is even increasingly complex in some cases.
In the industrial big data communication technology, the data exchange between equipment and equipment needs to arrange a kind of both sides set
Rule, this rule is exactly communication protocol.TLV communications protocol, i.e. Tag (Type)-Length-Value, is simple and practical in one
Data transmission scheme.In the definition of TLV, it includes three domains, is respectively:Label field (Tag), length field (Length),
Content domain (Value).Here the value of length field is actually that the application layer realization of the length communication protocol of content domain is more
Based on string encoding, this method is realized simply, due to using close by the way of header+data (character string+separator)
English descriptive language thus it is low in encoding and decoding stepped cost but in data type conversion and transmission the data take
Computation complexity and calculating space are larger, and original communication format is all that fixed length requires during protocol data transmission,
This requires communicating pair in having the transmission of minimum incremental data, and 0 operation is filled out in other positions that need not transmit data.This
Transmission flow is greatly wasted, covert improves bandwidth, so communications cost is higher.
In order to solve problem above, the present invention proposes a kind of reality for the TLV communications protocol formats for being used for industrial big data
Existing device and method, by reducing communication bandwidth occupancy, further increases Data transmitting and receiving efficiency.
The content of the invention
Realization device and side the object of the present invention is to provide a kind of TLV communications protocol formats for being used for industrial big data
Method, by reducing communication bandwidth occupancy, further increases Data transmitting and receiving efficiency.
The present invention provides following scheme:
A kind of realization device for the TLV communications protocol formats for being used for industrial big data, including data categorization module, data length
Setting module, data volume division module are spent, data categorization module is used to give transmission data classification, and data length setting module is used for
The size of setting transmission data actual amount of data, data volume division module are used to be divided into according to the size of data packet to be not fixed length
Degrees of data unit bag.
Optionally, data categorization module gives transmission data classification, and data are represented using simple computers distinguished symbol
Classification type code.
Optionally, a certain data type is represented using the number of 1 byte on the premise of project or product is met
Code, if 1 byte number represents not enough to be extended for 2 bytes, and so on;Each type codes differ in same project or product
It is and unique.
Optionally, the size of data length setting module setting transmission data actual amount of data, the reality of module transfer data
The size of border data volume is represented using 1 byte number, if 1 byte number represents not enough to be extended for 2 bytes, and so on.
A kind of implementation method for the TLV communications protocol formats for being used for industrial big data, including step:
(1) to transmission data classification;
(2) size of setting transmission data actual amount of data;
(3) it is divided into according to the size of data packet and is not fixed length data unit bag.
Optionally, data categorization module gives transmission data classification in step (1), carrys out table using simple computers distinguished symbol
The classification type code of registration evidence.
Optionally, certain is represented using the number of 1 byte on the premise of project or product is met in module step (1)
A kind of data type code, if 1 byte number represents not enough to be extended for 2 bytes, and so on;It is each in same project or product
Type codes differ and uniquely.
Optionally, module sets the size for transmitting data actual amount of data, the actual number of module transfer data in step (2)
Represented according to the size of amount using 1 byte number, if 1 byte number represents not enough to be extended for 2 bytes, and so on.
The specific embodiment provided according to the present invention, the invention discloses following technique effect:
The realization device and method of a kind of TLV communications protocol formats for being used for industrial big data of the present invention, pass through reduction
Communication bandwidth occupancy, further increases Data transmitting and receiving efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of realization device of TLV communications protocol formats and the structure of method for being used for industrial big data of the present invention
Schematic diagram;
Fig. 2 is a kind of realization device of TLV communications protocol formats and the flow of method for being used for industrial big data of the present invention
Figure;
In figure, 1- data categorization modules, 2- data length setting modules, 3- data volume division modules.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work
Embodiment, belongs to the scope of protection of the invention.
This TLV communications protocol formats are to be based on binary coding.This method is encoded to byte arrays in the specific format, this
Mode is compared to string encoding mode and employs close to the language with computer identification it is achieved that more demanding, but number
It is smaller according to measuring.And transmission is only needed to change the data of part in having the transmission of minimum incremental data, without hash
Fill out 0 operation.Relative to original communication, this can bring the reduction of communication bandwidth occupancy, further increase data transfer with
Receiving efficiency.
TLV refers to the type Type by data, the length Length of data, the data structure of the value Value compositions of data
Body.This data structure can almost describe arbitrary data types as requested.In addition the Value of TLV can also be a TLV
Data structure, it is achieved thereby that data is nested layer by layer, it is efficient to have compressed data volume.
Realization device and side the object of the present invention is to provide a kind of TLV communications protocol formats for being used for industrial big data
Method, by reducing communication bandwidth occupancy, further increases Data transmitting and receiving efficiency.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
A kind of realization device for the TLV communications protocol formats for being used for industrial big data, including data categorization module (1), number
According to length setting module (2), data volume division module (3), data categorization module (1) is used to give transmission data classification, data length
The size that setting module (2) is used to set transmission data actual amount of data is spent, data volume division module (3) is used for according to data packet
Size be divided into and be not fixed length data unit bag.Data categorization module (1) gives transmission data classification, uses simple computers
Distinguished symbol represents the classification type code of data.Using the number of 1 byte come table on the premise of project or product is met
Show a certain data type code, if 1 byte number represents not enough to be extended for 2 bytes, and so on;In same project or product
Each type codes differ and uniquely.The size of data length setting module (3) setting transmission data actual amount of data, module pass
The size of the actual amount of data of transmission of data is represented using 1 byte number, if 1 byte number represents not enough to be extended for 2 bytes, with such
Push away.
A kind of implementation method for the TLV communications protocol formats for being used for industrial big data, including step:
201 pairs of transmission data classification;
The size of 202 setting transmission data actual amount of data;
203 are divided into according to the size of data packet and are not fixed length data unit bag.
Data categorization module gives transmission data classification in step 201, and data are represented using simple computers distinguished symbol
Classification type code.
Represent a certain data class in step 201 using the number of 1 byte on the premise of project or product is met
Type code, if 1 byte number represents not enough to be extended for 2 bytes, and so on;Each type codes not phase in same project or product
It is same and unique.
The size of module setting transmission data actual amount of data in step 202, the actual amount of data of module transfer data
Size is represented using 1 byte number, if 1 byte number represents not enough to be extended for 2 bytes, and so on.
This TLV communications protocol formats are as follows, are divided into two kinds:Non-nested form and nested form.
Non-nested form
T is writing a Chinese character in simplified form for Type, represents data type;
L is writing a Chinese character in simplified form for Length, represents data length;
V is writing a Chinese character in simplified form for Value, represents data.
With reference to above-mentioned designing scheme block diagram, designing scheme flow is described
Tpye describes the data type of Value, and the type of message for describing this nest is can be used for when nested;
Length describes the data length of Value, and the length of this nest is represented when nested;
Value describes real data, and nested TLV is represented when nested.
Type type codes are set, such as following table.
Type in this TLV communications protocol formats can set minimum byte according to project demand, such as be arranged to 1 herein
Byte.Different data types is represented by the setting of the value of each Bit in 1 byte, the Type in same project
Types value must be unique.The data type code that 1 byte can represent has 00000000~11111111, amounts to 256.If
1 byte representation is inadequate, can be extended for 2 bytes.Conventional characters string encoding mode is almost difficult to use 1 or seldom several
A byte data represents so polymorphic type code.Length data lengths can also be set as 1 byte according to real data length
Or 2 bytes.
Embodiment 1:
Industry spot has device A to need machine state, dew-point temperature, environment temperature, pressure, the run time that will be collected
This 5 kinds of data sendings are to data center.Analysis data are can be found that is attributed to temperature major class by dew-point temperature and environment temperature, if
The Type of constant temperature degree major class is 0x01, and the Type of dew-point temperature is 0x80, and the Type of environment temperature is 0x81, machine state
Type is 0x00, and the Type of pressure is 0x02, and the Type of run time is 0x04.Data type code once it is determined that, corresponding number
Also determined that according to resolution rules object.The value of machine state is 0x0001;The value of dew-point temperature is 0x0032;Ambient temperature value
For 0x001E;Pressure value is 0x0005;Operation time is 0x0142.The data of multibyte need to split multiple bytes, and high
Byte is preceding, and low byte is rear.
This communication code form of TLV is unrelated with business, it is only necessary to can be completely real in accordance with the requirement of its basic format
It is existing self-defined.Greatly reduce development difficulty and the construction cycle of protocol part.The double hairs of communication are according to agreement to data
Type is estimated, and the size of data packet can be reduced by setting byte requirement, so as to save data transfer throughput, greatly
Big improves communication efficiency.
The architecture diagram of embodiment 1 or modular functional block diagram:
According to the specific implementation of the flow direction description example 1 of data flow:
Machine state, dew-point temperature, environment temperature, pressure, run time only 5 data acquisition projects in this example, therefore
1 byte is only needed to represent data type.Communicating pair oneself defines data type.Each data acquisition value takes 2 words
Save size, due in communication process can only single byte send data, so communicating pair arranges high byte in preceding, low byte
Rear.There are dew-point temperature and environment temperature in the present case, they belong to temperature, so defining the total type codes of temperature, so
Each small type codes are being segmented afterwards, so division can carry out categorizing operation in program realization, facilitate program to homogeneous data
Group bag and unpacking, improve operational efficiency.So far, according to these requirements, can programmed data be:0x00、0x02、0x00、
0x01、0x01、0x08、0x80、0x02、0x00、0x32、0x81、0x02、0x00、0x1E、0x02、0x02、0x00、0x05、
0x04、0x02、0x01、0x42.The data to communicate altogether are 22 bytes.
This TLV methods fully achieve self-defining operation, and protocol format is simple, and group bag and unpacking are efficient, greatly shorten
The development cost of developer.Suitable for data indefinite length, without the space waste of regular length, conveyor is reduced
It is wide.
Specific case used herein is set forth the principle of the present invention and embodiment, and above example is said
It is bright to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, foundation
The thought of the present invention, in specific embodiments and applications there will be changes.In conclusion this specification content is not
It is interpreted as limitation of the present invention.
Claims (8)
1. the realization device of the TLV communications protocol formats for industrial big data, it is characterised in that including data categorization module,
Data length setting module, data volume division module, the data categorization module are used to give transmission data classification, the data length
The size that setting module is used to set transmission data actual amount of data is spent, the data volume division module is used for according to data packet
Size, which is divided into, is not fixed length data unit bag.
2. the realization device of the TLV communications protocol formats according to claim 1 for being used for industrial big data, its feature exist
In the data categorization module gives transmission data classification, and the classification type of data is represented using simple computers distinguished symbol
Code.
3. the realization device of the TLV communications protocol formats according to claim 2 for being used for industrial big data, its feature exist
In a certain data type code being represented using the number of 1 byte on the premise of project or product is met, if 1 byte number
Expression is not enough extended for 2 bytes, and so on;Each type codes differ and uniquely in same project or product.
4. the realization device of the TLV communications protocol formats according to claim 1 for being used for industrial big data, its feature exist
In, the size of the data length setting module setting transmission data actual amount of data, the actual amount of data of the transmission data
Size using 1 byte number represent, if 1 byte number represent not enough be extended for 2 bytes, and so on.
5. the implementation method of the TLV communications protocol formats for industrial big data, it is characterised in that including step:
(1) to transmission data classification;
(2) size of setting transmission data actual amount of data;
(3) it is divided into according to the size of data packet and is not fixed length data unit bag.
6. a kind of implementation method of TLV communications protocol formats for being used for industrial big data according to claim 5, its feature
It is:Data categorization module described in step (1) gives transmission data classification, and data are represented using simple computers distinguished symbol
Classification type code.
7. a kind of implementation method of TLV communications protocol formats for being used for industrial big data according to claim 6, its feature
It is:Step represents a certain data type on the premise of project or product is met in (1) using the number of 1 byte
Code, if 1 byte number represents not enough to be extended for 2 bytes, and so on;Each type codes differ in same project or product
It is and unique.
8. a kind of implementation method of TLV communications protocol formats for being used for industrial big data according to claim 5, its feature
It is:The size of the data actual amount of data of setting transmission described in step (2), the size of the actual amount of data of the transmission data
Represented using 1 byte number, if 1 byte number represents not enough to be extended for 2 bytes, and so on.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711328267.3A CN107995206A (en) | 2017-12-13 | 2017-12-13 | Realization device and method for the TLV communications protocol formats of industrial big data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711328267.3A CN107995206A (en) | 2017-12-13 | 2017-12-13 | Realization device and method for the TLV communications protocol formats of industrial big data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107995206A true CN107995206A (en) | 2018-05-04 |
Family
ID=62037786
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711328267.3A Pending CN107995206A (en) | 2017-12-13 | 2017-12-13 | Realization device and method for the TLV communications protocol formats of industrial big data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107995206A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109302389A (en) * | 2018-09-20 | 2019-02-01 | 佛山科学技术学院 | A kind of method for uploading of industry big data |
CN109981651A (en) * | 2019-03-27 | 2019-07-05 | 努比亚技术有限公司 | Data transmission method, device, mobile terminal and readable storage medium storing program for executing |
CN110674130A (en) * | 2019-08-30 | 2020-01-10 | 深圳鸿智云创科技有限公司 | Data transmission method |
CN113612760A (en) * | 2021-07-29 | 2021-11-05 | 深圳市捷诚技术服务有限公司 | Control method and control device applied to serial port communication protocol of upper and lower computers |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933479A (en) * | 2005-09-16 | 2007-03-21 | 华为技术有限公司 | Method for transmitting data in communication system and system thereof |
CN101599890A (en) * | 2008-06-06 | 2009-12-09 | 中兴通讯股份有限公司 | Data transmission system in a kind of communication system method of unifying |
US20090310511A1 (en) * | 2008-06-13 | 2009-12-17 | Silver Spring Networks, Inc. | Methods and systems for dynamically configuring and managing communication network nodes at the mac sublayer |
CN104320272A (en) * | 2014-10-21 | 2015-01-28 | 中国联合网络通信集团有限公司 | Device information transmission method and network device |
-
2017
- 2017-12-13 CN CN201711328267.3A patent/CN107995206A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1933479A (en) * | 2005-09-16 | 2007-03-21 | 华为技术有限公司 | Method for transmitting data in communication system and system thereof |
CN101599890A (en) * | 2008-06-06 | 2009-12-09 | 中兴通讯股份有限公司 | Data transmission system in a kind of communication system method of unifying |
US20090310511A1 (en) * | 2008-06-13 | 2009-12-17 | Silver Spring Networks, Inc. | Methods and systems for dynamically configuring and managing communication network nodes at the mac sublayer |
CN104320272A (en) * | 2014-10-21 | 2015-01-28 | 中国联合网络通信集团有限公司 | Device information transmission method and network device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109302389A (en) * | 2018-09-20 | 2019-02-01 | 佛山科学技术学院 | A kind of method for uploading of industry big data |
CN109981651A (en) * | 2019-03-27 | 2019-07-05 | 努比亚技术有限公司 | Data transmission method, device, mobile terminal and readable storage medium storing program for executing |
CN110674130A (en) * | 2019-08-30 | 2020-01-10 | 深圳鸿智云创科技有限公司 | Data transmission method |
CN113612760A (en) * | 2021-07-29 | 2021-11-05 | 深圳市捷诚技术服务有限公司 | Control method and control device applied to serial port communication protocol of upper and lower computers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107995206A (en) | Realization device and method for the TLV communications protocol formats of industrial big data | |
Tabaa et al. | Industrial communication based on modbus and node-RED | |
CN107992026A (en) | A kind of method of the parsing DBC analysis messages based on LABVEIW | |
CN108259371A (en) | A kind of network flow data analysis method and device based on stream process | |
CN102891796B (en) | Mining intelligent transmission gateway | |
CN111970353A (en) | Data processing method and device for heterogeneous equipment in Internet of things of cloud computing platform | |
CN112187547A (en) | Network model based on digital twins | |
Pacheco et al. | A smart classroom based on deep learning and osmotic IoT computing | |
CN109687995A (en) | A kind of OPC UA message transmitting method based on CoAP suitable for resource-constrained type industrial field device | |
CN112671757A (en) | Encrypted flow protocol identification method and device based on automatic machine learning | |
CN108449399A (en) | It is suitable for the edge calculations node of intelligent production | |
CN101282331A (en) | Method for recognizing P2P network flow based on transport layer characteristics | |
CN103400173A (en) | Generating method and reading method of two-dimensional code containing private information | |
CN103927319A (en) | QR code business card information access method | |
CN112347020A (en) | FAST market analysis system and method based on CGRA | |
CN101848239B (en) | High-timeliness distributed service integration calling system | |
Ping et al. | Intellicise communication system: model-driven semantic communications | |
Imran et al. | Wireless automation as an enabler for the next industrial revolution | |
CN106850559A (en) | A kind of expansible procotol analysis system and method | |
Li et al. | Open RAN meets semantic communications: A synergistic match for open, intelligent, and knowledge-driven 6G | |
CN102033959A (en) | Method for transferring objects in distributed calculating system | |
CN109993018A (en) | It is a kind of based on the two dimensional code identifying system of Zynq heterogeneous platform and recognition methods | |
Yang et al. | Vehicle text data compression and transmission method based on maximum entropy neural network and optimized huffman encoding algorithms | |
CN110519308A (en) | The conversion equipment and method of a kind of MQTT Internet of Things to Profibus-DP fieldbus | |
Xu et al. | 5G-based industrial wireless controller: protocol adaptation, prototype development, and experimental evaluation |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180504 |