[go: up one dir, main page]

CN116615874A - Data transmission method and device and communication equipment - Google Patents

Data transmission method and device and communication equipment Download PDF

Info

Publication number
CN116615874A
CN116615874A CN202080105087.2A CN202080105087A CN116615874A CN 116615874 A CN116615874 A CN 116615874A CN 202080105087 A CN202080105087 A CN 202080105087A CN 116615874 A CN116615874 A CN 116615874A
Authority
CN
China
Prior art keywords
field
tag
byte
value
length
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
CN202080105087.2A
Other languages
Chinese (zh)
Other versions
CN116615874B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN116615874A publication Critical patent/CN116615874A/en
Application granted granted Critical
Publication of CN116615874B publication Critical patent/CN116615874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Communication Control (AREA)

Abstract

本申请实施例提供一种数据传输方法及装置、通信设备,该方法包括:第一设备向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。

An embodiment of the present application provides a data transmission method and device, and a communication device. The method includes: the first device sends a first signaling to the second device, and the data carried in the first signaling is encoded using a first TLV format ; Wherein, the first TLV format is used to determine the first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field.

Description

一种数据传输方法及装置、通信设备A data transmission method and device, and communication equipment 技术领域technical field

本申请实施例涉及移动通信技术领域,具体涉及一种数据传输方法及装置、通信设备。The embodiments of the present application relate to the field of mobile communication technologies, and in particular to a data transmission method and device, and communication equipment.

背景技术Background technique

客户端与服务端之间传输的数据采用TLV格式进行编码和解码。目前的TLV格式指出TLV结构包括标签(Tag)字段、长度(Length)字段和取值(Value)字段。一个基本的数据元就包括以上三个字段,其中,Tag字段用于描述数据的标签,Length字段用于描述Value字段的长度,Value字段用于描述数据的Value(即Tag字段描述的标签的属性值)。采用上述TLV格式进行编码和解码时,由于缺少一些控制信息,导致编码和解码的效率较低。The data transmitted between the client and the server is encoded and decoded in TLV format. The current TLV format indicates that the TLV structure includes a tag (Tag) field, a length (Length) field and a value (Value) field. A basic data element includes the above three fields, where the Tag field is used to describe the label of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data (that is, the attribute of the tag described by the Tag field value). When the above TLV format is used for encoding and decoding, due to the lack of some control information, the encoding and decoding efficiency is low.

发明内容Contents of the invention

本申请实施例提供一种数据传输方法及装置、通信设备。Embodiments of the present application provide a data transmission method and device, and communication equipment.

本申请实施例提供的数据传输方法,包括:The data transmission method provided in the embodiment of this application includes:

第一设备向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The first device sends first signaling to the second device, where the data carried in the first signaling is encoded in a first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节(ControlByte)字段、Tag字段、以及以下至少之一:Length字段、Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a control byte (ControlByte) field, a Tag field, and at least one of the following: a Length field and a Value field.

本申请实施例提供的数据传输方法,包括:The data transmission method provided in the embodiment of this application includes:

第二设备接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The second device receives the first signaling sent by the first device, where the data carried in the first signaling is encoded in a first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括ControlByte字段、Tag字段、以及以下至少之一:Length字段、Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field and a Value field.

本申请实施例提供的数据传输装置,应用于第一设备,所述装置包括:The data transmission device provided in the embodiment of the present application is applied to the first device, and the device includes:

发送单元,用于向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,A sending unit, configured to send a first signaling to a second device, where the data carried in the first signaling is encoded in a first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括ControlByte字段、Tag字段、以及以下至少之一:Length字段、Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field and a Value field.

本申请实施例提供的数据传输装置,应用于第二设备,所述装置包括:The data transmission device provided in the embodiment of the present application is applied to the second device, and the device includes:

接收单元,用于接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The receiving unit is configured to receive the first signaling sent by the first device, where the data carried in the first signaling is encoded in the first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括ControlByte字段、Tag字段、以及以下至少之一:Length字段、Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field and a Value field.

本申请实施例提供的通信设备,包括处理器和存储器。该存储器用于存储计算机程序,该处理器用于调用并运行该存储器中存储的计算机程序,执行上述的数据传输方法。The communication device provided in the embodiment of the present application includes a processor and a memory. The memory is used to store computer programs, and the processor is used to call and run the computer programs stored in the memory to execute the above data transmission method.

本申请实施例提供的芯片,用于实现上述的数据传输方法。The chip provided in the embodiment of the present application is used to implement the above data transmission method.

具体地,该芯片包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片的设备执行上述的数据传输方法。Specifically, the chip includes: a processor, configured to call and run a computer program from the memory, so that the device installed with the chip executes the above-mentioned data transmission method.

本申请实施例提供的计算机可读存储介质,用于存储计算机程序,该计算机程序使得计算机执行上述的数据传输方法。The computer-readable storage medium provided by the embodiment of the present application is used for storing a computer program, and the computer program causes the computer to execute the above-mentioned data transmission method.

本申请实施例提供的计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行上述的数据传输方法。The computer program product provided by the embodiments of the present application includes computer program instructions, and the computer program instructions cause a computer to execute the above data transmission method.

本申请实施例提供的计算机程序,当其在计算机上运行时,使得计算机执行上述的数据传输 方法。The computer program provided by the embodiment of the present application, when running on a computer, enables the computer to execute the above-mentioned data transmission method.

通过上述技术方案,提出了一种新型的TLV格式(即第一TLV格式),通过该新型的TLV格式确定出的TLV结构(即第一TLV结构)包括控制字节(ControlByte)字段、Tag字段、以及以下至少之一:Length字段、Value字段。由于第一TLV结构具有ControlByte字段,因而可以通过该ControlByte字段描述一些其他字段相关的控制信息,提高了编码和解码的效率,实现了一种符合应用的TLV结构。Through the above technical scheme, a novel TLV format (i.e. the first TLV format) is proposed, and the TLV structure determined by the novel TLV format (i.e. the first TLV structure) includes a control byte (ControlByte) field, a Tag field , and at least one of the following: Length field, Value field. Since the first TLV structure has a ControlByte field, the ControlByte field can be used to describe some control information related to other fields, which improves the efficiency of encoding and decoding, and realizes a TLV structure suitable for applications.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the application and constitute a part of the application. The schematic embodiments and descriptions of the application are used to explain the application and do not constitute an improper limitation to the application. In the attached picture:

图1是本申请实施例提供的一种可选的通信架构图;FIG. 1 is an optional communication architecture diagram provided by an embodiment of the present application;

图2是本申请实施例提供的数据传输方法的流程示意图;FIG. 2 is a schematic flow diagram of a data transmission method provided in an embodiment of the present application;

图3是本申请实施例提供的客户端与服务端交互的示意图;FIG. 3 is a schematic diagram of the interaction between the client and the server provided by the embodiment of the present application;

图4是本申请实施例提供的数据传输装置的结构组成示意图一;FIG. 4 is a first schematic diagram of the structure and composition of the data transmission device provided by the embodiment of the present application;

图5是本申请实施例提供的数据传输装置的结构组成示意图二;FIG. 5 is a second schematic diagram of the structure and composition of the data transmission device provided by the embodiment of the present application;

图6是本申请实施例提供的一种通信设备示意性结构图;FIG. 6 is a schematic structural diagram of a communication device provided by an embodiment of the present application;

图7是本申请实施例的芯片的示意性结构图。FIG. 7 is a schematic structural diagram of a chip according to an embodiment of the present application.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Hereinafter, the present application will be described in detail with reference to the drawings and embodiments. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. Apparently, the described embodiments are some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.

为便于理解本申请实施例的技术方案,以下对本申请实施例涉及到的相关技术进行说明。In order to facilitate understanding of the technical solutions of the embodiments of the present application, the related technologies involved in the embodiments of the present application are described below.

通信架构 communication architecture

开放互联基金会(Open Connectivity Foundation,OCF)定义了客户端和服务端,服务端是指提供资源的设备,客户端是指访问资源的设备。The Open Connectivity Foundation (OCF) defines a client and a server. The server refers to a device that provides resources, and the client refers to a device that accesses resources.

OCF采用表述状态转移(Representational State Transfer,RESTful)架构,通过资源来表述物联网实体设备,以及设备提供的功能服务和设备的状态等信息,提供资源的设备是服务端,访问资源的设备是客户端。OCF中定义的客户端和服务端是逻辑功能实体,一个设备可以是客户端、或服务端、或既是客户端又是服务端。OCF adopts the Representational State Transfer (RESTful) architecture, and uses resources to describe physical devices of the Internet of Things, as well as information such as functional services provided by devices and device status. The device that provides resources is the server, and the device that accesses resources is the client. end. The client and server defined in OCF are logical functional entities, and a device can be a client, a server, or both a client and a server.

客户端和服务端的业务交互是通过对资源进行RESTful操作来实现的,RESTful操作可以是创建-读取-更新-删除-通知(Create-Retrieve-Update-Delete-Notify,CRUDN)操作,显然,CRUDN操作可以是以下任意一种或多种操作:创建(Create)、读取(Retrieve)、更新(Update)、删除(Delete)、通知(Notify)。客户端是RESTful操作的发起方,服务端是RESTful操作的响应方,客户端向服务端发送资源操作请求,请求对服务端上的资源进行操作,服务端执行资源操作,并向客户端返回响应,响应中携带资源的内容及描述信息。The business interaction between the client and the server is realized by performing RESTful operations on resources. RESTful operations can be create-read-update-delete-notify (Create-Retrieve-Update-Delete-Notify, CRUDN) operations. Obviously, CRUDN The operation can be any one or more of the following operations: create (Create), read (Retrieve), update (Update), delete (Delete), notify (Notify). The client is the initiator of the RESTful operation, and the server is the responder of the RESTful operation. The client sends a resource operation request to the server, requesting to operate on the resource on the server, and the server executes the resource operation and returns a response to the client. , the response carries the content and description information of the resource.

图1是本申请实施例提供的一种可选的通信架构图,对资源的描述为资源模型层,每个资源对应一个特定的统一资源标识符(Uniform Resource Identifier,URI),可通过访问资源的URI来访问这个资源,另外每个资源具有支持Restful操作的相应接口。传输资源内容及描述信息的是传输协议层,通过把资源操作映射到具体的传输协议中,使每个资源的Restful操作转变为实体消息在设备间传递,为设备间的互联互通提供手段。Figure 1 is an optional communication architecture diagram provided by the embodiment of the present application. The description of resources is a resource model layer, and each resource corresponds to a specific uniform resource identifier (Uniform Resource Identifier, URI), which can be accessed through URI to access this resource, and each resource has a corresponding interface that supports Restful operations. It is the transmission protocol layer that transmits resource content and description information. By mapping the resource operation to a specific transmission protocol, the Restful operation of each resource is transformed into a physical message that is transmitted between devices, providing means for the interconnection and intercommunication between devices.

OCF的传输协议采用受限应用协议(Constrained Application Protocol,CoAP)承载资源操作,每个CRUDN操作都映射为CoAP的请求消息或响应消息,客户端可以通过CoAP中的GET、POST、DELETE这三种方法对服务端的资源进行操作,从而实现资源状态的转换。OCF’s transport protocol adopts Constrained Application Protocol (CoAP) to carry resource operations. Each CRUDN operation is mapped to a CoAP request message or response message. The client can pass GET, POST, and DELETE in CoAP. The method operates on the resource on the server side, so as to realize the conversion of the resource state.

TLV TLVs

客户端与服务端之间传输的数据采用TLV格式进行编码和解码。TLV属于基本编码规则(Basic Encoding Rule,BER)编码的一种,遵从ASN1标准。TLV的全称为:Tag(标签)-Length(长度)-Value(值)。在IS-IS数据通信领域中,一个基本的数据元包括tlv三元数组,即Tag-Length-Value,也可以理解为,一个基本的数据元包括三个字段,即Tag字段、Length字段和Value字段。其中,Tag字段用于描述数据的标签,Length字段用于描述Value字段的长度,Value字段用于描述数据的Value(即Tag字段描述的标签的属性值)。The data transmitted between the client and the server is encoded and decoded in TLV format. TLV is a type of Basic Encoding Rule (BER) encoding and complies with the ASN1 standard. The full name of TLV is: Tag (tag)-Length (length)-Value (value). In the field of IS-IS data communication, a basic data element includes a tlv ternary array, namely Tag-Length-Value. It can also be understood that a basic data element includes three fields, namely Tag field, Length field and Value field. Wherein, the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data (that is, the attribute value of the tag described by the Tag field).

本申请实施例的技术方案提出一种与特定传输协议相匹配的TLV格式,称之为第一TLV格式,需要说明的是,第一TLV格式的描述也可以被替换成其他方式,例如TLV格式,或者CTLV格式等。客户端和服务端可以在相互交互的信令中使用该第一TLV格式对负载的内容(即信令中承载的数据)进行编解码。The technical solution of the embodiment of this application proposes a TLV format that matches a specific transmission protocol, which is called the first TLV format. It should be noted that the description of the first TLV format can also be replaced by other methods, such as TLV format , or CTLV format, etc. The client and the server can use the first TLV format to encode and decode the content of the payload (ie, the data carried in the signaling) in the signaling interacted with each other.

图2是本申请实施例提供的数据传输方法的流程示意图,如图2所示,所述数据传输方法包括以下步骤:Fig. 2 is a schematic flow chart of the data transmission method provided by the embodiment of the present application. As shown in Fig. 2, the data transmission method includes the following steps:

步骤201:第一设备向第二设备发送第一信令,第二设备接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括ControlByte字段、Tag字段、以及以下至少之一:Length字段、Value字段。Step 201: The first device sends the first signaling to the second device, and the second device receives the first signaling sent by the first device, and the data carried in the first signaling is encoded using the first TLV format; wherein, The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field and a Value field.

在本申请一可选方式中,参照图3,所述第一设备为客户端,所述第二设备为服务端。所述第一信令为资源操作请求消息,这里,资源操作请求消息例如可以是修改服务(Server)状态请求消息。第一信令中承载的数据采用本申请实施例提供的第一TLV格式进行编码。服务端收到资源操作请求消息后,根据本申请实施例提供的第一TLV格式对第一信令进行解码,从而获得第一信令中承载的数据,根据该数据执行相应的操作,例如属性变更操作。In an optional manner of the present application, referring to FIG. 3 , the first device is a client, and the second device is a server. The first signaling is a resource operation request message. Here, the resource operation request message may be, for example, a service (Server) state modification request message. The data carried in the first signaling is encoded using the first TLV format provided by the embodiment of the present application. After receiving the resource operation request message, the server decodes the first signaling according to the first TLV format provided by the embodiment of this application, thereby obtaining the data carried in the first signaling, and performs corresponding operations according to the data, such as attribute Change operation.

在本申请另一可选方式中,参照图3,所述第一设备为服务端,所述第二设备为客户端。所述第一信令为应答消息。应答消息中承载的数据采用本申请实施例提供的第一TLV格式进行编码。客户端收到应答消息后,根据本申请实施例提供的第一TLV格式对第一信令进行解码,从而获得第一信令中承载的数据。In another optional manner of the present application, referring to FIG. 3 , the first device is a server, and the second device is a client. The first signaling is a response message. The data carried in the response message is encoded using the first TLV format provided by the embodiment of the present application. After receiving the response message, the client decodes the first signaling according to the first TLV format provided by the embodiment of the present application, so as to obtain the data carried in the first signaling.

本申请实施例中的第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括ControlByte字段、Tag字段、以及以下至少之一:Length字段、Value字段。The first TLV format in this embodiment of the present application is used to determine the first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field and a Value field.

在一可选方式中,所述第一TLV结构包括ControlByte字段和Tag字段。In an optional manner, the first TLV structure includes a ControlByte field and a Tag field.

在一可选方式中,所述第一TLV结构包括ControlByte字段、Tag字段和Value字段。In an optional manner, the first TLV structure includes a ControlByte field, a Tag field and a Value field.

在一可选方式中,所述第一TLV结构包括ControlByte字段、Tag字段、Length字段和Value字段。In an optional manner, the first TLV structure includes a ControlByte field, a Tag field, a Length field, and a Value field.

本申请实施例中,所述ControlByte字段用于描述其他字段的控制信息,例如Tag字段的控制信息和/或Value字段的控制信息。其中,Tag字段的控制信息包括Tag的说明。Value字段的控制信息包括Value的数据类型,可选地,还包括Length字段的长度和/或Value字段的长度。In this embodiment of the present application, the ControlByte field is used to describe the control information of other fields, for example, the control information of the Tag field and/or the control information of the Value field. Wherein, the control information of the Tag field includes the description of the Tag. The control information of the Value field includes the data type of the Value, and optionally, the length of the Length field and/or the length of the Value field.

本申请实施例中,所述Tag字段用于描述数据的标签。In this embodiment of the application, the Tag field is used to describe a tag of data.

本申请实施例中,所述Length字段用于描述Value字段的长度。In this embodiment of the present application, the Length field is used to describe the length of the Value field.

本申请实施例中,所述Value字段用于描述数据的Value(即标签对应的属性值)。In the embodiment of the present application, the Value field is used to describe the Value of the data (that is, the attribute value corresponding to the label).

在一个示例中,Tag字段的内容为0X12,代表标签为温度(temperature)。Value字段的内容为15,代表温度的取值为15度(15degree)。In an example, the content of the Tag field is 0X12, which means the tag is temperature. The content of the Value field is 15, which means that the value of the temperature is 15 degrees (15 degrees).

以下对上述方案中的各个字段进行详细描述。Each field in the above scheme is described in detail below.

(一)ControlByte字段(1) ControlByte field

本申请实施例中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。在一可选方式中,所述N1的取值为1,即所述ControlByte字段的长度为1个字节。In the embodiment of the present application, the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer. In an optional manner, the value of N1 is 1, that is, the length of the ControlByte field is 1 byte.

本申请实施例中,所述ControlByte字段包括两个部分,即第一部分和第二部分,其中,第一部分也可以称为tagControl部分,第二部分也可以称为elementType部分。其中,第一部分用于确定Tag字段的相关控制信息,第二部分用于确定Value字段的相关控制信息。In this embodiment of the present application, the ControlByte field includes two parts, namely a first part and a second part, wherein the first part may also be called a tagControl part, and the second part may also be called an elementType part. Wherein, the first part is used to determine the related control information of the Tag field, and the second part is used to determine the related control information of the Value field.

在一可选方式中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。例如:Bit7-bit5为第一部分比特。所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。例如Bit4-bit0为第二部分比特。In an optional manner, the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field. For example: Bit7-bit5 is the first part of bits. The second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field. For example, Bit4-bit0 are the second part of bits.

本申请实施例中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。进一步,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。这里,所述Tag的说明用于确定以下至少之一:Tag字段的长度、 Tag字段所描述的标签类型为属性标识标签(iid tag)或者索引标签(index tag)或者设备标识标签(DeviceID tag)或者事务标识标签(ID tag)或者服务标识标签(siid tag)。In this embodiment of the present application, the first part of bits in the ControlByte field is used to indicate that the use of the data is one of the following: general for device access, general for device control, general for device control. Further, the first part of bits in the ControlByte field is also used to indicate the description of the Tag. Here, the description of the Tag is used to determine at least one of the following: the length of the Tag field, and the tag type described by the Tag field is an attribute identification tag (iid tag) or an index tag (index tag) or a device identification tag (DeviceID tag) Or a transaction identification tag (ID tag) or a service identification tag (siid tag).

需要说明的是,Tag字段所描述的标签类型例如是:Tag字段描述的标签类型为属性标识标签(iid tag)或者索引标签(index tag)。It should be noted that, the tag type described by the Tag field is, for example: the tag type described by the Tag field is an attribute identification tag (iid tag) or an index tag (index tag).

本申请实施例中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。进一步,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。或者,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。In this embodiment of the present application, the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field. Further, the second part of bits in the ControlByte field is also used to indicate at least one of the following: the length of the Length field, and the length of the Value field. Or, the second part of bits in the ControlByte field is also used to indicate: the terminator of the container data type.

在一个示例中,以下表1-1和表1-2给出了ControlByte字段中的第一部分比特(即Bit7-bit5)的不同取值情况下所指示的内容,以及第二部分比特(即Bit4-bit0)的不同取值情况下所指示的内容。In an example, the following Table 1-1 and Table 1-2 give the content indicated by the different values of the first part of bits (ie Bit7-bit5) in the ControlByte field, and the second part of bits (ie Bit4 The content indicated under different values of -bit0).

表1-1Table 1-1

表1-2Table 1-2

以下结合上述表1-1和表1-2对ControlByte字段中的第一部分比特(即Bit7-bit5)和第二部分比特(即Bit4-bit0)如何进行信息指示进行举例说明。The following describes how the first part of bits (ie, Bit7-bit5) and the second part of bits (ie, Bit4-bit0) in the ControlByte field perform information indication in combination with the above-mentioned Table 1-1 and Table 1-2.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为00000的情况下,该第二部分比特用于指示Value的数据类型为8位无符号整型(uint8),且无Length字段(也可以理解为Length字段的长度为0个字节),Value字段的长度为1个字节。In an example, when the value of the second part of bits (ie Bit4-bit0) in the ControlByte field is 00000, the second part of bits is used to indicate that the data type of Value is an 8-bit unsigned integer (uint8) , and there is no Length field (it can also be understood that the length of the Length field is 0 bytes), and the length of the Value field is 1 byte.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为00100的情况下,该第二部分比特用于指示Value的数据类型为8位有符号整型(int8),且无Length字段(也可以理解为Length字段的长度为0个字节),Value字段的长度为1个字节。In an example, when the value of the second part of bits (ie, Bit4-bit0) in the ControlByte field is 00100, the second part of bits is used to indicate that the data type of Value is an 8-bit signed integer (int8) , and there is no Length field (it can also be understood that the length of the Length field is 0 bytes), and the length of the Value field is 1 byte.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为01000的情况下,该第二部分比特用于指示Value的数据类型为布尔(boolean)类型,且该数据的取值为假(false),且无Length字段(也可以理解为Length字段的长度为0个字节)以及无Value字段(也可以理解为Value字段的长度为0个字节)。In an example, when the value of the second part of bits (ie Bit4-bit0) in the ControlByte field is 01000, the second part of bits is used to indicate that the data type of Value is a boolean type, and the data The value of is false (false), and there is no Length field (it can also be understood that the length of the Length field is 0 bytes) and no Value field (it can also be understood that the length of the Value field is 0 bytes).

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为01010的情况下,该第二部分比特用于指示Value的数据类型为浮点(float)型,且无Length字段(也可以理解为Length字段的长度为0个字节),Value字段的长度为4个字节。In an example, when the value of the second part of bits (that is, Bit4-bit0) in the ControlByte field is 01010, the second part of bits is used to indicate that the data type of Value is a floating point (float) type, and there is no The Length field (it can also be understood as the length of the Length field is 0 bytes), and the length of the Value field is 4 bytes.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为10000的情况下,该第二部分比特用于指示Value的数据类型为字节(bytes)型,且Length字段的长度为1个字节,Value字段为可变长度。In an example, when the value of the second part of bits (ie, Bit4-bit0) in the ControlByte field is 10000, the second part of bits is used to indicate that the data type of Value is bytes, and Length The length of the field is 1 byte, and the Value field is of variable length.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为10100的情况下,该第二部分比特用于指示Value的数据类型为字符串(string)类型,且Length字段的长度为1个字节,Value字段为可变长度。In an example, when the value of the second part of bits (that is, Bit4-bit0) in the ControlByte field is 10100, the second part of bits is used to indicate that the data type of Value is a string type, and Length The length of the field is 1 byte, and the Value field is of variable length.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为11001的情况下,该第二部分比特用于指示Value的数据类型为结构体(struct)类型,且Length字段和Value字段为可变长度。In an example, when the value of the second part of bits (ie Bit4-bit0) in the ControlByte field is 11001, the second part of bits is used to indicate that the data type of Value is a structure (struct) type, and Length Field and Value fields are variable length.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为11010的情况下,该第二部分比特用于指示Value的数据类型为数组(array)类型,且Length字段和Value字段为可变长度。In an example, when the value of the second part of bits (ie, Bit4-bit0) in the ControlByte field is 11010, the second part of bits is used to indicate that the data type of the Value is an array type, and the Length field and Value fields are variable length.

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为11011的情况下,该第二部分比特用于指示struct的结束符,且Bit5-bit7的取值为000。In an example, when the value of the second part of bits (that is, Bit4-bit0) in the ControlByte field is 11011, the second part of bits is used to indicate the terminator of the struct, and the value of Bit5-bit7 is 000 .

在一个示例中,ControlByte字段中的第二部分比特(即Bit4-bit0)的取值为11100的情况下,该第二部分比特用于指示array的结束符,且Bit5-bit7的取值为000。In an example, when the value of the second part of bits (that is, Bit4-bit0) in the ControlByte field is 11100, the second part of bits is used to indicate the terminator of the array, and the value of Bit5-bit7 is 000 .

需要说明的是,上述无符号整型、有符号整型、布尔类型、浮点型、字节型属于基本数据类型。字符串类型属于引用类型。结构体类型和数组类型属于容器数据类型。It should be noted that the above-mentioned unsigned integer type, signed integer type, Boolean type, floating point type, and byte type belong to basic data types. String types are reference types. Structure types and array types are container data types.

在一个示例中,ControlByte字段中的第一部分比特(即Bit7-bit5)的取值为001的情况下,该第二部分比特用于指示数据的用途为设备接入通用。In an example, when the value of the first part of bits (that is, Bit7-bit5) in the ControlByte field is 001, the second part of bits is used to indicate that the purpose of the data is general for device access.

在一个示例中,ControlByte字段中的第一部分比特(即Bit7-bit5)的取值为010的情况下,该第二部分比特用于指示数据的用途为设备控制用,且Tag字段所描述的标签类型为iid tag,Tag字段的长度为1个字节。对于这种情况,tag值(即Tag字段的取值)为iid值,value值(即Value字段的取值)为idd对应的属性值。这里,iid为服务内属性、或者事件、或者方法的唯一标识。In an example, when the value of the first part of bits (ie Bit7-bit5) in the ControlByte field is 010, the second part of bits is used to indicate that the purpose of the data is for device control, and the tag described in the Tag field The type is iid tag, and the length of the Tag field is 1 byte. In this case, the tag value (that is, the value of the Tag field) is the iid value, and the value value (that is, the value of the Value field) is the attribute value corresponding to idd. Here, iid is the unique identifier of an attribute, event, or method within the service.

在一个示例中,ControlByte字段中的第一部分比特(即Bit7-bit5)的取值为100的情况下,该第二部分比特用于指示数据的用途为设备控制用,且Tag字段所描述的标签类型为index tag,Tag字段的长度为1个字节。对于这种情况,index使用于struct数据类型或者array数据类型中子元素的标记,tag值(即Tag字段的取值)为index值,value值(即Value字段的取值)为index标记的子元素的值。In an example, when the value of the first part of bits (namely Bit7-bit5) in the ControlByte field is 100, the second part of bits is used to indicate that the purpose of the data is for device control, and the tag described in the Tag field The type is index tag, and the length of the Tag field is 1 byte. In this case, index is used to mark subelements of struct data type or array data type, the tag value (that is, the value of the Tag field) is the index value, and the value value (that is, the value of the Value field) is the subelement of the index tag The value of the element.

在一个示例中,ControlByte字段中的第一部分比特(即Bit7-bit5)的取值为110的情况下,该第二部分比特用于指示数据的用途为设备控制通用。In an example, when the value of the first part of bits (that is, Bit7-bit5) in the ControlByte field is 110, the second part of bits is used to indicate that the purpose of the data is general purpose for device control.

在一个示例中,对于设备控制通用来说,参照表1-2,又细分了四种情况,每种情况的用途均可以称为设备控制用。对于第一种情况来说,tag值(即Tag字段的取值)为0x1,代表DeviceID标签,value值(即Value字段的取值)为deviceID值,这里,deviceID为标识一个设备的ID。对于第二种情况来说,tag值(即Tag字段的取值)为0x2,代表事务ID标签,value值(即Value字段的取值)为事务ID值,这里,事务ID为一组相关联的信令流的标识。对于第三种情况来说,tag值(即Tag字段的取值)为0x3,代表siid标签,value值(即Value字段的取值)为1个字节长度的siid值,这里,siid为一个服务实例的标识。对于第四种情况来说,tag值(即Tag字段的取值)为0x4,代表siid标签,value值(即Value字段的取值)为2个字节长度的siid值,这里,siid为一个服务实例的标识。In one example, for general equipment control, referring to Table 1-2, four situations are further subdivided, and the use of each situation can be called equipment control. For the first case, the tag value (i.e. the value of the Tag field) is 0x1, representing the DeviceID tag, and the value value (i.e. the value of the Value field) is the deviceID value, where deviceID is the ID identifying a device. For the second case, the tag value (that is, the value of the Tag field) is 0x2, which represents the transaction ID tag, and the value value (that is, the value of the Value field) is the transaction ID value. Here, the transaction ID is a set of associated The identifier of the signaling flow. For the third case, the tag value (that is, the value of the Tag field) is 0x3, which represents the siid tag, and the value value (that is, the value of the Value field) is a siid value with a length of 1 byte. Here, siid is a The ID of the service instance. For the fourth case, the tag value (that is, the value of the Tag field) is 0x4, which represents the siid tag, and the value value (that is, the value of the Value field) is a siid value with a length of 2 bytes. Here, siid is a The ID of the service instance.

(二)Tag字段(2) Tag field

本申请实施例中,所述Tag字段的长度为N2个字节,N2为正整数。在一可选方式中,所述N2的取值大于等于0且小于等于8,即所述Tag字段的长度为0-8个字节。In the embodiment of the present application, the length of the Tag field is N2 bytes, and N2 is a positive integer. In an optional manner, the value of N2 is greater than or equal to 0 and less than or equal to 8, that is, the length of the Tag field is 0-8 bytes.

在一个示例中,Tag字段占据的字节的结构如下表2-1所示,其中,该字节的最高位(即bit7)为Tag长度标识位,该字节的低7位(即bit6-bit0)用于标识Tag值。In an example, the structure of the byte occupied by the Tag field is shown in Table 2-1 below, where the highest bit (bit7) of the byte is the Tag length identification bit, and the lower 7 bits of the byte (bit6- bit0) is used to identify the Tag value.

表2-1table 2-1

在另一个示例中,Tag字段占据的字节的结构如下表2-2所示,其中,该字节的全部比特位(即bit7-bit0)用于标识Tag值。In another example, the structure of the byte occupied by the Tag field is shown in Table 2-2 below, wherein all bits (ie, bit7-bit0) of the byte are used to identify the Tag value.

表2-2Table 2-2

Tag字段可以占据一个或者多个字节。本申请实施例中,Tag字段的长度和取值,可以通过以下方案来确定。The Tag field can occupy one or more bytes. In the embodiment of the present application, the length and value of the Tag field can be determined through the following solutions.

方案一)所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。Solution 1) The Tag field occupies the first byte, if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies the first byte, and the The value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is a Tag length identification bit.

在一可选方式中,所述第一值为0。具体地,当一个字节中的Tag长度标识位的取值为0,则使用Bit6-bit0来标识tag值(即确定Tag字段的取值)。In an optional manner, the first value is 0. Specifically, when the value of the Tag length identification bit in a byte is 0, Bit6-bit0 is used to identify the tag value (that is, to determine the value of the Tag field).

方案二)所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。Solution 2) The Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte after the first byte. Two bytes and a third byte, and the value of the Tag field is determined by all bits in the second byte and all bits in the third byte; wherein, the first word The highest bit in the section is the Tag length identification bit.

在一可选方式中,所述第二值为1。具体地,当一个字节(即第一字节)中的Tag长度标识位的取值为1,则表示紧跟该字节后的两个字节也属于Tag字段,且使用后面两个字节的全部比特位来标识tag值(即确定Tag字段的取值)。需要说明的是,第一字节中的bit6-bit0不使用。In an optional manner, the second value is 1. Specifically, when the value of the Tag length identification bit in a byte (that is, the first byte) is 1, it means that the two bytes following the byte also belong to the Tag field, and the following two characters are used All bits of the section are used to identify the tag value (that is, to determine the value of the Tag field). It should be noted that bit6-bit0 in the first byte are not used.

方案三)所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。Solution 3) The Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte after the first byte. Two bytes, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, the highest bit in the first byte Identifies the length of the Tag.

在一可选方式中,所述第二值为1。具体地,当一个字节(即第一字节)的Tag长度标识位的 取值为1,则表示使用紧跟该字节后的一个字节也属于Tag字段,且使用第一字节的bit6-bit0和后一个字节的bit7-bit0来标识tag值(即确定Tag字段的取值)。In an optional manner, the second value is 1. Specifically, when the value of the Tag length identification bit of a byte (that is, the first byte) is 1, it means that the byte following the byte also belongs to the Tag field, and the value of the first byte is used bit6-bit0 and bit7-bit0 of the next byte to identify the tag value (that is, to determine the value of the Tag field).

方案四)所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。Solution 4) The Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte after the first byte. Two bytes, if the value of the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte, and so on until the The value of the highest bit in the Mth byte occupied by the Tag field is the first value, and the Mth byte is taken as the last byte occupied by the Tag field, and M is a positive integer; the value of the Tag field It is determined by the lower 7 bits in each byte of the first byte to the Mth byte.

在一可选方式中,所述第二值为1,所述第一值为0。具体地,当一个字节(即第一字节)的Tag长度标识位为1,则表示紧跟该字节后的一个字节(即第二字节)也属于Tag字段;如果第二字节的Tag长度标识位也为1,则表示紧跟该字节后的一个字节(即第三字节)也属于Tag字段,以此类推,直到第M字节的Tag长度标识位为0,则该第M字节为Tag字段占据的最后一个字节。使用每一个字节的bit6-bit0来标识tag值(即确定Tag字段的取值)。In an optional manner, the second value is 1, and the first value is 0. Specifically, when the Tag length identification bit of a byte (i.e. the first byte) is 1, it means that a byte immediately following the byte (i.e. the second byte) also belongs to the Tag field; if the second word If the Tag length flag of the section is also 1, it means that the byte following the byte (i.e. the third byte) also belongs to the Tag field, and so on until the Tag length flag of the Mth byte is 0 , then the Mth byte is the last byte occupied by the Tag field. Use bit6-bit0 of each byte to identify the tag value (that is, to determine the value of the Tag field).

以Tag字段占两个字节为例,以下表3给出了Tag字段占据第一字节和第二字节。其中,第一字节的Tag长度标识位为1,代表第一字节后紧跟一个字节(即第二字节)也属于Tag字段,第二字节的Tag长度标识位为0,代表第二字节为Tag字段占据的最后一个字节。使用第一字节的bit6-bit0和第二字节的bit6-bit0来标识tag值(即确定Tag字段的取值)为:00000010000001(二进制)=129(十进制)。其中,二进制数据中的前半部分0000001对应于第一字节的bit6-bit0,后半部分0000001对应于第二字节的bit6-bit0,两部分组合一起后标识一个tag值为“129”。需要说明的是,如果有三个字节或者更多数目的字节可以以此类推。Taking the Tag field occupying two bytes as an example, Table 3 below shows that the Tag field occupies the first byte and the second byte. Among them, the Tag length identification bit of the first byte is 1, which means that the first byte is followed by a byte (that is, the second byte) also belongs to the Tag field, and the Tag length identification bit of the second byte is 0, representing The second byte is the last byte occupied by the Tag field. Using bit6-bit0 of the first byte and bit6-bit0 of the second byte to identify the tag value (that is, determine the value of the Tag field) is: 00000010000001 (binary)=129 (decimal). Among them, the first half of the binary data 0000001 corresponds to bit6-bit0 of the first byte, and the second half of 0000001 corresponds to bit6-bit0 of the second byte. After the two parts are combined, a tag value is "129". It should be noted that if there are three or more bytes, the same can be done.

表3table 3

方案五)所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为iid tag或者index tag或者DeviceID tag或者事务ID tag或者siid tag。Scheme 5) The length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag is used to determine at least one of the following: Tag field length, and the tag type described in the Tag field is iid tag or index tag or DeviceID tag or transaction ID tag or siid tag.

对于方案五)来说,可以直接根据ControlByte字段中的第一部分(即tagControl部分)来确定Tag字段的长度。具体可以参照以上表1-1所示的内容来确定ControlByte字段中的第一部分的取值所对应的指示内容。For scheme five), the length of the Tag field can be determined directly according to the first part (namely the tagControl part) in the ControlByte field. Specifically, the indication content corresponding to the value of the first part in the ControlByte field can be determined with reference to the content shown in the above Table 1-1.

(三)Length字段(3) Length field

本申请实施例中,所述Length字段的长度为N3个字节,N3为正整数。在一可选方式中,所述N3的取值大于等于0且小于等于8,即所述Length字段的长度为0-8个字节。In the embodiment of the present application, the length of the Length field is N3 bytes, and N3 is a positive integer. In an optional manner, the value of N3 is greater than or equal to 0 and less than or equal to 8, that is, the length of the Length field is 0-8 bytes.

本申请实施例中,对于某些数据类型(例如基本数据类型)来说,Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。In this embodiment of the application, for some data types (such as basic data types), the length of the Length field is determined based on the second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the Length field length.

需要说明的是,容器数据类型(如struct类型、array类型)的Length字段是可变长度,因此可以使用变长的方式来确定其长度。在一可选方式中,可以使用struct或者array的结束符来标识一个struct或者struct的结束位置,从而根据该结束位置确定Length字段的长度。It should be noted that the Length field of container data types (such as struct type and array type) has a variable length, so a variable length method can be used to determine its length. In an optional manner, the terminator of the struct or array may be used to identify the end position of a struct or struct, so as to determine the length of the Length field according to the end position.

需要说明的是,基本数据类型例如是表2-1所示的无符号整型(uint),有符号整型(nit),浮点型(float)等。容器数据类型例如是表2-1所示的结构体(struct)类型,数组(array)类型等。It should be noted that the basic data types are, for example, unsigned integer (uint), signed integer (nit), and floating point (float) shown in Table 2-1. The container data type is, for example, the structure (struct) type and array (array) type shown in Table 2-1.

(四)Value字段(4) Value field

本申请实施例中,所述Value字段的长度为N4个字节,N4的取值为正整数。In the embodiment of the present application, the length of the Value field is N4 bytes, and the value of N4 is a positive integer.

本申请实施例中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。In this embodiment of the present application, the length of the Value field is determined based on the second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the ControlByte The second part of the field is used to indicate the terminator of the container data type.

本申请实施例的上述技术方案,提供了一种新型的TLV结构(即第一TLV结构),在一个示例中,以下表4给出了第一TLV结构的总体结构,其中,ControlByte字段的长度为1个字节(byte),Tag字段的长度为0至8个字节,Length字段的长度为0至8个字节,Value字段根据内容为可变长度。The above technical solution of the embodiment of the present application provides a new type of TLV structure (i.e. the first TLV structure). In one example, the following table 4 shows the overall structure of the first TLV structure, wherein the length of the ControlByte field The length of the Tag field is 0 to 8 bytes, the length of the Length field is 0 to 8 bytes, and the value field has a variable length according to the content.

ControlByteControlByte Tagtag LengthLength Valuevalue 1byte1byte 0-8bytes0-8bytes 0-8bytes0-8bytes 变长lengthen

表4Table 4

客户端和服务端可以在相互交互的信令中使用上述方案中的第一TLV格式对负载的内容(即信令中承载的数据)进行编解码,从而提高编解码效率。The client and the server can use the first TLV format in the above solution to encode and decode the content of the payload (ie, the data carried in the signaling) in the signaling interacted with each other, thereby improving the efficiency of encoding and decoding.

图4是本申请实施例提供的数据传输装置的结构组成示意图一,应用于第一设备,如图4所示,所述数据传输装置包括:Fig. 4 is a schematic diagram of the structure and composition of the data transmission device provided by the embodiment of the present application. It is applied to the first device. As shown in Fig. 4, the data transmission device includes:

发送单元401,用于向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,A sending unit 401, configured to send a first signaling to a second device, where the data carried in the first signaling is encoded using a first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field.

在一可选方式中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。In an optional manner, the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer.

在一可选方式中,所述N1的取值为1。In an optional manner, the value of N1 is 1.

在一可选方式中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。In an optional manner, the first part of bits in the ControlByte field is used to indicate that the usage of the data is one of the following: general for device access, general for device control, general for device control.

在一可选方式中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。In an optional manner, the first part of bits in the ControlByte field is also used to indicate the description of the Tag.

在一可选方式中,所述Tag的说明用于确定以下至少之一In an optional manner, the description of the Tag is used to determine at least one of the following

Tag字段的长度;The length of the Tag field;

Tag字段所描述的标签类型为iid tag或者index tag或者DeviceID tag或者事务ID tag或者siid tag。The tag type described in the Tag field is iid tag or index tag or DeviceID tag or transaction ID tag or siid tag.

在一可选方式中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。In an optional manner, the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field.

在一可选方式中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。In an optional manner, the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field.

在一可选方式中,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。In an optional manner, the second part of bits in the ControlByte field is also used to indicate at least one of the following: the length of the Length field, and the length of the Value field.

在一可选方式中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。In an optional manner, the second part of bits in the ControlByte field is also used to indicate: the terminator of the container data type.

在一可选方式中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。In an optional manner, the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field.

在一可选方式中,所述Tag字段的长度为N2个字节,N2为正整数。In an optional manner, the length of the Tag field is N2 bytes, and N2 is a positive integer.

在一可选方式中,所述N2的取值大于等于0且小于等于8。In an optional manner, the value of N2 is greater than or equal to 0 and less than or equal to 8.

在一可选方式中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。In an optional manner, the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies the first byte , and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte and the third byte after the section, and the value of the Tag field is determined by all the bits in the second byte and all the bits in the third byte; wherein, The highest bit in the first byte is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte after the section, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, the first byte The highest bit in is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte after the second byte, if the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte, and so on , until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, the Mth byte is taken as the last byte occupied by the Tag field, and M is a positive integer; the Tag The value of the field is determined by the lower 7 bits in each byte of the first byte to the Mth byte.

在一可选方式中,所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag 字段的长度、Tag字段所描述的标签类型为iid tag或者index tag或者DeviceID tag或者事务ID tag或者siid tag。In an optional manner, the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag is used to determine at least one of the following 1: The length of the Tag field, and the tag type described by the Tag field is iid tag or index tag or DeviceID tag or transaction ID tag or siid tag.

在一可选方式中,所述Length字段的长度为N3个字节,N3为正整数。In an optional manner, the length of the Length field is N3 bytes, and N3 is a positive integer.

在一可选方式中,所述N3的取值大于等于0且小于等于8。In an optional manner, the value of N3 is greater than or equal to 0 and less than or equal to 8.

在一可选方式中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。In an optional manner, the length of the Length field is determined based on a second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field.

在一可选方式中,所述Value字段的长度为N4个字节,N4的取值为正整数。In an optional manner, the length of the Value field is N4 bytes, and the value of N4 is a positive integer.

在一可选方式中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,In an optional manner, the length of the Value field is determined based on the second part in the ControlByte field,

所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type.

在一可选方式中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。In an optional manner, the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data.

本领域技术人员应当理解,本申请实施例的上述数据传输装置的相关描述可以参照本申请实施例的数据传输方法的相关描述进行理解。Those skilled in the art should understand that the relevant description of the data transmission apparatus in the embodiment of the present application can be understood with reference to the relevant description of the data transmission method in the embodiment of the present application.

图5是本申请实施例提供的数据传输装置的结构组成示意图二,应用于第二设备,如图5所示,所述数据传输装置包括:Fig. 5 is a schematic diagram of the second structural composition of the data transmission device provided by the embodiment of the present application, which is applied to the second device. As shown in Fig. 5, the data transmission device includes:

接收单元501,用于接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The receiving unit 501 is configured to receive the first signaling sent by the first device, where the data carried in the first signaling is encoded in the first TLV format; wherein,

所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field.

在一可选方式中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。In an optional manner, the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer.

在一可选方式中,所述N1的取值为1。In an optional manner, the value of N1 is 1.

在一可选方式中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。In an optional manner, the first part of bits in the ControlByte field is used to indicate that the usage of the data is one of the following: general for device access, general for device control, general for device control.

在一可选方式中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。In an optional manner, the first part of bits in the ControlByte field is also used to indicate the description of the Tag.

在一可选方式中,所述Tag的说明用于确定以下至少之一:In an optional manner, the description of the Tag is used to determine at least one of the following:

Tag字段的长度;The length of the Tag field;

Tag字段所描述的标签类型为iid tag或者index tag或者DeviceID tag或者事务ID tag或者siid tag。The tag type described in the Tag field is iid tag or index tag or DeviceID tag or transaction ID tag or siid tag.

在一可选方式中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。In an optional manner, the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field.

在一可选方式中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。In an optional manner, the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field.

在一可选方式中,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。In an optional manner, the second part of bits in the ControlByte field is also used to indicate at least one of the following: the length of the Length field, and the length of the Value field.

在一可选方式中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。In an optional manner, the second part of bits in the ControlByte field is also used to indicate: the terminator of the container data type.

在一可选方式中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。In an optional manner, the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field.

在一可选方式中,所述Tag字段的长度为N2个字节,N2为正整数。In an optional manner, the length of the Tag field is N2 bytes, and N2 is a positive integer.

在一可选方式中,所述N2的取值大于等于0且小于等于8。In an optional manner, the value of N2 is greater than or equal to 0 and less than or equal to 8.

在一可选方式中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。In an optional manner, the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies the first byte , and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte and the third byte after the section, and the value of the Tag field is determined by all the bits in the second byte and all the bits in the third byte; wherein, The highest bit in the first byte is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为 Tag长度标识位。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte after the section, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, the first byte The highest bit in is the Tag length identification bit.

在一可选方式中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。In an optional manner, the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field also occupies the first byte The second byte after the second byte, if the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte, and so on , until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, the Mth byte is taken as the last byte occupied by the Tag field, and M is a positive integer; the Tag The value of the field is determined by the lower 7 bits in each byte of the first byte to the Mth byte.

在一可选方式中,所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为iid tag或者index tag或者DeviceID tag或者事务ID tag或者siid tag。In an optional manner, the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag is used to determine at least one of the following One: The length of the Tag field, and the tag type described in the Tag field is iid tag or index tag or DeviceID tag or transaction ID tag or siid tag.

在一可选方式中,所述Length字段的长度为N3个字节,N3为正整数。In an optional manner, the length of the Length field is N3 bytes, and N3 is a positive integer.

在一可选方式中,所述N3的取值大于等于0且小于等于8。In an optional manner, the value of N3 is greater than or equal to 0 and less than or equal to 8.

在一可选方式中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。In an optional manner, the length of the Length field is determined based on a second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field.

在一可选方式中,所述Value字段的长度为N4个字节,N4的取值为正整数。In an optional manner, the length of the Value field is N4 bytes, and the value of N4 is a positive integer.

在一可选方式中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,In an optional manner, the length of the Value field is determined based on the second part in the ControlByte field,

所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type.

在一可选方式中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。In an optional manner, the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data.

本领域技术人员应当理解,本申请实施例的上述数据传输装置的相关描述可以参照本申请实施例的数据传输方法的相关描述进行理解。Those skilled in the art should understand that the relevant description of the data transmission apparatus in the embodiment of the present application can be understood with reference to the relevant description of the data transmission method in the embodiment of the present application.

图6是本申请实施例提供的一种通信设备600示意性结构图。该通信设备可以是第一设备,也可以是第二设备,其中,第一设备可以是客户端或者服务端,第二设备可以是服务端或者客户端,图6所示的通信设备600包括处理器610,处理器610可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。FIG. 6 is a schematic structural diagram of a communication device 600 provided in an embodiment of the present application. The communication device may be a first device or a second device, wherein the first device may be a client or a server, and the second device may be a server or a client. The communication device 600 shown in FIG. 6 includes a processing The processor 610, and the processor 610 can invoke and run a computer program from the memory, so as to implement the method in the embodiment of the present application.

可选地,如图6所示,通信设备600还可以包括存储器620。其中,处理器610可以从存储器620中调用并运行计算机程序,以实现本申请实施例中的方法。Optionally, as shown in FIG. 6 , the communication device 600 may further include a memory 620 . Wherein, the processor 610 can invoke and run a computer program from the memory 620, so as to implement the method in the embodiment of the present application.

其中,存储器620可以是独立于处理器610的一个单独的器件,也可以集成在处理器610中。Wherein, the memory 620 may be an independent device independent of the processor 610 , or may be integrated in the processor 610 .

可选地,如图6所示,通信设备600还可以包括收发器630,处理器610可以控制该收发器630与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。Optionally, as shown in FIG. 6, the communication device 600 may further include a transceiver 630, and the processor 610 may control the transceiver 630 to communicate with other devices, specifically, to send information or data to other devices, or receive other Information or data sent by the device.

其中,收发器630可以包括发射机和接收机。收发器630还可以进一步包括天线,天线的数量可以为一个或多个。Wherein, the transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include antennas, and the number of antennas may be one or more.

可选地,该通信设备600具体可为本申请实施例的网络设备,并且该通信设备600可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the communication device 600 may specifically be the network device of the embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the network device in each method of the embodiment of the present application. For the sake of brevity, details are not repeated here. .

可选地,该通信设备600具体可为本申请实施例的移动终端/终端设备,并且该通信设备600可以实现本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the communication device 600 may specifically be the mobile terminal/terminal device of the embodiment of the present application, and the communication device 600 may implement the corresponding processes implemented by the mobile terminal/terminal device in each method of the embodiment of the present application, for the sake of brevity , which will not be repeated here.

图7是本申请实施例的芯片的示意性结构图。图7所示的芯片700包括处理器710,处理器710可以从存储器中调用并运行计算机程序,以实现本申请实施例中的方法。FIG. 7 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 700 shown in FIG. 7 includes a processor 710, and the processor 710 can call and run a computer program from a memory, so as to implement the method in the embodiment of the present application.

可选地,如图7所示,芯片700还可以包括存储器720。其中,处理器710可以从存储器720中调用并运行计算机程序,以实现本申请实施例中的方法。Optionally, as shown in FIG. 7 , the chip 700 may further include a memory 720 . Wherein, the processor 710 can invoke and run a computer program from the memory 720, so as to implement the method in the embodiment of the present application.

其中,存储器720可以是独立于处理器710的一个单独的器件,也可以集成在处理器710中。Wherein, the memory 720 may be an independent device independent of the processor 710 , or may be integrated in the processor 710 .

可选地,该芯片700还可以包括输入接口730。其中,处理器710可以控制该输入接口730与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。Optionally, the chip 700 may also include an input interface 730 . Wherein, the processor 710 may control the input interface 730 to communicate with other devices or chips, specifically, may obtain information or data sent by other devices or chips.

可选地,该芯片700还可以包括输出接口740。其中,处理器710可以控制该输出接口740与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。Optionally, the chip 700 may also include an output interface 740 . Wherein, the processor 710 can control the output interface 740 to communicate with other devices or chips, specifically, can output information or data to other devices or chips.

可选地,该芯片可应用于本申请实施例中的网络设备,并且该芯片可以实现本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the chip can be applied to the network device in the embodiment of the present application, and the chip can implement the corresponding processes implemented by the network device in the methods of the embodiment of the present application. For the sake of brevity, details are not repeated here.

可选地,该芯片可应用于本申请实施例中的移动终端/终端设备,并且该芯片可以实现本申请实 施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the chip can be applied to the mobile terminal/terminal device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the mobile terminal/terminal device in the various methods of the embodiments of the present application. For the sake of brevity, here No longer.

应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiment of the present application may also be called a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip.

应理解,本申请实施例的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be understood that the processor in the embodiment of the present application may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software. The above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM ) and direct memory bus random access memory (Direct Rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but not be limited to, these and any other suitable types of memory.

应理解,上述存储器为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be understood that the above-mentioned memory is illustrative but not restrictive. For example, the memory in the embodiment of the present application may also be a static random access memory (static RAM, SRAM), a dynamic random access memory (dynamic RAM, DRAM), Synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection Dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is, the memory in the embodiments of the present application is intended to include, but not be limited to, these and any other suitable types of memory.

本申请实施例还提供了一种计算机可读存储介质,用于存储计算机程序。The embodiment of the present application also provides a computer-readable storage medium for storing computer programs.

可选的,该计算机可读存储介质可应用于本申请实施例中的网络设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer-readable storage medium can be applied to the network device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in the methods of the embodiments of the present application. For brevity, here No longer.

可选地,该计算机可读存储介质可应用于本申请实施例中的移动终端/终端设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer-readable storage medium can be applied to the mobile terminal/terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal/terminal device in the various methods of the embodiments of the present application , for the sake of brevity, it is not repeated here.

本申请实施例还提供了一种计算机程序产品,包括计算机程序指令。The embodiment of the present application also provides a computer program product, including computer program instructions.

可选的,该计算机程序产品可应用于本申请实施例中的网络设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program product may be applied to the network device in the embodiment of the present application, and the computer program instructions cause the computer to execute the corresponding process implemented by the network device in each method of the embodiment of the present application. For the sake of brevity, the Let me repeat.

可选地,该计算机程序产品可应用于本申请实施例中的移动终端/终端设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program product can be applied to the mobile terminal/terminal device in the embodiments of the present application, and the computer program instructions cause the computer to execute the corresponding processes implemented by the mobile terminal/terminal device in the methods of the embodiments of the present application, For the sake of brevity, details are not repeated here.

本申请实施例还提供了一种计算机程序。The embodiment of the present application also provides a computer program.

可选的,该计算机程序可应用于本申请实施例中的网络设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由网络设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program can be applied to the network device in the embodiment of the present application. When the computer program is run on the computer, the computer executes the corresponding process implemented by the network device in each method of the embodiment of the present application. For the sake of brevity , which will not be repeated here.

可选地,该计算机程序可应用于本申请实施例中的移动终端/终端设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由移动终端/终端设备实现的相应流程,为了简洁,在此不再赘述。Optionally, the computer program can be applied to the mobile terminal/terminal device in the embodiment of the present application. When the computer program is run on the computer, the computer executes each method in the embodiment of the present application to be implemented by the mobile terminal/terminal device For the sake of brevity, the corresponding process will not be repeated here.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤, 能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,)ROM、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory,) ROM, random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (101)

一种数据传输方法,所述方法包括:A data transmission method, the method comprising: 第一设备向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The first device sends first signaling to the second device, where the data carried in the first signaling is encoded in a first TLV format; wherein, 所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field. 根据权利要求1所述的方法,其中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。The method according to claim 1, wherein the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer. 根据权利要求2所述的方法,其中,所述N1的取值为1。The method according to claim 2, wherein the value of N1 is 1. 根据权利要求3所述的方法,其中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。The method according to claim 3, wherein the first part of bits in the ControlByte field is used to indicate that the use of the data is one of the following: general use for device access, general use for device control, and general use for device control. 根据权利要求4所述的方法,其中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。The method according to claim 4, wherein the first part of bits in the ControlByte field is also used to indicate the description of Tag. 根据权利要求5所述的方法,其中,所述Tag的说明用于确定以下至少之一:The method according to claim 5, wherein the description of the Tag is used to determine at least one of the following: Tag字段的长度;The length of the Tag field; Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The tag type described in the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求4至6中任一项所述的方法,其中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。The method according to any one of claims 4 to 6, wherein the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field. 根据权利要求3至7中任一项所述的方法,其中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。The method according to any one of claims 3 to 7, wherein the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field. 根据权利要求8所述的方法,其中,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。The method according to claim 8, wherein the second part of bits in the ControlByte field is further used to indicate at least one of the following: the length of the Length field, and the length of the Value field. 根据权利要求8所述的方法,其中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。The method according to claim 8, wherein the second part of bits in the ControlByte field is also used to indicate: a terminator of the container data type. 根据权利要求8至10中任一项所述的方法,其中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。The method according to any one of claims 8 to 10, wherein the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field. 根据权利要求1至11中任一项所述的方法,其中,所述Tag字段的长度为N2个字节,N2为正整数。The method according to any one of claims 1 to 11, wherein the length of the Tag field is N2 bytes, and N2 is a positive integer. 根据权利要求12所述的方法,其中,所述N2的取值大于等于0且小于等于8。The method according to claim 12, wherein the value of N2 is greater than or equal to 0 and less than or equal to 8. 根据权利要求12或13所述的方法,其中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 12 or 13, wherein the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies The first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is a Tag length identification bit. 根据权利要求12或13所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 12 or 13, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte and the third byte after the first byte, and the value of the Tag field passes through all the bits in the second byte and all the bits in the third byte bit determination; wherein, the highest bit in the first byte is the Tag length identification bit. 根据权利要求12或13所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 12 or 13, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, The highest bit in the first byte is the Tag length identification bit. 根据权利要求12或13所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。The method according to claim 12 or 13, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, if the value of the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte byte, and so on, until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, and the Mth byte is taken as the last byte occupied by the Tag field, and M is A positive integer; the value of the Tag field is determined by the lower 7 bits of each byte in the first byte to the Mth byte. 根据权利要求12或13所述的方法,其中,所述Tag字段的长度基于所述ControlByte 字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The method according to claim 12 or 13, wherein the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag It is used to determine at least one of the following: the length of the Tag field, and the tag type described by the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求1至18中任一项所述的方法,其中,所述Length字段的长度为N3个字节,N3为正整数。The method according to any one of claims 1 to 18, wherein the length of the Length field is N3 bytes, and N3 is a positive integer. 根据权利要求19所述的方法,其中,所述N3的取值大于等于0且小于等于8。The method according to claim 19, wherein the value of N3 is greater than or equal to 0 and less than or equal to 8. 根据权利要求19或20所述的方法,其中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。The method according to claim 19 or 20, wherein the length of the Length field is determined based on the second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field. 根据权利要求1至21中任一项所述的方法,其中,所述Value字段的长度为N4个字节,N4的取值为正整数。The method according to any one of claims 1 to 21, wherein the length of the Value field is N4 bytes, and the value of N4 is a positive integer. 根据权利要求22所述的方法,其中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,The method according to claim 22, wherein the length of the Value field is determined based on the second part in the ControlByte field, 所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type. 根据权利要求1至23中任一项所述的方法,其中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。The method according to any one of claims 1 to 23, wherein the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data . 一种数据传输方法,所述方法包括:A data transmission method, the method comprising: 第二设备接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The second device receives the first signaling sent by the first device, where the data carried in the first signaling is encoded in a first TLV format; wherein, 所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field. 根据权利要求25所述的方法,其中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。The method according to claim 25, wherein the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer. 根据权利要求26所述的方法,其中,所述N1的取值为1。The method according to claim 26, wherein the value of N1 is 1. 根据权利要求27所述的方法,其中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。The method according to claim 27, wherein the first part of bits in the ControlByte field is used to indicate that the use of the data is one of the following: general use for device access, general use for device control, and general use for device control. 根据权利要求28所述的方法,其中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。The method according to claim 28, wherein the first part of bits in the ControlByte field is also used to indicate the description of Tag. 根据权利要求29所述的方法,其中,所述Tag的说明用于确定以下至少之一:The method according to claim 29, wherein the description of the Tag is used to determine at least one of the following: Tag字段的长度;The length of the Tag field; Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The tag type described in the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求28至30中任一项所述的方法,其中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。The method according to any one of claims 28 to 30, wherein the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field. 根据权利要求27至31中任一项所述的方法,其中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。The method according to any one of claims 27 to 31, wherein the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field. 根据权利要求32所述的方法,其中,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。The method according to claim 32, wherein the second part of bits in the ControlByte field is also used to indicate at least one of the following: the length of the Length field and the length of the Value field. 根据权利要求32所述的方法,其中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。The method according to claim 32, wherein the second part of bits in the ControlByte field is also used to indicate: a terminator of the container data type. 根据权利要求32至34中任一项所述的方法,其中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。The method according to any one of claims 32 to 34, wherein the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field. 根据权利要求25至35中任一项所述的方法,其中,所述Tag字段的长度为N2个字节,N2为正整数。The method according to any one of claims 25 to 35, wherein the length of the Tag field is N2 bytes, and N2 is a positive integer. 根据权利要求36所述的方法,其中,所述N2的取值大于等于0且小于等于8。The method according to claim 36, wherein the value of said N2 is greater than or equal to 0 and less than or equal to 8. 根据权利要求36或37所述的方法,其中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 36 or 37, wherein the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies The first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is a Tag length identification bit. 根据权利要求36或37所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和 第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 36 or 37, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte and the third byte after the first byte, and the value of the Tag field passes through all the bits in the second byte and all the bits in the third byte bit determination; wherein, the highest bit in the first byte is the Tag length identification bit. 根据权利要求36或37所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The method according to claim 36 or 37, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, The highest bit in the first byte is the Tag length identification bit. 根据权利要求36或37所述的方法,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。The method according to claim 36 or 37, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, if the value of the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte byte, and so on, until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, and the Mth byte is taken as the last byte occupied by the Tag field, and M is A positive integer; the value of the Tag field is determined by the lower 7 bits of each byte in the first byte to the Mth byte. 根据权利要求36或37所述的方法,其中,所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The method according to claim 36 or 37, wherein the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag It is used to determine at least one of the following: the length of the Tag field, and the tag type described by the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求25至42中任一项所述的方法,其中,所述Length字段的长度为N3个字节,N3为正整数。The method according to any one of claims 25 to 42, wherein the length of the Length field is N3 bytes, and N3 is a positive integer. 根据权利要求43所述的方法,其中,所述N3的取值大于等于0且小于等于8。The method according to claim 43, wherein the value of N3 is greater than or equal to 0 and less than or equal to 8. 根据权利要求43或44所述的方法,其中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。The method according to claim 43 or 44, wherein the length of the Length field is determined based on the second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field. 根据权利要求25至45中任一项所述的方法,其中,所述Value字段的长度为N4个字节,N4的取值为正整数。The method according to any one of claims 25 to 45, wherein the length of the Value field is N4 bytes, and the value of N4 is a positive integer. 根据权利要求46所述的方法,其中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,The method according to claim 46, wherein the length of the Value field is determined based on the second part in the ControlByte field, 所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type. 根据权利要求25至47中任一项所述的方法,其中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。The method according to any one of claims 25 to 47, wherein the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data . 一种数据传输装置,应用于第一设备,所述装置包括:A data transmission device applied to a first device, the device comprising: 发送单元,用于向第二设备发送第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,A sending unit, configured to send a first signaling to a second device, where the data carried in the first signaling is encoded in a first TLV format; wherein, 所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field. 根据权利要求49所述的装置,其中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。The device according to claim 49, wherein the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer. 根据权利要求50所述的装置,其中,所述N1的取值为1。The device according to claim 50, wherein the value of N1 is 1. 根据权利要求51所述的装置,其中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。The apparatus according to claim 51, wherein the first part of bits in the ControlByte field is used to indicate that the use of the data is one of the following: general use for device access, general use for device control, and general use for device control. 根据权利要求52所述的装置,其中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。The device according to claim 52, wherein the first part of bits in the ControlByte field is also used to indicate the description of Tag. 根据权利要求53所述的装置,其中,所述Tag的说明用于确定以下至少之一:The device according to claim 53, wherein the description of the Tag is used to determine at least one of the following: Tag字段的长度;The length of the Tag field; Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The tag type described in the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求52至54中任一项所述的装置,其中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。The apparatus according to any one of claims 52 to 54, wherein the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field. 根据权利要求51至55中任一项所述的装置,其中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。The device according to any one of claims 51 to 55, wherein the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field. 根据权利要求56所述的装置,其中,所述ControlByte字段中的第二部分比特还用于指 示以下至少之一:Length字段的长度、Value字段的长度。The device according to claim 56, wherein the second part of bits in the ControlByte field is also used to indicate at least one of the following: the length of the Length field, the length of the Value field. 根据权利要求56所述的装置,其中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。The device according to claim 56, wherein the second part of bits in the ControlByte field is also used to indicate: a terminator of the container data type. 根据权利要求56至58中任一项所述的装置,其中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。The apparatus according to any one of claims 56 to 58, wherein the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field. 根据权利要求49至59中任一项所述的装置,其中,所述Tag字段的长度为N2个字节,N2为正整数。The device according to any one of claims 49 to 59, wherein the length of the Tag field is N2 bytes, and N2 is a positive integer. 根据权利要求60所述的装置,其中,所述N2的取值大于等于0且小于等于8。The device according to claim 60, wherein the value of N2 is greater than or equal to 0 and less than or equal to 8. 根据权利要求60或61所述的装置,其中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 60 or 61, wherein the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies The first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is a Tag length identification bit. 根据权利要求60或61所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 60 or 61, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte and the third byte after the first byte, and the value of the Tag field passes all the bits in the second byte and all the bits in the third byte bit determination; wherein, the highest bit in the first byte is the Tag length identification bit. 根据权利要求60或61所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 60 or 61, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, The highest bit in the first byte is the Tag length identification bit. 根据权利要求60或61所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。The device according to claim 60 or 61, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, if the value of the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte byte, and so on, until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, and the Mth byte is taken as the last byte occupied by the Tag field, and M is A positive integer; the value of the Tag field is determined by the lower 7 bits of each byte in the first byte to the Mth byte. 根据权利要求60或61所述的装置,其中,所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The device according to claim 60 or 61, wherein the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag It is used to determine at least one of the following: the length of the Tag field, and the tag type described by the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求49至66中任一项所述的装置,其中,所述Length字段的长度为N3个字节,N3为正整数。The device according to any one of claims 49 to 66, wherein the length of the Length field is N3 bytes, and N3 is a positive integer. 根据权利要求67所述的装置,其中,所述N3的取值大于等于0且小于等于8。The device according to claim 67, wherein the value of N3 is greater than or equal to 0 and less than or equal to 8. 根据权利要求67或68所述的装置,其中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。The apparatus according to claim 67 or 68, wherein the length of the Length field is determined based on a second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field. 根据权利要求49至69中任一项所述的装置,其中,所述Value字段的长度为N4个字节,N4的取值为正整数。The device according to any one of claims 49 to 69, wherein the length of the Value field is N4 bytes, and the value of N4 is a positive integer. 根据权利要求70所述的装置,其中,所述Value字段的长度基于所述ControlByte字段中的第二部分确定,The apparatus according to claim 70, wherein the length of the Value field is determined based on the second part in the ControlByte field, 所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type. 根据权利要求49至71中任一项所述的装置,其中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。The device according to any one of claims 49 to 71, wherein the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data . 一种数据传输装置,应用于第二设备,所述装置包括:A data transmission device applied to a second device, the device comprising: 接收单元,用于接收第一设备发送的第一信令,所述第一信令中承载的数据采用第一TLV格式进行编码;其中,The receiving unit is configured to receive the first signaling sent by the first device, where the data carried in the first signaling is encoded in the first TLV format; wherein, 所述第一TLV格式用于确定第一TLV结构,所述第一TLV结构包括控制字节ControlByte字段、标签Tag字段、以及以下至少之一:长度Length字段、取值Value字段。The first TLV format is used to determine a first TLV structure, and the first TLV structure includes a ControlByte field, a Tag field, and at least one of the following: a Length field, and a Value field. 根据权利要求73所述的装置,其中,所述ControlByte字段的长度为N1个字节,所述N1的取值为正整数。The device according to claim 73, wherein the length of the ControlByte field is N1 bytes, and the value of N1 is a positive integer. 根据权利要求74所述的装置,其中,所述N1的取值为1。The apparatus according to claim 74, wherein the value of N1 is 1. 根据权利要求75所述的装置,其中,所述ControlByte字段中的第一部分比特用于指示所述数据的用途为以下之一:设备接入通用、设备控制用、设备控制通用。The device according to claim 75, wherein the first part of bits in the ControlByte field is used to indicate that the use of the data is one of the following: general for device access, general for device control, general for device control. 根据权利要求76所述的装置,其中,所述ControlByte字段中的第一部分比特还用于指示Tag的说明。The device according to claim 76, wherein the first part of bits in the ControlByte field is also used to indicate the description of Tag. 根据权利要求77所述的装置,其中,所述Tag的说明用于确定以下至少之一:The apparatus according to claim 77, wherein the description of the Tag is used to determine at least one of the following: Tag字段的长度;The length of the Tag field; Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The tag type described in the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求76至78中任一项所述的装置,其中,所述ControlByte字段中的第一部分比特为所述ControlByte字段中的高3位比特。The apparatus according to any one of claims 76 to 78, wherein the first part of bits in the ControlByte field is the upper 3 bits in the ControlByte field. 根据权利要求75至79中任一项所述的装置,其中,所述ControlByte字段中的第二部分比特用于指示Value字段所描述的Value的数据类型。The device according to any one of claims 75 to 79, wherein the second part of bits in the ControlByte field is used to indicate the data type of the Value described by the Value field. 根据权利要求80所述的装置,其中,所述ControlByte字段中的第二部分比特还用于指示以下至少之一:Length字段的长度、Value字段的长度。The device according to claim 80, wherein the second part of bits in the ControlByte field is further used to indicate at least one of the following: the length of the Length field, and the length of the Value field. 根据权利要求80所述的装置,其中,所述ControlByte字段中的第二部分比特还用于指示:容器数据类型的结束符。The apparatus according to claim 80, wherein the second part of bits in the ControlByte field is also used to indicate: a terminator of the container data type. 根据权利要求80至82中任一项所述的装置,其中,所述ControlByte字段中的第二部分比特为所述ControlByte字段中的低5位比特。The apparatus according to any one of claims 80 to 82, wherein the second part of bits in the ControlByte field is the lower 5 bits in the ControlByte field. 根据权利要求73至83中任一项所述的装置,其中,所述Tag字段的长度为N2个字节,N2为正整数。The device according to any one of claims 73 to 83, wherein the length of the Tag field is N2 bytes, and N2 is a positive integer. 根据权利要求84所述的装置,其中,所述N2的取值大于等于0且小于等于8。The device according to claim 84, wherein the value of N2 is greater than or equal to 0 and less than or equal to 8. 根据权利要求84或85所述的装置,其中,所述Tag字段占据第一字节,若所述第一字节中的最高位的取值为第一值,则表示所述Tag字段仅占据所述第一字节,且所述Tag字段的取值通过所述第一字节中的低7位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 84 or 85, wherein the Tag field occupies the first byte, and if the value of the highest bit in the first byte is the first value, it means that the Tag field only occupies The first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte; wherein, the highest bit in the first byte is a Tag length identification bit. 根据权利要求84或85所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节和第三字节,且所述Tag字段的取值通过所述第二字节中的全部比特位和所述第三字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 84 or 85, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte and the third byte after the first byte, and the value of the Tag field passes through all the bits in the second byte and all the bits in the third byte bit determination; wherein, the highest bit in the first byte is the Tag length identification bit. 根据权利要求84或85所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,且所述Tag字段的取值通过所述第一字节中的低7位和所述第二字节中的全部比特位确定;其中,所述第一字节中的最高位为Tag长度标识位。The device according to claim 84 or 85, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, and the value of the Tag field is determined by the lower 7 bits in the first byte and all bits in the second byte; wherein, The highest bit in the first byte is the Tag length identification bit. 根据权利要求84或85所述的装置,其中,所述Tag字段至少占据第一字节,若所述第一字节中的最高位的取值为第二值,则表示所述Tag字段还占据所述第一字节之后的第二字节,若所述第二字节的最高位的取值为第二值,则表示所述Tag字段还占据所述第二字节之后的第三字节,以此类推,直到所述Tag字段占据的第M字节中的最高位的取值为第一值,将该第M字节作为所述Tag字段占据的最后一个字节,M为正整数;所述Tag字段的取值通过所述第一字节至所述第M字节中的每个字节中的低7位确定。The device according to claim 84 or 85, wherein the Tag field occupies at least the first byte, and if the value of the highest bit in the first byte is the second value, it means that the Tag field is also Occupies the second byte after the first byte, if the value of the highest bit of the second byte is the second value, it means that the Tag field also occupies the third byte after the second byte byte, and so on, until the value of the highest bit in the Mth byte occupied by the Tag field is the first value, and the Mth byte is taken as the last byte occupied by the Tag field, and M is A positive integer; the value of the Tag field is determined by the lower 7 bits of each byte in the first byte to the Mth byte. 根据权利要求84或85所述的装置,其中,所述Tag字段的长度基于所述ControlByte字段中的第一部分确定,所述ControlByte字段中的第一部分用于指示Tag的说明,所述Tag的说明用于确定以下至少之一:Tag字段的长度、Tag字段所描述的标签类型为属性标识标签iid tag或者索引标签index tag或者设备标识标签DeviceID tag或者事务标识标签ID tag或者服务标识标签siid tag。The device according to claim 84 or 85, wherein the length of the Tag field is determined based on the first part in the ControlByte field, the first part in the ControlByte field is used to indicate the description of the Tag, and the description of the Tag It is used to determine at least one of the following: the length of the Tag field, and the tag type described by the Tag field is an attribute identification tag iid tag or an index tag index tag or a device identification tag DeviceID tag or a transaction identification tag ID tag or a service identification tag siid tag. 根据权利要求73至90中任一项所述的装置,其中,所述Length字段的长度为N3个字节,N3为正整数。The device according to any one of claims 73 to 90, wherein the length of the Length field is N3 bytes, and N3 is a positive integer. 根据权利要求91所述的装置,其中,所述N3的取值大于等于0且小于等于8。The device according to claim 91, wherein the value of N3 is greater than or equal to 0 and less than or equal to 8. 根据权利要求91或92所述的装置,其中,所述Length字段的长度基于所述ControlByte字段中的第二部分确定,所述ControlByte字段中的第二部分用于指示Length字段的长度。The apparatus according to claim 91 or 92, wherein the length of the Length field is determined based on a second part in the ControlByte field, and the second part in the ControlByte field is used to indicate the length of the Length field. 根据权利要求73至93中任一项所述的装置,其中,所述Value字段的长度为N4个字节,N4的取值为正整数。The device according to any one of claims 73 to 93, wherein the length of the Value field is N4 bytes, and the value of N4 is a positive integer. 根据权利要求94所述的装置,其中,所述Value字段的长度基于所述ControlByte字段 中的第二部分确定,The apparatus of claim 94, wherein the length of the Value field is determined based on the second part in the ControlByte field, 所述ControlByte字段中的第二部分用于指示基本数据类型的Value字段的长度;或者,所述ControlByte字段中的第二部分用于指示容器数据类型的结束符。The second part in the ControlByte field is used to indicate the length of the Value field of the basic data type; or, the second part in the ControlByte field is used to indicate the terminator of the container data type. 根据权利要求73至95中任一项所述的装置,其中,所述Tag字段用于描述数据的标签,所述Length字段用于描述Value字段的长度,所述Value字段用于描述数据的Value。The device according to any one of claims 73 to 95, wherein the Tag field is used to describe the tag of the data, the Length field is used to describe the length of the Value field, and the Value field is used to describe the Value of the data . 一种通信设备,包括:处理器和存储器,该存储器用于存储计算机程序,所述处理器用于调用并运行所述存储器中存储的计算机程序,执行如权利要求1至24中任一项所述的方法,或者权利要求25至48中任一项所述的方法。A communication device, comprising: a processor and a memory, the memory is used to store a computer program, the processor is used to invoke and run the computer program stored in the memory, and execute the computer program described in any one of claims 1 to 24 , or a method as claimed in any one of claims 25 to 48. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1至24中任一项所述的方法,或者权利要求25至48中任一项所述的方法。A chip, comprising: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes the method according to any one of claims 1 to 24, or claims 25 to 48 any one of the methods described. 一种计算机可读存储介质,用于存储计算机程序,所述计算机程序使得计算机执行如权利要求1至24中任一项所述的方法,或者权利要求25至48中任一项所述的方法。A computer-readable storage medium for storing a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 24, or the method according to any one of claims 25 to 48 . 一种计算机程序产品,包括计算机程序指令,该计算机程序指令使得计算机执行如权利要求1至24中任一项所述的方法,或者权利要求25至48中任一项所述的方法。A computer program product comprising computer program instructions for causing a computer to execute the method according to any one of claims 1 to 24, or the method according to any one of claims 25 to 48. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1至24中任一项所述的方法,或者权利要求25至48中任一项所述的方法。A computer program that causes a computer to execute the method according to any one of claims 1 to 24, or the method according to any one of claims 25 to 48.
CN202080105087.2A 2020-12-01 2020-12-01 Data transmission method and device and communication equipment Active CN116615874B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/133158 WO2022116009A1 (en) 2020-12-01 2020-12-01 Data transmission method and apparatus, and communication device

Publications (2)

Publication Number Publication Date
CN116615874A true CN116615874A (en) 2023-08-18
CN116615874B CN116615874B (en) 2024-08-23

Family

ID=81852864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080105087.2A Active CN116615874B (en) 2020-12-01 2020-12-01 Data transmission method and device and communication equipment

Country Status (2)

Country Link
CN (1) CN116615874B (en)
WO (1) WO2022116009A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117873539B (en) * 2023-12-28 2024-07-02 四川赛狄信息技术股份公司 MicroBlaze-based FPGA online upgrading method, system and medium
CN119212056B (en) * 2024-11-25 2025-05-06 上海铌锣智能科技有限公司 Temperature detection method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333288A (en) * 2011-05-31 2012-01-25 华为软件技术有限公司 Method and terminal for controlling the operation of terminal applications
US9270761B1 (en) * 2014-10-08 2016-02-23 Google Inc. Device control profile for a fabric network
CN110086763A (en) * 2013-06-25 2019-08-02 谷歌有限责任公司 Structural network
CN111447242A (en) * 2014-11-04 2020-07-24 三星电子株式会社 Transmitting apparatus, receiving apparatus, and signal processing method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179580B (en) * 2007-12-12 2010-08-11 北京北方烽火科技有限公司 Method for implementing encoding/decoding of WiMAX system information
US8249104B2 (en) * 2008-10-30 2012-08-21 Futurewei Technologies, Inc. Optical network terminal management and control interface over Ethernet
CN102739505B (en) * 2011-04-06 2017-02-08 中兴通讯股份有限公司 Method and system for controlling virtual channel flow in data center network
US8830998B2 (en) * 2011-09-23 2014-09-09 Avaya Inc. Separation of edge and routing/control information for multicast over shortest path bridging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333288A (en) * 2011-05-31 2012-01-25 华为软件技术有限公司 Method and terminal for controlling the operation of terminal applications
CN110086763A (en) * 2013-06-25 2019-08-02 谷歌有限责任公司 Structural network
US9270761B1 (en) * 2014-10-08 2016-02-23 Google Inc. Device control profile for a fabric network
CN111447242A (en) * 2014-11-04 2020-07-24 三星电子株式会社 Transmitting apparatus, receiving apparatus, and signal processing method thereof

Also Published As

Publication number Publication date
WO2022116009A1 (en) 2022-06-09
CN116615874B (en) 2024-08-23

Similar Documents

Publication Publication Date Title
CN107835178B (en) Multi-protocol service communication method and device and electronic equipment
CN111352889B (en) A device management method, device, device and medium based on MCTP protocol
CN110740481B (en) Data processing method, device and computer storage medium based on quality of service
TWI794260B (en) Method, device and equipment for determining transmission block size
WO2021057326A1 (en) Data encoding method, data decoding method, data encoding and decoding method, device, and storage medium
WO2017000915A1 (en) Multicast transmission method, information extraction method and corresponding terminal and device
CN116615874B (en) Data transmission method and device and communication equipment
CN118200141B (en) Semantic communication resource optimization method, device, equipment and storage medium
CN104579360A (en) Method and equipment for data processing
CN116319599A (en) Channel distribution system for bearing VOIP service and method thereof
CN114710572A (en) Data processing method, device and computer storage medium
CN116204487A (en) Remote data access method and device
WO2019174191A1 (en) Report data initialization method and apparatus, and computer device and storage medium
TWI645698B (en) Data transmitting apparatus, data receiving apparatus and method thereof
CN116671142A (en) Method for mapping service identifier to link and multi-link device
CN106790201B (en) A method and device for transmitting data
WO2014205691A1 (en) Data packet processing method and data packet processing device and system
CN114444443A (en) A kind of identification identification method, device and terminal equipment
CN113222765B (en) Market data pushing method and device, electronic equipment and storage medium
WO2023050045A1 (en) Data transmission method, apparatus and system
WO2018202151A1 (en) Communication method and communication device
WO2024197874A1 (en) Sensing measurement setup method, electronic device, and storage medium
WO2019144619A1 (en) Rpc communication method and system, and device
CN115348277A (en) Multi-layer message mechanism distributed cluster communication management method and system
CN115968543B (en) Resource mapping method, device, equipment and storage medium

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