The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Is the cable you are using a null modem cable or a modem cable waterbear SUN Solaris 2 08-06-2005 05:00 PM
56K modem help garfunkle UNIX for Dummies Questions & Answers 1 04-13-2004 10:38 PM
Modem - Test /dev/modem lawadm1 UNIX for Dummies Questions & Answers 2 07-17-2003 10:20 AM
Modem jackpotp UNIX for Dummies Questions & Answers 4 07-11-2002 08:55 AM
Modem problem: "Sorry, modem is busy" satan404 UNIX for Dummies Questions & Answers 4 01-17-2002 12:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-04-2002
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
A Modem Dailer

I am trying to write a Modem Dialer Software on SCO unix platform. I have successfully opened /dev/tty1A port and made following port setings
[Server Side]
Input Mode = 0 ( None )
OutPut Mode = 0 ( None )
Hardware Control Mode = 8 Bits , Enable Receiver , Drop DTR when application terminates , Bi-Direction Flow Control
Disable Special Control Characters except START, STOP , VMIN , VTIME

I have successfully got a response from Modem as "OK" for both "AT" & "ATZ" commands. I have connected the Modem to my intercom line. At an other PC i am running the client software which has the same setup for port /dev/tty2A as of Server and a Modem connected at its end which in turn is connected to the intercom line

I am completely unable to transfer data from Server/Client to Clinet/Server PC. When I write "ATD phone_numberW\r" command at the client side , I am able to trace "RING" event at Server side. But after that the code goes for a toss stating at client side "NO DIALTONE" or "BUSY" or "HANGUP".

Kindly guide me the Know how of modem Programming stating
1) How to detect what Modem Make I am using?
2)What is the generic Modem Init strings?
3)What are the sequences of Command to be intiated from Client and Server side to Modem and what will be the EXPECTED responses ?
4) Are my port settings correct ?
5) How can I transfer data from PC to PC using Modems at both ends.
__________________
Regards,
Satya Prakash Prasad
Reply With Quote
Forum Sponsor
  #2  
Old 01-04-2002
shaik786
Guest
 

Posts: n/a
If you have not seen this thread, here's a cool link on Serial Port Programming:
http://www.easysw.com/~mike/serial/serial.html
Reply With Quote
  #3  
Old 01-04-2002
Registered User
 

Join Date: Jan 2002
Location: India
Posts: 111
Thanks for all your help. The material was of enough help to me. But if possible kindly guide me the sequence of COMMANDS that we need to send or operate on Modem both from Client and Server side in order to transfer data successfully.

I am not knowledgeable of the control flow that should occur. As stated earlier I have set Hardware control flow bidirection handshaking ( RTS/CTS ). Do I need to do something extra than this. I somehow have not been able to get what algorithm to use.
If possible kindly direct me with a pseudo logic right from scatch.
I would be enouhg thankful with all my heart. I seek knowledge and ready to slog it out. Kindly help me out.
__________________
Regards,
Satya Prakash Prasad
Reply With Quote
  #4  
Old 01-04-2002
shaik786
Guest
 

Posts: n/a
I've never worked on Communication with a Modem, so I can't really help you with this, though I think the link pointed in the earlier post is really helpful and with a little bit of experimenting, you can achieve what you want!

Rgds
SHAIK
Reply With Quote
  #5  
Old 01-07-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,663
Re: A Modem Dailer

Quote:
Originally posted by S.P.Prasad

Kindly guide me the Know how of modem Programming stating
1) How to detect what Modem Make I am using?
2)What is the generic Modem Init strings?
3)What are the sequences of Command to be intiated from Client and Server side to Modem and what will be the EXPECTED responses ?
4) Are my port settings correct ?
5) How can I transfer data from PC to PC using Modems at both ends.
On questions 1, 2 and 3; there is no way to detect what modem you have on a port. You need a configuration file somewhere that the program can read to find out. And each modem will have its own commands that can vary somewhat.

For question 4, your setting are very wrong indeed. If fact, I suspect that your original post contains some typos or something. Read that link that shaik786 provided again.

For question 5, take a look at uucp. This is the command that you seem to be trying to rewrite from scratch.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0