README.audio 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. $Id: README.audio,v 1.8 1999/07/11 17:17:29 armin Exp $
  2. ISDN subsystem for Linux.
  3. Description of audio mode.
  4. When enabled during kernel configuration, the tty emulator of the ISDN
  5. subsystem is capable of a reduced set of commands to support audio.
  6. This document describes the commands supported and the format of
  7. audio data.
  8. Commands for enabling/disabling audio mode:
  9. AT+FCLASS=8 Enable audio mode.
  10. This affects the following registers:
  11. S18: Bits 0 and 2 are set.
  12. S16: Set to 48 and any further change to
  13. larger values is blocked.
  14. AT+FCLASS=0 Disable audio mode.
  15. Register 18 is set to 4.
  16. AT+FCLASS=? Show possible modes.
  17. AT+FCLASS? Report current mode (0 or 8).
  18. Commands supported in audio mode:
  19. All audio mode commands have one of the following forms:
  20. AT+Vxx? Show current setting.
  21. AT+Vxx=? Show possible settings.
  22. AT+Vxx=v Set simple parameter.
  23. AT+Vxx=v,v ... Set complex parameter.
  24. where xx is a two-character code and v are alphanumerical parameters.
  25. The following commands are supported:
  26. AT+VNH=x Auto hangup setting. NO EFFECT, supported
  27. for compatibility only.
  28. AT+VNH? Always reporting "1"
  29. AT+VNH=? Always reporting "1"
  30. AT+VIP Reset all audio parameters.
  31. AT+VLS=x Line select. x is one of the following:
  32. 0 = No device.
  33. 2 = Phone line.
  34. AT+VLS=? Always reporting "0,2"
  35. AT+VLS? Show current line.
  36. AT+VRX Start recording. Emulator responds with
  37. CONNECT and starts sending audio data to
  38. the application. See below for data format
  39. AT+VSD=x,y Set silence-detection parameters.
  40. Possible parameters:
  41. x = 0 ... 31 sensitivity threshold level.
  42. (default 0 , deactivated)
  43. y = 0 ... 255 range of interval in units
  44. of 0.1 second. (default 70)
  45. AT+VSD=? Report possible parameters.
  46. AT+VSD? Show current parameters.
  47. AT+VDD=x,y Set DTMF-detection parameters.
  48. Only possible if online and during this connection.
  49. Possible parameters:
  50. x = 0 ... 15 sensitivity threshold level.
  51. (default 0 , I4L soft-decode)
  52. (1-15 soft-decode off, hardware on)
  53. y = 0 ... 255 tone duration in units of 5ms.
  54. Not for I4L soft decode (default 8, 40ms)
  55. AT+VDD=? Report possible parameters.
  56. AT+VDD? Show current parameters.
  57. AT+VSM=x Select audio data format.
  58. Possible parameters:
  59. 2 = ADPCM-2
  60. 3 = ADPCM-3
  61. 4 = ADPCM-4
  62. 5 = aLAW
  63. 6 = uLAW
  64. AT+VSM=? Show possible audio formats.
  65. AT+VTX Start audio playback. Emulator responds
  66. with CONNECT and starts sending audio data
  67. received from the application via phone line.
  68. General behavior and description of data formats/protocol.
  69. when a connection is made:
  70. On incoming calls, if the application responds to a RING
  71. with ATA, depending on the calling service, the emulator
  72. responds with either CONNECT (data call) or VCON (voice call).
  73. On outgoing voice calls, the emulator responds with VCON
  74. upon connection setup.
  75. Audio recording.
  76. When receiving audio data, a kind of bisync protocol is used.
  77. Upon AT+VRX command, the emulator responds with CONNECT, and
  78. starts sending audio data to the application. There are several
  79. escape sequences defined, all using DLE (0x10) as Escape char:
  80. <DLE><ETX> End of audio data. (i.e. caused by a
  81. hangup of the remote side) Emulator stops
  82. recording, responding with VCON.
  83. <DLE><DC4> Abort recording, (send by appl.) Emulator
  84. stops recording, sends DLE,ETX.
  85. <DLE><DLE> Escape sequence for DLE in data stream.
  86. <DLE>0 Touchtone "0" received.
  87. ...
  88. <DLE>9 Touchtone "9" received.
  89. <DLE># Touchtone "#" received.
  90. <DLE>* Touchtone "*" received.
  91. <DLE>A Touchtone "A" received.
  92. <DLE>B Touchtone "B" received.
  93. <DLE>C Touchtone "C" received.
  94. <DLE>D Touchtone "D" received.
  95. <DLE>q quiet. Silence detected after non-silence.
  96. <DLE>s silence. Silence detected from the
  97. start of recording.
  98. Currently unsupported DLE sequences:
  99. <DLE>c FAX calling tone received.
  100. <DLE>b busy tone received.
  101. Audio playback.
  102. When sending audio data, upon AT+VTX command, emulator responds with
  103. CONNECT, and starts transferring data from application to the phone line.
  104. The same DLE sequences apply to this mode.
  105. Full-Duplex-Audio:
  106. When _both_ commands for recording and playback are given in _one_
  107. AT-command-line (i.e.: "AT+VTX+VRX"), full-duplex-mode is selected.
  108. In this mode, the only way to stop recording is sending <DLE><DC4>
  109. and the only way to stop playback is to send <DLE><ETX>.