home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / 3b1 / 3071 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  2.4 KB

  1. Xref: sparky comp.sys.3b1:3071 comp.periphs.printers:2362
  2. Newsgroups: comp.sys.3b1,comp.periphs.printers
  3. Path: sparky!uunet!cs.utexas.edu!torn!cunews!nrcnet0!bnrgate!bwdls61!bwdlh118!clewis
  4. From: clewis@ferret.ocunix.on.ca (Chris Lewis)
  5. Subject: Transparent communications thru parallel port/HP LJIIP+
  6. Message-ID: <1992Aug13.142629.8120@bwdls61.bnr.ca>
  7. Originator: clewis@bwdlh118
  8. Sender: usenet@bwdls61.bnr.ca (Use Net)
  9. Nntp-Posting-Host: bwdlh118
  10. Organization: Myself
  11. Date: Thu, 13 Aug 1992 14:26:29 GMT
  12. Lines: 44
  13.  
  14. I just got a HP LJ IIP plus (so now I can test psroff
  15. before issuing patches ;-) which I've connected to my
  16. 3b1.  The IIP+ has only a parallel port (please, no
  17. flames about not paying attention when I "acquired"
  18. this printer - I didn't have a choice as to model number).
  19.  
  20. Normal text printing works just fine, but as I suspected,
  21. /dev/lp does apply certain "termio-ish" transformations to
  22. data going to the parallel port.  Which is a real no-no
  23. when you're trying to download fonts and rasters etc.
  24.  
  25. <sys/lprio.h> is rather suggestive that there's ways of
  26. controlling this behaviour via ioctls, but I have no
  27. documentation, and I can't figure out some of the operations.
  28. Eg: LP[GS]ET versus LP[GS]ETV or what the "ind" field is for.
  29.  
  30. a ioctl(/dev/fd, LPGET, &lpriostruct) shows "ind" as zero,
  31. "rows" as 66, and "cols" as 1024.  Chances are I'd get partway
  32. by LPSET'ing rows and cols to 0, but that won't necessarily
  33. disable "\n" -> "\n\r" transformations etc.
  34.  
  35. Does anybody have documentation, or program fragments that
  36. explain how this works?   Or, does the lp driver support
  37. other minor device numbers for suppressed transforms?
  38.  
  39. I'd rather not have to binary zap the driver...
  40.  
  41. While I could obtain a serial to parallel port converter,
  42. frankly I'd rather keep it on the parallel port for
  43. reasons of speed - I will probably be doing extensive
  44. raster graphics, and font downloading isn't exactly
  45. cheap in terms of communications time.  Besides, I think
  46. my one remaining free serial port got fried by a line transient.
  47.  
  48. Once I get this working, I'll get groff, and finish
  49. off all of the issues regarding lack of support for PIC
  50. on LJs less than IIIs, implying that hp2pbm will give full
  51. ditroff support on *any* PBM-supported device.
  52.  
  53. My second question: I'll probably be wanting to upgrade the
  54. LJIIP+ in the future.  More memory, and/or PostScript cartridge.
  55. What alternatives to HP are there?  Particularly in memory.
  56.  
  57. Thanks
  58.