Alan Stern wrote:
On Tue, 16 May 2006, aermongk wrote:
I check the "wMaxPacketSize", it is already set to 64 when the
probe function is called. Is there anything that I could do to
enhance the performance.
Which wMaxPacketSize did you check? Is it the value for endpoint 0 or the
value for one of the bulk endpoints?
I browse at the driver code, endpoint 0 is for control (setting
registers in the device)
and endpoint 1 is for data transmission/reception. I looked at both
endpoints and both
are set to 64.
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=2001 ProdID=3c00 Rev= 0.01
S: Manufacturer=ANI
S: Product=802.11g WLAN Adapter
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=300mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtusb
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
According to this, the MxPS value for endpoint 1 is 512. Not 64.
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
^^^^^^^
How about this value? Isn't this is what configured on the device?
I did a printk of this value for both endpoint 0 and 1 right at the
beginning of probe function and the values are 64. That was the reason
that I mentioned 64. I did try to increase the value to 256, again
from inside probe function, but it didn't help.
BTW, I also tried usbmon as you'd suggested. Do you mind looking at
the files that I've captured? If you don't mind I will send to you
directly. There are 3 files that I captured - one for channel 6,
one for channel 11, and last is chan 6 and 11 running simultaneously.
The first 2 files are ~575K and last is ~1.12M. I am still trying
to figure out the values produced by usbmon and what are these
timings meant. You probable can spot problem much faster than I do.
Please let me know if I can sent to you.
I do appreciate everyone taking time to response.
Thanks and regards,
Adisorn.
Alan Stern
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users