# Patent

## Title
Label printer API using LUA program scripting language

## Abstract

A system and method are defined for modifying functionality of a printer that is provided with firmware for controlling printing operations. First programming code is developed that, when executed on a computer readable medium, interfaces with the printer's firmware and modifies the functionality of the printer. The first programming code is written in a first programming language, such as the LUA programming language, and the firmware is written in a second programming language other than the first programming language. Thereafter, the first programming code is executed on the computer readable, and the functionality of the printer is modified as a function of the executed first programming code interfacing with the firmware. The firmware is not modified by the interfacing.

## Background
CROSS REFERENCE TO RELATED APPLICATION
The present application is a 35 U.S.C. §371 National Phase conversion of PCT/JT2008/069839, filed Oct. 27, 2008, the disclosure of which is incorporated herein by reference. The PCT International Application was published in the English language.
BACKGROUND
Field of the Invention
The present invention relates generally to printers and, more particularly, to enhancing printer functionality by interfacing with label and tag printer firmware.
Description of the Related Art
Most label and tag printers operate via a conventional predefined proprietary control language. For example, SATO Barcode Printer Language (“SBPL”), ZEBRA programming language (“ZPL”), DATAMAX Printer Language (“DPL”), INTERMEC Printer Language (“IPL”) or the like all include proprietary functionality that requires a fairly significant minimum skill level in order to enable a user to effect changes in the printers' output functionality. Various printer models, such as provided by vendors of printers supporting the printer languages listed above, can perform printing tasks defined by the predefined individual commands. Specific changes to a printer's functionality are typically made by changing the firmware of the printer.
Since each printer's respective control language is predefined, existing printers can only perform predefined tasks. In case various printer functionality needs to be added, then the firmware needs to be accordingly changed. This often involves making complex source code revisions and using embedded programming development tools to make the revisions. This is not a flexible approach and customization cannot be done locally by the customer.
SUMMARY
In the prior art, there is no ability to customize or otherwise modify label/tag printer software without changing the printer's firmware source code, and without expensive development tools.
Accordingly, a system and method are defined for modifying functionality of a printer that is provided with firmware for controlling printing operations. First programming code is developed that, when executed by a processor of a computing device, the first programming code being recorded on a computer readable medium, interfaces with the printer's firmware and modifies the functionality of the printer. The first programming code is written in a first programming language, such as the LUA programming language, and the firmware is written in a second programming language other than the first programming language. Thereafter, the first programming code is executed by the processor, and the functionality of the printer is modified as a function of the executed first programming code interfacing with the firmware. The firmware is not modified by the interfacing.
In a preferred embodiment, an interpreted script language is provided in connection with a label and tag printer and used to develop printer software applications (i.e., printer application programs) that interface and interact with the printer's firmware through an application programming interface (API).
Preferably, a label and tag printer is equipped with the LUA virtual machine. The LUA script language is preferably used to develop printer applications adapted for label and tag printers that interface with the firmware of the printer through the application programming interface (API), and allows access to all firmware and hardware functions of the printer.
Other features and advantages of the present invention will become apparent from the following description of the invention that refers to the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
For the purpose of illustrating the invention, there is shown in the drawings a form which is presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown. The features and advantages of the present invention will become apparent from the following description of the invention that refers to the accompanying drawings, in which:
FIG. 1 illustrates an exemplary hardware arrangement, in accordance with a preferred embodiment;
FIG. 2 illustrates the functional elements of an exemplary information processor shown in FIG. 1;
FIG. 3 is a block diagram that illustrates printer APIs provided in accordance with a preferred embodiment;
FIG. 4 illustrates an exemplary label printed by a label and tag printer and defined using APIs provided in accordance with a preferred embodiment;
FIG. 5 illustrates an exemplary data field size indicating respective horizontal and vertical positions and defined for data field to be provided on a label;
FIG. 6 illustrates another exemplary label printed by a label and tag printer and defined using APIs and representing color options provided in accordance with a preferred embodiment; and
FIGS. 7-10 illustrate an implementation of a preferred embodiment that includes a plurality of electronic memory formats.



DESCRIPTION OF EMBODIMENTS
In accordance with the teachings herein, one or more interfaces are provided enabling individuals to customize label and tag printer settings without a need to update, change or otherwise alter firmware source code provided with the label and tag printer, and without a need for expensive development tools. Thus, a label and tag printer is effectively enabled for application development without a need for having others to write applications using the printer's proprietary interpreted language.
In a preferred embodiment, an interpreted script language is provided in combination with a label and tag printer. A set of printer extensions formatted as printer application programming interfaces (“APIs”) are provided to enable interaction with and manipulation of printer firmware for customization and extended functionality. The APIs are preferably provided for label and tag printers. In a preferred embodiment, the interpreted scripting language is LUA.
By interfacing the printer firmware with the set of printer APIs, for example, developed in the scripting language, users of label and tag printers are afforded improved flexibility and accessibility via software commands used by the label and tag printer to perform various tasks. Using APIs in combination with the printer's firmware, users are no longer required to change a label and tag printer's firmware source code or access to development tools typically required for changing or modifying the label and tag printer's firmware source code. As described in greater detail below, the APIs provided in connection with the teachings herein support various functionality, such as interfacing different keyboards, displays, providing variable fonts and formats of print rendering, accessing printer file systems, printer configurations and various other functions related to label and tag printing.
Thus, the present invention provides a plurality of printing solutions without a need for firmware source code modifications or expensive embedded systems including, for example, software development tools for modifying predefined proprietary control and printer firmware.
Referring now to the drawing figures, in which like reference numerals represent like elements, FIG. 1 illustrates an exemplary hardware arrangement, in accordance with an embodiment of the present invention, for providing and installing printer application programs either via a direct cable connection or over a communication network, and referred herein, generally, as system 100. In the example shown in FIG. 1, information processor(s) 102 are provided with an integrated development programming environment (“IDE”), such as to develop applications in the LUA programming language, as known to those skilled in the art. Information processor 102 preferably includes all databases necessary to support the present invention. However, it is contemplated that information processor 102 can access any required database via communication network 106 or any other communication network to which information processor 102 may be coupled. Communication network 106 is preferably a global public communication network such as the Internet, but can also be a wide area network (WAN), local area network (LAN), an intranet or other network that enables computing devices and peripheral devices to communicate.
In a preferred embodiment, information processor 102 is any computer readable medium device that is capable of sending and receiving data across a communication network 106, e.g., mainframe computers, mini computers, personal computers, laptop computers, a personal digital assistants (PDA), cellular telephones and Internet access devices such as Web TV. In addition, information processors 102 are preferably equipped with web browser software, such as MICROSOFT INTERNET EXPLORER, MOZILLA FIREFOX, or the like. Information processors 102 are coupled to communication network 106 using any known data communication networking technology.
Also shown in FIG. 1 is printer 108 that is preferably a label and tag printer and operable to print labels and tags of data received from information processors 102. Label and tag printer 108 may be provided with keyboard 110 and display 112 to enable input and output functionality with label and tag printer 108 in the absence of or in conjunction with information processor 102.
FIG. 2 illustrates the functional elements of an exemplary information processor 102, and includes one or more central processing units (CPU) 202 used to execute software code and control the operation of information processor 102. Other elements include read-only memory (ROM) 204, random access memory (RAM) 206, one or more network interfaces 208 to transmit and receive data to and from other computing devices across a communication network, storage devices 210 such as a hard disk drive, floppy disk drive, tape drive, CD ROM or DVD for storing program code databases and application data, one or more input devices 212 such as a keyboard, mouse, track ball, microphone and the like, and a display 214. Further, one or more of functional elements 202-214 may be suitably configured or provided with label and tag printer 108, as well.
The various components of information processor 102 need not be physically contained within the same chassis or even located in a single location. For example, storage device 210 may be located at a site which is remote from the remaining elements of information processor 102, and may even be connected to CPU 202 across communication network 106 via network interface 208. Information processor 102 preferably includes a memory equipped with sufficient storage to provide the necessary databases, forums, and other community services as well as acting as a web server for communicating hypertext markup language (HTML), Java applets, and Active-X control programs. Information processors 102 are arranged with components, for example, those shown in FIG. 2, suitable for the expected operating environment of information processor 102. The CPU(s) 202, network interface(s) 208 and memory and storage devices are selected to ensure that capacities are arranged to accommodate expected demand.
The nature of the invention is such that one skilled in the art of writing computer executable code (i.e., software) can implement the functions described herein using one or more of a combination of popular computer programming languages and development environments including, but not limited to, LUA, C, C++, Visual Basic, JAVA, HTML, XML, ACTIVE SERVER PAGES, JAVA server pages, servlets, MYSQL and PHP.
Although the present invention is described by way of example herein and in terms of a web-based system using web browsers and a web site server (e.g., information processor 102), system 100 is not limited to such a configuration. It is contemplated that system 100 is arranged such that label and tag printer 108 communicates with and outputs data received from information processor 102 using any known communication method, for example, using a non-Internet browser WINDOWS viewer coupled with a local area network protocol such as the Internet Packet Exchange (IPX), dial-up, third-party, private network or a value added network (VAN).
It is further contemplated that any suitable operating system can be used on information processor 102, for example, DOS, WINDOWS 3.x, WINDOWS 95, WINDOWS 98, WINDOWS NT, WINDOWS 2000, WINDOWS ME, WINDOWS CE, WINDOWS POCKET PC, WINDOWS XP, MAC OS, UNIX, LINUX, PALM OS, POCKET PC or any other suitable operating system.
In a preferred embodiment, label and tag printer 108 applications are developed in the LUA programming language. In accordance with a preferred embodiment, a LUA interpreter is included that is operable to process LUA programming statements provided in the applications. Unlike typical high-level programming languages, LUA is a scripting language and not a basic programming language. Unlike typical label and tag printers, such as those that receive SBPL commands or other predefined commands to cause the label and tag printer to execute various functionality, the present invention implements printer APIs that are extensions to the LUA language that interface with the printer firmware and that are interpreted by the LUA interpreter. This enables more advanced and complex applications to be developed, such as via function calls. Furthermore, by implementing APIs that are extensions to the LUA programming language, a portion of label and tag printer 108 functionality can be modified, as opposed to prior art label and tag printers that require a complete overwrite of their respective firmware applications in order to implement a single change.
Another benefit of the present invention is that applications developed in the LUA programming language and implemented in label and tag printer 108 APIs are more compact and execute significantly faster. This is because prior art label and tag printers require more software instructions in order to implement various functions that otherwise are accomplished by APIs of the present invention. Further, the LUA interpreter interfaces with the APIs of the present invention efficiently, such as by taking advantage of function calls, variable declarations or the like, and code utilization is significantly improved over prior art label and tag printers, as a function of fewer memory requirements.
Another advantage of the LUA printer APIs of the present invention over prior art label and tag printers is an ability to access print functions without requiring an interpreter to access the print functions via an existing control language, such as SBPL or ZPL. In other words, the APIs directly interface with the label and tag printer 108 firmware that controls the printer's 108 printing functionality. This is an improvement over prior art systems that require, for example, a generation of SBPL commands to interface with an existing control language, thereby increasing steps and overhead associated with modifying printer functionality.
Moreover, since the APIs of the present invention interface via a LUA interpreter, the size limitations associated with the application are virtually eliminated with the exception of internal memory requirements based on a particular label and tag printer 108. This is an improvement over prior art label and tag printers that have, for example, limitations on the number of lines of code that can be installed and do not support dynamic memory allocation. APIs of the present invention support, for example, function calls and other high level programming language functionality, such as releasing memory (“garbage collection”) that increases the amount of programming code implemented for a particular functionality.
Another benefit of the present invention is that development tools, such as MICROSOFT VISUAL STUDIO or other integrated development environments (“IDEs”) are usable as a plug-in component for LUA. Application development for respective label and tag printers 108 is more attractive for developers who are familiar with or comfortable with developing software applications in visual integrated development environments.
Another benefit of the present invention is that LUA applications can be run on computers having a LUA virtual machine that simulates printer operations. The user can test developed LUA applications on computers prior to downloading and installing the applications on printers, which precludes a need to actually operate the printers to test the LUA applications.
In a preferred embodiment, a plurality of independent LUA virtual machines can be operable in a sort of chain and implemented on a single label and tag printer 108 or a network thereof. In this way, configurable dynamic local settings can be implemented, for example, for bar code printers that sort data according to various custom settings such as, for example, regional settings and language settings. The various local settings may be stored on a particular computer system's operating system, and changes to the behavior may depend upon, for example, the local settings.
By implementing APIs via a LUA interpreter, additional printer functionality can be provided beyond that previously available in the prior art. A discussion regarding additional printer functionality and improved implementations thereof afforded in accordance with a preferred embodiment is now provided.
Preferably, programming function calls and an ability to declare, address and pass values to and from programming functions via variables is supported via the LUA implementation in an example embodiment. Preferably, programming functions return a value, such as an error code, that represents whether a function executed successfully or not. In case, for example, a function does not execute as intended, an error code is returned that represents the cause of the error, the symptom of the error, the result of the error, or other suitable information. Moreover, function names and variable names, such as related to table names, string values, dates, numeric values or the like, are preferably not displayed readily to users and may be displayed, at least partially hidden or completely hidden from view.
Preferably, security implementations are supported by the teachings herein, including, for example, requiring users to have provided sufficient authorization and granted access rights to perform various tasks, such as to access particular data, one or more data directories, or to create, remove or modify data directories, data files or the like.
Another feature supported by APIs is an interface rendering. As used herein, rendering refers, generally, to creation of interactive programming objects. For example, rendered objects may be formed as data fields (e.g., text-based fields), barcodes, graphic fields. The rendered objects include one or more properties that can be manipulated, such as by methods. Preferably, objects (e.g., text field, barcode and graphic objects) rendered via APIs are provided (e.g., added or otherwise embedded) with a label object and printed via label and tag printer 108.
Moreover, APIs support providing objects, such as barcodes, positioned on a label at least partially outside of the printable region of label and tag printer 108 without causing an error while developing the label, while printing the label or both. This feature makes it possible to develop a label having, for example, a barcode in which only half of the bar code is printed by label and tag printer 108. This feature provides an improvement over prior art methods of modifying printer functionality in case a user desires a partial or otherwise incomplete object, such as a barcode, to be printed on a label via label and tag printer 108.
In one embodiment and during operation, a respective position of a rendered object, such as a text field, barcode, graphic box, image or the like, is defined by a horizontal and a vertical position parameter (e.g., “hPos” and “vPos”). The parameter values preferably define an anchor point position for an object. In case hPos and vPos are properly set, an error parameter, (e.g., “E_SUCCESS”) is defined. Alternatively, if hPos or vPos is not properly set, a different error parameter (e.g., “EPARAM”) is defined.
In addition to parameters defined for positioning, the present invention supports magnification of objects, such as a barcode or an image. For example, horizontal and vertical magnification parameters (e.g., “hMag” and “vMag”) are defined to set horizontal and vertical pixel magnification (e.g., from values 1-12), which represents respective degrees of horizontal and vertical magnification of an object.
FIG. 3 is a block diagram that illustrates associated APIs 302 provided in accordance with a preferred embodiment to interface with label and tag printer 108 firmware. As shown in FIG. 3, keyboard API 304 is operable to receive and interpret (i.e., read) signals from keyboard 110 integrated with label and tag printer 108. Alternatively, keyboard API 304 operates to read and interpret signals from an external keyboard or other input device 212 not directly coupled to label and tag printer 108. Display API 306 operates to write a wide variety of textual and graphical content to display 112 integrated with printer 108. Alternatively, display API 306 operates to write textual and graphical content to an external display 214 attached to label and tag printer 108. Preferably, display API 306 supports a wide selection of fonts and coding types, for example, for many different written languages.
Continuing with reference to FIG. 3, print rendering API 308 supports user-defined data field elements to be output on a label printed by label and tag printer 108. Examples of such data field elements include textual data fields, 1-D and 2-D barcodes, lines and boxes, trigonometric functions, images, individual pixels, graphics, formatted dates, and counter values. Printer rendering API 308 enables a user to define a type of data field and a respective position for the data field to be output on a particular label/tag. Preferably, selectable options for fonts and coding types that support various languages are provided by printer rendering API 308. Fixed length or variable length data formats are preferably supported, and includable in a field definition or input from a file or communication interface via printer rendering API 308. Other features include support for selectable color output options for defining a color of one or more of the above-described field objects. Moreover, one or more printouts or feed commands are issuable as a function of print rendering API 308 that output blank or printed labels and tags. Preferably, a user-selectable print quality control feature is further provided by print rendering API 308.
Further, file system API 310 is preferably provided to enable a user to store, delete, read and write to files that are located in one or more of label and tag printer's 108 read only memory file system, random access memory file system, flash memory file system, or external memory sources, such as compact flash memory cards, secure digital memory cards, USB memory devices, or the like. Providing a user with access to data, files or the like that are stored in various internal and external sources associated with label and tag printer 108 significantly increases flexibility for users to control and manipulate label and tag printer 108 operation. Examples of various functionality preferably provided in connection with file system API 310 include formatting labels in tag printer's 108 file system, determining entries in iterations of a directory, navigating to a particular directory, creating a new directory, copying files, removing a directory or file, determining used and available bytes in the file system, and changing access rights to a file or directory.
Continuing with reference to FIG. 3, radio frequency identification (“RFID”) API 312 supports read and write access to a RFID chip/inlay provided with label and tag printer 108. Additionally, real time clock API 314 enables a user to define and read date and time data to and from label and tag printer 108. Configuration API 316 supports user-defined printer-specific parameters. For example, configuration API 316 enables a user to define communication parameters associated with print speed, quality, date and time functions, local languages, menu control or the like. Configuration API 316 is particularly useful to enable a user to define or modify operating controls for label and tag printer 108 that are typically exclusive to firmware provided with label and tag printer 108 and modifiable only by technically proficient users having specialized software and skills. Additionally, communication API 318 preferably controls communication with external I/O interface devices. A plurality of communication protocols and standards are supported, including, for example, RS232, RS485, RS422, USB, LAN, WLAN and other external digital of relay interfaces.
Other APIs 302 shown in FIG. 3 include device API 320 that is operable to control devices in the printer, printer status API 322 that is operable to report the status of the printer at any given time, and parser API 324 that is operable to parse commands and/or files, such as XML commands and/or XML files that have been sent to label and tag printer 108. Once parsed, the XML commands can be interpreted and used to control output provided by label and tag printer 108.
In addition to device API 320, printer status API 322, and parser API 324, APIs 302 preferably include paper handling API 326 provided to support a variety of paper functions, including for example, print feed, form feed, line feed, test feed or the like, for one or a plurality of label and tag sizes. Additionally, sound API 328 is shown that provides audio controls, such as for a beeper, buzzer or other sound device in label and tag printer 108. Moreover, sensor API 330 is shown that is operable to receive information from sensor devices, such as a label gap sensor and label mark sensor, that are provided with label and tag printer 108, and operable to determine various conditions, such as when an end of a label is reached, when an end of a ribbon is reached, and when an end of a label or ribbon is almost reached. In one embodiment, sensor API 330 operates to emit a warning when a determination of one or more of these conditions occurs. Other APIs 302 shown in FIG. 3 include event API 332 that receives and handles various events that occur in label and tag printer 108, bit handling API 334 that is operable to perform bit manipulation of data, as necessary, and error handling API 336 that is operable to handle errors that may occur to label and tag printer 108, such as a power outage, a memory error, a paper jam or the like.
Thus and in accordance with a preferred embodiment, a plurality of APIs 302 are developed, for example, in the LUA programming language or in the C programming language, and implemented in label and tag printer 108 without a need for interpreter accessing print functions via an existing control language, such as SBPL or ZPL. In addition to the APIs 302 illustrated in FIG. 3, various other miscellaneous functions are envisioned herein to be implemented in accordance with one or more embodiments. For example, functionality is supported for cloning a table and/or meta tables for rapidity and ease of development. Other examples include functionality for determining an error code value as a function of a returned error string value (e.g., “err2str( )”), functionality for saving tables in a one or more of a plurality of formats (e.g., XML, LUA or other), functionality for loading a table provided in a plurality of formats, and support for multiple written and spoken languages for menus and prompts.
FIG. 4 illustrates an exemplary label 400 printed by label and tag printer 108, defined using APIs 302 and provided in accordance with a preferred embodiment. As shown in FIG. 4, anchor points 402 are defined in the upper leftmost (e.g., defined via hMag and vMag variable values) position of textual data printed on label 400, notwithstanding the respective orientation or position of the printed textual data. Also shown in FIG. 4 is paper feed direction 404 of label 400 as it is printed via label and tag printer 108. In addition to textual data printed on label 400, graphical image 406 is provided, such as by rendering via print rendering API 308.
FIG. 5 illustrates an exemplary data field size defined for a data field 500 to be provided on label 400 and indicates respective horizontal and vertical positions (“hPos” and “vPos”) 502 for the upper leftmost corner of data field 500 and horizontal and vertical positions 504 for the lower rightmost position. Moreover, data orientation function 506 (e.g., dir(0, . . . 359)) indicates the relative orientation of data field 500 as it is output on label 400.
FIG. 6 illustrates another exemplary label 600 printed by label and tag printer 108, defined using APIs 302 and provided in accordance with a preferred embodiment. In the example label 600 shown in FIG. 6, a plurality of colors 602, 604 and 606 are shown that are provided on label 600 at respective positions 608. Thus, as shown and described herein, the LUA API is an interface that operates in conjunction with a label and tag printer's 108 firmware and the LUA interpreter by implementing APIs via the LUA interpreter, whereby customers can create LUA application programs that implement preferred printing operations.
Referring now to FIG. 7, in a preferred embodiment, label and tag printer 108 is provided with two types of memory: flash memory 702 and synchronous dynamic random access memory (SDRAM) 704. Flash memory 702 (preferably used in lieu of ROM) stores, among other suitable data, label and tag printer's 108 boot code, base firmware (e.g., drivers, barcode formats or the like), a LUA API and the LUA virtual machine. As known in the art, the boot code stored in flash memory 702 is executed during the printer's 108 boot-up-process. In a preferred embodiment, the label and tag printer's 108 base firmware and the LUA API is stored in flash memory 702 in a compressed format, thereby conserving memory space in flash memory 702.
Prior to the label and tag printer 108 boot-up process, SDRAM 704 is preferably largely empty, and ready to receive data. As illustrated in FIG. 8, when label and tag printer 108 boots, up the label and tag printer's 108 firmware, the LUA API and the LUA virtual machine are preferably stored in flash memory 702 in compressed format. After the boot up process, the firmware, the LUA API, and the LUA virtual machine are uncompressed and provided to SDRAM 704 in the uncompressed format. Thereafter, label and tag printer's 108 base firmware, drivers, bar codes data, label formats, parser, image buffer and other data, as appropriate, are temporarily stored for operation in SDRAM 704.
With reference to FIG. 9, the LUA virtual machine preferably operates via SDRAM 704 in connection with the printer's 108 firmware, the LUA API and parser. In this way and in accordance with a preferred embodiment, label and tag printer 108 does not rely upon flash memory 702 exclusively during printing operations but, instead, operates via uncompressed data and instructions stored in SDRAM 704 for operation. This embodiment is preferable over typical prior art systems and method because SDRAM 704 operates faster and more efficiently than flash memory 702, and SDRAM 704 can purge uncompressed data and instructions after printer operations are complete.
With reference to FIGS. 9 and 10, during printing operations, the LUA APIs provided in connection with the teachings herein operate via the LUA virtual machine and interface with label and tag printer 108 firmware for outputting a label image or other object that is stored in the buffer of the label and tag printer 108. Preferably, label and tag printer 108 can receive instructions (e.g., via a LUA API) and/or data from a plurality of input sources, preferably as defined via the LUA API. For example, data could be scanned, typed or otherwise provided and received via any suitable input port, including input devices 212, communication ports, network interface 208 or the like.
Thus as described and claimed herein, and shown in the accompanying drawings, functionality provided by label and tag printer 108 is preferably enhanced, modified or added as a function of APIs 302 that interface with printer's 108 firmware. The applications are preferably defined using a high level programming language, such as the LUA programming language, thereby precluding a need for individuals to be proficient in a particular printer model firmware proprietary programming language, or to have access to a proprietary development tool to modify a printer's firmware. Accordingly, a printer is enabled for application development without a need to write applications using a printer's proprietary interpreted language.
Although the present invention is described and shown in relation to particular embodiments thereof, many other variations and modifications and other uses will become apparent to those skilled in the art. It is preferred, therefore, that the present invention be limited not by the specific disclosure herein.

## Claims

1. A label and tag printer comprising:
hardware;
firmware configured to control functions of the label and tag printer, a first memory storing an application program, and at least one application program interface configured to directly interface with the firmware, the firmware including first source code to perform an initial function of the label and tag printer, the initial function being a function to print a first format of an image on a label, and second source code to perform an extended function of the label and tag printer, the extended function being formatted as the at least one application program interface, the extended function being a function to print a second format of an image on a label, the at least one application program interface including first reference information to call the first source code and second reference information to call the second source code;
a processor which is configured to:
generate a first software command, by executing the application program, to instruct performing the initial function,
call the first source code, by referring to the first reference information in accordance with the generated first software command,
perform the initial function, by controlling the hardware in accordance with the first source code,
generate a second software command, by executing a modified application program that is a modified version of the application program, to instruct performing the extended function,
call the second source code, by referring to the second reference information in accordance with the generated second software command,
perform the extended function by controlling the hardware in accordance with the called second source code,
build an image buffer on the second memory after a boot-up process of the label and tag printer;
generate print data corresponding to the image, by executing the application program on a virtual machine;
render the print data to image data, corresponding to the first format and the second format, based on the first source code and the second source code, respectively;
write the image data on the image buffer;
control the hardware to print the image corresponding to the image data on the image buffer; and
purge the modified application program from the second memory and download the modified application program to the first memory after operation of the tag and label printer is concluded, and

a second memory having a higher operation speed than that of the first memory,
wherein the processor is further configured to expand and write the application program, the at least one application program interface, the virtual machine, and the firmware, which are stored in a compressed format in the first memory prior to the boot-up process of the label and tag printer, on the second memory in an uncompressed format after the boot-up process of the label and tag printer.

2. The label and tag printer of claim 1, wherein the extended function changes a font of text included in the image, and the second source code defines variable fonts of the text.

3. The label and tag printer of claim 1, wherein the extended function changes a print format of the image, the print format including at least one of a horizontal and vertical position of a print object to be printed on a label, a position of anchor point for the print object, horizontal and vertical pixel magnification of the print object, or an orientation of the print object, and the second source code defines variable formats of the image.

4. The label and tag printer of claim 1, wherein the processor is further configured to delete the at least one application program interface, and the firmware from the second memory after printing the first format of the image or the second format of the image on the label.

5. The label and tag printer of claim 1, wherein boot code is stored in the first memory and is executed during the boot-up process of the label and tag printer.

6. The label and tag printer of claim 1, wherein the at least one application program interface interfaces with the firmware through the virtual machine during printing operation of the label and tag printer to enable the processor to control the hardware to print the image corresponding to the image data on the image buffer.

7. A label and tag printer comprising:
hardware;
firmware configured to control functions of the label and tag printer, a first memory storing an application program, and at least one application program interface configured to interface with the firmware via an interpreter, the firmware including first source code to perform an initial function of the label and tag printer, the initial function being a function to print a first format of an image on a label, and second source code to perform an extended function of the label and tag printer, the extended function being formatted as the at least one application program interface, the extended function comprising at least a function to print a second format of an image on a label; and
a processor configured to:
generate a first software command, by executing the application program, to instruct performing the initial function,
interpret the generated first software command, by executing the application program interface, to call the first source code,
perform the initial function, by controlling the hardware in accordance with the called first source code,
generate a second software command, by executing a modified application program that is a modified version of the application program, to instruct performing the extended function,
interpret the generated second software command, by executing the application program interface, to call the second source code,
perform the extended function by controlling the hardware in accordance with the called second source code,
build an image buffer on the second memory after a boot-up process of the label and tag printer;
generate print data corresponding to the image, by executing the application program on a virtual machine;
render the print data to image data, corresponding to the first format and the second format, based on the first source code and the second source code, respectively;
write the image data on the image buffer;
control the hardware to print the image corresponding to the image data on the image buffer; and
purge the modified application program from the second memory and download the modified application program to the first memory after operation of the tag and label printer is concluded, and
a second memory having a higher operation speed than that of the first memory, wherein the processor is further configured to write the application program, the at least one application program interface, the virtual machine, and the firmware, which are stored in the first memory prior to the boot-up process of the label and tag printer, on the second memory after the boot-up process of the label and tag printer.

8. The label and tag printer of claim 7, wherein the extended function changes a font of text included in the image, and the second source code defines variable fonts of the text.

9. The label and tag printer of claim 7, wherein the extended function changes a print format of the image, the print format including at least one of a horizontal and vertical position of a print object to be printed on a label, a position of anchor point for the print object, horizontal and vertical pixel magnification of the print object, or an orientation of the print object, and the second source code defines variable formats of the image.

10. The label and tag printer of claim 7, wherein the processor is further configured to delete the at least one application program interface, and the firmware from the second memory after printing the first format of the image or the second format of the image on the label.

11. The label and tag printer of claim 7, further comprising a keyboard, wherein
the extended function further comprises a function to receive a signal from the keyboard and to interpret the signal, and
the second source code defines an operation corresponding to the signal.

12. The label and tag printer of claim 7, further comprising a display, wherein
the extended function further comprises a function to change an object to be displayed on the display, and
the second source code defines the object.

13. The label and tag printer of claim 7, wherein the processor generates the second software command without updating the first source code and the second source code.