📄 voice-cmds.html
字号:
the code is sent again as often as once every 4 seconds.</td></tr><tr><td> <DLE>d</td><td><b>Dialtone</b>.Sent in Voice Receive Mode when dial tone is detected afterany remaining data in the voice receive buffer. The modem sends the<DLE>d code every 3 seconds if dial tone continues to bedetected and the DTE does not react. This allows theDTE the flexibility of ignoring what could be a false dial tone detection.</td></tr><tr><td> <DLE>e</td><td><b>European Data Modem Calling Tone</b>.Sent when the V.25 1300 Hz CallingTone (Data Modem) is detected in a voice submode. Themodem assumes that the calling tone is valid, and sends this code onlyafter 4 seconds of proper cadence has been detected.If the DTE does not react to the <DLE>e and calling tone continues,the code is sent again as often as once every 4 seconds.</td></tr><tr><td> <DLE>f</td><td><b>Bell Answer Tone</b>.Sent when Bell 2225 Hz Answer Tone (Data) is detected.If the DTE fails to react to the code and the modemcontinues to detect Answer tone, the code is repeated as often as every 1/2second.</td></tr><tr><td> <DLE>h</td><td><b>Hung Up Handset</b>.Sent immediately when the modem detects that the localhandset has hung-up (i.e., has transitioned from offhook to on-hook) while in any of the three voice submodes.</td></tr><tr><td> <DLE>o</td><td><b>Overrun</b>.Sent in Voice Receive Mode if the voice receive data bufferoverflows, in which case, the latest data is lost infavor of retaining the oldest data in the buffer. (The DTE may not havebeen reading data from the modem lately.) The modeminserts the <DLE>o at the end of the buffer, thus marking the locationwhere data was lost by the DTE. The modem does not append<DLE>o codes to the buffer contiguously. If more than one data byteis lost before the DTE begins reading again, there isonly on <DLE>o code in the data stream. However, if the DTE resumesreading, and then once again allows the buffer to overflow,a new <DLE>o is appended to the data by the modem.Thus, the <DLE>o does not indicate how many bytes of contiguous datahas been lost, but may report multiple gaps of lost data in the data stream.</td></tr><tr><td> <DLE>q</td><td><b>Quiet</b>.Sent in Voice Receive Mode following any remaining data inthe receive voice buffer when the silence detection timer(#VSP) expires and there has been voice data passed to the DTE.Note that with #VSS=0, the Quiet message never occurs. Butwith silence deletion turned on, #VSS may not in itself be sufficientsince "cracks and pops" for a short duration directlyafter a connection should not be considered voice. In general,<DLE>q is sent if first there was sound, and now there is nosound, and means that somebody has stopped talking, and according to thecriteria selected in the #VSP and #VSS settings, isprobably not going to start again. If the DTE ignores the <DLE>q code,the modem automatically resets its timer and sends thecode again if the #VSP time period again expires. This allows the DTE timeto react to what may be a false silence detection.</td></tr></tbody></table></p><p><table border="1"><caption>Table 8-2. Shielded Codes Sent to the DTE (Cont'd)</caption><tbody><tr><th>Code Sent to DTE</th><th>Meaning</th></tr><tr><td> <DLE>s</td><td><b>Silence</b>.Sent in Voice Receive Mode after the silence detection timer (#VSP) expiresand if valid voice has not been detected (#VSS).In general, <DLE>s is sent if no sound was detected at all.This differs slightly from Quiet (<DLE>q) in that it canbe used by the DTE in its discrimination algorithms as a meansof determining if anything at all is coming from the remotestation. If the DTE ignores the <DLE>s code, the modem automaticallyresets its timer and sends the code again if the #VSPtime period again expires. This allows the DTE time to react to what may bea false detection of silence.</td></tr><tr><td> <DLE>t</td><td><b>Handset Off-Hook</b>.Sent one time when the local handset transition from on-hook to off-hookis detected in any of the three voice submodes.</td></tr><tr><td> <DLE>u</td><td><b>Underrun</b>.Sent in Voice Transmit Mode when the voice transmit buffer becomes emptywithout receiving a <DLE><ETX> or <DLE><CAN>command first. The modem remains in transmit mode, but issuesthe <DLE>u to indicate that silence is being generated. Whenthe DTE resumes sending bytes, the modem allows a small number of bytes to build up in the buffer before re-enabling the transmitterto avoid repeated underruns. However, with the underrun condition,the modem does not wait for the XOFF threshold (or timer)to be met before resuming, as it does on an initial transmit or resumeoperation because the remote listener may be unawareof the underrun, and keeping the silence short may serve to maskthe underrun altogether.</td></tr><tr><td> <DLE><ETX></td><td><b>End of Stream</b>.<DLE><ETX> is sent to denote the end of a voice data stream,similar to fax Class 1 and 2. This occurs in VoiceReceive Mode only after the DTE issues the key abort.</td></tr></tbody></table></p><h4>8.2.5. Shielded <DLE> Commands from the DTE</h4>Most commands issued for voice are implemented as extensions to the ATcommand set, and are accepted only if the modem is ina valid command mode, such as Online Voice Command Mode. However, thereare some operations which are available to the DTEwithout necessitating a switch to Online Voice Command Mode.The most obvious of these is the <DLE><ETX> which the DTE issuesduring Voice Transmit Mode to terminate an output message. Table 8-3 listsshielded <DLE> commands recognized by the modem.<h4>8.2.6. Voice Record</h4>To effect recording of a message received via a handset or microphone, theDTE must configure the modem for Voice Mode (#CLS=8),and select the proper relay setup (#VLS) to instruct the modem whetherto use the auxiliary device. The modem responds to the#VLS command by issuing a relay activate command to select the input device.When a device other than the telephone line isselected, the modem immediately enters Online Voice Command Mode (indicated by VCON). DTMF detection is therefore enabled assoon as the DTE selects the device, such as a handset, although the userstill needs to physically pick up the telephone and"press buttons." Even if the DTE has not entered Voice Receive or TransmitModes (#VTX or #VRX), these DTMF tones are deliveredvia shielded codes identically to when a physical telephone connectionexists but the DTE has not yet commanded receive or transmit.<p>When the DTE decides to record the message, it issues the #VRX command andupon command receipt, the modem immediately switchesto Voice Receive Mode. Since the microphone or handset is switched in, themodem immediately issues the CONNECT message indicatingthat the modem has switched to Voice Receive Mode and is beginning thetransfer of ADPCM voice data as well as shielded DTMFtones, and other tones and statuses.</p><p>In this recording state, the modem (if so configured) monitors for linesilence. If the #VSP period expires, the modem sendsthe <DLE>q or <DLE>s code to the DTE.</p><p>Recording can be canceled only via two events:</p><ol><li>The DTE sends any character to the modem. This is the key abort, and isthe normal method of terminating the receive mode.</li><li>The S30 deadman timer expires, which is generally an undesired event.</li></ol><table border="1"><caption>Table 8-3. Shielded DTE Codes</caption><tbody><tr><th>Code Sent to Modem</th><th> Meaning</th></tr><tr><td><DLE><ETX></td><td><b>Terminate</b>.Sent during Voice Transmit Mode to indicate that the DTE has finishedtransmitting a voice message. The modem completestransmission of any remaining data in the voice transmit buffer beforeresponding with the VCON message and entering OnlineVoice Command Mode. (This command is ignored by the modem when not in VoiceTransmit Mode.)</td></tr><tr><td><DLE><CAN></td><td><b>Cancel</b>.Sent during Voice Transmit Mode to indicate that the DTE has finishedtransmitting a voice message and wants the modemto discard any remaining data in the voice transmit buffer.The modem immediately purges its buffer, and then responds withthe VCON message entering Online Voice Command Mode. (This commandis ignored by the modem when not in Voice Transmit Mode.)</td></tr><tr><td><DLE>p</td><td><b>Pause</b>.Sent during Voice Transmit Mode to force the modem to suspend sendingvoice data to the selected output device(s).Any data currently in the voice transmit buffer is saved until eithera resume (<DLE>r), or cancel <DLE><CAN>, is received,in which case the data is lost. If a <DLE><ETX> is receivedduring the paused state, the modem processes it normally, and alsoautomatically resumes transmission of the data left in the buffer (appendedwith <DLE><ETX>). Any other data received fromthe DTE while in this paused state is placed in the transmit bufferaccording to available space, with flow control active.(This command is ignored in other voice submodes.)</td></tr><tr><td><DLE>r</td><td><b>Resume</b>.Sent during Voice Transmit Mode to force the modem to resume sendingvoice data to the selected output device(s).Any data currently in the voice transmit buffer is now played. (Thiscommand is ignored in other voice modes.) The pause andresume commands are different than a simple suspension of data; data in thebuffer is "frozen" and not played when the DTE pauses.</td></tr></tbody></table><h4>8.2.7. Voice Playback</h4>To effect playback of a message recorded via a handset or microphone,or of a message recorded during a voice call, the DTEmust configure the modem for Voice Mode (#CLS=3D8) and select the properrelay setup (#VLS) to instruct the modem whether touse the handset or speaker. The modem responds to the #VLS command byissuing a relay activate command to select the inputdevice. The hardware must provide a means of selecting a handset and/ormicrophone instead of the telephone line, as this inputdevice. When a device other that the telephone line is selected, the modemimmediately enters Online Voice Command Mode (indicatedby VCON). DTMF detection is thus enabled as soon as the DTE selects thedevice, such as a handset, although the user stillneeds to physically pick up the telephone before he can issue DTMF tones.Once selected, however, the user can indeed pickup the telephone and "press buttons." Even if the DTE has not enteredVoice Receive or Transmit Modes (#VTX or #VRX), theseDTMF tones are delivered via shielded codes, identically to when aphysical telephone connection exists but the DTE has notyet commanded receive nor transmit.<p>When the DTE decides to play the message, it issues the #VTX command, andthe modem immediately switches to Voice TransmitMode. Since the speaker or handset is already switched in, the modemimmediately issues the CONNECT message indicating thatthe modem is in Voice Transmit Mode and is expecting voice data fromthe DTE.</p><p>A subsequent <DLE><ETX> has to be issued to switch back toOnline Voice Command Mode.</p><h4>8.2.8. Voice Call Termination</h4><h5>Local Disconnect</h5>The DTE can disconnect from a telephone call by commanding a mode change to Online Voice Command Mode (if not already in it),and by issuing the H command.<h5>Remote Disconnect Detection</h5>When in Voice Receive Mode, the modem sends the proper shielded <DLE>code when loop break, dial tone, or busy tone is detected.The modem stays in Voice Receive Mode, however, until the DTE issues a keyabort to force Online Voice Command Mode. The DTEmust issue the H command if it wishes to hang up.<h4>8.2.9. Mode Switching</h4><h5>Voice to Fax</h5>If the modem is in Online Voice Command Mode (i.e., it has gone off-hookwith #CLS=8 in effect), the DTE can attempt a faxhandshake by setting #CLS=1 or #CLS=2, followed by the A or D commandcorresponding to fax receive or send. This has the effectof beginning a fax Class 1 or Class 2 handshake (see #CLS command).<h5>Unsuccessful Fax Connection Attempt to Voice</h5>A fax handshake which does not succeed, attempted as the result of the DTEmodifying the #CLS setting from voice (8) to fax(1 or 2), does not result in the modem hanging up, allowing the DTE theflexibility of commanding a switch back to Voice Modewith #CLS=8.<h5>Voice to Data</h5>If the modem is in the Online Voice Command Mode, the DTE can attempt adata handshake by setting #CLS=0 followed by the Aor D command. This has the effect of beginning a Data Mode handshakeaccording to the current Data Mode S-register and commandsettings.<h5>Unsuccessful Data Connection Attempt to Voice</h5>A data handshake which does not succeed, attempted as the result of the DTEmodifying the #CLS setting from voice (8) to data(0), does not result in the modem hanging up, allowing the DTEthe flexibility of commanding a switch back to Voice Mode with #CLS=8.<h4>8.2.10. Caller ID</h4>The modem supports Caller ID by passing the information received inBell 202 FSK format to the DTE after the first RING detect.The modem supports both formatted and unformatted reporting of Caller IDinformation received in ICLID (Incoming Call LineID) format as supported in certain areas of the U.S. and Canada.The DTE enables this feature via the #CID command.<h3>8.3. AT VOICE COMMAND SUMMARY</h3>Table 8-4 provides a complete summary of the AT voice commands described in detail in Sections 8.3.1 and 8.3.2.<h4>8.3.1. Global AT Command Set Extensions</h4>The AT commands in the following section are global, meaning that they canbe issued in any appropriate mode (i.e., any #CLS setting).<p>For consistency, the command set is divided into action commandsand parameters (non-action commands). Those commands whichare action commands (i.e., those which cause some change in the currentoperating behavior of the modem) are identified assuch, and the remaining commands are parameters.</p><h5>ATA - Answering in Voice</h5>The answer action command works analogously to the way it works in Data and Fax Modes except for the following:<ol><li> When configured for Voice Mode (#CLS=8), the modem enters Online Voice Command Mode immediately after going off-hook. Whenthe #CLS=3D8 command is issued, the modem can be programmed to look for1100 and 1300 Hz calling tones (see #VTD), thus eliminatingthe need to do so as part of A command processing. After the VCON messageis issued, the modem re-enters Online Voice CommandMode while sending any incoming DTMF or Calling Tone indications to the DTE as described in Section 8.2.5.</li><li> After answering in Voice Mode (#CLS=8), the DTE, as part of its calldiscrimination processing, can decide to change the#CLS setting to attempt receiving a fax in Class 1, or to make a dataconnection. In such a case, the DTE commands the modemto proceed with the data or fax handshake via the A command even though the modem is already off-hook.</li></ol>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -