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 正常運作?

相關內容