471,337 Members | 1,041 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

C#; Talking to a Modem; Dialing a number

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.../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.
Feb 18 '06 #1
2 3861
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?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Simon T." <Simon T.@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
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.../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.

Feb 19 '06 #2
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.

"C.C. (aka Me)" wrote:
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?

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Charles Cox
VC/VB/C# Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Feb 20 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mark Relly | last post: by
3 posts views Thread by Clemens Chiba - Greentube I.E.S. AG | last post: by
5 posts views Thread by Cc | last post: by
reply views Thread by gad | last post: by
2 posts views Thread by gad | last post: by
1 post views Thread by vgonepudi | last post: by
reply views Thread by Kemo | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.