Author |
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 23 2008 at 21:09 | IP Logged
|
|
|
Does anyone know of a way using the CID Plugin to go off hook when a particular number is calling and to then respond with a number like 5 and hang-up. Just trying to automate a gate opening sequence.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: October 24 2008 at 07:53 | IP Logged
|
|
|
This is exactly what I want to do for another application, but I have not started on it.
I believe the plugin would need to be modified, so I was going to downgrade and use my CID macro.
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 24 2008 at 08:18 | IP Logged
|
|
|
Thanks Tony. I was wondering how I would send an ATH1 for example.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 24 2008 at 10:10 | IP Logged
|
|
|
Pete,
I think you can get the CID to recognize the number and send commands using a macro.
I haven't tried it but I think this will send ATH1:
ph_picmd(5,"CID",1,0,0,"ath1\013","")
See the 9th post here.
Edited to fix link - Tony
Edited by TonyNo - October 24 2008 at 19:02
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: October 24 2008 at 13:34 | IP Logged
|
|
|
Great find Brady!
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 25 2008 at 10:33 | IP Logged
|
|
|
Tony, I’ve tried yours and Dave’s formats to no avail with the actual tone being sent. The ATH1 works and the ATH seems to work but when I try the ATDT 5 I don’t hear the tone and when I test it on the gate it doesn’t recognize it. Dave used an ATDT *79,,,1
I assume the comas are pauses but what is the 1? Also in the ph_picmd format, what is the data4 string "" mean?
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 25 2008 at 16:39 | IP Logged
|
|
|
Have you tried this:
ph_picmd(5,"CID",1,0,0,"atdt 5\013","")
It takes the modem off-hook and transmits a tone, presumably "5". At least it does here.
I don't know what DATA4 is used for, exept that the ph_picmd needs a place holder in order to execute.
This works too: ph_picmd(5,"CID",2,0,0,"atdt 5","")
The "1" is needed for Vonage DND.
Edited by jbbtex - October 25 2008 at 16:50
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 25 2008 at 20:08 | IP Logged
|
|
|
Brady, thanks for the info. I do have VOIP but the phone can handle the 5. What’s interesting you said that the ATDT takes it off hook which I have been issuing an ATH1 for to put it in that mode. Tomorrow I’ll give it a test.. Just got off the beach now is not the time to play if you get the jest.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 26 2008 at 08:58 | IP Logged
|
|
|
From Tony's post in the Phone Butler thread, I don't know if you'll be able to get it to answer and then send a tone since there won't be any dial tone.
However, I think you could do this with a voice modem, since you can play sound files via a voice modem. At least that's my understanding, but I've never tried it as I don't have one.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 09:08 | IP Logged
|
|
|
My VOIP box giving me the dial tone and the function works from my phone. Since we are sending Hayes compatible commands to the modem one would think it should work.
On the other side I am answering the phone and hanging up functionally using the AT commands. This all happens after I’ve captured the incoming call I want with the CID plug-in.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 09:37 | IP Logged
|
|
|
We’ll after much testing this is what I’ve found. I need the ATH1 then the ATDT and finally ATH. All commands need either the 1 or 2. I can hear the modem go off-hook and then go on-hook. But when I listen for the tones I hear none nor does the gate hear them. If I answer the phone and hit the 5 button the gate hears it. Basically I am having a problem with the ATDT. More testing…..
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 26 2008 at 10:01 | IP Logged
|
|
|
Pete,
To operate the gate do you just pick up any phone in the house and press 5?
If so would this sequence work?
If the calling number is the one you specify then
ph_picmd(5,"CID",2,0,0,"ath1","") - answer
ph_picmd(5,"CID",2,0,0,"ath","")- hang up
ph_picmd(5,"CID",2,0,0,"atdt 5","") - go off-hook and dial 5
ph_picmd(5,"CID",2,0,0,"ath","") - hang up
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 10:25 | IP Logged
|
|
|
I tried it Brady but same results. I don’t understand the ATH then the ATDT. To answer the other question, I just pick up the phone and press 5. I also can carry on a conversation with someone at the gate but when I press 5 the gate opens and the gate hangs up. When I simulate the gate by using my cell for the call I do not hear the ATDT sequence. To test I put a string of numbers in the ATDT but could not hear them. When I went to the gate and called and the code sent an ATDT 5 the gate did not react. It is as though the ATDT does not get passed through to the modem.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 26 2008 at 11:05 | IP Logged
|
|
|
I added the ath before the atdt because I thought the gate was just an extension of the house phone, but it has its own number.
The atdt is waiting for dial tone before it processes. That's an internal function of the modem.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 11:10 | IP Logged
|
|
|
Sorry about the confusion. Yes the gate calls the house and the CID plug-in fires. Another tid bit. When I ATDT my cell phone it rings. Then I wait 15 seconds and send a string of numbers but I still don’t hear them. There must be a difference between generating a tone with the phone touch pad and sending raw data to the modem.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 26 2008 at 11:16 | IP Logged
|
|
|
Internet searches are cool.
Try this to send the 5.
ph_picmd(5,"CID",2,0,0,"at+vts=5","")
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 11:17 | IP Logged
|
|
|
"Ships passing in the night"
More interesting info. From the Internet: “Modems do not automatically send data-tones. Some software programs will initiate this tone for you, but in an interface such as Terminal, you must manually submit a data-tone. A calling computer must submit a data-tone in order to log on to the BBS…”
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 11:25 | IP Logged
|
|
|
I tried it to the cell and did not hear the data. I call (ATDT) and wait 30 seconds then send the string. After which I ATH.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: October 26 2008 at 11:32 | IP Logged
|
|
|
I have this macro:
ph_picmd(5,"CID",2,0,0,"ath1","")
wait 2
ph_picmd(5,"CID",2,0,0,"at+vts=5","")
wait 2
ph_picmd(5,"CID",2,0,0,"ath","")
I call the modem from the cell. After two rings I manually run the macro. It answers, sends the DTMF tone, and hangs up.
I'm using a US Robotics 5623 modem.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: October 26 2008 at 12:28 | IP Logged
|
|
|
I’m running a Creative Blaster USB V.92. I wonder if VTS is unique to some modems?
__________________ Pete - X10 Oldie
|
Back to Top |
|
|