Project

General

Profile

LAOS CUPS driver » History » Version 3

jaap, 2012-07-15 13:19

1 1 jaap
h1. LAOS CUPS driver
2 1 jaap
3 1 jaap
This page describes the CUPS printer driver installation.
4 1 jaap
5 1 jaap
h2. How it works
6 1 jaap
7 2 jaap
The printer driver translates standard Postscript into LAOS codes.
8 1 jaap
This is done in the following steps
9 1 jaap
10 2 jaap
* Application generates a postscript file (by pressing print)
11 1 jaap
* The printer dialog shows the configuration dialog based on PPD. The user selects the appropriate settings 
12 1 jaap
* Postscript printer data captured in file, along with the selected settings
13 2 jaap
* File is received by the LaOS cups printer driver. 
14 2 jaap
* LaOS cups printer driver uses pstoedit to convert the file into LaOS [SimpleCode]
15 2 jaap
* LaOS cups printer driver transfers the file to the laser cutter using the TFTP protocol
16 1 jaap
17 1 jaap
h2. OS Support
18 2 jaap
19 1 jaap
The goal is to write platform-independent printer driver, based on CUPS.
20 1 jaap
21 2 jaap
Our test environment is Linux. However: it should be possible to compile the driver on Windows or Mac. Another option is to work from a Windows or MAC workstation and send the data to the CUPS printer on a Linux system. (the cups driver for windows could help: http://www.cups.org/articles.php?L376 ). The PPD file can be used on Windows and Mac. 
22 1 jaap
23 2 jaap
The backend conversion (pstoedit) is also usable as a stand-alone program, and sending the files to the actual printer can be done with a standard TFTP program.
24 1 jaap
25 1 jaap
h2. Installation
26 2 jaap
27 1 jaap
h3. Linux
28 2 jaap
29 1 jaap
This is how you install the driver on Linux.
30 1 jaap
31 1 jaap
Tested on:
32 1 jaap
* Debian Squeeze
33 2 jaap
* Ubuntu 10.10, 11.04, 11.10, 12.04 LTS
34 1 jaap
Please add your distro or let us know problems you encounter!
35 1 jaap
36 1 jaap
*Downloading software*
37 1 jaap
Before installing the CUPS driver, install [[pstoedit with laos support]].
38 1 jaap
39 3 jaap
Get Debian/Ubuntu packages needed:
40 3 jaap
@apt-get install bison flex tftp-hpa@
41 3 jaap
42 1 jaap
From SVN download the cups-laos:
43 1 jaap
@svn co https://tuxic.nl/laos/cups-laos
44 2 jaap
Some svn programs will complain if they don't know the CA, (ssl error), in that case, add this line to the file ~/.subversion/servers:
45 1 jaap
@ssl-trust-default-ca = no@
46 1 jaap
47 1 jaap
Installing the cups driver:
48 2 jaap
@cd <where-ever you installed> cups-laos/src
49 1 jaap
make
50 1 jaap
sudo make install@
51 1 jaap
(if make fails, rename or copy one of the personal makefiles in that folder and call it 'Makefile')
52 1 jaap
53 1 jaap
Now it's time to install the laser cutter using your CUPS printer interface. 
54 1 jaap
* On Debian, go to System -> Administration -> Printing 
55 1 jaap
** Choose: Add Printer (the arrow next to add)
56 1 jaap
** Choose: Devices: Generic CUPS-LAOS Printer
57 1 jaap
** Change the device URI to match your device IP and PORT, as configured in the firmware of the laser. For the SUDA laser, it's: 
58 1 jaap
 cups-laos://192.168.13.111:69/minimal
59 1 jaap
** Choose a name for your laser and press apply
60 1 jaap
** You might need to select the PPD (Postscript Printer Description). It's located in cups-laos/src-tftp/
61 1 jaap
** Do NOT print a test page!!!
62 1 jaap
** Now you can right-click on the new printer and go to '''Printer Options''' to adapt the defaults for your laser.
63 1 jaap
64 1 jaap
h3. Windows
65 1 jaap
Installing the CUPS driver on Windows.
66 1 jaap
67 1 jaap
Tested on Windows 7 Ultimate 32-bit
68 1 jaap
69 1 jaap
*Downloading software*
70 1 jaap
71 1 jaap
Download the cups-windows files from SVN:
72 1 jaap
@https://tuxic.nl/laos/cups-windows/@
73 1 jaap
74 1 jaap
*Installing the 'printer'*
75 1 jaap
* On Windows 7, go to 'Start' -> Control Panel -> Devices and Printers
76 1 jaap
** Click Add Printer (or right click then Add Printer)
77 1 jaap
** Add a local printer
78 1 jaap
** Create a new port - Standard TC/IP Port
79 1 jaap
** Stick in the IP address (and port - ie. 192.168.1.2:69)
80 1 jaap
** Give the port a name (LAOS [ip address] or something maybe)
81 1 jaap
** Untick 'Query the printer and automatically select the driver to use'
82 1 jaap
** Click Next and wait for Windows to try and detect the device.
83 1 jaap
** Select Generic Network Card and click Next
84 1 jaap
** Select 'Have Disk' and browse to the .inf file from the files you just downloaded.
85 1 jaap
** Click Next and ignore/accept any warnings.
86 1 jaap
** Give your laser cutter (printer) a name.
87 1 jaap
** Share the printer if you want to, set it as default if you want to but DO NOT print a test page.
88 1 jaap
** Default preferences can be selected under Printer Preferences - Preferences - Advanced.