Solved

Programing a modem

Posted on 1998-09-18
4
244 Views
Last Modified: 2012-05-04
How can I program a modem for file transmision and other data (name of directories, changing directories and so on) in Visual C 5++?
What kind of error corection algorithm is used?
0
Comment
Question by:lucinext
  • 4
4 Comments
 
LVL 11

Accepted Solution

by:
alexo earned 100 total points
ID: 1173096
You have two possible solutions.

1) Write a Winsock program.  This uses TCP/IP for the transport but can be transparently encapsulated by a serial protocol (PPP) using the dial-up network.

2) Use the serial functions:  Call CreateFile() with a "COMx" argument (x = number of serail port) to open the port, ReadFile() and WriteFile() to receive/send data, etc.  To modify the port and communications parameters use SetCommState(), BuildCommDCB(), SetCommConfig(), etc.  To monitor communication events use SetCommMask() and WaitCommEvent().  Search your online help for "Using the Communications Functions" for some sample code and see the COMM sample application that comes on your C++ CD.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1173097
Oh, the error codderction algorithm is usually V.42bis but it is handled transparently by the modem.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1173098
Oops, sorry.  V.42bis (or MNP5) is the compression.  V.42 is the error correction.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1173099
And the autograder hits again!  Thank you so much for your consideration.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now