USB Speed


Closed Thread
Results 1 to 6 of 6

Thread: USB Speed

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    33

    Thumbs up

    Hi Darrel, your program is great.
    I try it in two ways:

    First: i kept the same program in the PIC, (i must send a packet from the PC then the PIC reply), so i run my program and yours since the 2 programs can see the packets together.. anyway the 2 programs wrote the same values, same speed about 340 packets/s.

    Second: i changed the PIC program and make it sending packets alone (as you asked) with no delays, just send in a true loop, your program gave me values between 514 and 526 packets/s...

    What do you think about it, why i didn't reach 680 packets/s ... i am new with USB, maybe you have better explications... Thank you very much.

    Anyway to have better speed which method i must use ( let's say i need about 1000 packets/s), don't worry about the PIC because there is nothing to do it is just a USB to CAN converter, so once the USB packet arrived: the PIC send it throw CAN .....


    Thank you again.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    USB <--> CAN

    High speed CAN operates at 1Mbaud, or about 125k bytes/sec. HID will never keep up with that.

    I've heard that CDC is faster than HID. But I've yet to try it.

    Squibcakes has an example for CDC ...

    USB CDC Communications for Dummies!
    http://www.picbasic.co.uk/forum/showthread.php?t=5806

    DT

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 14:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 21:17
  3. USB Speed
    By Rony in forum General
    Replies: 0
    Last Post: - 21st August 2008, 23:15
  4. Replies: 14
    Last Post: - 26th September 2007, 06:41
  5. Speed of USB EasyHID and Time problem
    By sjohansson in forum USB
    Replies: 10
    Last Post: - 18th January 2007, 23:21

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts