Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > WinUSB large data question

Reply
Thread Tools Display Modes

WinUSB large data question

 
 
Kid
Guest
Posts: n/a

 
      07-05-2010
hi

Can we use virtual memory or file mapping view buffer for WinUSB ? How can
we send large data more than gigabytes to USB device ?

Thank for your teaching .

 
Reply With Quote
 
 
 
 
Simon Richter
Guest
Posts: n/a

 
      07-05-2010
Hi,

On 2010年07月05日 06:23, Kid wrote:

> Can we use virtual memory or file mapping view buffer for WinUSB ? How can
> we send large data more than gigabytes to USB device ?


I think setting up transfer requests of this size is a bad idea;
instead, just set up a loop that submits the data in handy chunks.

Simon

 
Reply With Quote
 
Kid
Guest
Posts: n/a

 
      07-06-2010
What is the max buffer size do you suggest ?


"Simon Richter" wrote:

> Hi,
>
> On 2010年07月05日 06:23, Kid wrote:
>
> > Can we use virtual memory or file mapping view buffer for WinUSB ? How can
> > we send large data more than gigabytes to USB device ?

>
> I think setting up transfer requests of this size is a bad idea;
> instead, just set up a loop that submits the data in handy chunks.
>
> Simon
>
> .
>

 
Reply With Quote
 
Simon Richter
Guest
Posts: n/a

 
      07-06-2010
Hi,

On 2010年07月06日 08:16, Kid wrote:

> What is the max buffer size do you suggest ?


I use two buffers of 1500 bytes each, that is, I prepare the next buffer
while the current one is transferring. Depending on your protocol, you
can also submit the second buffer while the first is still active; if
the first transfer fails for some reason, you will need to
resynchronize, but this way, you can keep the bus fully saturated.

Smaller buffers than 1500 bytes will hurt performance. Larger buffers
are generally okay, but they should be in the order of kilobytes (64kB
would be a good value if you are just copying data around).

Simon

 
Reply With Quote
 
Doron Holan [MSFT]
Guest
Posts: n/a

 
      07-06-2010
IIRC, the USB host controller will chunk up transfers at the 3 MB boundary,
so you can easily send a large buffer to winusb. a 1 GB is rather large
though.

d

"Simon Richter" wrote in message news:i0uumq$hs7$...

Hi,

On 2010年07月06日 08:16, Kid wrote:

> What is the max buffer size do you suggest ?


I use two buffers of 1500 bytes each, that is, I prepare the next buffer
while the current one is transferring. Depending on your protocol, you
can also submit the second buffer while the first is still active; if
the first transfer fails for some reason, you will need to
resynchronize, but this way, you can keep the bus fully saturated.

Smaller buffers than 1500 bytes will hurt performance. Larger buffers
are generally okay, but they should be in the order of kilobytes (64kB
would be a good value if you are just copying data around).

Simon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move SharePoint Data Wizard Crashes Ryan Migita Windows Small Business Server 1 12-09-2009 09:47 AM
Upgrade to Vista - User Data Question? Jake Windows Vista Installation 1 10-16-2007 01:00 AM
Error 85010017 for large data synchro Angelo ActiveSync 2 07-13-2006 09:29 AM
data question SteveW ActiveSync 1 11-18-2005 11:20 PM
Re: Activsync lost data Raj Pillai ActiveSync 0 07-22-2004 07:38 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59