EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Enabling drvLinuxGpib (linux-gpib)
From: Gasper Jansa <[email protected]>
To: Emmanuel Mayssat <[email protected]>
Cc: epics <[email protected]>
Date: Tue, 07 Aug 2007 11:14:56 +0200
Dear Emmanuel

You can find the meaning of the EDVR here:
http://linux-gpib.sourceforge.net/doc_html/r536.html

-1 address is used when asynManager wants to connect to the port driver and connect to gpib card.
It searches for gpib card with name defined in first parameter to GpibBoardDriverConfig, in you case
L0.


You must set name option in gpib.conf file like this:

interface {
minor = 0 /* board index, minor = 0 uses /dev/gpib0, minor = 1 uses /dev/gpib1, etc. */
board_type = "cbi_isa" /* type of interface board being used */
name = "L0" /* optional name, allows you to get a board descriptor using ibfind() */
pad = 0 /* primary address of interface */
sad = 0 /* secondary address of interface */
timeout = T3s /* timeout for commands */


eos = 0x0a /* EOS Byte, 0xa is newline and 0xd is carriage return */
set-reos = yes /* Terminate read if EOS */
set-bin = no /* Compare EOS 8-bit */
set-xeos = no /* Assert EOI whenever EOS byte is sent */
set-eot = yes /* Assert EOI with last byte on writes */


/* settings for boards that lack plug-n-play capability */
       base = 0x310    /* Base io ADDRESS                  */
       irq  = 7        /* Interrupt request level */
       dma  = 0        /* DMA channel (zero disables)      */

       master = yes    /* interface board is system controller */
}

Hope this helps.

Best Regards
Gasper

Emmanuel Mayssat wrote:
Hello,

I am trying to communicate over linux-gpib with asyn.
My asyn interface is configured with GpibBoardDriverConfig("L0",1,0,3,0)


(At this point, that's the ONLY COMMAND I have in my stcmd file)

But when I start the ioc ... BOOM !


2007/08/03 17:54:53.352 L0 addr -1 : EDVR 0: OS error.



2007/08/03 17:54:53.353 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect 2007/08/03 17:54:53.353 L0 addr -1 : EDVR 0: OS error. 2007/08/03 17:54:53.353 136742344 autoConnect could not connect 2007/08/03 17:54:53.353 L0 addr -1 : EDVR 0: OS error. 2007/08/03 17:54:53.353 asynManager::asynConnectCallback, port L0 error calling asynCommon->connect


The error seesm to be coming from my gpib libraries.
What does EDVR mean? Where does it get this -1 address? Is my computer smoking? My primary of interface is set to 0 in gpib.conf...
Am I missing gpib options in my stcmd? Probably...


What are common linux-gpib/drvLinuxGpib options?

Have a great weekend !

--
E





References:
Enabling drvLinuxGpib (linux-gpib) Emmanuel Mayssat

Navigate by Date:
Prev: ArchiveDataServer - signals appear to stop changing after run of update_server cron job Devin Bougie
Next: Possible Bug in 3.14.9 Access Security on mv2100 Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Enabling drvLinuxGpib (linux-gpib) Emmanuel Mayssat
Next: problem in communicating to the gpib device with asyn4-6 zhangdemin99
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·