|
From: Riccardo <r.d...@ti...> - 2006-03-22 22:36:09
|
I tought that gpib_config is launched by the hotplug script. In
/etc/hotplug/usb/ni_usb_gpib there are the lines:
GPIB_CONFIG_OPTIONS="--minor 0"
case $PRODUCT in
# ni-usb-hs
3923/709b/*)
gpib_config $GPIB_CONFIG_OPTIONS
;;
I'll try to verify that this script is correctly loaded. On the other
hand maybe I have to specify more option on gpib_config to fit my
interface, but I could not find more information about it.
Riccardo
On Wed, Mar 22, 2006 at 01:54:28PM -0500, Armen Babikyan wrote:
> Hi,
>
> I'm new to linux-gpib, but I think you might have to run the
> "gpib_config" program before the /dev/gpib0 device can be opened.
>
> Good luck,
>
> - Armen
>
> Riccardo wrote:
>
> >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
> >
> >
> >
|