Hi Alex, On 07/05/07, Alex Villacís Lasso <[EMAIL PROTECTED]> wrote: > This patch adds support for the KingSun/DonShine USB IrDA dongle. [...] > On plugin, this dongle reports vendor and device IDs: 0x07c0:0x4200 .
I don't have this model but I have two different dongles with Kingsun Semiconductor chips. Their IDs are 07d0:4100 and 07d0:4959. The former one reports *exactly* the same properties (device descriptor, configuration descriptor, endpoints configuration) as yours except for the Vendor/Product ID and the usb strings ( Vendor: Dazzle Manufacturer: Kingsun Semiconductor Product: USB to Serial ) and I'm pretty sure the protocol it uses is also the same, so it may be a good idea to add 07d0:4100 to your driver's USB ID table. I tested the previous version of your patch but I couldn't get any communication going on (neither Tx nor Rx) and the symptoms were exactly the same as with MsWindows driver running under QEMU, so I suspect the device is simply broken, but the driver is correct for this device. The second dongle (0x07d0:4959) is even funnier because there's only one Interrupt IN EP which however is unused - all transfers go through EP 0. For this one I do know how to set the baud rate and other properties, it's done with an 8 byte packet sent to EP0, with bRequestType set to 0x21, bRequest set to 0x09, wValue set to 0x0200 and wIndex set to 0x0001. The contents of the packet are as follows: byte 1: Baud rate bits 0-7 byte 2: Baud rate bits 8-15 byte 3: Baud rate bits 16-23 byte 4: Baud rate bits 24-31 byte 5: Bit 7: reset, Bit 4: parity, Bit 3: stop bit, Bits 0-2: number of data bits minus 5 bytes 6-8: unidentified (sometimes zero). Maybe the same way would work for those other devices? Cheers, Andrzej ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel