From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Communication with a Network Printer From: nigel@9fs.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-utqxoezkdtfxkqykpuvswfytyd" Message-Id: Date: Wed, 20 Dec 2000 08:19:32 +0000 Topicbox-Message-UUID: 3a77eb90-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-utqxoezkdtfxkqykpuvswfytyd Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit You need to use lpdspool to do lpr protocol I imagine. Here is my entry to spool to the lpd on a FreeBSD machine where the printer is connected. It's not actually postscript; FreeBSD is the RIP. # 600dpi postscript printer named lp via BSD LPD printer queue on george brother printer-room george lp - post+600dpi+nohead generic lpdspool lpd - - FIFO Note that lpdspool only works well to spoolers which don't take the job name as Gospel. lpdspool always sends the same job number (001), so that if the jobs are queued in a filesystem under the same name, you can't send more than one job at once. This is true for the BSD lpd used by FreeBSD for example. I suspect that this isn't true for printers (or Jet Direct cards), otherwise it would have been fixed by now. I have a fix, but it's currently too untidy to publish. --upas-utqxoezkdtfxkqykpuvswfytyd Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by cpu; Tue Dec 19 18:30:46 GMT 2000 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.20.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 2E831199DC; Tue, 19 Dec 2000 13:28:08 -0500 (EST) Received: from dns.irm.r9.fws.gov (dns.irm.r9.fws.gov [164.159.176.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 73F99199D5 for <9fans@cse.psu.edu>; Tue, 19 Dec 2000 13:27:15 -0500 (EST) Received: from FWS.Gov (IDENT:ottom@ottom.r9.fws.gov [164.159.212.30]) by dns.irm.r9.fws.gov (8.9.3/8.8.7) with ESMTP id LAA06062 for <9fans@cse.psu.edu>; Tue, 19 Dec 2000 11:27:12 -0700 Message-ID: <3A3FA888.B0D128B4@FWS.Gov> From: "Mark C. Otto" Organization: U. S. Fish and Wildlife Service MBMO/PHAS X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.12-20smp i686) X-Accept-Language: en MIME-Version: 1.0 To: 9fans@cse.psu.edu References: <20001206140855.5F8CC19A10@mail.cse.psu.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [9fans] Communication with a Network Printer Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0 Precedence: bulk Reply-To: 9fans@cse.psu.edu X-Reply-To: Mark_Otto@FWS.Gov List-Help: List-Post: List-Subscribe: , List-Id: Fans of the O/S Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: Date: Tue, 19 Dec 2000 13:27:20 -0500 I am trying to set up printing on two network printers, an HP3si and a HP4000. Both have jet direct cards. The handshaking with the printer does not seem to work: lp -d3si file_to_print Dec 19 11:02:44 failed to receive ACK, received <0x6c> Dec 19 11:02:44 failed to receive ACK before sending data The message seems to be coming from lpsend. I could use some pointers on where to look next. I can telnet to the printers and get the tcp/ip information on the jet direct card and call on the printer port telnet tcp!3si!515 # or !9100 connected to tcp!3si.irm.r9.fws.gov!9100 on /net/tcp/2 device_name loc dest_host phys_dev_name speed class def_proc spooler stat kill daemon sched 3si Hen-Conf bfbooby tcp!3si!9100 8192 post+300dpi+duplex+nohead generic generic generic generic tcppost FIFO 4k Hen-Conf bfbooby tcp!4k!9100 8192 post/2+600dpi generic generic generic generic tcppost FIFO I made directories for each printer: LPLIB/prob/3si and LPLIB/prob/4k and made them world writable. After running the commands, nothing was in them. --upas-utqxoezkdtfxkqykpuvswfytyd--