[SOLVED] p910nd and HP1020

[SOLVED] p910nd and HP1020

Postby matt_max » Wed Apr 15, 2015 7:29 pm

Hi everyone,
First of all I would like to thank you guys. This firmware for ISP1 is really amazing - fast & stable :applause but there are 2 things that I'm trying to figure out:
1) I would like to replace 500gb with 1tb or even 2 tb - is it possible? What about fdisk partition steps? Only /dev/sda8 should be set larger right?
2) When I connect my HP 1020 to Lacie and turn on P910nd printer server something strage is going on. Printer is set up in my Windows7 computer but when I send document
it is printing continuously and I see in spool that the task is repeated over and over. I think p910nd daemon should be started with "-b" switch. The -b option turns on bidirectional copying.
But WHERE THE HECK is config file for p910nd :?: Where can I change it? Or maybe there is same "magical" way to use HP LaserJet 1020 with Lacie Internet space vs1?

Someone :please help me.
Last edited by matt_max on Sat Apr 18, 2015 6:12 pm, edited 1 time in total.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: p910nd and HP1020

Postby fvdw » Wed Apr 15, 2015 7:59 pm

matt_max wrote:Hi everyone,
First of all I would like to thank you guys. This firmware for ISP1 is really amazing - fast & stable :applause but there are 2 things that I'm trying to figure out:
1) I would like to replace 500gb with 1tb or even 2 tb - is it possible? What about fdisk partition steps? Only /dev/sda8 should be set larger right?

yes you can use disks up to 2 TB. If you want to use bigger ones then the bootloader must be upgraded. Currently i do not have an upgrade for that yet. Indeed for partition table you only need to increase partition 8
2) When I connect my HP 1020 to Lacie and turn on P910nd printer server something strage is going on. Printer is set up in my Windows7 computer but when I send document
it is printing continuously and I see in spool that the task is repeated over and over. I think p910nd daemon should be started with "-b" switch. The -b option turns on bidirectional copying.
But WHERE THE HECK is config file for p910nd :?: Where can I change it? Or maybe there is same "magical" way to use HP LaserJet 1020 with Lacie Internet space vs1?

Someone :please help me.

There is no config file for this daemon, to change startup option we must edit the scripts that starts the daemon. I need to look how we implemented it, it is a while ago that it was added ;)
attached a guide how to setup the printer in windows 7.
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd and HP1020

Postby fvdw » Wed Apr 15, 2015 8:20 pm

found it (how we implemented it)
The daemon is started using this command
Code: Select all
/usr/sbin/p910nd -f /dev/usb/lp0

it needs a more reading on the internet to add a config file
this weekend I will have a closer look how we can add the setting of options for this daemon

If you are familiar with Linux you could connect via ssh and start the daemon manually by using above command and add the -b option before the -f option (this specifies the device to use)
so something like this
Code: Select all
/usr/sbin/p910nd -b -f /dev/usb/lp0
fvdw
Site Admin - expert
 
Posts: 13239
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: p910nd and HP1020

Postby matt_max » Wed Apr 15, 2015 9:22 pm

As I said before my HP1020 is connected and visible in my Windows7 machine but every single file is printing over and over. I think it is becouse printer is not communicate with Lacie. I mean there is only one way communication between nas and printer and therefore windows7 spool thinks that job is never done and repeat it.

I've read about /usr/sbin/p910nd -f /dev/usb/lp0 but I don't know in which file it is set up. I'll try to do it manually but there should be daemon file somewhere which start it when you press "Start server" button in "Attached Devices" menu.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: p910nd and HP1020

Postby Jocko » Thu Apr 16, 2015 6:41 am

Hi matt_max,

Maybe to more clarity, fvdw-sl uses only a command line to start and set the daemon.

To validate your suggestion : start p910 daemon from the menu and in Putty do
Code: Select all
kill -9 `cat /var/run/p9100d.pid` (please to keep the chars `)
/usr/sbin/p910nd -b -f /dev/usb/lp0
So now check if with the flag b there is no longer issue.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: p910nd and HP1020

Postby matt_max » Thu Apr 16, 2015 6:59 am

I'm afraid that leads me to nowhere. Every doc I send to printer is reiterated indefinitely. Printer is not send back data about finish the job. Well maybe it is not possible with p910d.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: p910nd and HP1020

Postby Jocko » Thu Apr 16, 2015 7:22 am

:scratch

My last suggestion is to add the following line in services file
Code: Select all
echo -e "p910nd\t\t9100/tcp" >> /etc/services
or
Code: Select all
echo -e "p9100d\t\t9100/tcp" >> /etc/services
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: p910nd and HP1020

Postby matt_max » Thu Apr 16, 2015 8:20 am

Code: Select all
cat /etc/services | grep 9100
give me that:
Code: Select all
jetdirect       9100/tcp        laserjet hplj   #

so imho it is not necessary to add your line there. Maybe I should be more precise: when I send something to printer, Hp1020 print that page multiple times and I have to turn off the printer to stop. In Windows7 spool print job is resume over and over.
I think it's because printer doesn't send back info "job done".
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Re: p910nd and HP1020

Postby Jocko » Thu Apr 16, 2015 8:26 am

As jetdirect is not a supported service by the fvdw-sl, I think that you should comment then line and add my line.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: p910nd and HP1020

Postby matt_max » Thu Apr 16, 2015 9:08 am

I'm sorry but nothing has changed :cry:
I tried both your suggestions but no luck. One thing is strange: when I change /etc/services, restart the daemon and try to print something I see that job in spool but printer do nothing. I have to send firmware first:
Code: Select all
cat /direct-usb/public/sihp1020.dl > /dev/usb/lp0

then the printer "wakes up". After that I can send document and HP1020 starts printing (endlessly). Without firmware it is completely useless.
matt_max
Donator VIP
Donator VIP
 
Posts: 124
Joined: Fri Apr 03, 2015 9:56 am
Location: Warsaw, Poland

Next

Return to Lacie Internet space vs1

Who is online

Users browsing this forum: No registered users and 1 guest

cron