Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: SAM3U USB Benchmark device for libusbK
PostPosted: Sun Feb 26, 2012 5:02 am 
Offline

Joined: Sat Feb 25, 2012 11:21 pm
Posts: 5
I have written some benchmark code for the SAM3U-EK board based on the code from AT91 USB core, Travis Robinson's PIC firmware code and Dean Camera's AVR (LUFA Library) code.

I give the result of some of the tests here and I'm wondering if someone else have done some speed test and can share the results?

Windows USB benchmark software is kBench for libusbK and drivers are generated by libusbK-inf-wizard.

http://libusb-win32.sourceforge.net/libusbKv3/index.html


Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Sun Feb 26, 2012 5:03 am 
Offline

Joined: Sat Feb 25, 2012 11:21 pm
Posts: 5
Code:

4096 Byte write buffert


Read Test Information
        Driver          : libusbK
        Read Size       : 4096
        Write Size      : 4096

Bulk Read (Ep81h) max packet size: 512
        Total Bytes     : 51437568
        Total Transfers : 12558
        Avg. Bytes/sec  : 8572928.00      8.18 MBps
        Elapsed Time    : 6.00 seconds

Interrupt Read (Ep81h) max packet size: 512
        Total Bytes     : 19927040
        Total Transfers : 4865
        Avg. Bytes/sec  : 2859382.98      2.70 MBps
        Elapsed Time    : 6.97 seconds


Isochronous Read (Ep85h) max packet size: 256
        Total Bytes     : 28442624
        Total Transfers : 434
        Avg. Bytes/sec  : 2047557.70      1.95 MBps
        Elapsed Time    : 13.89 seconds

Isochronous Read (Ep81h) max packet size: 512
        Total Bytes     : 28514816
        Total Transfers : 6962
        Avg. Bytes/sec  : 4091665.38      3.90 MBps
        Elapsed Time    : 6.97 seconds

Isochronous Read (Ep85h) max packet size: 1024
        Total Bytes     : 65339392
        Total Transfers : 997
        Avg. Bytes/sec  : 8200224.90      7.82 MBps
        Elapsed Time    : 7.97 seconds




Write Test Information
        Driver          : libusbK
        Read Size       : 4096
        Write Size      : 4096

Bulk Write (Ep02h) max packet size: 512
        Total Bytes     : 57966592
        Total Transfers : 14152
        Avg. Bytes/sec  : 8280941.71      7.89 MBps
        Elapsed Time    : 7.00 seconds

Interrupt Write (Ep02h) max packet size: 512
        Total Bytes     : 17199104
        Total Transfers : 4199
        Avg. Bytes/sec  : 2873701.59      2.74 MBps
        Elapsed Time    : 5.99 seconds

Isochronous Write (Ep06h) max packet size: 256
        Total Bytes     : 36810752
        Total Transfers : 8987
        Avg. Bytes/sec  : 2048683.88      1.95 MBps
        Elapsed Time    : 17.97 seconds

Isochronous Write (Ep02h) max packet size: 512
        Total Bytes     : 32739328
        Total Transfers : 7993
        Avg. Bytes/sec  : 4092416.00      3.90 MBps
        Elapsed Time    : 8.00 seconds

Isochronous Write (Ep06h) max packet size: 1024
        Total Bytes     : 65208320
        Total Transfers : 995
        Avg. Bytes/sec  : 8199210.36      7.82 MBps
        Elapsed Time    : 7.95 seconds


Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Sun Feb 26, 2012 5:04 am 
Offline

Joined: Sat Feb 25, 2012 11:21 pm
Posts: 5
Code:

65536 Byte write buffert


Read Test Information
        Driver          : libusbK
        Read Size       : 65536
        Write Size      : 65536

Bulk Read (Ep81h) max packet size: 512
        Total Bytes     : 145620992
        Total Transfers : 2222
        Avg. Bytes/sec  : 20847672.44      19.88 MBps
        Elapsed Time    : 6.99 seconds

Interrupt Read (Ep81h) max packet size: 512
        Total Bytes     : 39190528
        Total Transfers : 598
        Avg. Bytes/sec  : 3937559.33      3.75 MBps
        Elapsed Time    : 9.95 seconds



Write Test Information
        Driver          : libusbK
        Read Size       : 65536
        Write Size      : 65536

Bulk Write (Ep02h) max packet size: 512
        Total Bytes     : 112656384
        Total Transfers : 1719
        Avg. Bytes/sec  : 18823121.80      17.95 MBps
        Elapsed Time    : 5.99 seconds

Interrupt Write (Ep02h) max packet size: 512
        Total Bytes     : 27721728
        Total Transfers : 423
        Avg. Bytes/sec  : 3987016.83      3.80 MBps
        Elapsed Time    : 6.95 seconds



Isochronous mode have the same numbers as for the 4096 byte test





Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Sun Feb 26, 2012 5:06 am 
Offline

Joined: Sat Feb 25, 2012 11:21 pm
Posts: 5
Code:

4096 Byte buffert

Loop Test Information
        Driver          : libusbK
        Read Size       : 4096
        Write Size      : 4096


Bulk Read (Ep81h) max packet size: 512
        Total Bytes     : 45989888
        Total Transfers : 11228
        Avg. Bytes/sec  : 6585035.51      6.28 MBps
        Elapsed Time    : 6.98 seconds

Bulk Write (Ep02h) max packet size: 512
        Total Bytes     : 45989888
        Total Transfers : 11228
        Avg. Bytes/sec  : 6585035.51      6.28 MBps
        Elapsed Time    : 6.98 seconds


Interrupt Read (Ep81h) max packet size: 512
        Total Bytes     : 21872640
        Total Transfers : 5340
        Avg. Bytes/sec  : 2434350.58      2.32 MBps
        Elapsed Time    : 8.98 seconds

Interrupt Write (Ep02h) max packet size: 512
        Total Bytes     : 21872640
        Total Transfers : 5340
        Avg. Bytes/sec  : 2434350.58      2.32 MBps
        Elapsed Time    : 8.98 seconds


Isochronous Read (Ep81h) max packet size: 512
        Total Bytes     : 57188352
        Total Transfers : 13962
        Avg. Bytes/sec  : 4093947.46      3.90 MBps
        Elapsed Time    : 13.97 seconds

Isochronous Write (Ep02h) max packet size: 512
        Total Bytes     : 57188352
        Total Transfers : 13962
        Avg. Bytes/sec  : 4093947.46      3.90 MBps
        Elapsed Time    : 13.97 seconds




Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Sun Feb 26, 2012 5:07 am 
Offline

Joined: Sat Feb 25, 2012 11:21 pm
Posts: 5
Code:

65536 Byte buffert


Loop Test Information
        Driver          : libusbK
        Read Size       : 65536
        Write Size      : 65536


Bulk Read (Ep81h) max packet size: 512
        Total Bytes     : 99352576
        Total Transfers : 1516
        Avg. Bytes/sec  : 14256360.45      13.60 MBps
        Elapsed Time    : 6.97 seconds

Bulk Write (Ep02h) max packet size: 512
        Total Bytes     : 99352576
        Total Transfers : 1516
        Avg. Bytes/sec  : 14256360.45      13.60 MBps
        Elapsed Time    : 6.97 seconds

Interrupt Read (Ep81h) max packet size: 512
        Total Bytes     : 31064064
        Total Transfers : 474
        Avg. Bytes/sec  : 3913336.36      3.73 MBps
        Elapsed Time    : 7.94 seconds

Interrupt Write (Ep02h) max packet size: 512
        Total Bytes     : 31064064
        Total Transfers : 474
        Avg. Bytes/sec  : 3913336.36      3.73 MBps
        Elapsed Time    : 7.94 seconds


Isochronous mode have the same numbers as for the 4096 byte test




Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Thu May 10, 2012 7:13 am 
Offline

Joined: Mon May 07, 2012 5:50 pm
Posts: 2
Hi,

I am trying to do a usb program using SAM3u4E mcu. I am recieving the packets to control endpoint but not on other endpoints. I have configured ep0 and 1 as bulk in endpoint. Although the windows driver is sending an IN packet none of the ports are responding ie.. interrupt is not getting generated. Is that becuase I need to poll for a IN packet on these ports?? Can u share the sample code for the same. I am also using at91 lib.


Top
 Profile  
 
 Post subject: Re: SAM3U USB Benchmark device for libusbK
PostPosted: Wed Jul 18, 2012 5:32 am 
Offline

Joined: Wed Jul 18, 2012 5:23 am
Posts: 1
Dear Tony,
I am using custom SAM3U4E MCU board (similar to SAM3U-EK) however when using the provided generic HID transfer example the maximum transfer speed I get is 128 KBytes/s. The speed is achieved by polling interval of 1ms and report size of 128 Bytes. I can't seem to specify anything less then 1ms or anything higher than 128 Bytes. Could you share the test firmware and windows app you developed?

Thanks!
Vahagn


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: