Date: Tue, 2 May 2000 22:48:34 +0200 (13:48 PDT) From: Ulrich Schmid To: hpoj-owners@bstc.net Subject: Re: [HPOJ-OWNERS] HP3150? 1. On Tue, 2 May 2000, Tigran Aivazian wrote: > Thank you, Ulrich - I tried your stuff today and some of it even > worked. Namely, lj3100_mux starts ok after changing the id[] > appropriately. Also, lj3100_status reports correct numbers in the status. > The print doesn't work at all yet - I will see if I can figure out why. If you have a Windows box available, please try to print some example with the lj3150 driver to a FILE. I would like to see the result. > Btw, you have lots of "unknown"s in the code - why not ask HP to provide > some documentation to help with writing the software? Anyone here from HP > listening? The times are changing ... End of 1998 it was not self-evident that big players like HP supported linux... I tried to contact HP both with email and phone end of 1998, but did not get any Documentation. So I had to guess. After I was able to print, I was to lazy to search for more information. > Do you have some tools for tracing the packets as sent by > win95? My way to find out the information was: 1) Under Win95 I printed some example pages with the lj3100 driver to a FILE. Then I analysed this file. Based on this I wrote the gs driver. 2) I connected the parport of a Win95 box with two parports of a linux box, so that the linux box could "emulate" a printer. (It was necessary to use 2 parports on the linux box because a pp has more "in" than "out" pins.) The used cabling is described at the top of pemu.h (in the attachment). With this I was able get some informations about the win95 lj3100 driver. Attached are two versions of a "printer emulater": pps.c: Tries to read SPP data send by the other host. pemu.c + emu3100.c: Partly emulates a lj3100 3) To get a faster impression of the protocol I made a triple connection between the Win95 box, the printer and the linux box. With this I snooped the protocol between Win95 and the printer. trace.c: traces the status of the parport for few seconds. Warning: It blocks the kernel for several seconds! For best results the parport of the Win95 box should be set to SPP mode to force a lower speed. extr*: some tools to analyse the output of trace.c WARNING: I lost a parport with these experiments. The attached files are ugly hacks, just to find something out. NO WARRANTY. > I noticed the tools on the webpage but they come in the source form > and I don't have MSwindows C compiler here - care to email me binaries? I don't have MSwindows C compiler either. And I was not successful using these tools because the lj3100 needs other dll's than an OfficeJet. Regards, Ulrich 2. tools.tar.gz This is a application/x-gzip It might be displayable with metamail. (Invoke menu with right button.) name = tools.tar.gz disposition = attachment filename = tools.tar.gz