xyphro / UsbGpib

Versatile, cheap and portable USB to GPIB converter (USBTMC class based)
MIT License
277 stars 50 forks source link

Device enumerating but getting an error on 34401a power up #32

Closed hobbymachinist closed 1 year ago

hobbymachinist commented 1 year ago

Hi,

I can see the device enumerating, but noticing an error on power up of DMM if the usb is connected to host. If I plugin the usb after the DMM has powered up, I don't see the error. Race condition ?

[3481329.791761] usb 1-1: new full-speed USB device number 81 using xhci_hcd
[3481329.940618] usb 1-1: config 1 has an invalid descriptor of length 0, skipping remainder of the config
[3481329.941606] usb 1-1: New USB device found, idVendor=03eb, idProduct=2065, bcdDevice= 0.01
[3481329.941619] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3481329.941624] usb 1-1: Product: GpibUsb
[3481329.941629] usb 1-1: Manufacturer: XyphroLabs
[3481329.941633] usb 1-1: SerialNumber: GPIB_22_82039523046351C9F031
[3481333.842791] usb 1-1: USB disconnect, device number 81
[3484953.394993] usb 1-1: new full-speed USB device number 82 using xhci_hcd
[3484953.543834] usb 1-1: config 1 has an invalid descriptor of length 0, skipping remainder of the config
[3484953.544857] usb 1-1: New USB device found, idVendor=03eb, idProduct=2065, bcdDevice= 0.01
[3484953.544870] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[3484953.544877] usb 1-1: Product: GpibUsb
[3484953.544881] usb 1-1: Manufacturer: XyphroLabs
[3484953.544885] usb 1-1: SerialNumber: HEWLETT-PACKARD_34401A_0_7-5-2

image

hobbymachinist commented 1 year ago

Ah, this is probably related to IDN query on power up and the termination strings. I've set it to terminate with carriage return and it seems to behave now. Thanks again for this work, very useful :heart: