HP LaserJet Pro P1102 / P1102w :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
How to switch p1102 from fake CD-ROM to printer? [solved]
Posted by: dejv ()
Date: October 19, 2010 05:59AM

Slightly OT - I'm trying to use p1102 as a network printer plugged to OpenWRT-based router with p910nd print daemon that just forwards raw data from client to printer. The problem is that the printer reports itself as if it was USB CD ROM with CD with Windows drivers, so the OpenWRT box doesn't doesn't recognize it as a printer (listings below). On Windows XP computer, there is some HPLaserService.exe that apparently switches printer to real printer mode. The question is - how can I do the same on linux/openwrt box?
root@OpenWrt:~# ls -l /dev/usb/lp0
ls: /dev/usb/lp0: No such file or directory
root@OpenWrt:~# lsusb
Bus 001 Device 003: ID 03f0:002a Hewlett-Packard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:~# lsusb -vs3

Bus 001 Device 003: ID 03f0:002a Hewlett-Packard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x03f0 Hewlett-Packard
  idProduct          0x002a
  bcdDevice            1.00
  iManufacturer           1 Hewlett-Packard
  iProduct                2 HP LaserJet Professional P1102
  iSerial                 3 000000000Q80B9YCSI1c
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength         8192
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5 HP MS
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x04  EP 4 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered



Edited 1 time(s). Last edit at 11/10/2010 04:41PM by rickrich.

Options: ReplyQuote
Re: How to switch p1102 from fake CD-ROM to printer?
Posted by: spear ()
Date: November 10, 2010 04:09PM

dejv Wrote:
-------------------------------------------------------
> Slightly OT - I'm trying to use p1102 as a network
> printer plugged to OpenWRT-based router with
> p910nd print daemon that just forwards raw data
> from client to printer. The problem is that the
> printer reports itself as if it was USB CD ROM
> with CD with Windows drivers, so the OpenWRT box
> doesn't doesn't recognize it as a printer
> (listings below). On Windows XP computer, there is
> some HPLaserService.exe that apparently switches
> printer to real printer mode. The question is -
> how can I do the same on linux/openwrt box?
>

You may connect once p1102 to win-computer, and disable "HP Smart setup" by SIUtility (/UTIL on driver disk)

Options: ReplyQuote
Re: How to switch p1102 from fake CD-ROM to printer?
Posted by: rickrich ()
Date: November 10, 2010 04:40PM

http://www.hp.com/hpinfo/newsroom/press_kits/2010/plugandprint/pdf/Smart_Install_FAQ.pdf
25. Can I turn HP Smart Install off or on?
    Yes. You can use the HP Smart Install utility to disable/enable HP Smart Install. The utility is
    stored on the software CD, in the UTIL folder. SIUtility.exe is for 32-bit operating systems and
    SIUtility64.exe is for 64-bit operating systems.

Options: ReplyQuote
Getting HP LaserJet P1102 to work on FreeBSD with foo2zjs
Posted by: bahman.kahinpour ()
Date: January 27, 2011 12:40AM

It was around two weeks that I was trying to get this HP P1102 to work on FreeBSD and last night I managed to make it show up its /dev/ulpt0. As the solution can be useful to many people I think I better post it here. I do not want other FreeBSD fans to suffer this pain.

The printer HP LaserJet P1102 has a virtual CD-ROM (a fake USB CD drive). I mean when you connect it to your PC, it shows up as a USB CD drive not an actual printer. The fake CD-ROM contains Windows drivers for the printer. Because of this, the printer will not actually be recognized AS A PRINTER but will be recognized as a USB CD-DRIVE. That's why /dev/ulpt0 will not show up, that's why HPLIP doesn't recognize it.

If you wish to use your HP LaserJet P1102 on FreeBSD, you should take this workaround:
1-Connect the printer to a Windows PC (unfortunately you have to use Windows, that's too bad) and turn it on. The fake CD-ROM appears on Windows.
2-Insert the original Driver CD that ships with the printer (I mean the actual physical Driver CD-ROM not this fake one).
3-Run SIUtility.exe or SIUtility64.exe from the UTIL folder and COMPLETELY DISABLE THIS "HP SMART INSTALL" FEATURE.
4-Get back to FreeBSD. Printer is recognized and /dev/ulpt0 shows up.

I have not been able to actually print anything on FreeBSD so far but I will keep on trying and post it here when I find a good solution!!!

Good Luck
Bahman Kahinpour

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.