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  2012  2013  <20142015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: stumbled at the first softioc example
From: HaveF <iamaplayer@gmail.com>
To: Mark Rivers <rivers@cars.uchicago.edu>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 9 Oct 2014 09:02:56 +0800

Thanks for reading and reply ;-)

Based on @Michael Davidsaver ‘s advice, I find the solution.
I didn’t see iocRun: All initialization complete, so I just use iocInit
command in the prompt, all works fine.
I checked the sum-start.cmd again, and find I write file like this

epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","mytestioc")
dbLoadRecords("sum.db","INST=calc")
iocInit

when I add 1 line at the bottom, all works fine.

I guess, maybe the problem is evoked by the newline problem(\r\n, \n thing),
or it just need a new line in that cmd file.
I don’t go deep into this problem, but record here for others who encounter the same
problem.

Btw, thanks for @Kasemir, Kay, he point out that I should use netstat
like this, because it only output the port number.

netstat -an | grep 5064

On Wed, Oct 8, 2014 at 7:57 PM, Mark Rivers <rivers@cars.uchicago.edu> wrote:
Are you running a firewall (e.g. iptables) on your Linux system?  If so, try turning it off and see if that fixes the problem.

Also, at the IOC prompt type the command

dbl

to make sure that you really do have a record called calc:a.

Mark

________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of HaveF [iamaplayer@gmail.com]
Sent: Wednesday, October 08, 2014 5:10 AM
To: tech-talk@aps.anl.gov
Subject: stumbled at the first softioc example


Hi all,

I’m new to the epics world. I setup epics by this article<https://pubweb.bnl.gov/~mdavidsaver/epics-doc/epics-starting.html#_softioc>.
But I didn’t get pv successful. After some search, I still don’t know why.

In the article, it set the env


export EPICS_CA_AUTO_ADDR_LIST=NO

export EPICS_CA_ADDR_LIST=localhost


After start softIoc program, I use caget calc:a, cannot get anything

  Channel connect timed out: 'calc:a' not found.


And I also use the following command to make sure caget works, it seems OK.

 $ sudo tcpdump -i lo  -n -nn udp dst portrange 5064-5065
  02:32:13.408675 IP 127.0.0.1.52067 > 127.0.0.1.5064: UDP, length 40
  02:32:13.441478 IP 127.0.0.1.52067 > 127.0.0.1.5064: UDP, length 40
  02:32:13.505696 IP 127.0.0.1.52067 > 127.0.0.1.5064: UDP, length 40
  02:32:13.632719 IP 127.0.0.1.52067 > 127.0.0.1.5064: UDP, length 40


So, I suspect the softIoc don’t listen the 5064 port.

  netstat -a | grep softIoc


but I find nothing.

What I can do now?

Thanks!


--
--
Sincerely,

HaveF



--
--
Sincerely,

HaveF

References:
stumbled at the first softioc example HaveF
RE: stumbled at the first softioc example Mark Rivers

Navigate by Date:
Prev: Re: TCP connection status : drvAsynIPPort J. Lewis Muir
Next: Re: TCP connection status : drvAsynIPPort Torsten Bögershausen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: stumbled at the first softioc example Mark Rivers
Next: Job Opening at Helmholtz-Zentrum Berlin (HZB) Joachim Rahn
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·