473,500 Members | 1,661 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3958
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3408
by: Mark Relly | last post by:
I am trying to discover how to get the modem to dial a specific number? I have looked throught the winInet API and at RASDIAL but i can't see a method that would do this? Can anybody help? ...
3
2986
by: Clemens Chiba - Greentube I.E.S. AG | last post by:
Hi! If the user has no LAN connection I have to dialup to the internet in my application. This works fine, but in some case I'll have to change the phone number (if the provider changes) and the...
5
3442
by: Cc | last post by:
hi, I making a program to control modem , I had follow example from MS website on how to access serial port but still don't know how to make modem dial . Is there any example on how I could make...
7
1457
by: Just Me | last post by:
Sometimes I hear the MODEM dialing and I don't know why. Is there some way I can use VB to tell which program is causing it? I'm on a LAN so it may be a remote program. Thanks
0
1070
by: gad | last post by:
I am dialing a modem with vs2005 .net 2.0. Connection between modems is ok but windows does not write the connection details in the modem log file. Why is that? How can i force windows to write...
2
1102
by: gad | last post by:
I have a program in VS2005 that dialing to a given phone number through modem and connect to another modem. I am using the serial port and dialing with atdt command. How can i write the connection...
5
1583
by: Brent | last post by:
Hi, I want to recreate my own version of http://snakesonaplane.varitalk.com/ .. So basically I want to start with a basic, make the modem dial a number and play a soundclip to the person that...
1
1627
by: vgonepudi | last post by:
Hi, Requirement: I want to send numeric message to pager. For that I have developed an application in VC++. My application takes pager number as input and dials that number through my local...
0
248
by: Kemo | last post by:
Hi all. I am sorry for my weak English. I want to dial a modem to ISP with C#. All documentations about this I could find are based on openning serial port and sending modem commands to it like...
0
7018
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7183
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7235
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5491
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4614
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1431
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
317
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.