* [Printing-architecture] ijs_invoke_server with hpijs
@ 2008-10-20 18:21 Matt Gessner
2008-10-21 11:11 ` Tobias Hoffmann
[not found] ` <48FDB8B2.4030308@gmx.de>
0 siblings, 2 replies; 3+ messages in thread
From: Matt Gessner @ 2008-10-20 18:21 UTC (permalink / raw)
To: printing-architecture
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Hi,
I need to know how to set the OutputFD parameter given to hpijs.
I've tried opening several different files, and I always end up with "unable
to read client data" coming from hpijs.
I'm not running CUPS or HPLIP; I'm doing this on an embedded system, so I
need to be able to do barebones hpijs.
Thanks!
Regards,
Matt Gessner
[-- Attachment #2: Type: text/html, Size: 419 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Printing-architecture] ijs_invoke_server with hpijs 2008-10-20 18:21 [Printing-architecture] ijs_invoke_server with hpijs Matt Gessner @ 2008-10-21 11:11 ` Tobias Hoffmann [not found] ` <48FDB8B2.4030308@gmx.de> 1 sibling, 0 replies; 3+ messages in thread From: Tobias Hoffmann @ 2008-10-21 11:11 UTC (permalink / raw) Cc: printing-architecture Matt Gessner wrote: > I need to know how to set the OutputFD parameter given to hpijs. > > I've tried opening several different files, and I always end up with > "unable to read client data" coming from hpijs. - does it work with OutputFile instead? - does it work with the ijs_server_example from the ijs package instead of hpijs? The ijs_client_example source code does help to clarify the API, when in doubt. You can also look at the pdftoijs print filter: http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/pdftoraster/branches/gsoc2008_pdftoijs_nocups/src/pdftoijs.cc?root=opfc&view=auto Two other thoughts, though: - the error "unable to read client data" suggests to me, that the problem occurs way before anything related to the OutputFD happens, but you probably have looked deeper - the dup()/pipe()/open() or whatever you use to create the file descriptor has to happen before the ijs_invoke_server, so that the descriptor is available to the forked process. Tobias ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <48FDB8B2.4030308@gmx.de>]
* Re: [Printing-architecture] ijs_invoke_server with hpijs [not found] ` <48FDB8B2.4030308@gmx.de> @ 2008-10-21 13:10 ` Matt Gessner 0 siblings, 0 replies; 3+ messages in thread From: Matt Gessner @ 2008-10-21 13:10 UTC (permalink / raw) To: Tobias Hoffmann; +Cc: printing-architecture [-- Attachment #1: Type: text/plain, Size: 2028 bytes --] On Tue, Oct 21, 2008 at 7:10 AM, Tobias Hoffmann <th55@gmx.de> wrote: > Matt Gessner wrote: > >> I need to know how to set the OutputFD parameter given to hpijs. >> >> I've tried opening several different files, and I always end up with >> "unable to read client data" coming from hpijs. > > > >> - does it work with OutputFile instead? OutputFile doesn't appear to be supported by hpijs. hpijs.cpp shows only OutputFD to be supported. > > - does it work with the ijs_server_example from the ijs package instead of > hpijs? > > > The ijs_client_example source code does help to clarify the API, when in > doubt. The ijs_client_example source code only goes so far, though. It doesn't show me the VALUE to give to hpijs for OutputFD. > > You can also look at the pdftoijs print filter: > > http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi/pdftoraster/branches/gsoc2008_pdftoijs_nocups/src/pdftoijs.cc?root=opfc&view=auto > I will look at this. Since it's not using cups, that looks like it has great potential. > > Two other thoughts, though: > - the error "unable to read client data" suggests to me, that the problem > occurs way before anything related to the OutputFD happens, but you probably > have looked deeper > Yes, I have. That error is being generated by a read() on the OutputFD, IIRC. Since I don't know what to open, the things I'm doing now to get an fd that I assign to OutputFD aren't working. > > - the dup()/pipe()/open() or whatever you use to create the file descriptor > has to happen before the ijs_invoke_server, so that the descriptor is > available to the forked process. Yes; I'm doing it that way. I open the file descriptor first, then invoke ijs_invoke_server ("/usr/bin/hpijs"), and then set OutputFD via the set parameter method. I'm still digging. Thanks for your comments! I did some other poking around, and it looks like I might need something from hpmud, which appears to be able to open USB endpoints. I'm going to check that out later today. Regards, Matt [-- Attachment #2: Type: text/html, Size: 3895 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-21 13:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-20 18:21 [Printing-architecture] ijs_invoke_server with hpijs Matt Gessner
2008-10-21 11:11 ` Tobias Hoffmann
[not found] ` <48FDB8B2.4030308@gmx.de>
2008-10-21 13:10 ` Matt Gessner
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.