HP Laserjet 1018 on TS101 does not work

Printers, HDDs, USB/eSATA drives, 3rd-party programs
Locked
Douwe
New here
Posts: 2
Joined: Sun Sep 09, 2007 12:27 am
Contact:

HP Laserjet 1018 on TS101 does not work

Post by Douwe »

I try to use my TS-101 (firmware version: 2.1.0 Build 0612) as printserver. I have connecter a HP Laserjet 1018. When i logon to the TS-101 and look at the device configuration for the USB printer it tells me:
Manufacturer: Unknown (65)
Model: ��@
Status: Ready

At least the status is ready, so i try to connect to it.

The printer already worked on the vista PC so when i add a network printer i can select the right HP driver. When i try to print the testpage nothing happens. When i look in the queue for te printer (on the PC) it is empty. I tried another printcommand and i see it apearing in the queue. The status showed for a while storing in queue (i translate this from dutch, so i think the english message will be different) and then the status is empty. Seconds later the queue is empty as well. But no print on the printer.

Does anyone know a solution for this?
Lain_OTN
New here
Posts: 5
Joined: Thu Nov 08, 2007 5:38 am

Post by Lain_OTN »

The same happens to me with TS-101(firmware version: 2.1.1 Build 0827T) and Laserjet 1018

Any solution?
Lain_OTN
New here
Posts: 5
Joined: Thu Nov 08, 2007 5:38 am

Post by Lain_OTN »

I managed to succesfull print on a LaserJet 1018.
But it's a tedious process:

Needed:
QNAP ts-101 firmware with telnet access.
Image of the firmware of the printer in .dl format (I don't know if posting this material is legal, if the administrator give me permission i will upload the file)

//I assume the file is copied to the Public folder
1 - Copy the printer firmware to the NAS (for example in the Public folder), I will assume that the name of the firmware is "hp1018.dl"
2 - Make a telnet connection to the NAS
2.1 - Open a terminal in Windows and type: "telnet NAMEOFYOURNAS 13131"
2.2 - user is "administrator" password is the administrator password of the NAS
3 - type "cat /share/Public/hp1018.dl > /dev/usb/lp0" the printer will start to warmp up.
4 - NOW you can print from any computer of the net

You must do steps 2 & 3 everytime you power cycle the printer, this should work with ts-109 also.
Douwe
New here
Posts: 2
Joined: Sun Sep 09, 2007 12:27 am
Contact:

Post by Douwe »

Great you found the solution.

I installed the telnet firmware, but can't find the 1018.dl anywhere. Can you tell me where / how to find it?
Lain_OTN
New here
Posts: 5
Joined: Thu Nov 08, 2007 5:38 am

Post by Lain_OTN »

If you have a linux machine it's easy to obtain the file,

Under windows:
Install the windows driver print a test page, in the file list used by the driver you would see one called hp1018.img (this is the firmware in RAW format) copy it to use under your linux distro.
mine it's under:
C:\WINDOWS\System32\spool\DRIVERS\W32x86\3\hp1018.img (but this could change)

Under linux:
Install the foo2zjs driver in linux.

Under ubuntu:
sudo apt-get install foo2zjs
Under fedora you must be root:
yum install foo2zjs

copy the hp1018.img under linux.
type the next command:
arm2hpdl hp1018.img > /usr/share/foo2zjs/firmware/hp1018.dl
Now you have the firmware in .dl format, copy it to the nas over ftp or any other method and follow the steps above.

P.D: I tried to make a port of arm2hpdl for windows but without good results, I will keep trying.
.:LexX:.
New here
Posts: 3
Joined: Wed Mar 12, 2008 11:49 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by .:LexX:. »

I have attached .dl file for those of us who don't want to install Linux only for foo2zjs (because it doesn't work on QNAP box). Also i have some ideas for QNAP team how to add support for such "smart" printers:

1. Add support for hotplug.d, like in Kamikaze fw for ASUS WL-700gE.
Here is some links:
http://wiki.openwrt.org/OpenWrtDocs/Kam ... figuration - find section 2.0.3
http://linux-hotplug.sourceforge.net/?selected=usb

2. People with such "smart" devices just place their hotplug scripts listening target devices. Script example:

Code: Select all

#!/bin/sh

FIRMWARE="/hdd/misc/printer/sihp1018.dl"

if [ "$PRODUCT" = "3f0/4117/100" ]
then
        if [ "$ACTION" = "add" ]
        then
                echo "`date` : Sending firmware to printer..." > /var/log/hp
                cat $FIRMWARE > /dev/usb/lp0
                echo "`date` : done." > /var/log/hp
        fi
fi
PS. This solution works perfectly on my ASUS WL-700gE, but not on TS-109 - "cat $FIRMWARE > /dev/usb/lp0" just hangs and printer doesn't warms up completely.
You do not have the required permissions to view the files attached to this post.
pwouters
First post
Posts: 1
Joined: Sat May 03, 2008 10:15 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by pwouters »

I have created a .dl for the HP P1005 printer and works well, thanks for the tip.
Impiety
New here
Posts: 2
Joined: Wed Jul 30, 2008 9:33 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by Impiety »

pwouters wrote:I have created a .dl for the HP P1005 printer and works well, thanks for the tip.
Could you please upload the file?
Impiety
New here
Posts: 2
Joined: Wed Jul 30, 2008 9:33 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by Impiety »

Never mind. I've found the file here:
http://oleg.wl500g.info/hplj/

Code: Select all

cat sihpP1005.dl > /dev/usb/lp0
resulted in

Code: Select all

-sh: /dev/usb/lp0: No such device
But

Code: Select all

cat sihpP1005.dl > /dev/usb/lp3
did work.

Thanks a lot for the tip.

If someone comes up with an idea how to automate this, feel free to share it.
redman
First post
Posts: 1
Joined: Sun May 31, 2009 5:20 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by redman »

HI Guys,
I have managed to get this working on a TS-409 with a HP P1005 using the following command...

cat sihpP1005.dl > /dev/usb/lp6

Not sure why it's lp6 not 0 - 5.....

Thanks for your posts this info has stopped me from pulling out all of my hair, then destroying either or both of my NAS and printer infrustration.

Redman
AgeCoat
Starting out
Posts: 20
Joined: Fri Aug 21, 2009 5:29 am
Location: Netherlands

Re: HP Laserjet 1018 on TS101 does not work

Post by AgeCoat »

Folks,

Also have an HP1018 and it's connected to a TS-239.

TS-239 reports the printer to be present on '<nasname>PR3', status is 'Ready'.

Within XP, printing a Test page results in an entry in the job list.
Some harddisk activity heard in the TS-239
In XP, the job disappears from the job list of the printer within a second
But no blinking or movement of the printer whatsoever and therefor no print.

TS-239 comes equipped with a VGA connector, so I hooked up a spare monitor and a keyboard.
Logged into the box as 'admin', performed the 'cat' command as stated above.
Trial and error proved only lp6 (out of lp0 - lp15) to respond without error so 'cat /share/Public/HP1018.dl > /dev/usb/lp6' is accepted.
But no blinking or movement on the printer.

Tried the Test Page again.
But no blinking or movement on the printer.
But when I issue a print job, the TS-239 responds with three lines stating '/sbin/msg_print: No such file or directory'.
Within directory 'sbin', no 'msg_print' file is present.

Could someone clarify on this and hopefully get me on track with network printing?

It is indeed frustrating to first put up a struggle for every promised feature to start working...

Thx'nAdv.

Regards,
AgeCoat
Server:
- TS-453A 2x2 GB QTS 4.2.1 (20160601) (2016 -)
- 2 * Samsung 1TB HD103SI Raid 1 encrypted (2009 - )
- TS-239 pro (2009 - †2015)

Clients:
- Win10 Home, Android 5.1, 5.1.1, 6.0.1
mrtickle
New here
Posts: 3
Joined: Sun Oct 04, 2009 10:49 pm

Re: HP Laserjet 1018 on TS101 does not work

Post by mrtickle »

I have a TS-209 and HP1018 attached and I have managed to get it to work. I amended the usb.agent file in /etc/hotplug and added the code from .:LexX:. post.

I added the "sleep 3" so the box does not send code before printer is ready.

You will need to edit the file location "/share/Public" to wherever you have saved the "hp1018.dl" file and change the "lp3" to the port your printer is attached to.

Thanks to others on the forum who pointed me in right direction.

P.S Do not forget you create the /var/log/hp file.

P.S version 2 Find out that everytime you reboot box the usb.agent gets overwritten so had to create "autorun.sh" to write edited copy in on reboot. The usb.agent was edited with wordpad so when saved has additional full stops at end of each line which need to be removed for it to work.
You do not have the required permissions to view the files attached to this post.
noco
New here
Posts: 2
Joined: Fri May 20, 2011 5:56 am

Re: HP Laserjet 1018 on TS101 does not work

Post by noco »

Hi,

I have a TS110 and a HP LJ 1018. I tried to do the same as mrtickle but I can't find the "etc/hotplug" directory. Can anybody tell me how to get my printer working? Doing the telnet command works but has to to every time the printer was powered off...


Greets!
noco
New here
Posts: 2
Joined: Fri May 20, 2011 5:56 am

Re: HP Laserjet 1018 on TS101 does not work

Post by noco »

OK, i got it! But I now have the problem that the usb.agent loses the changes after rebooting.
mrtickle wrote:P.S version 2 Find out that everytime you reboot box the usb.agent gets overwritten so had to create "autorun.sh" to write edited copy in on reboot.
Could someone please explain me how I can solve this problem with autorun.sh? I don't know what I have to write in the autorun.sh..


EDIT: OK, got it :)
Locked

Return to “Hardware & Software Compatibility”