Change this line:
dbLoadRecords("db/asynRecord.db","P=AB300,R=Test,PORT=L0,ADDR=0,IMAX=0,OMAX=0")
to this:
dbLoadRecords("$(ASYN)/db/asynRecord.db","P=AB300,R=Test,PORT=L0,ADDR=0,IMAX=0,OMAX=0")
You need to point to the correct directory containing the asynRecord.db file, and the $(ASYN) is needed to do this.
> 2). cas warning: Configured TCP port was unavailable.
You can ignore that warning, it is normal.
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Vahe Sahakyan [[email protected]]
Sent: Tuesday, April 23, 2013 5:49 AM
To: [email protected]
Subject: How to create EPICS device support for a simple serial or GPIB device
Hello,
I followed the instructions described in Eric Norum's "How to create EPICS
device support for a simple serial or GPIB device" paper. Everything goes
ok until I run the st.cmd. I got following message:
root@ubuntu:/home/diagnos/EpicsVG/ab300/iocBoot/iocAB300#
../../bin/linux-x86_64/AB300 st.cmd
dbLoadDatabase("../../dbd/AB300.dbd",0,0)
AB300_registerRecordDeviceDriver(pdbbase)
dbLoadRecords("../../db/devAB300.db","P=AB300:,R=,L=0,A=0")
# Create a diagnostic asynRecord
#cd ${AB300}
dbLoadRecords("db/asynRecord.db","P=AB300,R=Test,PORT=L0,ADDR=0,IMAX=0,OMAX=0")
filename="../dbLexRoutines.c" line number=243
No such file or directory dbRead opening file db/asynRecord.db
#The following command is for a serial line terminal concentrator
drvAsynIPPortConfigure("L0","172.28.28.86:4001",0,0,0)
2013/04/23 11:43:19.175 Can't connect to 172.28.28.86:4001: Connection
refused L0 -1 autoConnect could not connect
#The following commands are for a local serial line
#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")
asynSetTraceMask("L0",-1,0x9)
asynSetTraceIOMask("L0",-1,0x2)
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.12.2 $Date: Mon 2011-12-12 14:09:32 -0600$
## EPICS Base built Apr 16 2013
############################################################################
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 38680,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in
EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
../online_notify.c: CA beacon (send to "172.28.28.127:5065") error was
"Connection refused"
Please, can anybody help me with my problems - What means:
1).
dbLoadRecords("db/asynRecord.db","P=AB300,R=Test,PORT=L0,ADDR=0,IMAX=0,OMAX=0")
filename="../dbLexRoutines.c" line number=243
No such file or directory dbRead opening file db/asynRecord.db
2). cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 38680,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in
EPICS_CA_ADDR_LIST)
iocRun: All initialization complete
../online_notify.c: CA beacon (send to "172.28.28.127:5065") error was
"Connection refused"
Thank you in advance,
Vahe.
- Replies:
- RE: How to create EPICS device support for a simple serial or GPIB device Vahe Sahakyan
- References:
- How to create EPICS device support for a simple serial or GPIB device Vahe Sahakyan
- Navigate by Date:
- Prev:
RE: Multiple copies of IOC Mogamad-Amien Crombie
- Next:
RE: How to create EPICS device support for a simple serial or GPIB device Vahe Sahakyan
- 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
- Navigate by Thread:
- Prev:
How to create EPICS device support for a simple serial or GPIB device Vahe Sahakyan
- Next:
RE: How to create EPICS device support for a simple serial or GPIB device Vahe Sahakyan
- 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
|