From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4cdcab054a45d26e X-Google-Attributes: gid1164f8,public From: fdc@watsun.cc.columbia.edu (Frank da Cruz) Subject: Re: Using Sockets and a Terminal Server to Access Hardware. Date: 1997/03/10 Message-ID: <5g1l06$85d$1@apakabar.cc.columbia.edu>#1/1 X-Deja-AN: 224451905 References: <3323678E.2263@pc.jaring.my> Organization: Columbia University Newsgroups: comp.sys.dec In article <3323678E.2263@pc.jaring.my>, Ranjit Singh Banwait wrote: : I am playing around with interfacing to some hardware : through a Dec700 terminal server. I enabled the telnet : server service on a port of the terminal server and : plugged my hardware in. Then I made a tcp/ip socket : connection to the port. I stay in the NVT mode of the : telnet server application I communicate with the hardware. : : Problem: : I am able to get data from the hardware into my program but : I have problems when the hardware sends a byte with hex : value FF or when the hardware sends a carriage return. : A byte FF is followed by a second FF which is added by the : telnet server(I think) : A carriage return is followed by a NULL character(decimal 0). : It sounds like your Telnet client is not in NVT mode. If it were, it would take care of these items. Some Telnet clients behave this way if they have been told to use a socket number other than 23. : Is there a way I can configure NVT to prevent it from messing : with my data. : You didn't say what kind of computer or OS your Telnet client is running on. In any case, why don't you try using Kermit as your Telnet client? It has all sorts of controls that might be lacking from whatever Telnet client you are presently using. It will handle the FF business automatically, and the CR business can be tamed with explicit settings, such as "set telnet newline-mode". http://www.columbia.edu/kermit/ - Frank