Remove generated files
[framework/connectivity/libgphoto2.git] / camlibs / spca50x / lsusb-v
1 #!/usr/bin/perl -w
2 # lsusb-v
3 #####################################################################
4 #
5 # This file contains the output of lsusb -v for the cameras 
6 # supported by this driver
7 #
8 # The purpose is to have a comprehensive database in which to find 
9 # distinguishing properties for cameras with the same ProductID but 
10 # different features
11 #
12 # Add data after the __DATA__ line. There is a template you can copy.
13 #
14 # Run this file with perl to create the lsusb output in extra files.
15
16 ######################################################################
17
18 use strict;
19 my $dir = "lsusb-v-comparison";
20
21 mkdir($dir) || die "no mkdir";
22
23 my $print = 0;
24 my $fname = 0;
25 while (<DATA>) {
26         my $line = $_;
27         if ($line =~ /^##BEGIN lsusb-v/) {
28                 $print = 1;
29                 open(OUT, ">${dir}/${fname}");
30                 $fname++;
31         } elsif ($line =~ /^##END lsusb-v/) {
32                 $print = 0;
33                 close(OUT);
34         }
35         if ($print) {
36                 print OUT $line;
37         }
38 }
39 print "Have a look at ${dir}/* now :-)\n";
40
41 __DATA__
42
43
44 ##BEGIN CAMERA
45 #Camera name: <whatever your camera is called
46 #Media: <sdram, flash, storage card, etc.>
47 #Contact person: <your name and possibly
48 ##BEGIN Notes
49 # <insert your remarks about the camera here>
50 ##END Notes
51 ##BEGIN lsusb-v
52 <output of "lsusb -v">
53 ##END lsusb-v
54 ##END CAMERA
55
56
57
58 ##BEGIN CAMERA
59 #Camera name: Aiptek 1.3
60 #Media: sdram, ?
61 #Contact person: Walter A. Boring IV - hemna
62 ##BEGIN Notes
63 # This is the camera which deletes all files when downloading a file
64 # with libgphoto2 2.1.3. See 
65 # https://sourceforge.net/tracker/index.php?func=detail&aid=876501&group_id=8874&atid=108874
66 # for details.
67 ##END Notes
68 ##BEGIN lsusb-v
69 Bus 001 Device 004: ID 04fc:504a Sunplus Technology Co., Ltd SPCA504a Digital Camera
70   Language IDs: none (invalid length string descriptor bf; len=0)
71 Device Descriptor:
72   bLength                18
73   bDescriptorType         1
74   bcdUSB               1.00
75   bDeviceClass            0 Interface
76   bDeviceSubClass         0 
77   bDeviceProtocol         0 
78   bMaxPacketSize0         8
79   idVendor           0x04fc Sunplus Technology Co., Ltd
80   idProduct          0x504a SPCA504a Digital Camera
81   bcdDevice            1.00
82   iManufacturer           0 
83   iProduct                0 
84   iSerial                 0 
85   bNumConfigurations      1
86   Configuration Descriptor:
87     bLength                 9
88     bDescriptorType         2
89     wTotalLength          167
90     bNumInterfaces          2
91     bConfigurationValue     1
92     iConfiguration          0
93     bmAttributes         0x80
94     MaxPower              500mA
95     Interface Descriptor:
96       bLength                 9
97       bDescriptorType         4
98       bInterfaceNumber        0
99       bAlternateSetting       0
100       bNumEndpoints           1
101       bInterfaceClass       255 Vendor Specific Class
102       bInterfaceSubClass      0 
103       bInterfaceProtocol      0 
104       iInterface              0 
105       Endpoint Descriptor:
106         bLength                 7
107         bDescriptorType         5
108         bEndpointAddress     0x81  EP 1 IN
109         bmAttributes            1
110           Transfer Type            Isochronous
111           Synch Type               none
112         wMaxPacketSize          0
113         bInterval               1
114     Interface Descriptor:
115       bLength                 9
116       bDescriptorType         4
117       bInterfaceNumber        0
118       bAlternateSetting       1
119       bNumEndpoints           1
120       bInterfaceClass       255 Vendor Specific Class
121       bInterfaceSubClass      0 
122       bInterfaceProtocol      0 
123       iInterface              0 
124       Endpoint Descriptor:
125         bLength                 7
126         bDescriptorType         5
127         bEndpointAddress     0x81  EP 1 IN
128         bmAttributes            1
129           Transfer Type            Isochronous
130           Synch Type               none
131         wMaxPacketSize        128
132         bInterval               1
133     Interface Descriptor:
134       bLength                 9
135       bDescriptorType         4
136       bInterfaceNumber        0
137       bAlternateSetting       2
138       bNumEndpoints           1
139       bInterfaceClass       255 Vendor Specific Class
140       bInterfaceSubClass      0 
141       bInterfaceProtocol      0 
142       iInterface              0 
143       Endpoint Descriptor:
144         bLength                 7
145         bDescriptorType         5
146         bEndpointAddress     0x81  EP 1 IN
147         bmAttributes            1
148           Transfer Type            Isochronous
149           Synch Type               none
150         wMaxPacketSize        384
151         bInterval               1
152     Interface Descriptor:
153       bLength                 9
154       bDescriptorType         4
155       bInterfaceNumber        0
156       bAlternateSetting       3
157       bNumEndpoints           1
158       bInterfaceClass       255 Vendor Specific Class
159       bInterfaceSubClass      0 
160       bInterfaceProtocol      0 
161       iInterface              0 
162       Endpoint Descriptor:
163         bLength                 7
164         bDescriptorType         5
165         bEndpointAddress     0x81  EP 1 IN
166         bmAttributes            1
167           Transfer Type            Isochronous
168           Synch Type               none
169         wMaxPacketSize        512
170         bInterval               1
171     Interface Descriptor:
172       bLength                 9
173       bDescriptorType         4
174       bInterfaceNumber        0
175       bAlternateSetting       4
176       bNumEndpoints           1
177       bInterfaceClass       255 Vendor Specific Class
178       bInterfaceSubClass      0 
179       bInterfaceProtocol      0 
180       iInterface              0 
181       Endpoint Descriptor:
182         bLength                 7
183         bDescriptorType         5
184         bEndpointAddress     0x81  EP 1 IN
185         bmAttributes            1
186           Transfer Type            Isochronous
187           Synch Type               none
188         wMaxPacketSize        640
189         bInterval               1
190     Interface Descriptor:
191       bLength                 9
192       bDescriptorType         4
193       bInterfaceNumber        0
194       bAlternateSetting       5
195       bNumEndpoints           1
196       bInterfaceClass       255 Vendor Specific Class
197       bInterfaceSubClass      0 
198       bInterfaceProtocol      0 
199       iInterface              0 
200       Endpoint Descriptor:
201         bLength                 7
202         bDescriptorType         5
203         bEndpointAddress     0x81  EP 1 IN
204         bmAttributes            1
205           Transfer Type            Isochronous
206           Synch Type               none
207         wMaxPacketSize        768
208         bInterval               1
209     Interface Descriptor:
210       bLength                 9
211       bDescriptorType         4
212       bInterfaceNumber        0
213       bAlternateSetting       6
214       bNumEndpoints           1
215       bInterfaceClass       255 Vendor Specific Class
216       bInterfaceSubClass      0 
217       bInterfaceProtocol      0 
218       iInterface              0 
219       Endpoint Descriptor:
220         bLength                 7
221         bDescriptorType         5
222         bEndpointAddress     0x81  EP 1 IN
223         bmAttributes            1
224           Transfer Type            Isochronous
225           Synch Type               none
226         wMaxPacketSize        896
227         bInterval               1
228     Interface Descriptor:
229       bLength                 9
230       bDescriptorType         4
231       bInterfaceNumber        0
232       bAlternateSetting       7
233       bNumEndpoints           1
234       bInterfaceClass       255 Vendor Specific Class
235       bInterfaceSubClass      0 
236       bInterfaceProtocol      0 
237       iInterface              0 
238       Endpoint Descriptor:
239         bLength                 7
240         bDescriptorType         5
241         bEndpointAddress     0x81  EP 1 IN
242         bmAttributes            1
243           Transfer Type            Isochronous
244           Synch Type               none
245         wMaxPacketSize       1023
246         bInterval               1
247     Interface Descriptor:
248       bLength                 9
249       bDescriptorType         4
250       bInterfaceNumber        1
251       bAlternateSetting       0
252       bNumEndpoints           3
253       bInterfaceClass       255 Vendor Specific Class
254       bInterfaceSubClass      0 
255       bInterfaceProtocol      0 
256       iInterface              0 
257       Endpoint Descriptor:
258         bLength                 7
259         bDescriptorType         5
260         bEndpointAddress     0x82  EP 2 IN
261         bmAttributes            2
262           Transfer Type            Bulk
263           Synch Type               none
264         wMaxPacketSize         64
265         bInterval               0
266       Endpoint Descriptor:
267         bLength                 7
268         bDescriptorType         5
269         bEndpointAddress     0x03  EP 3 OUT
270         bmAttributes            2
271           Transfer Type            Bulk
272           Synch Type               none
273         wMaxPacketSize         64
274         bInterval               0
275       Endpoint Descriptor:
276         bLength                 7
277         bDescriptorType         5
278         bEndpointAddress     0x84  EP 4 IN
279         bmAttributes            3
280           Transfer Type            Interrupt
281           Synch Type               none
282         wMaxPacketSize          1
283         bInterval               1
284   Language IDs: none (invalid length string descriptor bf; len=0)
285 ##END lsusb-v
286 ##END CAMERA
287
288
289 ##BEGIN CAMERA
290 #Camera name: Aiptek Mega Cam 1.3
291 #Media: flash, sdram
292 #Contact Person: mxhaard
293 ##BEGIN Notes
294 # This camera must be initialized this way:
295 # - remove and reinsert battery
296 # - press the little button until the LCD goes in blink 888
297 # Otherwise the camera is not found. Strange.
298 ##END Notes
299 ##BEGIN lsusb-v
300 Bus 002 Device 004: ID 04fc:504a Sunplus Technology Co. 
301   Language IDs: none (invalid length string descriptor bf; len=0)
302 Device Descriptor:
303   bLength                18
304   bDescriptorType         1
305   bcdUSB               1.00
306   bDeviceClass            0 Interface
307   bDeviceSubClass         0 
308   bDeviceProtocol         0 
309   bMaxPacketSize0         8
310   idVendor           0x04fc Sunplus Technology Co.
311   idProduct          0x504a 
312   bcdDevice            1.00
313   iManufacturer           0 
314   iProduct                0 
315   iSerial                 0 
316   bNumConfigurations      1
317   Configuration Descriptor:
318     bLength                 9
319     bDescriptorType         2
320     wTotalLength          167
321     bNumInterfaces          2
322     bConfigurationValue     1
323     iConfiguration          0
324     bmAttributes         0x80
325     MaxPower              500mA
326     Interface Descriptor:
327       bLength                 9
328       bDescriptorType         4
329       bInterfaceNumber        0
330       bAlternateSetting       0
331       bNumEndpoints           1
332       bInterfaceClass       255 Vendor Specific Class
333       bInterfaceSubClass      0 
334       bInterfaceProtocol      0 
335       iInterface              0 
336       Endpoint Descriptor:
337         bLength                 7
338         bDescriptorType         5
339         bEndpointAddress     0x81  EP 1 IN
340         bmAttributes            1
341           Transfer Type            Isochronous
342           Synch Type               none
343         wMaxPacketSize          0
344         bInterval               1
345     Interface Descriptor:
346       bLength                 9
347       bDescriptorType         4
348       bInterfaceNumber        0
349       bAlternateSetting       1
350       bNumEndpoints           1
351       bInterfaceClass       255 Vendor Specific Class
352       bInterfaceSubClass      0 
353       bInterfaceProtocol      0 
354       iInterface              0 
355       Endpoint Descriptor:
356         bLength                 7
357         bDescriptorType         5
358         bEndpointAddress     0x81  EP 1 IN
359         bmAttributes            1
360           Transfer Type            Isochronous
361           Synch Type               none
362         wMaxPacketSize        128
363         bInterval               1
364     Interface Descriptor:
365       bLength                 9
366       bDescriptorType         4
367       bInterfaceNumber        0
368       bAlternateSetting       2
369       bNumEndpoints           1
370       bInterfaceClass       255 Vendor Specific Class
371       bInterfaceSubClass      0 
372       bInterfaceProtocol      0 
373       iInterface              0 
374       Endpoint Descriptor:
375         bLength                 7
376         bDescriptorType         5
377         bEndpointAddress     0x81  EP 1 IN
378         bmAttributes            1
379           Transfer Type            Isochronous
380           Synch Type               none
381         wMaxPacketSize        384
382         bInterval               1
383     Interface Descriptor:
384       bLength                 9
385       bDescriptorType         4
386       bInterfaceNumber        0
387       bAlternateSetting       3
388       bNumEndpoints           1
389       bInterfaceClass       255 Vendor Specific Class
390       bInterfaceSubClass      0 
391       bInterfaceProtocol      0 
392       iInterface              0 
393       Endpoint Descriptor:
394         bLength                 7
395         bDescriptorType         5
396         bEndpointAddress     0x81  EP 1 IN
397         bmAttributes            1
398           Transfer Type            Isochronous
399           Synch Type               none
400         wMaxPacketSize        512
401         bInterval               1
402     Interface Descriptor:
403       bLength                 9
404       bDescriptorType         4
405       bInterfaceNumber        0
406       bAlternateSetting       4
407       bNumEndpoints           1
408       bInterfaceClass       255 Vendor Specific Class
409       bInterfaceSubClass      0 
410       bInterfaceProtocol      0 
411       iInterface              0 
412       Endpoint Descriptor:
413         bLength                 7
414         bDescriptorType         5
415         bEndpointAddress     0x81  EP 1 IN
416         bmAttributes            1
417           Transfer Type            Isochronous
418           Synch Type               none
419         wMaxPacketSize        640
420         bInterval               1
421     Interface Descriptor:
422       bLength                 9
423       bDescriptorType         4
424       bInterfaceNumber        0
425       bAlternateSetting       5
426       bNumEndpoints           1
427       bInterfaceClass       255 Vendor Specific Class
428       bInterfaceSubClass      0 
429       bInterfaceProtocol      0 
430       iInterface              0 
431       Endpoint Descriptor:
432         bLength                 7
433         bDescriptorType         5
434         bEndpointAddress     0x81  EP 1 IN
435         bmAttributes            1
436           Transfer Type            Isochronous
437           Synch Type               none
438         wMaxPacketSize        768
439         bInterval               1
440     Interface Descriptor:
441       bLength                 9
442       bDescriptorType         4
443       bInterfaceNumber        0
444       bAlternateSetting       6
445       bNumEndpoints           1
446       bInterfaceClass       255 Vendor Specific Class
447       bInterfaceSubClass      0 
448       bInterfaceProtocol      0 
449       iInterface              0 
450       Endpoint Descriptor:
451         bLength                 7
452         bDescriptorType         5
453         bEndpointAddress     0x81  EP 1 IN
454         bmAttributes            1
455           Transfer Type            Isochronous
456           Synch Type               none
457         wMaxPacketSize        896
458         bInterval               1
459     Interface Descriptor:
460       bLength                 9
461       bDescriptorType         4
462       bInterfaceNumber        0
463       bAlternateSetting       7
464       bNumEndpoints           1
465       bInterfaceClass       255 Vendor Specific Class
466       bInterfaceSubClass      0 
467       bInterfaceProtocol      0 
468       iInterface              0 
469       Endpoint Descriptor:
470         bLength                 7
471         bDescriptorType         5
472         bEndpointAddress     0x81  EP 1 IN
473         bmAttributes            1
474           Transfer Type            Isochronous
475           Synch Type               none
476         wMaxPacketSize       1023
477         bInterval               1
478     Interface Descriptor:
479       bLength                 9
480       bDescriptorType         4
481       bInterfaceNumber        1
482       bAlternateSetting       0
483       bNumEndpoints           3
484       bInterfaceClass       255 Vendor Specific Class
485       bInterfaceSubClass      0 
486       bInterfaceProtocol      0 
487       iInterface              0 
488       Endpoint Descriptor:
489         bLength                 7
490         bDescriptorType         5
491         bEndpointAddress     0x82  EP 2 IN
492         bmAttributes            2
493           Transfer Type            Bulk
494           Synch Type               none
495         wMaxPacketSize         64
496         bInterval               0
497       Endpoint Descriptor:
498         bLength                 7
499         bDescriptorType         5
500         bEndpointAddress     0x03  EP 3 OUT
501         bmAttributes            2
502           Transfer Type            Bulk
503           Synch Type               none
504         wMaxPacketSize         64
505         bInterval               0
506       Endpoint Descriptor:
507         bLength                 7
508         bDescriptorType         5
509         bEndpointAddress     0x84  EP 4 IN
510         bmAttributes            3
511           Transfer Type            Interrupt
512           Synch Type               none
513         wMaxPacketSize          1
514         bInterval               1
515   Language IDs: none (invalid length string descriptor bf; len=0)
516 ##END lsusb-v
517 ##END CAMERA
518
519
520 ########################################################################
521 # END OF FILE
522 ########################################################################