2.2.1.2 Common Message Header

A common message header MUST be present in every message after a qWave-WD session has been established. Each message header contains a common header optionally followed by a message-specific header.


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

Message_Size

Message_ID

Reserved

Reserved_2

Message_Specific_Header (variable)

...

Message_Size (2 bytes): A 16-bit unsigned integer that specifies the size of the message. This value includes the size of this header and the payload that follows.

Message_ID (2 bytes):  A 16-bit unsigned integer that specifies the type of message, which defines the form of the payload that follows. The value of this field MUST be one of the following.

Value

Meaning

0x0009

Connect Message (section 2.2.2.1)

0x000A

Connect Response Message (section 2.2.2.2)

0x000B

Collect Data Message (section 2.2.2.3)

0x000C

Collect Data Response Message (section 2.2.2.4)

0x000D

Force BSS List Scan Message (section 2.2.2.5)

0x000E

Force BSS List Scan Response Message (section 2.2.2.6)

0x000F

Get BSS List Message (section 2.2.2.7)

0x0010

Get BSS List Response Message (section 2.2.2.8)

Reserved (2 bytes): A value that MUST be zero and ignored on receipt.

Reserved_2 (2 bytes): A value that MUST be zero and ignored on receipt.

Message_Specific_Header (variable): An optional message-specific header that corresponds to the message type identified in the Message_ID field. The formats for message-specific headers for all message types are defined in Message-Specific Syntax (section 2.2.2).