N/A
The present invention is directed to an input device for a printer such as a keyboard and more particularly to such an input device having two modes of operation, a first mode in which the input device operates in a conventional manner, e.g. a standard keyboard having no data processing capabilities, and a second mode in which the input device operates in accordance with an application program to form, for example, an intelligent keyboard capable of data collection and/or data manipulation.
Label/tag printers are known that include an application program stored in a programmable memory and an interpreter for processing all data input to the printer in accordance with the application program as shown in U.S. Pat. No. 5,483,624. These printers can manipulate received data in accordance with the application program but they are not operable to print without an application program. Other label/tag printers are known that receive data in a predetermined format for printing; however, these printers cannot manipulate the received data and can only print data if it is received in the predetermined format. Another known printer as disclosed in Ser. No. 10/193,557 filed Jul. 11, 2002 and assigned to the assignee of the present invention, includes an interpreter and a memory for storing an application program where the interpreter can be enabled or disabled to allow the printer to operate to print with or without an application program.
Many of the printers as described above do not include a keyboard or the like for entering data to be printed. Instead, these printers typically receive data transmitted from a host computer or the like that is coupled to the printer via an RS232 port or that communicates with the printer via radio frequency communications. Often, it is desirable to allow an operator of the printer to enter data to be printed right at the site of the printer. However, different input devices are required for printers having different capabilities.
In accordance with the present invention, the disadvantages of prior input devices for printers have been overcome. The input device of the present invention includes two modes, a first mode for operating the input device in a conventional manner, for example, as a standard keyboard with no data processing capabilities and a second mode for operating the input device in accordance with an application program to provide, for example, an intelligent keyboard that is capable of data manipulation and/or data collection.
More particularly, the input device for a printer in accordance with the present invention includes a housing with a number of keys on a surface of the housing and having a display. The input device also includes at least one communication interface for receiving data and for transmitting data to a printer. The input device has at least one memory for storing an application program that includes a sequence of commands. A memory also stores routines to control the operation of the input device without an application program and a number of routines each of which correspond to a command that can be included in an application program. A processor operates the input device in a first mode according to the routines that control the operation of the input device without an application program and the processor operates the input device in a second mode according to a stored application program wherein the processor in the second mode executes the routines corresponding to the commands in the application program.
In accordance with one embodiment of the present invention, the processor is responsive to a command while the input device is in a second mode to change the mode to the first mode. Similarly, the processor may be responsive to a command while the device is in the first mode to change to the second mode wherein this command may represent the enablement of a stored application program, or the receipt of an application program or the command may merely be the presence of an application program stored in memory.
In accordance with another feature of the present invention, the input device when operating in the first mode is controlled at least in part by inputs received from a printer and wherein the input device, when operating in the second mode, controls at least in part an operation of the printer. For example, the input device when operating in the first mode can receive inputs from the printer to cause the display of the input device to depict the information received from the printer. The displayed information may provide, for example, a prompt to a user to enter data and wherein the input device passes data entered for example, via actuation of one or more keys, to the printer. In the second mode, the input device may control a print operation for example by transmitting a print command to the printer and a data packet or stream in a particular printer control language format that is recognizable by the printer.
The input device of the present invention can thus be used with an intelligent printer that is capable of manipulating data itself or the input device can be used with a non-intelligent printer, wherein the input device provides data manipulation capabilities necessary to provide print commands and data packets in a format understandable by the non-intelligent printer. These and other advantages and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.
FIGS. 7A-C form a flow chart illustrating an operation of the printer of
The input device 10 of the present invention, as shown in
In a preferred embodiment, the input device 10 includes alphanumeric keys as well as algebraic keys. The input device also includes cursor control keys 30 to move a cursor on the display 16 up and down as well as left and right so that displayed information can be selected utilizing the cursor keys 30 and an enter key 32. In a preferred embodiment, the input device 10 also includes one or more printer control keys 34. Each of the printer control keys when actuated generates a command that is sent by the input device 10 to the printer where the printer control command from the input device 10 controls an operation of the printer. For example, a pause key 36 when actuated will cause the input device 10 to generate a digital pause command which, when sent to the printer, will cause the printer to pause its operation. A feed key 38 when actuated generates a feed command for a printer to cause the printer to advance the printing stock through the printer. The printing stock may be a strip or roll of labels, a roll of tags, a roll of paper, or the like on which the printer prints information. A cut control key 40 when actuated generates a cut command for a printer to cause the printer to cut the printing stock, for example tags to separate one tag from another. In a preferred embodiment, the keys 14 of the input device include five programmable function keys F1, F2, F3, F4 and F5 42. Various functions can be assigned to the function keys via an application program such that the function performed in response to the actuation of a particular function key is programmable. The key 14 of the input device also include an escape key 44 to escape a current operation of the input device 10.
The input device 10 as shown in
The application program is formed of a sequence of high level commands. These commands may be commands of a programming language such as the Plus programming language or ADK programming language used by Monarch Marking Systems, Inc. and/or Paxar Americas, Inc. However, the application program can use other languages such as BASIC commands or the like. The application program is preferably written in a high level programming language so that it is easy for a user to write an application program that can be downloaded into the input device 10 from a standard personal computer. The firmware of the input device stored in the area 56 of the flash memory 52 includes command routines wherein each command routine is associated with and corresponds to a command that can be used in an application program of the device 10. Specifically, for each command that can be used in an application program, there is a corresponding command routine that is selected and executed by the processor 50 when the application program is executed. An application program interpreter is also stored in the area 56 of the memory 52. The microprocessor 50 operates in accordance with the interpreter to execute command routines that correspond to the commands set forth in the application program. An example of a suitable application program interpreter is depicted in U.S. Pat. No. 5,483,624 assigned to the assignee of the present invention and incorporated herein by reference. This patent also depicts commands that can be used to form an application program as well as the command routines corresponding to the commands. In a preferred embodiment, the commands and command routines are as shown in U.S. Pat. No. 5,483,624 which can be used for data collection, i.e. for gathering previously non-associated data together in a file, table or an array and for manipulating data to associate previously non-associated data. The commands and command routines are preferably flexible enough so that an application program can be used to generate printer control language commands and/or data packets that can be understood by the printer 28 for which the input device is used. Various printer control languages are known and used in the industry including a Monarch Printer Control Language (MPCL), a Zebra Printer Control Language (ZPCL), etc. Each printer control language has an associated format for printer data so that a printer 28 operating in accordance with a particular printer control language can understand the data received in the format of its printer control language. The area 56 of the memory 52 also stores routines according to which the microprocessor 50 operates to control the operation of the input device 10 without an application program 58. An example of such a routine is depicted in
As shown in
The processor 50 operates the input device in a first mode, also referred to as a terminal mode, without an application program as depicted in
The input device 10 operates in the second mode in accordance with an application program as depicted in
A printer 28 that is operable with or without an application program as shown in U.S. application Ser. No. 10/193,557 filed Jul. 11, 2002, assigned to the assignee of the present application and incorporated herein by reference is depicted in FIGS. 7A-C. When the printer 28 is turned on, the printer microprocessor at block 100 assumes that the input device 10 is operating in the first mode without an application program. At block 102, the printer microprocessor determines whether the input device is actually operating in the first mode, i.e. a terminal mode, without an application program and if not, the printer; microprocessor proceeds to the routine depicted in
Returning to
The input device 10 of the present invention can operate in the first mode as a standard input device by passing data representing actuated keys or a sensed barcode in a standard ASCII format or the like to a printer without manipulating the data. Alternatively, the input device can operate as an intelligent input device that is capable of processing data, for example manipulating data to associate previously non-associated data inputs and/or to provide data collection capabilities so as to gather data together in a file, look up table, array or the like. The flexibility of the input device 10 of the present invention allows a single input device to be used with printers that are themselves intelligent and/or non-intelligent, i.e. printers that are merely output devices that print data received in a particular printer control language format.
Many modifications and variations of the present invention are possible in light of the above teachings. Thus, it is to be understood that, within the scope of the appended claims, the invention may be practiced otherwise than as described hereinabove.
This application is related to U.S. application Ser. No. 10/193,557 filed Jul. 11, 2002 assigned to the assignee of the present invention.