2.2.7 Miracast TLVs

This section defines common type-length-value (TLV) structures that are used to pass information in messages during a Miracast session. This is the general format for the TLVs:


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Type

Length

Value (variable)

...

...

Type (1 byte): The type of TLV, which determines the information passed in the Value field. The following TLVs are defined in the sections listed.

TLV type

Section

Description

FRIENDLY_NAME

0x00

2.2.7.1

Specifies the friendly name of the Miracast Source.

RTSP_PORT

0x02

2.2.7.2

Specifies the port on which the Source is listening for RTSP connections.

SOURCE_ID

0x03

2.2.7.3

Specifies an identifier for the Source, which is used for all messages sent during a Miracast session.

SECURITY_TOKEN

0x04

2.2.7.4

Contains a DTLS handshake message.

SECURITY_OPTIONS

0x05

2.2.7.5

Specifies whether stream encryption and/or PIN entry will be used for the session.

PIN_CHALLENGE

0x06

2.2.7.6

Contains a salted hash of the PIN when PIN entry is used to establish the connection.

PIN_RESPONSE_REASON

0x07

2.2.7.7

Specifies whether the PIN Response indicates a successful connection.

Length (2 bytes): The length of the Value field, in bytes. This value MUST be greater than or equal to 0x0001.

Value (variable): One or more bytes, which specify information for the TLV.