Project

General

Profile

LAOS CUPS driver » History » Version 1

jaap, 2012-07-15 12:32

1 1 jaap
h1. LAOS CUPS driver
2
3
This page describes the CUPS printer driver installation.
4
5
h2. How it works
6
The goal is to have a workflow that translates standard Postscript into LAOS codes (see [[SimpleCode]]).
7
8
This is done in the following steps
9
10
* Application generating an image and sending this file to a printer
11
* The printer dialog shows the configuration dialog based on PPD. The user selects the appropriate settings 
12
* Postscript printer data captured in file, along with the selected settings
13
* File tranfered to pstoedit with laos driver, file is converted to appropriate codes
14
* File is transfered to device
15
* Device controls laser and motion
16
17
h2. OS Support
18
The goal is to write platform-independent printer driver, based on CUPS.
19
20
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 [http://www.cups.org/articles.php?L376 cups driver for windows could help]). The PPD file can be used on Windows and Mac. 
21
22
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 small stand-alone tool. 
23
All developments should be platform independent, but Linux/CUPS integration is the initial goal.
24
25
h2. Installation
26
h3. Linux
27
This is how you install the driver on Linux.
28
29
Tested on:
30
* Debian Squeeze
31
* Ubuntu 10.10
32
* Ubuntu 11.04
33
* Ubuntu 11.10 (you might need to perform [[Install_ubuntu11 | these extra steps]]) 
34
Please add your distro or let us know problems you encounter!
35
* Ubuntu 12.04 LTS (some issues: see remarks)
36
37
*Downloading software*
38
Before installing the CUPS driver, install [[pstoedit with laos support]].
39
40
From SVN download the cups-laos:
41
@svn co https://tuxic.nl/laos/cups-laos
42
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''':
43
@ssl-trust-default-ca = no@
44
45
Installing the cups driver:
46
@cd <where-ever you installed> cups-laos/src-tftp
47
make
48
sudo make install@
49
(if make fails, rename or copy one of the personal makefiles in that folder and call it 'Makefile')
50
51
Now it's time to install the laser cutter using your CUPS printer interface. 
52
* On Debian, go to System -> Administration -> Printing 
53
** Choose: Add Printer (the arrow next to add)
54
** Choose: Devices: Generic CUPS-LAOS Printer
55
** 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: 
56
 cups-laos://192.168.13.111:69/minimal
57
** Choose a name for your laser and press apply
58
** You might need to select the PPD (Postscript Printer Description). It's located in cups-laos/src-tftp/
59
** Do NOT print a test page!!!
60
** Now you can right-click on the new printer and go to '''Printer Options''' to adapt the defaults for your laser.
61
62
h3. Windows
63
Installing the CUPS driver on Windows.
64
65
Tested on Windows 7 Ultimate 32-bit
66
67
*Downloading software*
68
69
Download the cups-windows files from SVN:
70
@https://tuxic.nl/laos/cups-windows/@
71
72
*Installing the 'printer'*
73
* On Windows 7, go to 'Start' -> Control Panel -> Devices and Printers
74
** Click Add Printer (or right click then Add Printer)
75
** Add a local printer
76
** Create a new port - Standard TC/IP Port
77
** Stick in the IP address (and port - ie. 192.168.1.2:69)
78
** Give the port a name (LAOS [ip address] or something maybe)
79
** Untick 'Query the printer and automatically select the driver to use'
80
** Click Next and wait for Windows to try and detect the device.
81
** Select Generic Network Card and click Next
82
** Select 'Have Disk' and browse to the .inf file from the files you just downloaded.
83
** Click Next and ignore/accept any warnings.
84
** Give your laser cutter (printer) a name.
85
** Share the printer if you want to, set it as default if you want to but DO NOT print a test page.
86
** Default preferences can be selected under Printer Preferences - Preferences - Advanced.