The present application claims priority from Japanese Patent Application No. 2007-275875, filed on Oct. 24, 2007, the disclosure of which is herein incorporated by reference in its entirety.
The disclosure relates to a printer to be connected to a host by way of a USB.
Hitherto, in a personal computer, when connecting a printer which the personal computer's OS does not support by standard, a device driver of the printer is installed in the personal computer.
When the device driver of the printer is installed, it is interposed between the editor of the personal computer and its printer, and the edited data created by the editor of the personal computer is output to the printer while it is converted into a data format suited to the printer, which is the output destination. As a result, the edited data created by the editor of the personal computer can be printed by the printer (see, for example, Japanese Patent Application Laid-Open No. 2007-140597).
Therefore, when printing is attempted by a printer which is not supported by the OS of the personal computer, a device driver of the printer is needed, and the device driver must be installed in the personal computer.
On the other hand, recently, the concern about security is heightening, an administrator is allocated for each information system, and the device driver cannot be installed in many cases without permission of the administrator. In the present situation not allowing installation of the device driver easily in a personal computer, if the edited data is the matter created by the editor of the same personal computer, a tremendous labor is needed to print by the personal computer in which the device driver is not installed.
In particular, if the printer is of a portable type, its features are sacrificed, and such a situation is giving a bad impression to the users in the present market filled with user-friendly products.
Accordingly, the disclosure has been made in light of the above, and it is an object of the disclosure to provide a printer capable of printing from a host in which a device driver is not installed.
To achieve the object of the disclosure, there is provided a printer comprising: a first memory having a temporary storage region; a USB port; a second memory having an ordinary storage region; a management table disposed in the second memory for causing a host connected to the USB port to recognize that the ordinary storage region in the second memory is a removable drive, and managing the writing operation into the ordinary storage region in the second memory; an address table disposed in the second memory for allocating the ordinary storage region in the second memory depending on the type of the file; a printing memory layout region fixed and assigned in part of the ordinary storage region in the second memory by the address table; printing devices for printing the data written in the printing memory layout region; and a processor for controlling the printing devices, the first memory and the second memory, and controlling the following steps (a) to (d) upon receiving files from the host: (a) disabling the writing management by the management table; (b) storing the file in the temporary storage region in the first memory; (c) determining the attribute of the file; and (d) when the file is a printing file, transferring the file from the temporary storage region in the first memory, and writing into the position of the printing memory layout region in the second memory obtained by referring to the address table.
Furthermore, according to another aspect, there is provided a control method of a printer, wherein the printer comprises: a first memory having a temporary storage region; a USB port; a second memory having an ordinary storage region; a management table disposed in the second memory for causing a host connected to the USB port to recognize that the ordinary storage region in the second memory is a removable drive, and managing the writing operation into the ordinary storage region in the second memory; an address table disposed in the second memory for allocating the ordinary storage region in the second memory depending on the type of the file; a printing memory layout region fixed and assigned in part of the ordinary storage region in the second memory by the address table; and printing devices for printing the data written in the printing memory layout region; wherein the control method of the printer includes the following control of steps (a) to (d):(a) a step of disabling the writing management by the management table upon receiving files from the host; (b) a step of storing the file in the temporary storage region in the first memory; (c) a step of determining the attribute of the file; and (d) when the file is a printing file, a step of transferring the file from the temporary storage region in the first memory, and a step of writing into the position of the printing memory layout region in the second memory obtained by referring to the address table.
Furthermore, according to another aspect, there is provided a computer-readable recording medium storing a control program of a printer, wherein the printer comprises: a first memory having a temporary storage region; a USB port; a second memory having an ordinary storage region; a management table disposed in the second memory for causing a host connected to the USB port to recognize that the ordinary storage region in the second memory is a removable drive, and managing the writing operation into the ordinary storage region in the second memory; an address table disposed in the second memory for allocating the ordinary storage region in the second memory depending on the type of the file; a printing memory layout region fixed and assigned in part of the ordinary storage region in the second memory by the address table; and printing devices for printing the data written in the printing memory layout region; wherein the program includes the following instruction (a) to (d):(a) instruction of disabling the writing management by the management table upon receiving files from the host; (b) instruction of storing the file in the temporary storage region in the first memory; (c) instruction of determining the attribute of the file; and (d) when the file is a printing file, instruction of transferring the file from the temporary storage region in the first memory, and instruction of writing into the position of the printing memory layout region in the second memory obtained by referring to the address table.
[1. System Configuration of the Disclosure]
An embodiment of the disclosure is described below with reference to the accompanying drawings.
[2. Internal Configuration of the Disclosure]
The internal configuration of the printer 1 of the embodiment is described with reference to
As shown in
The operation key 51 is operated by a user to input control signals for causing various desired operations to a CPU 32. The LCDC 52 has a LCD 53 connected thereto, and this LCD 53 is provided with a display RAM for displaying display data. The drive circuit 54 is connected with a thermal head 55, and drives the thermal head 55 when printing print data on a printing tape 2. The drive circuit 56 is connected with a tape feed motor 57, and drives this tape feed motor 57 when discharging the printing tape 2 to outside.
A connector C of the USB cable L is attached to and detached from the USB port P. When the connector C of the USB cable L is inserted into this USB port P, the personal computer 111 can be connected to the printer 1 of the embodiment by USB connection.
In the printer 1 of the embodiment, the CPU 32, a ROM 33, a RAM 34, a FLASH ROM 36 and others are connected to the input/output interface 31.
The CPU 32 is for executing the programs and others described below, and includes a built-in cache memory and others in which control programs other than those for printing are stored.
By executing a control program 37 described below, the CPU 32 can operate the drive circuits 54 and 56 to discharge the printing tape 2 to outside while printing on the printing tape 2 the data stored in a printing memory layout region 41 described below. The two drive circuits 54 and 56, the thermal head 55, the tape feed motor 57 and others constitute “a printing device”.
The ROM 33 is stored control programs other than those for printing. The RAM 34 has a temporary storage region 35 and others, and provides a working region when executing various control programs by the CPU 32.
The FLASH ROM 36 is stored the control program 37 relating to printing, an address table 38, a management table 39 and others, and is further provided with an ordinary storage region 40, the printing memory layout region 41 and others.
The address table 38 allocates the storing positions in the ordinary storage region 40 in the FLASH ROM 36 according to the type of the file.
The management table 39 manages the writing into the ordinary storage region 40 in the FLASH ROM 36 by USB standard, and causes the personal computer 111 connected to the USB port P to recognize that the ordinary storage region 40 in the FLASH ROM 36 is a removable drive.
The printing memory layout region 41 is a part of the ordinary storage region 40 in the FLASH ROM 36 fixed and assigned by the address table 38, into which a printing file is written.
Therefore, in the FLASH ROM 36, the management table 39, the ordinary storage region 40, and the printing memory layout region 41 function as a mass storage area 42 of USB standard.
[3. Writing Operation of the Disclosure]
The writing operation of the printer 1 of the embodiment is described with reference to
First, the CPU 32, at S11, determines whether or not a file is received from the personal computer 111. If a file is not received (No at S11), this program is terminated. If a file is received (Yes at S11), the process goes to S12.
At S12, the CPU 32 executes a writing management disabling process. In this writing management disabling process, the CPU 32 disables the writing management by the management table 39. As a result, the received file is liberated from the management by USB standard. The process then goes to S13.
At S13, the CPU 32 executes a temporary storage process. In this temporary storage process, the CPU 32 stores the received file in the temporary storage region 35 of the RAM 34. The process then goes to S14.
At S14, the CPU 32 executes a file attribute determination process. In this file attribute determination process, the CPU 32 determines the attribute of the received file. The determination is made, for example, on the basis of the header of the received file. The process then goes to S15.
At S15, the CPU 32 determines whether the received file is a printing file or not. The determination is made on the basis of the processing result at S14. When the received file is a printing file (Yes at S15), the process goes to S16.
At S16, the CPU 32 executes an address acquiring process. In this address acquiring process, the CPU 32 refers to the address table 38, and acquires a physical address of the printing memory layout region 41. The process then goes to S17.
At S17, the CPU 32 executes a transferring process. In this transfer process, the CPU 32 transfers the received file stored in the temporary storage region 35 of the RAM 34, and writes into the printing memory layout region 41 in the FLASH ROM 36 on the basis of the physical address acquired at S16. Then, this program is terminated. Afterwards, the CPU 32 executes the control program 37 relating to printing, and discharges the printing tape 2 to outside while printing the data of the received file stored in the printing memory layout region 41 on the printing tape 2.
If the received file is not a printing file (No at S15), the process advances to S18, where the CPU 32 determines whether the received file is a maintenance mode switching file or not. The determination is also made on the basis of the processing result at the S14. When the received file is a maintenance mode switching file (Yes at S18), the process goes to S19.
At S19, the CPU 32 executes a maintenance mode process. In the maintenance mode process, the CPU 32 sequentially updates the data in the FLASH ROM 36 by a rewriting data file sent from the personal computer 111 following the maintenance mode switching file which is the received file. At this time, the maintenance mode switching file is erased from the temporary storage region 35 of the RAM 34. The temporary storage region 35 of the RAM 34 functions as a buffer memory of the rewriting data file. This program is terminated. As a result, in the FLASH ROM 36, the control program 37, the address table 38, the management table 39 and others are updated.
If the received file is not maintenance mode switching file (No at S18), the process advances to S20, where the CPU 32 executes an erasing process. In this erasing process, the CPU 32 erases the received file stored in the temporary storage region 35 of the RAM 34. This program is then terminated.
[4. Summary]
As explained herein, in the printer 1 of the embodiment, the CPU 32 operates the drive circuits 54 and 56, and thereby discharges the printing tape 2 to outside while printing the data written in the printing memory layout region 41 in the FLASH ROM 36 on the printing tape 2.
In this respect, the printer 1 of the embodiment is configured as follows. When a file is received from the personal computer 111 connected through the USB port P (Yes at S11), the ordinary storage region 40 in the FLASH ROM 36 is recognized as a removable drive by the personal computer 111, and the writing management by the management table 39 for managing the writing operation into the ordinary storage region 40 in the FLASH ROM 36 by USB standard is disabled (S12). Then, the received file is stored in the temporary storage region 35 in the RAM 34 (S13), and the attribute of the received file is determined (S14). When the received file is a printing file (Yes at S15), the received file is transferred from the temporary storage region 35 in the RAM 34, and written into the position of the printing memory layout region 41 in the FLASH ROM 36 obtained by referring to the address table 38 (S16, S17). With this configuration, printing from the personal computer 111 is enabled even if the device driver is not installed in the personal computer 111.
From the standpoint of the personal computer 111, the printer 1 of the embodiment is recognized as a removable driver, that is, a device of USB mass storage class. Thus, by an ordinary access operation of sending the printing file to the drive allocated in the device, the data in the printing file can be printed by the printer 1 of the embodiment.
In the printer 1 of the embodiment, the CPU 32 disables the writing management by the management table 39 (S12). Accordingly, without executing any particular file management necessary in the USB mass storage class, the printing file is written into a fixed position in the printing memory layout region 41 in the FLASH ROM 36, so that the access to the printing file is fast.
In the printer 1 of the embodiment, moreover, when the file received from the personal computer 111 is a maintenance mode switching file (Yes at S18), the CPU 32 updates the data in the FLASH ROM 36 by a rewriting data file transmitted from the personal computer 111 following the maintenance mode switching file (S19). As a result, only by holding the USB connection with the personal computer 111, any particular input operation is not needed, and the system can be easily renewed by updating or upgrading.
In the printer 1 of the embodiment, when the file received from the personal computer 111 is not the maintenance mode switching file but a file that is not relating to the address table 38 (No at S18), the CPU 32 erases the received file from the temporary storage region 35 in the RAM 34 (S20). Therefore, unnecessary file can be eliminated, and system failure due to unnecessary file can be prevented effectively.
[5. Others]
The disclosure is not limited to the foregoing embodiment alone, but may be changed and modified within a scope not departing from the true spirit thereof.
For example, the printer 1 of the embodiment is a so-called label printer for printing on the printing tape 2, but it may also be substituted by a printer for printing on roll or sheet printing paper.
The personal computer 111 connected to the printer 1 of the embodiment by way of the USB port P is not particularly specified, and may include tower type, all-in-one type, notebook type personal computer or huge computer, or it may be connected to another personal computer by LAN or the like.
Number | Date | Country | Kind |
---|---|---|---|
2007-275875 | Oct 2007 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
7028173 | Shizuka et al. | Apr 2006 | B2 |
7200685 | Uemura | Apr 2007 | B2 |
20070104525 | Isshiki | May 2007 | A1 |
20070109322 | Miyata | May 2007 | A1 |
20070112997 | Watanabe | May 2007 | A1 |
Number | Date | Country |
---|---|---|
5265825 | Oct 1993 | JP |
2007140597 | Jun 2007 | JP |
Number | Date | Country | |
---|---|---|---|
20090109486 A1 | Apr 2009 | US |