|
From: Riccardo <r.d...@ti...> - 2006-03-22 15:15:11
|
Hello,
I'm having problems using the linux-gpib driver with the GPIB-USB-HS.
The ibtest program doesn't work:
$ ibtest
Do you wish to open a (d)evice or an interface (b)oard?
(you probably want to open a device): b
enter name of interface board (or device) you wish to open: ni_usb
trying to open board named 'ni_usb'
failed to open board
$ ibtest
Do you wish to open a (d)evice or an interface (b)oard?
(you probably want to open a device): d
enter primary gpib address for device you wish to open [0-30]: 8
trying to open pad = 8 on /dev/gpib0 ...
libgpib: IBOPENDEV ioctl failed
libgpib: error in is_cic()!
ibdev error
ibsta = 0x8000 < ERR >
iberr= 0
EDVR 0: OS error
ibcnt = 19
Aborted
It the first time I use gpib, so maybe it is due to a
misconfiguration.
I have compiled the version 3.2.06 from CVS in the kernel 2.6.15.
When I plug in the the interface the device driver are created:
crw-rw---- 1 root gpib 160, 0 2006-03-22 15:21 /dev/gpib0
and dmesg gives me:
usb 5-4: new high speed USB device using ehci_hcd and address 11
Linux-GPIB 3.2.06 Driver -- Kernel Release 2.6.15.6
/usr/src/linux-gpib/driver/ni_usb/ni_usb_gpib.c: ni_usb_gpib driver
loading
ni_usb_gpib: probe succeeded for path: usb-0000:00:1d.7-4
usbcore: registered new driver ni_usb_gpib
gpib: registered ni_usb_b interface
My /etc/gpib.conf is:
interface {
minor = 0
board_type = "ni_usb"
name = "blue"
pad = 0
sad = 0
timeout = T3s
eos = 0x0a
set-reos = yes
set-bin = no
set-xeos = no
set-eot = yes
master = yes
}
device {
minor = 0
name = "voltmeter"
pad = 8
sad = 0
}
Any suggestion?
Thanks in advance,
Riccardo
|