Hello List,

I'm new here, so brief summary about me:

Right now I'm a graduand here at DIEHL Aerospace, I'm quite fine with 
programming and at the moment I have to get a Videologic 21K155USB-C Cam 
working under Linux with em28xx.
Videologic was so kind and supportet me with all Information regarding I2C 
Registers and so on. But right now I have Problems with communication to 
the Cam.

Here it goes:
kernel is 2.6.27
em28xx is from mercurial, with some little extends (show'n below).
Main Problem is, that if the driver try to send an control_urb from 
em28xx_init_dev()->em28xx_write_regs_req()
I always get an ret = -32 -> -EPIPE...
I would greatly appreciate some hints that help me to get this cam 
working, surely the extensions I'll made come back to you in form of 
Patches.

Greetings,
--
Marcel Schmedes
DIEHL Aerospace GmbH
Abt.: CD-EC - Research, Graphics
Tel.: +49 69 5805 1712
E-mail: [EMAIL PROTECTED]
Website: http://www.diehl-aerospace.de


Because I don't now If I can send attachments over this list I inline some 
Information:

New Device ID for Cam:
{ USB_DEVICE(0x1bbd, 0x0043), .driver_info = 
EM2820_BOARD_VIDEOLOGY_20K15XUSB },

Hack to pass ISO-Check:
(without I get an Non-ISO Endpoint Error, which is reasonable, because 
altsetting[0] it's a bulk one)
...
                interface->cur_altsetting = &interface->altsetting[1]; 
//HACK
                endpoint = &interface->cur_altsetting->endpoint[1].desc;
                if ((endpoint->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) 
!=
...

Output of 'usbmon -i usb1' :
c37aee80 0.757405 S Co:1:004:0 s 40 02 0000 00a0 0001 1 = 23
c37aee80 0.757494 C Co:1:004:0 -32 0

/var/log/messages:
Nov 26 18:54:56 crossdev em28xx v4l2 driver version 0.0.1 loaded
Nov 26 18:54:56 crossdev em28xx: new video device (1bbd:0043): interface 
0, class 255
Nov 26 18:54:56 crossdev em28xx: ISO Check passed
Nov 26 18:54:56 crossdev em28xx: device is attached to a USB 2.0 bus
Nov 26 18:54:56 crossdev em28xx #0: Alternate settings: 4
Nov 26 18:54:56 crossdev em28xx #0: Alternate setting 0, max size= 512
Nov 26 18:54:56 crossdev em28xx #0: Alternate setting 1, max size= 3072
Nov 26 18:54:56 crossdev em28xx #0: Alternate setting 2, max size= 2048
Nov 26 18:54:56 crossdev em28xx #0: Alternate setting 3, max size= 1024
Nov 26 18:54:56 crossdev em28xx #0: [NOK] 40 02 00 00 a0 00 01 00 >>> 23
Nov 26 18:54:56 crossdev 
/home/schmedes/develop/em28xx-new/em28xx-video.c:2982:em28xx_init_dev(): 
em28xx_write_regs_req() failed, ret = -32
Nov 26 18:54:56 crossdev em28xx #0: DIEHL: em28xx_init_dev FAILED: 
/home/schmedes/develop/em28xx-new/em28xx-video.c -> 4154
Nov 26 18:54:56 crossdev em28xx: probe of 1-1:1.0 failed with error -32
Nov 26 18:54:56 crossdev usbcore: registered new interface driver em28xx


USB-Information 21K155USB-C:
Videology  Camera
Manufacturer: P&B, Inc.
Speed: 480Mb/s (high)
USB Version:  2.00
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 1bbd
Product Id: 0043
Revision Number:  0.00

Config Number: 1
        Number of Interfaces: 1
        Attributes: 80
        MaxPower Needed: 100mA

        Interface Number: 0
                Name: (none)
                Alternate Number: 0
                Class: ff(vend.) 
                Sub Class: 00
                Protocol: 00
                Number of Endpoints: 2

                        Endpoint Address: 06
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

                        Endpoint Address: 82
                        Direction: in
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

        Interface Number: 0
                Name: (none)
                Alternate Number: 1
                Class: ff(vend.) 
                Sub Class: 00
                Protocol: 00
                Number of Endpoints: 2

                        Endpoint Address: 06
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

                        Endpoint Address: 82
                        Direction: in
                        Attribute: 1
                        Type: Isoc
                        Max Packet Size: 3072
                        Interval: 125us

        Interface Number: 0
                Name: (none)
                Alternate Number: 2
                Class: ff(vend.) 
                Sub Class: 00
                Protocol: 00
                Number of Endpoints: 2

                        Endpoint Address: 06
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

                        Endpoint Address: 82
                        Direction: in
                        Attribute: 1
                        Type: Isoc
                        Max Packet Size: 2048
                        Interval: 125us

        Interface Number: 0
                Name: (none)
                Alternate Number: 3
                Class: ff(vend.) 
                Sub Class: 00
                Protocol: 00
                Number of Endpoints: 2

                        Endpoint Address: 06
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 512
                        Interval: 0ms

                        Endpoint Address: 82
                        Direction: in
                        Attribute: 1
                        Type: Isoc
                        Max Packet Size: 1024
                        Interval: 125us

.
Der Inhalt dieser E-Mail ist für den Absender rechtlich nicht verbindlich.
Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten 
haben (Fax: +49-7551-891-4001). Bitte löschen Sie in diesem Fall die Nachricht. 
Jede Form der weiteren Benutzung ist untersagt.
.
The content of this e-mail is not legally binding upon the sender.
If this e-mail was transmitted to you by error, then please inform us 
accordingly (Fax: +49-7551-891-4001). In such case you are requested to erase 
the message. Any use of such e-mail message is strictly prohibited.
_______________________________________________
Em28xx mailing list
[email protected]
http://mcentral.de/mailman/listinfo/em28xx

Reply via email to