|
|
DTMF or How I Got My Bx-24 To Use a Phone!
DTMF tones are the sounds you here when you dial a phone. If you
play the right tones through the mic on your phone you can have
the Bx dial for you! DTMF tones are comprised of two descrete sine
waves played simultaneously. The Bx FreqOut command is perfect for
this since you have parameters for two frequencies.
Call Freqout (Pin, Freq1, Freq2, Duration)
I have played the tones through a amplified speaker into a phone
mic but I think that it should be possible to output the signal
directly to the phone line, I haven't tried this yet though.
Here is a table with the frequencies outlined
1 697+1209
2 697+1336
3 697+1477
4 770+1209
5 770+1336
6 770+1477
7 852+1209
8 852+1336
9 852+1477
0 941+1336
* 941+1209
# 941+1477
A 697+1633
B 770+1633
C 852+1633
D 941+1633
This code dials 564-3071 to dial another number you could change
the frequencies by hand coding or use variables.
Option Explicit
Public Sub Main()
call delay(0.5)
do
call putPin(3, 1)
Call Freqout(12, 770, 1336, 53)
call delay(0.025)
call freqout(12, 770, 1477, 53)
call delay(0.025)
call freqout(12, 770, 1209, 53)
call delay(0.025)
call freqout(12, 697, 1477, 53)
call delay(0.025)
call freqout(12, 941, 1336, 53)
call delay(0.025)
call freqout(12, 852, 1209, 53)
call delay(0.025)
call freqout(12, 697, 1209, 53)
loop
End Sub
|
|