Electronic images can be stored in a number of different formats. The most common formats for storing images today are the Joint Photographic Experts Group (“JPEG”) standard or bit-maps. Bit-maps include a set of data (one-bit for monochrome to multiple bytes for true color) for each pixel (or dot) of an image. A bit-map image in XGA format (1024×768 pixels) using 64 k colors (two bytes) would require nearly 1.6 million bytes of storage. JPEGs use compression techniques to reduce the storage needed with minimal loss of detail. Typically JPEGs reduce the storage necessary by a ratio of 10:1 or 20:1 (greater compression can be achieved with further losses of detail).
Ink-jet printers have large numbers of ink-jets which deposit drops of ink on a medium. The drops are very small and different colored drops can be combined to achieve true color printing. A typical print head can have 300 to 600 ink-jets. For ink-jet printers, a print swath is data that indicates when each ink-jet is to deposit a drop of ink on the media for a single pass of the print head over the media. Host-based printers rely on the host (typically a computer) to provide the printer with print swaths for each pass of the print head over the media. Host-based printers typically require a connection between the host and the printer to transfer the print swaths to the printer.
Other types of printers may have the ability to access different format data images (e.g., JPEG) and convert the data into the required print swaths. Digital photo printers would be an example of this type of printer. A digital camera takes a picture and stores the image on a memory card in JPEG format. The memory card can be removed from the camera and inserted into a digital photo printer. The printer can read the JPEG image on the memory card and convert the JPEG image to print swaths and print the image. These types of printers require significant processing power in order to convert the stored image into the print swaths required for printing.
In one embodiment, the invention provides a method of printing with a hand-held printer. The method can include detecting a direction of initial movement of the hand-held printer. The method can include establishing a mode of operation including either a left-justified mode when the direction of initial movement is left to right or a right-justified mode when the direction of initial movement is right to left. The method can include maintaining the mode of operation for substantially an entire print job.
Some embodiments of the invention provide a hand-held printing system including a memory, a printhead connected to the memory, and a microcontroller connected to the memory and the printhead. The microcontroller can determine a horizontal direction of movement. The microcontroller can either reverse a print swath in the memory or print a print swath in reverse order when the horizontal direction of movement is determined to be a right to left direction.
Other aspects of the invention will become apparent by consideration of the detailed description and accompanying drawings.
Before any embodiments of the invention are explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the following description or illustrated in the following drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter and equivalents thereof as well as additional items. Unless specified or limited otherwise, the terms “mounted,” “connected,” “supported,” and “coupled” and variations thereof are used broadly and encompass both direct and indirect mountings, connections, supports, and couplings. Further, “connected” and “coupled” are not restricted to physical or mechanical connections or couplings, and can include electrical connections or couplings, whether direct or indirect.
In addition, it should be understood that embodiments of the invention include both hardware and software components or modules. As such, it should be noted that a plurality of hardware and software based devices, as well as a plurality of different structural components may be utilized to implement the invention. Furthermore, and as described in subsequent paragraphs, the specific configurations illustrated in the drawings are intended to exemplify embodiments of the invention and that other alternative configurations are possible.
Embodiments of the invention relate to systems and methods for operating a hand-held printer. The hand-held printer can print icons (i.e., images or text) that can be stored on a removable memory card. In some embodiments, the icons can range in size from ½″ by ½″ to ½″ by 12″. Images of the icons can be displayed on the hand-held printer to enable a user to select which icon to print. To reduce the processing power necessary in the hand-held printer, the icons can be stored on the memory card in a format that can be used by the hand-held printer with substantially no modification to the data. Printing can be performed by moving the hand-held printer in a left to right direction. This can enable the printed icons to be easily left-justified. However, in some conventional systems, printing the icons with a left to right motion can make it difficult to accurately right-justify the icons. Embodiments of the invention relate to a hand-held printer capable of printing in a left to right direction and a right to left direction.
In some embodiments of the hand-held printer 100, the hand-held printer 100 can include a display 140. In one embodiment, the display 140 can be a monochrome liquid crystal display (“LCD”) and can be 32.7 mm by 26.1 mm and can have a resolution of 101 pixels by 81 pixels. Other embodiments of the hand-held printer 100 can have other types of displays including color displays and displays of different sizes and resolutions.
The hand-held printer 100 can include one or more guides to assist a user in printing. A right side guide 145 can assist users in printing in a left to right direction, as shown in
In some embodiments, a memory card 225 can be inserted into a slot 230 in the front or another suitable portion of the hand-held printer 100. In one embodiment, the slot 230 can be accessed with the first hinged cover 205 closed, so that the memory card 225 to be exchanged for another memory card 225 without opening the hand-held printer 100. In some embodiments, the memory card 225 can be held in place by a biasing spring (not shown). The memory card 225 can be pressed into place. Pressing the memory card 225 again can release the memory card 225, so that the memory card 225 can be removed from the slot 230.
In one embodiment, the memory card 225 can have seven connectors 235 for transferring data to and from the memory card 225. When a memory card 225 is inserted into the slot 230 on the hand-held printer 100, the connectors 235 can mate with corresponding connections in the hand-held printer 100 and can enable the hand-held printer 100 to read the data stored on the memory card 225.
In one embodiment, the microcontroller 305 can be a low cost, low power application specific integrated circuit (“ASIC”). The display 310 can be a monochrome LCD display and can have a resolution of 101 pixels by 81 pixels. In one embodiment, the memory card 225 can be a 2-megabyte serial flash memory card (e.g., such as a model AT45DCB002 manufactured by Atmel).
The printhead 325 can perform the function of transferring ink from the hand-held printer 100 to the media being printed on. The printhead 325 can be a single color (e.g., black) or can contain multiple colors to print in full color. The printhead 325 can be a suitable printhead technology, such as ink-jet, laser, and dot matrix. In some embodiments, the printhead 325 can be a single color thermal ink-jet. The printhead 325 can include multiple print nozzles for depositing ink on the print media. The print nozzles can be in vertical alignment.
The optical mouse encoder 320 can include an optical mouse sensor (e.g., model ADNS-2051 manufactured by Agilent). The optical mouse encoder 320 can provide data to the microcontroller 305 via digital signals Xa and Xb (as shown in
The memory card 225 can include data for printing icons. Data on the memory card can include a number indicating the number of icons stored on the memory card 225, a checksum, one or more distances to travel prior to printing, one or more bit-maps of thumbnail images, one or more print swaths, one or more pointers to the bit-maps, and one or more pointers to the print swaths.
A checksum can be used to determine the integrity of data stored in memory. The checksum can be implemented in byte, word, or multi-word formats. The checksum can include the entire memory or a portion of the memory. Other embodiments can use other methods of ensuring the integrity of the data on the memory card 225. These methods can include cyclic redundancy codes (“CRC”).
The bit-maps can be monochrome or color and can contain data for each pixel in an image. For monochrome bit-maps, the data can be a single bit. For color bit-maps the data can be any amount of data necessary to identify the color of each pixel.
The print swaths can include data that instructs each print nozzle of the printhead 325 when to print.
When the hand-held printer 100 moves in a right to left direction the printhead position 1 can be on the right of the printed icon. If the hand-held printer 100 did not compensate for this different direction of movement, the “P” 505 would print as shown in
In the second embodiment shown in
The microcontroller 305 can read the memory of the data table and bit-maps stored on the memory card 225 and calculate the checksum of that memory (step 605). The microcontroller 305 can compare the calculated checksum to the checksum stored on the memory card (step 610). If the checksums do not match, the microcontroller 305 can display an error message on the display 310 and can stop operation (steps 615 and 620).
If the calculated checksum and the checksum stored on the memory card 225 match (step 610), processing can continue at step 625. The microcontroller 305 can read the offset to the first bit-map from the memory card 225 (step 625). The microcontroller 305 can read the bit-map data from the memory card 225 at that offset and transfer the bit-map data to a block of memory in the DRAM module 330. The microcontroller 305 can substantially continuously display the block of memory in the DRAM module 330 where the bit-map data is stored on the display 310.
The microcontroller 305 can determine whether the right scroll button 120 is pressed (step 630). If the right scroll button 120 is pressed, the microcontroller 305 can determine whether the icon number is equal to the number of icons stored on the memory card (step 635). If the icon number is equal to the number of icons stored on the memory card, the microcontroller 305 can continue processing (step 630). If the icon number is less than the number of icons stored on the memory card, the microcontroller 305 can increase the icon number by one (step 640) and processing can continue (step 625) where the bit-map for the new icon can be moved to the DRAM module 330 and can be displayed on the display 310.
If the right scroll button 120 was not pressed (step 630), the microcontroller 305 can determine whether the left scroll button 115 is pressed (step 645). If the left scroll button 115 is pressed, the microcontroller 305 can determine whether the icon number is equal to one (step 650). If the icon number is equal to one, the microcontroller 305 can continue processing (step 630). If the icon number is greater than one, the microcontroller 305 can decrease the icon number by one (step 655) and processing can continue at step 625 where the bit-map for the new icon can be moved to the DRAM module 330 and can displayed on the display 310.
If the left scroll button 115 was not pressed (step 645), the microcontroller 305 can determine whether the repeat button 125 is pressed (step 660). If the repeat button 125 is pressed, the microcontroller 305 can determine whether the repeat flag is true (step 665). If the repeat flag is true, the microcontroller 305 can set the repeat flag to false (step 670). If the repeat flag is not true, the microcontroller 305 can set the repeat flag to true (step 675). After the repeat flag is set, the microcontroller 305 can continue processing (step 630).
If the repeat button 125 was not pressed (step 660), the microcontroller 305 can determine whether the maintenance button 130 is pressed (step 676 of
If the maintenance button 130 was not pressed (step 676), the microcontroller 305 can determine whether the print button 135 is pressed (step 680). If the print button 135 is not pressed, the microcontroller 305 can continue processing (step 630). If the print button 135 is pressed, the microcontroller 305 can determine whether the clean flag is set to true (step 682). If the microcontroller 305 determines that the clean flag is not set to true the microcontroller 305 can check the data from the optical mouse encoder 320 to determine if the hand-held printer 100 has moved horizontally (steps 683 and 684). If the microcontroller 305 determines that the hand-held printer 100 has not moved, the microcontroller 305 can continue checking the data from the optical mouse encoder 320 until the hand-held printer 100 has moved horizontally (steps 683 and 684). Once the microcontroller 305 determines that the hand-held printer 100 has moved in a horizontal direction, the microcontroller 305 can determine whether the direction of movement was from left to right (step 685) or from right to left (step 686). The microcontroller 305 can set a direction flag to “Right” if the direction of movement was left to right or “Left” if the direction of movement was right to left (steps 687 and 688).
The microcontroller 305 can retrieve the offset to the print swath stored in the memory card 225 for the icon selected. The microcontroller 305 can move the print swath data from the memory card 225 to a block of memory in the DRAM module 330 reserved for the print swath data (step 689). In some embodiments, the microcontroller 305 can determine the direction of movement and if the movement is right to left, the microcontroller 305 can reverse the print swath data in memory, as shown in
The microcontroller 305 can analyze the data from the optical mouse encoder 320 to determine if the hand-held printer 100 has traveled a distance step 695. The microcontroller 305 can determine whether the distance traveled equals the distance the hand-held printer 100 should travel before beginning to print for the selected icon (step 700). If the hand-held printer 100 has not traveled the distance required before printing for the selected icon, the microcontroller 305 can determine whether the print button 135 is still pressed (step 705). If the print button 135 is still pressed, the microcontroller 305 can continue processing (step 695) with reading the optical mouse encoder 320. If the print button 135 is no longer pressed, printing can stop and the microcontroller 305 can continue processing (step 630).
If the microcontroller 305 determines that the hand-held printer 100 has moved the distance necessary before printing can begin for the selected icon (step 700), the microcontroller 305 can send a row of data from the print swath to the printhead 325 causing the printhead 325 to print the data (step 710 of
The microcontroller 305 can then determine whether the entire print swath has been printed (step 715). If the microcontroller 305 can determine that the end (or the beginning for some embodiments when printing right to left) of the print swath has not been reached, processing continues (step 720) where the microcontroller 305 can read the optical mouse encoder 320. The microcontroller 305 can determine whether the hand-held printer 100 has moved a distance such that the next row of data from the print swath should be sent to the printhead 325 step 725. If the microcontroller 305 determines that the distance moved is not sufficient to send the next row of data from the print swath to the printhead 325, the microcontroller 305 can determine (step 730) whether the print button 135 is still pressed. If the microcontroller 305 determines that the print button 135 is still pressed, processing can continue with reading the optical mouse encoder 320 (step 720). If the microcontroller 305 determines that the print button 135 is no longer pressed (step 730), printing can stop and the microcontroller 305 can continue processing (step 630).
If the microcontroller 305 determines that the hand-held printer 100 has moved a sufficient distance (step 725), the microcontroller 305 can continue processing by sending the next row of data from the print swath (or the previous row of data from the print swath in some embodiments when printing in a right to left direction) to the printhead 325 (step 710).
If the microcontroller 305 determines that the entire print swath has been sent to the printhead 325 (step 715), the microcontroller 305 can reset the distance traveled before printing to zero and can point to the start of the print swath (or to the end of the print swath in some embodiments when printing in a right to left direction) (step 735) The microcontroller 305 can determine whether the repeat flag is set to true (step 740). If the microcontroller 305 determines that the repeat flag is set to true, processing can continue (step 680) and the process of printing the icon can be repeated. If the microcontroller 305 determines the repeat flag is set to false, the print job is complete and the microcontroller 305 can determine whether the print button 135 is still pressed (step 745). If the print button 135 is still pressed, the microcontroller 305 can loop back (step 745) until the print button 135 is no longer pressed. The microcontroller 305 can then continue processing (step 630).
If the microcontroller 305 determines that the clean flag is set to true (step 682), the microcontroller 305 can move a cleaning print swath to the block of memory in the DRAM module 330 reserved for the print swath data (step 750). In some embodiments, the cleaning print swath can be an icon ½″ by 12″ in which every print nozzle prints at every printhead position. The cleaning print swath can clean each of the print nozzles and improve print quality. Once the cleaning print swath has been moved to the DRAM module 330, processing can continue with printing of the print swath (step 710).
Thus, embodiments of the invention provide, among other things, a hand-held printer capable of printing in a left to right direction or a right to left direction. Various features and advantages of the invention are set forth in the following claims.