I cannot send PDF files directly with hp-sendfax. 
In interactive mode it will show the pagenumbers as "?". Sending fails with
an D/L State Error:

hp-sendfax[9986]: debug: D/L State=0 (Unknown)
error: D/L error state=0
hp-sendfax[9986]: debug: STATE=(110, 20, 0)
error: Fax send error.
hp-sendfax[9986]: debug: STATE=(110, 160, 0)
hp-sendfax[9986]: debug: ******************** State: Release fax token
hp-sendfax[9986]: debug: (xmit) Sending data on channel (10)
hp-sendfax[9986]:
debug: 
'msg=setpml\ndevice-id=1\noid=1.3.6.1.4.1.11.2.3.9.4.2.1.1.1.27.0\ntype=20\nchannel-id=1\nencoding=none\nlength=16\ndata
\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
hp-sendfax[9986]: debug: Cleaning
up...                                                                           
                                            -hp-sendfax[9986]:
debug: (xmit) Reading data on channel (10)
hp-sendfax[9986]: debug: 'msg=SetPMLResult\nresult-code=12\n'
hp-sendfax[9986]: debug: STATE=(110, 170, 0)
hp-sendfax[9986]: debug: ******************** State: Close session
hp-sendfax[9986]: debug: Closing session...
hp-sendfax[9986]: debug: (xmit) Sending data on channel (10)
hp-sendfax[9986]:
debug: 
'msg=setpml\ndevice-id=1\noid=1.3.6.1.4.1.11.2.3.9.4.2.1.3.7.1.6.0\ntype=4\nchannel-id=1\nencoding=none\nlength=1\ndata
\n\x01'      /hp-sendfax[9986]: debug: (xmit) Reading data on channel (10)
hp-sendfax[9986]: debug: 'msg=SetPMLResult\nresult-code=12\n'
hp-sendfax[9986]: debug: Closing fax channel.
hp-sendfax[9986]: debug: Closing device...
hp-sendfax[9986]: debug: Closing HP-MESSAGE channel...
hp-sendfax[9986]: debug: (xmit) Sending data on channel (10)
hp-sendfax[9986]:
debug: 'msg=channelclose\ndevice-id=1\nchannel-id=1\n'                          
                                                            -hp-sendfax[9986]:
debug: (xmit) Reading data on channel (10)
hp-sendfax[9986]: debug: 'msg=ChannelCloseResult\nresult-code=0\n'
hp-sendfax[9986]: debug: Closing HP-FAX-SEND channel...
hp-sendfax[9986]: debug: (xmit) Sending data on channel (10)
hp-sendfax[9986]: debug: 'msg=channelclose\ndevice-id=1\nchannel-id=2\n'
hp-sendfax[9986]: debug: (xmit) Reading data on channel (10)
hp-sendfax[9986]: debug: 'msg=ChannelCloseResult\nresult-code=0\n'
hp-sendfax[9986]: debug: (xmit) Sending data on channel (10)
hp-sendfax[9986]: debug: 'msg=deviceclose\ndevice-id=1\n'
hp-sendfax[9986]: debug: (xmit) Reading data on channel (10)
hp-sendfax[9986]: debug: 'msg=DeviceCloseResult\nresult-code=0\n'
hp-sendfax[9986]: debug: STATE=(130, 0, 0)
error: Error, aborting.
hp-sendfax[9986]: debug: STATE=(120, 0, 0)
hp-sendfax[9986]: debug: ******************** State: Cleanup
error: Fax send error.
hp-sendfax[9986]: debug: Sending data on channel (6)
hp-sendfax[9986]:
debug: 
'msg=event\nevent-code=3002\nusername=ibook\ndevice-uri=None\nevent-type=event\njob-id=0\nretry-timeout=0\n'
 

But I think this is because the input data is malformed?
At the next attemt it will fail with "device not found". I have to switch
the printer off and on and restart hplipd to get it working again.
What is needed to print pdf-files? In the filelist pdf is listed as directly
supported. Does hp-sendfax use external programs to manage this?
Sending plaintext works fine. But when in non-interactive mode I always get
an error at the very end:

hp-sendfax[19987]: debug: ******************** State: Cleanup
Completed successfully.
hp-sendfax[19987]: debug: Sending data on channel (6)
hp-sendfax[19987]:
debug: 
'msg=event\nevent-code=3001\nusername=ibook\ndevice-uri=None\nevent-type=event\njob-id=0\nretry-timeout=0\n'
                        /Traceback
(most recent call last):
  File "/usr/bin/hp-sendfax", line 799, in ?
    service.sendEvent(hpssd_sock, EVENT_END_FAX_JOB, device_uri=device_uri)
  File "/usr/share/hplip/base/service.py", line 87, in sendEvent
    msg.sendEvent(sock, 'Event', data, fields)
  File "/usr/share/hplip/base/msg.py", line 114, in sendEvent
    log.debug("Sending data on channel (%d)" % sock.fileno())
  File "<string>", line 1, in fileno
  File "/usr/lib/python2.4/socket.py", line 144, in _dummy
    raise error(EBADF, 'Bad file descriptor')
socket.error: (9, 'Bad file descriptor')

The fax was successfully processed. So I'm fine with this :-)
-- 
mfg
 Christoph


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
HPLIP-Help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hplip-help

Reply via email to