On Tuesday 04 April 2006 19:49, Cauligi, Raghothama S wrote:
> Hi Anish,
> Our I/O expert is away on vacation and will be back later in the
> week. He will respond to you upon his return.
> Thanks
> Raghu
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Anish
> Mistry
> Sent: Tuesday, April 04, 2006 3:37 PM
> To: hplip-devel@lists.sourceforge.net
> Subject: Re: [HPLIP-Devel] FreeBSD Porting
>
> On Monday 03 April 2006 00:44, Anish Mistry wrote:
<trim>
> > Read and Write methods in the Device class.  The Write method is
> > working and I'm able to print to my Officejet 5510v. The problem
> > is with the Read method, tested with hp-info.  GetInEP returns
> > the endpoint of 131, which clearly seems wrong, therefore when
> > Read tries to open the endpoint it fails since there is no
> > endpoint 131. From the system log:
> > Apr  3 00:34:06 bigguy hpiod: unable to open bulk in endpoint
> > (/dev/ugen0.131)
> > hp:/usb/officejet_5500_series?serial=MY4CLG12Y596
> > io/hpiod/device.cpp 218
> > Apr  3 00:34:06 bigguy hpiod: unable to open bulk in endpoint
> > (/dev/ugen0.131)
> > hp:/usb/officejet_5500_series?serial=MY4CLG12Y596
> > io/hpiod/device.cpp 218
> > Apr  3 00:34:06 bigguy hpiod: unable to read MlcReverseReply
> > header: No such file or directory bytesRead=0 io/hpiod/mlc.cpp
> > 230 Apr
> >
> > 3 00:34:06 bigguy hpiod: unable to open bulk in endpoint
> > (/dev/ugen0.131)
> > hp:/usb/officejet_5500_series?serial=MY4CLG12Y596
> > io/hpiod/device.cpp 218
> > Apr  3 00:34:06 bigguy hpiod: unable to read MlcReverseReply
> > header: No such file or directory bytesRead=0 io/hpiod/mlc.cpp
> > 230 Apr
> >
> > 3 00:34:06 bigguy hpiod: invalid MLCInitReply: cmd=0, result=3 ,
> > revision=0 io/hpiod/mlc.cpp 348 Apr  3 00:34:07 bigguy python:
> > [ERROR] Error opening device (Unknown internal error). Exiting.
> >
> > The ugen device for the printer shows the main pipe and the
> > following endpoints:
> > /dev/ugen0.1
> > /dev/ugen0.2
> > /dev/ugen0.3
> > /dev/ugen0.4
> > /dev/ugen0.7
> > /dev/ugen0.8
> >
> > Is there any reason the GetInEP would return an invalid endpoint?
> > Also if you have any other suggestions let me know.
I think I figured out the problem.  The address mask needs to be 
applied to values returned by the Get*EP methods since the direction 
is also included in the high order bits.  I've got an updated port 
skeleton http://am-productions.biz/docs/hplip-try2.tgz.  The patches 
are in the files directory.  This now works with my Officejet 5510v.  
I can get status information and initialize the fax machine.  
Scanning works after fixing a few symlinks.

Currently what still needs work:
1) Front panel display in hp-toolbox doesn't show the display 
information.
2) Run hpiod and hpssd as unprivileged users.
3) On the Officejet the "Make Copies" function is grayed out in 
hp-toolbox
4) I don't have a photo card slot on my Officejet, so I can't test 
that functionality.  Feel free to send the applicable hardware. :)
5) Banish the Linuxisms in the Makefile that cause all sorts of 
trouble during the "make install" target.

Also if you (HP) are serious about having FreeBSD support I'm 
available for contract/consulting work.

I'll just wait for your I/O guy's opinion on the remaining 
non-functioning pieces.

>
> Ok, I've got another datapoint.  On another system that has a
> Deskjet 5550 everything seems to work.  hp-levels returns the
> correct information, hp-toolbox shows all the information, etc.
>
> Also what is the best way to run the daemons?  I'm thinking of
> creating a hplip user and have them run under that user.  I'll then
> give that user r/w access to the printer device.  Any suggestions
> on a better or more secure way?  Any problems with this method?

Thanks for supporting open source  OSes :),

-- 
Anish Mistry
[EMAIL PROTECTED]
AM Productions http://am-productions.biz/

Attachment: pgpe4HUFbVOfN.pgp
Description: PGP signature

Reply via email to