10-21-2011 01:45 PM
I want to use TCP/IP to connect to a machine running QNX. I can telnet into QNX using windows, but when i try to connect using Labview TCP, i get a weird data stream back:
ÿýÿý ÿý#ÿý'ÿý$ (Normal string display), or FFFD 18FF FD20 FFFD 23FF FD27 FFFD 24 (HEX display), plus I get error code 56 (timeout on the read).
When i use the same vi to access another product (not running QNX), I get 0D0A 2D2D 3E and an open communication path, everything works as it should.
In each case, I'm using the IP address and port 23 (telnet) to access.
Any ideas on how to connect to QNX using TCP/IP utilities?
10-24-2011 08:51 PM
I don't have my code on this computer and it has been a couple of years, but I think the issue may be the "Endian" of the data. Not sure of the timeout issue. I will try and look up my older code.
10-25-2011 06:22 AM
I think the data you are seeing is part of the telnet negotiation sequence. http://www.faqs.org/rfcs/rfc854.html
A telnet session is more complex than opening a TCP socket.
I would suggest using the LabVIEW Internet Toolkit for telnet communications.