From owner-freebsd-questions Sat Nov 25 18:28:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from murphys-outbound.servers.plus.net (unknown [212.159.14.225]) by hub.freebsd.org (Postfix) with SMTP id 9EB0E37B4C5 for ; Sat, 25 Nov 2000 18:28:22 -0800 (PST) Received: (qmail 14275 invoked from network); 26 Nov 2000 02:14:57 -0000 Received: from unknown (HELO daemon.lpds.sublink.org) (212.159.43.232) by murphys with SMTP; 26 Nov 2000 02:14:57 -0000 Received: from pelissero.org (hyde.lpds.sublink.org [10.0.0.2]) by daemon.lpds.sublink.org (8.9.3/8.9.3) with ESMTP id AAA24975; Sun, 26 Nov 2000 00:28:32 GMT (envelope-from wcp@pelissero.org) Received: (from wcp@localhost) by pelissero.org (8.9.3/8.9.3) id AAA13026; Sun, 26 Nov 2000 00:35:16 GMT (envelope-from wcp) From: "Walter C. Pelissero" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14880.23235.378207.248501@hyde.lpds.sublink.org> Date: Sun, 26 Nov 2000 00:35:15 +0000 (GMT) To: Keith Walker Cc: questions@freebsd.org Subject: Problem with USB printer In-Reply-To: <00112510022900.06194@mars.walker.dom> References: <00112510022900.06194@mars.walker.dom> X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Reply-To: walter@pelissero.org X-Attribution: WP Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I investigated a little bit further the problem of the missing characters at the beginning of the first printed page and it seems it's solved adding 64 nulls (or whatever) at the end of the initialization string. That is: printf "000\033\001@EJL 1284.4\n@EJL \n0000000000000000000000000000000000000000000000000000000000000000" | tr 0 '\0' > /dev/ulpt0 But the problem shows up again at the next page. This printing ASCII files. Printing graphic stuff the problem doesn't show up. Another weird thing is that if I append a formfeed at the end of the ASCII file, the file doesn't get printed at all! On the other hand if I wait a while the file gets printed and then, at that point, I can send a formfeed that makes the printer spit out the sheet of paper. I can think of three cases: - the printer wasn't meant to be used for ASCII printouts because the firmware is buggy and works only with the provided drivers for Windoze and Mac (that is only graphics!) - the printer in USB mode needs a bidirectional protocol we don't support (the formfeed thing might be the symptom) - the forementioned init string is good to initialize the printer for graphic purposes but not for plain ASCII printing (?!) At the moment to avoid endless problems I'm using the printer only for graphics, converting even ASCII files if necesserary (apsfilter). -- walter pelissero http://www.pelissero.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message