zigbee-herdsman 0.14.38 → 0.14.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/adapter/ezsp/adapter/ezspAdapter.d.ts.map +1 -1
  2. package/dist/adapter/ezsp/adapter/ezspAdapter.js +63 -40
  3. package/dist/adapter/ezsp/adapter/ezspAdapter.js.map +1 -1
  4. package/dist/adapter/ezsp/driver/commands.d.ts +29 -4
  5. package/dist/adapter/ezsp/driver/commands.d.ts.map +1 -1
  6. package/dist/adapter/ezsp/driver/commands.js +2294 -687
  7. package/dist/adapter/ezsp/driver/commands.js.map +1 -1
  8. package/dist/adapter/ezsp/driver/consts.d.ts +11 -0
  9. package/dist/adapter/ezsp/driver/consts.d.ts.map +1 -0
  10. package/dist/adapter/ezsp/driver/consts.js +14 -0
  11. package/dist/adapter/ezsp/driver/consts.js.map +1 -0
  12. package/dist/adapter/ezsp/driver/driver.d.ts +23 -10
  13. package/dist/adapter/ezsp/driver/driver.d.ts.map +1 -1
  14. package/dist/adapter/ezsp/driver/driver.js +113 -77
  15. package/dist/adapter/ezsp/driver/driver.js.map +1 -1
  16. package/dist/adapter/ezsp/driver/ezsp.d.ts +49 -21
  17. package/dist/adapter/ezsp/driver/ezsp.d.ts.map +1 -1
  18. package/dist/adapter/ezsp/driver/ezsp.js +265 -138
  19. package/dist/adapter/ezsp/driver/ezsp.js.map +1 -1
  20. package/dist/adapter/ezsp/driver/index.d.ts +2 -2
  21. package/dist/adapter/ezsp/driver/index.d.ts.map +1 -1
  22. package/dist/adapter/ezsp/driver/index.js.map +1 -1
  23. package/dist/adapter/ezsp/driver/multicast.js +1 -1
  24. package/dist/adapter/ezsp/driver/multicast.js.map +1 -1
  25. package/dist/adapter/ezsp/driver/parser.d.ts +12 -0
  26. package/dist/adapter/ezsp/driver/parser.d.ts.map +1 -0
  27. package/dist/adapter/ezsp/driver/parser.js +106 -0
  28. package/dist/adapter/ezsp/driver/parser.js.map +1 -0
  29. package/dist/adapter/ezsp/driver/types/struct.d.ts +13 -0
  30. package/dist/adapter/ezsp/driver/types/struct.d.ts.map +1 -1
  31. package/dist/adapter/ezsp/driver/types/struct.js +16 -1
  32. package/dist/adapter/ezsp/driver/types/struct.js.map +1 -1
  33. package/dist/adapter/ezsp/driver/uart.d.ts +0 -3
  34. package/dist/adapter/ezsp/driver/uart.d.ts.map +1 -1
  35. package/dist/adapter/ezsp/driver/uart.js +49 -194
  36. package/dist/adapter/ezsp/driver/uart.js.map +1 -1
  37. package/dist/adapter/ezsp/driver/utils/crc16ccitt.d.ts.map +1 -1
  38. package/dist/adapter/ezsp/driver/utils/crc16ccitt.js +2 -8
  39. package/dist/adapter/ezsp/driver/utils/crc16ccitt.js.map +1 -1
  40. package/dist/adapter/ezsp/driver/writer.d.ts +13 -0
  41. package/dist/adapter/ezsp/driver/writer.d.ts.map +1 -0
  42. package/dist/adapter/ezsp/driver/writer.js +84 -0
  43. package/dist/adapter/ezsp/driver/writer.js.map +1 -0
  44. package/package.json +1 -1
@@ -1,694 +1,2301 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ZDO_COMMANDS = exports.COMMANDS = void 0;
3
+ exports.ZDORESPONSE_NAME_BY_ID = exports.ZDOREQUEST_NAME_BY_ID = exports.ZDORESPONSES = exports.ZDOREQUESTS = exports.FRAME_NAME_BY_ID = exports.FRAMES = void 0;
4
4
  /* istanbul ignore file */
5
5
  const types_1 = require("./types");
6
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
7
- exports.COMMANDS = {
8
- "version": [0, [types_1.uint8_t],
9
- [types_1.uint8_t, types_1.uint8_t, types_1.uint16_t]
10
- ],
11
- "getConfigurationValue": [82, [types_1.EzspConfigId],
12
- [types_1.EzspStatus, types_1.uint16_t]
13
- ],
14
- "setConfigurationValue": [83, [types_1.EzspConfigId, types_1.uint16_t],
15
- [types_1.EzspStatus]
16
- ],
17
- "addEndpoint": [0x0002, [
18
- types_1.uint8_t,
19
- types_1.uint16_t,
20
- types_1.uint16_t,
21
- types_1.uint8_t,
22
- types_1.uint8_t,
23
- types_1.uint8_t,
24
- types_1.WordList,
25
- types_1.WordList,
26
- ],
27
- [types_1.EzspStatus],
28
- ],
29
- "setPolicy": [85, [types_1.EzspPolicyId, types_1.EzspDecisionId],
30
- [types_1.EzspStatus]
31
- ],
32
- "getPolicy": [86, [types_1.EzspPolicyId],
33
- [types_1.EzspStatus, types_1.EzspDecisionId]
34
- ],
35
- "getValue": [170, [types_1.EzspValueId],
36
- [types_1.EzspStatus, types_1.LVBytes]
37
- ],
38
- "getExtendedValue": [3, [types_1.EzspExtendedValueId, types_1.uint32_t],
39
- [types_1.EzspStatus, types_1.LVBytes]
40
- ],
41
- "setValue": [171, [types_1.EzspValueId, types_1.LVBytes],
42
- [types_1.EzspStatus]
43
- ],
44
- "setGpioCurrentConfiguration": [172, [types_1.uint8_t, types_1.uint8_t, types_1.uint8_t],
45
- [types_1.EzspStatus]
46
- ],
47
- "setGpioPowerUpDownConfiguration": [173, [types_1.uint8_t, types_1.uint8_t, types_1.uint8_t, types_1.uint8_t, types_1.uint8_t],
48
- [types_1.EzspStatus]
49
- ],
50
- "setGpioRadioPowerMask": [174, [types_1.uint32_t],
51
- []
52
- ],
53
- "setCtune": [245, [types_1.uint16_t],
54
- []
55
- ],
56
- "getCtune": [246, [],
57
- [types_1.uint16_t]
58
- ],
59
- "setChannelMap": [247, [types_1.uint8_t, types_1.uint8_t],
60
- []
61
- ],
62
- "nop": [5, [],
63
- []
64
- ],
65
- "echo": [129, [types_1.LVBytes],
66
- [types_1.LVBytes]
67
- ],
68
- "invalidCommand": [88, [],
69
- [types_1.EzspStatus]
70
- ],
71
- "callback": [6, [],
72
- []
73
- ],
74
- "noCallbacks": [7, [],
75
- []
76
- ],
77
- "setToken": [9, [types_1.uint8_t, (0, types_1.fixed_list)(8, types_1.uint8_t)],
78
- [types_1.EmberStatus]
79
- ],
80
- "getToken": [10, [types_1.uint8_t],
81
- [types_1.EmberStatus, (0, types_1.fixed_list)(8, types_1.uint8_t)]
82
- ],
83
- "getMfgToken": [11, [types_1.EzspMfgTokenId],
84
- [types_1.LVBytes]
85
- ],
86
- "setMfgToken": [12, [types_1.EzspMfgTokenId, types_1.LVBytes],
87
- [types_1.EmberStatus]
88
- ],
89
- "stackTokenChangedHandler": [13, [],
90
- [types_1.uint16_t]
91
- ],
92
- "getRandomNumber": [73, [],
93
- [types_1.EmberStatus, types_1.uint16_t]
94
- ],
95
- "setTimer": [14, [types_1.uint8_t, types_1.uint16_t, types_1.EmberEventUnits, types_1.Bool],
96
- [types_1.EmberStatus]
97
- ],
98
- "getTimer": [78, [types_1.uint8_t],
99
- [types_1.uint16_t, types_1.EmberEventUnits, types_1.Bool]
100
- ],
101
- "timerHandler": [15, [],
102
- [types_1.uint8_t]
103
- ],
104
- "debugWrite": [18, [types_1.Bool, types_1.LVBytes],
105
- [types_1.EmberStatus]
106
- ],
107
- "readAndClearCounters": [101, [],
108
- [(0, types_1.fixed_list)(types_1.EmberCounterType.COUNTER_TYPE_COUNT, types_1.uint16_t)]
109
- ],
110
- "readCounters": [241, [],
111
- [(0, types_1.fixed_list)(types_1.EmberCounterType.COUNTER_TYPE_COUNT, types_1.uint16_t)]
112
- ],
113
- "counterRolloverHandler": [242, [],
114
- [types_1.EmberCounterType]
115
- ],
116
- "delayTest": [157, [types_1.uint16_t],
117
- []
118
- ],
119
- "getLibraryStatus": [1, [types_1.uint8_t],
120
- [types_1.EmberLibraryStatus]
121
- ],
122
- "getXncpInfo": [19, [],
123
- [types_1.EmberStatus, types_1.uint16_t, types_1.uint16_t]
124
- ],
125
- "customFrame": [71, [types_1.LVBytes],
126
- [types_1.EmberStatus, types_1.LVBytes]
127
- ],
128
- "customFrameHandler": [84, [],
129
- [types_1.LVBytes]
130
- ],
131
- "getEui64": [38, [],
132
- [types_1.EmberEUI64]
133
- ],
134
- "getNodeId": [39, [],
135
- [types_1.EmberNodeId]
136
- ],
137
- "networkInit": [23, [],
138
- [types_1.EmberStatus]
139
- ],
140
- "setManufacturerCode": [21, [types_1.uint16_t],
141
- []
142
- ],
143
- "setPowerDescriptor": [22, [types_1.uint16_t],
144
- []
145
- ],
146
- "networkInitExtended": [112, [types_1.EmberNetworkInitStruct],
147
- [types_1.EmberStatus]
148
- ],
149
- "networkState": [24, [],
150
- [types_1.EmberNetworkStatus]
151
- ],
152
- "stackStatusHandler": [25, [],
153
- [types_1.EmberStatus]
154
- ],
155
- "startScan": [26, [types_1.EzspNetworkScanType, types_1.uint32_t, types_1.uint8_t],
156
- [types_1.EmberStatus]
157
- ],
158
- "energyScanResultHandler": [72, [],
159
- [types_1.uint8_t, types_1.int8s]
160
- ],
161
- "networkFoundHandler": [27, [],
162
- [types_1.EmberZigbeeNetwork, types_1.uint8_t, types_1.int8s]
163
- ],
164
- "scanCompleteHandler": [28, [],
165
- [types_1.uint8_t, types_1.EmberStatus]
166
- ],
167
- "stopScan": [29, [],
168
- [types_1.EmberStatus]
169
- ],
170
- "formNetwork": [30, [types_1.EmberNetworkParameters],
171
- [types_1.EmberStatus]
172
- ],
173
- "joinNetwork": [31, [types_1.EmberNodeType, types_1.EmberNetworkParameters],
174
- [types_1.EmberStatus]
175
- ],
176
- "leaveNetwork": [32, [],
177
- [types_1.EmberStatus]
178
- ],
179
- "findAndRejoinNetwork": [33, [types_1.Bool, types_1.uint32_t],
180
- [types_1.EmberStatus]
181
- ],
182
- "permitJoining": [34, [types_1.uint8_t],
183
- [types_1.EmberStatus]
184
- ],
185
- "childJoinHandler": [35, [],
186
- [types_1.uint8_t, types_1.Bool, types_1.EmberNodeId, types_1.EmberEUI64, types_1.EmberNodeType]
187
- ],
188
- "energyScanRequest": [156, [types_1.EmberNodeId, types_1.uint32_t, types_1.uint8_t, types_1.uint16_t],
189
- [types_1.EmberStatus]
190
- ],
191
- "getNetworkParameters": [40, [],
192
- [types_1.EmberStatus, types_1.EmberNodeType, types_1.EmberNetworkParameters]
193
- ],
194
- "getParentChildParameters": [41, [],
195
- [types_1.uint8_t, types_1.EmberEUI64, types_1.EmberNodeId]
196
- ],
197
- "getChildData": [74, [types_1.uint8_t],
198
- [types_1.EmberStatus, types_1.EmberNodeId, types_1.EmberEUI64, types_1.EmberNodeType]
199
- ],
200
- "getNeighbor": [121, [types_1.uint8_t],
201
- [types_1.EmberStatus, types_1.EmberNeighborTableEntry]
202
- ],
203
- "neighborCount": [122, [],
204
- [types_1.uint8_t]
205
- ],
206
- "getRouteTableEntry": [123, [types_1.uint8_t],
207
- [types_1.EmberStatus, types_1.EmberRouteTableEntry]
208
- ],
209
- "setRadioPower": [153, [types_1.int8s],
210
- [types_1.EmberStatus]
211
- ],
212
- "setRadioChannel": [154, [types_1.uint8_t],
213
- [types_1.EmberStatus]
214
- ],
215
- "setConcentrator": [16, [types_1.Bool, types_1.uint16_t, types_1.uint16_t, types_1.uint16_t, types_1.uint8_t, types_1.uint8_t, types_1.uint8_t],
216
- [types_1.EmberStatus]
217
- ],
218
- "clearBindingTable": [42, [],
219
- [types_1.EmberStatus]
220
- ],
221
- "setBinding": [43, [types_1.uint8_t, types_1.EmberBindingTableEntry],
222
- [types_1.EmberStatus]
223
- ],
224
- "getBinding": [44, [types_1.uint8_t],
225
- [types_1.EmberStatus, types_1.EmberBindingTableEntry]
226
- ],
227
- "deleteBinding": [45, [types_1.uint8_t],
228
- [types_1.EmberStatus]
229
- ],
230
- "bindingIsActive": [46, [types_1.uint8_t],
231
- [types_1.Bool]
232
- ],
233
- "getBindingRemoteNodeId": [47, [types_1.uint8_t],
234
- [types_1.EmberNodeId]
235
- ],
236
- "setBindingRemoteNodeId": [48, [types_1.uint8_t],
237
- []
238
- ],
239
- "remoteSetBindingHandler": [49, [],
240
- [types_1.EmberBindingTableEntry]
241
- ],
242
- "remoteDeleteBindingHandler": [50, [],
243
- [types_1.uint8_t, types_1.EmberStatus]
244
- ],
245
- "maximumPayloadLength": [51, [],
246
- [types_1.uint8_t]
247
- ],
248
- "sendUnicast": [52, [types_1.EmberOutgoingMessageType, types_1.EmberNodeId, types_1.EmberApsFrame, types_1.uint8_t, types_1.LVBytes],
249
- [types_1.EmberStatus, types_1.uint8_t]
250
- ],
251
- "sendBroadcast": [54, [types_1.EmberNodeId, types_1.EmberApsFrame, types_1.uint8_t, types_1.uint8_t, types_1.LVBytes],
252
- [types_1.EmberStatus, types_1.uint8_t]
253
- ],
254
- "proxyBroadcast": [55, [types_1.EmberNodeId, types_1.EmberNodeId, types_1.uint8_t, types_1.EmberApsFrame, types_1.uint8_t, types_1.uint8_t, types_1.LVBytes],
255
- [types_1.EmberStatus, types_1.uint8_t]
256
- ],
257
- "sendMulticast": [56, [types_1.EmberApsFrame, types_1.uint8_t, types_1.uint8_t, types_1.uint8_t, types_1.LVBytes],
258
- [types_1.EmberStatus, types_1.uint8_t]
259
- ],
260
- "sendReply": [57, [types_1.EmberNodeId, types_1.EmberApsFrame, types_1.LVBytes],
261
- [types_1.EmberStatus]
262
- ],
263
- "messageSentHandler": [63, [],
264
- [types_1.EmberOutgoingMessageType, types_1.uint16_t, types_1.EmberApsFrame, types_1.uint8_t, types_1.EmberStatus, types_1.LVBytes]
265
- ],
266
- "sendManyToOneRouteRequest": [65, [types_1.uint16_t, types_1.uint8_t],
267
- [types_1.EmberStatus]
268
- ],
269
- "pollForData": [66, [types_1.uint16_t, types_1.EmberEventUnits, types_1.uint8_t],
270
- [types_1.EmberStatus]
271
- ],
272
- "pollCompleteHandler": [67, [],
273
- [types_1.EmberStatus]
274
- ],
275
- "pollHandler": [68, [],
276
- [types_1.EmberNodeId]
277
- ],
278
- "incomingSenderEui64Handler": [98, [],
279
- [types_1.EmberEUI64]
280
- ],
281
- "incomingMessageHandler": [69, [],
282
- [types_1.EmberIncomingMessageType, types_1.EmberApsFrame, types_1.uint8_t, types_1.int8s, types_1.EmberNodeId, types_1.uint8_t, types_1.uint8_t, types_1.LVBytes]
283
- ],
284
- "incomingRouteRecordHandler": [89, [],
285
- [types_1.EmberNodeId, types_1.EmberEUI64, types_1.uint8_t, types_1.int8s, types_1.LVBytes]
286
- ],
287
- "incomingManyToOneRouteRequestHandler": [125, [],
288
- [types_1.EmberNodeId, types_1.EmberEUI64, types_1.uint8_t]
289
- ],
290
- "incomingRouteErrorHandler": [128, [],
291
- [types_1.EmberStatus, types_1.EmberNodeId]
292
- ],
293
- "addressTableEntryIsActive": [91, [types_1.uint8_t],
294
- [types_1.Bool]
295
- ],
296
- "setAddressTableRemoteEui64": [92, [types_1.uint8_t, types_1.EmberEUI64],
297
- [types_1.EmberStatus]
298
- ],
299
- "setAddressTableRemoteNodeId": [93, [types_1.uint8_t, types_1.EmberNodeId],
300
- []
301
- ],
302
- "getAddressTableRemoteEui64": [94, [types_1.uint8_t],
303
- [types_1.EmberEUI64]
304
- ],
305
- "getAddressTableRemoteNodeId": [95, [types_1.uint8_t],
306
- [types_1.EmberNodeId]
307
- ],
308
- "setExtendedTimeout": [126, [types_1.EmberEUI64, types_1.Bool],
309
- []
310
- ],
311
- "getExtendedTimeout": [127, [types_1.EmberEUI64],
312
- [types_1.Bool]
313
- ],
314
- "replaceAddressTableEntry": [130, [types_1.uint8_t, types_1.EmberEUI64, types_1.EmberNodeId, types_1.Bool],
315
- [types_1.EmberStatus, types_1.EmberEUI64, types_1.EmberNodeId, types_1.Bool]
316
- ],
317
- "lookupNodeIdByEui64": [96, [types_1.EmberEUI64],
318
- [types_1.EmberNodeId]
319
- ],
320
- "lookupEui64ByNodeId": [97, [types_1.EmberNodeId],
321
- [types_1.EmberStatus, types_1.EmberEUI64]
322
- ],
323
- "getMulticastTableEntry": [99, [types_1.uint8_t],
324
- [types_1.EmberMulticastTableEntry]
325
- ],
326
- "setMulticastTableEntry": [100, [types_1.uint8_t, types_1.EmberMulticastTableEntry],
327
- [types_1.EmberStatus]
328
- ],
329
- "idConflictHandler": [124, [],
330
- [types_1.EmberNodeId]
331
- ],
332
- "sendRawMessage": [150, [types_1.LVBytes],
333
- [types_1.EmberStatus]
334
- ],
335
- "macPassthroughMessageHandler": [151, [],
336
- [types_1.EmberMacPassthroughType, types_1.uint8_t, types_1.int8s, types_1.LVBytes]
337
- ],
338
- "macFilterMatchMessageHandler": [70, [],
339
- [types_1.uint8_t, types_1.EmberMacPassthroughType, types_1.uint8_t, types_1.int8s, types_1.LVBytes]
340
- ],
341
- "rawTransmitCompleteHandler": [152, [],
342
- [types_1.EmberStatus]
343
- ],
344
- "setInitialSecurityState": [104, [types_1.EmberInitialSecurityState],
345
- [types_1.EmberStatus]
346
- ],
347
- "getCurrentSecurityState": [105, [],
348
- [types_1.EmberStatus, types_1.EmberCurrentSecurityState]
349
- ],
350
- "getKey": [106, [types_1.EmberKeyType],
351
- [types_1.EmberStatus, types_1.EmberKeyStruct]
352
- ],
353
- "switchNetworkKeyHandler": [110, [],
354
- [types_1.uint8_t]
355
- ],
356
- "getKeyTableEntry": [113, [types_1.uint8_t],
357
- [types_1.EmberStatus, types_1.EmberKeyStruct]
358
- ],
359
- "setKeyTableEntry": [114, [types_1.uint8_t, types_1.EmberEUI64, types_1.Bool, types_1.EmberKeyData],
360
- [types_1.EmberStatus]
361
- ],
362
- "findKeyTableEntry": [117, [types_1.EmberEUI64, types_1.Bool],
363
- [types_1.uint8_t]
364
- ],
365
- "addOrUpdateKeyTableEntry": [102, [types_1.EmberEUI64, types_1.Bool, types_1.EmberKeyData],
366
- [types_1.EmberStatus]
367
- ],
368
- "eraseKeyTableEntry": [118, [types_1.uint8_t],
369
- [types_1.EmberStatus]
370
- ],
371
- "clearKeyTable": [177, [],
372
- [types_1.EmberStatus]
373
- ],
374
- "requestLinkKey": [20, [types_1.EmberEUI64],
375
- [types_1.EmberStatus]
376
- ],
377
- "zigbeeKeyEstablishmentHandler": [155, [],
378
- [types_1.EmberEUI64, types_1.EmberKeyStatus]
379
- ],
380
- "addTransientLinkKey": [175, [types_1.EmberEUI64, types_1.EmberKeyData],
381
- [types_1.EmberStatus]
382
- ],
383
- "clearTransientLinkKeys": [107, [],
384
- []
385
- ],
386
- "setSecurityKey": [202, [types_1.EmberKeyData, types_1.SecureEzspSecurityType],
387
- [types_1.EzspStatus]
388
- ],
389
- "setSecurityParameters": [203, [types_1.SecureEzspSecurityLevel, types_1.SecureEzspRandomNumber],
390
- [types_1.EzspStatus, types_1.SecureEzspRandomNumber]
391
- ],
392
- "resetToFactoryDefaults": [204, [],
393
- [types_1.EzspStatus]
394
- ],
395
- "getSecurityKeyStatus": [205, [],
396
- [types_1.EzspStatus, types_1.SecureEzspSecurityType]
397
- ],
398
- "trustCenterJoinHandler": [36, [],
399
- [types_1.EmberNodeId, types_1.EmberEUI64, types_1.EmberDeviceUpdate, types_1.EmberJoinDecision, types_1.EmberNodeId]
400
- ],
401
- "broadcastNextNetworkKey": [115, [types_1.EmberKeyData],
402
- [types_1.EmberStatus]
403
- ],
404
- "broadcastNetworkKeySwitch": [116, [],
405
- [types_1.EmberStatus]
406
- ],
407
- "becomeTrustCenter": [119, [types_1.EmberKeyData],
408
- [types_1.EmberStatus]
409
- ],
410
- "aesMmoHash": [111, [types_1.EmberAesMmoHashContext, types_1.Bool, types_1.LVBytes],
411
- [types_1.EmberStatus, types_1.EmberAesMmoHashContext]
412
- ],
413
- "removeDevice": [168, [types_1.EmberNodeId, types_1.EmberEUI64, types_1.EmberEUI64],
414
- [types_1.EmberStatus]
415
- ],
416
- "unicastNwkKeyUpdate": [169, [types_1.EmberNodeId, types_1.EmberEUI64, types_1.EmberKeyData],
417
- [types_1.EmberStatus]
418
- ],
419
- "generateCbkeKeys": [164, [],
420
- [types_1.EmberStatus]
421
- ],
422
- "generateCbkeKeysHandler": [158, [],
423
- [types_1.EmberStatus, types_1.EmberPublicKeyData]
424
- ],
425
- "calculateSmacs": [159, [types_1.Bool, types_1.EmberCertificateData, types_1.EmberPublicKeyData],
426
- [types_1.EmberStatus]
427
- ],
428
- "calculateSmacsHandler": [160, [],
429
- [types_1.EmberStatus, types_1.EmberSmacData, types_1.EmberSmacData]
430
- ],
431
- "generateCbkeKeys283k1": [232, [],
432
- [types_1.EmberStatus]
433
- ],
434
- "generateCbkeKeysHandler283k1": [233, [],
435
- [types_1.EmberStatus, types_1.EmberPublicKey283k1Data]
436
- ],
437
- "calculateSmacs283k1": [234, [types_1.Bool, types_1.EmberCertificate283k1Data, types_1.EmberPublicKey283k1Data],
438
- [types_1.EmberStatus]
439
- ],
440
- "calculateSmacsHandler283k1": [235, [],
441
- [types_1.EmberStatus, types_1.EmberSmacData, types_1.EmberSmacData]
442
- ],
443
- "clearTemporaryDataMaybeStoreLinkKey": [161, [types_1.Bool],
444
- [types_1.EmberStatus]
445
- ],
446
- "clearTemporaryDataMaybeStoreLinkKey283k1": [238, [types_1.Bool],
447
- [types_1.EmberStatus]
448
- ],
449
- "getCertificate": [165, [],
450
- [types_1.EmberStatus, types_1.EmberCertificateData]
451
- ],
452
- "getCertificate283k1": [236, [],
453
- [types_1.EmberStatus, types_1.EmberCertificate283k1Data]
454
- ],
455
- "dsaSign": [166, [types_1.LVBytes],
456
- [types_1.EmberStatus]
457
- ],
458
- "dsaSignHandler": [167, [],
459
- [types_1.EmberStatus, types_1.LVBytes]
460
- ],
461
- "dsaVerify": [163, [types_1.EmberMessageDigest, types_1.EmberCertificateData, types_1.EmberSignatureData],
462
- [types_1.EmberStatus]
463
- ],
464
- "dsaVerifyHandler": [120, [],
465
- [types_1.EmberStatus]
466
- ],
467
- "dsaVerify283k1": [176, [types_1.EmberMessageDigest, types_1.EmberCertificate283k1Data, types_1.EmberSignature283k1Data],
468
- [types_1.EmberStatus]
469
- ],
470
- "setPreinstalledCbkeData": [162, [types_1.EmberPublicKeyData, types_1.EmberCertificateData, types_1.EmberPrivateKeyData],
471
- [types_1.EmberStatus]
472
- ],
473
- "setPreinstalledCbkeData283k1": [237,
474
- [types_1.EmberPublicKey283k1Data, types_1.EmberCertificate283k1Data, types_1.EmberPrivateKey283k1Data],
475
- [types_1.EmberStatus]
476
- ],
477
- "mfglibStart": [131, [types_1.Bool],
478
- [types_1.EmberStatus]
479
- ],
480
- "mfglibEnd": [132, [],
481
- [types_1.EmberStatus]
482
- ],
483
- "mfglibStartTone": [133, [],
484
- [types_1.EmberStatus]
485
- ],
486
- "mfglibStopTone": [134, [],
487
- [types_1.EmberStatus]
488
- ],
489
- "mfglibStartStream": [135, [],
490
- [types_1.EmberStatus]
491
- ],
492
- "mfglibStopStream": [136, [],
493
- [types_1.EmberStatus]
494
- ],
495
- "mfglibSendPacket": [137, [types_1.LVBytes],
496
- [types_1.EmberStatus]
497
- ],
498
- "mfglibSetChannel": [138, [types_1.uint8_t],
499
- [types_1.EmberStatus]
500
- ],
501
- "mfglibGetChannel": [139, [],
502
- [types_1.uint8_t]
503
- ],
504
- "mfglibSetPower": [140, [types_1.uint16_t, types_1.int8s],
505
- [types_1.EmberStatus]
506
- ],
507
- "mfglibGetPower": [141, [],
508
- [types_1.int8s]
509
- ],
510
- "mfglibRxHandler": [142, [],
511
- [types_1.uint8_t, types_1.int8s, types_1.LVBytes]
512
- ],
513
- "launchStandaloneBootloader": [143, [types_1.uint8_t],
514
- [types_1.EmberStatus]
515
- ],
516
- "sendBootloadMessage": [144, [types_1.Bool, types_1.EmberEUI64, types_1.LVBytes],
517
- [types_1.EmberStatus]
518
- ],
519
- "getStandaloneBootloaderVersionPlatMicroPhy": [145, [],
520
- [types_1.uint16_t, types_1.uint8_t, types_1.uint8_t, types_1.uint8_t]
521
- ],
522
- "incomingBootloadMessageHandler": [146, [],
523
- [types_1.EmberEUI64, types_1.uint8_t, types_1.int8s, types_1.LVBytes]
524
- ],
525
- "bootloadTransmitCompleteHandler": [147, [],
526
- [types_1.EmberStatus, types_1.LVBytes]
527
- ],
528
- "aesEncrypt": [148, [(0, types_1.fixed_list)(16, types_1.uint8_t), (0, types_1.fixed_list)(16, types_1.uint8_t)],
529
- [(0, types_1.fixed_list)(16, types_1.uint8_t)]
530
- ],
531
- "overrideCurrentChannel": [149, [types_1.uint8_t],
532
- [types_1.EmberStatus]
533
- ],
534
- "zllNetworkOps": [178, [types_1.EmberZllNetwork, types_1.EzspZllNetworkOperation, types_1.int8s],
535
- [types_1.EmberStatus]
536
- ],
537
- "zllSetInitialSecurityState": [179, [types_1.EmberKeyData, types_1.EmberZllInitialSecurityState],
538
- [types_1.EmberStatus]
539
- ],
540
- "zllStartScan": [180, [types_1.uint32_t, types_1.int8s, types_1.EmberNodeType],
541
- [types_1.EmberStatus]
542
- ],
543
- "zllSetRxOnWhenIdle": [181, [types_1.uint16_t],
544
- [types_1.EmberStatus]
545
- ],
546
- "zllNetworkFoundHandler": [182, [],
547
- [types_1.EmberZllNetwork, types_1.Bool, types_1.EmberZllDeviceInfoRecord, types_1.uint8_t, types_1.int8s]
548
- ],
549
- "zllScanCompleteHandler": [183, [],
550
- [types_1.EmberStatus]
551
- ],
552
- "zllAddressAssignmentHandler": [184, [],
553
- [types_1.EmberZllAddressAssignment, types_1.uint8_t, types_1.int8s]
554
- ],
555
- "setLogicalAndRadioChannel": [185, [types_1.uint8_t],
556
- [types_1.EmberStatus]
557
- ],
558
- "getLogicalChannel": [186, [],
559
- [types_1.uint8_t]
560
- ],
561
- "zllTouchLinkTargetHandler": [187, [],
562
- [types_1.EmberZllNetwork]
563
- ],
564
- "zllGetTokens": [188, [],
565
- [types_1.EmberTokTypeStackZllData, types_1.EmberTokTypeStackZllSecurity]
566
- ],
567
- "zllSetDataToken": [189, [types_1.EmberTokTypeStackZllData],
568
- []
569
- ],
570
- "zllSetNonZllNetwork": [191, [],
571
- []
572
- ],
573
- "isZllNetwork": [190, [],
574
- [types_1.Bool]
575
- ],
576
- "rf4ceSetPairingTableEntry": [208, [types_1.uint8_t, types_1.EmberRf4cePairingTableEntry],
577
- [types_1.EmberStatus]
578
- ],
579
- "rf4ceGetPairingTableEntry": [209, [types_1.uint8_t],
580
- [types_1.EmberStatus, types_1.EmberRf4cePairingTableEntry]
581
- ],
582
- "rf4ceDeletePairingTableEntry": [210, [types_1.uint8_t],
583
- [types_1.EmberStatus]
584
- ],
585
- "rf4ceKeyUpdate": [211, [types_1.uint8_t, types_1.EmberKeyData],
586
- [types_1.EmberStatus]
587
- ],
588
- "rf4ceSend": [212, [types_1.uint8_t, types_1.uint8_t, types_1.uint16_t, types_1.EmberRf4ceTxOption, types_1.uint8_t, types_1.LVBytes],
589
- [types_1.EmberStatus]
590
- ],
591
- "rf4ceIncomingMessageHandler": [213, [],
592
- [types_1.uint8_t, types_1.uint8_t, types_1.uint16_t, types_1.EmberRf4ceTxOption, types_1.LVBytes]
593
- ],
594
- "rf4ceMessageSentHandler": [214, [],
595
- [types_1.EmberStatus, types_1.uint8_t, types_1.EmberRf4ceTxOption, types_1.uint8_t, types_1.uint16_t, types_1.uint8_t, types_1.LVBytes]
596
- ],
597
- "rf4ceStart": [215, [types_1.EmberRf4ceNodeCapabilities, types_1.EmberRf4ceVendorInfo, types_1.int8s],
598
- [types_1.EmberStatus]
599
- ],
600
- "rf4ceStop": [216, [],
601
- [types_1.EmberStatus]
602
- ],
603
- "rf4ceDiscovery": [217, [types_1.EmberPanId, types_1.EmberNodeId, types_1.uint8_t, types_1.uint16_t, types_1.LVBytes],
604
- [types_1.EmberStatus]
605
- ],
606
- "rf4ceDiscoveryCompleteHandler": [218, [],
607
- [types_1.EmberStatus]
608
- ],
609
- "rf4ceDiscoveryRequestHandler": [219, [],
610
- [types_1.EmberEUI64, types_1.uint8_t, types_1.EmberRf4ceVendorInfo, types_1.EmberRf4ceApplicationInfo, types_1.uint8_t, types_1.uint8_t]
611
- ],
612
- "rf4ceDiscoveryResponseHandler": [220, [],
613
- [types_1.Bool, types_1.uint8_t, types_1.EmberPanId, types_1.EmberEUI64, types_1.uint8_t, types_1.EmberRf4ceVendorInfo,
614
- types_1.EmberRf4ceApplicationInfo, types_1.uint8_t, types_1.uint8_t]
615
- ],
616
- "rf4ceEnableAutoDiscoveryResponse": [221, [types_1.uint16_t],
617
- [types_1.EmberStatus]
618
- ],
619
- "rf4ceAutoDiscoveryResponseCompleteHandler": [222, [],
620
- [types_1.EmberStatus, types_1.EmberEUI64, types_1.uint8_t, types_1.EmberRf4ceVendorInfo, types_1.EmberRf4ceApplicationInfo, types_1.uint8_t]
621
- ],
622
- "rf4cePair": [223, [types_1.uint8_t, types_1.EmberPanId, types_1.EmberEUI64, types_1.uint8_t],
623
- [types_1.EmberStatus]
624
- ],
625
- "rf4cePairCompleteHandler": [224, [],
626
- [types_1.EmberStatus, types_1.uint8_t, types_1.EmberRf4ceVendorInfo, types_1.EmberRf4ceApplicationInfo]
627
- ],
628
- "rf4cePairRequestHandler": [225, [],
629
- [types_1.EmberStatus, types_1.uint8_t, types_1.EmberEUI64, types_1.uint8_t, types_1.EmberRf4ceVendorInfo, types_1.EmberRf4ceApplicationInfo, types_1.uint8_t]
630
- ],
631
- "rf4ceUnpair": [226, [types_1.uint8_t],
632
- [types_1.EmberStatus]
633
- ],
634
- "rf4ceUnpairHandler": [227, [],
635
- [types_1.uint8_t]
636
- ],
637
- "rf4ceUnpairCompleteHandler": [228, [],
638
- [types_1.uint8_t]
639
- ],
640
- "rf4ceSetPowerSavingParameters": [229, [types_1.uint32_t, types_1.uint32_t],
641
- [types_1.EmberStatus]
642
- ],
643
- "rf4ceSetFrequencyAgilityParameters": [230, [types_1.uint8_t, types_1.uint8_t, types_1.int8s, types_1.uint16_t, types_1.uint8_t],
644
- [types_1.EmberStatus]
645
- ],
646
- "rf4ceSetApplicationInfo": [231, [types_1.EmberRf4ceApplicationInfo],
647
- [types_1.EmberStatus]
648
- ],
649
- "rf4ceGetApplicationInfo": [239, [],
650
- [types_1.EmberStatus, types_1.EmberRf4ceApplicationInfo]
651
- ],
652
- "rf4ceGetMaxPayload": [243, [types_1.uint8_t, types_1.EmberRf4ceTxOption],
653
- [types_1.uint8_t]
654
- ],
655
- "rf4ceGetNetworkParameters": [244, [],
656
- [types_1.EmberStatus, types_1.EmberNodeType, types_1.EmberNetworkParameters]
657
- ],
658
- "gpProxyTableProcessGpPairing": [201,
659
- [types_1.uint32_t, types_1.EmberGpAddress, types_1.uint8_t, types_1.uint16_t, types_1.uint16_t, types_1.uint16_t,
660
- (0, types_1.fixed_list)(8, types_1.uint8_t), types_1.EmberKeyData],
661
- []
662
- ],
663
- "dGpSend": [198, [types_1.Bool, types_1.Bool, types_1.EmberGpAddress, types_1.uint8_t, types_1.LVBytes, types_1.uint8_t, types_1.uint16_t],
664
- [types_1.EmberStatus]
665
- ],
666
- "dGpSentHandler": [199, [],
667
- [types_1.EmberStatus, types_1.uint8_t]
668
- ],
669
- "gpepIncomingMessageHandler": [197, [],
670
- [types_1.EmberStatus, types_1.uint8_t, types_1.uint8_t, types_1.EmberGpAddress, types_1.EmberGpSecurityLevel, types_1.EmberGpKeyType,
671
- types_1.Bool, types_1.Bool, types_1.uint32_t, types_1.uint8_t, types_1.uint32_t, types_1.EmberGpSinkListEntry, types_1.LVBytes]
672
- ],
673
- "changeSourceRouteHandler": [196, [], [types_1.EmberNodeId, types_1.EmberNodeId]],
674
- "setSourceRouteDiscoveryMode": [0x005A, [types_1.uint8_t,], [types_1.uint32_t,]],
6
+ exports.FRAMES = {
7
+ // Configuration Frames
8
+ version: {
9
+ ID: 0x0000,
10
+ request: {
11
+ desiredProtocolVersion: types_1.uint8_t
12
+ },
13
+ response: {
14
+ protocolVersion: types_1.uint8_t,
15
+ stackType: types_1.uint8_t,
16
+ stackVersion: types_1.uint16_t
17
+ }
18
+ },
19
+ getConfigurationValue: {
20
+ ID: 0x0052,
21
+ request: {
22
+ configId: types_1.EzspConfigId
23
+ },
24
+ response: {
25
+ status: types_1.EzspStatus,
26
+ value: types_1.uint16_t
27
+ }
28
+ },
29
+ setConfigurationValue: {
30
+ ID: 0x0053,
31
+ request: {
32
+ configId: types_1.EzspConfigId,
33
+ value: types_1.uint16_t
34
+ },
35
+ response: {
36
+ status: types_1.EzspStatus
37
+ }
38
+ },
39
+ addEndpoint: {
40
+ ID: 0x0002,
41
+ request: {
42
+ endpoint: types_1.uint8_t,
43
+ profileId: types_1.uint16_t,
44
+ deviceId: types_1.uint16_t,
45
+ appFlags: types_1.uint8_t,
46
+ inputClusterCount: types_1.uint8_t,
47
+ outputClusterCount: types_1.uint8_t,
48
+ inputClusterList: types_1.WordList,
49
+ outputClusterList: types_1.WordList,
50
+ },
51
+ response: {
52
+ status: types_1.EzspStatus
53
+ }
54
+ },
55
+ setPolicy: {
56
+ ID: 0x0055,
57
+ request: {
58
+ policyId: types_1.EzspPolicyId,
59
+ decisionId: types_1.EzspDecisionId
60
+ },
61
+ response: {
62
+ status: types_1.EzspStatus
63
+ }
64
+ },
65
+ getPolicy: {
66
+ ID: 0x0056,
67
+ request: {
68
+ policyId: types_1.EzspPolicyId,
69
+ },
70
+ response: {
71
+ status: types_1.EzspStatus,
72
+ decisionId: types_1.EzspDecisionId
73
+ }
74
+ },
75
+ sendPanIdUpdate: {
76
+ ID: 0x0057,
77
+ request: {
78
+ newPan: types_1.EmberPanId,
79
+ },
80
+ response: {
81
+ status: types_1.Bool
82
+ }
83
+ },
84
+ getValue: {
85
+ ID: 0x00AA,
86
+ request: {
87
+ valueId: types_1.EzspValueId
88
+ },
89
+ response: {
90
+ status: types_1.EzspStatus,
91
+ value: types_1.LVBytes
92
+ }
93
+ },
94
+ getExtendedValue: {
95
+ ID: 0x0003,
96
+ request: {
97
+ valueId: types_1.EzspExtendedValueId,
98
+ characteristics: types_1.uint32_t
99
+ },
100
+ response: {
101
+ status: types_1.EzspStatus,
102
+ value: types_1.LVBytes
103
+ }
104
+ },
105
+ setValue: {
106
+ ID: 0x00AB,
107
+ request: {
108
+ valueId: types_1.EzspValueId,
109
+ value: types_1.LVBytes
110
+ },
111
+ response: {
112
+ status: types_1.EzspStatus
113
+ }
114
+ },
115
+ // Utilities Frames
116
+ nop: {
117
+ ID: 0x0005,
118
+ request: null,
119
+ response: null
120
+ },
121
+ echo: {
122
+ ID: 0x0081,
123
+ request: {
124
+ data: types_1.LVBytes
125
+ },
126
+ response: {
127
+ echo: types_1.LVBytes
128
+ }
129
+ },
130
+ invalidCommand: {
131
+ ID: 0x0058,
132
+ request: null,
133
+ response: {
134
+ reason: types_1.EzspStatus
135
+ }
136
+ },
137
+ callback: {
138
+ ID: 0x0006,
139
+ request: null,
140
+ response: null
141
+ },
142
+ noCallbacks: {
143
+ ID: 0x0007,
144
+ request: null,
145
+ response: null
146
+ },
147
+ setToken: {
148
+ ID: 0x0009,
149
+ request: {
150
+ tokenId: types_1.uint8_t,
151
+ tokenData: (0, types_1.fixed_list)(8, types_1.uint8_t)
152
+ },
153
+ response: {
154
+ status: types_1.EmberStatus
155
+ }
156
+ },
157
+ getToken: {
158
+ ID: 0x000A,
159
+ request: {
160
+ tokenId: types_1.uint8_t
161
+ },
162
+ response: {
163
+ status: types_1.EmberStatus,
164
+ tokenData: (0, types_1.fixed_list)(8, types_1.uint8_t)
165
+ }
166
+ },
167
+ getMfgToken: {
168
+ ID: 0x000B,
169
+ request: {
170
+ tokenId: types_1.EzspMfgTokenId
171
+ },
172
+ response: {
173
+ status: types_1.EmberStatus,
174
+ tokenData: types_1.LVBytes
175
+ }
176
+ },
177
+ setMfgToken: {
178
+ ID: 0x000C,
179
+ request: {
180
+ tokenId: types_1.EzspMfgTokenId,
181
+ tokenData: types_1.LVBytes
182
+ },
183
+ response: {
184
+ status: types_1.EmberStatus
185
+ }
186
+ },
187
+ stackTokenChangedHandler: {
188
+ ID: 0x000D,
189
+ request: null,
190
+ response: {
191
+ tokenAddress: types_1.uint16_t
192
+ }
193
+ },
194
+ getRandomNumber: {
195
+ ID: 0x0049,
196
+ request: null,
197
+ response: {
198
+ status: types_1.EmberStatus,
199
+ value: types_1.uint16_t
200
+ }
201
+ },
202
+ setTimer: {
203
+ ID: 0x000E,
204
+ request: {
205
+ timerId: types_1.uint8_t,
206
+ time: types_1.uint16_t,
207
+ units: types_1.EmberEventUnits,
208
+ repeat: types_1.Bool
209
+ },
210
+ response: {
211
+ status: types_1.EmberStatus
212
+ },
213
+ },
214
+ getTimer: {
215
+ ID: 0x004E,
216
+ request: {
217
+ timerId: types_1.uint8_t
218
+ },
219
+ response: {
220
+ time: types_1.uint16_t,
221
+ units: types_1.EmberEventUnits,
222
+ repeat: types_1.Bool
223
+ },
224
+ },
225
+ timerHandler: {
226
+ ID: 0x000F,
227
+ request: null,
228
+ response: {
229
+ timerId: types_1.uint8_t
230
+ },
231
+ },
232
+ debugWrite: {
233
+ ID: 0x0012,
234
+ request: {
235
+ binaryMessage: types_1.Bool,
236
+ message: types_1.LVBytes
237
+ },
238
+ response: {
239
+ status: types_1.EmberStatus
240
+ },
241
+ },
242
+ readAndClearCounters: {
243
+ ID: 0x0065,
244
+ request: null,
245
+ response: {
246
+ values: (0, types_1.fixed_list)(types_1.EmberCounterType.COUNTER_TYPE_COUNT, types_1.uint16_t)
247
+ },
248
+ },
249
+ readCounters: {
250
+ ID: 0x00F1,
251
+ request: null,
252
+ response: {
253
+ values: (0, types_1.fixed_list)(types_1.EmberCounterType.COUNTER_TYPE_COUNT, types_1.uint16_t)
254
+ },
255
+ },
256
+ counterRolloverHandler: {
257
+ ID: 0x00F2,
258
+ request: null,
259
+ response: {
260
+ type: types_1.EmberCounterType
261
+ },
262
+ },
263
+ delayTest: {
264
+ ID: 0x009D,
265
+ request: {
266
+ delay: types_1.uint16_t
267
+ },
268
+ response: null,
269
+ },
270
+ getLibraryStatus: {
271
+ ID: 0x0001,
272
+ request: {
273
+ libraryId: types_1.uint8_t
274
+ },
275
+ response: {
276
+ status: types_1.EmberLibraryStatus
277
+ },
278
+ },
279
+ getXncpInfo: {
280
+ ID: 0x0013,
281
+ request: null,
282
+ response: {
283
+ status: types_1.EmberStatus,
284
+ manufacturerId: types_1.uint16_t,
285
+ versionNumber: types_1.uint16_t
286
+ },
287
+ },
288
+ customFrame: {
289
+ ID: 0x0047,
290
+ request: {
291
+ payload: types_1.LVBytes
292
+ },
293
+ response: {
294
+ status: types_1.EmberStatus,
295
+ reply: types_1.LVBytes
296
+ },
297
+ },
298
+ customFrameHandler: {
299
+ ID: 0x0054,
300
+ request: null,
301
+ response: {
302
+ payload: types_1.LVBytes
303
+ },
304
+ },
305
+ getEui64: {
306
+ ID: 0x0026,
307
+ request: null,
308
+ response: {
309
+ eui64: types_1.EmberEUI64
310
+ },
311
+ },
312
+ getNodeId: {
313
+ ID: 0x0027,
314
+ request: null,
315
+ response: {
316
+ nodeId: types_1.EmberNodeId
317
+ },
318
+ },
319
+ // Networking Frames
320
+ setManufacturerCode: {
321
+ ID: 0x0015,
322
+ request: {
323
+ code: types_1.uint16_t
324
+ },
325
+ response: null,
326
+ },
327
+ setPowerDescriptor: {
328
+ ID: 0x0016,
329
+ request: {
330
+ descriptor: types_1.uint16_t
331
+ },
332
+ response: null,
333
+ },
334
+ networkInit: {
335
+ ID: 0x0017,
336
+ request: null,
337
+ response: {
338
+ status: types_1.EmberStatus
339
+ },
340
+ },
341
+ networkInitExtended: {
342
+ ID: 112,
343
+ request: {
344
+ networkInitStruct: types_1.EmberNetworkInitStruct
345
+ },
346
+ response: {
347
+ status: types_1.EmberStatus
348
+ },
349
+ },
350
+ networkState: {
351
+ ID: 0x0018,
352
+ request: null,
353
+ response: {
354
+ status: types_1.EmberNetworkStatus
355
+ },
356
+ },
357
+ stackStatusHandler: {
358
+ ID: 0x0019,
359
+ request: null,
360
+ response: {
361
+ status: types_1.EmberStatus
362
+ },
363
+ },
364
+ startScan: {
365
+ ID: 0x001A,
366
+ request: {
367
+ scanType: types_1.EzspNetworkScanType,
368
+ channelMask: types_1.uint32_t,
369
+ duration: types_1.uint8_t
370
+ },
371
+ response: {
372
+ status: types_1.EmberStatus
373
+ },
374
+ },
375
+ energyScanResultHandler: {
376
+ ID: 0x0048,
377
+ request: null,
378
+ response: {
379
+ channel: types_1.uint8_t,
380
+ maxRssiValue: types_1.int8s
381
+ },
382
+ },
383
+ networkFoundHandler: {
384
+ ID: 0x001B,
385
+ request: null,
386
+ response: {
387
+ networkFound: types_1.EmberZigbeeNetwork,
388
+ lastHopLqi: types_1.uint8_t,
389
+ lastHopRssi: types_1.int8s
390
+ },
391
+ },
392
+ scanCompleteHandler: {
393
+ ID: 0x001C,
394
+ request: null,
395
+ response: {
396
+ channel: types_1.uint8_t,
397
+ status: types_1.EmberStatus
398
+ },
399
+ },
400
+ unusedPanIdFoundHandler: {
401
+ ID: 0x00D2,
402
+ request: null,
403
+ response: {
404
+ panId: types_1.EmberPanId,
405
+ channel: types_1.uint8_t
406
+ },
407
+ },
408
+ findUnusedPanId: {
409
+ ID: 0x00D3,
410
+ request: {
411
+ channelMask: types_1.uint32_t,
412
+ duration: types_1.uint8_t
413
+ },
414
+ response: {
415
+ status: types_1.EmberStatus
416
+ },
417
+ },
418
+ stopScan: {
419
+ ID: 0x001D,
420
+ request: null,
421
+ response: {
422
+ status: types_1.EmberStatus
423
+ },
424
+ },
425
+ formNetwork: {
426
+ ID: 0x001E,
427
+ request: {
428
+ parameters: types_1.EmberNetworkParameters
429
+ },
430
+ response: {
431
+ status: types_1.EmberStatus
432
+ },
433
+ },
434
+ joinNetwork: {
435
+ ID: 0x001F,
436
+ request: {
437
+ nodeType: types_1.EmberNodeType,
438
+ parameters: types_1.EmberNetworkParameters
439
+ },
440
+ response: {
441
+ status: types_1.EmberStatus
442
+ },
443
+ },
444
+ // joinNetworkDirectly: {
445
+ // ID: 0x003B,
446
+ // request: {
447
+ // localNodeType: EmberNodeType,
448
+ // beacon: EmberBeaconData,
449
+ // radioTxPower: int8s,
450
+ // clearBeaconsAfterNetworkUp: Bool
451
+ // },
452
+ // response: {
453
+ // status: EmberStatus
454
+ // },
455
+ // },
456
+ leaveNetwork: {
457
+ ID: 0x0020,
458
+ request: null,
459
+ response: {
460
+ status: types_1.EmberStatus
461
+ },
462
+ },
463
+ findAndRejoinNetwork: {
464
+ ID: 0x0021,
465
+ request: {
466
+ haveCurrentNetworkKey: types_1.Bool,
467
+ channelMask: types_1.uint32_t
468
+ },
469
+ response: {
470
+ status: types_1.EmberStatus
471
+ },
472
+ },
473
+ permitJoining: {
474
+ ID: 0x0022,
475
+ request: {
476
+ duration: types_1.uint8_t
477
+ },
478
+ response: {
479
+ status: types_1.EmberStatus
480
+ },
481
+ },
482
+ childJoinHandler: {
483
+ ID: 0x0023,
484
+ request: null,
485
+ response: {
486
+ index: types_1.uint8_t,
487
+ joining: types_1.Bool,
488
+ childId: types_1.EmberNodeId,
489
+ childEui64: types_1.EmberEUI64,
490
+ childType: types_1.EmberNodeType
491
+ },
492
+ },
493
+ energyScanRequest: {
494
+ ID: 0x009C,
495
+ request: {
496
+ target: types_1.EmberNodeId,
497
+ scanChannels: types_1.uint32_t,
498
+ scanDuration: types_1.uint8_t,
499
+ scanCount: types_1.uint16_t
500
+ },
501
+ response: {
502
+ status: types_1.EmberStatus
503
+ },
504
+ },
505
+ getNetworkParameters: {
506
+ ID: 0x0028,
507
+ request: null,
508
+ response: {
509
+ status: types_1.EmberStatus,
510
+ nodeType: types_1.EmberNodeType,
511
+ parameters: types_1.EmberNetworkParameters
512
+ },
513
+ },
514
+ getRadioParameters: {
515
+ ID: 0x00FD,
516
+ request: {
517
+ childCount: types_1.uint8_t
518
+ },
519
+ response: {
520
+ status: types_1.EmberStatus,
521
+ nodeType: types_1.EmberNodeType,
522
+ parameters: types_1.EmberNetworkParameters
523
+ },
524
+ },
525
+ getParentChildParameters: {
526
+ ID: 0x0029,
527
+ request: null,
528
+ response: {
529
+ childCount: types_1.uint8_t,
530
+ parentEui64: types_1.EmberEUI64,
531
+ parentNodeId: types_1.EmberNodeId
532
+ },
533
+ },
534
+ getChildData: {
535
+ ID: 0x004A,
536
+ request: {
537
+ index: types_1.uint8_t
538
+ },
539
+ response: {
540
+ status: types_1.EmberStatus,
541
+ nodeId: types_1.EmberNodeId,
542
+ eui64: types_1.EmberEUI64,
543
+ nodeType: types_1.EmberNodeType
544
+ },
545
+ },
546
+ getNeighbor: {
547
+ ID: 0x0079,
548
+ request: {
549
+ index: types_1.uint8_t
550
+ },
551
+ response: {
552
+ status: types_1.EmberStatus,
553
+ value: types_1.EmberNeighborTableEntry
554
+ },
555
+ },
556
+ neighborCount: {
557
+ ID: 0x007A,
558
+ request: null,
559
+ response: {
560
+ value: types_1.uint8_t
561
+ },
562
+ },
563
+ getRouteTableEntry: {
564
+ ID: 0x007B,
565
+ request: {
566
+ index: types_1.uint8_t
567
+ },
568
+ response: {
569
+ status: types_1.EmberStatus,
570
+ value: types_1.EmberRouteTableEntry
571
+ },
572
+ },
573
+ setRadioPower: {
574
+ ID: 0x0099,
575
+ request: {
576
+ power: types_1.int8s
577
+ },
578
+ response: {
579
+ status: types_1.EmberStatus
580
+ },
581
+ },
582
+ setRadioChannel: {
583
+ ID: 0x009A,
584
+ request: {
585
+ channel: types_1.uint8_t
586
+ },
587
+ response: {
588
+ status: types_1.EmberStatus
589
+ },
590
+ },
591
+ setConcentrator: {
592
+ ID: 0x0010,
593
+ request: {
594
+ on: types_1.Bool,
595
+ concentratorType: types_1.uint16_t,
596
+ minTime: types_1.uint16_t,
597
+ maxTime: types_1.uint16_t,
598
+ routeErrorThreshold: types_1.uint8_t,
599
+ deliveryFailureThreshold: types_1.uint8_t,
600
+ maxHops: types_1.uint8_t
601
+ },
602
+ response: {
603
+ status: types_1.EmberStatus
604
+ },
605
+ },
606
+ // Binding Frames
607
+ clearBindingTable: {
608
+ ID: 0x002A,
609
+ request: null,
610
+ response: {
611
+ status: types_1.EmberStatus
612
+ },
613
+ },
614
+ setBinding: {
615
+ ID: 0x002B,
616
+ request: {
617
+ index: types_1.uint8_t,
618
+ value: types_1.EmberBindingTableEntry
619
+ },
620
+ response: {
621
+ status: types_1.EmberStatus
622
+ },
623
+ },
624
+ getBinding: {
625
+ ID: 0x002C,
626
+ request: {
627
+ index: types_1.uint8_t
628
+ },
629
+ response: {
630
+ status: types_1.EmberStatus,
631
+ value: types_1.EmberBindingTableEntry
632
+ },
633
+ },
634
+ deleteBinding: {
635
+ ID: 0x002D,
636
+ request: {
637
+ index: types_1.uint8_t
638
+ },
639
+ response: {
640
+ status: types_1.EmberStatus
641
+ },
642
+ },
643
+ bindingIsActive: {
644
+ ID: 0x002E,
645
+ request: {
646
+ index: types_1.uint8_t
647
+ },
648
+ response: {
649
+ active: types_1.Bool
650
+ },
651
+ },
652
+ getBindingRemoteNodeId: {
653
+ ID: 0x002F,
654
+ request: {
655
+ index: types_1.uint8_t
656
+ },
657
+ response: {
658
+ nodeId: types_1.EmberNodeId
659
+ },
660
+ },
661
+ setBindingRemoteNodeId: {
662
+ ID: 0x0030,
663
+ request: {
664
+ index: types_1.uint8_t,
665
+ nodeId: types_1.EmberNodeId
666
+ },
667
+ response: null,
668
+ },
669
+ remoteSetBindingHandler: {
670
+ ID: 0x0031,
671
+ request: null,
672
+ response: {
673
+ entry: types_1.EmberBindingTableEntry,
674
+ index: types_1.uint8_t,
675
+ policyDecision: types_1.EmberStatus
676
+ },
677
+ },
678
+ remoteDeleteBindingHandler: {
679
+ ID: 0x0032,
680
+ request: null,
681
+ response: {
682
+ index: types_1.uint8_t,
683
+ policyDecision: types_1.EmberStatus
684
+ },
685
+ },
686
+ // Messaging Frames
687
+ maximumPayloadLength: {
688
+ ID: 0x0033,
689
+ request: null,
690
+ response: {
691
+ apsLength: types_1.uint8_t
692
+ },
693
+ },
694
+ sendUnicast: {
695
+ ID: 0x0034,
696
+ request: {
697
+ type: types_1.EmberOutgoingMessageType,
698
+ indexOrDestination: types_1.EmberNodeId,
699
+ apsFrame: types_1.EmberApsFrame,
700
+ messageTag: types_1.uint8_t,
701
+ message: types_1.LVBytes
702
+ },
703
+ response: {
704
+ status: types_1.EmberStatus,
705
+ sequence: types_1.uint8_t
706
+ },
707
+ },
708
+ sendBroadcast: {
709
+ ID: 0x0036,
710
+ request: {
711
+ destination: types_1.EmberNodeId,
712
+ apsFrame: types_1.EmberApsFrame,
713
+ radius: types_1.uint8_t,
714
+ messageTag: types_1.uint8_t,
715
+ message: types_1.LVBytes
716
+ },
717
+ response: {
718
+ status: types_1.EmberStatus,
719
+ sequence: types_1.uint8_t
720
+ },
721
+ },
722
+ proxyBroadcast: {
723
+ ID: 0x0037,
724
+ request: {
725
+ source: types_1.EmberNodeId,
726
+ destination: types_1.EmberNodeId,
727
+ nwkSequence: types_1.uint8_t,
728
+ apsFrame: types_1.EmberApsFrame,
729
+ radius: types_1.uint8_t,
730
+ messageTag: types_1.uint8_t,
731
+ message: types_1.LVBytes
732
+ },
733
+ response: {
734
+ status: types_1.EmberStatus,
735
+ apsSequence: types_1.uint8_t
736
+ },
737
+ },
738
+ sendMulticast: {
739
+ ID: 0x0038,
740
+ request: {
741
+ apsFrame: types_1.EmberApsFrame,
742
+ hops: types_1.uint8_t,
743
+ nonmemberRadius: types_1.uint8_t,
744
+ messageTag: types_1.uint8_t,
745
+ message: types_1.LVBytes
746
+ },
747
+ response: {
748
+ status: types_1.EmberStatus,
749
+ sequence: types_1.uint8_t
750
+ },
751
+ },
752
+ sendMulticastWithAlias: {
753
+ ID: 0x003A,
754
+ request: {
755
+ apsFrame: types_1.EmberApsFrame,
756
+ hops: types_1.uint8_t,
757
+ nonmemberRadius: types_1.uint8_t,
758
+ alias: types_1.uint16_t,
759
+ nwkSequence: types_1.uint8_t,
760
+ messageTag: types_1.uint8_t,
761
+ message: types_1.LVBytes
762
+ },
763
+ response: {
764
+ status: types_1.EmberStatus,
765
+ sequence: types_1.uint8_t
766
+ },
767
+ },
768
+ sendReply: {
769
+ ID: 0x0039,
770
+ request: {
771
+ sender: types_1.EmberNodeId,
772
+ apsFrame: types_1.EmberApsFrame,
773
+ message: types_1.LVBytes
774
+ },
775
+ response: {
776
+ status: types_1.EmberStatus
777
+ },
778
+ },
779
+ messageSentHandler: {
780
+ ID: 0x003F,
781
+ request: null,
782
+ response: {
783
+ type: types_1.EmberOutgoingMessageType,
784
+ indexOrDestination: types_1.uint16_t,
785
+ apsFrame: types_1.EmberApsFrame,
786
+ messageTag: types_1.uint8_t,
787
+ status: types_1.EmberStatus,
788
+ message: types_1.LVBytes
789
+ },
790
+ },
791
+ sendManyToOneRouteRequest: {
792
+ ID: 0x0041,
793
+ request: {
794
+ concentratorType: types_1.uint16_t,
795
+ radius: types_1.uint8_t
796
+ },
797
+ response: {
798
+ status: types_1.EmberStatus
799
+ },
800
+ },
801
+ pollForData: {
802
+ ID: 0x0042,
803
+ request: {
804
+ interval: types_1.uint16_t,
805
+ units: types_1.EmberEventUnits,
806
+ failureLimit: types_1.uint8_t
807
+ },
808
+ response: {
809
+ status: types_1.EmberStatus
810
+ },
811
+ },
812
+ pollCompleteHandler: {
813
+ ID: 0x0043,
814
+ request: null,
815
+ response: {
816
+ status: types_1.EmberStatus
817
+ },
818
+ },
819
+ pollHandler: {
820
+ ID: 0x0044,
821
+ request: null,
822
+ response: {
823
+ childId: types_1.EmberNodeId
824
+ },
825
+ },
826
+ incomingSenderEui64Handler: {
827
+ ID: 0x0062,
828
+ request: null,
829
+ response: {
830
+ senderEui64: types_1.EmberEUI64
831
+ },
832
+ },
833
+ incomingMessageHandler: {
834
+ ID: 0x0045,
835
+ request: null,
836
+ response: {
837
+ type: types_1.EmberIncomingMessageType,
838
+ apsFrame: types_1.EmberApsFrame,
839
+ lastHopLqi: types_1.uint8_t,
840
+ lastHopRssi: types_1.int8s,
841
+ sender: types_1.EmberNodeId,
842
+ bindingIndex: types_1.uint8_t,
843
+ addressIndex: types_1.uint8_t,
844
+ message: types_1.LVBytes
845
+ },
846
+ },
847
+ incomingRouteRecordHandler: {
848
+ ID: 0x0059,
849
+ request: null,
850
+ response: {
851
+ source: types_1.EmberNodeId,
852
+ longId: types_1.EmberEUI64,
853
+ lastHopLqi: types_1.uint8_t,
854
+ lastHopRssi: types_1.int8s,
855
+ relay: types_1.LVBytes
856
+ },
857
+ },
858
+ incomingManyToOneRouteRequestHandler: {
859
+ ID: 0x007D,
860
+ request: null,
861
+ response: {
862
+ source: types_1.EmberNodeId,
863
+ longId: types_1.EmberEUI64,
864
+ cost: types_1.uint8_t
865
+ },
866
+ },
867
+ incomingRouteErrorHandler: {
868
+ ID: 0x0080,
869
+ request: null,
870
+ response: {
871
+ status: types_1.EmberStatus,
872
+ target: types_1.EmberNodeId
873
+ },
874
+ },
875
+ unicastCurrentNetworkKey: {
876
+ ID: 0x0050,
877
+ request: {
878
+ targetShort: types_1.EmberNodeId,
879
+ targetLong: types_1.EmberEUI64,
880
+ parentShortId: types_1.EmberNodeId
881
+ },
882
+ response: {
883
+ status: types_1.EmberStatus
884
+ },
885
+ },
886
+ addressTableEntryIsActive: {
887
+ ID: 0x005B,
888
+ request: {
889
+ addressTableIndex: types_1.uint8_t
890
+ },
891
+ response: {
892
+ active: types_1.Bool
893
+ },
894
+ },
895
+ setAddressTableRemoteEui64: {
896
+ ID: 0x005C,
897
+ request: {
898
+ addressTableIndex: types_1.uint8_t,
899
+ eui64: types_1.EmberEUI64
900
+ },
901
+ response: {
902
+ status: types_1.EmberStatus
903
+ },
904
+ },
905
+ setAddressTableRemoteNodeId: {
906
+ ID: 0x005D,
907
+ request: {
908
+ addressTableIndex: types_1.uint8_t,
909
+ id: types_1.EmberNodeId
910
+ },
911
+ response: null,
912
+ },
913
+ getAddressTableRemoteEui64: {
914
+ ID: 0x005E,
915
+ request: {
916
+ addressTableIndex: types_1.uint8_t
917
+ },
918
+ response: {
919
+ eui64: types_1.EmberEUI64
920
+ },
921
+ },
922
+ getAddressTableRemoteNodeId: {
923
+ ID: 0x005F,
924
+ request: {
925
+ addressTableIndex: types_1.uint8_t
926
+ },
927
+ response: {
928
+ nodeId: types_1.EmberNodeId
929
+ },
930
+ },
931
+ setExtendedTimeout: {
932
+ ID: 0x007E,
933
+ request: {
934
+ remoteEui64: types_1.EmberEUI64,
935
+ extendedTimeout: types_1.Bool
936
+ },
937
+ response: null,
938
+ },
939
+ getExtendedTimeout: {
940
+ ID: 0x007F,
941
+ request: {
942
+ remoteEui64: types_1.EmberEUI64
943
+ },
944
+ response: {
945
+ extendedTimeout: types_1.Bool
946
+ },
947
+ },
948
+ replaceAddressTableEntry: {
949
+ ID: 0x0082,
950
+ request: {
951
+ addressTableIndex: types_1.uint8_t,
952
+ newEui64: types_1.EmberEUI64,
953
+ newId: types_1.EmberNodeId,
954
+ newExtendedTimeout: types_1.Bool
955
+ },
956
+ response: {
957
+ status: types_1.EmberStatus,
958
+ oldEui64: types_1.EmberEUI64,
959
+ oldId: types_1.EmberNodeId,
960
+ oldExtendedTimeout: types_1.Bool
961
+ },
962
+ },
963
+ lookupNodeIdByEui64: {
964
+ ID: 0x0060,
965
+ request: {
966
+ eui64: types_1.EmberEUI64
967
+ },
968
+ response: {
969
+ nodeId: types_1.EmberNodeId
970
+ },
971
+ },
972
+ lookupEui64ByNodeId: {
973
+ ID: 0x0061,
974
+ request: {
975
+ nodeId: types_1.EmberNodeId
976
+ },
977
+ response: {
978
+ status: types_1.EmberStatus,
979
+ eui64: types_1.EmberEUI64
980
+ },
981
+ },
982
+ getMulticastTableEntry: {
983
+ ID: 0x0063,
984
+ request: {
985
+ index: types_1.uint8_t
986
+ },
987
+ response: {
988
+ value: types_1.EmberMulticastTableEntry
989
+ },
990
+ },
991
+ setMulticastTableEntry: {
992
+ ID: 0x0064,
993
+ request: {
994
+ index: types_1.uint8_t,
995
+ value: types_1.EmberMulticastTableEntry
996
+ },
997
+ response: {
998
+ status: types_1.EmberStatus
999
+ },
1000
+ },
1001
+ idConflictHandler: {
1002
+ ID: 0x007C,
1003
+ request: null,
1004
+ response: {
1005
+ id: types_1.EmberNodeId
1006
+ },
1007
+ },
1008
+ writeNodeData: {
1009
+ ID: 0x00FE,
1010
+ request: {
1011
+ erase: types_1.Bool
1012
+ },
1013
+ response: {
1014
+ status: types_1.EmberStatus
1015
+ },
1016
+ },
1017
+ sendRawMessage: {
1018
+ ID: 0x0096,
1019
+ request: {
1020
+ message: types_1.LVBytes
1021
+ },
1022
+ response: {
1023
+ status: types_1.EmberStatus
1024
+ },
1025
+ },
1026
+ sendRawMessageExtended: {
1027
+ ID: 0x0051,
1028
+ request: {
1029
+ message: types_1.LVBytes,
1030
+ priority: types_1.uint8_t,
1031
+ useCca: types_1.Bool
1032
+ },
1033
+ response: {
1034
+ status: types_1.EmberStatus
1035
+ },
1036
+ },
1037
+ macPassthroughMessageHandler: {
1038
+ ID: 0x0097,
1039
+ request: null,
1040
+ response: {
1041
+ messageType: types_1.EmberMacPassthroughType,
1042
+ lastHopLqi: types_1.uint8_t,
1043
+ lastHopRssi: types_1.int8s,
1044
+ message: types_1.LVBytes
1045
+ },
1046
+ },
1047
+ macFilterMatchMessageHandler: {
1048
+ ID: 0x0046,
1049
+ request: null,
1050
+ response: {
1051
+ filterIndexMatch: types_1.uint8_t,
1052
+ legacyPassthroughType: types_1.EmberMacPassthroughType,
1053
+ lastHopLqi: types_1.uint8_t,
1054
+ lastHopRssi: types_1.int8s,
1055
+ message: types_1.LVBytes
1056
+ },
1057
+ },
1058
+ rawTransmitCompleteHandler: {
1059
+ ID: 0x0098,
1060
+ request: null,
1061
+ response: {
1062
+ status: types_1.EmberStatus
1063
+ },
1064
+ },
1065
+ // Security Frames
1066
+ setInitialSecurityState: {
1067
+ ID: 0x0068,
1068
+ request: {
1069
+ state: types_1.EmberInitialSecurityState
1070
+ },
1071
+ response: {
1072
+ success: types_1.EmberStatus
1073
+ },
1074
+ },
1075
+ getCurrentSecurityState: {
1076
+ ID: 0x0069,
1077
+ request: null,
1078
+ response: {
1079
+ status: types_1.EmberStatus,
1080
+ state: types_1.EmberCurrentSecurityState
1081
+ },
1082
+ },
1083
+ getKey: {
1084
+ ID: 0x006a,
1085
+ request: {
1086
+ keyType: types_1.EmberKeyType
1087
+ },
1088
+ response: {
1089
+ status: types_1.EmberStatus,
1090
+ keyStruct: types_1.EmberKeyStruct
1091
+ },
1092
+ },
1093
+ switchNetworkKeyHandler: {
1094
+ ID: 0x006e,
1095
+ request: null,
1096
+ response: {
1097
+ sequenceNumber: types_1.uint8_t
1098
+ },
1099
+ },
1100
+ getKeyTableEntry: {
1101
+ ID: 0x0071,
1102
+ request: {
1103
+ index: types_1.uint8_t
1104
+ },
1105
+ response: {
1106
+ status: types_1.EmberStatus,
1107
+ keyStruct: types_1.EmberKeyStruct
1108
+ },
1109
+ },
1110
+ setKeyTableEntry: {
1111
+ ID: 0x0072,
1112
+ request: {
1113
+ index: types_1.uint8_t,
1114
+ address: types_1.EmberEUI64,
1115
+ linkKey: types_1.Bool,
1116
+ keyData: types_1.EmberKeyData
1117
+ },
1118
+ response: {
1119
+ status: types_1.EmberStatus
1120
+ },
1121
+ },
1122
+ findKeyTableEntry: {
1123
+ ID: 0x0075,
1124
+ request: {
1125
+ address: types_1.EmberEUI64,
1126
+ linkKey: types_1.Bool
1127
+ },
1128
+ response: {
1129
+ index: types_1.uint8_t
1130
+ },
1131
+ },
1132
+ addOrUpdateKeyTableEntry: {
1133
+ ID: 0x0066,
1134
+ request: {
1135
+ address: types_1.EmberEUI64,
1136
+ linkKey: types_1.Bool,
1137
+ keyData: types_1.EmberKeyData
1138
+ },
1139
+ response: {
1140
+ status: types_1.EmberStatus
1141
+ },
1142
+ },
1143
+ sendTrustCenterLinkKey: {
1144
+ ID: 0x0067,
1145
+ request: {
1146
+ destinationNodeId: types_1.EmberNodeId,
1147
+ destinationEui64: types_1.EmberEUI64
1148
+ },
1149
+ response: {
1150
+ status: types_1.EmberStatus
1151
+ },
1152
+ },
1153
+ eraseKeyTableEntry: {
1154
+ ID: 0x0076,
1155
+ request: {
1156
+ index: types_1.uint8_t
1157
+ },
1158
+ response: {
1159
+ status: types_1.EmberStatus
1160
+ },
1161
+ },
1162
+ clearKeyTable: {
1163
+ ID: 0x00B1,
1164
+ request: null,
1165
+ response: {
1166
+ status: types_1.EmberStatus
1167
+ },
1168
+ },
1169
+ requestLinkKey: {
1170
+ ID: 0x0014,
1171
+ request: {
1172
+ partner: types_1.EmberEUI64
1173
+ },
1174
+ response: {
1175
+ status: types_1.EmberStatus
1176
+ },
1177
+ },
1178
+ updateTcLinkKey: {
1179
+ ID: 0x006C,
1180
+ request: {
1181
+ maxAttempts: types_1.uint8_t
1182
+ },
1183
+ response: {
1184
+ status: types_1.EmberStatus
1185
+ },
1186
+ },
1187
+ zigbeeKeyEstablishmentHandler: {
1188
+ ID: 0x009B,
1189
+ request: null,
1190
+ response: {
1191
+ partner: types_1.EmberEUI64,
1192
+ status: types_1.EmberKeyStatus
1193
+ },
1194
+ },
1195
+ addTransientLinkKey: {
1196
+ ID: 0x00AF,
1197
+ request: {
1198
+ partner: types_1.EmberEUI64,
1199
+ transientKey: types_1.EmberKeyData
1200
+ },
1201
+ response: {
1202
+ status: types_1.EmberStatus
1203
+ },
1204
+ },
1205
+ clearTransientLinkKeys: {
1206
+ ID: 0x006B,
1207
+ request: null,
1208
+ response: null,
1209
+ },
1210
+ // getTransientLinkKey: {
1211
+ // ID: 0x00CE,
1212
+ // request: {
1213
+ // eui: EmberEUI64
1214
+ // },
1215
+ // response: {
1216
+ // status: EmberStatus,
1217
+ // transientKeyData: EmberTransientKeyData
1218
+ // },
1219
+ // },
1220
+ // Secure EZSP Frames
1221
+ setSecurityKey: {
1222
+ ID: 0x00CA,
1223
+ request: {
1224
+ key: types_1.EmberKeyData,
1225
+ securityType: types_1.SecureEzspSecurityType
1226
+ },
1227
+ response: {
1228
+ status: types_1.EzspStatus
1229
+ },
1230
+ },
1231
+ setSecurityParameters: {
1232
+ ID: 0x00CB,
1233
+ request: {
1234
+ securityLevel: types_1.SecureEzspSecurityLevel,
1235
+ hostRandomNumber: types_1.SecureEzspRandomNumber
1236
+ },
1237
+ response: {
1238
+ status: types_1.EzspStatus,
1239
+ returnNcpRandomNumber: types_1.SecureEzspRandomNumber
1240
+ },
1241
+ },
1242
+ resetToFactoryDefaults: {
1243
+ ID: 0x00CC,
1244
+ request: null,
1245
+ response: {
1246
+ status: types_1.EzspStatus
1247
+ },
1248
+ },
1249
+ getSecurityKeyStatus: {
1250
+ ID: 0x00CD,
1251
+ request: null,
1252
+ response: {
1253
+ status: types_1.EzspStatus,
1254
+ returnSecurityType: types_1.SecureEzspSecurityType
1255
+ },
1256
+ },
1257
+ // Trust Center Frames
1258
+ trustCenterJoinHandler: {
1259
+ ID: 0x0024,
1260
+ request: null,
1261
+ response: {
1262
+ newNodeId: types_1.EmberNodeId,
1263
+ newNodeEui64: types_1.EmberEUI64,
1264
+ status: types_1.EmberDeviceUpdate,
1265
+ policyDecision: types_1.EmberJoinDecision,
1266
+ parentOfNewNodeId: types_1.EmberNodeId
1267
+ },
1268
+ },
1269
+ broadcastNextNetworkKey: {
1270
+ ID: 0x0073,
1271
+ request: {
1272
+ key: types_1.EmberKeyData
1273
+ },
1274
+ response: {
1275
+ status: types_1.EmberStatus
1276
+ },
1277
+ },
1278
+ broadcastNetworkKeySwitch: {
1279
+ ID: 0x0074,
1280
+ request: null,
1281
+ response: {
1282
+ status: types_1.EmberStatus
1283
+ },
1284
+ },
1285
+ becomeTrustCenter: {
1286
+ ID: 0x0077,
1287
+ request: {
1288
+ newNetworkKey: types_1.EmberKeyData
1289
+ },
1290
+ response: {
1291
+ status: types_1.EmberStatus
1292
+ },
1293
+ },
1294
+ aesMmoHash: {
1295
+ ID: 0x006F,
1296
+ request: {
1297
+ context: types_1.EmberAesMmoHashContext,
1298
+ finalize: types_1.Bool,
1299
+ data: types_1.LVBytes
1300
+ },
1301
+ response: {
1302
+ status: types_1.EmberStatus,
1303
+ returnContext: types_1.EmberAesMmoHashContext
1304
+ },
1305
+ },
1306
+ removeDevice: {
1307
+ ID: 0x00A8,
1308
+ request: {
1309
+ destShort: types_1.EmberNodeId,
1310
+ destLong: types_1.EmberEUI64,
1311
+ targetLong: types_1.EmberEUI64
1312
+ },
1313
+ response: {
1314
+ status: types_1.EmberStatus
1315
+ },
1316
+ },
1317
+ unicastNwkKeyUpdate: {
1318
+ ID: 0x00A9,
1319
+ request: {
1320
+ destShort: types_1.EmberNodeId,
1321
+ destLong: types_1.EmberEUI64,
1322
+ key: types_1.EmberKeyData
1323
+ },
1324
+ response: {
1325
+ status: types_1.EmberStatus
1326
+ },
1327
+ },
1328
+ // Certificate Based Key Exchange (CBKE) Frames
1329
+ generateCbkeKeys: {
1330
+ ID: 0x00A4,
1331
+ request: null,
1332
+ response: {
1333
+ status: types_1.EmberStatus
1334
+ },
1335
+ },
1336
+ generateCbkeKeysHandler: {
1337
+ ID: 0x009E,
1338
+ request: null,
1339
+ response: {
1340
+ status: types_1.EmberStatus,
1341
+ ephemeralPublicKey: types_1.EmberPublicKeyData
1342
+ },
1343
+ },
1344
+ calculateSmacs: {
1345
+ ID: 0x009F,
1346
+ request: {
1347
+ amInitiator: types_1.Bool,
1348
+ partnerCertificate: types_1.EmberCertificateData,
1349
+ partnerEphemeralPublicKey: types_1.EmberPublicKeyData
1350
+ },
1351
+ response: {
1352
+ status: types_1.EmberStatus
1353
+ },
1354
+ },
1355
+ calculateSmacsHandler: {
1356
+ ID: 0x00A0,
1357
+ request: null,
1358
+ response: {
1359
+ status: types_1.EmberStatus,
1360
+ initiatorSmac: types_1.EmberSmacData,
1361
+ responderSmac: types_1.EmberSmacData
1362
+ },
1363
+ },
1364
+ generateCbkeKeys283k1: {
1365
+ ID: 0x00E8,
1366
+ request: null,
1367
+ response: {
1368
+ status: types_1.EmberStatus
1369
+ },
1370
+ },
1371
+ generateCbkeKeysHandler283k1: {
1372
+ ID: 0x00E9,
1373
+ request: null,
1374
+ response: {
1375
+ status: types_1.EmberStatus,
1376
+ ephemeralPublicKey: types_1.EmberPublicKey283k1Data
1377
+ },
1378
+ },
1379
+ calculateSmacs283k1: {
1380
+ ID: 0x00EA,
1381
+ request: {
1382
+ amInitiator: types_1.Bool,
1383
+ partnerCertificate: types_1.EmberCertificate283k1Data,
1384
+ partnerEphemeralPublicKey: types_1.EmberPublicKey283k1Data
1385
+ },
1386
+ response: {
1387
+ status: types_1.EmberStatus
1388
+ },
1389
+ },
1390
+ calculateSmacsHandler283k1: {
1391
+ ID: 0x00EB,
1392
+ request: null,
1393
+ response: {
1394
+ status: types_1.EmberStatus,
1395
+ initiatorSmac: types_1.EmberSmacData,
1396
+ responderSmac: types_1.EmberSmacData
1397
+ },
1398
+ },
1399
+ clearTemporaryDataMaybeStoreLinkKey: {
1400
+ ID: 0x00A1,
1401
+ request: {
1402
+ storeLinkKey: types_1.Bool
1403
+ },
1404
+ response: {
1405
+ status: types_1.EmberStatus
1406
+ },
1407
+ },
1408
+ clearTemporaryDataMaybeStoreLinkKey283k1: {
1409
+ ID: 0x00EE,
1410
+ request: {
1411
+ storeLinkKey: types_1.Bool
1412
+ },
1413
+ response: {
1414
+ status: types_1.EmberStatus
1415
+ },
1416
+ },
1417
+ getCertificate: {
1418
+ ID: 0x00A5,
1419
+ request: null,
1420
+ response: {
1421
+ status: types_1.EmberStatus,
1422
+ localCert: types_1.EmberCertificateData
1423
+ },
1424
+ },
1425
+ getCertificate283k1: {
1426
+ ID: 0x00EC,
1427
+ request: null,
1428
+ response: {
1429
+ status: types_1.EmberStatus,
1430
+ localCert: types_1.EmberCertificate283k1Data
1431
+ },
1432
+ },
1433
+ dsaSign: {
1434
+ ID: 0x00A6,
1435
+ request: {
1436
+ message: types_1.LVBytes
1437
+ },
1438
+ response: {
1439
+ status: types_1.EmberStatus
1440
+ },
1441
+ },
1442
+ dsaSignHandler: {
1443
+ ID: 0x00A7,
1444
+ request: null,
1445
+ response: {
1446
+ status: types_1.EmberStatus,
1447
+ message: types_1.LVBytes
1448
+ },
1449
+ },
1450
+ dsaVerify: {
1451
+ ID: 0x00A3,
1452
+ request: {
1453
+ digest: types_1.EmberMessageDigest,
1454
+ signerCertificate: types_1.EmberCertificateData,
1455
+ receivedSig: types_1.EmberSignatureData
1456
+ },
1457
+ response: {
1458
+ status: types_1.EmberStatus
1459
+ },
1460
+ },
1461
+ dsaVerifyHandler: {
1462
+ ID: 0x0078,
1463
+ request: null,
1464
+ response: {
1465
+ status: types_1.EmberStatus
1466
+ },
1467
+ },
1468
+ dsaVerify283k1: {
1469
+ ID: 0x00B0,
1470
+ request: {
1471
+ digest: types_1.EmberMessageDigest,
1472
+ signerCertificate: types_1.EmberCertificate283k1Data,
1473
+ receivedSig: types_1.EmberSignature283k1Data
1474
+ },
1475
+ response: {
1476
+ status: types_1.EmberStatus
1477
+ },
1478
+ },
1479
+ setPreinstalledCbkeData: {
1480
+ ID: 0x00A2,
1481
+ request: {
1482
+ caPublic: types_1.EmberPublicKeyData,
1483
+ myCert: types_1.EmberCertificateData,
1484
+ myKey: types_1.EmberPrivateKeyData
1485
+ },
1486
+ response: {
1487
+ status: types_1.EmberStatus
1488
+ },
1489
+ },
1490
+ // setPreinstalledCbkeData283k1: {
1491
+ // ID: 237,
1492
+ // request: {
1493
+ // attr: EmberPublicKey283k1Data,
1494
+ // attr: EmberCertificate283k1Data,
1495
+ // attr: EmberPrivateKey283k1Data
1496
+ // },
1497
+ // response: {
1498
+ // attr: EmberStatus
1499
+ // },
1500
+ // },
1501
+ // Mfglib Frames
1502
+ mfglibStart: {
1503
+ ID: 0x0083,
1504
+ request: {
1505
+ rxCallback: types_1.Bool
1506
+ },
1507
+ response: {
1508
+ status: types_1.EmberStatus
1509
+ },
1510
+ },
1511
+ mfglibEnd: {
1512
+ ID: 0x0084,
1513
+ request: null,
1514
+ response: {
1515
+ status: types_1.EmberStatus
1516
+ },
1517
+ },
1518
+ mfglibStartTone: {
1519
+ ID: 0x0085,
1520
+ request: null,
1521
+ response: {
1522
+ status: types_1.EmberStatus
1523
+ },
1524
+ },
1525
+ mfglibStopTone: {
1526
+ ID: 0x0086,
1527
+ request: null,
1528
+ response: {
1529
+ status: types_1.EmberStatus
1530
+ },
1531
+ },
1532
+ mfglibStartStream: {
1533
+ ID: 0x0087,
1534
+ request: null,
1535
+ response: {
1536
+ status: types_1.EmberStatus
1537
+ },
1538
+ },
1539
+ mfglibStopStream: {
1540
+ ID: 0x0088,
1541
+ request: null,
1542
+ response: {
1543
+ status: types_1.EmberStatus
1544
+ },
1545
+ },
1546
+ mfglibSendPacket: {
1547
+ ID: 0x0089,
1548
+ request: {
1549
+ packet: types_1.LVBytes
1550
+ },
1551
+ response: {
1552
+ status: types_1.EmberStatus
1553
+ },
1554
+ },
1555
+ mfglibSetChannel: {
1556
+ ID: 0x008A,
1557
+ request: {
1558
+ channel: types_1.uint8_t
1559
+ },
1560
+ response: {
1561
+ status: types_1.EmberStatus
1562
+ },
1563
+ },
1564
+ mfglibGetChannel: {
1565
+ ID: 0x008B,
1566
+ request: null,
1567
+ response: {
1568
+ channel: types_1.uint8_t
1569
+ },
1570
+ },
1571
+ mfglibSetPower: {
1572
+ ID: 0x008C,
1573
+ request: {
1574
+ txPowerMode: types_1.uint16_t,
1575
+ power: types_1.int8s
1576
+ },
1577
+ response: {
1578
+ status: types_1.EmberStatus
1579
+ },
1580
+ },
1581
+ mfglibGetPower: {
1582
+ ID: 0x008D,
1583
+ request: null,
1584
+ response: {
1585
+ power: types_1.int8s
1586
+ },
1587
+ },
1588
+ mfglibRxHandler: {
1589
+ ID: 0x008E,
1590
+ request: null,
1591
+ response: {
1592
+ linkQuality: types_1.uint8_t,
1593
+ rssi: types_1.int8s,
1594
+ packet: types_1.LVBytes
1595
+ },
1596
+ },
1597
+ // Bootloader Frames
1598
+ launchStandaloneBootloader: {
1599
+ ID: 0x008F,
1600
+ request: {
1601
+ mode: types_1.uint8_t
1602
+ },
1603
+ response: {
1604
+ status: types_1.EmberStatus
1605
+ },
1606
+ },
1607
+ sendBootloadMessage: {
1608
+ ID: 0x0090,
1609
+ request: {
1610
+ broadcast: types_1.Bool,
1611
+ destEui64: types_1.EmberEUI64,
1612
+ message: types_1.LVBytes
1613
+ },
1614
+ response: {
1615
+ status: types_1.EmberStatus
1616
+ },
1617
+ },
1618
+ getStandaloneBootloaderVersionPlatMicroPhy: {
1619
+ ID: 0x0091,
1620
+ request: null,
1621
+ response: {
1622
+ bootloader_version: types_1.uint16_t,
1623
+ nodePlat: types_1.uint8_t,
1624
+ nodeMicro: types_1.uint8_t,
1625
+ nodePhy: types_1.uint8_t
1626
+ },
1627
+ },
1628
+ incomingBootloadMessageHandler: {
1629
+ ID: 0x0092,
1630
+ request: null,
1631
+ response: {
1632
+ longId: types_1.EmberEUI64,
1633
+ lastHopLqi: types_1.uint8_t,
1634
+ lastHopRssi: types_1.int8s,
1635
+ message: types_1.LVBytes
1636
+ },
1637
+ },
1638
+ bootloadTransmitCompleteHandler: {
1639
+ ID: 0x0093,
1640
+ request: null,
1641
+ response: {
1642
+ status: types_1.EmberStatus,
1643
+ message: types_1.LVBytes
1644
+ },
1645
+ },
1646
+ aesEncrypt: {
1647
+ ID: 0x0094,
1648
+ request: {
1649
+ plaintext: (0, types_1.fixed_list)(16, types_1.uint8_t),
1650
+ key: (0, types_1.fixed_list)(16, types_1.uint8_t)
1651
+ },
1652
+ response: {
1653
+ ciphertext: (0, types_1.fixed_list)(16, types_1.uint8_t)
1654
+ },
1655
+ },
1656
+ overrideCurrentChannel: {
1657
+ ID: 0x0095,
1658
+ request: {
1659
+ channel: types_1.uint8_t
1660
+ },
1661
+ response: {
1662
+ status: types_1.EmberStatus
1663
+ },
1664
+ },
1665
+ // ZLL Frames
1666
+ zllNetworkOps: {
1667
+ ID: 0x00B2,
1668
+ request: {
1669
+ networkInfo: types_1.EmberZllNetwork,
1670
+ op: types_1.EzspZllNetworkOperation,
1671
+ radioTxPower: types_1.int8s
1672
+ },
1673
+ response: {
1674
+ status: types_1.EmberStatus
1675
+ },
1676
+ },
1677
+ zllSetInitialSecurityState: {
1678
+ ID: 0x00B3,
1679
+ request: {
1680
+ networkKey: types_1.EmberKeyData,
1681
+ securityState: types_1.EmberZllInitialSecurityState
1682
+ },
1683
+ response: {
1684
+ status: types_1.EmberStatus
1685
+ },
1686
+ },
1687
+ zllStartScan: {
1688
+ ID: 0x00B4,
1689
+ request: {
1690
+ channelMask: types_1.uint32_t,
1691
+ radioPowerForScan: types_1.int8s,
1692
+ nodeType: types_1.EmberNodeType
1693
+ },
1694
+ response: {
1695
+ status: types_1.EmberStatus
1696
+ },
1697
+ },
1698
+ zllSetRxOnWhenIdle: {
1699
+ ID: 0x00B5,
1700
+ request: {
1701
+ durationMs: types_1.uint16_t
1702
+ },
1703
+ response: {
1704
+ status: types_1.EmberStatus
1705
+ },
1706
+ },
1707
+ zllNetworkFoundHandler: {
1708
+ ID: 0x00B6,
1709
+ request: null,
1710
+ response: {
1711
+ networkInfo: types_1.EmberZllNetwork,
1712
+ isDeviceInfoNull: types_1.Bool,
1713
+ deviceInfo: types_1.EmberZllDeviceInfoRecord,
1714
+ lastHopLqi: types_1.uint8_t,
1715
+ lastHopRssi: types_1.int8s
1716
+ },
1717
+ },
1718
+ zllScanCompleteHandler: {
1719
+ ID: 0x00B7,
1720
+ request: null,
1721
+ response: {
1722
+ status: types_1.EmberStatus
1723
+ },
1724
+ },
1725
+ zllAddressAssignmentHandler: {
1726
+ ID: 0x00B8,
1727
+ request: null,
1728
+ response: {
1729
+ addressInfo: types_1.EmberZllAddressAssignment,
1730
+ lastHopLqi: types_1.uint8_t,
1731
+ lastHopRssi: types_1.int8s
1732
+ },
1733
+ },
1734
+ setLogicalAndRadioChannel: {
1735
+ ID: 0x00B9,
1736
+ request: {
1737
+ radioChannel: types_1.uint8_t
1738
+ },
1739
+ response: {
1740
+ status: types_1.EmberStatus
1741
+ },
1742
+ },
1743
+ getLogicalChannel: {
1744
+ ID: 0x00BA,
1745
+ request: null,
1746
+ response: {
1747
+ logicalChannel: types_1.uint8_t
1748
+ },
1749
+ },
1750
+ zllTouchLinkTargetHandler: {
1751
+ ID: 0x00BB,
1752
+ request: null,
1753
+ response: {
1754
+ networkInfo: types_1.EmberZllNetwork
1755
+ },
1756
+ },
1757
+ zllGetTokens: {
1758
+ ID: 0x00BC,
1759
+ request: null,
1760
+ response: {
1761
+ data: types_1.EmberTokTypeStackZllData,
1762
+ security: types_1.EmberTokTypeStackZllSecurity
1763
+ },
1764
+ },
1765
+ zllSetDataToken: {
1766
+ ID: 0x00BD,
1767
+ request: {
1768
+ data: types_1.EmberTokTypeStackZllData
1769
+ },
1770
+ response: null,
1771
+ },
1772
+ zllSetNonZllNetwork: {
1773
+ ID: 0x00BF,
1774
+ request: null,
1775
+ response: null,
1776
+ },
1777
+ isZllNetwork: {
1778
+ ID: 0x00BE,
1779
+ request: null,
1780
+ response: {
1781
+ isZllNetwork: types_1.Bool
1782
+ },
1783
+ },
1784
+ // rf4ceSetPairingTableEntry: {
1785
+ // ID: 208,
1786
+ // request: {
1787
+ // attr: uint8_t,
1788
+ // attr: EmberRf4cePairingTableEntry
1789
+ // },
1790
+ // response: {
1791
+ // attr: EmberStatus
1792
+ // },
1793
+ // },
1794
+ // rf4ceGetPairingTableEntry: {
1795
+ // ID: 209,
1796
+ // request: {
1797
+ // attr: uint8_t
1798
+ // },
1799
+ // response: {
1800
+ // attr: EmberStatus,
1801
+ // attr: EmberRf4cePairingTableEntry
1802
+ // },
1803
+ // },
1804
+ // rf4ceDeletePairingTableEntry: {
1805
+ // ID: 210,
1806
+ // request: {
1807
+ // attr: uint8_t
1808
+ // },
1809
+ // response: {
1810
+ // attr: EmberStatus
1811
+ // },
1812
+ // },
1813
+ // rf4ceKeyUpdate: {
1814
+ // ID: 211,
1815
+ // request: {
1816
+ // attr: uint8_t,
1817
+ // attr: EmberKeyData
1818
+ // },
1819
+ // response: {
1820
+ // attr: EmberStatus
1821
+ // },
1822
+ // },
1823
+ // rf4ceSend: {
1824
+ // ID: 212,
1825
+ // request: {
1826
+ // attr: uint8_t,
1827
+ // attr: uint8_t,
1828
+ // attr: uint16_t,
1829
+ // attr: EmberRf4ceTxOption,
1830
+ // attr: uint8_t,
1831
+ // attr: LVBytes
1832
+ // },
1833
+ // response: {
1834
+ // attr: EmberStatus
1835
+ // },
1836
+ // },
1837
+ // rf4ceIncomingMessageHandler: {
1838
+ // ID: 213,
1839
+ // request: null,
1840
+ // response: {
1841
+ // attr: uint8_t,
1842
+ // attr: uint8_t,
1843
+ // attr: uint16_t,
1844
+ // attr: EmberRf4ceTxOption,
1845
+ // attr: LVBytes
1846
+ // },
1847
+ // },
1848
+ // rf4ceMessageSentHandler: {
1849
+ // ID: 214,
1850
+ // request: null,
1851
+ // response: {
1852
+ // attr: EmberStatus,
1853
+ // attr: uint8_t,
1854
+ // attr: EmberRf4ceTxOption,
1855
+ // attr: uint8_t,
1856
+ // attr: uint16_t,
1857
+ // attr: uint8_t,
1858
+ // attr: LVBytes
1859
+ // },
1860
+ // },
1861
+ // rf4ceStart: {
1862
+ // ID: 215,
1863
+ // request: {
1864
+ // attr: EmberRf4ceNodeCapabilities,
1865
+ // attr: EmberRf4ceVendorInfo,
1866
+ // attr: int8s
1867
+ // },
1868
+ // response: {
1869
+ // attr: EmberStatus
1870
+ // },
1871
+ // },
1872
+ // rf4ceStop: {
1873
+ // ID: 216,
1874
+ // request: null,
1875
+ // response: {
1876
+ // attr: EmberStatus
1877
+ // },
1878
+ // },
1879
+ // rf4ceDiscovery: {
1880
+ // ID: 217,
1881
+ // request: {
1882
+ // attr: EmberPanId,
1883
+ // attr: EmberNodeId,
1884
+ // attr: uint8_t,
1885
+ // attr: uint16_t,
1886
+ // attr: LVBytes
1887
+ // },
1888
+ // response: {
1889
+ // attr: EmberStatus
1890
+ // },
1891
+ // },
1892
+ // rf4ceDiscoveryCompleteHandler: {
1893
+ // ID: 218,
1894
+ // request: null,
1895
+ // response: {
1896
+ // attr: EmberStatus
1897
+ // },
1898
+ // },
1899
+ // rf4ceDiscoveryRequestHandler: {
1900
+ // ID: 219,
1901
+ // request: null,
1902
+ // response: {
1903
+ // attr: EmberEUI64,
1904
+ // attr: uint8_t,
1905
+ // attr: EmberRf4ceVendorInfo,
1906
+ // attr: EmberRf4ceApplicationInfo,
1907
+ // attr: uint8_t,
1908
+ // attr: uint8_t
1909
+ // },
1910
+ // },
1911
+ // rf4ceDiscoveryResponseHandler: {
1912
+ // ID: 220,
1913
+ // request: null,
1914
+ // response: {
1915
+ // attr: Bool,
1916
+ // attr: uint8_t,
1917
+ // attr: EmberPanId,
1918
+ // attr: EmberEUI64,
1919
+ // attr: uint8_t,
1920
+ // attr: EmberRf4ceVendorInfo,
1921
+ // attr: EmberRf4ceApplicationInfo,
1922
+ // attr: uint8_t,
1923
+ // attr: uint8_t
1924
+ // },
1925
+ // },
1926
+ // rf4ceEnableAutoDiscoveryResponse: {
1927
+ // ID: 221,
1928
+ // request: {
1929
+ // attr: uint16_t
1930
+ // },
1931
+ // response: {
1932
+ // attr: EmberStatus
1933
+ // },
1934
+ // },
1935
+ // rf4ceAutoDiscoveryResponseCompleteHandler: {
1936
+ // ID: 222,
1937
+ // request: null,
1938
+ // response: {
1939
+ // attr: EmberStatus,
1940
+ // attr: EmberEUI64,
1941
+ // attr: uint8_t,
1942
+ // attr: EmberRf4ceVendorInfo,
1943
+ // attr: EmberRf4ceApplicationInfo,
1944
+ // attr: uint8_t
1945
+ // },
1946
+ // },
1947
+ // rf4cePair: {
1948
+ // ID: 223,
1949
+ // request: {
1950
+ // attr: uint8_t,
1951
+ // attr: EmberPanId,
1952
+ // attr: EmberEUI64,
1953
+ // attr: uint8_t
1954
+ // },
1955
+ // response: {
1956
+ // attr: EmberStatus
1957
+ // },
1958
+ // },
1959
+ // rf4cePairCompleteHandler: {
1960
+ // ID: 224,
1961
+ // request: null,
1962
+ // response: {
1963
+ // attr: EmberStatus,
1964
+ // attr: uint8_t,
1965
+ // attr: EmberRf4ceVendorInfo,
1966
+ // attr: EmberRf4ceApplicationInfo
1967
+ // },
1968
+ // },
1969
+ // rf4cePairRequestHandler: {
1970
+ // ID: 225,
1971
+ // request: null,
1972
+ // response: {
1973
+ // attr: EmberStatus,
1974
+ // attr: uint8_t,
1975
+ // attr: EmberEUI64,
1976
+ // attr: uint8_t,
1977
+ // attr: EmberRf4ceVendorInfo,
1978
+ // attr: EmberRf4ceApplicationInfo,
1979
+ // attr: uint8_t
1980
+ // },
1981
+ // },
1982
+ // rf4ceUnpair: {
1983
+ // ID: 226,
1984
+ // request: {
1985
+ // attr: uint8_t
1986
+ // },
1987
+ // response: {
1988
+ // attr: EmberStatus
1989
+ // },
1990
+ // },
1991
+ // rf4ceUnpairHandler: {
1992
+ // ID: 227,
1993
+ // request: null,
1994
+ // response: {
1995
+ // attr: uint8_t
1996
+ // },
1997
+ // },
1998
+ // rf4ceUnpairCompleteHandler: {
1999
+ // ID: 228,
2000
+ // request: null,
2001
+ // response: {
2002
+ // attr: uint8_t
2003
+ // },
2004
+ // },
2005
+ // rf4ceSetPowerSavingParameters: {
2006
+ // ID: 229,
2007
+ // request: {
2008
+ // attr: uint32_t,
2009
+ // attr: uint32_t
2010
+ // },
2011
+ // response: {
2012
+ // attr: EmberStatus
2013
+ // },
2014
+ // },
2015
+ // rf4ceSetFrequencyAgilityParameters: {
2016
+ // ID: 230,
2017
+ // request: {
2018
+ // attr: uint8_t,
2019
+ // attr: uint8_t,
2020
+ // attr: int8s,
2021
+ // attr: uint16_t,
2022
+ // attr: uint8_t
2023
+ // },
2024
+ // response: {
2025
+ // attr: EmberStatus
2026
+ // },
2027
+ // },
2028
+ // rf4ceSetApplicationInfo: {
2029
+ // ID: 231,
2030
+ // request: {
2031
+ // attr: EmberRf4ceApplicationInfo
2032
+ // },
2033
+ // response: {
2034
+ // attr: EmberStatus
2035
+ // },
2036
+ // },
2037
+ // rf4ceGetApplicationInfo: {
2038
+ // ID: 239,
2039
+ // request: null,
2040
+ // response: {
2041
+ // attr: EmberStatus,
2042
+ // attr: EmberRf4ceApplicationInfo
2043
+ // },
2044
+ // },
2045
+ // rf4ceGetMaxPayload: {
2046
+ // ID: 243,
2047
+ // request: {
2048
+ // attr: uint8_t,
2049
+ // attr: EmberRf4ceTxOption
2050
+ // },
2051
+ // response: {
2052
+ // attr: uint8_t
2053
+ // },
2054
+ // },
2055
+ // rf4ceGetNetworkParameters: {
2056
+ // ID: 244,
2057
+ // request: null,
2058
+ // response: {
2059
+ // attr: EmberStatus,
2060
+ // attr: EmberNodeType,
2061
+ // attr: EmberNetworkParameters
2062
+ // },
2063
+ // },
2064
+ // Green Power Frames
2065
+ gpProxyTableProcessGpPairing: {
2066
+ ID: 0x00C9,
2067
+ request: {
2068
+ options: types_1.uint32_t,
2069
+ addr: types_1.EmberGpAddress,
2070
+ commMode: types_1.uint8_t,
2071
+ sinkNetworkAddress: types_1.uint16_t,
2072
+ sinkGroupId: types_1.uint16_t,
2073
+ assignedAlias: types_1.uint16_t,
2074
+ sinkIeeeAddress: (0, types_1.fixed_list)(8, types_1.uint8_t),
2075
+ gpdKey: types_1.EmberKeyData,
2076
+ gpdSecurityFrameCounter: types_1.uint32_t,
2077
+ forwardingRadius: types_1.uint8_t
2078
+ },
2079
+ response: {
2080
+ gpPairingAdded: types_1.Bool
2081
+ },
2082
+ },
2083
+ dGpSend: {
2084
+ ID: 0x00C6,
2085
+ request: {
2086
+ action: types_1.Bool,
2087
+ useCca: types_1.Bool,
2088
+ addr: types_1.EmberGpAddress,
2089
+ gpdCommandId: types_1.uint8_t,
2090
+ gpdAsdu: types_1.LVBytes,
2091
+ gpepHandle: types_1.uint8_t,
2092
+ gpTxQueueEntryLifetimeMs: types_1.uint16_t
2093
+ },
2094
+ response: {
2095
+ status: types_1.EmberStatus
2096
+ },
2097
+ },
2098
+ dGpSentHandler: {
2099
+ ID: 0x00C7,
2100
+ request: null,
2101
+ response: {
2102
+ status: types_1.EmberStatus,
2103
+ gpepHandle: types_1.uint8_t
2104
+ },
2105
+ },
2106
+ gpepIncomingMessageHandler: {
2107
+ ID: 0x00C5,
2108
+ request: null,
2109
+ response: {
2110
+ status: types_1.EmberStatus,
2111
+ gpdLink: types_1.uint8_t,
2112
+ sequenceNumber: types_1.uint8_t,
2113
+ addr: types_1.EmberGpAddress,
2114
+ gpdfSecurityLevel: types_1.EmberGpSecurityLevel,
2115
+ gpdfSecurityKeyType: types_1.EmberGpKeyType,
2116
+ autoCommissioning: types_1.Bool,
2117
+ bidirectionalInfo: types_1.uint8_t,
2118
+ gpdSecurityFrameCounter: types_1.uint32_t,
2119
+ gpdCommandId: types_1.uint8_t,
2120
+ mic: types_1.uint32_t,
2121
+ //attr: EmberGpSinkListEntry,
2122
+ proxyTableIndex: types_1.uint8_t,
2123
+ gpdCommandPayload: types_1.LVBytes
2124
+ },
2125
+ },
2126
+ changeSourceRouteHandler: {
2127
+ ID: 0x00C4,
2128
+ request: null,
2129
+ response: {
2130
+ newChildId: types_1.EmberNodeId,
2131
+ newParentId: types_1.EmberNodeId
2132
+ },
2133
+ },
2134
+ setSourceRouteDiscoveryMode: {
2135
+ ID: 0x005a,
2136
+ request: {
2137
+ mode: types_1.uint8_t
2138
+ },
2139
+ response: {
2140
+ remainingTime: types_1.uint32_t
2141
+ },
2142
+ },
675
2143
  };
676
- //// EmberZDOCmd
677
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any*/
678
- exports.ZDO_COMMANDS = {
679
- "Node_Desc_req": [0x0002, [types_1.uint8_t, types_1.EmberNodeId], [types_1.EmberStatus]],
680
- "Node_Desc_rsp": [0x8002, [types_1.uint8_t, types_1.EmberStatus, types_1.EmberNodeId, types_1.EmberNodeDescriptor], []],
681
- "Simple_Desc_req": [0x0004, [types_1.uint8_t, types_1.EmberNodeId, types_1.uint8_t], [types_1.EmberStatus]],
682
- "Simple_Desc_rsp": [0x8004, [types_1.uint8_t, types_1.EmberStatus, types_1.EmberNodeId, types_1.uint8_t, types_1.EmberSimpleDescriptor], []],
683
- "Active_EP_req": [0x0005, [types_1.uint8_t, types_1.EmberNodeId], [types_1.EmberStatus]],
684
- "Active_EP_rsp": [0x8005, [types_1.EmberStatus, types_1.uint8_t, types_1.EmberNodeId, types_1.LVBytes], []],
685
- "Bind_req": [0x0021, [types_1.uint8_t, types_1.EmberEUI64, types_1.uint8_t, types_1.uint16_t, types_1.EmberMultiAddress], [types_1.EmberStatus]],
686
- "Bind_rsp": [0x8021, [types_1.EmberStatus], []],
687
- "Unbind_req": [0x0022, [types_1.uint8_t, types_1.EmberEUI64, types_1.uint8_t, types_1.uint16_t, types_1.EmberMultiAddress], [types_1.EmberStatus]],
688
- "Unbind_rsp": [0x8022, [types_1.EmberStatus], []],
689
- "Mgmt_Leave_req": [0x0034, [types_1.uint8_t, types_1.EmberEUI64, types_1.uint8_t], [types_1.EmberStatus]],
690
- "Mgmt_Leave_rsp": [0x8034, [types_1.EmberStatus], []],
691
- "Mgmt_Lqi_req": [0x0031, [types_1.uint8_t, types_1.uint8_t], [types_1.EmberStatus]],
692
- "Mgmt_Lqi_rsp": [0x8031, [types_1.uint8_t, types_1.EmberStatus, types_1.EmberNeighbors], [types_1.EmberStatus]],
2144
+ exports.FRAME_NAME_BY_ID = {};
2145
+ for (const key of Object.getOwnPropertyNames(exports.FRAMES)) {
2146
+ const frameDesc = exports.FRAMES[key];
2147
+ exports.FRAME_NAME_BY_ID[frameDesc.ID] = key;
2148
+ }
2149
+ exports.ZDOREQUESTS = {
2150
+ // ZDO Device and Discovery Attributes
2151
+ nodeDescReq: {
2152
+ ID: 0x0002,
2153
+ request: {
2154
+ transId: types_1.uint8_t,
2155
+ dstaddr: types_1.EmberNodeId
2156
+ },
2157
+ response: {
2158
+ status: types_1.EmberStatus
2159
+ },
2160
+ },
2161
+ simpleDescReq: {
2162
+ ID: 0x0004,
2163
+ request: {
2164
+ transId: types_1.uint8_t,
2165
+ dstaddr: types_1.EmberNodeId,
2166
+ targetEp: types_1.uint8_t
2167
+ },
2168
+ response: {
2169
+ status: types_1.EmberStatus
2170
+ },
2171
+ },
2172
+ activeEpReq: {
2173
+ ID: 0x0005,
2174
+ request: {
2175
+ transId: types_1.uint8_t,
2176
+ dstaddr: types_1.EmberNodeId
2177
+ },
2178
+ response: {
2179
+ status: types_1.EmberStatus
2180
+ },
2181
+ },
2182
+ // ZDO Bind Manager Attributes
2183
+ bindReq: {
2184
+ ID: 0x0021,
2185
+ request: {
2186
+ transId: types_1.uint8_t,
2187
+ sourceEui: types_1.EmberEUI64,
2188
+ sourceEp: types_1.uint8_t,
2189
+ clusterId: types_1.uint16_t,
2190
+ destAddr: types_1.EmberMultiAddress
2191
+ },
2192
+ response: {
2193
+ status: types_1.EmberStatus
2194
+ },
2195
+ },
2196
+ unBindReq: {
2197
+ ID: 0x0022,
2198
+ request: {
2199
+ transId: types_1.uint8_t,
2200
+ sourceEui: types_1.EmberEUI64,
2201
+ sourceEp: types_1.uint8_t,
2202
+ clusterId: types_1.uint16_t,
2203
+ destAddr: types_1.EmberMultiAddress
2204
+ },
2205
+ response: {
2206
+ status: types_1.EmberStatus
2207
+ },
2208
+ },
2209
+ // ZDO network manager attributes commands
2210
+ mgmtLqiReq: {
2211
+ ID: 0x0031,
2212
+ request: {
2213
+ transId: types_1.uint8_t,
2214
+ startindex: types_1.uint8_t
2215
+ },
2216
+ response: {
2217
+ status: types_1.EmberStatus
2218
+ },
2219
+ },
2220
+ mgmtLeaveReq: {
2221
+ ID: 0x0034,
2222
+ request: {
2223
+ transId: types_1.uint8_t,
2224
+ destAddr: types_1.EmberEUI64,
2225
+ removechildrenRejoin: types_1.uint8_t
2226
+ },
2227
+ response: {
2228
+ status: types_1.EmberStatus
2229
+ },
2230
+ },
693
2231
  };
2232
+ exports.ZDORESPONSES = {
2233
+ // ZDO Device and Discovery Attributes
2234
+ nodeDescRsp: {
2235
+ ID: 0x8002,
2236
+ params: {
2237
+ transId: types_1.uint8_t,
2238
+ status: types_1.EmberStatus,
2239
+ nwkaddr: types_1.EmberNodeId,
2240
+ descriptor: types_1.EmberNodeDescriptor
2241
+ },
2242
+ },
2243
+ simpleDescRsp: {
2244
+ ID: 0x8004,
2245
+ params: {
2246
+ transId: types_1.uint8_t,
2247
+ status: types_1.EmberStatus,
2248
+ nwkaddr: types_1.EmberNodeId,
2249
+ len: types_1.uint8_t,
2250
+ descriptor: types_1.EmberSimpleDescriptor
2251
+ },
2252
+ },
2253
+ activeEpRsp: {
2254
+ ID: 0x8005,
2255
+ params: {
2256
+ transId: types_1.uint8_t,
2257
+ status: types_1.EmberStatus,
2258
+ nwkaddr: types_1.EmberNodeId,
2259
+ activeeplist: types_1.LVBytes
2260
+ }
2261
+ },
2262
+ // ZDO Bind Manager Attributes
2263
+ bindRsp: {
2264
+ ID: 0x8021,
2265
+ params: {
2266
+ status: types_1.EmberStatus
2267
+ }
2268
+ },
2269
+ unBindRsp: {
2270
+ ID: 0x8022,
2271
+ params: {
2272
+ status: types_1.EmberStatus
2273
+ }
2274
+ },
2275
+ // ZDO network manager attributes commands
2276
+ mgmtLqiRsp: {
2277
+ ID: 0x8031,
2278
+ params: {
2279
+ transId: types_1.uint8_t,
2280
+ status: types_1.EmberStatus,
2281
+ neighborlqilist: types_1.EmberNeighbors
2282
+ }
2283
+ },
2284
+ mgmtLeaveRsp: {
2285
+ ID: 0x8034,
2286
+ params: {
2287
+ status: types_1.EmberStatus
2288
+ }
2289
+ },
2290
+ };
2291
+ exports.ZDOREQUEST_NAME_BY_ID = {};
2292
+ for (const key of Object.getOwnPropertyNames(exports.ZDOREQUESTS)) {
2293
+ const frameDesc = exports.ZDOREQUESTS[key];
2294
+ exports.ZDOREQUEST_NAME_BY_ID[frameDesc.ID] = key;
2295
+ }
2296
+ exports.ZDORESPONSE_NAME_BY_ID = {};
2297
+ for (const key of Object.getOwnPropertyNames(exports.ZDORESPONSES)) {
2298
+ const frameDesc = exports.ZDORESPONSES[key];
2299
+ exports.ZDORESPONSE_NAME_BY_ID[frameDesc.ID] = key;
2300
+ }
694
2301
  //# sourceMappingURL=commands.js.map