LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-03-2004, 11:04 AM   #1
jardun
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Modem Quick Answer


I'm trying to write a modem server (in C on Linux) that sits on /dev/ttyS0 and answers incoming calls. Using the Hayes AT commands, the best I can seem to get is for the modem to pick up after 1 complete ring, yet I notice when I dial ISP's they pick up immediately before any ring takes place.

So far all I can find is to set the modem's S-registers such that it picks up on first ring (really AFTER first ring) when the modem sends the "RING" string up the line. Using this means that it takes at least 12 seconds from then the client dials to when the host picks up. When the client dials an ISP it takes more along the lines of 6 seconds and the host picks up before a ring has completed. How (probably in general terms) do I get my program/modem to do that? Is there some way to test the lines and actually detect a ring before the modem send "RING" up the line?

Thanks,

Justin Manning
 
Old 08-05-2004, 10:41 PM   #2
james.zhang
LQ Newbie
 
Registered: Feb 2004
Location: China Hunan
Posts: 9

Rep: Reputation: 0
You can use AT cmd to set the modem to answer automatic
It will take less 2 seconds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
quick answer sailu_mvn Programming 2 03-10-2005 10:27 PM
Quick question most of you could answer vdogvictor VectorLinux 6 06-10-2004 02:37 PM
Just started and need a quick answer nny0000 Programming 7 01-09-2004 02:49 PM
Need a quick answer to a dumb question Bateluer Linux - Newbie 1 09-13-2003 08:11 AM
Quick and easy answer please Jimbo Mahoney Linux - General 4 11-20-2001 02:44 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration