08-23-2019 05:05 PM
I have a EA-1 device that works OK via telnet command on my Windows 10 machine. So, all the network settings are OK.
I created a Visa TCP/IP (TCPIP0::169.254.1.1::23::SOCKET) resource on Max, and commands work well there as well.
Now I am trying to create a VI using the same resource and Visa palette VIs, and I get jumbled up response - Some bytes match, some dont. I am not sure if this is because I am using Telnet communication (Port 23), and am not handling the telnet negotiations? I dont have much background and couldn't find examples on how to address those. Any help would be appreciated. Below is some screenshots.
Response from NI Max as below:
Response from my VI:
Here is my simple VI
Solved! Go to Solution.
08-24-2019 07:31 AM
use the IO Trace to check what's different.
08-26-2019 06:41 AM
In Telnet, if you see that 0xFF followed by another byte, that is an option code. They should typically be replied with an ACK or NACK of the option. You can look up RFC854, RFC855, and RFC933 for more details. But the 0xFF 0xFD is a "Do" option code. That "Do" is followed by 0x24, which is an "Environment Option". I would have to dig through other RFCs to get any more details. But it is most likely to format your terminal. I typically just go ahead and ACK the option code and continue on with life.
So in your case here, I would just do a read immediately after the Open to clear out those 5 bytes. After that, it looks like an echoing of your command.
08-26-2019 02:47 PM