EPICS Home

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  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: stumbled at the first softioc example
From: HaveF <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
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 <[email protected]> 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: [email protected] [[email protected]] on behalf of HaveF [[email protected]]
Sent: Wednesday, October 08, 2014 5:10 AM
To: [email protected]
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  2020  2021  2022  2023  2024 
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  2020  2021  2022  2023  2024