Re: usbtmc driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 04, 2009 at 06:00:40PM +0200, Zimmermann Christoph [zac1] wrote:
> hi
> 
> now i found the correct sysfs location for my device and i see the files 
> needed to configure the behavior of the driver itself (TermChar, 
> auto-abort,...) but i couldn't figure out how to trigger the driver to 
> send a "indicator pulse" setup command (usbtmc spec section 4.2.1.9).
> 
> today i compiled a vanilla 2.6.29-4 kernel with debug messages activated 
> and tried again my usual commands:
> 
> root@localhost:/home/chrigi/GECKO3COM/usbtmc# ./usbtmc_ioctl 0 indpulse
> Error: ioctl returned -1.

Odd.  That means that something happened with the command and it was not
successful.  Can you enable CONFIG_USB_DEBUG and look at the kernel log
messages?

> root@localhost:/home/chrigi/GECKO3COM/usbtmc# echo "*idn?" > /dev/usbtmc0
> root@localhost:/home/chrigi/GECKO3COM/usbtmc# cat /dev/usbtmc0
> MicroLab BFH-TI,GECKO3COM,proto-2,0.3
> cat: /dev/usbtmc0: Die Wartezeit für die Verbindung ist abgelaufen
> 
> 
> the kernel logs looks exactly the same as with my normal distribution 
> kernel:
> 
> Jun  4 17:49:06 miniprijv kernel: [ 2438.365152] usb 1-3: new high speed 
> USB device using ehci_hcd and address 4
> Jun  4 17:49:07 miniprijv kernel: [ 2439.716293] hub 1-0:1.0: unable to 
> enumerate USB device on port 3
> Jun  4 17:49:07 miniprijv kernel: [ 2440.110149] usb 1-3: new high speed 
> USB device using ehci_hcd and address 5
> Jun  4 17:49:08 miniprijv kernel: [ 2440.225352] usb 1-3: configuration 
> #1 chosen from 1 choice
> Jun  4 17:49:47 miniprijv kernel: [ 2479.775242] usbtmc 1-3:1.0: 
> INITIATE_ABORT_BULK_OUT returned 81

That means that your device returned
USBTMC_STATUS_TRANSFER_NOT_IN_PROGRESS, so something is wrong.

> Jun  4 17:49:47 miniprijv kernel: [ 2479.775361] usbtmc 1-3:1.0: 
> INITIATE_ABORT_BULK_IN returned 81

Same here.

> Jun  4 17:49:57 miniprijv kernel: [ 2489.609415] usbtmc 1-3:1.0: Unable 
> to read data, error -110

Have you not started sending data?

> Jun  4 17:49:57 miniprijv kernel: [ 2489.609579] usbtmc 1-3:1.0: 
> INITIATE_ABORT_BULK_IN returned 81

Same error here.

It looks like your device isn't configured properly somehow.  Have you
started to stream data from it?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux