-
Notifications
You must be signed in to change notification settings - Fork 2
/
init1.c
801 lines (782 loc) · 63.2 KB
/
init1.c
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
/* This file is generated with usbsnoop2libusb.pl from a usbsnoop log file. */
/* Latest version of the script should be in http://iki.fi/lindi/usb/usbsnoop2libusb.pl */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <signal.h>
#include <ctype.h>
#include <usb.h>
#if 0
#include <linux/usbdevice_fs.h>
#define LIBUSB_AUGMENT
#include "libusb_augment.h"
#endif
struct usb_dev_handle *devh;
void release_usb_device(int dummy) {
int ret;
ret = usb_release_interface(devh, 0);
if (!ret)
printf("failed to release interface: %d\n", ret);
usb_close(devh);
if (!ret)
printf("failed to close interface: %d\n", ret);
exit(1);
}
void list_devices() {
struct usb_bus *bus;
for (bus = usb_get_busses(); bus; bus = bus->next) {
struct usb_device *dev;
for (dev = bus->devices; dev; dev = dev->next)
printf("0x%04x 0x%04x\n",
dev->descriptor.idVendor,
dev->descriptor.idProduct);
}
}
struct usb_device *find_device(int vendor, int product) {
struct usb_bus *bus;
for (bus = usb_get_busses(); bus; bus = bus->next) {
struct usb_device *dev;
for (dev = bus->devices; dev; dev = dev->next) {
if (dev->descriptor.idVendor == vendor
&& dev->descriptor.idProduct == product)
return dev;
}
}
return NULL;
}
void print_bytes(char *bytes, int len) {
int i;
if (len > 0) {
for (i=0; i<len; i++) {
printf("%02x ", (int)((unsigned char)bytes[i]));
}
printf("\"");
for (i=0; i<len; i++) {
printf("%c", isprint(bytes[i]) ? bytes[i] : '.');
}
printf("\"");
}
}
int main(int argc, char **argv) {
int ret, vendor, product;
struct usb_device *dev;
char buf[65535], *endptr;
#if 0
usb_urb *isourb;
struct timeval isotv;
char isobuf[393216];
#endif
usb_init();
usb_set_debug(255);
usb_find_busses();
usb_find_devices();
if (argc!=3) {
printf("usage: %s vendorID productID\n", argv[0]);
printf("ID numbers of currently attached devices:\n");
list_devices();
exit(1);
}
vendor = strtol(argv[1], &endptr, 16);
if (*endptr != '\0') {
printf("invalid vendor id\n");
exit(1);
}
product = strtol(argv[2], &endptr, 16);
if (*endptr != '\0') {
printf("invalid product id\n");
exit(1);
}
dev = find_device(vendor, product);
assert(dev);
devh = usb_open(dev);
assert(devh);
signal(SIGTERM, release_usb_device);
ret = usb_get_driver_np(devh, 0, buf, sizeof(buf));
printf("usb_get_driver_np returned %d\n", ret);
if (ret == 0) {
printf("interface 0 already claimed by driver \"%s\", attempting to detach it\n", buf);
ret = usb_detach_kernel_driver_np(devh, 0);
printf("usb_detach_kernel_driver_np returned %d\n", ret);
}
ret = usb_claim_interface(devh, 0);
if (ret != 0) {
printf("claim failed with error %d\n", ret);
exit(1);
}
ret = usb_set_altinterface(devh, 0);
assert(ret >= 0);
ret = usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
printf("1 get descriptor returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
ret = usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000009);
printf("2 get descriptor returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
ret = usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000022);
printf("3 get descriptor returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
ret = usb_release_interface(devh, 0);
if (ret != 0) printf("failed to release interface before set_configuration: %d\n", ret);
ret = usb_set_configuration(devh, 0x0000001);
printf("4 set configuration returned %d\n", ret);
ret = usb_claim_interface(devh, 0);
if (ret != 0) printf("claim after set_configuration failed with error %d\n", ret);
ret = usb_set_altinterface(devh, 0);
printf("4 set alternate setting returned %d\n", ret);
usleep(1*1000);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE + USB_ENDPOINT_IN, 0x0000001, 0x0000001, 0x0000000, buf, 0x0000002, 1000);
printf("5 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0c\x94\xce\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x0c\x94\x72\x06\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("6 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x77\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x48", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("7 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x15\x47\x15\x49\x15\x00\x07\x01\x12\x01\x00\x02\x00\x00\x00\x40\x88\x1c\x3c\x00\x00\x01\x01\x02\x03\x01\x0a\x06\x00\x02\x00\x00\x00\x40\x01\x00\x09\x02\x32\x00\x01\x01\x00\x80\xfa\x09\x07\x32\x00\x01\x01\x00\x80\xfa\x09\x04\x00\x00\x00\xff\xff\xff", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("8 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x00\x09\x04\x00\x01\x01\xff\xff\xff\x00\x07\x05\x82\x05\xff\x03\x01\x09\x04\x00\x02\x01\xff\xff\xff\x00\x07\x05\x82\x05\x00\x14\x01\x07\x05\x82\x05\xff\x03\x01\x04\x03\x09\x04\x22\x03\x20\x00\x53\x00\x6f\x00\x6d\x00\x61\x00\x67\x00\x69\x00\x63\x00", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("9 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x2c\x00\x20\x00\x49\x00\x6e\x00\x63\x00\x2e\x00\x20\x00\x20\x00\x24\x03\x53\x00\x4d\x00\x49\x00\x20\x00\x47\x00\x72\x00\x61\x00\x62\x00\x62\x00\x65\x00\x72\x00\x20\x00\x44\x00\x45\x00\x56\x00\x20\x00\x00\x00\x2a\x03\x53\x00\x4d\x00\x49\x00\x47\x00", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("10 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x52\x00\x41\x00\x42\x00\x42\x00\x45\x00\x52\x00\x39\x00\x38\x00\x37\x00\x36\x00\x35\x00\x34\x00\x33\x00\x32\x00\x31\x00\x30\x00\xe2\x00\xe6\x00\x08\x01\x2c\x01\x01\x00\x00\x00\x53\x4d\x49\x47\x52\x41\x42\x42\x45\x52\x39\x38\x37\x36\x35\x34\x33\x32", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("11 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x31\x30\x00\x53\x4d\x49\x20\x47\x72\x61\x62\x62\x65\x72\x20\x44\x45\x56\x20\x20\x00\x20\x53\x6f\x6d\x61\x67\x69\x63\x2c\x20\x49\x6e\x63\x2e\x20\x20\x00\x00\x00\xcf\xef\xdf\xe0\xcd\xbf\xde\xbf\xc0\x54\xd0\x40\x0a\xea\x08\x83\x00\x24\xec\xe9\xf1\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("12 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x12\xe0\xe3\x3f\xf1\x07\x11\xf0\x01\x92\xfb\xcf\x00\x83\xe0\xe6\xf0\xe0\xa0\xe6\xb0\xe0\x11\xe0\xec\x39\xf1\x07\x21\xf0\xc8\x95\x31\x96\x0d\x92\xf9\xcf\x0e\x94\x33\x04\xff\xcf\x0e\x94\x7a\x0e\x22\x24\x20\x92\x72\x00\x20\x90\xda\x02\x20\x92\xc5\x01", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("13 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x85\xec\x91\xe0\x90\x93\xed\x02\x80\x93\xec\x02\x80\x91\xd9\x02\x81\x39\x21\xf5\x81\xe0\x80\x93\x00\x16\x20\x90\x70\x00\x20\x92\xc0\x01\x20\x90\xc7\x02\x20\x92\xc1\x01\x20\x90\xc8\x02\x20\x92\xc2\x01\x20\x90\xc9\x02\x20\x92\xc3\x01\x20\x90\xca\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("14 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x92\xc4\x01\x80\xec\x91\xe0\x90\x93\xed\x02\x80\x93\xec\x02\x85\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\xab\xc0\x40\x91\xc5\x01\x55\x27\x4b\x30\xe0\xe0\x5e\x07\x09\xf4\x3f\xc0\x4c\x30\xe0\xe0\x5e\x07\x09\xf4\x3a\xc0\x4d\x30\xe0\xe0\x5e\x07", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("15 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xb1\xf1\x8d\xe0\x90\xe0\x84\x17\x95\x07\x2c\xf0\x41\x30\xe0\xe0\x5e\x07\x39\xf0\x77\xc0\x4b\x3f\xe0\xe0\x5e\x07\x09\xf4\x66\xc0\x71\xc0\x80\x91\xe7\x02\x83\x30\x21\xf4\x83\xe0\x80\x93\xc6\x01\x17\xc0\x80\x91\xe7\x02\x85\x30\x21\xf4\x85\xe0\x80\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("16 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xc6\x01\x0f\xc0\x80\x91\xe7\x02\x82\x30\x21\xf4\x82\xe0\x80\x93\xc6\x01\x07\xc0\x80\x91\xe7\x02\x84\x30\x19\xf4\x84\xe0\x80\x93\xc6\x01\x82\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x4d\xc0\x20\x90\xbc\x01\x20\x92\xc6\x01\x20\x90\xbd\x01\x20\x92", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("17 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xc7\x01\x20\x90\xbe\x01\x20\x92\xc8\x01\x20\x90\xbf\x01\x20\x92\xc9\x01\x80\x91\xbe\x01\x8f\x70\x42\x2d\x48\x0f\x66\x27\x0f\xc0\x8c\xe9\x91\xe0\xe6\x2f\xff\x27\xe8\x0f\xf9\x1f\x20\x80\x8a\xec\x91\xe0\xe6\x2f\xff\x27\xe8\x0f\xf9\x1f\x20\x82\x63\x95", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("18 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x64\x17\x78\xf3\x20\x91\xc5\x01\x33\x27\x2b\x50\x30\x40\x01\xe0\x10\xe0\x0e\x94\x93\x0e\x80\x2f\x91\x2f\x88\x0f\x99\x1f\x88\x0f\x99\x1f\x88\x0f\x99\x1f\x05\x96\x90\x93\xf1\x02\x80\x93\xf0\x02\x0e\xc0\x81\xe0\x80\x93\xe3\x02\x80\x93\xc6\x01\x82\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("19 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x02\xc0\x0e\x94\x0b\x09\x22\x24\x20\x92\xbc\x01\x20\x92\xbd\x01\x20\x92\xbe\x01\x20\x92\x9c\x01\x20\x92\x9d\x01\x20\x92\x9e\x01\x20\x92\x9f\x01\x20\x92\xa0\x01\x20\x92\xa1\x01\x20\x92\xa2\x01\x20\x92\xa3\x01", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("20 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x80\x91\x73\x00\x84\x30\x49\xf0\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x0e\x94\x6b\x0e\x08\x95\x22\x24\x20\x92\x72\x00\x85\xec\x91\xe0\x90\x93\xed\x02\x80\x93\xec\x02\x20\x90\xde\x02\x30\x90\xdf\x02\x30\x92\xf1\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("21 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x92\xf0\x02\x80\x91\x73\x00\x84\x30\x49\xf0\x82\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x08\x95\x0e\x94\x74\x0e\x28\x97\x80\xe1\x8f\x83\x80\x91\xc5\x01\x81\x30\x09\xf0\x88\xc0\x22\x24\x20\x92\x38\x15\x20\x92\x3c\x15", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("22 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x90\xc6\x01\x20\x92\xe7\x02\x82\x2d\x83\x30\xc9\xf4\x85\xe2\x80\x93\x31\x15\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x28\x2e\x20\x92\x30\x15\x85\xe1\x80\x93\x21\x15\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x82\x60\x80\x93\x20\x15\x0e\x94\x01\x05", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("23 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x56\xc0\x80\x91\xe7\x02\x82\x30\xc9\xf4\x85\xe2\x80\x93\x21\x15\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x28\x2e\x20\x92\x20\x15\x85\xe1\x80\x93\x31\x15\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x82\x60\x80\x93\x30\x15\x0e\x94\xf4\x04\x39\xc0\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("24 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xe7\x02\x85\x30\xc9\xf4\x85\xe2\x80\x93\x31\x15\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x28\x2e\x20\x92\x30\x15\x85\xe1\x80\x93\x21\x15\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x82\x60\x80\x93\x20\x15\x0e\x94\x0c\x05\x1c\xc0\x80\x91\xe7\x02\x84\x30", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("25 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xc1\xf4\x85\xe2\x80\x93\x21\x15\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x28\x2e\x20\x92\x20\x15\x85\xe1\x80\x93\x31\x15\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x82\x60\x80\x93\x30\x15\x0e\x94\xfa\x04\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("26 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x9d\xc1\x40\x91\xc9\x01\x80\x91\xc8\x01\x8f\x70\xe8\x2e\x20\x90\xc8\x01\x27\xfe\x02\xc0\x82\x30\x79\xf4\x80\x91\xc7\x01\x80\x7c\x80\x38\x11\xf4\xee\x20\x41\xf4\x80\x91\xc7\x01\x80\x7c\x80\x3c\x31\xf4", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("27 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x8e\x2d\x81\x30\x19\xf0\x0e\x94\x0b\x09\x7f\xc1\x20\x90\xc8\x01\x27\xfe\x9d\xc0\x20\x90\xc7\x01\x25\xfe\x5b\xc0\x20\x90\xca\x01\x2e\x82\x20\x90\xcb\x01\x2d\x82\x20\x90\xca\x01\x20\x92\x9c\x01\x20\x90\xcb\x01\x20\x92\x9d\x01\xcc\x24\x37\xc0\x24\x2e", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("28 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x33\x24\x4d\x80\x5e\x80\x42\x0c\x53\x1c\x86\xe0\x96\xe1\x84\x15\x95\x05\xe8\xf0\x8d\x81\x9e\x81\x80\x30\xe6\xe1\x9e\x07\xb8\xf0\x80\x91\x00\x16\x83\x70\x81\x30\x91\xf4\x87\xec\x92\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f\x20\x80\x8e\xe9\x91\xe0\xec\x2d", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("29 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xff\x27\xe8\x0f\xf9\x1f\x20\x82\x81\xe0\x80\x93\xc7\x02\x0e\xc0\x2c\x2c\x33\x24\xed\x81\xfe\x81\xe2\x0d\xf3\x1d\x20\x80\x8e\xe9\x91\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f\x20\x82\xc3\x94\xc4\x16\x08\xf4\xc6\xcf\x20\x90\xc6\x01\x20\x92\xbc\x01\x20\x90", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("30 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xc7\x01\x20\x92\xbd\x01\x20\x90\xc8\x01\x20\x92\xbe\x01\x20\x90\xc9\x01\x20\x92\xbf\x01\x31\xc0\x20\x90\xca\x01\x2e\x82\x20\x90\xcb\x01\x2d\x82\x22\x20\x89\xf4\x8e\x81\x86\x31\x71\xf4\x8a\xec\x91\xe0\xee\x2d\xff\x27\xe8\x0f\xf9\x1f\x80\x81\x81\x38", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("31 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x29\xf4\x81\xe0\x80\x93\x00\x16\x0e\x94\x64\x06\xcc\x24\x14\xc0\x2c\x2c\x33\x24\xee\x2d\xff\x27\x35\x96\xe2\x0d\xf3\x1d\x85\xec\x91\xe0\xe8\x0f\xf9\x1f\x20\x80\x3c\x2c\x44\x24\xed\x81\xfe\x81\xe3\x0d\xf4\x1d\x20\x82\xc3\x94\xc4\x16\x50\xf3\x20\x90", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("32 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\xde\xc0\x20\x90\xc8\x01\x24\xfe\x29\xc0\xcc\x24\x0f\xc0\x80\xe6\x90\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f\x20\x80\x8c\xe9\x91\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("33 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x82\xc3\x94\x8c\x2d\x80\x31\x70\xf3\x20\x90\xc8\x01\x20\x92\xbe\x01\x20\x90\xc9\x01\x20\x92\xbf\x01\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\xb1\xc0\x81\xe0\x80\x93\xe9\x02\x80\x91\xc8\x01", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("34 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x80\x74\xa8\x2e\xa6\x94\xa6\x94\xa6\x94\xa6\x94\xa6\x94\xa6\x94\xaa\x20\x19\xf0\x65\xe8\x71\xe3\x02\xc0\x65\xe8\x77\xe1\x20\x90\xc7\x01\x25\xfe\x5b\xc0\x13\xc0\xac\x82\x20\x90\xca\x01\x2a\x82\x20\x90\xc9\x01\x28\x82\x20\x91\xc7\x01\x00\x91\xc6\x01", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("35 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0e\x94\x38\x05\x00\x23\x09\xf0\x07\xc0\x0f\x80\x0a\x94\x0f\x82\x22\x24\x0f\x80\x20\x14\x48\xf3\xcc\x24\x0f\xc0\x8a\xec\x91\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f\x20\x80\x8c\xe9\x91\xe0\xec\x2d\xff\x27\xe8\x0f\xf9\x1f\x20\x82\xc3\x94\xce\x14\x78\xf3", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("36 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xcc\x24\x12\xc0\x2c\x2c\x33\x24\xee\x2d\xff\x27\xe2\x0d\xf3\x1d\x8c\xe9\x91\xe0\xe8\x0f\xf9\x1f\x33\x24\xa6\x2f\xb7\x2f\xa2\x0d\xb3\x1d\x2c\x90\x20\x82\xc3\x94\xc4\x16\x60\xf3\x20\x90\xc6\x01\x20\x92\xbc\x01\x0f\x80\x00\x20\x31\xf4\x80\x91\xc7\x01", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("37 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x81\x60\x80\x93\xbd\x01\x04\xc0\x20\x90\xc7\x01\x20\x92\xbd\x01\x20\x90\xc8\x01\x20\x92\xbe\x01\x20\x90\xc9\x01\x20\x92\xbf\x01\x32\xc0\xcc\x24\x14\xc0\x2c\x2c\x33\x24\xee\x2d\xff\x27\x35\x96\xe2\x0d\xf3\x1d\x85\xec\x91\xe0\xe8\x0f\xf9\x1f\x20\x80", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("38 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x3c\x2c\x44\x24\xe6\x2f\xf7\x2f\xe3\x0d\xf4\x1d\x20\x82\xc3\x94\xc4\x16\x50\xf3\x80\xe1\x8f\x83\x13\xc0\xac\x82\x20\x90\xca\x01\x2a\x82\x20\x90\xc9\x01\x28\x82\x20\x91\xc7\x01\x00\x91\xc6\x01\x0e\x94\x38\x05\x00\x23\x09\xf0\x07\xc0\x0f\x80\x0a\x94", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("39 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x0f\x82\x22\x24\x0f\x80\x20\x14\x48\xf3\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x28\x96\x0e\x94\x71\x0e\x08\x95\xee\x97\x48\xef\x44\x27\x8f\xef\x8a\xbb\x83\xe0\x80\x93\xe7\x02\x22\x24\x20\x92", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("40 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x82\x17\x20\x92\x82\x31\x82\x30\x09\xf4\xb1\xd0\x80\x91\xe7\x02\x83\x30\x09\xf4\xb9\xd0\x80\x91\xe7\x02\x85\x30\x09\xf4\xbf\xd0\x80\x91\xe7\x02\x84\x30\x09\xf4\xa8\xd0\x3e\xd0\x78\x94\x39\xc0\x0e\x94\x72\x06\x80\x91\x00\x16\x83\x70\x81\x30\x11\xf4", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("41 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0e\x94\xb5\x05\x80\x91\xe0\x02\x81\x30\x29\xf4\x22\x24\x20\x92\xe0\x02\x0e\x94\xef\x06\x80\x91\xe1\x02\x81\x30\x29\xf4\x22\x24\x20\x92\xe1\x02\x0e\x94\xac\x06\x80\x91\xe5\x02\x81\x30\x29\xf4\x22\x24\x20\x92\xe5\x02\x0e\x94\xc0\x06\x80\x91\xe3\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("42 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x81\x30\x41\xf4\x22\x24\x20\x92\xe3\x02\x80\x91\x80\x30\x8f\x77\x80\x93\x80\x30\x80\x91\xe8\x02\x81\x30\x29\xf4\x22\x24\x20\x92\xe8\x02\x0e\x94\xe0\x06\xc6\xcf\xee\x96\x08\x95\x22\x24\x20\x92\xe0\x02\x20\x92\xe1\x02\x20\x92\xe3\x02\x20\x92\xe6\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("43 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x20\x92\xe4\x02\x20\x92\xe5\x02\x20\x92\xe8\x02\x20\x92\xe9\x02\x84\xec\x80\x93\x07\x15\x83\xe0\x80\x93\x11\x15\x80\x91\x10\x15\x89\x7f\x80\x93\x10\x15\x28\x2e\x20\x92\x10\x15\x80\xe4\x80\x93\x13\x15\x80\xe0\x90\xe2\x90\x93\x1a\x15\x80\x93\x19\x15", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("44 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x80\xe4\x90\x93\x1e\x15\x80\x93\x1d\x15\x80\x93\x15\x15\x85\xe1\x80\x93\x21\x15\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x28\x2e\x20\x92\x20\x15\x8f\xef\x93\xe0\x90\x93\x24\x15\x80\x93\x23\x15\x85\xe2\x80\x93\x31\x15\x80\x91\x30\x15\x89\x7f\x80\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("45 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x30\x15\x28\x2e\x20\x92\x30\x15\x8f\xef\x90\x93\x34\x15\x80\x93\x33\x15\x0e\x94\xec\x06\x08\xec\x10\xe0\x2f\xd0\x80\x91\x00\x15\x88\x60\x80\x93\x00\x15\x00\xed\x17\xe0\x27\xd0\x80\x91\x00\x15\x87\x7f\x80\x93\x00\x15\x08\x95\x22\x24\x20\x92\x40\x17", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("46 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x92\x80\x18\x08\x95\x22\x24\x20\x92\x00\x31\x82\xe0\x80\x93\x80\x18\x08\x95\x83\xe0\x80\x93\x80\x15\x80\x91\xe7\x02\x83\x30\x19\xf4\x22\x24\x20\x92\x80\x18\x08\x95\x22\x24\x20\x92\x00\x18\x20\x92\x40\x17\x81\xe0\x80\x93\x80\x18\x08\x95\x0e\x94", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("47 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x7a\x0e\x4e\xe1\x66\x27\x02\xc0\x00\x00\x63\x95\x64\x17\xe0\xf3\x01\x50\x10\x40\x81\xe0\x90\xe0\x80\x17\x91\x07\x98\xf3\x0e\x94\x6b\x0e\x08\x95\x0e\x94\x7c\x0e\x40\x2f\x51\x2f\x05\xc0\x08\xee\x13\xe0\xe5\xdf\x41\x50\x50\x40\x40\x30\x45\x07\xc1\xf7", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("48 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0e\x94\x7f\x0e\x08\x95\x0e\x94\x7c\x0e\x0e\x80\x00\x20\x19\xf0\x40\xe8\x51\xe3\x02\xc0\x40\xe8\x57\xe1\xe4\x2f\xf5\x2f\x22\x80\x24\xfe\x0c\xc0\xe4\x2f\xf5\x2f\x22\x80\x33\x24\x27\xfc\x02\xc0\x26\xfe\xf8\xcf\x22\x24\xe4\x2f\xf5\x2f\x22\x82\xe4\x2f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("49 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xf5\x2f\x04\x83\xe4\x2f\xf5\x2f\x0c\x80\x03\x82\xe4\x2f\xf5\x2f\x0a\x80\x01\x82\xe4\x2f\xf5\x2f\x20\x83\xe4\x2f\xf5\x2f\x22\x80\x33\x24\x24\xfe\x04\xc0\x27\xfc\x02\xc0\x26\xfe\xf6\xcf\xe4\x2f\xf5\x2f\x22\x80\x25\xfe\x06\xc0\x22\x24\xe4\x2f\xf5\x2f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("50 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x22\x82\x00\x27\x05\xc0\x22\x24\xe4\x2f\xf5\x2f\x22\x82\x01\xe0\x0e\x94\x7f\x0e\x08\x95\x22\x24\x22\xbe\x85\xe0\x83\xbf\x82\xb7\x8b\x30\xe8\xf3\x22\x24\x23\xbe\x08\x95\x22\x24\x22\xbe\x87\xe0\x83\xbf\x82\xb7\x84\x34\xe8\xf3\x22\x24\x23\xbe\x08\x95", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("51 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x05\xc0\x01\x50\x10\x40\x11\xf4\x00\x27\x03\xc0\x9d\x9b\xf9\xcf\x01\xe0\x08\x95\x05\xc0\x01\x50\x10\x40\x11\xf4\x00\x27\x03\xc0\x9d\x99\xf9\xcf\x01\xe0\x08\x95\x22\x24\x20\x92\x70\x00\x06\xc0\xdd\xdf\x80\x91\x70\x00\x8f\x5f\x80\x93\x70\x00\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("52 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x70\x00\x8e\x31\xb0\xf3\x08\x95\x0e\x94\x7a\x0e\x44\x27\x9d\x99\xa7\xc0\x22\x24\x20\x92\x70\x00\x0a\xc0\xbf\xdf\x9d\x9b\x02\xc0\xe4\xdf\x9e\xc0\x80\x91\x70\x00\x8f\x5f\x80\x93\x70\x00\x80\x91\x70\x00\x86\x39\x90\xf3\x00\xe5\x13\xec\xc3\xdf\x00\x23", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("53 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x09\xf4\x8f\xc0\x22\x24\x20\x92\x70\x00\x12\xc0\xa7\xdf\x9d\x99\x0a\xc0\xcc\xdf\x20\x90\x71\x00\x22\x20\x09\xf0\x82\xc0\x85\xe0\x80\x93\xc7\x02\x7e\xc0\x80\x91\x70\x00\x8f\x5f\x80\x93\x70\x00\x80\x91\x70\x00\x8c\x33\x50\xf3\x81\xe0\x80\x93\x71\x00", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("54 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x00\xe5\x13\xec\xaa\xdf\x00\x23\x09\xf4\x6c\xc0\x22\x24\x20\x92\x70\x00\x5c\xc0\x44\x23\x11\xf0\x41\x30\x31\xf4\x00\xe5\x13\xec\x92\xdf\x00\x23\x09\xf4\x5e\xc0\x44\x27\x66\x27\x0b\xc0\x77\xdf\x9d\x99\x04\xc0\x44\x23\x29\xf4\x41\xe0\x03\xc0\x41\x30", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("55 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x09\xf4\x42\xe0\x63\x95\x62\x31\x98\xf3\x44\x23\xe1\xf0\x81\xe0\x84\x17\x10\xf4\x8d\xdf\x47\xc0\x28\xe0\x30\xe0\x00\x91\x70\x00\x11\x27\x08\x5f\x1f\x4f\x0e\x94\x35\x0e\x85\xe0\x90\xe0\x80\x1b\x91\x0b\xe7\xec\xf2\xe0\x8e\x0f\x9f\x1f\xe8\x2f\xf9\x2f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("56 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x40\x80\x46\x94\x40\x82\x17\xc0\x28\xe0\x30\xe0\x00\x91\x70\x00\x11\x27\x08\x5f\x1f\x4f\x0e\x94\x35\x0e\x85\xe0\x90\xe0\x80\x1b\x91\x0b\xe7\xec\xf2\xe0\x8e\x0f\x9f\x1f\xe8\x2f\xf9\x2f\x80\x81\x86\x95\x80\x68\x80\x83\x44\x23\x31\xf4\x00\xe5\x13\xec", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("57 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x4f\xdf\x00\x23\x09\xf4\x11\xc0\x80\x91\x70\x00\x8f\x5f\x80\x93\x70\x00\x80\x91\x70\x00\x80\x32\x08\xf4\x9f\xcf\x22\x24\x20\x92\x71\x00\x85\xe0\x80\x93\xc7\x02\x45\xdf\x0e\x94\x6b\x0e\x08\x95\xa5\x98\x08\x95\x09\xb9\x88\xe1\x8a\xb9\x08\x95\x5f\x9b", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("58 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xfe\xcf\x0c\xb1\x08\x95\x5d\x9b\xfe\xcf\x0c\xb9\x08\x95\x2a\x92\x8a\x93\x2f\xb6\x2a\x92\x80\x91\x03\x15\x81\x30\xb1\xf4\x20\x90\x02\x15\x24\xfe\x29\xc0\x20\x90\xe9\x02\x22\x20\x29\xf4\x80\x91\x1c\x15\x8f\x77\x80\x93\x1c\x15\x81\xe0\x80\x93\xe0\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("59 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x80\x91\x02\x15\x8f\x7e\x80\x93\x02\x15\x17\xc0\x80\x91\x03\x15\x81\x38\x21\xf4\x81\xe0\x80\x93\xe1\x02\x0f\xc0\x80\x91\x03\x15\x80\x38\x21\xf4\x81\xe0\x80\x93\xe5\x02\x07\xc0\x80\x91\x03\x15\x85\x38\x19\xf4\x81\xe0\x80\x93\xe8\x02\x29\x90\x2f\xbe", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("60 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x89\x91\x29\x90\x18\x95\x82\xe0\x80\x93\xf2\x02\x22\x24\x20\x92\x73\x00\x83\xe0\x80\x93\x74\x00\x80\x93\x75\x00\x80\x93\x76\x00\x80\x93\x77\x00\x80\x93\x78\x00\x20\x92\xe9\x02\x08\x95\x20\x90\x01\x15\x21\xfe\x0e\xc0\x81\xe0\x80\x93\xe4\x02\x80\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("61 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x94\xe0\x90\x93\x24\x15\x80\x93\x23\x15\x90\x93\x34\x15\x80\x93\x33\x15\x0d\xc0\x22\x24\x20\x92\xe4\x02\x8f\xef\x93\xe0\x90\x93\x24\x15\x80\x93\x23\x15\x90\x93\x34\x15\x80\x93\x33\x15\x08\x95\x0b\xd0\x80\x91\x80\x30\x80\x61\x80\x93\x80\x30\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("62 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x00\x15\x84\x60\x80\x93\x00\x15\x08\x95\xa0\x9a\xa8\x98\x08\x95\x0e\x94\x78\x0e\x66\x27\x77\x27\x80\xe4\x90\xe2\x90\x93\x1e\x15\x80\x93\x1d\x15\x20\x90\x73\x00\x22\x20\x09\xf0\x69\xc0\x20\x90\x18\x15\x27\xfe\x65\xc0\x28\xed\x32\xe0\x08\xe0\x10\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("63 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x84\xd1\x80\x91\x18\x15\x8f\x77\x80\x93\x18\x15\x80\x91\xe9\x02\x81\x30\x29\xf4\x80\x91\x1c\x15\x8f\x77\x80\x93\x1c\x15\x80\x91\xd8\x02\x80\x76\x80\x34\x51\xf4\x20\x90\xd8\x02\x27\xfe\x03\xc0\x0e\x94\xef\x00\x46\xc0\x0e\x94\xe1\x01\x43\xc0\x40\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("64 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xd9\x02\x55\x27\x40\x30\x45\x07\x09\xf1\x41\x30\xe0\xe0\x5e\x07\x01\xf1\x43\x30\xe0\xe0\x5e\x07\xf9\xf0\x45\x30\xe0\xe0\x5e\x07\xf1\xf0\x46\x30\xe0\xe0\x5e\x07\xe9\xf0\x48\x30\xe0\xe0\x5e\x07\xe1\xf0\x49\x30\xe0\xe0\x5e\x07\xd9\xf0\x4a\x30\xe0\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("65 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x5e\x07\xd1\xf0\x4b\x30\xe0\xe0\x5e\x07\xc9\xf0\x1b\xc0\x0e\x94\x7f\x09\x19\xc0\x0e\x94\x62\x0a\x16\xc0\x0e\x94\xd1\x0a\x13\xc0\x0e\x94\x4d\x0b\x10\xc0\x0e\x94\x8b\x0b\x0d\xc0\x0e\x94\xe7\x0c\x0a\xc0\x0e\x94\x31\x0d\x07\xc0\x0e\x94\x9e\x0d\x04\xc0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("66 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0e\x94\xef\x0d\x01\xc0\xa4\xd1\x80\x91\x73\x00\x85\x30\x59\xf4\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x20\x90\xda\x02\x20\x92\x04\x15\x22\x24\x20\x92\x73\x00\x80\x91\x73\x00\x84\x30\x19\xf4\x22\x24\x20\x92\x73\x00\x80\x91\x73\x00\x81\x30\x09\xf0\x87\xc0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("67 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x20\x90\xde\x02\x30\x90\xdf\x02\x40\x90\xf0\x02\x50\x90\xf1\x02\x42\x14\x53\x04\x18\xf4\xa4\x2c\xb5\x2c\x04\xc0\xa0\x90\xde\x02\xb0\x90\xdf\x02\x4a\x2d\x5b\x2d\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x80\x91\xf0\x02\x90\x91\xf1\x02\x80\x34\xe0\xe0\x9e\x07", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("68 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x78\xf1\x80\x91\xe6\x02\x81\x30\x61\xf4\x86\x2f\x97\x2f\x80\x5c\x9f\x4d\x90\x93\x1e\x15\x80\x93\x1d\x15\x80\xe4\x80\x93\x1b\x15\x03\xc0\x00\xe4\x10\xe0\xf0\xd0\x80\x91\xf0\x02\x90\x91\xf1\x02\x80\x54\x90\x40\x90\x93\xf1\x02\x80\x93\xf0\x02\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("69 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xee\x02\x90\x91\xef\x02\x80\x5c\x9f\x4f\x90\x93\xef\x02\x80\x93\xee\x02\x60\x5c\x7f\x4f\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x2b\xc0\x80\x91\xe6\x02\x81\x30\x79\xf4\x86\x2f\x97\x2f\x80\x5c\x9f\x4d\x90\x93\x1e\x15\x80\x93\x1d\x15\x20\x90\xf0\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("70 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x30\x90\xf1\x02\x20\x92\x1b\x15\x05\xc0\x00\x91\xf0\x02\x10\x91\xf1\x02\xbc\xd0\x20\x90\xf0\x02\x30\x90\xf1\x02\x40\x90\xee\x02\x50\x90\xef\x02\x42\x0c\x53\x1c\x50\x92\xef\x02\x40\x92\xee\x02\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x20\x90\xee\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("71 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x30\x90\xef\x02\x24\x16\x35\x06\x08\xf4\x92\xcf\x22\x24\x20\x92\x73\x00\x20\x92\xe6\x02\x80\x91\x73\x00\x82\x30\x09\xf0\x7a\xc0\x20\x90\xde\x02\x30\x90\xdf\x02\x40\x90\xf0\x02\x50\x90\xf1\x02\x42\x14\x53\x04\x18\xf4\x64\x2d\x75\x2d\x04\xc0\x60\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("72 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xde\x02\x70\x91\xdf\x02\x46\x2f\x57\x2f\x20\x90\x18\x15\x27\xfe\xfc\xcf\x80\x91\xf0\x02\x90\x91\xf1\x02\x80\x34\xe0\xe0\x9e\x07\x58\xf1\x20\x91\xec\x02\x30\x91\xed\x02\x00\xe4\x10\xe0\x56\xd0\x80\x91\x18\x15\x8f\x77\x80\x93\x18\x15\x80\x91\xec\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("73 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x90\x91\xed\x02\x80\x5c\x9f\x4f\x90\x93\xed\x02\x80\x93\xec\x02\x80\x91\xf0\x02\x90\x91\xf1\x02\x80\x54\x90\x40\x90\x93\xf1\x02\x80\x93\xf0\x02\x80\x91\xee\x02\x90\x91\xef\x02\x80\x5c\x9f\x4f\x90\x93\xef\x02\x80\x93\xee\x02\x1c\xc0\x20\x91\xec\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("74 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x30\x91\xed\x02\x00\x91\xf0\x02\x10\x91\xf1\x02\x29\xd0\x20\x90\xf0\x02\x30\x90\xf1\x02\x40\x90\xee\x02\x50\x90\xef\x02\x42\x0c\x53\x1c\x50\x92\xef\x02\x40\x92\xee\x02\x80\x91\x18\x15\x8f\x77\x80\x93\x18\x15\x20\x90\xee\x02\x30\x90\xef\x02\x24\x16", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("75 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x35\x06\x08\xf4\xa5\xcf\x22\x24\x20\x92\x73\x00\x22\x20\x31\xf4\x20\x90\xd8\x02\x27\xfc\x02\xc0\x0e\x94\x00\x02\x0e\x94\x6e\x0e\x08\x95\x0e\x94\x7c\x0e\x00\x30\x01\x07\x91\xf0\x44\x27\x55\x27\x0c\xc0\xe4\x2f\xf5\x2f\xe2\x0f\xf3\x1f\xa4\x2f\xb5\x2f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("76 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xa0\x50\xb0\x4e\x2c\x90\x20\x82\x4f\x5f\x5f\x4f\x40\x17\x51\x07\x88\xf3\x0e\x94\x7f\x0e\x08\x95\x0e\x94\x7c\x0e\x00\x30\x01\x07\x09\xf4\x37\xc0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x00\x93\x1b\x15\x80\x91\x72\x00\x81\x30\xb9\xf4\x44\x27\x55\x27\x10\xc0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("77 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xe0\x91\xea\x02\xf0\x91\xeb\x02\x21\x90\xf0\x93\xeb\x02\xe0\x93\xea\x02\xe4\x2f\xf5\x2f\xe0\x5c\xff\x4d\x20\x82\x4f\x5f\x5f\x4f\x40\x17\x51\x07\x68\xf3\x16\xc0\x44\x27\x55\x27\x10\xc0\xe0\x91\xec\x02\xf0\x91\xed\x02\x21\x90\xf0\x93\xed\x02\xe0\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("78 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xec\x02\xe4\x2f\xf5\x2f\xe0\x5c\xff\x4d\x20\x82\x4f\x5f\x5f\x4f\x40\x17\x51\x07\x68\xf3\x0e\x94\x7f\x0e\x08\x95\x0e\x94\x7a\x0e\x6c\x81\x7d\x81\x42\x2f\x53\x2f\x40\x5c\x5f\x4d\x05\xc0\x80\x91\xe1\x02\x81\x30\x09\xf4\x13\xc0\x20\x90\x1c\x15\x27\xfc", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("79 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xf7\xcf\xe0\x2f\xf1\x2f\xa4\x2f\xb5\x2f\x01\x90\x0e\x2f\x1f\x2f\x0d\x92\x4a\x2f\x5b\x2f\x61\x50\x70\x40\x60\x30\x67\x07\x89\xf7\x0e\x94\x6b\x0e\x08\x95\x0f\x77\x08\x95\x80\x91\x10\x15\x89\x7f\x80\x93\x10\x15\x84\x60\x80\x93\x10\x15\x84\xe0\x80\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("80 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x73\x00\x08\x95\x80\x91\xe7\x02\x82\x30\x31\xf4\x80\x91\x40\x17\x8a\x7f\x80\x93\x40\x17\x16\xc0\x80\x91\xe7\x02\x83\x30\x21\xf0\x85\x30\x11\xf0\x84\x30\x71\xf4\x80\x91\x80\x30\x84\x60\x80\x93\x80\x30\x04\xe1\x10\xe0\x0e\x94\x15\x05\x80\x91\x80\x30", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("81 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x8b\x7f\x80\x93\x80\x30\x80\x91\x00\x16\x8f\x77\x80\x93\x00\x16\x08\x95\x80\x91\xe7\x02\x82\x30\x31\xf4\x80\x91\x40\x17\x85\x60\x80\x93\x40\x17\x20\xc0\x80\x91\xe7\x02\x83\x30\x31\xf4\x80\x91\x80\x15\x80\x68\x80\x93\x80\x15\x16\xc0\x80\x91\xe7\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("82 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x85\x30\x59\xf4\x80\x91\x00\x18\x8d\x60\x80\x93\x00\x18\x80\x91\x40\x17\x85\x60\x80\x93\x40\x17\x07\xc0\x80\x91\xe7\x02\x84\x30\x19\xf4\x81\xe0\x80\x93\x00\x31\x80\x91\x00\x16\x80\x68\x80\x93\x00\x16\x08\x95\x22\x97\x22\x24\x33\x24\x39\x82\x28\x82", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("83 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x88\x81\x99\x81\x01\x96\x99\x83\x88\x83\x88\x81\x99\x81\x84\x3f\xe1\xe0\x9e\x07\xac\xf3\x22\x96\x08\x95\x0e\x94\x7c\x0e\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x51\xf4\x33\x20\x41\xf4\x80\x91\xde\x02\x90\x91\xdf\x02\x82\x30\xe0\xe0\x9e\x07\x11\xf0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("84 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x0e\x94\x0b\x09\x40\x91\xd8\x02\x55\x27\x40\x38\xe0\xe0\x5e\x07\x49\xf0\x41\x38\xe0\xe0\x5e\x07\xd1\xf0\x42\x38\xe0\xe0\x5e\x07\x79\xf1\xa7\xc0\x20\x90\xdc\x02\x30\x90\xdd\x02\x22\x20\x11\xf4\x33\x20\x19\xf0\x0e\x94\x0b\x09\x9e\xc0\x80\xe6\x91\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("85 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x94\xc0\x80\x91\xf2\x02\x84\x30\x41\xf4\x20\x90\xdc\x02\x30\x90\xdd\x02\x22\x20\x11\xf4\x33\x20\x19\xf0\x0e\x94\x0b\x09\x85\xc0\x80\xe6\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("86 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x72\x00\x7b\xc0\x80\x91\xf2\x02\x84\x30\x21\xf4\x20\x90\xdd\x02\x22\x20\x19\xf0\x0e\x94\x0b\x09\x70\xc0\x40\x91\xdc\x02\x55\x27\x41\x38\xe0\xe0\x5e\x07\x51\xf0\x42\x38\xe0\xe0\x5e\x07\x21\xf1\x43\x38\xe0\xe0\x5e\x07\x09\xf4\x3d\xc0\x5a\xc0\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("87 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x74\x00\x83\x30\x51\xf4\x8e\xe5\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x09\xc0\x80\xe6\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x82\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x41\xc0\x80\x91\x75\x00", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("88 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x83\x30\x51\xf4\x8e\xe5\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x09\xc0\x80\xe6\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x82\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x23\xc0\x80\x91\x76\x00\x83\x30", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("89 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x51\xf4\x8e\xe5\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x09\xc0\x80\xe6\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x82\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x05\xc0\x0e\x94\x0b\x09\x02\xc0\x0e\x94", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("90 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0b\x09\x80\x91\x73\x00\x84\x30\x79\xf0\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x82\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x0e\x94\x7f\x0e\x08\x95\x0e\x94\x7c\x0e\x80\x91\xf2\x02\x84\x30\xa1\xf4\x80\x91\xd8\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("91 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x82\x30\x81\xf4\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x51\xf4\x33\x20\x41\xf4\x20\x90\xde\x02\x30\x90\xdf\x02\x22\x20\x11\xf4\x33\x20\x19\xf0\x0e\x94\x0b\x09\x3f\xc0\x40\x91\xdc\x02\x55\x27\x41\x38\xe0\xe0\x5e\x07\x49\xf0\x42\x38\xe0\xe0\x5e\x07", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("92 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xa1\xf0\x43\x38\xe0\xe0\x5e\x07\xf9\xf0\x2d\xc0\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x28\x2e\x20\x92\x20\x15\x8e\x7f\x80\x93\x20\x15\x22\x24\x20\x92\x74\x00\x20\xc0\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x28\x2e\x20\x92\x30\x15\x8e\x7f\x80\x93", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("93 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x30\x15\x22\x24\x20\x92\x75\x00\x11\xc0\x80\x91\x40\x15\x89\x7f\x80\x93\x40\x15\x28\x2e\x20\x92\x40\x15\x8e\x7f\x80\x93\x40\x15\x22\x24\x20\x92\x76\x00\x02\xc0\x0e\x94\x0b\x09\x80\x91\x73\x00\x84\x30\x61\xf0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("94 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x0e\x94\x7f\x0e\x08\x95\x0e\x94\x7a\x0e\x44\x27\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x09\xf0\x55\xc0\x33\x20\x09\xf0\x52\xc0\x80\x91\xf2\x02\x84\x30\xa1\xf4\x80\x91\xd8\x02\x82\x30\x81\xf4", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("95 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x51\xf4\x33\x20\x41\xf4\x20\x90\xde\x02\x30\x90\xdf\x02\x22\x20\x11\xf4\x33\x20\x19\xf0\x0e\x94\x0b\x09\x39\xc0\x60\x91\xdc\x02\x77\x27\x61\x38\xe0\xe0\x7e\x07\x49\xf0\x62\x38\xe0\xe0\x7e\x07\x89\xf0\x63\x38", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("96 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xe0\xe0\x7e\x07\xc9\xf0\x24\xc0\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x84\x60\x80\x93\x20\x15\x83\xe0\x80\x93\x74\x00\x1d\xc0\x80\x91\x30\x15\x89\x7f\x80\x93\x30\x15\x84\x60\x80\x93\x30\x15\x83\xe0\x80\x93\x75\x00\x11\xc0\x80\x91\x40\x15\x89\x7f", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("97 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x80\x93\x40\x15\x84\x60\x80\x93\x40\x15\x83\xe0\x80\x93\x76\x00\x05\xc0\x0e\x94\x0b\x09\x02\xc0\x0e\x94\x0b\x09\x80\x91\x73\x00\x84\x30\xa1\xf0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x44\x23", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("98 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x31\xf0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x40\x93\x09\x15\x0e\x94\x6b\x0e\x08\x95\x20\x90\xd8\x02\x22\x20\xc9\xf4\x20\x90\xdc\x02\x30\x90\xdd\x02\x22\x20\x99\xf4\x33\x20\x89\xf4\x20\x90\xde\x02\x30\x90\xdf\x02\x22\x20\x59\xf4\x33\x20\x49\xf4\x8f\xe7", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("99 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x90\xe0\x20\x90\xda\x02\x30\x90\xdb\x02\x82\x15\x93\x05\x10\xf4\x0e\x94\x0b\x09\x85\xe0\x80\x93\x73\x00\x20\x90\xda\x02\x22\x20\x21\xf0\x83\xe0\x80\x93\xf2\x02\x03\xc0\x82\xe0\x80\x93\xf2\x02\x80\x91\x73\x00\x84\x30\x61\xf0\x20\x90\x1c\x15\x27\xfc", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("100 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x08\x95\x0e\x94\x7c\x0e\x22\x97\x80\x91\xdb\x02\x82\x30\x09\xf0\x6b\xc0\x81\xe0\x80\x93\xe6\x02\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x20\x90\x01\x15\x21\xfe\x1f\xc0\x89\xe0\x90\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("101 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x99\x83\x88\x83\x22\x27\x33\x27\x00\xea\x10\xe0\x0e\x94\xe5\x08\x82\xe2\x90\xe0\x99\x83\x88\x83\x29\xe0\x30\xe0\x02\xeb\x10\xe0\x0e\x94\xe5\x08\x87\xe0\x90\xe0\x99\x83\x88\x83\x2b\xe2\x30\xe0\x04\xed\x10\xe0\x0e\x94\xe5\x08\x1e\xc0\x89\xe0\x90\xe0", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("102 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x99\x83\x88\x83\x22\x27\x33\x27\x00\xea\x10\xe0\x0e\x94\xe5\x08\x82\xe2\x90\xe0\x99\x83\x88\x83\x29\xe0\x30\xe0\x02\xeb\x10\xe0\x0e\x94\xe5\x08\x87\xe0\x90\xe0\x99\x83\x88\x83\x2b\xe2\x30\xe0\x0b\xed\x10\xe0\x0e\x94\xe5\x08\x20\x90\xa2\x00\x30\x90", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("103 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xa3\x00\x30\x92\xf1\x02\x20\x92\xf0\x02\x20\x90\xf0\x02\x30\x90\xf1\x02\x40\x90\xde\x02\x50\x90\xdf\x02\x42\x14\x53\x04\x30\xf4\x24\x2c\x35\x2c\x30\x92\xf1\x02\x20\x92\xf0\x02\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("104 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xe5\xc0\x80\x91\xdb\x02\x87\x30\x09\xf0\x6b\xc0\x81\xe0\x80\x93\xe6\x02\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x20\x90\x01\x15\x21\xfe\x1f\xc0\x89\xe0\x90\xe0\x99\x83\x88\x83\x22\x27\x33\x27\x09\xea\x10\xe0\x0e\x94\xe5\x08\x82\xe2\x90\xe0\x99\x83\x88\x83", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("105 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x29\xe0\x30\xe0\x02\xeb\x10\xe0\x0e\x94\xe5\x08\x87\xe0\x90\xe0\x99\x83\x88\x83\x2b\xe2\x30\xe0\x0b\xed\x10\xe0\x0e\x94\xe5\x08\x1e\xc0\x89\xe0\x90\xe0\x99\x83\x88\x83\x22\x27\x33\x27\x09\xea\x10\xe0\x0e\x94\xe5\x08\x82\xe2\x90\xe0\x99\x83\x88\x83", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("106 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x29\xe0\x30\xe0\x02\xeb\x10\xe0\x0e\x94\xe5\x08\x87\xe0\x90\xe0\x99\x83\x88\x83\x2b\xe2\x30\xe0\x04\xed\x10\xe0\x0e\x94\xe5\x08\x20\x90\xab\x00\x30\x90\xac\x00\x30\x92\xf1\x02\x20\x92\xf0\x02\x20\x90\xf0\x02\x30\x90\xf1\x02\x40\x90\xde\x02\x50\x90", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("107 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xdf\x02\x42\x14\x53\x04\x30\xf4\x24\x2c\x35\x2c\x30\x92\xf1\x02\x20\x92\xf0\x02\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x75\xc0\x40\x91\xdb\x02\x55\x27\x41\x30\xe0\xe0\x5e\x07\x49\xf0\x43\x30\xe0\xe0\x5e\x07\x39\xf1", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("108 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x46\x30\xe0\xe0\x5e\x07\x91\xf0\x45\xc0\x84\xe8\x90\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x20\x90\x84\x00\x33\x24\x30\x92\xf1\x02\x20\x92\xf0\x02\x36\xc0\x86\xe9\x90\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("109 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x20\x90\x96\x00\x33\x24\x30\x92\xf1\x02\x20\x92\xf0\x02\x25\xc0\x83\xe0\x20\x90\xda\x02\x82\x15\x18\xf4\x0e\x94\x0b\x09\x1d\xc0\x86\xe5\x91\xe0\xe0\x91\xda\x02\xff\x27\xee\x0f\xff\x1f\xe8\x0f\xf9\x1f\x20\x80\x31\x80\x30\x92\xeb\x02\x20\x92\xea\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("110 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x81\xe0\x80\x93\x72\x00\xe2\x2d\xf3\x2d\x20\x80\x33\x24\x30\x92\xf1\x02\x20\x92\xf0\x02\x02\xc0\x0e\x94\x0b\x09\x20\x90\xf0\x02\x30\x90\xf1\x02\x40\x90\xde\x02\x50\x90\xdf\x02\x42\x14\x53\x04\x30\xf4\x24\x2c\x35\x2c\x30\x92\xf1\x02\x20\x92\xf0\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("111 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x80\x91\x73\x00\x84\x30\x49\xf0\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x22\x96\x0e\x94\x7f\x0e\x08\x95\x80\x91\xd8\x02\x80\x38\xc1\xf4\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x91\xf4\x33\x20\x81\xf4\x20\x90\xdc\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("112 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x30\x90\xdd\x02\x22\x20\x51\xf4\x33\x20\x41\xf4\x80\x91\xde\x02\x90\x91\xdf\x02\x81\x30\xe0\xe0\x9e\x07\x19\xf0\x0e\x94\x0b\x09\x1d\xc0\x81\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x80\x91\xf2\x02\x84\x30\x51\xf4\x8e\xe5\x91\xe0\x90\x93\xeb\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("113 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x09\xc0\x80\xe6\x91\xe0\x90\x93\xeb\x02\x80\x93\xea\x02\x81\xe0\x80\x93\x72\x00\x80\x91\x73\x00\x84\x30\x49\xf0\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92\xee\x02\x08\x95\x80\x91\xf2\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("114 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x82\x30\xe9\xf0\x20\x90\xd8\x02\x22\x20\xc9\xf4\x20\x90\xdc\x02\x30\x90\xdd\x02\x22\x20\x99\xf4\x33\x20\x89\xf4\x20\x90\xde\x02\x30\x90\xdf\x02\x22\x20\x59\xf4\x33\x20\x49\xf4\x81\xe0\x90\xe0\x20\x90\xda\x02\x30\x90\xdb\x02\x82\x15\x93\x05\x18\xf4", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("115 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x0e\x94\x0b\x09\x38\xc0\x22\x24\x30\x90\xda\x02\x23\x14\x30\xf5\x84\xe0\x80\x93\xf2\x02\x20\x92\x74\x00\x20\x92\x75\x00\x20\x92\x76\x00\x20\x92\x77\x00\x20\x92\x78\x00\x80\x91\x20\x15\x89\x7f\x80\x93\x20\x15\x28\x2e\x20\x92\x20\x15\x80\x91\x30\x15", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("116 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x89\x7f\x80\x93\x30\x15\x28\x2e\x20\x92\x30\x15\x80\x91\x40\x15\x89\x7f\x80\x93\x40\x15\x28\x2e\x20\x92\x40\x15\x0d\xc0\x83\xe0\x80\x93\xf2\x02\x80\x93\x74\x00\x80\x93\x75\x00\x80\x93\x76\x00\x80\x93\x77\x00\x80\x93\x78\x00\x80\x91\x73\x00\x84\x30", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("117 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\x61\xf0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x08\x95\x80\x91\xf2\x02\x84\x30\xa1\xf4\x20\x90\xda\x02\x30\x90\xdb\x02\x22\x20\x71\xf4\x33\x20\x61\xf4\x80\x91\xd8\x02\x81\x38\x41\xf4\x80\x91", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("118 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xde\x02\x90\x91\xdf\x02\x81\x30\xe0\xe0\x9e\x07\x19\xf0\x0e\x94\x0b\x09\x28\xc0\x81\xe0\x90\xe0\x90\x93\xf1\x02\x80\x93\xf0\x02\x20\x90\xdc\x02\x30\x90\xdd\x02\x22\x20\x11\xf4\x33\x20\x41\xf0\x80\x91\xdc\x02\x90\x91\xdd\x02\x81\x30\xe0\xe0\x9e\x07", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("119 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x81\xf4\x8a\xe9\x91\xe0\x20\x90\xdc\x02\x30\x90\xdd\x02\x28\x0e\x39\x1e\x30\x92\xed\x02\x20\x92\xec\x02\x22\x24\x20\x92\x72\x00\x02\xc0\x0e\x94\x0b\x09\x80\x91\x73\x00\x84\x30\x49\xf0\x81\xe0\x80\x93\x73\x00\x22\x24\x33\x24\x30\x92\xef\x02\x20\x92", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("120 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xee\x02\x08\x95\x80\x91\xd8\x02\x81\x30\x41\xf4\x20\x90\xde\x02\x30\x90\xdf\x02\x22\x20\x11\xf4\x33\x20\x19\xf0\x0e\x94\x0b\x09\x22\xc0\x80\x91\xdc\x02\x90\x91\xdd\x02\x82\x30\xe0\xe0\x9e\x07\xd0\xf4\x8a\xe9\x91\xe0\xe0\x91\xdc\x02\xf0\x91\xdd\x02", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("121 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xe8\x0f\xf9\x1f\x20\x90\xda\x02\x30\x90\xdb\x02\x20\x82\xe0\x91\xdc\x02\xf0\x91\xdd\x02\xe8\x0f\xf9\x1f\x20\x80\x22\x20\x19\xf0\x0e\x94\x3d\x09\x01\xc0\x00\x00\x80\x91\x73\x00\x84\x30\x61\xf0\x20\x90\x1c\x15\x27\xfc\xfc\xcf\x22\x24\x20\x92\x1b\x15", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("122 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x80\x91\x1c\x15\x80\x68\x80\x93\x1c\x15\x08\x95\x68\x94\xda\x92\xd1\x2e\x04\xc0\xe8\x94\xda\x92\xd1\x2e\xd3\x26\x17\xff\x04\xc0\x10\x95\x00\x95\x0f\x5f\x1f\x4f\x37\xff\x04\xc0\x30\x95\x20\x95\x2f\x5f\x3f\x4f\x0e\x94\x52\x0e\xd7\xfe\x04\xc0\x10\x95", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("123 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\x00\x95\x0f\x5f\x1f\x4f\xd9\x90\x08\x95\x68\x94\x01\xc0\xe8\x94\xea\x92\xfa\x92\x8a\x93\xee\x24\xff\x24\x80\xe1\x00\x0f\x11\x1f\xee\x1c\xff\x1c\xe2\x16\xf3\x06\x18\xf0\xe2\x1a\xf3\x0a\x03\x95\x8a\x95\xa1\xf7\x16\xf4\x0e\x2d\x1f\x2d\x89\x91\xf9\x90", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("124 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x05\xff\xe9\x90\x08\x95\xe2\xe0\x0c\x94\x80\x0e\xe4\xe0\x0c\x94\x80\x0e\xee\x27\x0c\x94\x80\x0e\xfa\x92\xea\x92\xda\x92\xca\x92\xba\x92\xaa\x92\x7a\x93\x6a\x93\x5a\x93\x4a\x93\x08\x95\xe1\xe0\x49\x91\x59\x91\xe0\xfd\x08\x95\x69\x91\x79\x91\xe1\xfd\x08\x95", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("125 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(1*1000);
memcpy(buf, "\x05\xff\xa9\x90\xb9\x90\xe2\xfd\x08\x95\xc9\x90\xd9\x90\xe3\xfd\x08\x95\xe9\x90\xf9\x90\x08\x95\x22\x23\x21\xf0\x00\x0f\x11\x1f\x2a\x95\xfa\xcf\x08\x95\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", 0x0000040);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000005, 0x0000000, buf, 0x0000040, 1000);
printf("126 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
memcpy(buf, "\x07\x00", 0x0000002);
ret = usb_control_msg(devh, USB_TYPE_VENDOR + USB_RECIP_DEVICE, 0x0000001, 0x0000007, 0x0000000, buf, 0x0000002, 1000);
printf("127 control msg returned %d, bytes: ", ret);
print_bytes(buf, ret);
printf("\n");
usleep(248*1000);
ret = usb_reset(devh);
printf("0 usb_reset returned %d\n", ret );
ret = usb_release_interface(devh, 0);
assert(ret == 0);
ret = usb_close(devh);
assert(ret == 0);
return 0;
}