public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [OT(ish] Duplicate Character between modems
@ 2002-08-02 20:41 Neil Everton
  2002-08-03 21:31 ` rich+ml
  0 siblings, 1 reply; 6+ messages in thread
From: Neil Everton @ 2002-08-02 20:41 UTC (permalink / raw)
  To: Linux-Serial@Vger. Kernel. Org

Hi,
	My apologies for sending this here, but I reckon you guys are probably the
best bet I have of finding a solution to my problem (esp. as it indirectly
relates to serial programming)

	I'm currently porting an application from DOS to Linux (RH7.2 with Cyclades
Cyclom-Y (hi henrique!!)).

	My issue is this, if I send down the modem ;
"ABCDEFGHI"
	the receiving end (very infrequently) receives
"AABCDEFGHI"
	This is caught by the check digit routine and the line is NAK'd ready for a
re-transmit. It will usually work the second or third time. This has found a
bug in the 3rd party transmitting software, but they're taking the attitude
of the existing system works, so you fix your end !!! (the bug if your
interested is after sending a NAK they drop the connection, instead of
waiting for 5 retries)

	The existing DOS system uses old modems such as Pace Linnet (1200 baud) and
an even older modem called a Compact which you cannot do anything with, no
init string, no RING or CONNECT message, just straight into getting the
data.

	The new system is using 3Com Courier V.everything modems. I can replicate
the problem on other modems as well, so it's not a courier issue. We have to
disable any error correction, compression (except MNP), and set the flow
control to hardware. As far as I can see I've disable pretty much
everything, but I still occasionally get these duplicated characters. It
used to be quite bad and then I realised that the Courier set the flow
control on both the transmit and receive stacks seperately. Once I'd set the
flow control to hardware for both stacks it made the issue a lot better, but
I still get it.

	I can normally get this issue (at home) at least every 3rd order, luckily
it's not so bad at the clients end. My home setup incidentally doesn't have
a cyclades card, but I've sniffed at the modem connection and I definatly
don't send the duplicate characters to the modem, they're adding in between
the modems.

	The modem I'm sending on is a generic 56k modem, but we're getting the
issue on 300 baud modems, with the Courier set to only connect at 300. The
connect message is simply 'CONNECT' so should be giving no error correction,
compression, etc. it should be a standard V21 connection. There might be an
issue with fast modems connecting at V21 I'm not aware of, but I'm at a
loss. My client is also concerned with the issue (understandably) and are
also in the 'it works on the existing system' mentality.

Any help/pointers/advice gratefully received
Regards
Neil Everton


^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: [OT(ish] Duplicate Character between modems
@ 2002-08-02 22:54 Ed Vance
  0 siblings, 0 replies; 6+ messages in thread
From: Ed Vance @ 2002-08-02 22:54 UTC (permalink / raw)
  To: 'Neil Everton'; +Cc: Linux-Serial@Vger. Kernel. Org

On Fri, August 02, 2002 1:41 PM, Neil Everton wrote:
> Hi,

  [snip]

> 	I'm currently porting an application from DOS to Linux 
> (RH7.2 with Cyclades
> Cyclom-Y (hi henrique!!)).
> 
> 	My issue is this, if I send down the modem ;
> "ABCDEFGHI"
> 	the receiving end (very infrequently) receives
> "AABCDEFGHI"
> 	This is caught by the check digit routine and the line 
> is NAK'd ready for a
> re-transmit. It will usually work the second or third time. 
> This has found a
> bug in the 3rd party transmitting software, but they're 
> taking the attitude
> of the existing system works, so you fix your end !!! (the bug if your
> interested is after sending a NAK they drop the connection, instead of
> waiting for 5 retries)
> 
   [snip]

Hi Neil,

First thing I would check is to make sure that neither end is echoing. Check
both the systems' ports and the modems' digital side ports. 

Just a guess.

Best regards,
Ed

---------------------------------------------------------------- 
Ed Vance              edv@macrolink.com
Macrolink, Inc.       1500 N. Kellogg Dr  Anaheim, CA  92807
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: [OT(ish] Duplicate Character between modems
@ 2002-08-05 16:06 Ed Vance
  0 siblings, 0 replies; 6+ messages in thread
From: Ed Vance @ 2002-08-05 16:06 UTC (permalink / raw)
  To: 'Neil Everton'; +Cc: Linux-Serial@Vger. Kernel. Org

On Mon, August 05, 2002 at 2:05 AM, Neil Everton wrote:
> 
> 	Thanks for all the replies. Error correction was 
> originally disabled due to issues with new hardware 
> connecting to the existing system, and the fact that a lot 
> of the old hardware out there, will not connect to the 
> Couriers unless EC is disabled (it's true !!).
> 
> 	I appreciate the fact that EC is there to 'stabilise' a 
> connection and to filter out bad noise, but we have a check 
> digit routine for that (as indeed do the modems). The 
> problem I have though, it that if it is echo, I would
> expect it on most characters not just the odd one. If it was 
> line noise (which I expect is probably closer to the truth) 
> then the modems must STILL be providing some sort of 
> correction for them to resend the character again. If this 
> is the case then I cannot totally disable error correction, 
> which in turn means I cannot get rid of this problem.
> 
[snip]

Neil,
I'm not sure I can describe the situation accurately with Monday morning
brain, but I'll try. I have a weird double echo story. I have seen one case
of a local connection between a computer and a laser range finder box, where
both ends had echo turned on instead of just the box and it almost never
caused an error in the lab. They got one pulse for each character sent. In
the field test, with a much longer cable and a pair of limited distance
modems, they got parity errors or multiple pulses per character about half
the time. We found that echo was on at the computer and turned it off. Then
it all worked fine. 

I don't really understand the physics of what was happening. I suspect that
because the echo was analog and the lab cable was short, there was no
noticeable time offset between the transmitted bits and the retransmission
of the echoed same bits, and I make the wild guess that the computer end
transmitter turned off analog echo during transmission of a character. I
think the modem produced erratic short delays that occasionally separated
the bouncing echo signal in time from the original transmission of the
character so the echo could be bounced as a separate character. 

I guess the point is just that the problem was caused by echo being turned
on at both ends and it didn't cause the expected kind of problem. I hope
yours turns out to be less weird. Good luck with it. 

Best regards,
Ed

---------------------------------------------------------------- 
Ed Vance              edv (at) macrolink (dot) com
Macrolink, Inc.       1500 N. Kellogg Dr  Anaheim, CA  92807
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-08-05 18:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-02 20:41 [OT(ish] Duplicate Character between modems Neil Everton
2002-08-03 21:31 ` rich+ml
2002-08-05  9:05   ` Neil Everton
2002-08-05 18:26     ` rich+ml
  -- strict thread matches above, loose matches on Subject: below --
2002-08-02 22:54 Ed Vance
2002-08-05 16:06 Ed Vance

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox