473,545 Members | 2,067 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 "ATDT0088160006 10"

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_manas kar" 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 3965
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******** *************** ***********@mic rosoft.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 "ATDT0088160006 10"

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_manas kar" 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
3422
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? Thanks
3
2996
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 additional init string of the modem (for instance if the modem does not detect the dial tone). So, how do I do this?
5
3453
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 modem dial?
7
1462
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
1073
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 the connection details to the modem log file (Modemlog.txt )?
2
1109
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 details to the modemlog.txt file? I am opening the log file and the file is empty.
5
1589
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 answers. Can someone point me in the right direction? Thanks, Brent
1
1638
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 modem. After establishing the connection I am getting a message like "Enter numeric message after beep". 1) How can I find whether connection is...
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 "ATD<number>" for tone dialing and "ATDP<number>" for pulse dialig. Then how can I pass username/password to my ISP to identify me? Or may be there...
0
7470
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7811
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7760
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5334
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4949
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3455
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1887
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 we have to send another system
0
709
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.