-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTCSC4_2.txt
123 lines (62 loc) · 5.05 KB
/
TCSC4_2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
1
4.2.1 TH
TH is put in Commisisoning Mode and start advertising its availability for commissioning
no desc
2
DUT
DUT scan for devices that advertise availability for commissioning
DUT must report the following:
- DNS-SD instance name must be 64-bit randomly selected ID expressed as a sixteen-char hex string with capital letters
- service type must be _matterc._udp
- service domain is .local. For Unicast DNS such as used on Thread the service domain SHALL be as configured automatically by the Thread Border Router
- target hostname is the 48bit MAC address expressed as a twelve capital letter hex string. If the MAC is randomized for privacy, the randomized version must be used each time
- subtype _S<dd> 4-bit short discriminator, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- subtype _L<dddd> 12-bit long discriminator, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- subtype _C<d> must have a value of 1
- subtype _A1 must be present
- if optional subtype _V<ddddd> is present must be 16-bit vendor id, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- if optional subtype _T<ddd> is present, <ddd> represents device type from Data Model and must be represented as a variable length decimal number in ASCII without leading zeroes
- key D must be present and represents the discriminator which must be encoded as a variable-lenght decimal value with up to 4 digits omitting any leading zeroes
- if optional VP key is present must contain at least Vendor ID and if Product ID is present, values must be separated by a + sign.
- key AP=1 must be present
- key CM=1 must be present
- if optional DT key is present must contain the device type identifier from Data Model Device Types and must be encoded as a variable length decimal ASCII number without leading zeroes
- if optional DN key is present must be a UTF-8 encoded string with a maximum length of 32B
- if optional key RI is present must include the Rotating Device Identifier encoded as an octet string with a maximum length of 100 chars
- key PI encoded as a valid UTF-8 string with a maximum length of 128 bytes
- optional key PH encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes. If present value must be different of 0
3
TH
Reboot TH. TH is put in non Commissioning Mode and start advertising availability for commissioning
no desc
4
DUT
Rescan devices that advertise availability for commissioning
DUT must report the TH advertise containing:
- DNS-SD instance name must be 64-bit randomly selected ID expressed as a sixteen-char hex string with capital letters and must be different from the one at step 3
- service type must be _matterc._udp
- service domain is .local. For Unicast DNS such as used on Thread the service domain SHALL be as configured automatically by the Thread Border Router
- target hostname is the 48bit MAC address expressed as a twelve capital letter hex string. If the MAC is randomized for privacy, the randomized version must be used each time
- subtype _S<dd> 4-bit short discriminator, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- subtype _L<dddd> 12-bit long discriminator, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- subtype _C<d> must have a value of 0
- subtype _A1 must be present
- if optional subtype _V<ddddd> is present must be 16-bit vendor id, encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes
- if optional subtype _T<ddd> is present, <ddd> represents device type from Data Model and must be represented as a variable length decimal number in ASCII without leading zeroes
- key D must be present and represents the discriminator which must be encoded as a variable-lenght decimal value with up to 4 digits omitting any leading zeroes
- if optional VP key is present must contain at least Vendor ID and if Product ID is present, values must be separated by a + sign.
- key AP=1 must be present
- if key CM is present must have a value of 0
- if optional DT key is present must contain the device type identifier from Data Model Device Types and must be encoded as a variable length decimal ASCII number without leading zeroes
- if optional DN key is present must be a UTF-8 encoded string with a maximum length of 32B
- if optional key RI is present must include the Rotating Device Identifier encoded as an octet string with a maximum length of 100 chars
- key PI encoded as a valid UTF-8 string with a maximum length of 128 bytes
- key PH encoded as a variable-length decimal number in ASCII text, omitting any leading zeroes. If present value must be different of 0
5
TH
By any means, TH adds an unknown key/value pair in the advertised data(e.g. AB=12345) and is put in Commissioning Mode
TH must contiune to advertise with new data added
6
DUT
Scan for DNS-SD commissioner advertisements from TH
DUT report must be same with the one from step 2 but silently discard the unknown key/value pair added at step 5