Re: Script to check whether modem telephone line in use --- how?
On Thu, Apr 01, 1999 at 06:42:40PM +0930, Mark Phillips wrote: Oh, and I tested out my idea for a script by using minicom. First I did atm2 OK but I couldn't hear anything. Then I did That just turns the speaker always-on while you are online. If you're not online, it does nothing. Actually, perhaps I could try atd without actually specifying a number. I wonder if this would work?? Yes it should. (And I am also curious as to why the ABORT NO DIALTONE doesn't seem to work --- I always thought it did abort, but just took its time about doing so --- ie only after it had dialed the number and waited a while. But from what Bud Rogers has said, it would seem the abort should happen straight away.) Perhaps your modem is not reporting NO DIALTONE -- make sure you have set ATX4 or so (assuming Rockwell-based modem). Hamish -- Hamish Moffatt VK3TYD. CCs of replies from mailing lists are welcome.
Re: Script to check whether modem telephone line in use --- how?
Hamish writes: Perhaps your modem is not reporting NO DIALTONE -- make sure you have set ATX4 or so (assuming Rockwell-based modem). Or perhaps it is reporting NO DIAL TONE, in which case you need to put ABORT NO DIAL TONE in your /etc/chatscripts/provider file. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
On Thu, Apr 01, 1999 at 06:42:40PM +0930, Mark Phillips wrote: [major snip] a while. But from what Bud Rogers has said, it would seem the abort should happen straight away.) Yes, it should. I don't have problems with interfering with other modems here, but there are other people using the phone. If someone else is on the line, my modem will hang up immediately without making any noises aside from the the clicks of going off hook and then back on hook. Maybe your modem doesn't understand this. I can also confirm what others have already said, that not dialing is not gaurantee that you will not crash your fathers connection. If I am on line and someone picks up the phone, the noise is often, though not always, sufficient to cause my connection to drop. HTH, Gerald
Script to check whether modem telephone line in use --- how?
This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Anyway, I don't want this to happen again, so I would like, if possible, to write a script which does nothing except listen to the modem line for a few seconds so that I can hear whether someone else is using it. I have some idea about how such a script would go, but would appreciate some input. Here is what I propose: #!/bin/bash echo atm2 /dev/ttyS1 echo ato0 /dev/ttyS1 pause 2 echo +++ /dev/ttyS1 pause 2 echo atm1 /dev/ttyS1 I'd appreciate any comments about whether this is the best way to go about this problem. Thanks, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
I think the best way is to get a 'line in use indicator' box that plugs into the phone line. A little diode lights up when the line is in use. There are also devices that you can plug into the phone jack of each phone on the line that shut that jack off if any other jack is in use, great for modem use. In the States these can be found at most electronic/phone stores for about US$5-$15. Just a thought, Brian *- On 1 Apr, Mark Phillips wrote about Script to check whether modem telephone line in use --- how? This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Anyway, I don't want this to happen again, so I would like, if possible, to write a script which does nothing except listen to the modem line for a few seconds so that I can hear whether someone else is using it. I have some idea about how such a script would go, but would appreciate some input. Here is what I propose: #!/bin/bash echo atm2 /dev/ttyS1 echo ato0 /dev/ttyS1 pause 2 echo +++ /dev/ttyS1 pause 2 echo atm1 /dev/ttyS1 I'd appreciate any comments about whether this is the best way to go about this problem. Thanks, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips wrote: This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Brian Servis writes: I think the best way is to get a 'line in use indicator' box that plugs into the phone line. or better yet, fix pon so it won't do this. I'll look into it. -- John HaslerThis posting is in the public domain. [EMAIL PROTECTED] Do with it what you will. Dancing Horse Hill Make money from it if you can; I don't mind. Elmwood, Wisconsin Do not send email advertisements to this address.
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips writes: Anyway, I don't want this to happen again, so I would like, if possible, to write a script which does nothing except listen to the modem line for a few seconds so that I can hear whether someone else is using it. I think I may have misunderstood you earlier. Your father is using a different computer with a different modem? I don't really see why your modem going off-hook should have killed his connection. Do you have his modem connected to the phone socket on your modem? -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Robert V. MacQuarrie writes: Put this is /usr/local/bin and call it ispon It isnt anything fancy but it should work for you until ppp's maintainer, Philip Hands, has time to maybe add a check into ppp itself. when run it'll simply tell you if pppd is or isn't running. pppd already locks the serial port. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Put this is /usr/local/bin and call it ispon It isnt anything fancy but it should work for you until ppp's maintainer, Philip Hands, has time to maybe add a check into ppp itself. when run it'll simply tell you if pppd is or isn't running. Woopse, I didn't explain myself clearly enough. My father is on the phone-line using a completely different computer (and modem). His computer is upstairs, connected to one phone socket. My computer is downstairs, connected to a different phone socket. My machine is running linux; his machine is running Windows 95. I hope this explains now why I was trying to write a script that would actually allow me to hear what was on the phoneline, enabling me to determine if my father was actually using it. (At the moment the only way is to physically go upstairs and check his computer/ask him.) Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
I think I may have misunderstood you earlier. Your father is using a different computer with a different modem? Yes. Different computer, different modem, different operating system, phone socket in a different room. I don't really see why your modem going off-hook should have killed his connection. Do you have his modem connected to the phone socket on your modem? No. The house is wired so there are connections to the phone-line both downstairs and upstairs. Why does pon kill his connection? Well because pon merrily walses in, spewing out phone numbers and other noise onto the line. Presumably this confuses the heck out of my father's computer causing his link to go down. (Incidently, the same happens to me when my father tries to connect while I have a ppp link running.) What I was thinking of is writing a script which will output the activity of the phoneline to my speaker for a few seconds, without actually putting anything on there, so I can check whether my father's connected without disrupting him. If there's an even neater way to do this I'd love to hear it, but this way would be much better than my present situation. Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips [EMAIL PROTECTED] writes: I hope this explains now why I was trying to write a script that would actually allow me to hear what was on the phoneline, enabling me to determine if my father was actually using it. (At the moment the only way is to physically go upstairs and check his computer/ask him.) Put ABORT NO DIALTONE in your ppp chat script. -- Bud Rogers [EMAIL PROTECTED] http://www.sirinet.net/~budr/zamm.html
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips [EMAIL PROTECTED] writes: It is already there. Here is the start of my chatscript: ABORT BUSY ABORT NO CARRIER ABORT VOICE ABORT NO DIALTONE ABORT NO ANSWER ATZ OK ATDT8222 CONNECT '' etc etc So why doesn't it work?? Hmm. Hmm. Good question. With those options in chat, it ought to pick up the phone line, see no dialtone and hear voice (really audio that is not modem carrier tones), and hang up. The most your father should hear is maybe a click when it picks up and another when it hangs up. Curious. Does it actually try to dial out while he's on the phone? -- Bud Rogers [EMAIL PROTECTED] http://www.sirinet.net/~budr/zamm.html
Re: Script to check whether modem telephone line in use --- how?
On Wed, Mar 31, 1999 at 11:41:47PM -0600, Bud Rogers wrote: Mark Phillips [EMAIL PROTECTED] writes: I hope this explains now why I was trying to write a script that would actually allow me to hear what was on the phoneline, enabling me to determine if my father was actually using it. (At the moment the only way is to physically go upstairs and check his computer/ask him.) Put ABORT NO DIALTONE in your ppp chat script. In my experience, the noise of the line being picked and up dropped by the other modem will interfere with the session -- it will almost certainly cause the modems to retrain, and may cause them to hang up. In other words, I don't think that listening for a second or two is going to make the difference. Some sort of line in use indicator would be better. Hamish -- Hamish Moffatt VK3TYD [EMAIL PROTECTED], [EMAIL PROTECTED] Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5 CCs of replies from mailing lists are welcome. http://hamish.home.ml.org
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips [EMAIL PROTECTED] writes: It is already there. Here is the start of my chatscript: ABORT BUSY ABORT NO CARRIER ABORT VOICE ABORT NO DIALTONE ABORT NO ANSWER ATZ OK ATDT8222 CONNECT '' etc etc So why doesn't it work?? Hmm. Hmm. Good question. With those options in chat, it ought to pick up the phone line, see no dialtone and hear voice (really audio that is not modem carrier tones), and hang up. The most your father should hear is maybe a click when it picks up and another when it hangs up. Curious. Does it actually try to dial out while he's on the phone? Yes, certainly does. It's always been this way. Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
On Wed, Mar 31, 1999 at 11:41:47PM -0600, Bud Rogers wrote: Mark Phillips [EMAIL PROTECTED] writes: I hope this explains now why I was trying to write a script that would actually allow me to hear what was on the phoneline, enabling me to determine if my father was actually using it. (At the moment the only way is to physically go upstairs and check his computer/ask him.) Put ABORT NO DIALTONE in your ppp chat script. In my experience, the noise of the line being picked and up dropped by the other modem will interfere with the session -- it will almost certainly cause the modems to retrain, and may cause them to hang up. When the situation is reversed (I am running ppp and my father started dialing under windows), if he stops the dialer quickly enough after hearing the noise on the line --- if he stops it before it starts dialing, he can usually get out without disrupting my ppp link. I can't do this in linux because poff takes a while to stop things whereas under windows you can stop immediately. The point then is, that in my experience, it might be possible to listen to the line without disrupting the other link. The other evidence in favour of this is that I can pick up a normal phone, listen to the link, and then put it down again --- without disrupting the ppp link. (Of course you have to keep quiet.) Oh, and I tested out my idea for a script by using minicom. First I did atm2 OK but I couldn't hear anything. Then I did ato ERROR and also tried ato0 ERROR My guess is because I hadn't actually connected anywhere via the modem, I couldn't actually go online. Anyway, I haven't been able to find a way to listen to the line. Actually, perhaps I could try atd without actually specifying a number. I wonder if this would work?? Some sort of line in use indicator would be better. I presume you mean a hardware led indicator or something like that? I could do that, though I'd prefer a software solution if there is one. (And I am also curious as to why the ABORT NO DIALTONE doesn't seem to work --- I always thought it did abort, but just took its time about doing so --- ie only after it had dialed the number and waited a while. But from what Bud Rogers has said, it would seem the abort should happen straight away.) Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them!
Re: Script to check whether modem telephone line in use --- how?
John Hasler [EMAIL PROTECTED] writes: Mark Phillips wrote: This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Brian Servis writes: I think the best way is to get a 'line in use indicator' box that plugs into the phone line. or better yet, fix pon so it won't do this. I'll look into it. You might want to look into the 'connect' program from 'http://www.caesium.fr/freeware/connect/'. It tracks multiple connect attempts so none trample over each other. I have been using it for several months now. -- Carl Johnson[EMAIL PROTECTED]
Re: Re: Script to check whether modem telephone line in use --- how?
Quoting Mark Phillips ([EMAIL PROTECTED]): On Wed, Mar 31, 1999 at 11:41:47PM -0600, Bud Rogers wrote: Mark Phillips [EMAIL PROTECTED] writes: I hope this explains now why I was trying to write a script that would actually allow me to hear what was on the phoneline, enabling me to determine if my father was actually using it. (At the moment the only way is to physically go upstairs and check his computer/ask him.) Put ABORT NO DIALTONE in your ppp chat script. In my experience, the noise of the line being picked and up dropped by the other modem will interfere with the session -- it will almost certainly cause the modems to retrain, and may cause them to hang up. That's not my experience with USR 33.6 modems and linux; the retraining, yes; hanging up, no. When the situation is reversed (I am running ppp and my father started dialing under windows), if he stops the dialer quickly enough after hearing the noise on the line --- if he stops it before it starts dialing, he can usually get out without disrupting my ppp link. I can't do this in linux because poff takes a while to stop things whereas under windows you can stop immediately. The point then is, that in my experience, it might be possible to listen to the line without disrupting the other link. The other evidence in favour of this is that I can pick up a normal phone, listen to the link, and then put it down again --- without disrupting the ppp link. (Of course you have to keep quiet.) Oh, and I tested out my idea for a script by using minicom. First I did atm2 OK but I couldn't hear anything. Then I did ato ERROR and also tried ato0 ERROR My guess is because I hadn't actually connected anywhere via the modem, I couldn't actually go online. Anyway, I haven't been able to find a way to listen to the line. Actually, perhaps I could try atd without actually specifying a number. I wonder if this would work?? Presumably you need ATH1 to go off hook. The modem speaker is not active otherwise. Some sort of line in use indicator would be better. I presume you mean a hardware led indicator or something like that? I could do that, though I'd prefer a software solution if there is one. (And I am also curious as to why the ABORT NO DIALTONE doesn't seem to work --- I always thought it did abort, but just took its time about doing so --- ie only after it had dialed the number and waited a while. But from what Bud Rogers has said, it would seem the abort should happen straight away.) This is a modem issue. When confronted by so much whistling and warbling, it probably doesn't know what to think. I guess that enough signal emerging from a particular spectrum filter is enough to convince it of a dial tone. After all, a (quite common) initial triple ringing tone before the familiar double one (in the UK) is enough to make mine think that the other end is busy, and there's nothing the software can do about it. Just a thought, but over here, a second line is quite cheap. Cheers, -- Email: [EMAIL PROTECTED] Tel: +44 1908 653 739 Fax: +44 1908 655 151 Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA Disclaimer: These addresses are only for reaching me, and do not signify official stationery. Views expressed here are either my own or plagiarised.
Re: Script to check whether modem telephone line in use --- how?
Simple solution, we have another phone downstairs ( i camp with the pc and modem upstairs). I bought myself a privacy adapter which is basically a phone splitter wich disables textension A if B is in use ( and vice versa), thus i do not get disconnected when they pick the phone up downstairs (Ahummm, well only until im told to get off the line that is ). Should solve your problem it works great only allows one line to be active, also has a led on each :). cheers Mark Phillips wrote: I think I may have misunderstood you earlier. Your father is using a different computer with a different modem? Yes. Different computer, different modem, different operating system, phone socket in a different room. I don't really see why your modem going off-hook should have killed his connection. Do you have his modem connected to the phone socket on your modem? No. The house is wired so there are connections to the phone-line both downstairs and upstairs. Why does pon kill his connection? Well because pon merrily walses in, spewing out phone numbers and other noise onto the line. Presumably this confuses the heck out of my father's computer causing his link to go down. (Incidently, the same happens to me when my father tries to connect while I have a ppp link running.) What I was thinking of is writing a script which will output the activity of the phoneline to my speaker for a few seconds, without actually putting anything on there, so I can check whether my father's connected without disrupting him. If there's an even neater way to do this I'd love to hear it, but this way would be much better than my present situation. Cheers, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them! -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: Script to check whether modem telephone line in use --- how?
Some sort of line in use indicator would be better. I presume you mean a hardware led indicator or something like that? I could do that, though I'd prefer a software solution if there is one. At your local Radio Shack, along with the LED line-in-use indicator, they also have a device that will disable your phone jack if another extension is in use. You could get two of them, one for you, one for your father, and then no one would be cutting off the other's dial in connection. How practical is it to network your computer with your dad's, and then do IP-Masquerading? Just a thought. HTH, Ken
Re: Script to check whether modem telephone line in use --- how?
Hamish Moffatt writes: In my experience, the noise of the line being picked and up dropped by the other modem will interfere with the session -- it will almost certainly cause the modems to retrain, and may cause them to hang up. This depends very much on the particular modem. The one I have now is pretty much immune to my wife picking up the phone, but my previous one dropped the connection at the slightest click. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Bud Rogers writes: The most your father should hear is maybe a click when it picks up and another when it hangs up. Curious. Does it actually try to dial out while he's on the phone? His father is using a modem, not talking. It is possible that the modem is so badly designed that it mistakes the carrier for dial tone. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips writes: Why does pon kill his connection? Pon is just simple script: #!/bin/sh /usr/sbin/pppd call ${1:-provider} Well because pon merrily walses in, spewing out phone numbers and other noise onto the line. Your modem should drop the connection when it fails to get dialtone. It is either defective or misconfigured. Try changing your modem initialization to ATX4 . -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Mark Phillips wrote: This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Anyway, I don't want this to happen again, so I would like, if possible, to write a script which does nothing except listen to the modem line for a few seconds so that I can hear whether someone else is using it. I have some idea about how such a script would go, but would appreciate some input. Here is what I propose: #!/bin/bash echo atm2 /dev/ttyS1 echo ato0 /dev/ttyS1 pause 2 echo +++ /dev/ttyS1 pause 2 echo atm1 /dev/ttyS1 I'd appreciate any comments about whether this is the best way to go about this problem. Thanks, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them! -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null I can't speak to the usability of your script, but I do know that if your father is running Windows, that still might cause problems. When I was dialing up from a Windows PC (before I was into Linux), anytime someone would pick up another phone even for a second, it would kill my connection. Dialing up from Linux I've actually survived not only a phone pick-up, but a partial number dialing.
Re: Script to check whether modem telephone line in use --- how?
Isn't this what the line: ABORT NO CARRIER should do in the chat script? On Thu, Apr 01, 1999 at 10:43:45AM +0930, Mark Phillips wrote: This morning I typed pon to dial up a ppp connection, only to hear noise on my modem to idicate that the line was already in use. I quickly typed poff, but it was too late --- I had already killed my father's connection to the internet. He was not pleased as I had killed his connection near the end of an 8M download. Anyway, I don't want this to happen again, so I would like, if possible, to write a script which does nothing except listen to the modem line for a few seconds so that I can hear whether someone else is using it. I have some idea about how such a script would go, but would appreciate some input. Here is what I propose: #!/bin/bash echo atm2 /dev/ttyS1 echo ato0 /dev/ttyS1 pause 2 echo +++ /dev/ttyS1 pause 2 echo atm1 /dev/ttyS1 I'd appreciate any comments about whether this is the best way to go about this problem. Thanks, Mark. _/\___/~~\ /~~\_/~~\__/~~\__Mark_Phillips /~~\_/[EMAIL PROTECTED] /~~\HE___/~~\__/~~\APTAIN_ /~~\__/~~\ __ They told me I was gullible ... and I believed them! -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null -- Jim Foltz [EMAIL PROTECTED] [EMAIL PROTECTED] ACORN techie http://www.acorn.net AOL/IM Jim Foltz
Re: Script to check whether modem telephone line in use --- how?
John Hasler wrote: Robert V. MacQuarrie writes: Put this is /usr/local/bin and call it ispon It isnt anything fancy but it should work for you until ppp's maintainer, Philip Hands, has time to maybe add a check into ppp itself. when run it'll simply tell you if pppd is or isn't running. pppd already locks the serial port. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI But isn't this the case only if the provider (or whatever) file directly references the serial port rather than a symlink like /dev/modem?
Re: Script to check whether modem telephone line in use --- how?
Carl Johnson writes: You might want to look into the 'connect' program from 'http://www.caesium.fr/freeware/connect/'. Interesting, but it doesn't address Mark's problem. It also requires that pppd be configured in an idiosyncratic fashion. It tracks multiple connect attempts so none trample over each other. There is no reason why they should. Pppd locks the serial port. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI
Re: Script to check whether modem telephone line in use --- how?
Kent West writes: But isn't this the case only if the provider (or whatever) file directly references the serial port rather than a symlink like /dev/modem? Which is why such a symlink should never exist. -- John Hasler [EMAIL PROTECTED] (John Hasler) Dancing Horse Hill Elmwood, WI