C#; Talking to a Modem; Dialing a number

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello All,

I am new to C# and the .NET framework, so please forgive and pity me if the
question and understand reveals massive ignorance.

I am trying to get SerialPort talking to a "Standard 19200bps" modem written
in C# using Visual Studio 6.0 (.NET 2.0 ). It is not working. The modem
refuses to acknowledge the AT commands I have been sending e.g. simple
dialing command like "ATDT008816000610"

I have been reading up "Coad's Code" on serial port. Great material! Cool
stuf!! But, I am unable to get the modem talking with his software example.
http://msmvps.com/blogs/coad/archive/2005/03/23/39466.aspx

I have even tried a VB RS-232 test by "Oleg ANDRISAN" with no luck
http://www.freevbcode.com/ShowCode.asp?ID=4666

I was, however, ABLE to communicate with the modem in Java environment. I
was using the example at
http://www.daniweb.com/techtalkforums/thread14224.html written by
"atul_manaskar" using the javax.comm library

What am I overlooking if it is not the baudrate, databits, stopbits, or
parity? What is it that Java is doing correctly which .NET (C#/VB) is not
doing?

This is getting frustrating. Any suggestions are very much welcomed and
appreciated.

Thank you All.

Cheers,
Simon T.
 
Can you post the code that is not working here? Maybe just create a very
simple app that see if you can get a response from a simple modem reset
command?
 
Hello Charles,

I will give "it" one more shot before I post the code. This time using a
null modem to see what is being send out through the serial port in .NET vs.
Java enviroment I will keep you informed. Thank you for the reply.


Simon T.
 
Back
Top