From: J. S. <js...@gm...> - 2020-02-09 11:10:51
|
Hi, i have two USB-GPIB adapters. Agilent 82357B ( 90 Bucks „new“ on ebay; most probably copy ) and Keithley KUSB-488. They are both working fine if only one is used. But i am not able to use them both attached at the same time. I did struggle a bit with the udev rules but am now pretty confident that i have that set up properly. Since product id or serial did not work reliable i cut it down to just the manufacturer to decide which port to use. If i interpret the below messages correct than it is successful. It just seems that somewhere in the process of attaching my wish is getting ignored. I switched between Keithley and Agilent for "—minor 1“ but it makes no difference. I also tried a higher port „—minor 2“ and that also makes no difference. From the below messages you can see that gpib_udev_config is sending the correct options to gpib_config. Next message is always "kernel: gpibx: exiting autospoll thread" ( where x is the corresponding number of „—-minor x“ option) Thereafter comes the "detach message" followed by the "attach to interface 0“ message. I did surf the source files a bit and in /linux-gpib-kernel/drivers/gpib/sys/init.c i found the function that is printing the „exiting autospoll thread“. static int autospoll_thread(void *board_void) -snip printk("gpib%i: exiting autospoll thread\n", board->minor); Another interesting aspect is that the „detached“ message will not appear after you pull the USB cable. It will appear after the next connect after „exiting autospoll“ message. Right know i dont have enough insight to the mechanism and the structure of the whole process so i can not troubleshoot further. Should i increase verbosity of the driver/module? How? Anything else i could try? Best regards Joerg ———————————————————copy & paste of /var/log/messages after a disonnect/connect---------------- Feb 9 10:29:49 raspberrypi kernel: [ 153.631303] usb 1-1.4: USB disconnect, device number 10 Feb 9 10:32:35 raspberrypi kernel: [ 319.302157] usb 1-1.4: new high-speed USB device number 11 using dwc_otg Feb 9 10:32:35 raspberrypi kernel: [ 319.432611] usb 1-1.4: New USB device found, idVendor=0957, idProduct=0518, bcdDevice= 0.00 Feb 9 10:32:35 raspberrypi kernel: [ 319.432627] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0 Feb 9 10:32:35 raspberrypi mtp-probe: checking bus 1, device 11: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4" Feb 9 10:32:35 raspberrypi mtp-probe: bus: 1, device: 11 was not an MTP device Feb 9 10:32:35 raspberrypi /usr/local/lib/udev/gpib_udev_fxloader: loading firmware /usr/local/share/usb/agilent_82357a/measat_releaseX1.8.hex for 957/518/0 to /dev/bus/usb/001/011 Feb 9 10:32:35 raspberrypi kernel: [ 319.519318] usb 1-1.4: USB disconnect, device number 11 Feb 9 10:32:37 raspberrypi kernel: [ 321.352162] usb 1-1.4: new high-speed USB device number 12 using dwc_otg Feb 9 10:32:37 raspberrypi kernel: [ 321.482606] usb 1-1.4: New USB device found, idVendor=0957, idProduct=0518, bcdDevice= 0.00 Feb 9 10:32:37 raspberrypi kernel: [ 321.482622] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0 Feb 9 10:32:37 raspberrypi mtp-probe: checking bus 1, device 12: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4" Feb 9 10:32:37 raspberrypi mtp-probe: bus: 1, device: 12 was not an MTP device Feb 9 10:32:37 raspberrypi /usr/local/lib/udev/gpib_udev_fxloader: loading firmware /usr/local/share/usb/agilent_82357a/measat_releaseX1.8.hex for 957/518/0 to /dev/bus/usb/001/012 Feb 9 10:32:37 raspberrypi kernel: [ 321.567331] usb 1-1.4: USB disconnect, device number 12 Feb 9 10:32:39 raspberrypi kernel: [ 323.402162] usb 1-1.4: new high-speed USB device number 13 using dwc_otg Feb 9 10:32:39 raspberrypi kernel: [ 323.533080] usb 1-1.4: New USB device found, idVendor=0957, idProduct=0718, bcdDevice= 0.00 Feb 9 10:32:39 raspberrypi kernel: [ 323.533094] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=5 Feb 9 10:32:39 raspberrypi kernel: [ 323.533104] usb 1-1.4: Product: 82357B () Feb 9 10:32:39 raspberrypi kernel: [ 323.533115] usb 1-1.4: Manufacturer: Agilent Technologies, Inc. Feb 9 10:32:39 raspberrypi kernel: [ 323.533124] usb 1-1.4: SerialNumber: MY49451763 Feb 9 10:32:39 raspberrypi kernel: [ 323.534081] probe succeeded for path: usb-3f980000.usb-1.4 Feb 9 10:32:39 raspberrypi mtp-probe: checking bus 1, device 13: "/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4" Feb 9 10:32:39 raspberrypi mtp-probe: bus: 1, device: 13 was not an MTP device Feb 9 10:32:39 raspberrypi /usr/local/lib/udev/gpib_udev_config: entered for Product: 957/718/0 Devpath: /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0 Serial: MY49451763 Feb 9 10:32:39 raspberrypi /usr/local/lib/udev/gpib_udev_config: gpib_config options: --minor 2 --board-type agilent_82357a Feb 9 10:32:39 raspberrypi kernel: [ 323.630664] gpib2: exiting autospoll thread Feb 9 10:32:39 raspberrypi kernel: [ 323.630710] agilent_82357a_detach: detached Feb 9 10:32:39 raspberrypi kernel: [ 323.630838] attached to bus interface 0, address 0x00d05394 Feb 9 10:32:39 raspberrypi kernel: [ 323.932673] agilent_82357a_attach: attached |