From: Stephen W. <sa...@ge...> - 2004-02-24 04:57:01
|
On Mon, 2004-02-23 at 15:59, Roger Binns wrote: > > I'll do something. If I can keep the hack limited to com_sanyo5500, I > > may check it in. > > Ideally I would like a generic solution that can work for all phones. > So far I don't have a solution that works for ANY phone! I made a version of sendpbcommand in com_sanyo5500 that seems to get around timeouts. I simply rewrite the output packet and wait for the reply again. This can work for the sanyo phones since there are no init and nextentry as there are for the LG phones. > > > How do I get the bulk limit? When I was trying the Sanyo 4900 using > > libusb, things would seem to happen in 64 byte chunks. It also always > > eventually timed out on me. > > It is wMaxPacketSize in an endpoint descriptor. This is from an AudioVox > 8900. > > Endpoint Descriptor: > bLength 7 > bDescriptorType 5 > bEndpointAddress 0x83 EP 3 IN > bmAttributes 2 > Transfer Type Bulk > Synch Type none > wMaxPacketSize 64 > bInterval 0 > T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 9 Spd=12 MxCh= 0 D: Ver= 1.01 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0474 ProdID=0701 Rev= 0.00 S: Manufacturer=SANYO Electric Co. Ltd. S: Product=SANYO USB Phone S: SerialNumber=Serial Number C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=32ms I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I think the Sanyo 5500 is also 64 characters. Stephen > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Bitpim-devel mailing list > Bit...@li... > https://lists.sourceforge.net/lists/listinfo/bitpim-devel |