470,594 Members | 1,560 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

What is the library in .net that deal with the modem

Amr
Hi
i need a library to deal with the modem, cause i have to make an application
that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)

Nov 16 '05 #1
5 1936
"Amr" <Am*@discussions.microsoft.com> wrote in message news:5B**********************************@microsof t.com...
i need a library to deal with the modem, cause i have to make an application
that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)


Current versions of .NET do not have built-in support for working with the modem
via the serial port (COM1, etc.) so you must either use a third-party library or write
your own in unmanaged Win32 code and then invoke it through P/Invoke.

Whidbey (.NET 2.0) is supposed to feature greater managed support for working
with a serial port, through the SerialPort class (with related types and event handlers)
in the System.IO.Ports namespace, which [preliminarily] looks like this,

http://msdn2.microsoft.com/library/tf8zk72w.aspx

When speaking to a modem, you'll most likely need to send Hayes (AT) commands
to the serial port yourself, e.g.,

ATDT5551234

to dial; and then interpret the verbose response strings like RING and BUSY.
Derek Harmon
Nov 16 '05 #2
Amr,

There is nothing in .NET that deals with the modem in a completely
managed way. In order to do this, you will have to use the RAS API
functions through the P/Invoke layer.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Amr" <Am*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
Hi
i need a library to deal with the modem, cause i have to make an
application
that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)

Nov 16 '05 #3
Hi,

I do really suggest you write this in VC++.

We have written a dialer in c# using the unmanaged RAS api & all
I can say is never again. Alot of time is waisted getting the
structures
to map correctly & we had big problems with the GC.

David

Nov 16 '05 #4
Another option for you would be to use ActiveX automation with HyperACCESS
(the commercial version of HyperTerminal). This is a mature ActiveX API
that is quite easy to work with (although lacking in any C# examples). Of
course, HyperACCESS has to be installed on all client machines, which may
not be a good thing for you.

--Bob

"Amr" <Am*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
Hi
i need a library to deal with the modem, cause i have to make an
application
that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)

Nov 16 '05 #5
The VB Resource kit has the Sax.Net serial communication component community
edition
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

"Derek Harmon" <lo*******@msn.com> wrote in message
news:e7**************@TK2MSFTNGP14.phx.gbl...
"Amr" <Am*@discussions.microsoft.com> wrote in message news:5B**********************************@microsof t.com...
i need a library to deal with the modem, cause i have to make an application that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)


Current versions of .NET do not have built-in support for working with the

modem via the serial port (COM1, etc.) so you must either use a third-party library or write your own in unmanaged Win32 code and then invoke it through P/Invoke.

Whidbey (.NET 2.0) is supposed to feature greater managed support for working with a serial port, through the SerialPort class (with related types and event handlers) in the System.IO.Ports namespace, which [preliminarily] looks like this,

http://msdn2.microsoft.com/library/tf8zk72w.aspx

When speaking to a modem, you'll most likely need to send Hayes (AT) commands to the serial port yourself, e.g.,

ATDT5551234

to dial; and then interpret the verbose response strings like RING and BUSY.

Derek Harmon

Nov 16 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kees Bakelaar | last post: by
2 posts views Thread by Etienne Labuschagne | last post: by
1 post views Thread by Etienne Labuschagne | last post: by
8 posts views Thread by Andrew Poulos | last post: by
17 posts views Thread by Franc Zabkar | last post: by
3 posts views Thread by Nutshell | last post: by
2 posts views Thread by muruganyuva | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.