g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: RE: "Connection refused" when running Ethernet/RS232 application
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Nicholas P. DiMonte'" <npd@aps.anl.gov>, 张德敏 <zhangdemin99@163.com>
Cc: tech-talk <tech-talk@aps.anl.gov>
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: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Nicholas P. DiMonte
Sent: Wednesday, December 12, 2012 9:12 AM
To:
张德敏
Cc: tech-talk
Subject: Re: "Connection refused" when running Ethernet/RS232 application

 

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.

Nick D.


On 12/12/2012 1:31 AM, 张德敏 wrote:

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

 

 





Replies:
Re:RE: "Connection refused" when running Ethernet/RS232 application 张德敏
References:
"Connection refused" when running Ethernet/RS232 application 张德敏
Re: "Connection refused" when running Ethernet/RS232 application Nicholas P. DiMonte

Navigate by Date:
Prev: Re: LeCroy DSO using VXI Nicholas P. DiMonte
Next: Re: Utilities for EPICS on Multi-Core Linux Shen, Guobao
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: "Connection refused" when running Ethernet/RS232 application Nicholas P. DiMonte
Next: Re:RE: "Connection refused" when running Ethernet/RS232 application 张德敏
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·