home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6145 < prev    next >
Encoding:
Text File  |  1992-09-14  |  1.4 KB  |  28 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!newsgate.watson.ibm.com!yktnews!admin!magrathea!tpg
  3. From: tpg@rchland.vnet.ibm.com (Terry Gliedt)
  4. Subject: sr_scsi_status SENSE_NOTREADY
  5. Sender: news@rchland.ibm.com
  6. Message-ID: <1992Sep14.131510.15221@rchland.ibm.com>
  7. Date: Mon, 14 Sep 1992 13:15:10 GMT
  8. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  9. Nntp-Posting-Host: magrathea.rchland.ibm.com
  10. Organization: IBM Rochester
  11. Lines: 15
  12.  
  13. I have a driver for a SCSI-attached Epson 300C scanner working pretty well. The
  14. code drives the scanner using /dev/sg0 using ioctl (opcodes C6OP_READ and
  15. C6OP-WRITE). After much experimentation it appears there is a maximum number
  16. of bytes of 256 I can read. When I issue an ioctl-read for > 256 bytes, I get a
  17. error in sr_io_status (01x) and a sr_scsi_status of SENSE_NOTREADY.
  18.  
  19. Initially I tried to simply wait a little and retry, but I never get any other
  20. status. I've tried clearing the attention with a sense and retry, but to no
  21. avail. I have tried to break the read into several reads, but this too failed.
  22. There is clearly something I do not understand and so far am unable to guess.
  23. Everything works fine as along as the scanner generates <= 240 bytes per scan
  24. line. As soon as the scanner tries to return > 240 bytes (I think the magic 
  25. number of 256), the SENSE_NOTREADY begins to appear.
  26.  
  27. I'd appreciate some advice from you ioctl-gurus. Thanks! 
  28.