LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't open tcp connection to qnx

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?

 

 

0 Kudos
Message 1 of 3
(3,161 Views)

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.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 3
(3,127 Views)

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.

 

 


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 3 of 3
(3,121 Views)