|
I am using xferdata only for in and out transcation.
I am using 8 bytes buffer only for both bulk in and out endpoints buffer. but these buffers
are updated after every trascation. and these are used in a loop of 100 * 100 see this.
byte[] data = new byte[8];
int tests = 0;
for (int i = 1; i <= 100; i++)
{
for (int j = i+1; j <= 100; j++)
{
tests++;
AminTest(i, j);
}
}
private bool AminTest(int p1, int p2)
{
-----------------------------
data[1] = (byte)OMIfirstpincardno;
data[2] = tempbyte1;
data[3] = (byte)OMIsecondpincardno;
data[4] = tempbyte1;
data[5] = 0xFC; // 1111 1100
data[6] = 0x00;
DateTime dt = DateTime.Now;
outEndpoint.XferData(ref data, ref len);
inEndpoint.XferData(ref data, ref len);
//Console.WriteLine("{0},{1}: {2}", p1, p2, (DateTime.Now - dt).TotalMilliseconds);
if (data[1] == 0)
return true;
else if (data[1] == 255)
return false;
return false;
}
Now one more thing I have experienced.
with pc core 2 duo with xp , I get 15 miliseconds delay after every 60th test.
but with higher pc with win7 , I get 0 or 1 miliseconds delay on every test.
file of usb result are attached.
take a look at it and help me.
how can i watch usb bus activity any good software. plz.
|