new serial hw - new problem
Gert Doering (gert@greenie.muc.de)
Wed, 16 Dec 1998 18:22:37 +0100
Hi,
On Wed, Dec 16, 1998 at 09:10:20AM -0800, Devin Redlich wrote:
> 12/16 08:34:50 r1A read 64, write 64
> [whole bunch of lines snipped]
> 12/16 08:34:52 r1A read 23, write 23
> 12/16 08:34:52 r1A page complete, 9687 bytes sent
> 12/16 08:34:52 r1A sending DLE '.'
> 12/16 08:34:52 r1A got:[0a][0d][0a]ERROR[0d]
> 12/16 08:35:05 r1A got response: 'ERROR'
> 12/16 08:35:05 r1A fax_send_page("f1.g3") started...
> 12/16 08:35:05 r1A tio_set_flow_control( HARD )
> 12/16 08:35:06 r1A fax_send: 'AT+FDT'
> 12/16 08:35:06 r1A fax_wait_for(CONNECT)
> 12/16 08:35:06 r1A got:[0a]ERROR: RTN: page bad - retrain requested[0a]
> 12/16 08:35:06 r1A fax_wait_for: string 'ERROR: RTN: page bad - retrain
> requested'
> 12/16 08:35:06 r1A got:AT+FDT[0d]
This doesn't look like it's a problem with the serial port.
Actually, there are a couple of problems here, that I assume to be
completely unrelated to the serial port being used:
- the remote end rejects the page, that's the first "ERROR", right after
"DLE ." - could be for manyfold reasons, one would have to see how it
looks like. I'd blaim a bad phone line, or bad modem firmware [try
swapping modems, phone lines, and both, to see whether the error
moves around]
- your application seems to call "sendfax" with stderr redirected to
/dev/ttyr1A, which will cause its error messages to go to the modem
(that's the "RTN: page bad" stuff up there). Bad idea, if you want
to redirect stderr, send it to /dev/null.
> 12/16 08:35:06 r1A fax_wait_for: string 'AT+FDT'
> 12/16 08:35:06 r1A got:[0d][0a]+FHS:00[0d]
> 12/16 08:35:07 r1A fax_wait_for: string '+FHS:00'
> 12/16 08:35:07 r1A connection hangup: '+FHS:00'
And finally, the modem refuses to properly retransmit the page after
"ERROR", so there is something definitely wrong in its firmware.
Does it always happen this way? Or was this a "freak incident"? What
firmware version do you use?
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de