Discussion:
Brainydeal Receipt Printer
(too old to reply)
Ethan Rosenberg
2014-09-07 04:10:01 UTC
Permalink
Dear List -

I have a Brainydeal receipt printer made by Zijiang. I have downloaded
and setup their driver. No Luck.
The message I receive from CUPS is:
Processing - "The printer is not responding."

When I installed the driver, it clearly indicated that it was for Linux.

Here is the driver.

*PPD-Adobe: "4.3"
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "POS58.ppd"
*Manufacturer: "Zijiang"
*Product: "(zj-58)"
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
*cupsVersion: 1.1
*cupsManualCopies: True
*cupsModelNumber: 58
*cupsFilter: "application/vnd.cups-raster 0 rastertozj58"
*ModelName: "ZJ-58"
*ShortNickName: "ZJ-58"
*NickName: "POS58"
*PSVersion: "(3010.000) 550"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*VariablePaperSize: True
*TTRasterizer: Type42

*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize: X58mmY210mm
*%PageSize Custom/Custom: "<</PageSize[0
0]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY210mm/58mm x 210mm: "<</PageSize[164
595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY297mm/58mm x 297mm: "<</PageSize[164
842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY3276mm/58mm x 3276mm: "<</PageSize[164
9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize

*OpenUI *PageRegion: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion: X58mmY210mm
*%PageRegion Custom/Custom: "<</PageSize[0
0]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY210mm/58mm x 210mm: "<</PageSize[164
595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY297mm/58mm x 297mm: "<</PageSize[164
842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY3276mm/58mm x 3276mm: "<</PageSize[164
9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion

*DefaultImageableArea: X58mmY210mm
*%ImageableArea Custom: "0 0 0 0"
*ImageableArea X58mmY210mm: "14 0 150 595"
*ImageableArea X58mmY297mm: "14 0 150 842"
*ImageableArea X58mmY3276mm: "14 0 150 9286"

*DefaultPaperDimension: X58mmY210mm
*%PaperDimension Custom: "0 0"
*PaperDimension X58mmY210mm: "164 595"
*PaperDimension X58mmY297mm: "164 842"
*PaperDimension X58mmY3276mm: "164 9286"

*%MaxMediaWidth: "226"
*%MaxMediaHeight: "5670"
*%HWMargins: 0 0 0 0
*%CustomPageSize True: "pop pop pop <</PageSize[5 -2
roll]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*%ParamCustomPageSize Width: 1 points 72 226
*%ParamCustomPageSize Height: 2 points 72 5670
*%ParamCustomPageSize WidthOffset: 3 points 0 0
*%ParamCustomPageSize HeightOffset: 4 points 0 0
*%ParamCustomPageSize Orientation: 5 int 0 0

*OpenGroup: ZJDeviceSettings/Device Settings

*OpenUI *CashDrawer/Cash Drawer:PickOne
*DefaultCashDrawer: 1CashDrawer1BeforePrinting
*CashDrawer 0NoCashDrawer/No Cash Drawer: ""
*CashDrawer 1CashDrawer1BeforePrinting/Cash Drawer #1 Before Printing: ""
*CashDrawer 2CashDrawer2BeforePrinting/Cash Drawer #2 Before Printing: ""
*CashDrawer 3CashDrawer12BeforePrinting/Cash Drawer #1+#2 Before
Printing: ""
*CashDrawer 4CashDrawer1AfterPrinting/Cash Drawer #1 After Printing: ""
*CashDrawer 5CashDrawer2AfterPrinting/Cash Drawer #2 After Printing: ""
*CashDrawer 6CashDrawer12AfterPrinting/Cash Drawer #1+#2 After Printing: ""
*CloseUI: *CashDrawer

*OpenUI *BlankSpace/Blank space at page's end:PickOne
*DefaultBlankSpace: 1NoPrint
*BlankSpace 0Print/Print: ""
*BlankSpace 1NoPrint/Do not print: ""
*CloseUI: *BlankSpace

*OpenUI *FeedDist/Feed distance after print:PickOne
*DefaultFeedDist: 9feed30mm
*FeedDist 0feed3mm/feed 3mm: ""
*FeedDist 1feed6mm/feed 6mm: ""
*FeedDist 2feed9mm/feed 9mm: ""
*FeedDist 3feed12mm/feed 12mm: ""
*FeedDist 4feed15mm/feed 15mm: ""
*FeedDist 5feed18mm/feed 18mm: ""
*FeedDist 6feed21mm/feed 21mm: ""
*FeedDist 7feed24mm/feed 24mm: ""
*FeedDist 8feed27mm/feed 27mm: ""
*FeedDist 9feed30mm/feed 30mm: ""
*FeedDist 10feed33mm/feed 33mm: ""
*FeedDist 11feed36mm/feed 36mm: ""
*FeedDist 12feed39mm/feed 39mm: ""
*FeedDist 13feed42mm/feed 42mm: ""
*FeedDist 14feed45mm/feed 45mm: ""
*CloseUI: *FeedDist

*CloseGroup: ZJDeviceSettings

*% End

TIA

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Brian
2014-09-07 09:00:02 UTC
Permalink
Post by Ethan Rosenberg
I have a Brainydeal receipt printer made by Zijiang. I have
downloaded and setup their driver. No Luck.
Processing - "The printer is not responding."
When I installed the driver, it clearly indicated that it was for Linux.
Here is the driver.
*PPD-Adobe: "4.3"
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "POS58.ppd"
*Manufacturer: "Zijiang"
*Product: "(zj-58)"
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
*cupsVersion: 1.1
*cupsManualCopies: True
*cupsModelNumber: 58
*cupsFilter: "application/vnd.cups-raster 0 rastertozj58"
*ModelName: "ZJ-58"
*ShortNickName: "ZJ-58"
*NickName: "POS58"
How is the printer connected to the computer?

Please supply the outputs of

lpstat -t
ls -l /usr/lib/cups/filter
ls -l /usr/lib/cups/backend
ls -l /usr/share/cups/model
ls -l /etc/cups/ppd
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@copernicus.demon.co.uk
Ethan Rosenberg
2014-09-07 18:00:01 UTC
Permalink
Post by Brian
Post by Ethan Rosenberg
I have a Brainydeal receipt printer made by Zijiang. I have
downloaded and setup their driver. No Luck.
Processing - "The printer is not responding."
When I installed the driver, it clearly indicated that it was for Linux.
Here is the driver.
*PPD-Adobe: "4.3"
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "POS58.ppd"
*Manufacturer: "Zijiang"
*Product: "(zj-58)"
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
*cupsVersion: 1.1
*cupsManualCopies: True
*cupsModelNumber: 58
*cupsFilter: "application/vnd.cups-raster 0 rastertozj58"
*ModelName: "ZJ-58"
*ShortNickName: "ZJ-58"
*NickName: "POS58"
How is the printer connected to the computer?
Please supply the outputs of
lpstat -t
ls -l /usr/lib/cups/filter
ls -l /usr/lib/cups/backend
ls -l /usr/share/cups/model
ls -l /etc/cups/ppd
Brian -

Thanks.

Here it is....

***@meow:/etc/cups/ppd# lpstat -t
scheduler is running
system default destination: Hewlett-Packard-hp-LaserJet-1012
device for Canon-Inkjet:
usb://Canon/MG2500%20series?serial=A7096F&interface=1
device for Hewlett-Packard-hp-LaserJet-1012:
usb://HP/LaserJet%201012?serial=00CNFB858825
device for POS58: socket://192.168.1.100:9100
device for receiptprinter: usb://Unknown/Printer?serial=1234567890
Canon-Inkjet accepting requests since Fri 29 Aug 2014 08:17:33 AM EDT
Hewlett-Packard-hp-LaserJet-1012 accepting requests since Wed 13 Aug
2014 08:37:08 PM EDT
POS58 accepting requests since Fri 05 Sep 2014 12:21:27 AM EDT
receiptprinter accepting requests since Sun 31 Aug 2014 06:28:19 PM EDT
printer Canon-Inkjet is idle. enabled since Fri 29 Aug 2014 08:17:33 AM EDT
printer Hewlett-Packard-hp-LaserJet-1012 is idle. enabled since Wed 13
Aug 2014 08:37:08 PM EDT
printer POS58 is idle. enabled since Fri 05 Sep 2014 12:21:27 AM EDT
printer receiptprinter disabled since Sun 31 Aug 2014 06:28:19 PM EDT -
Unable to send data to printer.
receiptprinter-37 unknown 1024 Sun 31 Aug 2014
06:23:22 PM EDT
receiptprinter-38 unknown 1024 Sun 31 Aug 2014
06:26:37 PM EDT


***@meow:/etc/cups/ppd# ls -l /usr/lib/cups/filter
total 1956
-rwxr-xr-x 1 root root 39816 Apr 28 12:31 bannertopdf
-rwxr-xr-x 1 root root 35312 Mar 5 2014 c2esp
-rwxr-xr-x 1 root root 26968 Mar 5 2014 c2espC
-rwxr-xr-x 1 root root 18624 Mar 5 2014 command2esp
-rwxr-xr-x 1 root root 14496 Jun 5 09:04 command2foo2lava-pjl
-rwxr-xr-x 1 root root 10296 Jun 25 09:19 commandtocanon
-rwxr-xr-x 1 root root 10312 Jun 25 09:19 commandtoepson
-rwxr-xr-x 1 root root 10336 Apr 28 12:31 commandtoescpx
-rwxr-xr-x 1 root root 10312 Apr 28 12:31 commandtopclx
-rwxr-xr-x 1 root root 14336 Jul 14 11:15 commandtops
-rwxr-xr-x 1 root root 31952 Mar 21 09:07 epson-escpr
-rwxr-xr-x 1 root root 10424 Mar 21 09:07 epson-escpr-wrapper
-rwxr-xr-x 1 root root 110432 Apr 28 12:31 foomatic-rip
-rwxr-xr-x 1 root root 8342 Apr 28 12:30 gstopxl
-rwxr-xr-x 1 root root 22992 Apr 28 12:31 gstoraster
-rwxr-xr-x 1 root root 10240 Jul 14 11:15 gziptoany
-rwxr-xr-x 1 root root 388648 Jun 15 05:47 hpcups
-rwxr-xr-x 1 root root 27128 Jun 15 05:47 hpcupsfax
-rwxr-xr-x 1 root root 11337 Jun 15 05:47 hpps
-rwxr-xr-x 1 root root 35320 Apr 28 12:31 imagetopdf
-rwxr-xr-x 1 root root 989 Apr 28 12:30 imagetops
-rwxr-xr-x 1 root root 53048 Apr 28 12:31 imagetoraster
-rwxr-xr-x 1 root root 23144 Apr 28 12:31 pdftoijs
-rwxr-xr-x 1 root root 27096 Apr 28 12:31 pdftoippprinter
-rwxr-xr-x 1 root root 134992 Apr 28 12:31 pdftoopvp
-rwxr-xr-x 1 root root 154984 Apr 28 12:31 pdftopdf
-rwxr-xr-x 1 root root 35664 Apr 28 12:31 pdftops
-rwxr-xr-x 1 root root 31376 Apr 28 12:31 pdftoraster
-rwxr-xr-x 1 root root 7563 Apr 28 12:30 pstopdf
-rwxr-xr-x 1 root root 51232 Jul 14 11:15 pstops
-rwxr-xr-x 1 root root 18848 Apr 17 02:26 pstoqpdl
-rwxr-xr-x 1 root root 974 Jun 15 05:47 pstotiff
-rwxr-xr-x 1 root root 55800 Mar 5 2014 raster2dymolm
-rwxr-xr-x 1 root root 59888 Mar 5 2014 raster2dymolw
lrwxrwxrwx 1 root root 13 Jul 14 11:15 rastertodymo -> rastertolabel
-rwxr-xr-x 1 root root 18432 Jul 14 11:15 rastertoepson
-rwxr-xr-x 1 root root 31136 Apr 28 12:31 rastertoescpx
-rwxr-xr-x 1 root root 44016 Jun 25 09:19 rastertogutenprint.5.2
-rwxr-xr-x 1 root root 18432 Jul 14 11:15 rastertohp
-rwxr-xr-x 1 root root 22528 Jul 14 11:15 rastertolabel
-rwxr-xr-x 1 root root 31152 Apr 28 12:31 rastertopclx
-rwxr-xr-x 1 root root 35008 Mar 6 2014 rastertoptch
-rwxr-xr-x 1 root root 14336 Jul 14 11:15 rastertopwg
-rwxr-xr-x 1 root root 59952 Apr 17 02:26 rastertoqpdl
-rwxr-xr-x 1 root root 15942 Mar 6 2014 rastertosag-gdi
-rwx--x--x 1 root root 36166 Sep 5 00:10 rastertozj58
-rwxr-xr-x 1 root root 3560 Apr 28 12:30 textonly
-rwxr-xr-x 1 root root 46856 Apr 28 12:31 texttopdf
-rwxr-xr-x 1 root root 983 Apr 28 12:30 texttops
-rwxr-xr-x 1 root root 43608 Apr 28 12:31 urftopdf


***@meow:/etc/cups/ppd# ls -l /usr/share/cups/model
total 4
drwxr-xr-x 2 root root 4096 Sep 5 00:10 zjiang


***@meow:/etc/cups/ppd# ls -l /etc/cups/ppd
total 140
-rw-r--r-- 1 root root 97679 Aug 29 08:17 Canon-Inkjet.ppd
-rw-r--r-- 1 root root 14402 Aug 13 20:36
Hewlett-Packard-hp-LaserJet-1012.ppd
-rw-r--r-- 1 root root 4490 Sep 5 00:21 POS58.ppd
-rw-r--r-- 1 root root 17906 Aug 31 18:07 receiptprinter.ppd


TIA

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Brian
2014-09-07 20:30:01 UTC
Permalink
Post by Ethan Rosenberg
Here it is....
You didn't say how the printer is accessed by the computer.
Post by Ethan Rosenberg
device for POS58: socket://192.168.1.100:9100
The printer is networked. A JetDirect or another type of device?
Post by Ethan Rosenberg
POS58 accepting requests since Fri 05 Sep 2014 12:21:27 AM EDT
printer POS58 is idle. enabled since Fri 05 Sep 2014 12:21:27 AM EDT
It is also enabled and ready to print.
Post by Ethan Rosenberg
total 1956
-rwx--x--x 1 root root 36166 Sep 5 00:10 rastertozj58
This is the final filter after cups has processed the job. I expect it
is a proprietary one. If it is at fault there is little to be done about
it.
Post by Ethan Rosenberg
total 4
drwxr-xr-x 2 root root 4096 Sep 5 00:10 zjiang
This directory probably contains the PPD file supplied by the printer
manufacturer. It should be identical to /etc/cups/ppd/POS58.ppd.
Post by Ethan Rosenberg
total 140
-rw-r--r-- 1 root root 4490 Sep 5 00:21 POS58.ppd
As above.

The setup seems very reasonable. Do you get any life out of the printer
with

cat TEST | nc 192.168.7.100 9100 ?

TEST is a file containing just the word "Hello". The command sends it
directly to the printer.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@desktop.copernicus.demon.co.uk
Brian
2014-09-07 21:30:02 UTC
Permalink
Post by Brian
cat TEST | nc 192.168.7.100 9100 ?
^
^
1
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@desktop.copernicus.demon.co.uk
Ethan Rosenberg
2014-09-08 04:20:02 UTC
Permalink
Post by Brian
cat TEST | nc 192.168.7.100 9100
cat TEST | nc 112.168.7.100 9100 NO output

TIA

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Ethan Rosenberg
2014-09-08 04:10:01 UTC
Permalink
Post by Brian
Post by Ethan Rosenberg
Here it is....
You didn't say how the printer is accessed by the computer.
Post by Ethan Rosenberg
device for POS58: socket://192.168.1.100:9100
The printer is networked. A JetDirect or another type of device?
Post by Ethan Rosenberg
POS58 accepting requests since Fri 05 Sep 2014 12:21:27 AM EDT
printer POS58 is idle. enabled since Fri 05 Sep 2014 12:21:27 AM EDT
It is also enabled and ready to print.
Post by Ethan Rosenberg
total 1956
-rwx--x--x 1 root root 36166 Sep 5 00:10 rastertozj58
This is the final filter after cups has processed the job. I expect it
is a proprietary one. If it is at fault there is little to be done about
it.
Post by Ethan Rosenberg
total 4
drwxr-xr-x 2 root root 4096 Sep 5 00:10 zjiang
This directory probably contains the PPD file supplied by the printer
manufacturer. It should be identical to /etc/cups/ppd/POS58.ppd.
Post by Ethan Rosenberg
total 140
-rw-r--r-- 1 root root 4490 Sep 5 00:21 POS58.ppd
As above.
The setup seems very reasonable. Do you get any life out of the printer
with
cat TEST | nc 192.168.7.100 9100 ?
TEST is a file containing just the word "Hello". The command sends it
directly to the printer.
--

Brian -
Post by Brian
You didn't say how the printer is accessed by the computer. USB
A JetDirect or another type of device? Thermal Receipt Printer
Post by Brian
This directory probably contains the PPD file supplied by the printer
manufacturer. It should be identical to /etc/cups/ppd/POS58.ppd.
The two files are identical.
Post by Brian
The setup seems very reasonable. Do you get any life out of the printer
with
cat TEST | nc 192.168.7.100 9100 ?
No output

TIA

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Brian
2014-09-08 08:40:01 UTC
Permalink
[I have rearranged one of your responses to be on a separate line to
the question]
Post by Ethan Rosenberg
Brian -
Post by Brian
You didn't say how the printer is accessed by the computer.
USB
Your "lpstat -a" has

device for POS58: socket://192.168.1.100:9100

A socket connection is for a printer which is accessed over the network.
Your printer is not networked; it has a direct USB connection to the
computer. The device you have used is incorrect - which makes printing
impossible.

The device needs to be changed. One way is:

1. Reboot the computer with the printer attached and switched on.

2. Go to http://localhost:631 with your browser.

3. Go to "Administration". Is the printer found?

4. Proceed to install a print queue with the PPD in the zjiang directory.
Post by Ethan Rosenberg
Post by Brian
This directory probably contains the PPD file supplied by the printer
manufacturer. It should be identical to /etc/cups/ppd/POS58.ppd.
The two files are identical.
Post by Brian
The setup seems very reasonable. Do you get any life out of the printer
with
cat TEST | nc 192.168.7.100 9100 ?
No output
I corrected this earlier to

cat TEST | nc 192.168.1.100 9100

But you will still not get any response from the printer as it turns out
your setup is not reasonable.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@copernicus.demon.co.uk
Marko Randjelovic
2014-09-08 09:30:03 UTC
Permalink
On Mon, 8 Sep 2014 09:30:47 +0100
Post by Brian
[I have rearranged one of your responses to be on a separate line to
the question]
Post by Ethan Rosenberg
Brian -
Post by Brian
You didn't say how the printer is accessed by the computer.
USB
Your "lpstat -a" has
device for POS58: socket://192.168.1.100:9100
Isn't the printer we are dealing with

device for receiptprinter: usb://Unknown/Printer?serial=1234567890

?

Kind regards
--
http://markorandjelovic.hopto.org

One should not be afraid of humans.
Well, I am not afraid of humans, but of what is inhuman in them.
Ivo Andric, "Signs near the travel-road"
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@sbb.rs
Brian
2014-09-08 09:50:04 UTC
Permalink
Post by Marko Randjelovic
On Mon, 8 Sep 2014 09:30:47 +0100
Post by Brian
[I have rearranged one of your responses to be on a separate line to
the question]
Post by Ethan Rosenberg
Brian -
Post by Brian
You didn't say how the printer is accessed by the computer.
USB
Your "lpstat -a" has
device for POS58: socket://192.168.1.100:9100
Isn't the printer we are dealing with
device for receiptprinter: usb://Unknown/Printer?serial=1234567890
?
I hope not. :)

The PPDs have different sizes.

***@meow:/etc/cups/ppd# ls -l /etc/cups/ppd
total 140
-rw-r--r-- 1 root root 4490 Sep 5 00:21 POS58.ppd
-rw-r--r-- 1 root root 17906 Aug 31 18:07 receiptprinter.ppd
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@desktop.copernicus.demon.co.uk
Ethan Rosenberg
2014-09-08 13:30:03 UTC
Permalink
Post by Brian
Post by Marko Randjelovic
On Mon, 8 Sep 2014 09:30:47 +0100
Post by Brian
[I have rearranged one of your responses to be on a separate line to
the question]
Post by Ethan Rosenberg
Brian -
Post by Brian
You didn't say how the printer is accessed by the computer.
USB
Your "lpstat -a" has
device for POS58: socket://192.168.1.100:9100
Isn't the printer we are dealing with
device for receiptprinter: usb://Unknown/Printer?serial=1234567890
?
I hope not. :)
The PPDs have different sizes.
total 140
-rw-r--r-- 1 root root 4490 Sep 5 00:21 POS58.ppd
-rw-r--r-- 1 root root 17906 Aug 31 18:07 receiptprinter.ppd
--
Marko & Brian -

Thanks.

We are dealing with POS58.ppd

I will implement your suggestions tonight when I get home.

TIA

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Ethan Rosenberg, PhD
2014-09-08 23:50:01 UTC
Permalink
Post by Brian
[I have rearranged one of your responses to be on a separate line to
the question]
Post by Ethan Rosenberg
Brian -
Post by Brian
You didn't say how the printer is accessed by the computer.
USB
Your "lpstat -a" has
device for POS58: socket://192.168.1.100:9100
A socket connection is for a printer which is accessed over the network.
Your printer is not networked; it has a direct USB connection to the
computer. The device you have used is incorrect - which makes printing
impossible.
1. Reboot the computer with the printer attached and switched on.
2. Go to http://localhost:631 with your browser.
3. Go to "Administration". Is the printer found?
4. Proceed to install a print queue with the PPD in the zjiang directory.
Post by Ethan Rosenberg
Post by Brian
This directory probably contains the PPD file supplied by the printer
manufacturer. It should be identical to /etc/cups/ppd/POS58.ppd.
The two files are identical.
Post by Brian
The setup seems very reasonable. Do you get any life out of the printer
with
cat TEST | nc 192.168.7.100 9100 ?
No output
I corrected this earlier to
cat TEST | nc 192.168.1.100 9100
But you will still not get any response from the printer as it turns out
your setup is not reasonable.
Brian -

EXCELLENT!! Changed to a non-networked printer, and IT WORKS.

The printing is along the length of the paper, as opposed to
perpendicular.

How do I change it?

TIA

Ethan
--
Ethan Rosenberg, PhD
/Pres/CEO/
*Hygeia Biomedical Research, Inc*
2 Cameo Ridge Road
Monsey, NY 10952
T: 845 352-3908
F: 845 352-7566
***@hygeiabiomedical.com
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Chris Bannister
2014-09-09 06:50:01 UTC
Permalink
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@tal
Ethan Rosenberg
2014-09-09 13:30:02 UTC
Permalink
Post by Chris Bannister
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
Chris -

Thanks.

Regrettably*PPD-Adobe: "4.3"
*FormatVersion: "4.3"
*FileVersion: "1.1"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*PCFileName: "POS58.ppd"
*Manufacturer: "Zijiang"
*Product: "(zj-58)"
*1284DeviceID: "MFG:Zijiang;CMD:Zijiang;MDL:ZJ-58;CLS:PRINTER;"
*cupsVersion: 1.1
*cupsManualCopies: True
*cupsModelNumber: 58
*cupsFilter: "application/vnd.cups-raster 0 rastertozj58"
*ModelName: "ZJ-58"
*ShortNickName: "ZJ-58"
*NickName: "POS58"
*PSVersion: "(3010.000) 550"
*LanguageLevel: "3"
*ColorDevice: False
*DefaultColorSpace: Gray
*FileSystem: False
*Throughput: "1"
*LandscapeOrientation: Plus90
*VariablePaperSize: True
*TTRasterizer: Type42

*OpenUI *PageSize/Media Size: PickOne
*OrderDependency: 10 AnySetup *PageSize
*DefaultPageSize: X58mmY210mm
*%PageSize Custom/Custom: "<</PageSize[0
0]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY210mm/58mm x 210mm: "<</PageSize[164
595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY297mm/58mm x 297mm: "<</PageSize[164
842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageSize X58mmY3276mm/58mm x 3276mm: "<</PageSize[164
9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageSize

*OpenUI *PageRegion: PickOne
*OrderDependency: 10 AnySetup *PageRegion
*DefaultPageRegion: X58mmY210mm
*%PageRegion Custom/Custom: "<</PageSize[0
0]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY210mm/58mm x 210mm: "<</PageSize[164
595]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY297mm/58mm x 297mm: "<</PageSize[164
842]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*PageRegion X58mmY3276mm/58mm x 3276mm: "<</PageSize[164
9286]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*CloseUI: *PageRegion

*DefaultImageableArea: X58mmY210mm
*%ImageableArea Custom: "0 0 0 0"
*ImageableArea X58mmY210mm: "14 0 150 595"
*ImageableArea X58mmY297mm: "14 0 150 842"
*ImageableArea X58mmY3276mm: "14 0 150 9286"

*DefaultPaperDimension: X58mmY210mm
*%PaperDimension Custom: "0 0"
*PaperDimension X58mmY210mm: "164 595"
*PaperDimension X58mmY297mm: "164 842"
*PaperDimension X58mmY3276mm: "164 9286"

*%MaxMediaWidth: "226"
*%MaxMediaHeight: "5670"
*%HWMargins: 0 0 0 0
*%CustomPageSize True: "pop pop pop <</PageSize[5 -2
roll]/HWResolution[203 203]/ImagingBBox null>>setpagedevice"
*%ParamCustomPageSize Width: 1 points 72 226
*%ParamCustomPageSize Height: 2 points 72 5670
*%ParamCustomPageSize WidthOffset: 3 points 0 0
*%ParamCustomPageSize HeightOffset: 4 points 0 0
*%ParamCustomPageSize Orientation: 5 int 0 0

*OpenGroup: ZJDeviceSettings/Device Settings

*OpenUI *CashDrawer/Cash Drawer:PickOne
*DefaultCashDrawer: 1CashDrawer1BeforePrinting
*CashDrawer 0NoCashDrawer/No Cash Drawer: ""
*CashDrawer 1CashDrawer1BeforePrinting/Cash Drawer #1 Before Printing: ""
*CashDrawer 2CashDrawer2BeforePrinting/Cash Drawer #2 Before Printing: ""
*CashDrawer 3CashDrawer12BeforePrinting/Cash Drawer #1+#2 Before
Printing: ""
*CashDrawer 4CashDrawer1AfterPrinting/Cash Drawer #1 After Printing: ""
*CashDrawer 5CashDrawer2AfterPrinting/Cash Drawer #2 After Printing: ""
*CashDrawer 6CashDrawer12AfterPrinting/Cash Drawer #1+#2 After Printing: ""
*CloseUI: *CashDrawer

*OpenUI *BlankSpace/Blank space at page's end:PickOne
*DefaultBlankSpace: 1NoPrint
*BlankSpace 0Print/Print: ""
*BlankSpace 1NoPrint/Do not print: ""
*CloseUI: *BlankSpace

*OpenUI *FeedDist/Feed distance after print:PickOne
*DefaultFeedDist: 9feed30mm
*FeedDist 0feed3mm/feed 3mm: ""
*FeedDist 1feed6mm/feed 6mm: ""
*FeedDist 2feed9mm/feed 9mm: ""
*FeedDist 3feed12mm/feed 12mm: ""
*FeedDist 4feed15mm/feed 15mm: ""
*FeedDist 5feed18mm/feed 18mm: ""
*FeedDist 6feed21mm/feed 21mm: ""
*FeedDist 7feed24mm/feed 24mm: ""
*FeedDist 8feed27mm/feed 27mm: ""
*FeedDist 9feed30mm/feed 30mm: ""
*FeedDist 10feed33mm/feed 33mm: ""
*FeedDist 11feed36mm/feed 36mm: ""
*FeedDist 12feed39mm/feed 39mm: ""
*FeedDist 13feed42mm/feed 42mm: ""
*FeedDist 14feed45mm/feed 45mm: ""
*CloseUI: *FeedDist

*CloseGroup: ZJDeviceSettings
, for the printer setup,no such option.

TIA

Ethan

If possible, take a look at the ppd file and see if a change can be made
there.

Here is the file.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Brian
2014-09-09 15:10:02 UTC
Permalink
Post by Ethan Rosenberg
Post by Chris Bannister
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
Chris -
Thanks.
[PPD snipped]
Post by Ethan Rosenberg
If possible, take a look at the ppd file and see if a change can be
made there.
Here is the file.
The orientation of a print on paper is not (and cannot be) set from a
PPD file. Did you try Chris Bannister's suggestion? What is the
application?

You could try

lp -o landscape filename

Or for portrait

lp -o orientation-requested=3 filename
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@desktop.copernicus.demon.co.uk
Thierry Chatelet
2014-09-09 15:50:02 UTC
Permalink
Post by Brian
Post by Ethan Rosenberg
Post by Chris Bannister
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
Chris -
Thanks.
[PPD snipped]
Post by Ethan Rosenberg
If possible, take a look at the ppd file and see if a change can be
made there.
Here is the file.
The orientation of a print on paper is not (and cannot be) set from a
PPD file. Did you try Chris Bannister's suggestion? What is the
application?
You could try
lp -o landscape filename
Or for portrait
lp -o orientation-requested=3 filename
In PPD there is:
*LandscapeOrientation: Plus90

Could that be it?
Thierry
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@newone
Bzzzz
2014-09-09 16:00:02 UTC
Permalink
On Tue, 09 Sep 2014 17:44:34 +0200
Post by Ethan Rosenberg
*LandscapeOrientation: Plus90
Could that be it?
Nope, I've the same in the PPD of my HP2100.

Your PB might be related to a former order that switched to
landscape (some printers save this in a non-volatile memory);
it could be a wrongly interpreted string when you couldn't
have your printer working correctly.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@msi.defcon1
Bzzzz
2014-09-09 17:20:03 UTC
Permalink
On Tue, 9 Sep 2014 18:12:12 +0100
For a blank sheet of paper Plus90 or Minus90 don't matter. For a blank
sheet of paper with a letterhead or hole-punches it is significant.
Shall we assume that the regular rotation is used? (that is:
Plus = counterclockwise).
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@msi.defcon1
Brian
2014-09-09 17:30:02 UTC
Permalink
Post by Bzzzz
On Tue, 9 Sep 2014 18:12:12 +0100
For a blank sheet of paper Plus90 or Minus90 don't matter. For a blank
sheet of paper with a letterhead or hole-punches it is significant.
Plus = counterclockwise).
We may as well. But let us not lose sight of the fact that the OP's
problem has nothing to do with that and a solution has already been
indicated by Chris Bannister.
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@desktop.copernicus.demon.co.uk
Chris Bannister
2014-09-09 22:40:01 UTC
Permalink
Post by Ethan Rosenberg
Post by Chris Bannister
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
Chris -
What application are you using where this problem occurs?
Personally, I wouldn't worry about the PPD file yet. I'm assuming you
are using the recommended PPD file for your printer.

There *should* be an option in the application to choose landscape or
portrait printing.

If you are printing from the command line then see Brian's excellent
solution(s). Brian's post in this thread, that is. :)
--
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the
oppressing." --- Malcolm X
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@tal
Ethan Rosenberg
2014-09-10 03:30:02 UTC
Permalink
Post by Chris Bannister
Post by Ethan Rosenberg
Post by Chris Bannister
The printing is along the length of the paper, as opposed to perpendicular.
Known as landscape and portrait respectively.
How do I change it?
Depends on the application you are printing from, but it's usually under
something called 'page setup' or similar.
Chris -
What application are you using where this problem occurs?
Personally, I wouldn't worry about the PPD file yet. I'm assuming you
are using the recommended PPD file for your printer.
There *should* be an option in the application to choose landscape or
portrait printing.
If you are printing from the command line then see Brian's excellent
solution(s). Brian's post in this thread, that is. :)
Thanks to ALL!

I am at work [not as a programmer] from 9am to 7pm and have not been
able to read and answer your posts, no disrespect intended. I have also
been trying to get info from the Chinese manufacturer, but the language
barrier was impossible to breach.

From the command line -

lpr -o portrait -o cpi=17 -P POS58 /var/www/receipt.txt

FYI I tried to set the orientation from the printer setup. No luck. In
desperation I thought that it was possible from the ppd files.

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Lisi Reisz
2014-09-10 06:40:01 UTC
Permalink
Sorry, Ethan. Repostingto list.
Post by Ethan Rosenberg
FYI I tried to set the orientation from the printer setup.
It's not part of the printer set-up. The printer should be able to do both.
It is part of the application set-up.

Lisi
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@gmail.com
Ethan Rosenberg
2014-09-12 04:20:02 UTC
Permalink
Post by Lisi Reisz
Sorry, Ethan. Repostingto list.
Post by Ethan Rosenberg
FYI I tried to set the orientation from the printer setup.
It's not part of the printer set-up. The printer should be able to do
both. It is part of the application set-up.
More helpfully, in e.g. LibreOffice, it comes under format -> page -> page
check radio button beside either portrait or landscape. Another example, in
KWrite it comes under print -> properties -> general -> orientation and there
is then a choice of (by radio button again) portrait, landscape, reverse
landscape, reverse portrait.
The printer then simply does what it is told, as it does for formating of size
of print, position of text etc..
Lisi
Lisi -

Thanks.

I am printing directly from a text file and do not have the option to
use a word processor. For testing I tried printing from the clipboard
and I was not able to choose landscape or portrait. Therefor I chose to
print directly from the command line.

Ethan
--
To UNSUBSCRIBE, email to debian-user-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Archive: https://lists.debian.org/***@hygeiabiomedical.com
Loading...