I wont to communication with a GPS Instrument LABSAT, i must communication with it using TELNET, so when i try ti communicate with the instrument using putty or teraterm i dont have any problem, but when i try to use LabVIEW TCP/IP i can only sen the first command, and i get not normal characters like : "ÿýÿûÿü"ÿý" i tryed to see the equivalent in Hexa and try to convert in ASCII code but alwas the chain of characters dosen't mean any thing. you can see may programme in the pictures.
thanks for help.
Solved! Go to Solution.
To understand why you are experiencing issues trying to talk to your instrument, its important to first identify the differences between TELNET and TCP.
TELNET is an application layer protocol, and TCP is a transport layer protocol as defined in the OSI Model, and the implication of this is that TELNET uses TCP to send messages, but is not equal to TCP.
This does mean you cannot use the TCP/IP functions to communicate using TELNET.
Unfortunately support for TELNET was dropped from LabVIEW 2014 onwards, and the current recommended way to use TELNET is by interacting with PuTTY using LabVIEW. The following Knowledgebase article contains more information on how to do this.
Hope this helps!
Noticed that there is a sequence of hex values "0D 0A" in your output string. 0D 0A is a carriage return followed by a line feed (CRLF). I would assume that this could be the data termination characters. My first suggestion would be to change the MODE of the TCP Read to CRLF and set the bytes to read to something very large (like 1000).
I've never looked into it before now, but I see there is a bit more to Telnet than just a raw TCP channel. Looking at the spec here, in the section on "Telnet command structure", we can see that the three-byte sequences such as "FFFD01", "FFFB03", and "FFFC22" are actually telnet commands. So at a minimum you'll need to filter these out to make sense of the received data.