1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Re:RE: "Connection refused" when running Ethernet/RS232 application |
From: | "Hu, Yong" <[email protected]> |
To: | "'???'" <[email protected]>, Mark Rivers <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Thu, 13 Dec 2012 14:41:05 +0000 |
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
??? 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?
|