Hello,
I'm on a new project testing the limitations of transfer speeds. We may be able to get by with full speed at 1.2MB/s, but we want to test it with our device and what we can get.
I was able to do a bulk transfer from Jan's software:winusb_cs to the board.
What I don't get is how I'm supposed to send a transfer from the board to Jan's software.
I did 1,200,000/64 approximately equals 17,000. So I figured every 1/17,000th of a second to send a 64 byte packet?
Every 1/17,000th of second
I tried:
INPacket[0]=0x81;
int i;
for(i=1;i<64;i++)
INPacket='a';
USBGenWrite(USBGEN_EP_NUM,(BYTE*)&INPacket,64);
It didn't work, the bulk transfer received was only a single 64 byte packet.
I also tried looping to send 17,000 packets once every second:
for(i=1;i<170000;i++)
USBGenWrite(USBGEN_EP_NUM,(BYTE*)&INPacket,64);
So my two questions are:
A) What should I be doing right?
B) Should I forget this and just jump straight to high speed to begin with if full speed barely is good enough for my specs?