Programming guide friendly ghost language



Download 1.07 Mb.
Page25/27
Date29.01.2017
Size1.07 Mb.
#11977
1   ...   19   20   21   22   23   24   25   26   27

USB DRIVER ADDENDUM



USB Printer/HID Device Type


 

There are two approved ways to install a Boca Systems USB printer.   The class 7 printer drivers Boca Systems provides are Microsoft certified on Win2000, XP, Win2003 server, Vista and Win7.  The 26/46 model printers have the ability to operate as a USB Class 7 device (Printer Mode) or a USB Class 3 device (HID Mode).  This does not apply to all 22/42 & most 24/44 model USB printers.  These older printers operate as a USB Class 7 device (Printer Mode) only.



  1. Printer Mode (Class 7) as a printer using Printer Drivers and USB Printing Support. (Boca Systems recommended default approach).  Once install the printer can be tested using Boca Systems Customer Drivers program.

  2. HID Mode (Class 3) as an actual HID Device using Windows drivers (USB - HID compliant device brand new approach). Once install the printer/HID can be tested using Boca Systems Customer Interfaces program.

Multiple printer drivers exist that work with our printers. Boca Systems, Windows and third party vendors, all supply printer drivers that work with our class 7 printers.  Put all these combinations together and there are dozens of ways to successfully install a Boca Systems USB printer.  However, only one of these methods will work with a given ticketing system. Before installing a Boca Systems USB printer it is important to understand which class and driver were chosen by the developer of the ticketing system.
If Class 7 printer drivers are needed (Method #1 above) then the printer drivers should be put on the PC before the printer is plugged in and turned on. This makes it easier on the Windows Printer Install wizard. Boca Systems printer drivers can be downloaded from our web site.
If the intent is to use a Boca Systems USB printer as a Class 3 device in HID mode (Method #2 above) the drivers needed are supplied within Windows operating system. Nothing needs to be downloaded. Put the Boca Systems USB printer into HID mode from the factory menu (on the display) and then plug the printer into the PC. In this “Plug and Play” mode the PC will automatically install the printer as an HID compliant device.
The default factory configuration is that a printer is shipped in Printer mode (class 7) unless otherwise specified by the customer when ordering the printer. If the printer has already been installed on the PC as a class 7 printer and now it is necessary to change the printer to HID mode (class 3) it is important remove the class 7 drivers and registry entries while the class 7 printer is still plugged in. Start by opening two windows, the “Printers and Faxes” window and the “Device Manager” window. Delete the Boca Systems printer driver(s) listed on the P&F window. It is also necessary to uninstall the entry for “USB printing support” listed under “Universal Serial Bus controllers on the Device Managers window.
For printers equipped with a display the Factory menu can be accessed by holding down the Menu and Choices button simultaneously for about three seconds. “FACTORY MENU!” will appear on the display. Use the Menu/Test buttons to move forward/backward through the list of Factory Configuration Items looking for “USB DEVICE TYPE”. Use the Choices button to toggle between “HID” and “PRINTER”. When HID is displayed press the Test button twice to select and save the change. The printer will reinitialize and install itself as an HID.
For printers not equipped with a display, FGL text commands exist to allow the USB printer device type to be changed.
- Set USB Device type a Class 7 Printer

- Set USB Device type to a Class 3 Human Interface Device

APPENDIX A - SAMPLE BASIC PROGRAM FOR 200 DPI PRINT HEAD

1 CLS:PRINT:PRINT "WHICH OF THE FOLLOWING PORTS IS YOUR PRINTER CONNECTED TO?"

2 PRINT:PRINT "1=LPT1:":PRINT "2=LPT2:":PRINT "3=COM1:":PRINT "4=COM2:"

3 PRINT:INPUT "ENTER NUMBER 1-4";PN$:PN=VAL(PN$)

4 IF PN < 1 OR PN > 4 THEN CLS:GOTO 1

5 ON PN GOTO 6,7,8,9

6 OPEN "LPT1:" AS #1:WIDTH #1,255:GOTO 10

7 OPEN "LPT2:" AS #1:WIDTH #1,255:GOTO 10

8 OPEN "COM1:9600,N,8,1,RS,DS60000" AS #1:GOTO 10

9 OPEN "COM2:9600,N,8,1,RS,DS60000" AS #1:GOTO 10

10 CLS

20 PRINT: INPUT "Enter number of tickets to print";N



30 FOR J=1 TO N

40 PRINT#1,"GHOSTWRITER WORLD";

45 PRINT#1,"ALL";

47 PRINT#1,"THREE PARKS";

50 PRINT#1,"PASSPORT";

60 PRINT#1,"6";

70 PRINT#1,"DAY";

74 PRINT#1,"ADMIT ONE";

76 PRINT#1,"GUEST";

78 PRINT#1,"VERY SMALL PRINT";

80 PRINT#1,"";

84 PRINT#1,"";

85 PRINT#1,"DAY 1";

90 PRINT#1,"";

95 PRINT#1,"DAY 2";

100 PRINT#1,"";

105 PRINT#1,"DAY 3";

110 PRINT#1,"";

115 PRINT#1,"DAY 4";

120 PRINT#1,"";

123 PRINT#1,"";

125 PRINT#1,"DAY 5";

170 PRINT#1,"DAY GUEST";

180 PRINT#1,"$112.00";

190 PRINT#1,"PLUS TAX";

250 PRINT#1,"12345678";

260 PRINT#1,"*01000407*";

270 PRINT#1,"VALID ONLY ON DATE STAMPED"

280 PRINT#1,"NONTRANSFERABLE NONREFUNDABLE";

290 PRINT#1,"01000407";

500 PRINT#1,"GHOSTWRITER WORLD"

2000 PRINT#1,"


";

2005 NEXT J

2100 END






Download 1.07 Mb.

Share with your friends:
1   ...   19   20   21   22   23   24   25   26   27




The database is protected by copyright ©ininet.org 2024
send message

    Main page