I think the Official TCP port for telnet is 23. “telnet 192.168.0.21 1” may not work anyway (TCP Port 1 is TCPMUX).
For Ethernet/RS232 converter, the port number usually is the TCP port number (usually > 1024), not the physical RS-232 port number (1, 2, 3,
4). In your case, you might use drvAsynIPPortConfigure("L0 ","192.168.0.21:***1") instead of drvAsynIPPortConfigure("L0 ","192.168.0.21:1") for the RS-232 port 1.
Anyway, you need to read the NI converter manual and find out if it has web server running. Then, type 192.168.0.21 in your web Browser and
try to find out the information about the TCP port and RS-232 configuration.
Good luck,
Yong
From:
[email protected] [mailto:[email protected]] On Behalf Of
???
Sent: Thursday, December 13, 2012 8:49 AM
To: Mark Rivers
Cc: tech-talk
Subject: Re:RE: "Connection refused" when running Ethernet/RS232 application
Hi,
When I use
“telnet”
from my Linux machine:
telnet 192.168.0.21 1
I also get connection refused. But
“ping 192.168.0.21”,
it works well.
I can’t
find the “TCP Server Mode”
attribute of the port of the NI Ethernet/RS232 convertor(4 ports) , and the port likely needn’t
to be configured.
Then, Is the port number the convertor’s
port num or the device port in the machine? how should I set the port number in drvAsynIPPortConfigure?