{"id":1377,"date":"2012-12-20T02:05:03","date_gmt":"2012-12-20T00:05:03","guid":{"rendered":"http:\/\/blog.cipworx.org\/laserman\/?p=1377"},"modified":"2012-12-20T02:07:46","modified_gmt":"2012-12-20T00:07:46","slug":"drucken-ohne-cups","status":"publish","type":"post","link":"https:\/\/blog.cipworx.org\/laserman\/2012\/12\/20\/drucken-ohne-cups\/","title":{"rendered":"Drucken ohne CUPS"},"content":{"rendered":"<p>Auf meinem Schreibtisch liegt seit ein paar Tagen ein kleiner mobiler Drucker: RW 420 von Zebra. Das Ziel: Von einem Android Ger\u00e4t darauf drucken. Die Zebra Utility App hift momentan nicht, denn die App kann nur Blutooth und WLAN und der Drucker kann nur RS232 und USB.<br \/>\nAlso den Drucker erst mal ans Linux Laptop angeschlossen. Linux Mint erkennt ihn nicht automatisch, aber ich konnte ihn mit Cups manuell einrichten (Zebra CPCL Label Printer). Danach konnte ich z.B. von LibreOffice aus drucken, auch Grafik mit 203dpi.<br \/>\nDer n\u00e4chste Schritt war, es ohne CUPS zu probieren.<br \/>\nDer Drucker versteht &#8220;CPCL&#8221; &#8211; Dazu gibts beim Hersteller das Handbuch als pdf. Ein Hello World sieht z.B. so aus:<\/p>\n<blockquote>\n<pre>\r\n! 0 200 200 210 1\r\nTEXT 4 0 30 40 Hello World\r\nPRINT\r\n<\/pre>\n<\/blockquote>\n<p>Das habe ich mit <\/p>\n<pre>cat test.cpcl > \/dev\/usb\/lp0 <\/pre>\n<p>geschickt, aber nix passierte. Im Handbuch steht CR+LF als Zeilenende w\u00e4re wichtig. hmmm&#8230;.<\/p>\n<blockquote>\n<pre>\r\nhexdump -c test.cpcl\r\nunix2dos test.cpcl\r\nunix2dos: Datei test.cpcl wird ins DOS-Format konvertiert ...\r\nhexdump -c test.cpcl\r\ncat test.cpcl > \/dev\/usb\/lp0\r\n<\/pre>\n<\/blockquote>\n<p>Es funktioniert! \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Auf meinem Schreibtisch liegt seit ein paar Tagen ein kleiner mobiler Drucker: RW 420 von Zebra. Das Ziel: Von einem Android Ger\u00e4t darauf drucken. Die Zebra Utility App hift momentan nicht, denn die App kann nur Blutooth und WLAN und der Drucker kann nur RS232 und USB. Also den Drucker erst mal ans Linux Laptop [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[132,4],"tags":[],"class_list":["post-1377","post","type-post","status-publish","format-standard","hentry","category-android","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/comments?post=1377"}],"version-history":[{"count":6,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1377\/revisions"}],"predecessor-version":[{"id":1383,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/posts\/1377\/revisions\/1383"}],"wp:attachment":[{"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/media?parent=1377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/categories?post=1377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cipworx.org\/laserman\/wp-json\/wp\/v2\/tags?post=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}