Ni USB gpib 问题

Ni USB gpib 问题

我目前正在开发 Debian Stretch(不稳定)内核 4.9.0-3-amd64(最新版本)。

我在使用 ni usb gpib 时遇到问题。首先,我的安装(适用于我以前的内核)是这里建议的安装:https://www.cl.cam.ac.uk/~osc22/tutorials/gpib_usb_linux.html

以下是dmesg插入设备时的情况:

[73264.867644] usb 3-1.3: USB disconnect, device number 8
[73271.234223] usb 3-1.3: new high-speed USB device number 9 using ehci-pci
[73271.344584] usb 3-1.3: New USB device found, idVendor=3923, idProduct=709b
[73271.344585] usb 3-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[73271.344586] usb 3-1.3: Product: GPIB-USB-HS
[73271.344587] usb 3-1.3: Manufacturer: National Instruments
[73271.344587] usb 3-1.3: SerialNumber: 0152CFE0
[73271.344840] ni_usb_gpib: probe succeeded for path: usb-0000:00:1a.0-1.3

然后就modprobe ni_usb_gpib可以正常工作,不会出现任何问题。

但执行gpib_config返回:

failed to bring board online
failed to configure board
main: Resource temporarily unavailable

以下是相关内容dmesg

[73665.645045] ni_usb_gpib: attach
[73665.645047]  attached to bus interface 0, address 0xffff9b38539cd800
[73665.654427]  product id=0x709b
[73665.654431] MY_PATH/linux-gpib-4.0.3/drivers/gpib/ni_usb/ni_usb_gpib.c: usb_control_msg request 0x41 returned -11
[73665.655167] gpib: interface attach failed

然后,我尝试手动加载固件,已lsusb返回:

Bus 003 Device 009: ID 3923:709b National Instruments Corp. GPIB-USB-HS

我试过:

fxload -D /dev/bus/usb/003/009 -I gpib_firmware-2008-08-10/ni_gpib_usb_b/niusbb_firmware.hex  -s gpib_firmware-2008-08-10/ni_gpib_usb_b/niusbb_loader.hex

固件已在这里找到:http://linux-gpib.sourceforge.net/firmware/

答案如下:

write external: Connection timed out
write external: Connection timed out
write external: Connection timed out
write external: Connection timed out
write external: Connection timed out
write external: Connection timed out
unable to download usb/gpib_firmware-2008-08-10/ni_gpib_usb_b/niusbb_firmware.hex

以及相应的 dmesg:

[74612.772628] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110
[74623.012617] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110
[74633.252252] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110
[74643.491724] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110
[74653.731054] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110
[74663.970461] usb 3-1.3: usbfs: USBDEVFS_CONTROL failed cmd fxload rqt 64 rq 163 len 208 ret -110

这个错误是什么意思?我该怎么做才能让我的 USB 转 gpib 正常工作?

相关内容