USB-Serial adpater and normal serial communication
-
Hi friends, I have an application built using VC++ 6.0 . In these we incorporate serial communication using rs-232 serial port and also thru USB-Serial adapater Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial Now can u please tell me how to find whether the application is running thru USB-Serial or Normal Serial port.
-
Hi friends, I have an application built using VC++ 6.0 . In these we incorporate serial communication using rs-232 serial port and also thru USB-Serial adapater Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial Now can u please tell me how to find whether the application is running thru USB-Serial or Normal Serial port.
Veeresh Hiremath wrote:
Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial
Why do you need to do such a thing ? :confused: That sounds very strange. Your applications (on both sides) should never be dependent on the time needed to transmit the data on the link (it can be unreliable). Anyway, with windows, you won't be able to have a precision under 10 or 15 msec as windows is not a real-time operating system. Maybe if you describe more in detail your problem we can help you to find another solution (please, describe it with keeping in mind that we don't know your app and that we cannot see your screen).
Cédric Moonen Software developer
Charting control