Re: Bug in usbtmc_read (drivers/usb/class/usbtmc.c) with usb transfers with boundaries Packages

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

 



Am Montag, 25. Juni 2012, 13:00:13 schrieb Michael Bramer:
> Hello
> (please send reply in CC)
> 
> I have a problem, if my device send a tmc package with 52 (or 52+n*64) 
> Bytes. With the 12 bytes of the tmc header, the usb packages is 'full' 
> and the tmc drive reply with a ETIMEDOUT
> 
> [8336519.353913] usbtmc 4-1:1.0: Unable to read data, error -110
> 
> on the command line:
> 
> root@think:~# echo -ne "P1" > /dev/usbtmc0 ; cat < /dev/usbtmc0
> cat: -: Connection timed out
> 
> With wireshark I can see the full usb packages with all it's data.
> 
> (the usb packet size is 64 Bytes)
> 
> If the device send data and the last usb package ist not full, all will 
> work without problems.
> 
> Kernel: Linux version 2.6.32-5-amd64
> 
> Have you a fix or a idea?

The host is waiting for a zero package. Whether it should do so
is another question.

	Regards
		Oliver
--
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