Debian Codegraph @

README

raw
1 This is the BJNP protocol backend for CUPS
2 It works with cups 1.2 - 1.7 (verified)
3
4 CUPS-BJNP can be compiled standalone (when the cups-devel package or your OS
5 equivalent is installed, e.g. for Fedora install cups-devel).
6
7 Cups-bjnp is included in a number of distributions so in most cases it is not
8 necessary to compile it yourself.
9
10 Compiling Cups-bjnp
11 ===================
12
13 Compiling CUPS-BJNP is as simple as:
14 ./configure --prefix=/usr
15 make
16
17 In most cases configure will find the backend directory where cups stores its
18 backends without help. If it does not, add the --with-cupsbackenddir=xxx
19 option to the configure comand line to point configure in the right direction.
20
21 Cups-bjnp works over IPv4 and IPv6 (since version 1.1)
22
23 For a first test type: ./bjnp
24
25 This should return the printers uri assuming that you are on the same subnet,
26 the printer is on, and there is no firewall blocking tcp/udp port 8611
27 See notes on firewall setup below.
28
29 For my MP970 bjnp returns:
30
31 [louis@travel backend]$ ./bjnp
32 network bjnp://printer-1.pheasant:0 "Canon MP970 series" "bjnp printer-1.pheasant"
33 "MFG:Canon;CMD:BJL,BJRaster3,BSCCe,NCCe,PLI;SOJ:TXT01,BJNP2;MDL:MP970 series;CLS:
34 PRINTER;DES:Canon MP970 series;VER:1.110;STA:10;FSI:03;HRI:OTH;MSI:DAT,E3;"
35
36 if this works, install the binary, as root type: make install.
37 if you want to do this manually: copy (as root) bjnp into your cups backend
38 directory.
39
40 configure cups through the web frontend (https://localhost:631), e.g. try
41 tab <administration> <find new printers>
42
43 Ink level reporting
44 ===================
45 Cups-bjnp reports ink levels to CUPS during printing. Many GUI tools like the Gnome
46 printer settings tools can show the current ink-levels and report warnings whwn ink
47 levels get low.
48
49 Debugging
50 =========
51 If you have problems, you may want to set the debugging level.
52
53 To debug printer detection you can set the environment variable BJNP_DEBUG
54 export BJNP_DEBUG_LEVEL=DEBUG2 (for sh or bash) or
55 setenv BJNP_DEBUG_LEVEL DEBUG2 (for csh or tcsh)
56
57 The filename can be set by setting BJNP_DEBUG_FILE in similar way.
58
59 To debug printing, you can add the debug level as part of the printer URI:
60 DeviceURI bjnp://printer-1.pheasant:8611/?debuglevel=DEBUG2 or
61 bnp:///printer-1.pheasant:8611/?debuglevel=DEBUG2+debugfile=./log to log to
62 the file ./log. Normally this is not required as a logfile in the cups
63 log directory is used when no name is defined.
64
65 In both cases the debuglevel is set to one of the cups debuglevels (see cups
66 documentation: http://www.cups.org/documentation.php/man-filter.html)
67
68 Debug information will be sent to the bjnp_log in your cups logging directory
69 (e.g. /var/log/cups). Debug files will become big, so the file is truncated
70 at the start of each printjob.
71
72 If for whatever reason, opening of the logfile causes problems, you can force
73 all debug output to be sent to the cups error_log by adding _toCups to the
74 DeviceURI:
75 DeviceURI bjnp://printer-1.pheasant:8611/?debuglevel=DEBUG2_toCups
76
77 Firewalling
78 ===========
79 Cups-bjnp communicates with port 8611 on the printer. So you will have to allow
80 traffic TO port 8611 for printing.
81
82 Printer detection is slightly more complicated. (cups-bjnp sends a broadcast on
83 all subnets it can find. The broadast is sent FROM port 8611 to port 8611. The
84 outgoing packets will be allowed by the rule above. Responses from the printer
85 are sent back to the computer TO port 8611. Connection tracking however does not
86 see a match. You will therefore have to allow packets received TO port 8611 as well.
87
88 [email protected]