-
Notifications
You must be signed in to change notification settings - Fork 0
/
orvibo_wifi_socket.txt
328 lines (237 loc) · 13.2 KB
/
orvibo_wifi_socket.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
#####################################################################################################
##### Substitute 'ac cf 23 24 19 c0' for your own MAC Address in all commands #####
#####################################################################################################
================================================================================================================================================================
GLOBAL DISCOVERY DATA: Only needed to find IP Address and MAC Address of Unknown sockets, All configured sockets on network will reply.
SEND: UDP 255.255.255.255:10000
ASCII:
hd\00\06qa
HEX:
68 64 00 06 71 61
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00*qa\00\ac\cf#$\t\88 \88\t$#\cf\ac SOC002(\cal\d7\01
HEX:
68 64 00 2A 71 61 00 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 53 4F 43 30 30 32 28 CA 6C D7 01
BREAKDOWN:
68 64 - Magic Key
00 2A - Full Message Length = 42bytes
71 61 00 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
C0 19 24 23 CF AC - Mac Address Little Endian
20 20 20 20 20 20 - Mac Address Little Endian Padding
53 4F 43 30 30 32 - = SOC002 (sometimes SOC001? Don't know what it means?)
28 CA 6C - Time since manufacture? ((28:40) + (ca:202) * 255 + (6c:108) * 255 * 255 = 7074210seconds = 81.87743055555556days)
D7 - ??? Unknown ???
01 - Power state = off (00 = off, 01 = on)
================================================================================================================================================================
DISCOVERY DATA: Only needed to find IP Address of known sockets.
SEND: UDP 255.255.255.255:10000
ASCII:
hd\00\12qg\ac\cf#$\19\c0
HEX:
68 64 00 12 71 67 ac cf 23 24 19 c0 20 20 20 20 20 20
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00*qg\00\ac\cf#$\19\c0 \c0\19$#\cf\ac SOC001\902j\d7\00
HEX:
68 64 00 2A 71 67 00 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 53 4F 43 30 30 31 90 32 6A D7 00
BREAKDOWN:
68 64 - Magic Key
00 2A - Full Message Length = 42bytes
71 67 00 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
C0 19 24 23 CF AC - Mac Address Little Endian
20 20 20 20 20 20 - Mac Address Little Endian Padding
53 4F 43 30 30 31 - = SOC001 (sometimes SOC002? Don't know what it means?)
90 32 6A - Time since manufacture? ((90:144) + (32:50) * 255 + (6a:106) * 255 * 255 = 6905544seconds = 79.92527777777778days)
D7 - ??? Unknown ???
00 - Power state = off (00 = off, 01 = on)
================================================================================================================================================================
SUBSCRIBE DATA: All Commands apart from discovery require a subscription first!
(Note: Subscription expires after a few minutes)
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\1ecl\ac\cf#$\19\c0 \c0\19$#\cf\ac
HEX:
68 64 00 1e 63 6c ac cf 23 24 19 c0 20 20 20 20 20 20 c0 19 24 23 cf ac 20 20 20 20 20 20
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00\18cl\ac\cf#$\19\c0 \00\00\00\00\00\00
HEX:
68 64 00 18 63 6C AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 00 00
BREAKDOWN:
68 64 - Magic Key
00 18 - Full Message Length = 24bytes
63 6C - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
00 00 00 00 00 - ??? Unknown ???
00 - Power state = off (00 = off, 01 = on)
================================================================================================================================================================
TABLE DATA: (Table 1)
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
Hex:
68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 01 00 00 00 00 00 00
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00,rt\ac\cf#$\19\c0 \02\00\00\00\00\01\00\01\00\00\06\00\04\00\04\00\17\00\06\00\03\00\03\00\02\00
HEX:
68 64 00 2C 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 01 00 01 00 00 06 00 04 00 04 00 17 00 06 00 03 00 03 00 02 00
BREAKDOWN:
68 64 - Magic Key
00 2C - Full Message Length = 44bytes
72 74 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
00 00 00 00 - ??? Unknown ???
01 - Table Number
00 01 00 00 - ??? Unknown ???
06 00 - Record Length Little Endian? = 6bytes
04 00 - Version Number Little Endian = 4
04 00 - Table Number Little Endian = 4 (Table 4 contains the Socket Data)
17 00 - Version Flag Little Endian = 23
06 00 - Record Length Little Endian? = 6bytes
03 00 - Version Number Little Endian = 3
03 00 - Table Number Little Endian = 3 (Table 3 contains Timing data)
02 00 - Version Flag Little Endian = 2
..... - This repeats for all tables that need to be requested in sequence by the next function
================================================================================================================================================================
SOCKET DATA: (Table 4)
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
Hex:
68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 AA 00 BB 00 00 00 00 (Note: AA = Table Number = 04, BB = Version Flag = 17)
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00\a8rt\ac\cf#$\19\c0 \00\00\00\00\00\04\00\01\00\00\8a\00\01\00C%\ac\cf#$\19\c0 \c0\19$#\cf\ac 888888 Office \05\00\10\00\00\00\n\00\00\00\05\00\00\00\10'*yo\d0\10'vicenter.orvibo.com \c0\a8\01\c8\c0\a8\01\01\ff\ff\ff\00\01\01\00\08\00\00\0c\00
HEX:
68 64 00 A8 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 04 00 01 00 00 8A 00 01 00 43 25 AC CF 23 24 19 C0 20 20 20 20 20 20 C0 19 24 23 CF AC 20 20 20 20 20 20 38 38 38 38 38 38 20 20 20 20 20 20 4F 66 66 69 63 65 20 20 20 20 20 20 20 20 20 20 05 00 10 00 00 00 0A 00 00 00 05 00 00 00 10 27 2A 79 6F D0 10 27 76 69 63 65 6E 74 65 72 2E 6F 72 76 69 62 6F 2E 63 6F 6D 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 C0 A8 01 C8 C0 A8 01 01 FF FF FF 00 01 01 00 08 00 00 0C 00
BREAKDOWN:
68 64 - Magic Key
00 A8 - Full Message Length = 168bytes
72 74 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
02 00 - Record ID Little Endian = 02
00 00 00 - ??? Unknown ???
04 - Table Number
00 01 00 00 - ??? Unknown ???
8A 00 - Record Length Little Endian = 138bytes
01 00 - Record Number Little Endian = 1
43 25 - VersionID Little Endian = 9539
AC CF 23 24 19 C0 - UID (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - UID Padding
C0 19 24 23 CF AC - Mac Address Little Endian
20 20 20 20 20 20 - Mac Address Little Endian Padding (spaces)
38 38 38 38 38 38 - Remote Password = 888888 (max Length = 12 = 24bytes)
20 20 20 20 20 20 - Remote Password Padding (spaces)
4F 66 66 69 63 65 - Socket Name = Office (Max Length = 16 = 32bytes)
20 20 20 20 20 20 20 20 20 20 - Socket Name Padding (spaces)
05 00 - Icon Little Endian = 5 (0 = Light bulb, 1 = Fan , 2 = Thermostat , 3 = Double Switch , 4 = American Power Point , 5 = Aus Power Point)
10 00 00 00 - Hardware Version = 16
0A 00 00 00 - Firmware Version = 10
05 00 00 00 - CC3000 Firmware Version = 5 (ti wifi chipset)
10 27 - Static Server Port Little Endian = 10000
2A 79 6F D0 - Static Server IP = 42.121.111.208
10 27 - Domain Server Port Little Endian = 10000
76 69 63 65 6E 74 65 72 2E 6F 72 76 69 62 6F 2E 63 6F 6D - Domain Server Name = vicenter.orvibo.com (Max Length = 40 = 80bytes)
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 - Domain Server Name Padding (spaces)
C0 A8 01 C8 - Local Static IP = 192.168.1.200
C0 A8 01 01 - Local Gateway IP = 192.168.1.1
FF FF FF 00 - Local Net Mask = 255.255.255.0
01 - DHCP Mode = yes (00 = no, 01 = yes)
01 - Discoverable = yes (00 = no, 01 = yes)
00 - Time Zone Set
08 - Time Zone
00 00 - ??? Unknown ???
0C 00 - Countdown Seconds = 12
================================================================================================================================================================
Timing DATA: (Table 3)
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\1drt\ac\cf#$\19\c0 \00\00\00\00\04\00\03\00\00\00\00
Hex:
68 64 00 1D 72 74 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 AA 00 BB 00 00 00 00 (Note: AA = Table Number = 03, BB = Version Flag = 02)
RECEIVE:
ASCII:
hd\00Xrt\ac\cf#$\t\88 \02\00\00\00\00\03\00\01\00\00\1c\00\01\00\e2r\80\00c\0e\00\00\00\\\de\16\00\a0\19\00\01\00\de\07\07\r\10\00\00\ff\1c\00\02\00\e2r\80\00q\0f\00\00Pr\d2\16\00\a0\19\00\00\00\de\07\07\r\13\00\00\ff
HEX:
68 64 00 58 72 74 AC CF 23 24 19 C0 20 20 20 20 20 20 02 00 00 00 00 03 00 01 00 00 1C 00 01 00 E2 72 80 00 63 0E 00 00 00 5C DE 16 00 A0 19 00 01 00 DE 07 07 0D 10 00 00 FF 1C 00 02 00 E2 72 80 00 71 0F 00 00 50 72 D2 16 00 A0 19 00 00 00 DE 07 07 0D 13 00 00 FF
BREAKDOWN:
68 64 - Magic Key
00 58 - Full Message Length = 88bytes
72 74 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
02 00 - Record ID Little Endian = 02
00 00 00 - ??? Unknown ???
03 - Table Number
00 01 00 00 - ??? Unknown ???
1C 00 - Record Length Little Endian = 28bytes
01 00 - Record Number Little Endian = 1
E2 72 80 00 63 0E 00 00 00 5C DE 16 00 A0 19 00 - ??? Unknown ???
01 00 - Power state = on (00 = off, 01 = on)
DE 07 - Year Little Endian = 2014
07 - Month = 7
0D - Day = 13
10 - Hour - 2? = 18 = 6pm
00 - Minute = 00
00 - Second = 00
FF - Repeat = 255 = Repeat Everyday (Bits: 128 = Repeat, 64 = Sunday, 32 = Monday, 16 = Tuesday, 8 = Wednesday, 4 = Thursday, 2 = Friday, 1 = Saturday)?
1C 00 - Record Length Little Endian = 28bytes
02 00 - Record Number Little Endian = 2
E2 72 80 00 71 0F 00 00 50 72 D2 16 00 A0 19 00 - ??? Unknown ???
00 00 - Power state = off (00 = off, 01 = on)
DE 07 - Year Little Endian = 2014
07 - Month = 7
0D - Day = 13
13 - Hour - 2? = 21 = 9pm
00 - Minute = 00
00 - Second = 00
FF - Repeat = 255 = Repeat Everyday (Bits: 128 = Repeat, 64 = Sunday, 32 = Monday, 16 = Tuesday, 8 = Wednesday, 4 = Thursday, 2 = Friday, 1 = Saturday)?
================================================================================================================================================================
POWER ON DATA:
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\17dc\ac\cf#$\19\c0 \00\00\00\00\01
HEX:
68 64 00 17 64 63 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 01
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00\17sf\ac\cf#$\19\c0 \00\00\00\00\01
HEX:
68 64 00 17 73 66 AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 01
BREAKDOWN:
68 64 - Magic Key
00 17 - Full Message Length = 23bytes
73 66 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
00 00 00 00 - ??? Unknown ???
01 - Power state = on (00 = off, 01 = on)
================================================================================================================================================================
POWER OFF DATA:
SEND: UDP x.x.x.x:10000
ASCII:
hd\00\17dc\ac\cf#$\19\c0 \00\00\00\00\00
HEX:
68 64 00 17 64 63 ac cf 23 24 19 c0 20 20 20 20 20 20 00 00 00 00 00
RECEIVE: UDP x.x.x.x:10000
ASCII:
hd\00\17sf\ac\cf#$\19\c0 \00\00\00\00\01
HEX:
68 64 00 17 73 66 AC CF 23 24 19 C0 20 20 20 20 20 20 00 00 00 00 00
BREAKDOWN:
68 64 - Magic Key
00 17 - Full Message Length = 23bytes
73 66 - Command ID ?
AC CF 23 24 19 C0 - Mac Address (Max Length = 12 = 24bytes)
20 20 20 20 20 20 - Mac Address Padding (spaces)
00 00 00 00 - ??? Unknown ???
00 - Power state = off (00 = off, 01 = on)