Solved

Programing a modem

Posted on 1998-09-18
4
251 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  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 …
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

828 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