-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mohan V schrieb:
|
| Hello All,
|
| I am using usbser.sys(Windows Host) and generating Virtual COM port.
| My device side application writes 2000 bytes to that port. The host side
| application reads some data, comes out of read and parses the first 2
| bytes to get the actual length of data to read, and then issues a read
| call with that much amount of data to read. But the application is able
| to read only 56/59 bytes of data and getting transmission timeout from
| the device side driver. The transmission timeout is 5secs in the write
| routine of device side driver.
|
| Is it because the host side appln. is coming out of read and issuing one
| more read? Doesn't the host buffer the data?
|
| Also i wanted to know if a full speed device wants to transfer data
| whose size is greater than max packet size of bulk endpoint(64 bytes in
| this case), does the device has to wait for IN packet from the host
| after every 64 bytes of transfer?
You can queue a URB transfer with 2000 and more bytes. If the device
sends a packet smaller than max packet size your bulk will return with
the actually received bytes, if it sends a packet  with max packet size
the host controller is waiting for another bulk and stores it in your
buffer until he'll received a packet smaller than max packet size.

I hope i could help.

best regards,
Sebastian Haas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB5jTipqRB8PJG7XwRAjK/AJ9lWAKXxDtSMobbgoevbilAuxawXQCfYa9W
JctPxa2b97c+swVtRxFO01k=
=wBho
-----END PGP SIGNATURE-----


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to