Connecting to modem through code

M

Mota

Hi;
I want to send an AT command (one of a Hayes Command set) to my
modem(installed on Com3)and verify its returned answer,and if the answer is
OK(in ready-to-use condition the answer is ok) ,ask it to dial a
number,using this command:ATDT12345678.
When i use: Open "Com3" For Random As #1 ,a "Device I/O Error" occures,and
in addition,i dont know how to read the returning answer from com3.
Using Windows HyperTerminal,I do this simply and it shows there is no
problem in hardware.
So my problem is to connect to com3 directly and without MSComm Activex
control(that has in turn some limitations in properties and methods),and
reading the answer from it,after sending a command.
Can anyone please help me to do that?
I will be so grateful to you and thank you so much in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top