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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: "Connection refused" when running Ethernet/RS232 application |
From: | Mark Rivers <[email protected]> |
To: | "'Nicholas P. DiMonte'" <[email protected]>, 张德敏 <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Wed, 12 Dec 2012 16:00:33 +0000 |
You should be able to debug this using “telnet” from your Linux machine. What happens if you do: telnet 192.168.0.21 1 Do you also get connection refused? Mark From: [email protected] [mailto:[email protected]]
On Behalf Of Nicholas P. DiMonte How do you have your LAN/Rs232 port configured? When I use a Moxa LAN/Rs232 converter I have to configure each port to "TCP Server Mode" for Asyn to work. I have seen error messages similar
to yours when the port is not configured correctly. Hello everyone,
I'm using an Ethernet/232 converter which communicates between IOC and the RS232 device , and specify the Internet host and port numper like : drvAsynIPPortConfigure("L0","192.168.0.21:1",0,0,0). Then running the application, it occurs: [fel@fel iocPSM6003]$ ../../bin/linux-x86/PSM6003 st.cmd #!../../bin/linux-x86/PSM6003 ## You may have to change PSM6003 to something else ## everywhere it appears in this file ##< envPaths ##cd ${TOP} ## Register all support components dbLoadDatabase("../../dbd/PSM6003.dbd",0,0) PSM6003_registerRecordDeviceDriver(pdbbase) ## Load record instances dbLoadRecords("../../db/psm6003.db","user=felHost") ##dbLoadRecords("../../db/psm6003.db","P=PSM6003:,R=,L=0,A=0") ##drvAsynIPPortConfigure("L0","127.0! .0.1",0,0,0) drvAsynIPPortConfigure("L0","192.168.0.21:1",0,0,0) ##drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0) ##asynSetOption("L0",-1,"baud","9600") ##asynSetOption("L0",-1,"bits","8") ##asynSetOption("L0",-1,"parity","none") ##asynSetOption("L0",-1,"stop","1") ##asynSetOption("L0",-1,"clocal","Y") ##asynSetOption("L0",-1,"crtscts","N") ##asynOctetSetInputEos("L0",-1,"\n") ##asynOctetSetOutputEos("L0",-1,"\n") ##cd ${TOP}/iocBoot/${IOC} iocInit() Starting iocInit ############################################################################ ## EPICS R3.14.9- $R3-14-9-pre1$ $2006/11/20 21:09:36$ ## EPICS Base built Nov 20 2012 ############################################################################ 2012/12/12 11:08:38.678 asynManager::asynConnectCallback, port L0 error calling asynCommon! ->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.679 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.680 Can't connect to 192.168.0.21:1: Connection refused L0 - 1 autoConnect could not connect 2012/12/12 11:08:38.681 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.780 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.781 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.781 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.2 1:1: Connection refused 2012/12/12 11:08:38.784 asynManager:! :asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.785 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused 2012/12/12 11:08:38.786 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect Can't connect to 192.168.0.21:1: Connection refused iocInit: All initialization complete ## Start any sequence programs #seq sncxxx,"user=felHost" epics> [fel@fel iocPSM6003]$ So, what probably has caused my problem? Thanks, Demin zhang
|