Using the MSCOMM control with VB
Posted on 2003-11-25
I'm working with a handheld device at present that has a serial connection to enable the download of information from the device to a PC. Having programmed the device to send the data that is collected, I'm not looking at the PC app to collect that data.
I have used HyperTerminal for a basic check to ensure some data is being passed from the device through the COM port to the PC and everything 'looks' ok there.
My problem is that when I try to use the MSCOMM control, for some reason as data is sent from the device, it doesn't seem to raise an onComm event and therefore I'm unable to effectively grab the data. If is have a loop just waiting for MSComm1.Input, I get some data back.
What am I doing wrong? Any ideas?