sbennetts
asked on
Using the MSCOMM control with VB
Hi
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?
Regards
Simon.
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?
Regards
Simon.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
sbennetts
Indeed that is correct, it should then fire when you have a full 24 byte bunch of data.
Tim.
Indeed that is correct, it should then fire when you have a full 24 byte bunch of data.
Tim.
ASKER
Simon.