Getting Junk out of Modem Speaker/Local Handset

"Stefan Theurer" (theurer@studbox.uni-stuttgart.de)
Wed, 18 Aug 1999 19:48:37 +0200


Does anyone have access playing messages to internal speaker or local
handset with ZyXEL Elite 2864I?
"vm play -v -s zyxel_2.9600.rmd" or "vm play -v -w -H zyxel_2.9600.rmd"
produces distorted messages only. The strange thing is, that there is no
junk on the line dialing into vgetty or using the shell script "message.sh
xxnumberxx zyxel_2.9600.rmd" that means using the telco line.
I compared the log-files of the tries above. They are identical, except the
choice of the voice i/o selection.

Before I upgraded my modem to ISDN this works fine. This time I try to find
out whether there is a bug in vgetty or in the modem (or in my
configuration...).

I also tried different versions of m/vgetty (now v1.1.21) and the modem
firmware (now 2.99i/2.01d). No success.

I switched from  do_hard_flow true to false. Then some messages were played
correctly depending on the port_speed (voice.conf) and the voice compression
method selection,  but the modem doesn't initialize afterwards properly (the
LCK..-file will not be removed).
And - very strange - messages over the telco line are now broken. This is
very stable if I use do_hard_flow true...

If someone doesn't have this problem with 2864I, please mail me the
configuration files.

Stefan.
email: theurer@studbox.uni-stuttgart.de
-------
involved settings in my voice.conf (telco line works, vm play -s/-H not,
recording works everywhere):
port_speed 115200
#rec_compression 0
rec_compression 2
#rec_speed 0
rec_speed 9600
do_hard_flow true
#do_hard_flow false
-------
vm.log of "vm play -s /var/spool/voice/messages/standard.rmd" (noise):
08/18 19:11:51   voice command: 'AT+FCLASS=8' -> 'OK'
08/18 19:11:51    vm: AT+FCLASS=8
08/18 19:11:51    ZyXEL 2864: OK
08/18 19:11:51   voice command: 'AT' -> 'OK'
08/18 19:11:51    vm: AT
08/18 19:11:51    ZyXEL 2864: OK
08/18 19:11:51    vm: queued event RESET_WATCHDOG at position 0001
08/18 19:11:51   voice command: 'AT+VLS=16' -> 'OK'
08/18 19:11:51    vm: AT+VLS=16
08/18 19:11:51    vm: unqueued event RESET_WATCHDOG at position 0001
08/18 19:11:51    vm: voice_handle_event got event RESET_WATCHDOG with data
<_>
08/18 19:11:51    ZyXEL 2864: OK
08/18 19:11:51  playing voice file /var/spool/voice/messages/standard.rmd
08/18 19:11:51   vm: raw modem data header found
08/18 19:11:51   vm: modem type ZyXEL 2864 found
08/18 19:11:51   vm: compression method 0x0002, speed 9600, bits 2
08/18 19:11:51    vm: queued event RESET_WATCHDOG at position 0002
08/18 19:11:51   voice command: 'AT+VSM=2,9600' -> 'OK'
08/18 19:11:51    vm: AT+VSM=2,9600
08/18 19:11:51    vm: unqueued event RESET_WATCHDOG at position 0002
08/18 19:11:51    vm: voice_handle_event got event RESET_WATCHDOG with data
<NUL>
08/18 19:11:51    ZyXEL 2864: OK
08/18 19:11:51    vm: queued event RESET_WATCHDOG at position 0003
08/18 19:11:51    vm: unqueued event RESET_WATCHDOG at position 0003
08/18 19:11:51    vm: voice_handle_event got event RESET_WATCHDOG with data
<NUL>
08/18 19:11:51   voice command: 'AT+FLO=2' -> 'OK'
08/18 19:11:51    vm: AT+FLO=2
08/18 19:11:51    ZyXEL 2864: OK
08/18 19:11:51   tio_set_flow_control( HARD XON_OUT )
08/18 19:11:51   voice command: 'AT+VTX' -> 'CONNECT'
08/18 19:11:52    vm: AT+VTX
08/18 19:11:52    ZyXEL 2864: CONNECT
08/18 19:11:55    vm: <VOICE DATA 47674 bytes>
08/18 19:11:55    vm: queued event RESET_WATCHDOG at position 0004
08/18 19:11:55    vm: unqueued event RESET_WATCHDOG at position 0004
08/18 19:11:55    vm: voice_handle_event got event RESET_WATCHDOG with data
<NUL>
08/18 19:11:55    vm: <STOP PLAY>
08/18 19:11:55   voice command: '' -> 'OK'
08/18 19:11:56    ZyXEL 2864: OK
08/18 19:11:57    vm: queued event RESET_WATCHDOG at position 0005
08/18 19:11:57   voice command: 'AT+VLS=0' -> 'OK'
08/18 19:11:57    vm: AT+VLS=0
08/18 19:11:57    vm: unqueued event RESET_WATCHDOG at position 0005
08/18 19:11:57    vm: voice_handle_event got event RESET_WATCHDOG with data
<NUL>
08/18 19:11:57    ZyXEL 2864: OK
08/18 19:11:57   vm: leaving voice mode
08/18 19:11:57   voice command: 'AT+FCLASS=0' -> 'OK'
08/18 19:11:57    vm: AT+FCLASS=0
08/18 19:11:57    ZyXEL 2864: OK
08/18 19:11:57   voice command: 'AT' -> 'OK'
08/18 19:11:57    vm: AT
08/18 19:11:57    ZyXEL 2864: OK
08/18 19:11:57   vm: Restoring signal handlers
08/18 19:11:57  closing voice modem device
08/18 19:11:57   removing lock file
-------
vgetty.modem log of a normal call (one can hear the message):
08/18 19:21:26 dem  vgetty: experimental test release 0.9.4 / 20Jul99
08/18 19:21:26 dem  mgetty: experimental test release 1.1.21-Jul24
08/18 19:21:26 dem  reading generic configuration from config file
/usr/local/etc/mgetty+sendfax/vo
ice.conf
08/18 19:21:26 dem  reading program vgetty configuration from config file
/usr/local/etc/mgetty+sen
dfax/voice.conf
08/18 19:21:26 dem  reading port modem configuration from config file
/usr/local/etc/mgetty+sendfax
/voice.conf
08/18 19:21:26 dem  check for lockfiles
08/18 19:21:26 dem  locking the line
08/18 19:21:27 dem  lowering DTR to reset Modem
08/18 19:21:28 dem  send: \d\d\d+++\d\d\dAT&FS2=255[0d]
08/18 19:21:31 dem  waiting for ``OK'' ** found **
08/18 19:21:31 dem  send: ATN3S0=0S13.2=1[0d]
08/18 19:21:31 dem  waiting for ``OK'' ** found **
08/18 19:21:31 dem  send: ATCD1CB1CC1[0d]
08/18 19:21:31 dem  waiting for ``OK'' ** found **
08/18 19:21:31 dem  send: ATS103=4[0d]
08/18 19:21:31 dem  waiting for ``OK'' ** found **
08/18 19:21:31 dem  mdm_send: 'AT+FCLASS=2' -> OK
08/18 19:21:31 dem  mdm_send: 'AT+FCLASS=0' -> OK
08/18 19:21:31 dem  mdm_send: 'AT+FAA=1;+FCR=1' -> OK
08/18 19:21:31 dem  mdm_send: 'AT+FBOR=0' -> OK
08/18 19:21:31 dem  mdm_send: 'AT+FLID="49 XXXXX"' -> OK
08/18 19:21:31 dem  mdm_send: 'AT+FDCC=1,5,0,2,0,0,0,0' -> OK
08/18 19:21:31 dem  detecting voice modem type
08/18 19:21:33 dem  ZyXEL 2864 detected
08/18 19:21:33 dem  initializing ZyXEL 2864 voice modem
08/18 19:21:35 dem  waiting...
08/18 19:22:14 dem  wfr: waiting for ``RING''
08/18 19:22:14 dem  wfr: waiting for ``RING''
08/18 19:22:14 dem  ZyXEL: 'FM:XXXXX TO:XXXXX'
08/18 19:22:14 dem  reading ring_type ring configuration from config file
/usr/local/etc/mgetty+sen
dfax/voice.conf
08/18 19:22:15 dem  playing voice file
/var/spool/voice/messages/standard.rmd
08/18 19:22:17 dem  vgetty: Buffer underrun
08/18 19:22:37 dem  recording voice file
/var/spool/voice/incoming/vKCDOJi.rmd
08/18 19:22:45 dem  vgetty: Modem returned ERROR
08/18 19:22:45 dem  closing voice modem device
08/18 19:22:45 ##### message keep, length=00:00:07, name='', caller=XXXXX,
dev=modem, pid=2054
--