ο»ΏUSB Slave Transmit Time
Posted: Sun Apr 26, 2009 9:43 pm
ο»ΏI have been measuring the transmit time for the USB Slave by using β€GetTickCount’ or β€TimeGetTime’ in the Delphi program IE:-
StartT:= TimeGetTime; // or GetTickCount
lRetVal := ECIO_Transmit(bDataOut,TxLen,@nTxDataCnt,bDataIn,32,@nRxDataCnt,50);
EndT:= TimeGetTime; // or GetTickCount
Some.Text:= IntToStr(EndT - StartT); //ms - write to a text box
(To use β€TimeGetTime’ place MMSystem in the β€uses’ section at the top of the document).
Something similar sould apply to the β€VB’ program.
The addition of an acknowledge β€Send Macro’ in the Flowcode after it has recieved data reduces the transmit time to less
than 1ms. The β€Send Macro’ can be a byte or string with the same effect.
The time measured for a data transmit without acknowledge was 78ms - Time Out of 50ms + 28ms. Where did the 28ms go?
StartT:= TimeGetTime; // or GetTickCount
lRetVal := ECIO_Transmit(bDataOut,TxLen,@nTxDataCnt,bDataIn,32,@nRxDataCnt,50);
EndT:= TimeGetTime; // or GetTickCount
Some.Text:= IntToStr(EndT - StartT); //ms - write to a text box
(To use β€TimeGetTime’ place MMSystem in the β€uses’ section at the top of the document).
Something similar sould apply to the β€VB’ program.
The addition of an acknowledge β€Send Macro’ in the Flowcode after it has recieved data reduces the transmit time to less
than 1ms. The β€Send Macro’ can be a byte or string with the same effect.
The time measured for a data transmit without acknowledge was 78ms - Time Out of 50ms + 28ms. Where did the 28ms go?