Play Tone +Wtone - Multitech MMCModem GPRS (MTMMC-G) Reference Manual

Wireless gsm/gprs modems at commands reference guide
Table of Contents

Advertisement

Play Tone +WTONE

Description:
This command allows a tone to be played on the current speaker or on the buzzer. Frequency, gain and
duration can be set.
Values:
<mode>
<dest> Sets the destination (mandatory if <mode>=1)
<freq> Sets tone frequency (in Hz) (mandatory if <mode>=1).
<freq2> Sets the 2
<gain> Sets the tone gain for the <freq>. The default is 9.
<gain2> Sets the tone gain for the <freq2>. The default is 9.
<duration> Sets tone duration (unit of 100 ms).
Note: The frequency <freq2> and gain <gain2> are allowed for the speaker only.
Caution: Hardware can only generate the following frequencies:
Syntax:
Command syntax: AT+WTONE=<mode>[,<dest>,<freq>,<gain>,<duration>[,<freq2>,[gain2>]]]]]
Response syntax: OK or +CME ERROR: <err>
Command
AT+WTONE=1,1,300,9,50
Note: Play a tone
AT+WTONE=0
Note: Stop playing
AT+WTONE=?
Note: Test command
AT+WTONE?
Note: Current value
AT+WTONE=1,1,300,9,50,600,9
Note: Play a tone with 2 frequencies (allowed with speaker only)
AT+WTONE=1,2,300,9,50,600,9
Note: Play a tone with 2 frequencies with the buzzer
Multi-Tech Systems, Inc. Wireless GSM/GPRS AT Commands (Document Number S000293I)
0
Stop playing.
1
Play a tone
1
Speaker
2
Buzzer
nd
tone frequency (in Hz) (mandatory if <mode>=1). Available with speaker only.
If <dest>=1 speaker:
Range is 1 Hz to 3999 Hz
If <dest>=2 buzzer:
Range is between 1 Hz and 50000 Hz.
Range of values is 0 to 15
<gain>
Speaker (db)
0
0
1
-0.5
2
-1
3
-1.5
4
-2
5
-3
6
-6
7
-9
8
-12
9
-15
10
-18
11
-24
12
-30
13
-36
14
-42
15
-infinite
Range is 0 to 50. Default 0. 1 -> 0,1 s., 50 -> 5 s.)
When this <duration>=0, the duration is infinite, and the tone can be stopped by
AT+WTONE=0.
Freq = (13 000 000 / (N * 64))
N: Interger value in the recommended range 1 to 2048.
With N=1, the frequency 203 125 Hz is generated.
With N=2048, the frequency 99.18 Hz is generated.
Some noise problems have been detected if the frequency is below 100 Hz.
The lowest frequency possible is 12 Hz.
Chapter 13 – Specific AT Commands
Buzzer (db)
-0.25
-0.5
-1
-1.5
-2
-3
-6
-9
-12
-15
-18
-24
-30
-40
-infinite
-infinite
Possible responses
OK
Note: Done
OK
Note: Done
OK
Note: Done
ERROR
OK
Note: Done
+CME ERROR: 3 (Note: Dual
frequency for speaker only)
117

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents