On Sat, 25 Nov 2006 15:33:16 +0100 abel deuring <adeur...@gmx.net> wrote:
> > Perhaps I am missing the point, but here one SCSI command finished > with an error, and below another SCSI command is sent to the device. > Can't you check for the error here and decide to wait? Or handle I added that check. The problem was that the first command only returned after a couple of mins. > the sense data in another way? Admitted, the data of the sense > buffer is not very enlightening: UNIT ATTENTION does not tell very > much by itself, but you know which command caused the error, and the > documentation of the scanner may give a better clue what might have > happened. > > Calling TEST UNIT READY before a "real" command is often also a good > way to avoid longer hangs. that worked! It seems calling it before the first command is enough. Do you think it should be called before every command? -- Best regards, Alessandro Zummo, Tower Technologies - Turin, Italy http://www.towertech.it