2013-10-04 04:14 AM
Hi all ! I did a device using the STM32f103, managed by a GUI from windows PC. I did my protocol and so on. STM32, after any command, answers with an ACK. Then the PC sends the following command and so on. Now, doing a test about the communication speed, I noted that when the PC receives an ACK, waits about 15 ms, and then sends the following message. I did the GUI using VB. Than I tried to use the C++. the results is the same. Anytime Windows introduces this wait. Is this a problem due by Windows or the VCP_V1.3.1 ?? There is possibility to send commands faster, with no waits ? I am looking for the faster USB communications for STM32F103 ! Thanks for all !!
#usb-stm32 #vcp-stm32-usb2013-10-04 04:49 AM
So are you sure the latency is in the send path?
2013-10-07 07:24 AM
2013-10-07 08:42 AM
Sounds like you're asking the OS (WIN32) for too much data from the serial port, or have too large a receive timeout.
My point before was that the lag was not related to the ''Send Path'', the ability to send data too the device (outbound) both quickly and rapidly, and probably not the repressiveness to data once received by the application, but rather how you attempt to get data from the OS and it's buffering. ie in the ''Receive Path'' side of the communications from the PC perspective.