OpenWrt Forum Archive

Topic: HP Laserjet 1020 printing @ Asus wl-500gP with p910nd

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I cannot get my laserjet 1020 USB-printer to work. The printer works fine with my debian or windows box if connected directly.


I used the howto @ http://wiki.openwrt.org/OpenWrtDocs/Kam … figuration under 2.0.3 and http://wiki.openwrt.org/PrinterSharingHowto


I tryed usb 1.1 drivers only and 2.0 drivers only...with the same results. I tested under kamikaze 7.07 and WR 0.9.


The usb and printer driver seem to load successfully:


Jan  1 00:17:07 (none) kern.info kernel: hub.c: new USB device 01:03.2-2, assigned address 4
Jan  1 00:17:07 (none) kern.info kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17

I load the firmware with 'cat /usr/lib/fw/sihp1020.dl > /dev/usb/lp0' which takes ~ 1sec and doesn't give any errors. I also used a hotplug script for firmware loading, but printer simply doesn't print anything.

ps -aux shows that p910nd is running:   720 root        260 S   p9100d -b -f /dev/usb/lp0 0   ; with bidirectional printing and the correct device. It is active @port 9100 and if i try to print over the network with windows or linux (cups) client, the following appears in 'logread':

Jan  1 02:00:12 (none) kern.notice p9100d[720]: Connection from 192.168.0.33 port 44626 accepted
Jan  1 02:00:12 (none) kern.notice p9100d[720]: Finished job: 1520 bytes received, 0 bytes sent

What's maybe interesting, it NEVER has anything 'sent', always 0bytes .. is this normal?

I installed the foo2zjs stuff under linux and the original HP driver under windows. With both setups i can print, if the laserjet is directly connected via USB.

Please help! smile

(Last edited by freezer2k on 3 Aug 2007, 20:33)

Hello
I use LJ 1018 with p9100d  and it works well.

Can you check if your firmware loads successfully? You can check it using tool from http://oleg.wl500g.info/hplj/
Just run usb_printerid, it should display something like that:
MFG:Hewlett-Packard;MDL:HP LaserJet 1018;CMD:ACL;CLS:PRINTER;DES:HP LaserJet 1018;FWVER:20051028;

if firmware is not loaded, it will never display "FWVER:.*"

Thanks man!

I loaded the firmware and used this printerid tool, it didn't show any FWVER.

Then i compared the sizes of the firmware file from the oleg site and the FW i downloaded over the foo2zjs package....

  188  123 -rw-r--r--    1 root     root       126100 Jan  1 00:08 fw.old
    201  123 -rw-r--r--    1 root     root       126151 Jan  1 08:39 sihp1020.dl


fw.old is the foo2zjs ./getweb firmware. For some reason it is 51bytes smaller...

Anyway. I loaded the oleg FW file and in the same moment the printer did some 'bootup stuff', means it began to blink and buzz wink

Now printing over p910nd works just fine :-) So it seems like getweb puts out some corrupted firmware!?


Greetings,
Freezer

(Last edited by freezer2k on 5 Aug 2007, 10:38)

I believe there is some header or footer in the firmware file.
Can you try to diff these files to check it out?

The main difference seems to be really some sort of init code:

"^[%-12345X@PJL ENTER LANGUAGE=ACL
^@???^@^A??"

After this first 46? bytes both files are very equal. Next thing after init is "20041129^?ELF^A^B^A^ ..." which, of course, is the first thing in the getweb version!

I tryed to cut off the first 51bytes, but since the init code is only 46bytes (did not count exactly, but def. not 51) long, 51bytes is too much. So there will be some/an other little differences in the files.

The firmware versions seem to be the same "20041129" so i guess version from 11-29-2004 ..

(Last edited by freezer2k on 6 Aug 2007, 19:42)

The discussion might have continued from here.