EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: streamDevice/Asyn Error: Businterface not found
From: "Mark Rivers" <[email protected]>
To: "Porter, Rodney R." <[email protected]>, <[email protected]>, "Dirk Zimoch" <[email protected]>
Date: Tue, 18 Apr 2006 14:14:08 -0500
Rodney,
 
asyn autoconnect ports will do exactly as you observe, they will show as disconnected until the first I/O operation, or other operation (such as setting trace mask) that wakes up the port thread.  This is not a sign of a problem, it is normal (if a bit confusing).
 
I don't know why streamDevice is giving a connection error.
 
By coincidence I am working on some changes that will fix this behavior, so that that if pasynmanager->connectDevice is called for a port with autoConnect=1 and isConnected=0, then asynManager will queue a request to call pasynCommon->connect.  That way devices will show as connected even before any I/O or setting of trace masks has happened.  That should make things less confusing.  I got this code written before asyn 4.5 was released, but it needs more testing.  It should be included in 4.6 if it works OK.
 
Mark
 


From: Porter, Rodney R. [mailto:[email protected]]
Sent: Tuesday, April 18, 2006 2:04 PM
To: [email protected]; Dirk Zimoch
Subject: streamDevice/Asyn Error: Businterface not found

I am running EPICS 3.14.8.2, tornado 2.2, asyn 4.5, streamDevice 2.0 on mvme167 and ppc2304 CPUs with a serial port server.  I am able to connect to the serial devices with the generic serial record, but streamDevice gives me a connection error.  asynReport() shows the port disconnected until I connect with the generic serial record or turn on the trace masks.  Am I missing something in the initialization, or is there a problem with the code. 

Rodney Porter
Sr. Scientific Programmer
Data Aquisition & Detector Systems
Intense Pulsed Neutron Source
Argonne National Laboratory
9700 So. Cass Ave
Argonne, IL  60439 USA
Ph. (630) 252-7151
E-mail: [email protected]
IPNS website: www.pns.anl.gov
 
Most of boot output follows:
____________________________________________________________________________

dbLoadDatabase("$(TOP)/dbd/ancVx.dbd")

interrupt:

ei0: reset

value = 0 = 0x0

ancVx_registerRecordDeviceDriver(pdbbase)

value = 0 = 0x0

# Disable Logging

iocLogDisable = 1

iocLogDisable = 0x41e738: value = 1 = 0x1

###############################################################################

# Asyn Configuration.

drvAsynSerialPortConfigure("L0","/tyCo/1",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L7","192.168.1.251:2007",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L8","192.168.1.251:2108",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L9","192.168.1.251:2009",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L10","192.168.1.251:2010",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L11","192.168.1.251:2011",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L12","192.168.1.251:2012",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L13","192.168.1.251:2013",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L14","192.168.1.251:2014",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L15","192.168.1.251:2015",0,0,0)

value = 0 = 0x0

drvAsynIPPortConfigure("L16","192.168.1.251:2016",0,0,0)

value = 0 = 0x0

###############################################################################

# StreamDevice Configuration.

epicsEnvSet("STREAM_PROTOCOL_PATH", "$(TOP)/protocols")

value = 0 = 0x0

###############################################################################

# Load EPICS Records

# Uncomment Records and change macro substitutions according to your application

dbLoadRecords("$(TOP)/db/event.db","INST=porter,NN=0,MM=0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/runTime.db","INST=porter,NN=0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/lksh.db","INST=porter,NN=0,PORT=L8")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/lksh.db","INST=porter,NN=1,PORT=L0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/porterMotor.db")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/posChanger.db","INST=porter,NN=0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/motorDev2.db","INST=porter,MDEV=huber,NN=0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/motorDev3.db","INST=porter,MDEV=mdev,NN=0")

value = 0 = 0x0

dbLoadRecords("$(TOP)/db/motorDev6.db","INST=porter,MDEV=xyz,NN=0")

value = 0 = 0x0

dbLoadRecords("$(AUTOSAVE)/asApp/Db/save_restoreStatus.db", "P=porter:sr:")

value = 0 = 0x0

dbLoadRecords("$(ASYN)/db/asynRecord.db", "P=porter,R=asyn,PORT=L8,ADDR=0,OMAX=0,IMAX=0")

value = 0 = 0x0

cd startup

value = 0 = 0x0

###############################################################################

oms58Setup(6, 0x3000, 190, 5, 10)

value = 0 = 0x0

###############################################################################

iocInit

Starting iocInit

############################################################################

### EPICS IOC CORE built on Mar 30 2006

### EPICS R3.14.8.2 $R3-14-8-2$ $2006/01/06 15:55:13$

############################################################################

reboot_restore: entry for file 'pos.sav'

reboot_restore (v4.7): entry for file 'pos.sav'

reboot_restore: Found filename 'pos.sav' in restoreFileList.

*** restoring from '/net/iocappsDev/rporter/inst/autosave/porter/pos.sav' at initHookState 5 ***

../dbrestore.c(96): [0x3d0002]=myFileCopy:S_objLib_OBJ_UNAVAILABLEreboot_restore: done with file 'pos.sav'

reboot_restore: entry for file 'set.sav'

reboot_restore (v4.7): entry for file 'set.sav'

reboot_restore: Found filename 'set.sav' in restoreFileList.

*** restoring from '/net/iocappsDev/rporter/inst/autosave/porter/set.sav' at initHookState 5 ***

../dbrestore.c(96): [0x3d0002]=myFileCopy:S_objLib_OBJ_UNAVAILABLE../dbrestore.c(96): [0x3d0002]=myFileCopy:S_objLib_OBJ_UNAVAILABLEreboot_restore: done with file 'set.sav'

Businterface 'L8' not found for 'porter:lksh_0:idnstrg'

porter:lksh_0:idnstrg: Can't attach to bus L8 -1

porter:lksh_0:idnstrg: streamInitRecord failed

Businterface 'L0' not found for 'porter:lksh_1:idnstrg'

porter:lksh_1:idnstrg: Can't attach to bus L0 -1

porter:lksh_1:idnstrg: streamInitRecord failed

Businterface 'L8' not found for 'porter:ls330_0:atype'

porter:ls330_0:atype: Can't attach to bus L8 -1

porter:ls330_0:atype: streamInitRecord failed

Businterface 'L8' not found for 'porter:ls330_0:btype'

porter:ls330_0:btype: Can't attach to bus L8 -1

porter:ls330_0:btype: streamInitRecord failed

Businterface 'L8' not found for 'porter:ls330_0:cuid'

porter:ls330_0:cuid: Can't attach to bus L8 -1

porter:ls330_0:cuid: streamInitRecord failed

Businterface 'L0' not found for 'porter:ls330_1:atype'

porter:ls330_1:atype: Can't attach to bus L0 -1

porter:ls330_1:atype: streamInitRecord failed

Businterface 'L0' not found for 'porter:ls330_1:btype'

porter:ls330_1:btype: Can't attach to bus L0 -1

porter:ls330_1:btype: streamInitRecord failed

Businterface 'L0' not found for 'porter:ls330_1:cuid'

porter:ls330_1:cuid: Can't attach to bus L0 -1

porter:ls330_1:cuid: streamInitRecord failed

Businterface 'L8' not found for 'porter:lksh_0:rst'

porter:lksh_0:rst: Can't attach to bus L8 -1

porter:lksh_0:rst: streamInitRecord failed

Businterface 'L0' not found for 'porter:lksh_1:rst'

porter:lksh_1:rst: Can't attach to bus L0 -1

porter:lksh_1:rst: streamInitRecord failed

reboot_restore: entry for file 'set.sav'

reboot_restore (v4.7): entry for file 'set.sav'

reboot_restore: Found filename 'set.sav' in restoreFileList.

*** restoring from '/net/iocappsDev/rporter/inst/autosave/porter/set.sav' at initHookState 6 ***

reboot_restore: done with file 'set.sav'

iocInit: All initialization complete

value = 0 = 0x0

###############################################################################

# Configure autoSave for EPICS autoSaveRestore. (task named "save_restore")

# save positions every five seconds

create_monitor_set("pos.req",5,"INST=porter")

value = 0 = 0x0

# save other things every thirty seconds

create_monitor_set("set.req",30,"INST=porter")

value = 0 = 0x0

###############################################################################

Done executing startup script /net/iocappsDev/rporter/R3.14.8/ioc/Anc/iocBoot/iocporter-172/st.cmd

iocporter-172> ../dbrestore.c(96): [0x3d0002]=write_it:S_objLib_OBJ_UNAVAILABLE../dbrestore.c(96): [0x3d0002]=write_it:S_objLib_OBJ_UNAVAILABLE../dbrestore.c(96): [0x3d0002]=write_it:S_objLib_OBJ_UNAVAILABLE../dbrestore.c(96): [0x3d0002]=myFileCopy:S_objLib_OBJ_UNAVAILABLEporter:lksh_0:idnstrg: Record not initialised correctly

porter:lksh_1:idnstrg: Record not initialised correctly

porter:lksh_0:idnstrg: Record not initialised correctly

porter:lksh_1:idnstrg: Record not initialised correctly

 
 

Navigate by Date:
Prev: streamDevice/Asyn Error: Businterface not found Porter, Rodney R.
Next: Problems with files in seq-2-0-11/configure Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: streamDevice/Asyn Error: Businterface not found Dirk Zimoch
Next: Problems with files in seq-2-0-11/configure Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024