A Modem Dailer


 
Thread Tools Search this Thread
Top Forums Programming A Modem Dailer
# 1  
Old 01-04-2002
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.
# 2  
Old 01-04-2002
If you have not seen this thread, here's a cool link on Serial Port Programming:
http://www.easysw.com/~mike/serial/serial.html
shaik786
# 3  
Old 01-05-2002
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.
# 4  
Old 01-05-2002
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
shaik786
# 5  
Old 01-07-2002
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Modem

hi folks, i am looking for a analog modem to use it with a solaris9 sparc mashine. as far as i know, solaris communicates with the modem using AT-commands. so do i need a special modem for solaris or just a modem? i am open for everything. PCI-modem, seriell modem, usb modem. what are you using? i... (1 Reply)
Discussion started by: pressy
1 Replies

2. Solaris

Is the cable you are using a null modem cable or a modem cable

Hi all, Is there any difference between a null modem cable or a modem cable ? i assume that a null modem cable is a normal cable that i used from cpu serial ports to a modem for dialup. please correct if i am wrong, thks (2 Replies)
Discussion started by: waterbear
2 Replies

3. UNIX for Dummies Questions & Answers

Modem - Test /dev/modem

Ok. I tried following the directions from some of the other threads, but I've hit a road block. I have red hat 7.3 and I installed the hcf package: hcfpcimodem-0.99lnxtbeta03042700k2.4.18_3-1rh.i386.rpm It installed ok, no errors, but I still can't get linux to find my modem. I've tried... (2 Replies)
Discussion started by: lawadm1
2 Replies

4. UNIX for Dummies Questions & Answers

modem

I have got Suse 8.0 by using a modem (US Robotics 56K Faxmodem Ext). During connection i got the error 16. I tried it under RedHat and Mandrake too.....same problem. What can i do ? Thanx...a lot... Logfile: SuSE Meta pppd (smpppd), Version 0.73 on zuhause. wwwoffle not is running ... (1 Reply)
Discussion started by: Pennywize
1 Replies

5. UNIX for Dummies Questions & Answers

connecting a modem

Dear All , I have RH 7.1 , want to connect a creative modem to it . Can you explain to me the basic steps , or command ? Is there a control panel that i use to define it ?? Thanks (1 Reply)
Discussion started by: tamemi
1 Replies

6. UNIX for Dummies Questions & Answers

Modem

Pleaseee... Helpppp.... !!! I am using SCO Open Server 5.05. Recently, i have upgraded the system which means transfer all apps and data to the new system. Everything work well except one thing. On my old system i have an external modem which to dial out. Now that i use the same modem on... (4 Replies)
Discussion started by: jackpotp
4 Replies

7. UNIX for Dummies Questions & Answers

Modem Volume

Specs: Dlink DFE-560EL external modem. RedHat 7.1 How do you turn off the modem volume? I am getting annoyed of it beeping everytime I use it but there is no switch on the hardware to tune down the volume. I have tried using minicom and use the following commands: ATL0 ATM0 Next, I... (2 Replies)
Discussion started by: arz
2 Replies

8. UNIX for Dummies Questions & Answers

Modem problem: "Sorry, modem is busy"

Hi! I have a little prob with dialing up to the internet... When I try connect, it says "Sorry, modem is busy"... Specs: Laptop 56K modem Slackware 8.0 Kernel 2.4.5 Cheers;) (4 Replies)
Discussion started by: satan404
4 Replies

9. UNIX for Advanced & Expert Users

Modem

I've spent enough time trying to put on work Lucent Winmodem in my armada M300 (compaq laptop) I use Mandrake 8.0 but as soon as i get connected and prompmts appears modem shutsdown. Does any one had a similar situation, solved it? cheers (2 Replies)
Discussion started by: alex blanco
2 Replies

10. UNIX for Dummies Questions & Answers

Modem on HP-UX 10.20

Hi everyone I am having some real difficulties getting a dial in modem to work on one of my HP boxes. It's a mux modem on port 7 which I have set up at 9600 baud. I can dial in, the handshakes are completed, but then it returns incoherent characters on the emulation screen. I think my dial in... (1 Reply)
Discussion started by: alwayslearningunix
1 Replies
Login or Register to Ask a Question