Emulated_USB_Printer icon indicating copy to clipboard operation
Emulated_USB_Printer copied to clipboard

Sony Printer, ACL conversion and Windows problem

Open leouzz opened this issue 4 years ago • 1 comments

Hello! I'm emulating a Sony printer: up-dr80md I think i found the correct parameters:

modprobe g_printer idVendor=0x054C idProduct=0x3C3 bcdDevice=0x0108 iManufacturer="SONY" iProduct="UP-DR80MD" iSerialNumber="00000000" iPNPstring="MFG:SONY;MDL:UP-DR80MD;DES:Sony UP-DR80MD;CMD:SPJL-DS,SPDL-DS;CLS:PRINTER;SCDIV:0010;SCSYV:02011000;SCSNO:f4?-------------;SCSYS:0000003800010000000100;SCMDS:00000000000000000000;SCPRS:0000;SCSES:0000;SCWTS:0000;SCJBS:0000;SCSYE:00;SCMDE:0A08;SCMCE:00;SCJBI:0000000000000000;SCSYI:0A300E566DCC00004000E92D012D00;SCSVI:000000000000;SCMNI:000000000000;SCCAI:00000000000000;SCGAI:0000;SCGSI:00;SCMDI:1100FF;"

The OS correctly see the printer ad load the driver but now I have 2 problems:

  1. In Windows when I start a print, the driver sends a message about missing paper, probably he except a message from the printer about the paper load.
  2. Switching to Linux, no problem, I can send a file to the printer and get the PCL file, but the conversion to pdf is not working, it always exports the same wrong page. should I change some conversion parameter?

the biggest issue it's the point 2 Here the PCL file and the conversion in pdf https://we.tl/t-aOGS8YLUV0

leouzz avatar Feb 05 '21 11:02 leouzz

Thanks for charing your parameters!

  1. The printer.c contains functions for setting three parameters: Paper Loaded/Paper Out, Error/ No Error, and Selected / Not selected. The correct status is Selected, Paper Loaded, No Error. Confirm that this is the case for you by running emulatedprinter -get_status. Change values if needed (See emulatedprinter -h). If that das not work, maybe try a reduced PNP string. Somtimes these strings contain some status info. Maybe try modprobe g_printer idVendor=0x054C idProduct=0x3C3 bcdDevice=0x0108 iManufacturer="SONY" iProduct="UP-DR80MD" iSerialNumber="00000000" iPNPstring="MFG:SONY;MDL:UP-DR80MD;DES:Sony UP-DR80MD;CMD:SPJL-DS,SPDL-DS;CLS:PRINTER ;
  2. It looks like your print job is not PCL but SONY-PDL-DS2. GhostPDL probably can't translate that. I don't know any interpreter for that. If you want to use GhostPDL for post-processing try getting PostScript print jobs. If you have access to the host, you can select a postscript driver manually! That way you don't need to rely on the auto detection.

Does this help?

Raspberryy avatar Feb 05 '21 13:02 Raspberryy