2.2.4 Session Request Message

The Session Request message is sent by a Miracast Source to a Miracast Sink when the Source determines that the Sink supports PIN entry and the Source chooses to initiate the connection using this protocol. This message tells the Sink whether the Source intends to use stream encryption and/or PIN display/entry. It MUST be the first message sent by the Source.


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

Size

Version

Command

TLVArray (variable)

...

...

Size (2 bytes): The size of the entire message, in bytes.

Version (1 byte): The version of this protocol, which is 0x01.

Command (1 byte): The type of message, which is 0x04 for SESSION_REQUEST.

TLVArray (variable): The following TLVs, included in any order:

  • Friendly Name TLV (section 2.2.7.1)

  • Source ID TLV (section 2.2.7.3)

  • Security Options TLV (section 2.2.7.5)