CONTROL ENET24 FROM NI CONTROLLER
Panem
Posts: 10
Hello everyone,
I have tried to make switching between VLANs on ENET24 and I can't do it from NI controller. I have successfully done it through windows telnet session but when i try to do it with IP CLIENT OPEN on port 23 through NI ethernet port it doesn't work.
Please note that we sent just the same strings either from telnet session or from netlinx code.
I have tried to make switching between VLANs on ENET24 and I can't do it from NI controller. I have successfully done it through windows telnet session but when i try to do it with IP CLIENT OPEN on port 23 through NI ethernet port it doesn't work.
Please note that we sent just the same strings either from telnet session or from netlinx code.
0
Comments
The usual reason is that the device is expecting telnet negotiations before it will talk to you. This happens transparently with the Windows telnet client, but you have to program it yourself in NetLinx. Have your program print out the strings it's receiving from the switch, and you should see something like $FF,$FB,$01 (negotiate window size), which you could respond to with $FF,$FB,$1F (you can't make me). The exact strings sent depend on the device you're talking to -- post what you get here, and I can try to help you decipher them. You could also try using Wireshark on the Windows telnet session to see the negotiations, although they're likely to be more complicated than the bare minimum you will need to talk to the device.
http://www.amxforums.com/showthread.php?6856-TELNET-commands&highlight=telnet+commands
The device wants to know your terminal type. You could try replying with $FF$FC$18 (won't negotiate terminal type).