From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,4cdcab054a45d26e,start X-Google-Attributes: gid1164f8,public From: Ranjit Singh Banwait Subject: Using Sockets and a Terminal Server to Access Hardware. Date: 1997/03/10 Message-ID: <3323678E.2263@pc.jaring.my>#1/1 X-Deja-AN: 224279306 Organization: Unconfigured Reply-To: era@pc.jaring.my Newsgroups: comp.sys.dec Hi, 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). Question: If I want to interface to hardware over a network, should I be using Sockets and a terminal server or some other connection method and/or hardware. Is there a way I can configure NVT to prevent it from messing with my data. Thanks. Ranjit