Faster serial port responce in VB6
Posted on 2009-12-29
I have run into an issue with the time it takes my PC to respond to a byte received over the RS232 port. I am communicating with a device over RS-232 at 1200 baud. I am rewriting an application which was written over 10 years ago in C++ for Win95. The original program waits for a 'go ahead' byte from a device and then responds with a byte telling the device what routine to run. The time from the end of the 'go ahead' byte to the start of the PC's response is about 1.5ms. I have tried using the mscomm control in VB6 to no avail. The PC's response takes approximately 35ms, whether I poll the buffer or use the OnComm event. This is too long, the device times out and does not run its routine. Is there any way to get my response out quicker?