Hi,
we try to get the following setup to run:
- redhat linux with a 2.4.18-14 kernel
- the driver in the version 3.1.97
- gpib card:
Measurement Computing (Computer Boards):
PCI-GPIB/300K
(1)
The first problem i experienced was that the PCI card
was not found. I figured out that the vendor number
that the card gives is 0x1107, but the kernel expects
it to be PCI_VENDOR_ID_CBOARDS 0x1307
(from /usr/include/linux/pci_ids.h). I changed that
manually in the driver. Now the card is found and can
be configured with cpib_config and /etc/gpib.conf:
interface{
minor = 0
board_type = "cbi_pci"
name = "PCI"
pad = 0
sad = 0
master = yes
}
device {
minor = 0
name = "tds1"
pad = 11
sad = 0
set-reos = no
}
At least, it doesn't get any error messages, but
(2)
When i try to send a command to a device with the
ibtest program from the examples directory, it says:
sending string: bell
gpib status is:
ibsta = 0x8000 < ERR >
iberr= 1
ECIC 1: Board not controller in charge
To me, that looks like the board is not set to be
master on the bus. I tried giving the option directly
to gpib_config:
-m 0 -p 0 -t cbi_pci --ifc --sre --system-controller
but it didn't change.
Any ideas?
Thx a lot...
Matthias
Logged In: YES
user_id=682031
maybe i don't understand how to execute ./ibtest... What i do:
./ibtest
Do you want to open a device/board: d
pad: 11 (which is configured in our /etc/gpib.conf)
menu [...]: w
bell
Is there any documentation on ibtest?
Logged In: YES
user_id=129750
You are running ibtest correctly. My first guess would be
that your board is damaged or defective, since the vendor id
should definitely not be 1107. Have you tried your board
recently under windows with computer board's drivers?
Logged In: YES
user_id=682031
yes, we tested the board under Windows: It does work with
the Windows drivers from Computer Boards!
Logged In: YES
user_id=129750
Then I'd say there is something wrong with the computer you
are running linux on (or its support by the linux kernel).
I'm not ready to believe that computer board's released a
board with the wrong vendor id (not only that but an id in
use by another company). Also, other people have reported
success with your board.
Logged In: YES
user_id=682031
That's very good news, that other people reported success
with that board. To me, the wrong vendor id had looked as if
i would be the first one to try.
I will install the card tomorrow on a different machine (if
i find one with a newer kernel that might also be good) and
tell you how it worked.
We want to use the cards on a wide scale (3 in the moment,
up to 10 in the next time), so we are really willing to
spend effort in making them run However, time is a pressing.
Can you recommend someone who has experience with that
particular board?
Logged In: YES
user_id=682031
You were right, the PCI slot was indeed broken. Putting the
board into another machine helped. Everything's running
right now. Thanks for the help and nice work, guys!