| Author |
Message |
|
leonghl
|
Post subject: PIC18F USB Device respond time Posted: Wed Mar 07, 2012 7:15 pm |
|
Joined: Wed Nov 23, 2011 4:37 am Posts: 4
|
|
hello Simon, i would like to ask is it any way to test the PIC18F USB Device respond time, i mean the time taken of PC send a command to the device until the device respond to the command and send data back to PC.
|
|
 |
|
 |
|
Simon Inns
|
Post subject: Re: PIC18F USB Device respond time Posted: Wed Mar 07, 2012 7:47 pm |
|
Joined: Thu Apr 01, 2010 6:23 am Posts: 898
|
|
The easiest way is probably to set up a timer in the host C# software, perform a command and then display the timer result. If you do it over 100 commands or so then it should give you a good average.
|
|
 |
|
 |
|
leonghl
|
Post subject: Re: PIC18F USB Device respond time Posted: Thu Mar 08, 2012 7:23 pm |
|
Joined: Wed Nov 23, 2011 4:37 am Posts: 4
|
|
thank you for reply Simon. Beside set up a timer in C#, do you know is it any software to test the respond time with plotting graph function?
|
|
 |
|
 |
|
Simon Inns
|
Post subject: Re: PIC18F USB Device respond time Posted: Thu Mar 08, 2012 7:59 pm |
|
Joined: Thu Apr 01, 2010 6:23 am Posts: 898
|
|
I don't know of any, however I believe wireshark can perform some USB logging. It may be possible to dump the USB communication using wireshark and then get the timing intervals from the output?
|
|
 |
|
 |
|