Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data communication method and device

A data transmission method and data technology, applied in the field of communication, can solve problems such as inability to realize transmission, and achieve the effect of expanding data types

Active Publication Date: 2016-02-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, for data structures with complex data structures, such as container types such as Map type or Vector type, the TLV format will not be able to achieve transmission

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data communication method and device
  • Data communication method and device
  • Data communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0057] Such as figure 1 As shown, the embodiment of the present invention provides a data sending method, including:

[0058] 101. The sending end encodes the data to be transmitted according to a preset data format, and the preset data format includes a type field and a data part for indicating the type of the data to be transmitted.

[0059] Wherein, the type field is used to indicate that the data type to be transmitted is a subtype of an integer value, a subtype of a string type, a Vector type or a Map type, and the subtype of the integer value is used to represent the space occupied by an integer value storage space, the subtype of the string type is used to represent the storage space occupied by the variable of the length of the string;

[0060] The data part includes a data field of an integer value, a length field of a character string length and a data field of a character string, a length field of a Vector element quantity and a Vector element field, or, a length f...

Embodiment 2

[0135] Such as Figure 9 As shown, the embodiment of the present invention provides a data sending device, including:

[0136] An encoding module 11, configured to encode the data to be transmitted according to a preset data format, the preset data format including a type field and a data part for indicating the type of data to be transmitted;

[0137] The type field is used to indicate that the data type to be transmitted is a subtype of an integer value, a subtype of a string type, a Vector type or a Map type, and the subtype of the integer value is used to indicate the storage space occupied by an integer value , the subtype of the string type is used to represent the storage space occupied by the variable of the length of the string;

[0138] The data part includes a data field of an integer value, a length field of a character string length and a data field of a character string, a length field of a Vector element quantity and a Vector element field, or, a length field o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data communication method and device and relates to the technical field of communication. A novel data format is provided, and transmissive data types are expanded. A sending end encodes data to be transmitted according to a preset data format; the sending end sends the encoded data to a receiving end. The receiving end receives the data sent by the sending end; the receiving end obtains a value of a type field in the received data; the receiving end reads the data to be transmitted in a data part according to the value of the type field. The novel data format is provided, and the transmissive data types are expanded.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a data communication method and device. Background technique [0002] TLV (Type-Length-Value, type-length-value) is a data storage format, including the following three fields: [0003] The type field Type, a binary value, is used to indicate the type of the data. [0004] Length field Length, the actual length of data, usually its unit is byte (Byte). [0005] Data storage field Value, used to store data objects, the length is not fixed, specified by the length field [0006] In the prior art, when the database is transmitted in the TLV format, there are many advantages. For example, in the process of scanning, data of unknown type can be safely skipped; data can be stored in any order without interfering with the reading of other data; the speed of data reading is very fast, etc. [0007] However, for data structures with complex data structures, such as conta...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L1/00G06F17/30
Inventor 龙丁奋尚瀚焜张倩朱磊郭学亨操龙敏于树南郑旭泽卓伟
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products